@unisim/sdk 0.180.8 → 0.180.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DropRing.d.ts +11 -0
- package/dist/DropRing.d.ts.map +1 -1
- package/dist/DropRing.js +40 -7
- package/dist/DropRing.js.map +1 -1
- package/dist/DropWatermark.d.ts.map +1 -1
- package/dist/DropWatermark.js +13 -9
- package/dist/DropWatermark.js.map +1 -1
- package/dist/illustrationClock.d.ts +22 -13
- package/dist/illustrationClock.d.ts.map +1 -1
- package/dist/illustrationClock.js +11 -1
- package/dist/illustrationClock.js.map +1 -1
- package/package.json +1 -1
package/dist/DropRing.d.ts
CHANGED
|
@@ -25,6 +25,17 @@ import { type MenuTheme } from './menuTheme.js';
|
|
|
25
25
|
*
|
|
26
26
|
* ⚠️ `busy` was tried on the empty state first and was wrong: a page that
|
|
27
27
|
* greets you with a spinner looks like a page that has not finished loading.
|
|
28
|
+
*
|
|
29
|
+
* THE IDLE TWINKLE RUNS FOR A WHILE, THEN RESTS (James, 2026-10-08)
|
|
30
|
+
* ----------------------------------------------------------------
|
|
31
|
+
* 25 SVG strokes changing colour, plus a rotating SVG group, are all repainted
|
|
32
|
+
* on the main thread every frame — a landing page that twinkled forever cost a
|
|
33
|
+
* steady slice of a core while nobody was looking at it. Now each pill runs
|
|
34
|
+
* enough glows to fill ~`TWINKLE_SECONDS` and finishes on its own resting
|
|
35
|
+
* colour (the keyframes end on the track), and the spin then PAUSES where it
|
|
36
|
+
* is rather than being removed, so nothing jumps. Pointing at the ring plays
|
|
37
|
+
* it again. `busy` is untouched: that chase means work is happening, and it
|
|
38
|
+
* runs for exactly as long as the work does.
|
|
28
39
|
*/
|
|
29
40
|
export interface DropRingProps {
|
|
30
41
|
/** The solid progress arc, 0–1. Omit or 0 for none. */
|
package/dist/DropRing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropRing.d.ts","sourceRoot":"","sources":["../src/DropRing.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"DropRing.d.ts","sourceRoot":"","sources":["../src/DropRing.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA8B,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtF,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAGrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,aAAa;IAC5B,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;IAClC,8DAA8D;IAC9D,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;;;;;;;;;;;;OAcG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,KAAK,CAAA;IAC7B;uEACmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAkGD,wBAAgB,QAAQ,CAAC,EACvB,IAAQ,EACR,MAAe,EACf,IAAY,EACZ,IAAU,EACV,QAAQ,EACR,SAAS,EACT,gBAAsB,EACtB,MAAkB,EAClB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAChB,SAAS,EACT,KAAK,GACN,EAAE,aAAa,2CAuKf"}
|
package/dist/DropRing.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect, useId } from 'react';
|
|
3
|
+
import { useEffect, useId, useState } from 'react';
|
|
4
4
|
import { DropWatermark } from './DropWatermark.js';
|
|
5
5
|
import { MENU } from './menuTheme.js';
|
|
6
6
|
import { usePageTheme } from './pageTheme.js';
|
|
@@ -13,6 +13,8 @@ const PILL_DASH = 10;
|
|
|
13
13
|
const GLOW_SECONDS = 2.6;
|
|
14
14
|
/** Busy chase: how long the lit group takes to travel once round. */
|
|
15
15
|
const CHASE_SECONDS = 1.6;
|
|
16
|
+
/** Idle: roughly how long the twinkle plays before the ring rests. */
|
|
17
|
+
const TWINKLE_SECONDS = 10;
|
|
16
18
|
const STYLE_ID = 'unisim-dropring-css';
|
|
17
19
|
/**
|
|
18
20
|
* The SDK ships no stylesheet and is built with plain `tsc`, so keyframes are
|
|
@@ -79,6 +81,21 @@ function pillNoise(i) {
|
|
|
79
81
|
const x = Math.sin(i * 127.1 + 311.7) * 43758.5453;
|
|
80
82
|
return x - Math.floor(x);
|
|
81
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Pill `i`'s idle twinkle: its scattered delay and period, and how many glows
|
|
86
|
+
* fill `TWINKLE_SECONDS`. A whole number of iterations, so every pill stops on
|
|
87
|
+
* its keyframes' last frame — the resting track colour — never mid-glow.
|
|
88
|
+
*/
|
|
89
|
+
function idlePillTiming(i) {
|
|
90
|
+
const delay = pillNoise(i) * GLOW_SECONDS;
|
|
91
|
+
const duration = 2.4 + pillNoise(i + 97) * 1.0;
|
|
92
|
+
const count = Math.max(1, Math.ceil((TWINKLE_SECONDS - delay) / duration));
|
|
93
|
+
return {
|
|
94
|
+
animationDelay: `${delay}s`,
|
|
95
|
+
animationDuration: `${duration}s`,
|
|
96
|
+
animationIterationCount: count,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
82
99
|
export function DropRing({ fill = 0, motion = 'idle', over = false, size = 300, children, watermark, watermarkOpacity = 0.3, accent = '#FE8C01', track: trackProp, theme: themeProp, className, style, }) {
|
|
83
100
|
useRingStyles();
|
|
84
101
|
const p = PALETTE[usePageTheme(themeProp)];
|
|
@@ -89,7 +106,26 @@ export function DropRing({ fill = 0, motion = 'idle', over = false, size = 300,
|
|
|
89
106
|
const gradId = `unisim-dropring-grad-${useId().replace(/:/g, '')}`;
|
|
90
107
|
const animated = motion !== 'still';
|
|
91
108
|
const clamped = Math.max(0, Math.min(1, fill));
|
|
92
|
-
|
|
109
|
+
// The idle twinkle's run: `round` remounts the pills (which restarts their
|
|
110
|
+
// CSS animations), `twinkling` keeps the spin turning until the longest pill
|
|
111
|
+
// has had time to finish its last glow.
|
|
112
|
+
const [round, setRound] = useState(0);
|
|
113
|
+
const [twinkling, setTwinkling] = useState(true);
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
if (!twinkling)
|
|
116
|
+
return;
|
|
117
|
+
const longest = TWINKLE_SECONDS + GLOW_SECONDS + 3.4;
|
|
118
|
+
const timer = setTimeout(() => setTwinkling(false), longest * 1000);
|
|
119
|
+
return () => clearTimeout(timer);
|
|
120
|
+
}, [twinkling, round]);
|
|
121
|
+
const replay = () => {
|
|
122
|
+
if (motion !== 'idle' || twinkling)
|
|
123
|
+
return;
|
|
124
|
+
setRound((r) => r + 1);
|
|
125
|
+
setTwinkling(true);
|
|
126
|
+
};
|
|
127
|
+
const restingSpin = motion === 'idle' && !twinkling && !over;
|
|
128
|
+
return (_jsxs("div", { className: className, onPointerEnter: replay, style: {
|
|
93
129
|
position: 'relative',
|
|
94
130
|
width: typeof size === 'number' ? `${size}px` : size,
|
|
95
131
|
aspectRatio: '1 / 1',
|
|
@@ -102,7 +138,7 @@ export function DropRing({ fill = 0, motion = 'idle', over = false, size = 300,
|
|
|
102
138
|
// caller's colours without the CSS knowing anything about them.
|
|
103
139
|
['--unisim-dropring-accent']: accent,
|
|
104
140
|
['--unisim-dropring-track']: track,
|
|
105
|
-
}, "aria-hidden": "true", children: [_jsx("defs", { children: _jsxs("linearGradient", { id: gradId, x1: "0", y1: "0", x2: "1", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: accent }), _jsx("stop", { offset: "100%", stopColor: shade(accent) })] }) }), _jsx("circle", { cx: "100", cy: "100", r: R - 6, fill: over ? p.discOver : p.disc }), animated ? (_jsx("g", { className: "unisim-dropring-spin", children: Array.from({ length: PILLS }, (_, i) => (_jsx("circle", { cx: "100", cy: "100", r: R, fill: "none", strokeWidth: "10", strokeLinecap: "round", strokeDasharray: `${PILL_DASH} ${CIRCUMFERENCE}`, strokeDashoffset: -i * PILL_PITCH, className: over ? undefined : motion === 'busy' ? 'unisim-dropring-chase' : 'unisim-dropring-pill', stroke: over ? accent : undefined, style: over
|
|
141
|
+
}, "aria-hidden": "true", children: [_jsx("defs", { children: _jsxs("linearGradient", { id: gradId, x1: "0", y1: "0", x2: "1", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: accent }), _jsx("stop", { offset: "100%", stopColor: shade(accent) })] }) }), _jsx("circle", { cx: "100", cy: "100", r: R - 6, fill: over ? p.discOver : p.disc }), animated ? (_jsx("g", { className: "unisim-dropring-spin", style: restingSpin ? { animationPlayState: 'paused' } : undefined, children: Array.from({ length: PILLS }, (_, i) => (_jsx("circle", { cx: "100", cy: "100", r: R, fill: "none", strokeWidth: "10", strokeLinecap: "round", strokeDasharray: `${PILL_DASH} ${CIRCUMFERENCE}`, strokeDashoffset: -i * PILL_PITCH, className: over ? undefined : motion === 'busy' ? 'unisim-dropring-chase' : 'unisim-dropring-pill', stroke: over ? accent : undefined, style: over
|
|
106
142
|
? undefined
|
|
107
143
|
: motion === 'busy'
|
|
108
144
|
? // Ordered delay → the lit group travels. Reads as working.
|
|
@@ -112,10 +148,7 @@ export function DropRing({ fill = 0, motion = 'idle', over = false, size = 300,
|
|
|
112
148
|
// twinkle rather than as anything in progress. The spread
|
|
113
149
|
// is narrow on purpose: wider and pills with similar
|
|
114
150
|
// periods drift into phase and the ring pulses in clumps.
|
|
115
|
-
{
|
|
116
|
-
animationDelay: `${pillNoise(i) * GLOW_SECONDS}s`,
|
|
117
|
-
animationDuration: `${2.4 + pillNoise(i + 97) * 1.0}s`,
|
|
118
|
-
} }, i))) })) : (_jsx("circle", { cx: "100", cy: "100", r: R, fill: "none", strokeWidth: "10", strokeLinecap: "round", stroke: over ? accent : track })), clamped > 0 && (_jsx("circle", { cx: "100", cy: "100", r: R, fill: "none", stroke: `url(#${gradId})`, strokeWidth: "10", strokeLinecap: "round", strokeDasharray: CIRCUMFERENCE, strokeDashoffset: CIRCUMFERENCE * (1 - clamped), style: { transition: 'stroke-dashoffset 300ms ease-out' } }))] }), watermark !== false && (_jsx("div", { "aria-hidden": "true", style: {
|
|
151
|
+
idlePillTiming(i) }, `${round}-${i}`))) })) : (_jsx("circle", { cx: "100", cy: "100", r: R, fill: "none", strokeWidth: "10", strokeLinecap: "round", stroke: over ? accent : track })), clamped > 0 && (_jsx("circle", { cx: "100", cy: "100", r: R, fill: "none", stroke: `url(#${gradId})`, strokeWidth: "10", strokeLinecap: "round", strokeDasharray: CIRCUMFERENCE, strokeDashoffset: CIRCUMFERENCE * (1 - clamped), style: { transition: 'stroke-dashoffset 300ms ease-out' } }))] }), watermark !== false && (_jsx("div", { "aria-hidden": "true", style: {
|
|
119
152
|
position: 'absolute',
|
|
120
153
|
inset: '14%',
|
|
121
154
|
opacity: watermarkOpacity,
|
package/dist/DropRing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropRing.js","sourceRoot":"","sources":["../src/DropRing.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAsC,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DropRing.js","sourceRoot":"","sources":["../src/DropRing.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,SAAS,EA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QAAE,OAAO,MAAM,CAAA;IAC1B,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAC5B,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;IAC5D,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,CAAA;IAC9B,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAA;IAC7B,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAA;IACtB,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAA;AACvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropWatermark.d.ts","sourceRoot":"","sources":["../src/DropWatermark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DropWatermark.d.ts","sourceRoot":"","sources":["../src/DropWatermark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAwEtC,wBAAgB,aAAa,IAAI,SAAS,CAsBzC"}
|
package/dist/DropWatermark.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* The drawing that lives inside a <DropRing> while it waits — a document, a
|
|
4
|
-
* picture and a plain file above an open tray, drawn in
|
|
4
|
+
* picture and a plain file above an open tray, drawn in once.
|
|
5
5
|
*
|
|
6
6
|
* This is the SUITE DEFAULT. DropRing renders it unless the host passes its own
|
|
7
7
|
* `watermark`, so a ring is never an empty white disc, and an app that has
|
|
@@ -28,23 +28,27 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
28
28
|
* nudged without re-deriving the numbers. A wrong dash value does not error — it
|
|
29
29
|
* silently leaves the stroke half-drawn.
|
|
30
30
|
*/
|
|
31
|
-
/**
|
|
32
|
-
|
|
31
|
+
/**
|
|
32
|
+
* How long one stroke takes to draw. It draws ONCE and stays drawn (James,
|
|
33
|
+
* 2026-10-08): the endless draw-hold-fade loop repainted these strokes on the
|
|
34
|
+
* main thread for as long as the page was open. Same pace as the loop had.
|
|
35
|
+
*/
|
|
36
|
+
const DRAW_MS = 2000;
|
|
33
37
|
const INK = '#94a3b8'; // slate-400 — the things being dropped
|
|
34
38
|
const ACCENT = '#f97316'; // orange-500 — the destination
|
|
35
39
|
const CSS = `
|
|
36
40
|
.udw-doc, .udw-pic, .udw-file, .udw-tray {
|
|
37
41
|
stroke-dasharray: 100;
|
|
38
42
|
stroke-dashoffset: 100;
|
|
39
|
-
animation-duration: ${
|
|
40
|
-
animation-iteration-count:
|
|
43
|
+
animation-duration: ${DRAW_MS}ms;
|
|
44
|
+
animation-iteration-count: 1;
|
|
45
|
+
animation-fill-mode: both;
|
|
41
46
|
animation-timing-function: ease-in-out;
|
|
42
47
|
}
|
|
43
48
|
@keyframes udw-draw {
|
|
44
|
-
0%
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
94%, 100% { stroke-dashoffset: 0; opacity: 0; }
|
|
49
|
+
0% { stroke-dashoffset: 100; opacity: 0; }
|
|
50
|
+
18% { opacity: 1; }
|
|
51
|
+
100% { stroke-dashoffset: 0; opacity: 1; }
|
|
48
52
|
}
|
|
49
53
|
.udw-doc { animation-name: udw-draw; animation-delay: 0ms; }
|
|
50
54
|
.udw-pic { animation-name: udw-draw; animation-delay: 500ms; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropWatermark.js","sourceRoot":"","sources":["../src/DropWatermark.tsx"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH
|
|
1
|
+
{"version":3,"file":"DropWatermark.js","sourceRoot":"","sources":["../src/DropWatermark.tsx"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;GAIG;AACH,MAAM,OAAO,GAAG,IAAI,CAAA;AAEpB,MAAM,GAAG,GAAG,SAAS,CAAA,CAAI,uCAAuC;AAChE,MAAM,MAAM,GAAG,SAAS,CAAA,CAAC,+BAA+B;AAExD,MAAM,GAAG,GAAG;;;;0BAIc,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAwBhC,CAAA;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO,CACL,eAAK,OAAO,EAAC,aAAa,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAc,MAAM,EAAC,SAAS,EAAC,OAAO,aACvG,0BAAQ,GAAG,GAAS,EACpB,aAAG,IAAI,EAAC,MAAM,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,aAIzD,eAAM,SAAS,EAAC,SAAS,EAAC,UAAU,EAAE,GAAG,EAAE,CAAC,EAAC,kHAAkH,EAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAC,KAAK,GAAG,EAGjM,eAAM,SAAS,EAAC,SAAS,EAAC,UAAU,EAAE,GAAG,EAAE,CAAC,EAAC,wIAAwI,EAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAC,KAAK,GAAG,EACvN,iBAAQ,SAAS,EAAC,SAAS,EAAC,UAAU,EAAE,GAAG,EAAE,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,KAAK,EAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAC,KAAK,GAAG,EACtG,eAAM,SAAS,EAAC,UAAU,EAAC,UAAU,EAAE,GAAG,EAAE,CAAC,EAAC,oHAAoH,EAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAC,KAAK,GAAG,EAKpM,eAAM,SAAS,EAAC,UAAU,EAAC,UAAU,EAAE,GAAG,EAAE,CAAC,EAAC,kDAAkD,EAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAC,KAAK,GAAG,IACnI,IACA,CACP,CAAA;AACH,CAAC"}
|
|
@@ -15,20 +15,23 @@
|
|
|
15
15
|
* possible at all.
|
|
16
16
|
*
|
|
17
17
|
* ── What it does ───────────────────────────────────────────────────────────
|
|
18
|
-
* -
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* - **Plays `--t` 0 → 1 ONCE, eased, over `sweepMs`, then rests on the
|
|
19
|
+
* finished frame and stops asking for frames** (James, 2026-10-08). Until
|
|
20
|
+
* then it swept 0 → 1 → 0 forever, and every frame of it restyled the whole
|
|
21
|
+
* scene: on Universal PDF's welcome screen that was ~60 style recalcs and
|
|
22
|
+
* layouts a second, ~30% of a core, for as long as the page was open. A
|
|
23
|
+
* visitor sees the scene play when they arrive; an idle window costs
|
|
24
|
+
* nothing. Pass `loop: true` for the old endless sweep.
|
|
25
|
+
* - On hover, glides to frame 0 over `returnMs` and holds there; on leaving it
|
|
26
|
+
* plays forward again to the finished frame. So hovering REPLAYS the scene:
|
|
27
|
+
* frame 0 is the "before" state and the walk back out is the "after".
|
|
22
28
|
* - On leaving mid-glide, resumes from the frame actually on screen rather
|
|
23
|
-
* than snapping to wherever the
|
|
29
|
+
* than snapping to wherever the clock had reached. That is what
|
|
24
30
|
* `unSmoothstep` is for.
|
|
25
|
-
* - **
|
|
26
|
-
* frame 0 and stops asking for frames** until focus
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* kept a style recalc and a layout running ~60 times a second, focused or
|
|
30
|
-
* not, for as long as the window was on screen. Frame 0 IS the end of a
|
|
31
|
-
* loop (0 → 1 → 0), so the rest is seamless and so is the restart.
|
|
31
|
+
* - With `loop: true`, **while the window is not focused it finishes the loop
|
|
32
|
+
* it is in, rests on frame 0 and stops asking for frames** until focus
|
|
33
|
+
* returns. Frame 0 IS the end of a loop (0 → 1 → 0), so the rest is
|
|
34
|
+
* seamless and so is the restart.
|
|
32
35
|
*
|
|
33
36
|
* ── Three details that are load-bearing, not polish ────────────────────────
|
|
34
37
|
* ⚠️ **Reduced motion gets the FINISHED frame, not frame 0 and not a slower
|
|
@@ -66,10 +69,16 @@ export interface IllustrationClockOptions {
|
|
|
66
69
|
sweepMs?: number;
|
|
67
70
|
/** Milliseconds for the glide back to frame 0 on hover. */
|
|
68
71
|
returnMs?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Sweep 0 → 1 → 0 forever instead of playing once and resting on the
|
|
74
|
+
* finished frame. Off by default — see the header for what the endless
|
|
75
|
+
* sweep costs.
|
|
76
|
+
*/
|
|
77
|
+
loop?: boolean;
|
|
69
78
|
}
|
|
70
79
|
export declare function useIllustrationClock<T extends HTMLElement = HTMLElement>(ref: {
|
|
71
80
|
current: T | null;
|
|
72
|
-
}, { sweepMs, returnMs }?: IllustrationClockOptions): void;
|
|
81
|
+
}, { sweepMs, returnMs, loop }?: IllustrationClockOptions): void;
|
|
73
82
|
/** Ease in and out. The clock is linear; this is what makes the motion not. */
|
|
74
83
|
export declare const smoothstep: (x: number) => number;
|
|
75
84
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"illustrationClock.d.ts","sourceRoot":"","sources":["../src/illustrationClock.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"illustrationClock.d.ts","sourceRoot":"","sources":["../src/illustrationClock.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EACtE,GAAG,EAAE;IAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAA;CAAE,EAC1B,EAAE,OAAc,EAAE,QAAc,EAAE,IAAY,EAAE,GAAE,wBAA6B,GAC9E,IAAI,CAuHN;AAED,+EAA+E;AAC/E,eAAO,MAAM,UAAU,GAAI,GAAG,MAAM,WAAwB,CAAA;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,WAGrC,CAAA"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useEffect, useRef } from 'react';
|
|
3
|
-
export function useIllustrationClock(ref, { sweepMs = 5200, returnMs = 480 } = {}) {
|
|
3
|
+
export function useIllustrationClock(ref, { sweepMs = 5200, returnMs = 480, loop = false } = {}) {
|
|
4
4
|
// Read through refs inside the effect so changing a duration re-paces the
|
|
5
5
|
// running loop instead of tearing it down and restarting the sweep from 0.
|
|
6
6
|
const sweep = useRef(sweepMs);
|
|
7
7
|
const back = useRef(returnMs);
|
|
8
|
+
const looping = useRef(loop);
|
|
8
9
|
sweep.current = sweepMs;
|
|
9
10
|
back.current = returnMs;
|
|
11
|
+
looping.current = loop;
|
|
10
12
|
useEffect(() => {
|
|
11
13
|
const el = ref.current;
|
|
12
14
|
if (!el)
|
|
@@ -40,6 +42,14 @@ export function useIllustrationClock(ref, { sweepMs = 5200, returnMs = 480 } = {
|
|
|
40
42
|
}
|
|
41
43
|
else {
|
|
42
44
|
const next = clock + dt / sweep.current;
|
|
45
|
+
if (!looping.current && next >= 1) {
|
|
46
|
+
// Played through — rest on the finished frame.
|
|
47
|
+
clock = 1;
|
|
48
|
+
shown = 1;
|
|
49
|
+
set(1);
|
|
50
|
+
raf = 0;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
43
53
|
if (resting && next >= 2) {
|
|
44
54
|
// End of the loop while unfocused — rest on frame 0.
|
|
45
55
|
clock = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"illustrationClock.js","sourceRoot":"","sources":["../src/illustrationClock.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"illustrationClock.js","sourceRoot":"","sources":["../src/illustrationClock.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAiFzC,MAAM,UAAU,oBAAoB,CAClC,GAA0B,EAC1B,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,GAAG,GAAG,EAAE,IAAI,GAAG,KAAK,KAA+B,EAAE;IAE/E,0EAA0E;IAC1E,2EAA2E;IAC3E,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA;IAC7B,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC7B,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;IAC5B,KAAK,CAAC,OAAO,GAAG,OAAO,CAAA;IACvB,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAA;IACvB,OAAO,CAAC,OAAO,GAAG,IAAI,CAAA;IAEtB,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAA;QACtB,IAAI,CAAC,EAAE;YAAE,OAAM;QACf,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,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