Skip to content

Commit 35231e9

Browse files
committed
fix(registry): connector geometry, family accent, and demo legibility
Found by stepping through motion contact sheets rather than single frames. - hw-pipeline: arrowheads were two asymmetric barbs (l -30 -14 / l -26 18) fixed to horizontal, so they detached from a curve that arrives on a descending tangent. Barbs now derive from the quadratic's end tangent (end - control) with symmetric length and spread. - hw-pipeline, hw-scribble-transition, hw-callout-circle: the family carried two accents — #ffb020 in hw-frame/hw-title/hw-underline and #6d6dff here. Unified on the warm marker accent; the blue read as a default UI colour. - hw-callout-circle: the scribble hatch rendered as stacked bars over the labelled subject. More rows so the zigzag reads as a scribble, lighter weight and alpha so it sits behind the label. - yt-camera-move: the stage grid was too faint to reveal the move, so the preview of a camera-move component looked static. Stronger grid; zoom, slide and tilt now read. Demos resynced from source — demo.html is a plate-swapped copy, so a source fix does not reach the catalog preview until it is regenerated.
1 parent a98c120 commit 35231e9

7 files changed

Lines changed: 96 additions & 32 deletions

File tree

‎registry/blocks/hw-pipeline/demo.html‎

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
--hw-font-print: "Caveat", cursive;
2929
--hw-font-script: "Caveat", cursive;
3030
--hw-ink: #f4f2ec;
31-
--hw-accent: #6d6dff;
31+
/* Warm marker accent, matching hw-frame / hw-title / hw-underline. The
32+
previous #6d6dff read as a default UI blue against the family's ink. */
33+
--hw-accent: #ffb020;
3234

3335
position: relative;
3436
width: 1920px;
@@ -223,29 +225,51 @@
223225
var c = document.createElementNS(NS, "path");
224226
c.setAttribute("class", "hw-pl-conn");
225227
c.setAttribute("id", "hw-pl-conn-" + i);
228+
var sx = cx + 10,
229+
tx = ex - 10;
230+
var qx = cx + CONFIG.gap / 2 + window.hwHash(i * 9 + 2, CONFIG.seed) * 16,
231+
qy = cy - 46 - window.hwHash(i * 9 + 3, CONFIG.seed) * 12;
232+
/* Barbs follow the curve's incoming tangent. A quadratic's tangent
233+
at its end is (end - control); barbs fixed to horizontal left the
234+
head detached from a curve that arrives descending. Symmetric
235+
length and angle, so it reads as one arrowhead. */
236+
var ang = Math.atan2(ey - qy, tx - qx) + Math.PI;
237+
var BARB = 26,
238+
SPREAD = 0.42;
239+
var b1x = tx + BARB * Math.cos(ang - SPREAD),
240+
b1y = ey + BARB * Math.sin(ang - SPREAD);
241+
var b2x = tx + BARB * Math.cos(ang + SPREAD),
242+
b2y = ey + BARB * Math.sin(ang + SPREAD);
226243
c.setAttribute(
227244
"d",
228245
"M " +
229-
(cx + 10) +
246+
sx +
230247
" " +
231248
cy +
232249
" Q " +
233-
(cx + CONFIG.gap / 2 + window.hwHash(i * 9 + 2, CONFIG.seed) * 16) +
250+
qx +
234251
" " +
235-
(cy - 46 - window.hwHash(i * 9 + 3, CONFIG.seed) * 12) +
252+
qy +
236253
" " +
237-
(ex - 10) +
254+
tx +
238255
" " +
239256
ey +
240257
" M " +
241-
(ex - 10) +
258+
tx +
242259
" " +
243260
ey +
244-
" l -30 -14 M " +
245-
(ex - 10) +
261+
" L " +
262+
b1x +
263+
" " +
264+
b1y +
265+
" M " +
266+
tx +
246267
" " +
247268
ey +
248-
" l -26 18",
269+
" L " +
270+
b2x +
271+
" " +
272+
b2y,
249273
);
250274
svg.appendChild(c);
251275
conns.push(c);

