@dloizides/logo-kit 0.4.1 → 0.6.0
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/CHANGELOG.md +11 -0
- package/README.md +9 -0
- package/dist/BrandRuntime-ClVG95wc.d.ts +84 -0
- package/dist/index.d.ts +36 -3
- package/dist/index.js +366 -115
- package/dist/index.js.map +1 -1
- package/dist/react.d.ts +21 -0
- package/dist/react.js +296 -0
- package/dist/react.js.map +1 -0
- package/dist/runtime.d.ts +23 -3
- package/dist/runtime.js +237 -1
- package/dist/runtime.js.map +1 -1
- package/package.json +28 -4
- package/dist/BrandRuntime-vxA8ddzp.d.ts +0 -32
package/dist/index.js
CHANGED
|
@@ -51,8 +51,8 @@ var fromLinear = (l) => {
|
|
|
51
51
|
};
|
|
52
52
|
function simulateCvd(hex, kind) {
|
|
53
53
|
const lin = hexToRgb(hex).map(toLinear);
|
|
54
|
-
const
|
|
55
|
-
return rgbToHex(
|
|
54
|
+
const out3 = MACHADO[kind].map((row) => row[0] * (lin[0] ?? 0) + row[1] * (lin[1] ?? 0) + row[2] * (lin[2] ?? 0));
|
|
55
|
+
return rgbToHex(out3.map(fromLinear));
|
|
56
56
|
}
|
|
57
57
|
function toLab(hex) {
|
|
58
58
|
const [r, g, b] = hexToRgb(hex).map(toLinear);
|
|
@@ -112,21 +112,21 @@ var startsNumber = (cur, ch) => {
|
|
|
112
112
|
return ch === "-" && cur !== "" && !afterExponent || ch === "." && cur.includes(".");
|
|
113
113
|
};
|
|
114
114
|
function tokenizePath(d) {
|
|
115
|
-
const
|
|
115
|
+
const out3 = [];
|
|
116
116
|
let cur = "";
|
|
117
117
|
for (const ch of d) {
|
|
118
118
|
const separator = SEPARATORS.has(ch) || isCommand(ch) || startsNumber(cur, ch);
|
|
119
119
|
if (separator && cur !== "") {
|
|
120
|
-
|
|
120
|
+
out3.push(cur);
|
|
121
121
|
cur = "";
|
|
122
122
|
}
|
|
123
123
|
if (isCommand(ch)) {
|
|
124
|
-
|
|
124
|
+
out3.push(ch);
|
|
125
125
|
} else if (!SEPARATORS.has(ch)) {
|
|
126
126
|
cur += ch;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
return cur !== "" ? [...
|
|
129
|
+
return cur !== "" ? [...out3, cur] : out3;
|
|
130
130
|
}
|
|
131
131
|
function vecAngle(ux, uy, vx, vy) {
|
|
132
132
|
return Math.atan2(ux * vy - uy * vx, ux * vx + uy * vy);
|
|
@@ -177,9 +177,9 @@ var arcTo = (c, rel) => {
|
|
|
177
177
|
const radii = { x: num(c), y: num(c) };
|
|
178
178
|
const phiDeg = num(c);
|
|
179
179
|
const large = num(c) !== 0;
|
|
180
|
-
const
|
|
180
|
+
const sweep2 = num(c) !== 0;
|
|
181
181
|
const end = pt(c, rel);
|
|
182
|
-
for (const p of arcPoints(c.cur, { radii, phiDeg, large, sweep }, end)) {
|
|
182
|
+
for (const p of arcPoints(c.cur, { radii, phiDeg, large, sweep: sweep2 }, end)) {
|
|
183
183
|
push(c, p);
|
|
184
184
|
}
|
|
185
185
|
};
|
|
@@ -262,11 +262,11 @@ function renderPng(svg2, width, fontFiles = []) {
|
|
|
262
262
|
return new Resvg(svg2, options(width, fontFiles)).render().asPng();
|
|
263
263
|
}
|
|
264
264
|
function alphaMask(bmp) {
|
|
265
|
-
const
|
|
266
|
-
for (let i = 0; i <
|
|
267
|
-
|
|
265
|
+
const out3 = new Uint8Array(bmp.width * bmp.height);
|
|
266
|
+
for (let i = 0; i < out3.length; i++) {
|
|
267
|
+
out3[i] = (bmp.data[i * 4 + 3] ?? 0) >= HALF ? 1 : 0;
|
|
268
268
|
}
|
|
269
|
-
return
|
|
269
|
+
return out3;
|
|
270
270
|
}
|
|
271
271
|
var onWhite = (data, i) => {
|
|
272
272
|
const a = (data[i + 3] ?? 0) / WHITE;
|
|
@@ -519,7 +519,7 @@ function targetsOf(beat, layerNames) {
|
|
|
519
519
|
if (!beat.layers) {
|
|
520
520
|
return [...layerNames];
|
|
521
521
|
}
|
|
522
|
-
return beat.layers.includes(MARK_TARGET) ? [MARK_TARGET] : layerNames.filter((
|
|
522
|
+
return beat.layers.includes(MARK_TARGET) ? [MARK_TARGET] : layerNames.filter((n4) => beat.layers?.includes(n4));
|
|
523
523
|
}
|
|
524
524
|
function schedule(beat, layerNames) {
|
|
525
525
|
return targetsOf(beat, layerNames).map((target, k) => ({ target, delayMs: (beat.delayMs ?? 0) + k * (beat.stepMs ?? 0), durationMs: beat.durationMs }));
|
|
@@ -527,9 +527,9 @@ function schedule(beat, layerNames) {
|
|
|
527
527
|
function totalMs(beats, layerNames) {
|
|
528
528
|
return Math.max(0, ...beats.flatMap((b) => schedule(b, layerNames).map((s) => s.delayMs + s.durationMs)));
|
|
529
529
|
}
|
|
530
|
-
function fitBeat(beat,
|
|
530
|
+
function fitBeat(beat, n4, capMs) {
|
|
531
531
|
const room = capMs - (beat.delayMs ?? 0) - beat.durationMs;
|
|
532
|
-
const step2 =
|
|
532
|
+
const step2 = n4 > 1 ? Math.min(beat.stepMs ?? 0, Math.max(0, Math.floor(room / (n4 - 1)))) : beat.stepMs ?? 0;
|
|
533
533
|
return { ...beat, stepMs: step2 };
|
|
534
534
|
}
|
|
535
535
|
function morphClashes(beats, layerNames) {
|
|
@@ -665,7 +665,7 @@ function resolveMotion(raw, layerNames, size) {
|
|
|
665
665
|
const micro = resolve("micro", raw?.micro, ctx);
|
|
666
666
|
const wordmark = toWordmark(raw?.wordmark);
|
|
667
667
|
const errors = [
|
|
668
|
-
...[...roles.base, ...roles.parts].filter((
|
|
668
|
+
...[...roles.base, ...roles.parts].filter((n4) => !layerNames.includes(n4)).map((n4) => `motion.roles names unknown layer "${n4}"`),
|
|
669
669
|
...[intro.error, micro.error].filter((e) => e !== void 0),
|
|
670
670
|
...known(WORDMARK_RECIPES, "wordmark", wordmark?.recipe),
|
|
671
671
|
...known(IDLE_RECIPES, "idle", raw?.idle)
|
|
@@ -768,16 +768,16 @@ function polygonsToD(polys) {
|
|
|
768
768
|
const ring = (poly) => poly.map(point).join("L");
|
|
769
769
|
return polys.map((poly) => `M${ring(poly)}Z`).join("");
|
|
770
770
|
}
|
|
771
|
-
function resample(poly,
|
|
771
|
+
function resample(poly, n4) {
|
|
772
772
|
const first = poly[0] ?? { x: 0, y: 0 };
|
|
773
773
|
const closed = [...poly, first];
|
|
774
774
|
const lengths = closed.slice(1).map((p, k) => Math.hypot(p.x - (closed[k]?.x ?? 0), p.y - (closed[k]?.y ?? 0)));
|
|
775
775
|
const total = lengths.reduce((a, b) => a + b, 0);
|
|
776
|
-
const
|
|
776
|
+
const out3 = [];
|
|
777
777
|
let seg = 0;
|
|
778
778
|
let walked = 0;
|
|
779
|
-
for (let k = 0; k <
|
|
780
|
-
const target = total * k /
|
|
779
|
+
for (let k = 0; k < n4; k++) {
|
|
780
|
+
const target = total * k / n4;
|
|
781
781
|
while (seg < lengths.length - 1 && walked + (lengths[seg] ?? 0) < target) {
|
|
782
782
|
walked += lengths[seg] ?? 0;
|
|
783
783
|
seg++;
|
|
@@ -786,19 +786,19 @@ function resample(poly, n2) {
|
|
|
786
786
|
const b = closed[seg + 1] ?? a;
|
|
787
787
|
const len = lengths[seg] ?? 0;
|
|
788
788
|
const t = len > 0 ? (target - walked) / len : 0;
|
|
789
|
-
|
|
789
|
+
out3.push({ x: a.x + (b.x - a.x) * t, y: a.y + (b.y - a.y) * t });
|
|
790
790
|
}
|
|
791
|
-
return
|
|
791
|
+
return out3;
|
|
792
792
|
}
|
|
793
|
-
function circlePoints(c, r,
|
|
794
|
-
return Array.from({ length:
|
|
795
|
-
const t = -Math.PI / 2 + 2 * Math.PI * k /
|
|
793
|
+
function circlePoints(c, r, n4) {
|
|
794
|
+
return Array.from({ length: n4 }, (_, k) => {
|
|
795
|
+
const t = -Math.PI / 2 + 2 * Math.PI * k / n4;
|
|
796
796
|
return { x: c.x + r * Math.cos(t), y: c.y + r * Math.sin(t) };
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
function centroid(pts) {
|
|
800
|
-
const
|
|
801
|
-
return { x: pts.reduce((s, p) => s + p.x, 0) /
|
|
800
|
+
const n4 = Math.max(1, pts.length);
|
|
801
|
+
return { x: pts.reduce((s, p) => s + p.x, 0) / n4, y: pts.reduce((s, p) => s + p.y, 0) / n4 };
|
|
802
802
|
}
|
|
803
803
|
|
|
804
804
|
// src/generate/shapes.ts
|
|
@@ -806,12 +806,12 @@ var CIRCLE_N = 48;
|
|
|
806
806
|
var ORIGIN = { x: 0, y: 0 };
|
|
807
807
|
var SQRT3_2 = Math.sqrt(3) / 2;
|
|
808
808
|
var FACE_SHRINK = 0.9;
|
|
809
|
-
var ngon = (
|
|
809
|
+
var ngon = (n4, r, start = -Math.PI / 2) => Array.from({ length: n4 }, (_, k) => ({ x: r * Math.cos(start + 2 * Math.PI * k / n4), y: r * Math.sin(start + 2 * Math.PI * k / n4) }));
|
|
810
810
|
var shrink = (poly, s) => {
|
|
811
811
|
const c = poly.reduce((a, p) => ({ x: a.x + p.x / poly.length, y: a.y + p.y / poly.length }), ORIGIN);
|
|
812
812
|
return poly.map((p) => ({ x: c.x + (p.x - c.x) * s, y: c.y + (p.y - c.y) * s }));
|
|
813
813
|
};
|
|
814
|
-
var arcPts = (r, from, to,
|
|
814
|
+
var arcPts = (r, from, to, n4) => Array.from({ length: n4 + 1 }, (_, k) => ({ x: r * Math.cos(from + (to - from) * k / n4), y: r * Math.sin(from + (to - from) * k / n4) }));
|
|
815
815
|
function crescent(dx = 0.36, r = 0.83) {
|
|
816
816
|
const ix = (1 - r * r + dx * dx) / (2 * dx);
|
|
817
817
|
const theta = Math.acos(Math.min(1, ix));
|
|
@@ -828,7 +828,7 @@ function cubeFaces() {
|
|
|
828
828
|
}
|
|
829
829
|
var band = (outer, inner, start, end) => [[...arcPts(outer, start, end, CIRCLE_N), ...arcPts(inner, end, start, CIRCLE_N)]];
|
|
830
830
|
var rect = (x, y, w, h) => [{ x, y }, { x: x + w, y }, { x: x + w, y: y + h }, { x, y: y + h }];
|
|
831
|
-
var star = (
|
|
831
|
+
var star = (n4, inner) => ngon(2 * n4, 1).map((p, k) => k % 2 === 1 ? { x: p.x * inner, y: p.y * inner } : p);
|
|
832
832
|
var wave = () => {
|
|
833
833
|
const xs = Array.from({ length: 25 }, (_, k) => -1 + k / 12);
|
|
834
834
|
const back = [...xs];
|
|
@@ -888,9 +888,9 @@ var COMBINATORS = {
|
|
|
888
888
|
return [...parts(a, 0.72, 0, 0, "a"), ...parts(b, 0.24, 0.82 * Math.cos(t), 0.82 * Math.sin(t), "b")];
|
|
889
889
|
},
|
|
890
890
|
repeat: (r, a) => {
|
|
891
|
-
const
|
|
892
|
-
return Array.from({ length:
|
|
893
|
-
const t = -Math.PI / 2 + 2 * Math.PI * k /
|
|
891
|
+
const n4 = pick(r, [3, 4, 5, 6]);
|
|
892
|
+
return Array.from({ length: n4 }, (_, k) => {
|
|
893
|
+
const t = -Math.PI / 2 + 2 * Math.PI * k / n4;
|
|
894
894
|
return parts(a, 0.34, 0.6 * Math.cos(t), 0.6 * Math.sin(t), k % 2 === 0 ? "a" : "b").map((p) => ({ ...p, name: `${p.name}-${k}` }));
|
|
895
895
|
}).flat();
|
|
896
896
|
},
|
|
@@ -915,8 +915,8 @@ function oneVariant(r, id) {
|
|
|
915
915
|
const a = pick(r, NAMES);
|
|
916
916
|
const b = pick(r, NAMES);
|
|
917
917
|
const deg = pick(r, ANGLES);
|
|
918
|
-
const
|
|
919
|
-
const placed =
|
|
918
|
+
const build2 = COMBINATORS[combinator] ?? COMBINATORS["single"];
|
|
919
|
+
const placed = build2 ? build2(r, a, b) : [];
|
|
920
920
|
const unary = combinator === "single" || combinator === "repeat" || combinator === "mirror";
|
|
921
921
|
const args = (unary ? [a] : [a, b]).join(",");
|
|
922
922
|
const recipe = `${combinator}(${args}) rotate ${deg}`;
|
|
@@ -935,37 +935,37 @@ var MIN_CONTRAST = 3;
|
|
|
935
935
|
var MIN_CVD_DELTA_E = 10;
|
|
936
936
|
var bgOf = (colours) => colours["background"] ?? "#ffffff";
|
|
937
937
|
function contrastFailures(palette, roles) {
|
|
938
|
-
const
|
|
938
|
+
const out3 = [];
|
|
939
939
|
for (const [mode, colours] of [["light", palette.light], ["dark", palette.dark]]) {
|
|
940
940
|
for (const role of roles) {
|
|
941
941
|
const hex = colours[role];
|
|
942
942
|
if (hex === void 0) {
|
|
943
|
-
|
|
943
|
+
out3.push(`contrast: ${mode} has no colour for "${role}"`);
|
|
944
944
|
} else if (contrast(hex, bgOf(colours)) < MIN_CONTRAST) {
|
|
945
|
-
|
|
945
|
+
out3.push(`contrast: ${mode} "${role}" ${hex} is ${contrast(hex, bgOf(colours)).toFixed(2)}:1 on ${bgOf(colours)}`);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
|
-
return
|
|
949
|
+
return out3;
|
|
950
950
|
}
|
|
951
951
|
function cvdModeFailures(colours, roles, mode) {
|
|
952
|
-
const
|
|
952
|
+
const out3 = [];
|
|
953
953
|
const hexes = [...new Set(roles.map((r) => colours[r]).filter((h) => h !== void 0))];
|
|
954
954
|
for (const kind of CVD_KINDS) {
|
|
955
955
|
const sim = hexes.map((h) => simulateCvd(h, kind));
|
|
956
956
|
const bg = simulateCvd(bgOf(colours), kind);
|
|
957
957
|
sim.forEach((s, i) => {
|
|
958
958
|
if (contrast(s, bg) < MIN_CONTRAST) {
|
|
959
|
-
|
|
959
|
+
out3.push(`cvd: ${mode} ${hexes[i] ?? ""} drops under 3:1 for ${kind}`);
|
|
960
960
|
}
|
|
961
961
|
sim.slice(i + 1).forEach((t, j) => {
|
|
962
962
|
if (deltaE(s, t) < MIN_CVD_DELTA_E) {
|
|
963
|
-
|
|
963
|
+
out3.push(`cvd: ${mode} ${hexes[i] ?? ""} and ${hexes[i + j + 1] ?? ""} look the same for ${kind}`);
|
|
964
964
|
}
|
|
965
965
|
});
|
|
966
966
|
});
|
|
967
967
|
}
|
|
968
|
-
return
|
|
968
|
+
return out3;
|
|
969
969
|
}
|
|
970
970
|
function cvdFailures(palette, roles) {
|
|
971
971
|
return [...cvdModeFailures(palette.light, roles, "light"), ...cvdModeFailures(palette.dark, roles, "dark")];
|
|
@@ -1008,10 +1008,10 @@ function maskBox(mask, w, h) {
|
|
|
1008
1008
|
return x1 < 0 ? null : { x: x0, y: y0, w: x1 - x0 + 1, h: y1 - y0 + 1 };
|
|
1009
1009
|
}
|
|
1010
1010
|
function normalise(mask, w, h) {
|
|
1011
|
-
const
|
|
1011
|
+
const out3 = new Uint8Array(GRID * GRID);
|
|
1012
1012
|
const box = maskBox(mask, w, h);
|
|
1013
1013
|
if (!box) {
|
|
1014
|
-
return
|
|
1014
|
+
return out3;
|
|
1015
1015
|
}
|
|
1016
1016
|
const side = Math.max(box.w, box.h);
|
|
1017
1017
|
const ox = box.x - (side - box.w) / 2;
|
|
@@ -1024,21 +1024,21 @@ function normalise(mask, w, h) {
|
|
|
1024
1024
|
const py = Math.floor(oy + (gy + (Math.floor(s / SAMPLES) + 0.5) / SAMPLES) * side / GRID);
|
|
1025
1025
|
hits += px3 >= 0 && py >= 0 && px3 < w && py < h ? mask[py * w + px3] ?? 0 : 0;
|
|
1026
1026
|
}
|
|
1027
|
-
|
|
1027
|
+
out3[gy * GRID + gx] = hits >= MAJORITY ? 1 : 0;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
-
return
|
|
1030
|
+
return out3;
|
|
1031
1031
|
}
|
|
1032
1032
|
var rot90 = (g) => g.map((_, i) => g[(GRID - 1 - i % GRID) * GRID + Math.floor(i / GRID)] ?? 0);
|
|
1033
1033
|
var mirror = (g) => g.map((_, i) => g[Math.floor(i / GRID) * GRID + (GRID - 1 - i % GRID)] ?? 0);
|
|
1034
1034
|
function orientations(g) {
|
|
1035
|
-
const
|
|
1035
|
+
const out3 = [];
|
|
1036
1036
|
let cur = g;
|
|
1037
1037
|
for (let k = 0; k < 4; k++) {
|
|
1038
|
-
|
|
1038
|
+
out3.push(cur, mirror(cur));
|
|
1039
1039
|
cur = rot90(cur);
|
|
1040
1040
|
}
|
|
1041
|
-
return
|
|
1041
|
+
return out3;
|
|
1042
1042
|
}
|
|
1043
1043
|
var cell = (g, x, y) => x >= 0 && y >= 0 && x < GRID && y < GRID ? g[y * GRID + x] ?? 0 : 0;
|
|
1044
1044
|
function iouAt(a, b, dx, dy) {
|
|
@@ -1080,8 +1080,8 @@ function visibleShare(tile, ink2) {
|
|
|
1080
1080
|
// src/checks/symbols.ts
|
|
1081
1081
|
var svg = (body) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">${body}</svg>`;
|
|
1082
1082
|
var crescentBody = (dx, r) => `<mask id="c"><rect width="100" height="100" fill="#fff"/><circle cx="${50 + dx}" cy="50" r="${r}" fill="#000"/></mask><circle cx="50" cy="50" r="40" mask="url(#c)"/>`;
|
|
1083
|
-
var starPoints = (cx, cy, r,
|
|
1084
|
-
const t = -Math.PI / 2 + Math.PI * k /
|
|
1083
|
+
var starPoints = (cx, cy, r, n4, inner) => Array.from({ length: 2 * n4 }, (_, k) => {
|
|
1084
|
+
const t = -Math.PI / 2 + Math.PI * k / n4;
|
|
1085
1085
|
const rr = k % 2 === 0 ? r : r * inner;
|
|
1086
1086
|
return `${(cx + rr * Math.cos(t)).toFixed(2)},${(cy + rr * Math.sin(t)).toFixed(2)}`;
|
|
1087
1087
|
}).join(" ");
|
|
@@ -1177,18 +1177,18 @@ var MAX_BOX_FILL = 0.92;
|
|
|
1177
1177
|
var ONE_COLOUR_SIZE = 64;
|
|
1178
1178
|
var ink = (mask) => mask.reduce((s, v) => s + v, 0);
|
|
1179
1179
|
function legibility(mark, size) {
|
|
1180
|
-
const
|
|
1180
|
+
const out3 = [];
|
|
1181
1181
|
const cover = ink(alphaMask(renderSvg(inkSvg(mark), size))) / (size * size);
|
|
1182
1182
|
if (cover < MIN_COVER || cover > MAX_COVER) {
|
|
1183
|
-
|
|
1183
|
+
out3.push(`legible${size}: ink covers ${(cover * 100).toFixed(0)}% of the ${size} px tile`);
|
|
1184
1184
|
}
|
|
1185
1185
|
mark.layers.forEach((layer, i) => {
|
|
1186
1186
|
const px3 = ink(alphaMask(renderSvg(inkSvg(mark, i), size)));
|
|
1187
1187
|
if (px3 < (MIN_LAYER_PX[size] ?? 1)) {
|
|
1188
|
-
|
|
1188
|
+
out3.push(`legible${size}: layer "${layer.name}" is ${px3} px, lost at ${size} px`);
|
|
1189
1189
|
}
|
|
1190
1190
|
});
|
|
1191
|
-
return
|
|
1191
|
+
return out3;
|
|
1192
1192
|
}
|
|
1193
1193
|
function oneColour(mark) {
|
|
1194
1194
|
const mask = alphaMask(renderSvg(inkSvg(mark), ONE_COLOUR_SIZE));
|
|
@@ -1204,8 +1204,8 @@ function reversed(mark, palette) {
|
|
|
1204
1204
|
const body = markBody(mark, palette, "light" /* Light */, { colourOverride: ink2 });
|
|
1205
1205
|
const svg2 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${mark.viewBox}"><rect x="${vb.x}" y="${vb.y}" width="${vb.w}" height="${vb.h}" fill="${bg}"/>${body}</svg>`;
|
|
1206
1206
|
const shown = visibleShare(renderSvg(svg2, ONE_COLOUR_SIZE), renderSvg(inkSvg(mark), ONE_COLOUR_SIZE));
|
|
1207
|
-
const
|
|
1208
|
-
return shown < MIN_REVERSED_SHOWN ? [...
|
|
1207
|
+
const out3 = contrast(ink2, bg) < MIN_CONTRAST ? [`reversed: ${ink2} on ${bg} is under 3:1`] : [];
|
|
1208
|
+
return shown < MIN_REVERSED_SHOWN ? [...out3, `reversed: only ${(shown * 100).toFixed(0)}% of the mark shows on ${bg}`] : out3;
|
|
1209
1209
|
}
|
|
1210
1210
|
function runChecks(mark, palette) {
|
|
1211
1211
|
const roles = rolesOf(mark);
|
|
@@ -1236,11 +1236,11 @@ function tokenPools(t) {
|
|
|
1236
1236
|
dark: dark.filter((h) => contrast(h, t.dark.background) >= MIN_CONTRAST)
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
|
-
function candidate(t, roles,
|
|
1239
|
+
function candidate(t, roles, pick3, name) {
|
|
1240
1240
|
const light = { background: t.light.background, text: t.light.text };
|
|
1241
1241
|
const dark = { background: t.dark.background, text: t.dark.text };
|
|
1242
1242
|
roles.forEach((role, j) => {
|
|
1243
|
-
const [l, d] =
|
|
1243
|
+
const [l, d] = pick3(j);
|
|
1244
1244
|
light[role] = l;
|
|
1245
1245
|
dark[role] = d;
|
|
1246
1246
|
});
|
|
@@ -1248,34 +1248,34 @@ function candidate(t, roles, pick2, name) {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
function candidates(t, roles, tokensId) {
|
|
1250
1250
|
const { light, dark } = tokenPools(t);
|
|
1251
|
-
const
|
|
1251
|
+
const out3 = [];
|
|
1252
1252
|
const nl = light.length;
|
|
1253
1253
|
const nd = dark.length;
|
|
1254
1254
|
for (let k = 0; k < nl * nd; k++) {
|
|
1255
1255
|
const li = k % nl;
|
|
1256
1256
|
const di = Math.floor(k / nl);
|
|
1257
|
-
|
|
1257
|
+
out3.push(candidate(t, roles, (j) => [light[(li + j) % nl] ?? "", dark[(di + j) % nd] ?? ""], `${tokensId}-${li}${di}`));
|
|
1258
1258
|
}
|
|
1259
|
-
light.forEach((l, i) =>
|
|
1260
|
-
return
|
|
1259
|
+
light.forEach((l, i) => out3.push(candidate(t, roles, () => [l, dark[i % nd] ?? ""], `${tokensId}-mono-${i}`)));
|
|
1260
|
+
return out3;
|
|
1261
1261
|
}
|
|
1262
1262
|
function paletteVariants(mark, tokensId, count = 5) {
|
|
1263
1263
|
const t = presetOf(tokensId);
|
|
1264
1264
|
const roles = rolesOf(mark);
|
|
1265
1265
|
const seen = /* @__PURE__ */ new Set();
|
|
1266
|
-
const
|
|
1266
|
+
const out3 = [];
|
|
1267
1267
|
for (const p of candidates(t, roles, tokensId)) {
|
|
1268
1268
|
const key2 = JSON.stringify([p.light, p.dark]);
|
|
1269
1269
|
const passes = contrastFailures(p, roles).length === 0 && cvdFailures(p, roles).length === 0;
|
|
1270
1270
|
if (passes && !seen.has(key2)) {
|
|
1271
1271
|
seen.add(key2);
|
|
1272
|
-
|
|
1272
|
+
out3.push(p);
|
|
1273
1273
|
}
|
|
1274
|
-
if (
|
|
1274
|
+
if (out3.length >= count) {
|
|
1275
1275
|
break;
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
return
|
|
1278
|
+
return out3;
|
|
1279
1279
|
}
|
|
1280
1280
|
function generatorPalette(tokensId) {
|
|
1281
1281
|
const t = presetOf(tokensId);
|
|
@@ -1351,15 +1351,15 @@ function reduced(c, b) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
var offsets = (advances) => advances.map((_, i) => advances.slice(0, i).reduce((s, a) => s + a, 0));
|
|
1353
1353
|
function wordmarkReveal(name, options2) {
|
|
1354
|
-
const
|
|
1355
|
-
if (!
|
|
1354
|
+
const build2 = RECIPES[name];
|
|
1355
|
+
if (!build2) {
|
|
1356
1356
|
return null;
|
|
1357
1357
|
}
|
|
1358
1358
|
const startMs = options2.startMs ?? 0;
|
|
1359
1359
|
const width = options2.advances.reduce((s, a) => s + a, 0);
|
|
1360
1360
|
const k = (options2.fontSize ?? REFERENCE_FONT) / REFERENCE_FONT;
|
|
1361
1361
|
const c = { p: options2.prefix ?? "lkw", at: startMs, k, n: options2.advances.length, xs: offsets(options2.advances), width };
|
|
1362
|
-
const b =
|
|
1362
|
+
const b = build2(c);
|
|
1363
1363
|
return { recipe: name, startMs, durationMs: b.durationMs, classes: [...b.shown, ...b.hidden], css: b.css + reduced(c, b) };
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
@@ -1412,18 +1412,269 @@ function context(ctx) {
|
|
|
1412
1412
|
return { p: ctx.prefix ?? "lki", on: ctx.trigger ?? "lk-idle", colour: ctx.colour ?? "currentColor", cx, cy, top: vb.y, size, k, parts: parts2 };
|
|
1413
1413
|
}
|
|
1414
1414
|
function idleRecipe(name, ctx) {
|
|
1415
|
-
const
|
|
1416
|
-
if (!
|
|
1415
|
+
const build2 = RECIPES2[name];
|
|
1416
|
+
if (!build2) {
|
|
1417
1417
|
return null;
|
|
1418
1418
|
}
|
|
1419
1419
|
const c = context(ctx);
|
|
1420
|
-
const b =
|
|
1420
|
+
const b = build2(c);
|
|
1421
1421
|
return { recipe: name, durationMs: b.durationMs, overlay: b.overlay, css: `${b.css}@media (prefers-reduced-motion:reduce){.${c.on} *{animation:none!important}}` };
|
|
1422
1422
|
}
|
|
1423
1423
|
|
|
1424
|
+
// src/motion/raster/RasterIntro.ts
|
|
1425
|
+
var RasterIntro = /* @__PURE__ */ ((RasterIntro2) => {
|
|
1426
|
+
RasterIntro2["FadeUp"] = "fade-up";
|
|
1427
|
+
RasterIntro2["ScaleSettle"] = "scale-settle";
|
|
1428
|
+
RasterIntro2["MaskWipe"] = "mask-wipe";
|
|
1429
|
+
RasterIntro2["LightSweep"] = "light-sweep";
|
|
1430
|
+
RasterIntro2["FocusIn"] = "focus-in";
|
|
1431
|
+
RasterIntro2["GlowSweep"] = "glow-sweep";
|
|
1432
|
+
RasterIntro2["PunchSweep"] = "punch-sweep";
|
|
1433
|
+
RasterIntro2["DoubleSweep"] = "double-sweep";
|
|
1434
|
+
RasterIntro2["BurstSettle"] = "burst-settle";
|
|
1435
|
+
RasterIntro2["TiltSweep"] = "tilt-sweep";
|
|
1436
|
+
return RasterIntro2;
|
|
1437
|
+
})(RasterIntro || {});
|
|
1438
|
+
var RASTER_INTROS = [
|
|
1439
|
+
"fade-up" /* FadeUp */,
|
|
1440
|
+
"scale-settle" /* ScaleSettle */,
|
|
1441
|
+
"mask-wipe" /* MaskWipe */,
|
|
1442
|
+
"light-sweep" /* LightSweep */,
|
|
1443
|
+
"focus-in" /* FocusIn */,
|
|
1444
|
+
"glow-sweep" /* GlowSweep */,
|
|
1445
|
+
"punch-sweep" /* PunchSweep */,
|
|
1446
|
+
"double-sweep" /* DoubleSweep */,
|
|
1447
|
+
"burst-settle" /* BurstSettle */,
|
|
1448
|
+
"tilt-sweep" /* TiltSweep */
|
|
1449
|
+
];
|
|
1450
|
+
|
|
1451
|
+
// src/motion/raster/RasterMicro.ts
|
|
1452
|
+
var RasterMicro = /* @__PURE__ */ ((RasterMicro2) => {
|
|
1453
|
+
RasterMicro2["Pulse"] = "pulse";
|
|
1454
|
+
RasterMicro2["Glint"] = "glint";
|
|
1455
|
+
RasterMicro2["Nudge"] = "nudge";
|
|
1456
|
+
RasterMicro2["UnderlineDraw"] = "underline-draw";
|
|
1457
|
+
return RasterMicro2;
|
|
1458
|
+
})(RasterMicro || {});
|
|
1459
|
+
var RASTER_MICROS = ["pulse" /* Pulse */, "glint" /* Glint */, "nudge" /* Nudge */, "underline-draw" /* UnderlineDraw */];
|
|
1460
|
+
|
|
1461
|
+
// src/motion/raster/RasterIdle.ts
|
|
1462
|
+
var RasterIdle = /* @__PURE__ */ ((RasterIdle2) => {
|
|
1463
|
+
RasterIdle2["SlowGlint"] = "slow-glint";
|
|
1464
|
+
RasterIdle2["GlowBreathe"] = "glow-breathe";
|
|
1465
|
+
RasterIdle2["SheenDrift"] = "sheen-drift";
|
|
1466
|
+
RasterIdle2["SoftLift"] = "soft-lift";
|
|
1467
|
+
RasterIdle2["TwinShimmer"] = "twin-shimmer";
|
|
1468
|
+
return RasterIdle2;
|
|
1469
|
+
})(RasterIdle || {});
|
|
1470
|
+
var RASTER_IDLES = ["slow-glint" /* SlowGlint */, "glow-breathe" /* GlowBreathe */, "sheen-drift" /* SheenDrift */, "soft-lift" /* SoftLift */, "twin-shimmer" /* TwinShimmer */];
|
|
1471
|
+
var RASTER_LOOP_MIN_MS = 6e3;
|
|
1472
|
+
var RASTER_LOOP_MAX_MS = 8e3;
|
|
1473
|
+
|
|
1474
|
+
// src/motion/raster/RasterPhase.ts
|
|
1475
|
+
var RasterPhase = /* @__PURE__ */ ((RasterPhase2) => {
|
|
1476
|
+
RasterPhase2["Intro"] = "intro";
|
|
1477
|
+
RasterPhase2["Micro"] = "micro";
|
|
1478
|
+
RasterPhase2["Idle"] = "idle";
|
|
1479
|
+
return RasterPhase2;
|
|
1480
|
+
})(RasterPhase || {});
|
|
1481
|
+
|
|
1482
|
+
// src/motion/raster/rasterBaseCss.ts
|
|
1483
|
+
var RASTER_PREFIX = "lkr";
|
|
1484
|
+
var MASK = (p) => `-webkit-mask:var(--${p}-src) center/100% 100% no-repeat;mask:var(--${p}-src) center/100% 100% no-repeat`;
|
|
1485
|
+
function layoutCss(p) {
|
|
1486
|
+
return `.${p}{position:relative;display:inline-block;line-height:0;vertical-align:middle}.${p}-img{display:block;max-width:100%;height:auto}.${p}-lift,.${p}-nod,.${p}-in{position:relative;display:block;transform-origin:center}.${p}-fx{position:absolute;inset:0;pointer-events:none}.${p}-glow,.${p}-haze{opacity:0;filter:blur(7px)}.${p}-tint{position:absolute;inset:0;background:var(--${p}-glow);${MASK(p)}}.${p}-sheen{overflow:hidden;${MASK(p)}}.${p}-band{position:absolute;top:0;bottom:0;left:-100%;width:0;background:linear-gradient(90deg,transparent,var(--${p}-band) 50%,transparent)}`;
|
|
1487
|
+
}
|
|
1488
|
+
function burstCss(p) {
|
|
1489
|
+
const centred = "position:absolute;left:50%;top:50%;aspect-ratio:1;border-radius:50%;opacity:0;transform:translate(-50%,-50%)";
|
|
1490
|
+
const ring = "radial-gradient(closest-side,transparent 52%,black 54%,black 96%,transparent 100%)";
|
|
1491
|
+
return `.${p}-ring{${centred};height:140%;box-sizing:border-box;border:3px solid var(--${p}-glow)}.${p}-rays{${centred};height:230%;background:repeating-conic-gradient(var(--${p}-glow) 0 3deg,transparent 3deg 22.5deg);-webkit-mask:${ring};mask:${ring}}.${p}-spark{position:absolute;inset:0;opacity:0}.${p}-spark::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px;border-radius:50%;background:var(--${p}-glow)}.${p}-shadow{position:absolute;left:8%;width:84%;top:calc(100% + 5px);height:10px;border-radius:50%;background:var(--${p}-shadow);opacity:0}.${p}-line{position:absolute;left:0;width:100%;top:calc(100% + 6px);height:3px;border-radius:1.5px;background:var(--${p}-glow);transform:scaleX(0);transform-origin:left center}`;
|
|
1492
|
+
}
|
|
1493
|
+
function rasterBaseCss(options2 = {}) {
|
|
1494
|
+
const p = options2.prefix ?? RASTER_PREFIX;
|
|
1495
|
+
const vars = `.${p}{--${p}-glow:${options2.glowColour ?? "currentColor"};--${p}-band:${options2.bandColour ?? "white"};--${p}-shadow:${options2.shadowColour ?? "currentColor"}}`;
|
|
1496
|
+
const paused = `.${p}-paused,.${p}-paused *,.${p}-paused *::after{animation-play-state:paused!important}`;
|
|
1497
|
+
const reduced2 = `@media (prefers-reduced-motion:reduce){.${p},.${p} *,.${p} *::after{animation:none!important}}`;
|
|
1498
|
+
return vars + layoutCss(p) + burstCss(p) + paused + reduced2;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
// src/motion/raster/rasterSpec.ts
|
|
1502
|
+
var RASTER_EASE = {
|
|
1503
|
+
out: "cubic-bezier(.2,.8,.2,1)",
|
|
1504
|
+
spring: "cubic-bezier(.34,1.4,.64,1)",
|
|
1505
|
+
inOut: "cubic-bezier(.65,0,.35,1)",
|
|
1506
|
+
linear: "linear"
|
|
1507
|
+
};
|
|
1508
|
+
var SPARK_COUNT = 12;
|
|
1509
|
+
var SPARK_GROUPS = 4;
|
|
1510
|
+
var FADE_IN = "from{opacity:0}to{opacity:1}";
|
|
1511
|
+
var PERCENT = 100;
|
|
1512
|
+
var n2 = (v) => String(Number(v.toFixed(2)));
|
|
1513
|
+
var travel = (width) => `translateX(${n2((1 + 2 * width) / width * PERCENT)}%)`;
|
|
1514
|
+
var bandRest = (width, opacity) => `left:${n2(-1.5 * width * PERCENT)}%;width:${n2(width * PERCENT)}%;opacity:${n2(opacity)}`;
|
|
1515
|
+
function sweep(layer, band2, ms, delayMs) {
|
|
1516
|
+
const frames2 = `from{transform:translateX(0)}to{transform:${travel(band2.width)}}`;
|
|
1517
|
+
return { layer, frames: frames2, ms, delayMs, ease: RASTER_EASE.inOut, rest: bandRest(band2.width, band2.opacity) };
|
|
1518
|
+
}
|
|
1519
|
+
function drift(layer, band2, periodMs, stops) {
|
|
1520
|
+
const to = travel(band2.width);
|
|
1521
|
+
const frames2 = `0%{transform:translateX(0)}${stops[0]}%{transform:translateX(0);animation-timing-function:${RASTER_EASE.inOut}}${stops[1]}%{transform:${to}}100%{transform:${to}}`;
|
|
1522
|
+
return { layer, frames: frames2, ms: periodMs, ease: RASTER_EASE.linear, loop: true, rest: bandRest(band2.width, band2.opacity) };
|
|
1523
|
+
}
|
|
1524
|
+
function swell(layer, rest, peak, periodMs) {
|
|
1525
|
+
const ease = `animation-timing-function:${RASTER_EASE.inOut}`;
|
|
1526
|
+
return { layer, frames: `0%,100%{${rest};${ease}}50%{${peak};${ease}}`, ms: periodMs, ease: RASTER_EASE.linear, loop: true };
|
|
1527
|
+
}
|
|
1528
|
+
function animEndMs(anim) {
|
|
1529
|
+
return (anim.delayMs ?? 0) + (anim.stepMs ?? 0) * (SPARK_GROUPS - 1) + anim.ms;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
// src/motion/raster/rasterIntros.ts
|
|
1533
|
+
var { out, spring, inOut } = RASTER_EASE;
|
|
1534
|
+
var CENTRED = "translate(-50%,-50%)";
|
|
1535
|
+
var SPARK = "0%{opacity:0;transform:translate(0,0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1)}";
|
|
1536
|
+
var RASTER_INTRO_SPECS = {
|
|
1537
|
+
["fade-up" /* FadeUp */]: { anims: [{ layer: "img" /* Img */, frames: "from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}", ms: 600, ease: out }] },
|
|
1538
|
+
["scale-settle" /* ScaleSettle */]: { anims: [{ layer: "img" /* Img */, frames: "from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}", ms: 700, ease: spring }] },
|
|
1539
|
+
["mask-wipe" /* MaskWipe */]: { anims: [{ layer: "img" /* Img */, frames: "from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}", ms: 800, ease: inOut }] },
|
|
1540
|
+
["light-sweep" /* LightSweep */]: {
|
|
1541
|
+
anims: [{ layer: "img" /* Img */, frames: FADE_IN, ms: 350, ease: out }, sweep("s0" /* S0 */, { width: 0.35, opacity: 0.9 }, 750, 350)]
|
|
1542
|
+
},
|
|
1543
|
+
["focus-in" /* FocusIn */]: { anims: [{ layer: "img" /* Img */, frames: "from{opacity:0;filter:blur(10px)}to{opacity:1;filter:blur(0)}", ms: 700, ease: out }] },
|
|
1544
|
+
["glow-sweep" /* GlowSweep */]: {
|
|
1545
|
+
anims: [
|
|
1546
|
+
{ layer: "img" /* Img */, frames: FADE_IN, ms: 300, ease: out },
|
|
1547
|
+
{ layer: "glow" /* Glow */, frames: "0%,100%{opacity:0}55%{opacity:.85}", ms: 800, delayMs: 300, ease: inOut },
|
|
1548
|
+
{ layer: "in" /* In */, frames: "0%,100%{transform:none}55%{transform:scale(1.025)}", ms: 800, delayMs: 300, ease: inOut },
|
|
1549
|
+
sweep("s0" /* S0 */, { width: 0.55, opacity: 1 }, 700, 300)
|
|
1550
|
+
]
|
|
1551
|
+
},
|
|
1552
|
+
["punch-sweep" /* PunchSweep */]: {
|
|
1553
|
+
anims: [
|
|
1554
|
+
{ layer: "in" /* In */, frames: "0%{opacity:0;transform:scale(.6)}55%{opacity:1;transform:scale(1.08)}78%{transform:scale(.98)}100%{opacity:1;transform:none}", ms: 600, ease: out },
|
|
1555
|
+
sweep("s0" /* S0 */, { width: 0.4, opacity: 0.95 }, 520, 600)
|
|
1556
|
+
]
|
|
1557
|
+
},
|
|
1558
|
+
["double-sweep" /* DoubleSweep */]: {
|
|
1559
|
+
anims: [
|
|
1560
|
+
{ layer: "img" /* Img */, frames: FADE_IN, ms: 260, ease: out },
|
|
1561
|
+
sweep("s0" /* S0 */, { width: 0.13, opacity: 1 }, 330, 220),
|
|
1562
|
+
sweep("s1" /* S1 */, { width: 0.6, opacity: 0.95 }, 580, 560)
|
|
1563
|
+
]
|
|
1564
|
+
},
|
|
1565
|
+
["burst-settle" /* BurstSettle */]: {
|
|
1566
|
+
anims: [
|
|
1567
|
+
{ layer: "in" /* In */, frames: "0%{opacity:0;transform:scale(1.25)}100%{opacity:1;transform:none}", ms: 650, ease: spring },
|
|
1568
|
+
{ layer: "ring" /* Ring */, frames: `0%{opacity:.9;transform:${CENTRED} scale(.3)}100%{opacity:0;transform:${CENTRED} scale(2.1)}`, ms: 650, delayMs: 60, ease: out },
|
|
1569
|
+
{ layer: "rays" /* Rays */, frames: `0%{opacity:0;transform:${CENTRED} scale(.4)}25%{opacity:.75}100%{opacity:0;transform:${CENTRED} scale(1.25)}`, ms: 600, delayMs: 40, ease: out },
|
|
1570
|
+
{ layer: "spark" /* Spark */, frames: SPARK, ms: 720, delayMs: 120, stepMs: 40, ease: out },
|
|
1571
|
+
sweep("s0" /* S0 */, { width: 0.4, opacity: 0.95 }, 480, 660)
|
|
1572
|
+
]
|
|
1573
|
+
},
|
|
1574
|
+
["tilt-sweep" /* TiltSweep */]: {
|
|
1575
|
+
anims: [
|
|
1576
|
+
{ layer: "in" /* In */, frames: "0%{opacity:0;transform:translateY(10px) scaleX(.2) skewY(-16deg)}45%{opacity:1}65%{transform:scaleX(1.05) skewY(2deg)}100%{opacity:1;transform:none}", ms: 620, ease: out },
|
|
1577
|
+
{ layer: "shadow" /* Shadow */, frames: "0%{opacity:0;transform:scaleX(.3)}60%{opacity:.22;transform:scaleX(1.1)}100%{opacity:0;transform:none}", ms: 900, ease: out },
|
|
1578
|
+
sweep("s0" /* S0 */, { width: 0.45, opacity: 0.95 }, 520, 620)
|
|
1579
|
+
]
|
|
1580
|
+
}
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
// src/motion/raster/rasterLoops.ts
|
|
1584
|
+
var { out: out2 } = RASTER_EASE;
|
|
1585
|
+
var RASTER_MICRO_SPECS = {
|
|
1586
|
+
["pulse" /* Pulse */]: { anims: [{ layer: "nod" /* Nod */, frames: "0%,100%{transform:none}45%{transform:scale(1.04)}", ms: 240, ease: out2 }] },
|
|
1587
|
+
["glint" /* Glint */]: { anims: [sweep("m0" /* M0 */, { width: 0.35, opacity: 0.9 }, 280, 0)] },
|
|
1588
|
+
["nudge" /* Nudge */]: { anims: [{ layer: "nod" /* Nod */, frames: "0%,100%{transform:none}45%{transform:translateY(-4px)}", ms: 200, ease: out2 }] },
|
|
1589
|
+
["underline-draw" /* UnderlineDraw */]: { anims: [{ layer: "line" /* Line */, frames: "from{transform:scaleX(0)}to{transform:scaleX(1)}", ms: 260, ease: out2 }] }
|
|
1590
|
+
};
|
|
1591
|
+
var RASTER_IDLE_SPECS = {
|
|
1592
|
+
["slow-glint" /* SlowGlint */]: { periodMs: 7e3, anims: [drift("i0" /* I0 */, { width: 0.17, opacity: 0.85 }, 7e3, [0, 11])] },
|
|
1593
|
+
["glow-breathe" /* GlowBreathe */]: { periodMs: 6e3, anims: [swell("haze" /* Haze */, "opacity:0", "opacity:.3", 6e3)] },
|
|
1594
|
+
["sheen-drift" /* SheenDrift */]: { periodMs: 8e3, anims: [drift("i0" /* I0 */, { width: 0.8, opacity: 0.35 }, 8e3, [0, 45])] },
|
|
1595
|
+
["soft-lift" /* SoftLift */]: {
|
|
1596
|
+
periodMs: 6500,
|
|
1597
|
+
anims: [swell("lift" /* Lift */, "transform:none", "transform:scale(1.018)", 6500), swell("haze" /* Haze */, "opacity:0", "opacity:.14", 6500)]
|
|
1598
|
+
},
|
|
1599
|
+
["twin-shimmer" /* TwinShimmer */]: {
|
|
1600
|
+
periodMs: 8e3,
|
|
1601
|
+
anims: [drift("i0" /* I0 */, { width: 0.11, opacity: 0.7 }, 8e3, [0, 8]), drift("i1" /* I1 */, { width: 0.11, opacity: 0.7 }, 8e3, [4, 12])]
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
|
|
1605
|
+
// src/motion/raster/rasterPresets.ts
|
|
1606
|
+
function animCss(a, i, s) {
|
|
1607
|
+
const name = `${s.p}-${s.id}-${i}`;
|
|
1608
|
+
const delay = a.loop ? s.idleStartMs : a.delayMs ?? 0;
|
|
1609
|
+
const stagger2 = a.stepMs ? `;animation-delay:calc(${delay}ms + var(--k) * ${a.stepMs}ms)` : "";
|
|
1610
|
+
const play = `.${s.p}.${s.p}-play-${s.phase} .${s.p}-${a.layer}{animation:${name} ${a.ms}ms ${a.ease} ${delay}ms ${a.loop ? "infinite" : "1"} both${stagger2}}`;
|
|
1611
|
+
const rest = a.rest ? `.${s.p} .${s.p}-${a.layer}{${a.rest}}` : "";
|
|
1612
|
+
return `@keyframes ${name}{${a.frames}}${play}${rest}`;
|
|
1613
|
+
}
|
|
1614
|
+
function build(spec, name, phase, options2) {
|
|
1615
|
+
const scope = { p: options2.prefix ?? RASTER_PREFIX, id: `${phase}-${name}`, phase, idleStartMs: options2.idleStartMs ?? 0 };
|
|
1616
|
+
const css = spec.anims.map((a, i) => animCss(a, i, scope)).join("");
|
|
1617
|
+
const durationMs = spec.periodMs ?? Math.max(...spec.anims.map(animEndMs));
|
|
1618
|
+
return { name, phase, durationMs, periodMs: spec.periodMs, css };
|
|
1619
|
+
}
|
|
1620
|
+
var pick2 = (table, name, phase, options2) => {
|
|
1621
|
+
const spec = table[name];
|
|
1622
|
+
return spec ? build(spec, name, phase, options2) : null;
|
|
1623
|
+
};
|
|
1624
|
+
function rasterIntro(name, options2 = {}) {
|
|
1625
|
+
return pick2(RASTER_INTRO_SPECS, name, "intro" /* Intro */, options2);
|
|
1626
|
+
}
|
|
1627
|
+
function rasterMicro(name, options2 = {}) {
|
|
1628
|
+
return pick2(RASTER_MICRO_SPECS, name, "micro" /* Micro */, options2);
|
|
1629
|
+
}
|
|
1630
|
+
function rasterIdle(name, options2 = {}) {
|
|
1631
|
+
return pick2(RASTER_IDLE_SPECS, name, "idle" /* Idle */, options2);
|
|
1632
|
+
}
|
|
1633
|
+
var unknownNames = (pairs) => pairs.flatMap(([asked, found]) => asked !== void 0 && found === null ? [asked] : []);
|
|
1634
|
+
function rasterMotion(selection, options2 = {}) {
|
|
1635
|
+
const intro = selection.intro !== void 0 ? rasterIntro(selection.intro, options2) : null;
|
|
1636
|
+
const micro = selection.micro !== void 0 ? rasterMicro(selection.micro, options2) : null;
|
|
1637
|
+
const idleStartMs = options2.idleStartMs ?? intro?.durationMs ?? 0;
|
|
1638
|
+
const idle = selection.idle !== void 0 ? rasterIdle(selection.idle, { ...options2, idleStartMs }) : null;
|
|
1639
|
+
const unknown = unknownNames([[selection.intro, intro], [selection.micro, micro], [selection.idle, idle]]);
|
|
1640
|
+
const css = rasterBaseCss(options2) + [intro, micro, idle].map((x) => x?.css ?? "").join("");
|
|
1641
|
+
return { css, introMs: intro?.durationMs ?? 0, microMs: micro?.durationMs ?? 0, periodMs: idle?.periodMs ?? 0, unknown };
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
// src/motion/raster/rasterMarkup.ts
|
|
1645
|
+
var PERCENT2 = 100;
|
|
1646
|
+
var HEX2 = 16;
|
|
1647
|
+
var SPARK_TURN = 0.3;
|
|
1648
|
+
var SPARK_NEAR = 0.48;
|
|
1649
|
+
var SPARK_FAR = 0.62;
|
|
1650
|
+
var SPARK_HEIGHT = 1.25;
|
|
1651
|
+
var BANDS = ["s0" /* S0 */, "s1" /* S1 */, "i0" /* I0 */, "i1" /* I1 */, "m0" /* M0 */];
|
|
1652
|
+
var attr = (v) => v.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
1653
|
+
var cssUrl = (v) => v.replace(/["'()\\\s]/g, (c) => `%${c.charCodeAt(0).toString(HEX2).toUpperCase().padStart(2, "0")}`);
|
|
1654
|
+
var n3 = (v) => String(Number(v.toFixed(1)));
|
|
1655
|
+
function sparks(p) {
|
|
1656
|
+
return Array.from({ length: SPARK_COUNT }, (_, i) => {
|
|
1657
|
+
const a = i / SPARK_COUNT * Math.PI * 2 + SPARK_TURN;
|
|
1658
|
+
const r = i % 2 ? SPARK_FAR : SPARK_NEAR;
|
|
1659
|
+
const style = `--dx:${n3(Math.cos(a) * r * PERCENT2)}%;--dy:${n3(Math.sin(a) * SPARK_HEIGHT * PERCENT2)}%;--k:${i % SPARK_GROUPS}`;
|
|
1660
|
+
return `<span class="${p}-${"spark" /* Spark */}" style="${style}"></span>`;
|
|
1661
|
+
}).join("");
|
|
1662
|
+
}
|
|
1663
|
+
function rasterMarkup(src, alt, options2 = {}) {
|
|
1664
|
+
const p = options2.prefix ?? RASTER_PREFIX;
|
|
1665
|
+
const size = options2.width !== void 0 ? `;width:${options2.width}` : "";
|
|
1666
|
+
const band2 = (k) => `<span class="${p}-band ${p}-${k}"></span>`;
|
|
1667
|
+
const glow = (k) => `<span class="${p}-fx ${p}-${k}"><span class="${p}-tint"></span></span>`;
|
|
1668
|
+
const img = `<span class="${p}-${"lift" /* Lift */}"><span class="${p}-${"nod" /* Nod */}"><span class="${p}-${"in" /* In */}"><img class="${p}-${"img" /* Img */}" src="${attr(src)}" alt="${attr(alt)}"></span></span></span>`;
|
|
1669
|
+
const burst = `<span class="${p}-fx"><span class="${p}-${"ring" /* Ring */}"></span><span class="${p}-${"rays" /* Rays */}"></span>${sparks(p)}</span>`;
|
|
1670
|
+
const sheen = `<span class="${p}-fx ${p}-sheen">${BANDS.map(band2).join("")}</span>`;
|
|
1671
|
+
const host = attr(`--${p}-src:url("${cssUrl(src)}")${size}`);
|
|
1672
|
+
return `<span class="${p}" style="${host}">${glow("glow" /* Glow */)}${glow("haze" /* Haze */)}${burst}<span class="${p}-${"shadow" /* Shadow */}"></span>${img}${sheen}<span class="${p}-${"line" /* Line */}"></span></span>`;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1424
1675
|
// src/motion/boldPresets.ts
|
|
1425
1676
|
var fillBox = "transform-box:fill-box;transform-origin:center";
|
|
1426
|
-
var px2 = (
|
|
1677
|
+
var px2 = (n4) => `${n4.toFixed(2)}px`;
|
|
1427
1678
|
var frames = (stops) => stops.map(([at, body]) => `${at}%{${body}}`).join("");
|
|
1428
1679
|
function outward(ctx) {
|
|
1429
1680
|
const pts = ctx.layer ? flattenPath(ctx.layer.d).flat() : [];
|
|
@@ -1565,8 +1816,8 @@ function presetFrames(beat, ctx) {
|
|
|
1565
1816
|
// src/motion/motionCss.ts
|
|
1566
1817
|
var REDUCED_MOTION = "@media (prefers-reduced-motion:reduce){*{animation:none!important}}";
|
|
1567
1818
|
var sweepClass = (index, hover) => `${hover ? "lkms" : "lks"}${index}`;
|
|
1568
|
-
var selectorOf = (target, index, hover,
|
|
1569
|
-
if (
|
|
1819
|
+
var selectorOf = (target, index, hover, sweep2) => {
|
|
1820
|
+
if (sweep2) {
|
|
1570
1821
|
return `${hover ? "svg:hover" : "svg"} .${sweepClass(index, hover)}`;
|
|
1571
1822
|
}
|
|
1572
1823
|
if (target === MARK_TARGET) {
|
|
@@ -1596,12 +1847,12 @@ function render(rules, keyframes) {
|
|
|
1596
1847
|
return `${plain}${css(all2.filter((r) => !r.supportsD))}${wrapped}${REDUCED_MOTION}`;
|
|
1597
1848
|
}
|
|
1598
1849
|
function addSlot(ctx, beat, b, slot) {
|
|
1599
|
-
const
|
|
1850
|
+
const sweep2 = beat.preset === "sweep" /* Sweep */;
|
|
1600
1851
|
const index = ctx.names.indexOf(slot.target);
|
|
1601
1852
|
const frames2 = presetFrames(beat, { layer: ctx.mark.layers[index] ?? null, markCentre: ctx.markCentre, markSize: ctx.markSize });
|
|
1602
1853
|
const suffix = slot.target === MARK_TARGET ? "m" : String(index);
|
|
1603
1854
|
const name = `lk${ctx.hover ? "m" : "i"}${b}-${suffix}`;
|
|
1604
|
-
const selector = selectorOf(slot.target, index, ctx.hover,
|
|
1855
|
+
const selector = selectorOf(slot.target, index, ctx.hover, sweep2);
|
|
1605
1856
|
const rule = ctx.rules.get(selector) ?? { selector, animations: [], extras: [], supportsD: false };
|
|
1606
1857
|
const delay = slot.delayMs > 0 ? ` ${slot.delayMs}ms` : "";
|
|
1607
1858
|
const fill = ctx.hover ? "" : " backwards";
|
|
@@ -1615,7 +1866,7 @@ function addSlot(ctx, beat, b, slot) {
|
|
|
1615
1866
|
if (beat.preset === "draw" /* Draw */) {
|
|
1616
1867
|
ctx.drawLayers.add(slot.target);
|
|
1617
1868
|
}
|
|
1618
|
-
if (
|
|
1869
|
+
if (sweep2) {
|
|
1619
1870
|
ctx.overlay.push(sweepOverlay(ctx.mark, index, beat, ctx.colour(beat.colour), ctx.hover));
|
|
1620
1871
|
}
|
|
1621
1872
|
}
|
|
@@ -1659,19 +1910,19 @@ function animatedSvg(mark, palette, mode, motion, opts) {
|
|
|
1659
1910
|
var NESTING = { "(": 1, ")": -1, "{": 1, "}": -1 };
|
|
1660
1911
|
var KEYFRAMES = "@keyframes ";
|
|
1661
1912
|
function splitTop(list) {
|
|
1662
|
-
const
|
|
1913
|
+
const out3 = [];
|
|
1663
1914
|
let depth = 0;
|
|
1664
1915
|
let cur = "";
|
|
1665
1916
|
for (const ch of list) {
|
|
1666
1917
|
depth += ch === "(" || ch === ")" ? NESTING[ch] ?? 0 : 0;
|
|
1667
1918
|
if (ch === "," && depth === 0) {
|
|
1668
|
-
|
|
1919
|
+
out3.push(cur.trim());
|
|
1669
1920
|
cur = "";
|
|
1670
1921
|
} else {
|
|
1671
1922
|
cur += ch;
|
|
1672
1923
|
}
|
|
1673
1924
|
}
|
|
1674
|
-
return cur.trim() ? [...
|
|
1925
|
+
return cur.trim() ? [...out3, cur.trim()] : out3;
|
|
1675
1926
|
}
|
|
1676
1927
|
function cutKeyframes(css) {
|
|
1677
1928
|
const bodies = /* @__PURE__ */ new Map();
|
|
@@ -1713,7 +1964,7 @@ function animationOf(anim, bodies) {
|
|
|
1713
1964
|
function parseTiming(svg2) {
|
|
1714
1965
|
const css = /<style>([\s\S]*?)<\/style>/.exec(svg2)?.[1] ?? "";
|
|
1715
1966
|
const { bodies, rest } = cutKeyframes(css);
|
|
1716
|
-
const
|
|
1967
|
+
const out3 = {};
|
|
1717
1968
|
for (const segment of rest.split("}")) {
|
|
1718
1969
|
const open = segment.lastIndexOf("{");
|
|
1719
1970
|
const decls = segment.slice(open + 1);
|
|
@@ -1722,9 +1973,9 @@ function parseTiming(svg2) {
|
|
|
1722
1973
|
if (open < 0 || at < 0 || target === null || decls.includes("none")) {
|
|
1723
1974
|
continue;
|
|
1724
1975
|
}
|
|
1725
|
-
|
|
1976
|
+
out3[target] = splitTop(decls.slice(at + "animation:".length)).map((anim) => animationOf(anim, bodies));
|
|
1726
1977
|
}
|
|
1727
|
-
return
|
|
1978
|
+
return out3;
|
|
1728
1979
|
}
|
|
1729
1980
|
|
|
1730
1981
|
// src/export/canvas.ts
|
|
@@ -1917,10 +2168,10 @@ function colourStep(brand, mark, outDir) {
|
|
|
1917
2168
|
function motionStep(mark, palette, outDir) {
|
|
1918
2169
|
const still = frame(outDir, "motion-still", mark, palette);
|
|
1919
2170
|
fs4.mkdirSync(path3.join(outDir, "motion"), { recursive: true });
|
|
1920
|
-
const
|
|
2171
|
+
const n4 = mark.layers.length;
|
|
1921
2172
|
const options2 = MOTION_OPTIONS.map((preset) => {
|
|
1922
2173
|
const base = PRESET_DEFAULTS[preset] ?? { preset, durationMs: 600 };
|
|
1923
|
-
const beat = preset === "morph-from-circle" /* MorphFromCircle */ ? { ...base, fadeIn: mark.layers.slice(1).map((l) => l.name) } : fitBeat(base,
|
|
2174
|
+
const beat = preset === "morph-from-circle" /* MorphFromCircle */ ? { ...base, fadeIn: mark.layers.slice(1).map((l) => l.name) } : fitBeat(base, n4, INTRO_CAP_MS);
|
|
1924
2175
|
const rel = `motion/${preset}.svg`;
|
|
1925
2176
|
fs4.writeFileSync(path3.join(outDir, rel), frameSvg(mark, palette, [beat]));
|
|
1926
2177
|
return option(preset, `The ${preset} intro, ${beat.durationMs} ms per layer, ends on the still.`, still, { motion: rel, targetBox: void 0 });
|
|
@@ -1958,21 +2209,21 @@ function pullBrand(source, dest) {
|
|
|
1958
2209
|
return dest;
|
|
1959
2210
|
}
|
|
1960
2211
|
function brandCopyDrift(copy, source) {
|
|
1961
|
-
const
|
|
2212
|
+
const drift2 = (reason) => ({ copy, source, reason });
|
|
1962
2213
|
if (!fs4.existsSync(source)) {
|
|
1963
|
-
return
|
|
2214
|
+
return drift2("source missing");
|
|
1964
2215
|
}
|
|
1965
2216
|
if (!fs4.existsSync(copy)) {
|
|
1966
|
-
return
|
|
2217
|
+
return drift2("copy missing");
|
|
1967
2218
|
}
|
|
1968
|
-
return normalise2(fs4.readFileSync(copy, "utf8")) === normalise2(fs4.readFileSync(source, "utf8")) ? null :
|
|
2219
|
+
return normalise2(fs4.readFileSync(copy, "utf8")) === normalise2(fs4.readFileSync(source, "utf8")) ? null : drift2("content differs");
|
|
1969
2220
|
}
|
|
1970
2221
|
|
|
1971
2222
|
// src/brand/brandCli.ts
|
|
1972
2223
|
var BRAND_USAGE = "usage: logo-kit pull-brand <source brand.json> [--out dest] | logo-kit check-brand-copy <copy> --source <source brand.json>";
|
|
1973
|
-
function brandCommand(cmd, file, flags2,
|
|
2224
|
+
function brandCommand(cmd, file, flags2, out3) {
|
|
1974
2225
|
if (cmd === "pull-brand") {
|
|
1975
|
-
|
|
2226
|
+
out3(`pulled ${pullBrand(file, flags2.get("out") ?? path3.join("brand", path3.basename(file)))}`);
|
|
1976
2227
|
return 0;
|
|
1977
2228
|
}
|
|
1978
2229
|
if (cmd !== "check-brand-copy") {
|
|
@@ -1980,27 +2231,27 @@ function brandCommand(cmd, file, flags2, out) {
|
|
|
1980
2231
|
}
|
|
1981
2232
|
const source = flags2.get("source");
|
|
1982
2233
|
if (source === void 0) {
|
|
1983
|
-
|
|
2234
|
+
out3(BRAND_USAGE);
|
|
1984
2235
|
return 2;
|
|
1985
2236
|
}
|
|
1986
|
-
const
|
|
1987
|
-
|
|
1988
|
-
return
|
|
2237
|
+
const drift2 = brandCopyDrift(file, source);
|
|
2238
|
+
out3(drift2 === null ? `brand copy matches ${source}` : `brand copy drift: ${drift2.reason} (${file} vs ${source}), run logo-kit pull-brand ${source} --out ${file}`);
|
|
2239
|
+
return drift2 === null ? 0 : 1;
|
|
1989
2240
|
}
|
|
1990
2241
|
|
|
1991
2242
|
// src/cliMain.ts
|
|
1992
2243
|
var USAGE = "usage: logo-kit <export|generate|pick|check|pull-brand|check-brand-copy> <brand.json> [--out dir] [--seed n] [--count n] [--builder build-pick-page.mjs]";
|
|
1993
2244
|
function flags(args) {
|
|
1994
|
-
const
|
|
2245
|
+
const out3 = /* @__PURE__ */ new Map();
|
|
1995
2246
|
args.forEach((a, i) => {
|
|
1996
2247
|
const next = args[i + 1];
|
|
1997
2248
|
if (a.startsWith("--") && next !== void 0) {
|
|
1998
|
-
|
|
2249
|
+
out3.set(a.slice(2), next);
|
|
1999
2250
|
}
|
|
2000
2251
|
});
|
|
2001
|
-
return
|
|
2252
|
+
return out3;
|
|
2002
2253
|
}
|
|
2003
|
-
function generate(file, f,
|
|
2254
|
+
function generate(file, f, out3) {
|
|
2004
2255
|
const brand = loadBrand(file);
|
|
2005
2256
|
const seed = Number(f.get("seed") ?? brand.generate.seed);
|
|
2006
2257
|
const count = Number(f.get("count") ?? brand.generate.count);
|
|
@@ -2014,56 +2265,56 @@ function generate(file, f, out) {
|
|
|
2014
2265
|
const report = checkVariants(seed, variants, palette);
|
|
2015
2266
|
fs4.writeFileSync(path3.join(dir, `checks-${seed}.json`), `${JSON.stringify(report, null, 2)}
|
|
2016
2267
|
`);
|
|
2017
|
-
|
|
2268
|
+
out3(`generated ${count}, passed ${report.passed.length}, dropped ${report.dropped.length} -> ${dir}`);
|
|
2018
2269
|
return 0;
|
|
2019
2270
|
}
|
|
2020
2271
|
function motionRefusal(file) {
|
|
2021
2272
|
const errors = loadBrand(file).motion.recipeErrors ?? [];
|
|
2022
2273
|
return errors.length > 0 ? `motion: ${errors.join("; ")}` : null;
|
|
2023
2274
|
}
|
|
2024
|
-
function check(file,
|
|
2275
|
+
function check(file, out3) {
|
|
2025
2276
|
const brand = loadBrand(file);
|
|
2026
2277
|
const result = runChecks(brand.mark, brand.palette);
|
|
2027
2278
|
const motion = validateMotion(brand.motion, brand.mark.layers.map((l) => l.name));
|
|
2028
|
-
|
|
2279
|
+
out3(JSON.stringify({ ...result, motion }, null, 2));
|
|
2029
2280
|
return result.pass && motion.errors.length === 0 ? 0 : 1;
|
|
2030
2281
|
}
|
|
2031
|
-
function runCli(args,
|
|
2282
|
+
function runCli(args, out3 = (line) => process.stdout.write(`${line}
|
|
2032
2283
|
`)) {
|
|
2033
2284
|
const [cmd, file] = args;
|
|
2034
2285
|
const f = flags(args);
|
|
2035
2286
|
if (file === void 0) {
|
|
2036
|
-
|
|
2287
|
+
out3(USAGE);
|
|
2037
2288
|
return 2;
|
|
2038
2289
|
}
|
|
2039
|
-
const brandExit = brandCommand(cmd, file, f,
|
|
2290
|
+
const brandExit = brandCommand(cmd, file, f, out3);
|
|
2040
2291
|
if (brandExit !== null) {
|
|
2041
2292
|
return brandExit;
|
|
2042
2293
|
}
|
|
2043
2294
|
const refusal = cmd === "export" || cmd === "generate" ? motionRefusal(file) : null;
|
|
2044
2295
|
if (refusal !== null) {
|
|
2045
|
-
|
|
2296
|
+
out3(refusal);
|
|
2046
2297
|
return 1;
|
|
2047
2298
|
}
|
|
2048
2299
|
if (cmd === "export") {
|
|
2049
2300
|
const files = exportBrand(loadBrand(file), f.get("out") ?? "export");
|
|
2050
|
-
files.forEach((x) =>
|
|
2301
|
+
files.forEach((x) => out3(`${x.file} ${x.width}x${x.height}`));
|
|
2051
2302
|
return 0;
|
|
2052
2303
|
}
|
|
2053
2304
|
if (cmd === "generate") {
|
|
2054
|
-
return generate(file, f,
|
|
2305
|
+
return generate(file, f, out3);
|
|
2055
2306
|
}
|
|
2056
2307
|
if (cmd === "pick") {
|
|
2057
2308
|
const dir = f.get("out") ?? "pick";
|
|
2058
2309
|
const spec = buildPickSpec(loadBrand(file), dir);
|
|
2059
2310
|
const builder = f.get("builder");
|
|
2060
|
-
|
|
2311
|
+
out3(builder !== void 0 ? `built ${buildPickPage(builder, dir)}` : `wrote ${spec.steps.length} steps -> ${path3.join(dir, "spec.json")}`);
|
|
2061
2312
|
return 0;
|
|
2062
2313
|
}
|
|
2063
2314
|
if (cmd === "check") {
|
|
2064
|
-
return check(file,
|
|
2315
|
+
return check(file, out3);
|
|
2065
2316
|
}
|
|
2066
|
-
|
|
2317
|
+
out3(USAGE);
|
|
2067
2318
|
return 2;
|
|
2068
2319
|
}
|
|
2069
2320
|
|
|
@@ -2117,6 +2368,6 @@ function resolveRuntime(brand) {
|
|
|
2117
2368
|
};
|
|
2118
2369
|
}
|
|
2119
2370
|
|
|
2120
|
-
export { BOLD_PRESETS, CVD_KINDS, CvdKind, IDLE_CAP_MS, IDLE_RECIPES, INTRO_CAP_MS, INTRO_PRESETS, INTRO_RECIPES, IdleRecipe, IntroRecipe, LOOKALIKE_THRESHOLD, MICRO_CAP_MS, MICRO_DEFAULTS, MICRO_PRESETS, MICRO_RECIPES, MODES, MicroRecipe, Mode, MotionPreset, PRESET_DEFAULTS, PRIMITIVES, SYMBOLS, WORDMARK_RECIPES, WordmarkRecipe, alphaMask, animatedSvg, brandCopyDrift, buildPickPage, buildPickSpec, checkVariants, contrast, deltaE, exportBrand, fitBeat, flattenPath, generateVariants, generatorPalette, geometryModule, idleRecipe, introRecipe, introSvg, loadBrand, markSvg, microRecipe, microSvg, paletteVariants, parseBrand, parseTiming, pixelDiff, pngSize, primitiveMark, pullBrand, renderPng, renderSvg, resolveMotion, resolveRuntime, resolveToken, runChecks, runCli, schedule, simulateCvd, symbolMatches, symbolScores, totalMs, validateMotion, wordmarkReveal };
|
|
2371
|
+
export { BOLD_PRESETS, CVD_KINDS, CvdKind, IDLE_CAP_MS, IDLE_RECIPES, INTRO_CAP_MS, INTRO_PRESETS, INTRO_RECIPES, IdleRecipe, IntroRecipe, LOOKALIKE_THRESHOLD, MICRO_CAP_MS, MICRO_DEFAULTS, MICRO_PRESETS, MICRO_RECIPES, MODES, MicroRecipe, Mode, MotionPreset, PRESET_DEFAULTS, PRIMITIVES, RASTER_IDLES, RASTER_INTROS, RASTER_LOOP_MAX_MS, RASTER_LOOP_MIN_MS, RASTER_MICROS, RASTER_PREFIX, RasterIdle, RasterIntro, RasterMicro, RasterPhase, SYMBOLS, WORDMARK_RECIPES, WordmarkRecipe, alphaMask, animatedSvg, brandCopyDrift, buildPickPage, buildPickSpec, checkVariants, contrast, deltaE, exportBrand, fitBeat, flattenPath, generateVariants, generatorPalette, geometryModule, idleRecipe, introRecipe, introSvg, loadBrand, markSvg, microRecipe, microSvg, paletteVariants, parseBrand, parseTiming, pixelDiff, pngSize, primitiveMark, pullBrand, rasterBaseCss, rasterIdle, rasterIntro, rasterMarkup, rasterMicro, rasterMotion, renderPng, renderSvg, resolveMotion, resolveRuntime, resolveToken, runChecks, runCli, schedule, simulateCvd, symbolMatches, symbolScores, totalMs, validateMotion, wordmarkReveal };
|
|
2121
2372
|
//# sourceMappingURL=index.js.map
|
|
2122
2373
|
//# sourceMappingURL=index.js.map
|