‎registry/blocks/hw-pipeline/hw-pipeline.html‎

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
--hw-font-print: "Caveat", cursive;
2626
--hw-font-script: "Caveat", cursive;
2727
--hw-ink: #f4f2ec;
28-
--hw-accent: #6d6dff;
28+
/* Warm marker accent, matching hw-frame / hw-title / hw-underline. The
29+
previous #6d6dff read as a default UI blue against the family's ink. */
30+
--hw-accent: #ffb020;
2931

3032
position: relative;
3133
width: 1920px;
@@ -220,29 +222,51 @@
220222
var c = document.createElementNS(NS, "path");
221223
c.setAttribute("class", "hw-pl-conn");
222224
c.setAttribute("id", "hw-pl-conn-" + i);
225+
var sx = cx + 10,
226+
tx = ex - 10;
227+
var qx = cx + CONFIG.gap / 2 + window.hwHash(i * 9 + 2, CONFIG.seed) * 16,
228+
qy = cy - 46 - window.hwHash(i * 9 + 3, CONFIG.seed) * 12;
229+
/* Barbs follow the curve's incoming tangent. A quadratic's tangent
230+
at its end is (end - control); barbs fixed to horizontal left the
231+
head detached from a curve that arrives descending. Symmetric
232+
length and angle, so it reads as one arrowhead. */
233+
var ang = Math.atan2(ey - qy, tx - qx) + Math.PI;
234+
var BARB = 26,
235+
SPREAD = 0.42;
236+
var b1x = tx + BARB * Math.cos(ang - SPREAD),
237+
b1y = ey + BARB * Math.sin(ang - SPREAD);
238+
var b2x = tx + BARB * Math.cos(ang + SPREAD),
239+
b2y = ey + BARB * Math.sin(ang + SPREAD);
223240
c.setAttribute(
224241
"d",
225242
"M " +
226-
(cx + 10) +
243+
sx +
227244
" " +
228245
cy +
229246
" Q " +
230-
(cx + CONFIG.gap / 2 + window.hwHash(i * 9 + 2, CONFIG.seed) * 16) +
247+
qx +
231248
" " +
232-
(cy - 46 - window.hwHash(i * 9 + 3, CONFIG.seed) * 12) +
249+
qy +
233250
" " +
234-
(ex - 10) +
251+
tx +
235252
" " +
236253
ey +
237254
" M " +
238-
(ex - 10) +
255+
tx +
239256
" " +
240257
ey +
241-
" l -30 -14 M " +
242-
(ex - 10) +
258+
" L " +
259+
b1x +
260+
" " +
261+
b1y +
262+
" M " +
263+
tx +
243264
" " +
244265
ey +
245-
" l -26 18",
266+
" L " +
267+
b2x +
268+
" " +
269+
b2y,
246270
);
247271
svg.appendChild(c);
248272
conns.push(c);

‎registry/blocks/hw-scribble-transition/hw-scribble-transition.html‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
overflow: hidden;
1717
}
1818
#hw-st-root {
19-
--hw-accent: #6d6dff;
19+
/* Warm marker accent, consistent with the rest of the hw family.
20+
Override per use via CONFIG.color. */
21+
--hw-accent: #ffb020;
2022

2123
position: relative;
2224
width: 1920px;
@@ -75,7 +77,7 @@
7577
coverage at the midpoint (the host hard-cuts beneath, ~0.9-1.4s
7678
local), then everything clears. Place spanning the host's cut. */
7779
var CONFIG = {
78-
color: null, // css color; null = --hw-accent purple
80+
color: null, // css color; null = --hw-accent (warm marker)
7981
bands: 7, // horizontal scribble bands
8082
strokeScale: 1.0,
8183
seed: 17,

‎registry/components/hw-callout-circle/demo.html‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@
4747
stroke-width: var(--hw-co-w, 6);
4848
}
4949
.hw-callout .hw-co-scribble {
50-
stroke: var(--hw-co-accent, var(--hw-accent, #6d6dff));
51-
stroke-width: 4;
52-
opacity: 0.7;
50+
/* Warm marker accent to match hw-frame / hw-title / hw-underline; the
51+
previous blue read as a default UI colour. Lighter weight and alpha
52+
so the hatch sits behind the labelled subject instead of over it. */
53+
stroke: var(--hw-co-accent, var(--hw-accent, #ffb020));
54+
stroke-width: 3;
55+
opacity: 0.42;
5356
}
5457
.hw-callout .hw-co-connector {
5558
stroke: var(--hw-co-ink, var(--hw-ink, #f4f2ec));
@@ -223,8 +226,10 @@
223226
if (opts.scribble === false) {
224227
scr.style.display = "none";
225228
} else {
229+
/* Denser rows so the zigzag reads as a scribbled hatch. At 6 rows
230+
the near-horizontal runs dominate and it renders as stacked bars. */
226231
var d = "",
227-
rows = 6;
232+
rows = 11;
228233
for (var i = 0; i < rows; i++) {
229234
var t = (i + 0.5) / rows;
230235
var yy = cy - ry + t * ry * 2;

‎registry/components/hw-callout-circle/hw-callout-circle.html‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@
4444
stroke-width: var(--hw-co-w, 6);
4545
}
4646
.hw-callout .hw-co-scribble {
47-
stroke: var(--hw-co-accent, var(--hw-accent, #6d6dff));
48-
stroke-width: 4;
49-
opacity: 0.7;
47+
/* Warm marker accent to match hw-frame / hw-title / hw-underline; the
48+
previous blue read as a default UI colour. Lighter weight and alpha
49+
so the hatch sits behind the labelled subject instead of over it. */
50+
stroke: var(--hw-co-accent, var(--hw-accent, #ffb020));
51+
stroke-width: 3;
52+
opacity: 0.42;
5053
}
5154
.hw-callout .hw-co-connector {
5255
stroke: var(--hw-co-ink, var(--hw-ink, #f4f2ec));
@@ -220,8 +223,10 @@
220223
if (opts.scribble === false) {
221224
scr.style.display = "none";
222225
} else {
226+
/* Denser rows so the zigzag reads as a scribbled hatch. At 6 rows
227+
the near-horizontal runs dominate and it renders as stacked bars. */
223228
var d = "",
224-
rows = 6;
229+
rows = 11;
225230
for (var i = 0; i < rows; i++) {
226231
var t = (i + 0.5) / rows;
227232
var yy = cy - ry + t * ry * 2;

‎registry/components/yt-camera-move/demo.html‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@
5353
overflow: hidden;
5454
background: linear-gradient(135deg, #35c8d9 0%, #2a7fff 55%, #7d5cff 100%);
5555
}
56+
/* Grid is the only cue that reveals the camera move on a flat gradient
57+
plate; at 0.14/2px the zoom and slide were nearly imperceptible. */
5658
#yt-cm-stage .yt-cm-grid {
5759
position: absolute;
5860
inset: -60px;
5961
background:
60-
repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 120px),
61-
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 120px);
62+
repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.3) 0 3px, transparent 3px 120px),
63+
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 3px, transparent 3px 120px);
6264
}
6365
#yt-cm-stage .yt-cm-label {
6466
position: absolute;

‎registry/components/yt-camera-move/yt-camera-move.html‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@
5050
overflow: hidden;
5151
background: linear-gradient(135deg, #35c8d9 0%, #2a7fff 55%, #7d5cff 100%);
5252
}
53+
/* Grid is the only cue that reveals the camera move on a flat gradient
54+
plate; at 0.14/2px the zoom and slide were nearly imperceptible. */
5355
#yt-cm-stage .yt-cm-grid {
5456
position: absolute;
5557
inset: -60px;
5658
background:
57-
repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 120px),
58-
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 120px);
59+
repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.3) 0 3px, transparent 3px 120px),
60+
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 3px, transparent 3px 120px);
5961
}
6062
#yt-cm-stage .yt-cm-label {
6163
position: absolute;

0 commit comments

Comments
 (0)