@kolkrabbi/design-editor 0.26.0 → 0.27.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/dist/Timeline-BObvcdXF.js +3014 -0
- package/dist/{core-CfGqY4VB.js → core-EWu8GfXL.js} +29 -29
- package/dist/core.js +3 -2
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +319 -319
- package/dist/motion-C_u7tsis.js +2295 -0
- package/dist/motion.js +1 -1
- package/package.json +6 -6
- package/dist/motion-BJ8xqUKI.js +0 -3096
- package/dist/timelinePinned-BwYq1Msi.js +0 -2164
|
@@ -0,0 +1,3014 @@
|
|
|
1
|
+
import { Cn as e, D as t, J as n, M as r, N as i, en as a, hn as o, tn as s, wn as c } from "./rolls-BGtqxVYq.js";
|
|
2
|
+
import { Button as l, Dropdown as u, Input as d, Tooltip as f, floatSurfaceClass as p, useGrabEdge as m } from "@kolkrabbi/kol-component";
|
|
3
|
+
import { Fragment as h, useEffect as g, useMemo as _, useRef as v, useState as y, useSyncExternalStore as b } from "react";
|
|
4
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
5
|
+
import { Icon as w } from "@kolkrabbi/kol-icons";
|
|
6
|
+
//#region src/kinetic/paths.js
|
|
7
|
+
var T = Math.PI * 2, E = (e) => Math.round(e * 100) / 100;
|
|
8
|
+
function D(e) {
|
|
9
|
+
return e.map((e, t) => `${t === 0 ? "M" : "L"} ${E(e[0])} ${E(e[1])}`).join(" ");
|
|
10
|
+
}
|
|
11
|
+
var O = [
|
|
12
|
+
[.12, .55],
|
|
13
|
+
[.37, .32],
|
|
14
|
+
[.63, .68],
|
|
15
|
+
[.88, .45]
|
|
16
|
+
];
|
|
17
|
+
function k(e, t, n) {
|
|
18
|
+
let r = e.map(([e, r]) => [e * t, r * n]);
|
|
19
|
+
if (r.length < 2) return `M ${E(t / 2)} ${E(n / 2)} L ${E(t / 2 + 1)} ${E(n / 2)}`;
|
|
20
|
+
let i = `M ${E(r[0][0])} ${E(r[0][1])}`;
|
|
21
|
+
for (let e = 0; e < r.length - 1; e++) {
|
|
22
|
+
let t = r[e - 1] || r[e], n = r[e], a = r[e + 1], o = r[e + 2] || r[e + 1], s = n[0] + (a[0] - t[0]) / 6, c = n[1] + (a[1] - t[1]) / 6, l = a[0] - (o[0] - n[0]) / 6, u = a[1] - (o[1] - n[1]) / 6;
|
|
23
|
+
i += ` C ${E(s)} ${E(c)} ${E(l)} ${E(u)} ${E(a[0])} ${E(a[1])}`;
|
|
24
|
+
}
|
|
25
|
+
return i;
|
|
26
|
+
}
|
|
27
|
+
var A = (e) => e === "array", j = (e) => e === "radial", M = (e) => e === "rings", N = {
|
|
28
|
+
amp: .4,
|
|
29
|
+
freq: 2,
|
|
30
|
+
turns: 3,
|
|
31
|
+
radius: .72,
|
|
32
|
+
rows: 2,
|
|
33
|
+
cols: 3,
|
|
34
|
+
count: 12,
|
|
35
|
+
inner: .12,
|
|
36
|
+
spin: 1,
|
|
37
|
+
twist: .5,
|
|
38
|
+
grow: .6
|
|
39
|
+
};
|
|
40
|
+
function P(e, t, n, r = {}) {
|
|
41
|
+
let i = t / 2, a = n / 2, o = Math.min(t, n) * .12, s = r.amp ?? N.amp, c = Math.max(1, Math.round(r.freq ?? N.freq)), l = Math.max(1, Math.round(r.turns ?? N.turns)), u = r.radius ?? N.radius;
|
|
42
|
+
switch (e) {
|
|
43
|
+
case "arc": {
|
|
44
|
+
let e = n * .62, r = e - s * n * .7;
|
|
45
|
+
return {
|
|
46
|
+
d: `M ${E(o)} ${E(e)} Q ${E(i)} ${E(r)} ${E(t - o)} ${E(e)}`,
|
|
47
|
+
closed: !1
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
case "circle": {
|
|
51
|
+
let e = Math.min(t, n) * .5 * u;
|
|
52
|
+
return {
|
|
53
|
+
d: `M ${E(i - e)} ${E(a)} A ${E(e)} ${E(e)} 0 1 1 ${E(i + e)} ${E(a)} A ${E(e)} ${E(e)} 0 1 1 ${E(i - e)} ${E(a)} Z`,
|
|
54
|
+
closed: !0
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
case "ellipse": {
|
|
58
|
+
let e = (t * .5 - o) * u, r = (n * .5 - o) * u;
|
|
59
|
+
return {
|
|
60
|
+
d: `M ${E(i - e)} ${E(a)} A ${E(e)} ${E(r)} 0 1 1 ${E(i + e)} ${E(a)} A ${E(e)} ${E(r)} 0 1 1 ${E(i - e)} ${E(a)} Z`,
|
|
61
|
+
closed: !0
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
case "sine": {
|
|
65
|
+
let e = [];
|
|
66
|
+
for (let r = 0; r <= 120; r++) {
|
|
67
|
+
let i = r / 120;
|
|
68
|
+
e.push([o + i * (t - 2 * o), a + s * n * .32 * Math.sin(i * c * T)]);
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
d: D(e),
|
|
72
|
+
closed: !1
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
case "spiral": {
|
|
76
|
+
let e = Math.min(t, n) * .45 * u, r = [];
|
|
77
|
+
for (let t = 0; t <= 420; t++) {
|
|
78
|
+
let n = t / 420, o = n * l * T, s = n * e;
|
|
79
|
+
r.push([i + Math.cos(o) * s, a + Math.sin(o) * s]);
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
d: D(r),
|
|
83
|
+
closed: !1
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
case "zigzag": {
|
|
87
|
+
let e = c * 2, r = [];
|
|
88
|
+
for (let i = 0; i <= e; i++) {
|
|
89
|
+
let c = i / e;
|
|
90
|
+
r.push([o + c * (t - 2 * o), a + (i % 2 == 0 ? -1 : 1) * s * n * .28]);
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
d: D(r),
|
|
94
|
+
closed: !1
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
case "custom": return {
|
|
98
|
+
d: k(Array.isArray(r.points) && r.points.length >= 2 ? r.points : O, t, n),
|
|
99
|
+
closed: !1
|
|
100
|
+
};
|
|
101
|
+
default: {
|
|
102
|
+
let e = a + (r.offset || 0) * n;
|
|
103
|
+
return {
|
|
104
|
+
d: `M ${E(o)} ${E(e)} L ${E(t - o)} ${E(e)}`,
|
|
105
|
+
closed: !1
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/kinetic/presets.js
|
|
112
|
+
var F = "#0b0d12", ee = "#e8e4dc", I = {
|
|
113
|
+
text: "Kinetic",
|
|
114
|
+
font: "gullhamrar",
|
|
115
|
+
fontSize: 120,
|
|
116
|
+
fill: "#e8e4dc",
|
|
117
|
+
italic: !1,
|
|
118
|
+
case: "none",
|
|
119
|
+
letterSpacing: 0,
|
|
120
|
+
align: "center",
|
|
121
|
+
multiply: 1,
|
|
122
|
+
group: null,
|
|
123
|
+
flow: "flow",
|
|
124
|
+
offset: {
|
|
125
|
+
x: 0,
|
|
126
|
+
y: 0
|
|
127
|
+
},
|
|
128
|
+
phase: 0,
|
|
129
|
+
stagger: 0,
|
|
130
|
+
vf: {},
|
|
131
|
+
opentype: {},
|
|
132
|
+
showPath: !1,
|
|
133
|
+
path: {
|
|
134
|
+
type: "line",
|
|
135
|
+
...N
|
|
136
|
+
},
|
|
137
|
+
motion: {
|
|
138
|
+
mode: "none",
|
|
139
|
+
cycles: 1,
|
|
140
|
+
phase: .5,
|
|
141
|
+
amp: .3,
|
|
142
|
+
axis: "wght",
|
|
143
|
+
field: "x"
|
|
144
|
+
},
|
|
145
|
+
motions: [],
|
|
146
|
+
morph: {
|
|
147
|
+
on: !1,
|
|
148
|
+
mode: "morph",
|
|
149
|
+
vf2: {},
|
|
150
|
+
face2: "",
|
|
151
|
+
curve: "flat",
|
|
152
|
+
blend: .5,
|
|
153
|
+
cp1: {
|
|
154
|
+
x: .33,
|
|
155
|
+
y: .33
|
|
156
|
+
},
|
|
157
|
+
cp2: {
|
|
158
|
+
x: .66,
|
|
159
|
+
y: .66
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
function L(t, n = {}) {
|
|
164
|
+
let r = c(t), i = e(r);
|
|
165
|
+
for (let e of r.axes) n[e.tag] != null && (i[e.tag] = n[e.tag]);
|
|
166
|
+
return i;
|
|
167
|
+
}
|
|
168
|
+
function R(e = {}, t = 0) {
|
|
169
|
+
let n = {
|
|
170
|
+
id: e.id || `i${t}`,
|
|
171
|
+
...I,
|
|
172
|
+
...e,
|
|
173
|
+
path: {
|
|
174
|
+
...I.path,
|
|
175
|
+
...e.path || {}
|
|
176
|
+
},
|
|
177
|
+
motion: {
|
|
178
|
+
...I.motion,
|
|
179
|
+
...e.motion || {}
|
|
180
|
+
},
|
|
181
|
+
motions: Array.isArray(e.motions) ? e.motions.map((e) => ({
|
|
182
|
+
...I.motion,
|
|
183
|
+
...e
|
|
184
|
+
})) : [],
|
|
185
|
+
offset: {
|
|
186
|
+
...I.offset,
|
|
187
|
+
...e.offset || {}
|
|
188
|
+
},
|
|
189
|
+
opentype: { ...e.opentype || {} },
|
|
190
|
+
morph: {
|
|
191
|
+
...I.morph,
|
|
192
|
+
...e.morph || {},
|
|
193
|
+
vf2: { ...e.morph?.vf2 || {} }
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
return n.vf = L(n.font, e.vf), n;
|
|
197
|
+
}
|
|
198
|
+
var z = (e) => ({
|
|
199
|
+
bg: F,
|
|
200
|
+
instances: [R({
|
|
201
|
+
font: "rot",
|
|
202
|
+
fill: ee,
|
|
203
|
+
...e
|
|
204
|
+
}, 0)]
|
|
205
|
+
}), te = "#16202E", B = (...e) => ({
|
|
206
|
+
bg: te,
|
|
207
|
+
instances: e.map((e, t) => R(e, t))
|
|
208
|
+
}), V = (e, ...t) => ({
|
|
209
|
+
bg: e,
|
|
210
|
+
instances: t.map((e, t) => R(e, t))
|
|
211
|
+
}), H = [
|
|
212
|
+
{
|
|
213
|
+
id: "sunburst",
|
|
214
|
+
label: "Sunburst",
|
|
215
|
+
sub: "Radial",
|
|
216
|
+
comp: z({
|
|
217
|
+
text: "Without a soul, is it a place?",
|
|
218
|
+
fontSize: 26,
|
|
219
|
+
vf: {
|
|
220
|
+
wdth: 100,
|
|
221
|
+
wght: 500
|
|
222
|
+
},
|
|
223
|
+
path: {
|
|
224
|
+
type: "radial",
|
|
225
|
+
count: 14,
|
|
226
|
+
inner: .1,
|
|
227
|
+
spin: 1
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: "dense-burst",
|
|
233
|
+
label: "Dense burst",
|
|
234
|
+
sub: "Radial",
|
|
235
|
+
comp: z({
|
|
236
|
+
text: "is it a place",
|
|
237
|
+
fontSize: 30,
|
|
238
|
+
vf: {
|
|
239
|
+
wdth: 90,
|
|
240
|
+
wght: 600
|
|
241
|
+
},
|
|
242
|
+
path: {
|
|
243
|
+
type: "radial",
|
|
244
|
+
count: 28,
|
|
245
|
+
inner: .06,
|
|
246
|
+
spin: 1
|
|
247
|
+
}
|
|
248
|
+
})
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: "double-twirl",
|
|
252
|
+
label: "Double twirl",
|
|
253
|
+
sub: "Radial",
|
|
254
|
+
comp: z({
|
|
255
|
+
text: "turning and turning",
|
|
256
|
+
fontSize: 24,
|
|
257
|
+
font: "malromur",
|
|
258
|
+
vf: { wght: 500 },
|
|
259
|
+
path: {
|
|
260
|
+
type: "radial",
|
|
261
|
+
count: 18,
|
|
262
|
+
inner: .12,
|
|
263
|
+
spin: 2
|
|
264
|
+
}
|
|
265
|
+
})
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
id: "pulse-burst",
|
|
269
|
+
label: "Pulse burst",
|
|
270
|
+
sub: "Radial",
|
|
271
|
+
comp: z({
|
|
272
|
+
text: "breathe in, breathe out",
|
|
273
|
+
fontSize: 26,
|
|
274
|
+
font: "gullhamrar",
|
|
275
|
+
vf: { wght: 600 },
|
|
276
|
+
path: {
|
|
277
|
+
type: "radial",
|
|
278
|
+
count: 16,
|
|
279
|
+
inner: .1,
|
|
280
|
+
spin: 1
|
|
281
|
+
},
|
|
282
|
+
motion: {
|
|
283
|
+
mode: "cascade",
|
|
284
|
+
cycles: 2,
|
|
285
|
+
phase: .5
|
|
286
|
+
}
|
|
287
|
+
})
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
id: "vortex",
|
|
291
|
+
label: "Vortex",
|
|
292
|
+
sub: "Rings",
|
|
293
|
+
comp: z({
|
|
294
|
+
text: "Does a community make a place? ",
|
|
295
|
+
fontSize: 24,
|
|
296
|
+
vf: {
|
|
297
|
+
wdth: 100,
|
|
298
|
+
wght: 500
|
|
299
|
+
},
|
|
300
|
+
path: {
|
|
301
|
+
type: "rings",
|
|
302
|
+
count: 12,
|
|
303
|
+
inner: .1,
|
|
304
|
+
radius: .94,
|
|
305
|
+
spin: 1,
|
|
306
|
+
twist: .6,
|
|
307
|
+
grow: .8
|
|
308
|
+
}
|
|
309
|
+
})
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
id: "galaxy",
|
|
313
|
+
label: "Galaxy",
|
|
314
|
+
sub: "Rings",
|
|
315
|
+
comp: z({
|
|
316
|
+
text: "spiralling inward forever ",
|
|
317
|
+
fontSize: 22,
|
|
318
|
+
font: "malromur",
|
|
319
|
+
vf: { wght: 500 },
|
|
320
|
+
path: {
|
|
321
|
+
type: "rings",
|
|
322
|
+
count: 16,
|
|
323
|
+
inner: .05,
|
|
324
|
+
radius: .96,
|
|
325
|
+
spin: 1,
|
|
326
|
+
twist: 1.25,
|
|
327
|
+
grow: .9
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
id: "wide-rings",
|
|
333
|
+
label: "Wide rings",
|
|
334
|
+
sub: "Rings",
|
|
335
|
+
comp: z({
|
|
336
|
+
text: "around and around ",
|
|
337
|
+
fontSize: 28,
|
|
338
|
+
font: "gullhamrar",
|
|
339
|
+
vf: { wght: 600 },
|
|
340
|
+
path: {
|
|
341
|
+
type: "rings",
|
|
342
|
+
count: 8,
|
|
343
|
+
inner: .18,
|
|
344
|
+
radius: .92,
|
|
345
|
+
spin: 1,
|
|
346
|
+
twist: .3,
|
|
347
|
+
grow: 1.2
|
|
348
|
+
}
|
|
349
|
+
})
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
id: "orbit",
|
|
353
|
+
label: "Orbit",
|
|
354
|
+
sub: "Path",
|
|
355
|
+
comp: z({
|
|
356
|
+
text: "KOLKRABBI · REYKJAVIK · ",
|
|
357
|
+
fontSize: 40,
|
|
358
|
+
font: "malromur",
|
|
359
|
+
vf: { wght: 500 },
|
|
360
|
+
path: {
|
|
361
|
+
type: "circle",
|
|
362
|
+
radius: .82
|
|
363
|
+
},
|
|
364
|
+
motion: {
|
|
365
|
+
mode: "orbit",
|
|
366
|
+
cycles: 1
|
|
367
|
+
}
|
|
368
|
+
})
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
id: "spiral",
|
|
372
|
+
label: "Spiral",
|
|
373
|
+
sub: "Path",
|
|
374
|
+
comp: z({
|
|
375
|
+
text: "into the spiral we go ",
|
|
376
|
+
fontSize: 30,
|
|
377
|
+
vf: {
|
|
378
|
+
wdth: 100,
|
|
379
|
+
wght: 500
|
|
380
|
+
},
|
|
381
|
+
path: {
|
|
382
|
+
type: "spiral",
|
|
383
|
+
turns: 4,
|
|
384
|
+
radius: .95
|
|
385
|
+
},
|
|
386
|
+
motion: {
|
|
387
|
+
mode: "march",
|
|
388
|
+
cycles: 1
|
|
389
|
+
}
|
|
390
|
+
})
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
id: "template",
|
|
394
|
+
label: "Template",
|
|
395
|
+
sub: "Path",
|
|
396
|
+
comp: z({
|
|
397
|
+
text: "Type here",
|
|
398
|
+
fontSize: 160,
|
|
399
|
+
vf: {
|
|
400
|
+
wdth: 100,
|
|
401
|
+
wght: 600
|
|
402
|
+
}
|
|
403
|
+
})
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
id: "big-statement",
|
|
407
|
+
label: "Flood",
|
|
408
|
+
sub: "Scenes",
|
|
409
|
+
comp: B({
|
|
410
|
+
text: "BIG",
|
|
411
|
+
font: "rot",
|
|
412
|
+
fontSize: 220,
|
|
413
|
+
vf: {
|
|
414
|
+
wdth: 140,
|
|
415
|
+
wght: 100
|
|
416
|
+
},
|
|
417
|
+
fill: "#c2502e",
|
|
418
|
+
motion: {
|
|
419
|
+
mode: "vfwave",
|
|
420
|
+
axis: "wght",
|
|
421
|
+
cycles: 1,
|
|
422
|
+
phase: .5
|
|
423
|
+
}
|
|
424
|
+
})
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
id: "ring-and-word",
|
|
428
|
+
label: "Ring",
|
|
429
|
+
sub: "Scenes",
|
|
430
|
+
comp: B({
|
|
431
|
+
id: "a",
|
|
432
|
+
text: "KOLKRABBI · REYKJAVIK · ",
|
|
433
|
+
font: "malromur",
|
|
434
|
+
fontSize: 56,
|
|
435
|
+
vf: { wght: 500 },
|
|
436
|
+
fill: "#9ec1ff",
|
|
437
|
+
path: {
|
|
438
|
+
type: "circle",
|
|
439
|
+
radius: .86
|
|
440
|
+
},
|
|
441
|
+
motion: {
|
|
442
|
+
mode: "orbit",
|
|
443
|
+
cycles: 1
|
|
444
|
+
}
|
|
445
|
+
}, {
|
|
446
|
+
id: "b",
|
|
447
|
+
text: "KOL",
|
|
448
|
+
font: "gullhamrar",
|
|
449
|
+
fontSize: 180,
|
|
450
|
+
vf: { wght: 800 },
|
|
451
|
+
fill: "#e8e4dc",
|
|
452
|
+
path: { type: "line" }
|
|
453
|
+
})
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
id: "custom-s",
|
|
457
|
+
label: "Flow",
|
|
458
|
+
sub: "Scenes",
|
|
459
|
+
comp: B({
|
|
460
|
+
text: "freeform",
|
|
461
|
+
fontSize: 96,
|
|
462
|
+
vf: { wght: 600 },
|
|
463
|
+
path: { type: "custom" },
|
|
464
|
+
showPath: !0
|
|
465
|
+
})
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
id: "malromur-wave",
|
|
469
|
+
label: "Morph",
|
|
470
|
+
sub: "Scenes",
|
|
471
|
+
comp: B({
|
|
472
|
+
text: "Malromur",
|
|
473
|
+
font: "malromur",
|
|
474
|
+
fontSize: 132,
|
|
475
|
+
vf: { wght: 300 },
|
|
476
|
+
motion: {
|
|
477
|
+
mode: "vfwave",
|
|
478
|
+
axis: "wght",
|
|
479
|
+
cycles: 2,
|
|
480
|
+
phase: .5
|
|
481
|
+
}
|
|
482
|
+
})
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
id: "flag",
|
|
486
|
+
label: "Wave",
|
|
487
|
+
sub: "Scenes",
|
|
488
|
+
comp: B({
|
|
489
|
+
text: "flag",
|
|
490
|
+
font: "rot",
|
|
491
|
+
fontSize: 168,
|
|
492
|
+
vf: {
|
|
493
|
+
wdth: 120,
|
|
494
|
+
wght: 600
|
|
495
|
+
},
|
|
496
|
+
motion: {
|
|
497
|
+
mode: "glyphwave",
|
|
498
|
+
cycles: 1,
|
|
499
|
+
phase: .5,
|
|
500
|
+
amp: .5
|
|
501
|
+
}
|
|
502
|
+
})
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
id: "sweep-grid",
|
|
506
|
+
label: "Reveal",
|
|
507
|
+
sub: "Scenes",
|
|
508
|
+
comp: B({
|
|
509
|
+
text: "KOL",
|
|
510
|
+
font: "rot",
|
|
511
|
+
fontSize: 56,
|
|
512
|
+
vf: {
|
|
513
|
+
wdth: 90,
|
|
514
|
+
wght: 500
|
|
515
|
+
},
|
|
516
|
+
fill: "#7fd1ff",
|
|
517
|
+
path: {
|
|
518
|
+
type: "array",
|
|
519
|
+
rows: 4,
|
|
520
|
+
cols: 5
|
|
521
|
+
},
|
|
522
|
+
motion: {
|
|
523
|
+
mode: "sweep",
|
|
524
|
+
field: "diagonal",
|
|
525
|
+
cycles: 1,
|
|
526
|
+
amp: .3
|
|
527
|
+
}
|
|
528
|
+
})
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
id: "baseline",
|
|
532
|
+
label: "Baseline",
|
|
533
|
+
sub: "Elements",
|
|
534
|
+
comp: B({
|
|
535
|
+
text: "Typography",
|
|
536
|
+
fontSize: 120,
|
|
537
|
+
vf: { wght: 500 }
|
|
538
|
+
})
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
id: "arc-kinetic",
|
|
542
|
+
label: "Arcs",
|
|
543
|
+
sub: "Elements",
|
|
544
|
+
comp: B({
|
|
545
|
+
text: "Kinetic",
|
|
546
|
+
fontSize: 130,
|
|
547
|
+
vf: { wght: 600 },
|
|
548
|
+
path: {
|
|
549
|
+
type: "arc",
|
|
550
|
+
amp: .45
|
|
551
|
+
}
|
|
552
|
+
})
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
id: "ellipse-loop",
|
|
556
|
+
label: "Loops",
|
|
557
|
+
sub: "Elements",
|
|
558
|
+
comp: B({
|
|
559
|
+
text: "REYKJAVIK",
|
|
560
|
+
font: "rot",
|
|
561
|
+
fontSize: 78,
|
|
562
|
+
vf: {
|
|
563
|
+
wdth: 120,
|
|
564
|
+
wght: 600
|
|
565
|
+
},
|
|
566
|
+
path: {
|
|
567
|
+
type: "ellipse",
|
|
568
|
+
radius: .92
|
|
569
|
+
},
|
|
570
|
+
motion: { mode: "orbit" }
|
|
571
|
+
})
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
id: "zigzag",
|
|
575
|
+
label: "Angular",
|
|
576
|
+
sub: "Elements",
|
|
577
|
+
comp: B({
|
|
578
|
+
text: "ZIGZAG",
|
|
579
|
+
font: "malromur",
|
|
580
|
+
fontSize: 92,
|
|
581
|
+
vf: { wght: 700 },
|
|
582
|
+
path: {
|
|
583
|
+
type: "zigzag",
|
|
584
|
+
amp: .5,
|
|
585
|
+
freq: 3
|
|
586
|
+
}
|
|
587
|
+
})
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
id: "array-grid",
|
|
591
|
+
label: "Grid",
|
|
592
|
+
sub: "Elements",
|
|
593
|
+
comp: B({
|
|
594
|
+
text: "KOL",
|
|
595
|
+
fontSize: 64,
|
|
596
|
+
vf: { wght: 600 },
|
|
597
|
+
path: {
|
|
598
|
+
type: "array",
|
|
599
|
+
rows: 3,
|
|
600
|
+
cols: 4
|
|
601
|
+
}
|
|
602
|
+
})
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
id: "weight-pulse",
|
|
606
|
+
label: "Weight",
|
|
607
|
+
sub: "Elements",
|
|
608
|
+
comp: B({
|
|
609
|
+
text: "WEIGHT",
|
|
610
|
+
fontSize: 150,
|
|
611
|
+
vf: { wght: 300 },
|
|
612
|
+
motion: {
|
|
613
|
+
mode: "vfwave",
|
|
614
|
+
axis: "wght",
|
|
615
|
+
cycles: 1,
|
|
616
|
+
phase: .6
|
|
617
|
+
}
|
|
618
|
+
})
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
id: "rot-width",
|
|
622
|
+
label: "Width",
|
|
623
|
+
sub: "Elements",
|
|
624
|
+
comp: B({
|
|
625
|
+
text: "WIDTH",
|
|
626
|
+
font: "rot",
|
|
627
|
+
fontSize: 150,
|
|
628
|
+
vf: {
|
|
629
|
+
wdth: 64,
|
|
630
|
+
wght: 600
|
|
631
|
+
},
|
|
632
|
+
motion: {
|
|
633
|
+
mode: "vfwave",
|
|
634
|
+
axis: "wdth",
|
|
635
|
+
cycles: 1,
|
|
636
|
+
phase: .6
|
|
637
|
+
}
|
|
638
|
+
})
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
id: "cascade",
|
|
642
|
+
label: "Cascade",
|
|
643
|
+
sub: "Elements",
|
|
644
|
+
comp: B({
|
|
645
|
+
text: "CASCADE",
|
|
646
|
+
fontSize: 130,
|
|
647
|
+
vf: { wght: 600 },
|
|
648
|
+
motion: {
|
|
649
|
+
mode: "cascade",
|
|
650
|
+
cycles: 1,
|
|
651
|
+
phase: .6
|
|
652
|
+
}
|
|
653
|
+
})
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
id: "baseline-mono",
|
|
657
|
+
label: "Mono line",
|
|
658
|
+
sub: "Lines",
|
|
659
|
+
comp: B({
|
|
660
|
+
text: "monospace",
|
|
661
|
+
font: "rot",
|
|
662
|
+
fontSize: 110,
|
|
663
|
+
vf: {
|
|
664
|
+
wdth: 90,
|
|
665
|
+
wght: 500
|
|
666
|
+
},
|
|
667
|
+
fill: "#7fd1ff"
|
|
668
|
+
})
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
id: "baseline-light",
|
|
672
|
+
label: "On paper",
|
|
673
|
+
sub: "Lines",
|
|
674
|
+
comp: V("#f4f1ea", {
|
|
675
|
+
text: "Reykjavik",
|
|
676
|
+
font: "malromur",
|
|
677
|
+
fontSize: 130,
|
|
678
|
+
vf: { wght: 600 },
|
|
679
|
+
fill: "#0b0b0e"
|
|
680
|
+
})
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
id: "sine-flow",
|
|
684
|
+
label: "Sine flow",
|
|
685
|
+
sub: "Curves",
|
|
686
|
+
comp: B({
|
|
687
|
+
text: "wave along",
|
|
688
|
+
font: "rot",
|
|
689
|
+
fontSize: 96,
|
|
690
|
+
vf: {
|
|
691
|
+
wdth: 90,
|
|
692
|
+
wght: 500
|
|
693
|
+
},
|
|
694
|
+
path: {
|
|
695
|
+
type: "sine",
|
|
696
|
+
amp: .4,
|
|
697
|
+
freq: 2
|
|
698
|
+
},
|
|
699
|
+
motion: {
|
|
700
|
+
mode: "march",
|
|
701
|
+
cycles: 1
|
|
702
|
+
}
|
|
703
|
+
})
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
id: "spiral-in",
|
|
707
|
+
label: "Spiral",
|
|
708
|
+
sub: "Curves",
|
|
709
|
+
comp: B({
|
|
710
|
+
text: "spiral",
|
|
711
|
+
fontSize: 88,
|
|
712
|
+
vf: { wght: 700 },
|
|
713
|
+
path: {
|
|
714
|
+
type: "spiral",
|
|
715
|
+
turns: 3
|
|
716
|
+
}
|
|
717
|
+
})
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
id: "arc-march",
|
|
721
|
+
label: "Arc march",
|
|
722
|
+
sub: "Curves",
|
|
723
|
+
comp: B({
|
|
724
|
+
text: "on the arc",
|
|
725
|
+
font: "rot",
|
|
726
|
+
fontSize: 96,
|
|
727
|
+
vf: {
|
|
728
|
+
wdth: 100,
|
|
729
|
+
wght: 500
|
|
730
|
+
},
|
|
731
|
+
path: {
|
|
732
|
+
type: "arc",
|
|
733
|
+
amp: .5
|
|
734
|
+
},
|
|
735
|
+
motion: { mode: "march" }
|
|
736
|
+
})
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
id: "arc-up",
|
|
740
|
+
label: "High arc",
|
|
741
|
+
sub: "Curves",
|
|
742
|
+
comp: B({
|
|
743
|
+
text: "over the top",
|
|
744
|
+
font: "malromur",
|
|
745
|
+
fontSize: 92,
|
|
746
|
+
vf: { wght: 600 },
|
|
747
|
+
path: {
|
|
748
|
+
type: "arc",
|
|
749
|
+
amp: .7
|
|
750
|
+
}
|
|
751
|
+
})
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
id: "arc-wide",
|
|
755
|
+
label: "Wide arc",
|
|
756
|
+
sub: "Curves",
|
|
757
|
+
comp: B({
|
|
758
|
+
text: "WIDEARC",
|
|
759
|
+
font: "rot",
|
|
760
|
+
fontSize: 96,
|
|
761
|
+
vf: {
|
|
762
|
+
wdth: 150,
|
|
763
|
+
wght: 600
|
|
764
|
+
},
|
|
765
|
+
path: {
|
|
766
|
+
type: "arc",
|
|
767
|
+
amp: .4
|
|
768
|
+
}
|
|
769
|
+
})
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
id: "sine-fast",
|
|
773
|
+
label: "Fast wave",
|
|
774
|
+
sub: "Curves",
|
|
775
|
+
comp: B({
|
|
776
|
+
text: "up and down",
|
|
777
|
+
fontSize: 90,
|
|
778
|
+
vf: { wght: 600 },
|
|
779
|
+
path: {
|
|
780
|
+
type: "sine",
|
|
781
|
+
amp: .4,
|
|
782
|
+
freq: 3
|
|
783
|
+
},
|
|
784
|
+
motion: {
|
|
785
|
+
mode: "march",
|
|
786
|
+
cycles: 2
|
|
787
|
+
}
|
|
788
|
+
})
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
id: "sine-tall",
|
|
792
|
+
label: "Tall wave",
|
|
793
|
+
sub: "Curves",
|
|
794
|
+
comp: B({
|
|
795
|
+
text: "rolling",
|
|
796
|
+
font: "rot",
|
|
797
|
+
fontSize: 100,
|
|
798
|
+
vf: {
|
|
799
|
+
wdth: 90,
|
|
800
|
+
wght: 500
|
|
801
|
+
},
|
|
802
|
+
path: {
|
|
803
|
+
type: "sine",
|
|
804
|
+
amp: .6,
|
|
805
|
+
freq: 2
|
|
806
|
+
}
|
|
807
|
+
})
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
id: "spiral-march",
|
|
811
|
+
label: "Spiral march",
|
|
812
|
+
sub: "Curves",
|
|
813
|
+
comp: B({
|
|
814
|
+
text: "into the spiral",
|
|
815
|
+
font: "rot",
|
|
816
|
+
fontSize: 72,
|
|
817
|
+
vf: {
|
|
818
|
+
wdth: 100,
|
|
819
|
+
wght: 500
|
|
820
|
+
},
|
|
821
|
+
path: {
|
|
822
|
+
type: "spiral",
|
|
823
|
+
turns: 5
|
|
824
|
+
},
|
|
825
|
+
motion: {
|
|
826
|
+
mode: "march",
|
|
827
|
+
cycles: 1
|
|
828
|
+
}
|
|
829
|
+
})
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
id: "circle-orbit",
|
|
833
|
+
label: "Circle",
|
|
834
|
+
sub: "Closed",
|
|
835
|
+
comp: B({
|
|
836
|
+
text: "KOLKRABBI",
|
|
837
|
+
font: "malromur",
|
|
838
|
+
fontSize: 80,
|
|
839
|
+
vf: { wght: 500 },
|
|
840
|
+
path: {
|
|
841
|
+
type: "circle",
|
|
842
|
+
radius: .72
|
|
843
|
+
},
|
|
844
|
+
motion: {
|
|
845
|
+
mode: "orbit",
|
|
846
|
+
cycles: 1
|
|
847
|
+
}
|
|
848
|
+
})
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
id: "circle-big",
|
|
852
|
+
label: "Big circle",
|
|
853
|
+
sub: "Closed",
|
|
854
|
+
comp: B({
|
|
855
|
+
text: "AROUND WE GO",
|
|
856
|
+
fontSize: 76,
|
|
857
|
+
vf: { wght: 600 },
|
|
858
|
+
path: {
|
|
859
|
+
type: "circle",
|
|
860
|
+
radius: .85
|
|
861
|
+
},
|
|
862
|
+
motion: { mode: "orbit" }
|
|
863
|
+
})
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
id: "circle-mono",
|
|
867
|
+
label: "Mono circle",
|
|
868
|
+
sub: "Closed",
|
|
869
|
+
comp: B({
|
|
870
|
+
text: "LOOP/LOOP/",
|
|
871
|
+
font: "rot",
|
|
872
|
+
fontSize: 72,
|
|
873
|
+
vf: {
|
|
874
|
+
wdth: 90,
|
|
875
|
+
wght: 500
|
|
876
|
+
},
|
|
877
|
+
fill: "#f6c453",
|
|
878
|
+
path: {
|
|
879
|
+
type: "circle",
|
|
880
|
+
radius: .78
|
|
881
|
+
},
|
|
882
|
+
motion: { mode: "orbit" }
|
|
883
|
+
})
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
id: "ellipse-wide",
|
|
887
|
+
label: "Wide ellipse",
|
|
888
|
+
sub: "Closed",
|
|
889
|
+
comp: B({
|
|
890
|
+
text: "ELLIPTICAL",
|
|
891
|
+
font: "malromur",
|
|
892
|
+
fontSize: 74,
|
|
893
|
+
vf: { wght: 500 },
|
|
894
|
+
path: {
|
|
895
|
+
type: "ellipse",
|
|
896
|
+
radius: 1
|
|
897
|
+
},
|
|
898
|
+
motion: { mode: "orbit" }
|
|
899
|
+
})
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
id: "zigzag-fine",
|
|
903
|
+
label: "Fine zigzag",
|
|
904
|
+
sub: "Angular",
|
|
905
|
+
comp: B({
|
|
906
|
+
text: "sawtooth",
|
|
907
|
+
font: "rot",
|
|
908
|
+
fontSize: 80,
|
|
909
|
+
vf: {
|
|
910
|
+
wdth: 90,
|
|
911
|
+
wght: 600
|
|
912
|
+
},
|
|
913
|
+
path: {
|
|
914
|
+
type: "zigzag",
|
|
915
|
+
amp: .35,
|
|
916
|
+
freq: 5
|
|
917
|
+
}
|
|
918
|
+
})
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
id: "custom-march",
|
|
922
|
+
label: "Custom march",
|
|
923
|
+
sub: "Custom",
|
|
924
|
+
comp: B({
|
|
925
|
+
text: "follow me",
|
|
926
|
+
font: "rot",
|
|
927
|
+
fontSize: 90,
|
|
928
|
+
vf: {
|
|
929
|
+
wdth: 90,
|
|
930
|
+
wght: 500
|
|
931
|
+
},
|
|
932
|
+
path: { type: "custom" },
|
|
933
|
+
motion: { mode: "march" }
|
|
934
|
+
})
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
id: "ordspor-pulse",
|
|
938
|
+
label: "Ordspor",
|
|
939
|
+
sub: "Weight",
|
|
940
|
+
comp: B({
|
|
941
|
+
text: "Ordspor",
|
|
942
|
+
font: "rot",
|
|
943
|
+
fontSize: 132,
|
|
944
|
+
vf: {
|
|
945
|
+
wdth: 90,
|
|
946
|
+
wght: 300
|
|
947
|
+
},
|
|
948
|
+
motion: {
|
|
949
|
+
mode: "vfwave",
|
|
950
|
+
axis: "wght",
|
|
951
|
+
cycles: 1,
|
|
952
|
+
phase: .7
|
|
953
|
+
}
|
|
954
|
+
})
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
id: "rot-weight",
|
|
958
|
+
label: "Rot weight",
|
|
959
|
+
sub: "Weight",
|
|
960
|
+
comp: B({
|
|
961
|
+
text: "ROT",
|
|
962
|
+
font: "rot",
|
|
963
|
+
fontSize: 200,
|
|
964
|
+
vf: {
|
|
965
|
+
wdth: 120,
|
|
966
|
+
wght: 100
|
|
967
|
+
},
|
|
968
|
+
motion: {
|
|
969
|
+
mode: "vfwave",
|
|
970
|
+
axis: "wght",
|
|
971
|
+
cycles: 1,
|
|
972
|
+
phase: .5
|
|
973
|
+
}
|
|
974
|
+
})
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
id: "weight-slow",
|
|
978
|
+
label: "Slow weight",
|
|
979
|
+
sub: "Weight",
|
|
980
|
+
comp: B({
|
|
981
|
+
text: "breathe",
|
|
982
|
+
fontSize: 150,
|
|
983
|
+
vf: { wght: 300 },
|
|
984
|
+
motion: {
|
|
985
|
+
mode: "vfwave",
|
|
986
|
+
axis: "wght",
|
|
987
|
+
cycles: 1,
|
|
988
|
+
phase: .3
|
|
989
|
+
}
|
|
990
|
+
})
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
id: "weight-fast",
|
|
994
|
+
label: "Fast weight",
|
|
995
|
+
sub: "Weight",
|
|
996
|
+
comp: B({
|
|
997
|
+
text: "PULSE",
|
|
998
|
+
fontSize: 160,
|
|
999
|
+
vf: { wght: 300 },
|
|
1000
|
+
motion: {
|
|
1001
|
+
mode: "vfwave",
|
|
1002
|
+
axis: "wght",
|
|
1003
|
+
cycles: 3,
|
|
1004
|
+
phase: .6
|
|
1005
|
+
}
|
|
1006
|
+
})
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
id: "malromur-heavy",
|
|
1010
|
+
label: "Heavy swing",
|
|
1011
|
+
sub: "Weight",
|
|
1012
|
+
comp: V("#f4f1ea", {
|
|
1013
|
+
text: "Malromur",
|
|
1014
|
+
font: "malromur",
|
|
1015
|
+
fontSize: 130,
|
|
1016
|
+
vf: { wght: 300 },
|
|
1017
|
+
fill: "#0b0b0e",
|
|
1018
|
+
motion: {
|
|
1019
|
+
mode: "vfwave",
|
|
1020
|
+
axis: "wght",
|
|
1021
|
+
cycles: 1,
|
|
1022
|
+
phase: .5
|
|
1023
|
+
}
|
|
1024
|
+
})
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
id: "ordspor-wave2",
|
|
1028
|
+
label: "Ordspor ×2",
|
|
1029
|
+
sub: "Weight",
|
|
1030
|
+
comp: B({
|
|
1031
|
+
text: "twice",
|
|
1032
|
+
font: "rot",
|
|
1033
|
+
fontSize: 150,
|
|
1034
|
+
vf: {
|
|
1035
|
+
wdth: 90,
|
|
1036
|
+
wght: 300
|
|
1037
|
+
},
|
|
1038
|
+
motion: {
|
|
1039
|
+
mode: "vfwave",
|
|
1040
|
+
axis: "wght",
|
|
1041
|
+
cycles: 2,
|
|
1042
|
+
phase: .5
|
|
1043
|
+
}
|
|
1044
|
+
})
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
id: "rot-weight2",
|
|
1048
|
+
label: "Rot weight ×2",
|
|
1049
|
+
sub: "Weight",
|
|
1050
|
+
comp: B({
|
|
1051
|
+
text: "ROT",
|
|
1052
|
+
font: "rot",
|
|
1053
|
+
fontSize: 200,
|
|
1054
|
+
vf: {
|
|
1055
|
+
wdth: 120,
|
|
1056
|
+
wght: 100
|
|
1057
|
+
},
|
|
1058
|
+
motion: {
|
|
1059
|
+
mode: "vfwave",
|
|
1060
|
+
axis: "wght",
|
|
1061
|
+
cycles: 2,
|
|
1062
|
+
phase: .4
|
|
1063
|
+
}
|
|
1064
|
+
})
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
id: "malromur-bigwave",
|
|
1068
|
+
label: "Big wave",
|
|
1069
|
+
sub: "Weight",
|
|
1070
|
+
comp: B({
|
|
1071
|
+
text: "WEIGHT",
|
|
1072
|
+
font: "malromur",
|
|
1073
|
+
fontSize: 150,
|
|
1074
|
+
vf: { wght: 300 },
|
|
1075
|
+
fill: "#f6c453",
|
|
1076
|
+
motion: {
|
|
1077
|
+
mode: "vfwave",
|
|
1078
|
+
axis: "wght",
|
|
1079
|
+
cycles: 2,
|
|
1080
|
+
phase: .7
|
|
1081
|
+
}
|
|
1082
|
+
})
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
id: "ordspor-accent",
|
|
1086
|
+
label: "Ordspor accent",
|
|
1087
|
+
sub: "Weight",
|
|
1088
|
+
comp: B({
|
|
1089
|
+
text: "Ordspor",
|
|
1090
|
+
font: "rot",
|
|
1091
|
+
fontSize: 140,
|
|
1092
|
+
vf: {
|
|
1093
|
+
wdth: 90,
|
|
1094
|
+
wght: 300
|
|
1095
|
+
},
|
|
1096
|
+
fill: "#8f5ad0",
|
|
1097
|
+
motion: {
|
|
1098
|
+
mode: "vfwave",
|
|
1099
|
+
axis: "wght",
|
|
1100
|
+
cycles: 1,
|
|
1101
|
+
phase: .6
|
|
1102
|
+
}
|
|
1103
|
+
})
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
id: "rot-dual",
|
|
1107
|
+
label: "Variable",
|
|
1108
|
+
sub: "Width",
|
|
1109
|
+
comp: B({
|
|
1110
|
+
text: "variable",
|
|
1111
|
+
font: "rot",
|
|
1112
|
+
fontSize: 124,
|
|
1113
|
+
vf: {
|
|
1114
|
+
wdth: 100,
|
|
1115
|
+
wght: 400
|
|
1116
|
+
},
|
|
1117
|
+
motion: {
|
|
1118
|
+
mode: "vfwave",
|
|
1119
|
+
axis: "wdth",
|
|
1120
|
+
cycles: 2,
|
|
1121
|
+
phase: .4
|
|
1122
|
+
}
|
|
1123
|
+
})
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
id: "rot-width-fast",
|
|
1127
|
+
label: "Width ×2",
|
|
1128
|
+
sub: "Width",
|
|
1129
|
+
comp: B({
|
|
1130
|
+
text: "STRETCH",
|
|
1131
|
+
font: "rot",
|
|
1132
|
+
fontSize: 130,
|
|
1133
|
+
vf: {
|
|
1134
|
+
wdth: 64,
|
|
1135
|
+
wght: 600
|
|
1136
|
+
},
|
|
1137
|
+
motion: {
|
|
1138
|
+
mode: "vfwave",
|
|
1139
|
+
axis: "wdth",
|
|
1140
|
+
cycles: 2,
|
|
1141
|
+
phase: .5
|
|
1142
|
+
}
|
|
1143
|
+
})
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
id: "rot-width-slow",
|
|
1147
|
+
label: "Width slow",
|
|
1148
|
+
sub: "Width",
|
|
1149
|
+
comp: B({
|
|
1150
|
+
text: "expand",
|
|
1151
|
+
font: "rot",
|
|
1152
|
+
fontSize: 130,
|
|
1153
|
+
vf: {
|
|
1154
|
+
wdth: 100,
|
|
1155
|
+
wght: 500
|
|
1156
|
+
},
|
|
1157
|
+
motion: {
|
|
1158
|
+
mode: "vfwave",
|
|
1159
|
+
axis: "wdth",
|
|
1160
|
+
cycles: 1,
|
|
1161
|
+
phase: .3
|
|
1162
|
+
}
|
|
1163
|
+
})
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
id: "morph-mtl",
|
|
1167
|
+
label: "Made to last",
|
|
1168
|
+
sub: "Morph",
|
|
1169
|
+
comp: B({
|
|
1170
|
+
text: "Made to last",
|
|
1171
|
+
font: "rot",
|
|
1172
|
+
fontSize: 150,
|
|
1173
|
+
vf: {
|
|
1174
|
+
wdth: 64,
|
|
1175
|
+
wght: 100
|
|
1176
|
+
},
|
|
1177
|
+
morph: {
|
|
1178
|
+
on: !0,
|
|
1179
|
+
mode: "morph",
|
|
1180
|
+
curve: "linear",
|
|
1181
|
+
blend: .5,
|
|
1182
|
+
vf2: {
|
|
1183
|
+
wdth: 172,
|
|
1184
|
+
wght: 900
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
})
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
id: "morph-wave",
|
|
1191
|
+
label: "Morph wave",
|
|
1192
|
+
sub: "Morph",
|
|
1193
|
+
comp: B({
|
|
1194
|
+
text: "MORPH",
|
|
1195
|
+
font: "rot",
|
|
1196
|
+
fontSize: 200,
|
|
1197
|
+
vf: {
|
|
1198
|
+
wdth: 64,
|
|
1199
|
+
wght: 200
|
|
1200
|
+
},
|
|
1201
|
+
morph: {
|
|
1202
|
+
on: !0,
|
|
1203
|
+
mode: "morph",
|
|
1204
|
+
curve: "sine",
|
|
1205
|
+
blend: .5,
|
|
1206
|
+
vf2: {
|
|
1207
|
+
wdth: 172,
|
|
1208
|
+
wght: 900
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
})
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
id: "morph-ease",
|
|
1215
|
+
label: "Heavy → light",
|
|
1216
|
+
sub: "Morph",
|
|
1217
|
+
comp: B({
|
|
1218
|
+
text: "gradient",
|
|
1219
|
+
font: "rot",
|
|
1220
|
+
fontSize: 150,
|
|
1221
|
+
vf: {
|
|
1222
|
+
wdth: 120,
|
|
1223
|
+
wght: 900
|
|
1224
|
+
},
|
|
1225
|
+
morph: {
|
|
1226
|
+
on: !0,
|
|
1227
|
+
mode: "morph",
|
|
1228
|
+
curve: "ease",
|
|
1229
|
+
blend: .5,
|
|
1230
|
+
vf2: {
|
|
1231
|
+
wdth: 120,
|
|
1232
|
+
wght: 100
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
})
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
id: "morph-random",
|
|
1239
|
+
label: "Ransom note",
|
|
1240
|
+
sub: "Morph",
|
|
1241
|
+
comp: B({
|
|
1242
|
+
text: "CHAOS",
|
|
1243
|
+
font: "rot",
|
|
1244
|
+
fontSize: 170,
|
|
1245
|
+
vf: {
|
|
1246
|
+
wdth: 100,
|
|
1247
|
+
wght: 500
|
|
1248
|
+
},
|
|
1249
|
+
morph: {
|
|
1250
|
+
on: !0,
|
|
1251
|
+
mode: "random",
|
|
1252
|
+
blend: .37
|
|
1253
|
+
}
|
|
1254
|
+
})
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
id: "morph-fade",
|
|
1258
|
+
label: "Fade A↔B",
|
|
1259
|
+
sub: "Morph",
|
|
1260
|
+
comp: B({
|
|
1261
|
+
text: "between",
|
|
1262
|
+
font: "gullhamrar",
|
|
1263
|
+
fontSize: 150,
|
|
1264
|
+
vf: { wght: 300 },
|
|
1265
|
+
morph: {
|
|
1266
|
+
on: !0,
|
|
1267
|
+
mode: "fade",
|
|
1268
|
+
blend: .5,
|
|
1269
|
+
vf2: { wght: 900 }
|
|
1270
|
+
}
|
|
1271
|
+
})
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
id: "morph-cross",
|
|
1275
|
+
label: "Cross-face",
|
|
1276
|
+
sub: "Morph",
|
|
1277
|
+
comp: B({
|
|
1278
|
+
text: "hybrid",
|
|
1279
|
+
font: "rot",
|
|
1280
|
+
fontSize: 150,
|
|
1281
|
+
vf: {
|
|
1282
|
+
wdth: 100,
|
|
1283
|
+
wght: 600
|
|
1284
|
+
},
|
|
1285
|
+
morph: {
|
|
1286
|
+
on: !0,
|
|
1287
|
+
mode: "morph",
|
|
1288
|
+
blend: .5,
|
|
1289
|
+
face2: "gullhamrar"
|
|
1290
|
+
}
|
|
1291
|
+
})
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
id: "arc-weight",
|
|
1295
|
+
label: "Morph on arc",
|
|
1296
|
+
sub: "On path",
|
|
1297
|
+
comp: B({
|
|
1298
|
+
text: "morph",
|
|
1299
|
+
fontSize: 120,
|
|
1300
|
+
path: {
|
|
1301
|
+
type: "arc",
|
|
1302
|
+
amp: .3
|
|
1303
|
+
},
|
|
1304
|
+
motion: {
|
|
1305
|
+
mode: "vfwave",
|
|
1306
|
+
axis: "wght",
|
|
1307
|
+
cycles: 1,
|
|
1308
|
+
phase: .6
|
|
1309
|
+
}
|
|
1310
|
+
})
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
id: "sine-weight",
|
|
1314
|
+
label: "Wave + weight",
|
|
1315
|
+
sub: "On path",
|
|
1316
|
+
comp: B({
|
|
1317
|
+
text: "modulated",
|
|
1318
|
+
fontSize: 92,
|
|
1319
|
+
vf: { wght: 400 },
|
|
1320
|
+
path: {
|
|
1321
|
+
type: "sine",
|
|
1322
|
+
amp: .3,
|
|
1323
|
+
freq: 2
|
|
1324
|
+
},
|
|
1325
|
+
motion: {
|
|
1326
|
+
mode: "vfwave",
|
|
1327
|
+
axis: "wght",
|
|
1328
|
+
cycles: 1,
|
|
1329
|
+
phase: .5
|
|
1330
|
+
}
|
|
1331
|
+
})
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
id: "circle-weight",
|
|
1335
|
+
label: "Ring + weight",
|
|
1336
|
+
sub: "On path",
|
|
1337
|
+
comp: B({
|
|
1338
|
+
text: "ROTATING",
|
|
1339
|
+
font: "malromur",
|
|
1340
|
+
fontSize: 78,
|
|
1341
|
+
vf: { wght: 300 },
|
|
1342
|
+
path: {
|
|
1343
|
+
type: "circle",
|
|
1344
|
+
radius: .74
|
|
1345
|
+
},
|
|
1346
|
+
motion: {
|
|
1347
|
+
mode: "vfwave",
|
|
1348
|
+
axis: "wght",
|
|
1349
|
+
cycles: 2,
|
|
1350
|
+
phase: .6
|
|
1351
|
+
}
|
|
1352
|
+
})
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
id: "arc-width",
|
|
1356
|
+
label: "Arc + width",
|
|
1357
|
+
sub: "On path",
|
|
1358
|
+
comp: B({
|
|
1359
|
+
text: "arcwidth",
|
|
1360
|
+
font: "rot",
|
|
1361
|
+
fontSize: 96,
|
|
1362
|
+
vf: {
|
|
1363
|
+
wdth: 80,
|
|
1364
|
+
wght: 600
|
|
1365
|
+
},
|
|
1366
|
+
path: {
|
|
1367
|
+
type: "arc",
|
|
1368
|
+
amp: .4
|
|
1369
|
+
},
|
|
1370
|
+
motion: {
|
|
1371
|
+
mode: "vfwave",
|
|
1372
|
+
axis: "wdth",
|
|
1373
|
+
cycles: 1,
|
|
1374
|
+
phase: .5
|
|
1375
|
+
}
|
|
1376
|
+
})
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
id: "pop",
|
|
1380
|
+
label: "Pop",
|
|
1381
|
+
sub: "Reveal",
|
|
1382
|
+
comp: B({
|
|
1383
|
+
text: "POP POP",
|
|
1384
|
+
fontSize: 130,
|
|
1385
|
+
vf: { wght: 800 },
|
|
1386
|
+
motion: {
|
|
1387
|
+
mode: "cascade",
|
|
1388
|
+
cycles: 2,
|
|
1389
|
+
phase: .8
|
|
1390
|
+
}
|
|
1391
|
+
})
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
id: "arc-cascade",
|
|
1395
|
+
label: "Curve cascade",
|
|
1396
|
+
sub: "Reveal",
|
|
1397
|
+
comp: B({
|
|
1398
|
+
text: "on a curve",
|
|
1399
|
+
font: "rot",
|
|
1400
|
+
fontSize: 100,
|
|
1401
|
+
vf: {
|
|
1402
|
+
wdth: 90,
|
|
1403
|
+
wght: 500
|
|
1404
|
+
},
|
|
1405
|
+
path: {
|
|
1406
|
+
type: "arc",
|
|
1407
|
+
amp: .4
|
|
1408
|
+
},
|
|
1409
|
+
motion: {
|
|
1410
|
+
mode: "cascade",
|
|
1411
|
+
cycles: 1,
|
|
1412
|
+
phase: .5
|
|
1413
|
+
}
|
|
1414
|
+
})
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
id: "cascade-slow",
|
|
1418
|
+
label: "Slow cascade",
|
|
1419
|
+
sub: "Reveal",
|
|
1420
|
+
comp: B({
|
|
1421
|
+
text: "unfold",
|
|
1422
|
+
fontSize: 130,
|
|
1423
|
+
vf: { wght: 600 },
|
|
1424
|
+
motion: {
|
|
1425
|
+
mode: "cascade",
|
|
1426
|
+
cycles: 1,
|
|
1427
|
+
phase: .4
|
|
1428
|
+
}
|
|
1429
|
+
})
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
id: "cascade-fast",
|
|
1433
|
+
label: "Fast cascade",
|
|
1434
|
+
sub: "Reveal",
|
|
1435
|
+
comp: B({
|
|
1436
|
+
text: "flicker",
|
|
1437
|
+
fontSize: 130,
|
|
1438
|
+
vf: { wght: 700 },
|
|
1439
|
+
motion: {
|
|
1440
|
+
mode: "cascade",
|
|
1441
|
+
cycles: 2,
|
|
1442
|
+
phase: .7
|
|
1443
|
+
}
|
|
1444
|
+
})
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
id: "typewriter",
|
|
1448
|
+
label: "Typewriter",
|
|
1449
|
+
sub: "Reveal",
|
|
1450
|
+
comp: B({
|
|
1451
|
+
text: "type_type_",
|
|
1452
|
+
font: "rot",
|
|
1453
|
+
fontSize: 100,
|
|
1454
|
+
vf: {
|
|
1455
|
+
wdth: 90,
|
|
1456
|
+
wght: 500
|
|
1457
|
+
},
|
|
1458
|
+
fill: "#7fd1ff",
|
|
1459
|
+
motion: {
|
|
1460
|
+
mode: "cascade",
|
|
1461
|
+
cycles: 1,
|
|
1462
|
+
phase: 1
|
|
1463
|
+
}
|
|
1464
|
+
})
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
id: "spiral-cascade",
|
|
1468
|
+
label: "Spiral reveal",
|
|
1469
|
+
sub: "Reveal",
|
|
1470
|
+
comp: B({
|
|
1471
|
+
text: "spiral down",
|
|
1472
|
+
fontSize: 74,
|
|
1473
|
+
vf: { wght: 600 },
|
|
1474
|
+
path: {
|
|
1475
|
+
type: "spiral",
|
|
1476
|
+
turns: 3
|
|
1477
|
+
},
|
|
1478
|
+
motion: {
|
|
1479
|
+
mode: "cascade",
|
|
1480
|
+
cycles: 1,
|
|
1481
|
+
phase: .5
|
|
1482
|
+
}
|
|
1483
|
+
})
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
id: "circle-cascade",
|
|
1487
|
+
label: "Ring reveal",
|
|
1488
|
+
sub: "Reveal",
|
|
1489
|
+
comp: B({
|
|
1490
|
+
text: "AROUND",
|
|
1491
|
+
font: "malromur",
|
|
1492
|
+
fontSize: 86,
|
|
1493
|
+
vf: { wght: 600 },
|
|
1494
|
+
path: {
|
|
1495
|
+
type: "circle",
|
|
1496
|
+
radius: .74
|
|
1497
|
+
},
|
|
1498
|
+
motion: {
|
|
1499
|
+
mode: "cascade",
|
|
1500
|
+
cycles: 1,
|
|
1501
|
+
phase: .6
|
|
1502
|
+
}
|
|
1503
|
+
})
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
id: "pop-mono",
|
|
1507
|
+
label: "Mono pop",
|
|
1508
|
+
sub: "Reveal",
|
|
1509
|
+
comp: B({
|
|
1510
|
+
text: "POP.POP.",
|
|
1511
|
+
font: "rot",
|
|
1512
|
+
fontSize: 110,
|
|
1513
|
+
vf: {
|
|
1514
|
+
wdth: 90,
|
|
1515
|
+
wght: 500
|
|
1516
|
+
},
|
|
1517
|
+
fill: "#f6c453",
|
|
1518
|
+
motion: {
|
|
1519
|
+
mode: "cascade",
|
|
1520
|
+
cycles: 2,
|
|
1521
|
+
phase: .8
|
|
1522
|
+
}
|
|
1523
|
+
})
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
id: "glyph-wave",
|
|
1527
|
+
label: "Ripple",
|
|
1528
|
+
sub: "Wave",
|
|
1529
|
+
comp: B({
|
|
1530
|
+
text: "ripple",
|
|
1531
|
+
font: "malromur",
|
|
1532
|
+
fontSize: 140,
|
|
1533
|
+
vf: { wght: 600 },
|
|
1534
|
+
motion: {
|
|
1535
|
+
mode: "glyphwave",
|
|
1536
|
+
cycles: 1,
|
|
1537
|
+
phase: .6,
|
|
1538
|
+
amp: .4
|
|
1539
|
+
}
|
|
1540
|
+
})
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
id: "sine-ripple",
|
|
1544
|
+
label: "Sine ripple",
|
|
1545
|
+
sub: "Wave",
|
|
1546
|
+
comp: B({
|
|
1547
|
+
text: "wavewave",
|
|
1548
|
+
font: "rot",
|
|
1549
|
+
fontSize: 108,
|
|
1550
|
+
vf: {
|
|
1551
|
+
wdth: 110,
|
|
1552
|
+
wght: 600
|
|
1553
|
+
},
|
|
1554
|
+
path: {
|
|
1555
|
+
type: "sine",
|
|
1556
|
+
amp: .3,
|
|
1557
|
+
freq: 2
|
|
1558
|
+
},
|
|
1559
|
+
motion: {
|
|
1560
|
+
mode: "glyphwave",
|
|
1561
|
+
amp: .3
|
|
1562
|
+
}
|
|
1563
|
+
})
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
id: "glyph-big",
|
|
1567
|
+
label: "Big ripple",
|
|
1568
|
+
sub: "Wave",
|
|
1569
|
+
comp: B({
|
|
1570
|
+
text: "WAVES",
|
|
1571
|
+
fontSize: 150,
|
|
1572
|
+
vf: { wght: 700 },
|
|
1573
|
+
motion: {
|
|
1574
|
+
mode: "glyphwave",
|
|
1575
|
+
cycles: 1,
|
|
1576
|
+
phase: .6,
|
|
1577
|
+
amp: .6
|
|
1578
|
+
}
|
|
1579
|
+
})
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
id: "glyph-fast",
|
|
1583
|
+
label: "Fast ripple",
|
|
1584
|
+
sub: "Wave",
|
|
1585
|
+
comp: B({
|
|
1586
|
+
text: "shiver",
|
|
1587
|
+
font: "malromur",
|
|
1588
|
+
fontSize: 140,
|
|
1589
|
+
vf: { wght: 600 },
|
|
1590
|
+
motion: {
|
|
1591
|
+
mode: "glyphwave",
|
|
1592
|
+
cycles: 2,
|
|
1593
|
+
phase: .5,
|
|
1594
|
+
amp: .35
|
|
1595
|
+
}
|
|
1596
|
+
})
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
id: "arc-glyphwave",
|
|
1600
|
+
label: "Arc ripple",
|
|
1601
|
+
sub: "Wave",
|
|
1602
|
+
comp: B({
|
|
1603
|
+
text: "on a curve",
|
|
1604
|
+
font: "rot",
|
|
1605
|
+
fontSize: 96,
|
|
1606
|
+
vf: {
|
|
1607
|
+
wdth: 90,
|
|
1608
|
+
wght: 500
|
|
1609
|
+
},
|
|
1610
|
+
path: {
|
|
1611
|
+
type: "arc",
|
|
1612
|
+
amp: .4
|
|
1613
|
+
},
|
|
1614
|
+
motion: {
|
|
1615
|
+
mode: "glyphwave",
|
|
1616
|
+
amp: .3
|
|
1617
|
+
}
|
|
1618
|
+
})
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
id: "rot-flag-fast",
|
|
1622
|
+
label: "Rot flag",
|
|
1623
|
+
sub: "Wave",
|
|
1624
|
+
comp: B({
|
|
1625
|
+
text: "flutter",
|
|
1626
|
+
font: "rot",
|
|
1627
|
+
fontSize: 150,
|
|
1628
|
+
vf: {
|
|
1629
|
+
wdth: 120,
|
|
1630
|
+
wght: 600
|
|
1631
|
+
},
|
|
1632
|
+
motion: {
|
|
1633
|
+
mode: "glyphwave",
|
|
1634
|
+
cycles: 2,
|
|
1635
|
+
phase: .5,
|
|
1636
|
+
amp: .5
|
|
1637
|
+
}
|
|
1638
|
+
})
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
id: "sine-ripple2",
|
|
1642
|
+
label: "Sine flutter",
|
|
1643
|
+
sub: "Wave",
|
|
1644
|
+
comp: B({
|
|
1645
|
+
text: "flowflow",
|
|
1646
|
+
font: "rot",
|
|
1647
|
+
fontSize: 100,
|
|
1648
|
+
vf: {
|
|
1649
|
+
wdth: 90,
|
|
1650
|
+
wght: 500
|
|
1651
|
+
},
|
|
1652
|
+
path: {
|
|
1653
|
+
type: "sine",
|
|
1654
|
+
amp: .3,
|
|
1655
|
+
freq: 2
|
|
1656
|
+
},
|
|
1657
|
+
motion: {
|
|
1658
|
+
mode: "glyphwave",
|
|
1659
|
+
cycles: 2,
|
|
1660
|
+
amp: .3
|
|
1661
|
+
}
|
|
1662
|
+
})
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
id: "sweep-x",
|
|
1666
|
+
label: "Sweep X",
|
|
1667
|
+
sub: "Sweep",
|
|
1668
|
+
comp: B({
|
|
1669
|
+
text: "SWEEP",
|
|
1670
|
+
fontSize: 150,
|
|
1671
|
+
vf: { wght: 700 },
|
|
1672
|
+
motion: {
|
|
1673
|
+
mode: "sweep",
|
|
1674
|
+
field: "x",
|
|
1675
|
+
cycles: 1,
|
|
1676
|
+
amp: .3
|
|
1677
|
+
}
|
|
1678
|
+
})
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
id: "sweep-y",
|
|
1682
|
+
label: "Sweep Y",
|
|
1683
|
+
sub: "Sweep",
|
|
1684
|
+
comp: B({
|
|
1685
|
+
text: "descend",
|
|
1686
|
+
font: "rot",
|
|
1687
|
+
fontSize: 130,
|
|
1688
|
+
vf: {
|
|
1689
|
+
wdth: 90,
|
|
1690
|
+
wght: 500
|
|
1691
|
+
},
|
|
1692
|
+
motion: {
|
|
1693
|
+
mode: "sweep",
|
|
1694
|
+
field: "y",
|
|
1695
|
+
cycles: 1,
|
|
1696
|
+
amp: .35
|
|
1697
|
+
}
|
|
1698
|
+
})
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
id: "sweep-radial",
|
|
1702
|
+
label: "Radial pulse",
|
|
1703
|
+
sub: "Sweep",
|
|
1704
|
+
comp: B({
|
|
1705
|
+
text: "PULSE",
|
|
1706
|
+
font: "malromur",
|
|
1707
|
+
fontSize: 140,
|
|
1708
|
+
vf: { wght: 600 },
|
|
1709
|
+
motion: {
|
|
1710
|
+
mode: "sweep",
|
|
1711
|
+
field: "radial",
|
|
1712
|
+
cycles: 1,
|
|
1713
|
+
amp: .4
|
|
1714
|
+
}
|
|
1715
|
+
})
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
id: "sweep-weight",
|
|
1719
|
+
label: "Sweep weight",
|
|
1720
|
+
sub: "Sweep",
|
|
1721
|
+
comp: B({
|
|
1722
|
+
text: "WEIGHT",
|
|
1723
|
+
fontSize: 150,
|
|
1724
|
+
vf: { wght: 300 },
|
|
1725
|
+
motion: {
|
|
1726
|
+
mode: "sweepWeight",
|
|
1727
|
+
field: "x",
|
|
1728
|
+
cycles: 1,
|
|
1729
|
+
amp: .4
|
|
1730
|
+
}
|
|
1731
|
+
})
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
id: "sweep-shift",
|
|
1735
|
+
label: "Sweep shift",
|
|
1736
|
+
sub: "Sweep",
|
|
1737
|
+
comp: B({
|
|
1738
|
+
text: "shiver",
|
|
1739
|
+
font: "rot",
|
|
1740
|
+
fontSize: 130,
|
|
1741
|
+
vf: {
|
|
1742
|
+
wdth: 110,
|
|
1743
|
+
wght: 600
|
|
1744
|
+
},
|
|
1745
|
+
motion: {
|
|
1746
|
+
mode: "sweepShift",
|
|
1747
|
+
field: "wave",
|
|
1748
|
+
cycles: 1,
|
|
1749
|
+
amp: .3
|
|
1750
|
+
}
|
|
1751
|
+
})
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
id: "orbit-spin",
|
|
1755
|
+
label: "Orbit",
|
|
1756
|
+
sub: "Orbit",
|
|
1757
|
+
comp: B({
|
|
1758
|
+
text: "ORBIT",
|
|
1759
|
+
font: "malromur",
|
|
1760
|
+
fontSize: 88,
|
|
1761
|
+
vf: { wght: 600 },
|
|
1762
|
+
path: {
|
|
1763
|
+
type: "circle",
|
|
1764
|
+
radius: .7
|
|
1765
|
+
},
|
|
1766
|
+
motion: {
|
|
1767
|
+
mode: "orbit",
|
|
1768
|
+
cycles: 1
|
|
1769
|
+
}
|
|
1770
|
+
})
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
id: "orbit-fast",
|
|
1774
|
+
label: "Fast orbit",
|
|
1775
|
+
sub: "Orbit",
|
|
1776
|
+
comp: B({
|
|
1777
|
+
text: "spinning",
|
|
1778
|
+
fontSize: 84,
|
|
1779
|
+
vf: { wght: 600 },
|
|
1780
|
+
path: {
|
|
1781
|
+
type: "circle",
|
|
1782
|
+
radius: .72
|
|
1783
|
+
},
|
|
1784
|
+
motion: {
|
|
1785
|
+
mode: "orbit",
|
|
1786
|
+
cycles: 2
|
|
1787
|
+
}
|
|
1788
|
+
})
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
id: "ellipse-orbit",
|
|
1792
|
+
label: "Ellipse orbit",
|
|
1793
|
+
sub: "Orbit",
|
|
1794
|
+
comp: B({
|
|
1795
|
+
text: "ORBITAL",
|
|
1796
|
+
font: "rot",
|
|
1797
|
+
fontSize: 78,
|
|
1798
|
+
vf: {
|
|
1799
|
+
wdth: 110,
|
|
1800
|
+
wght: 600
|
|
1801
|
+
},
|
|
1802
|
+
path: {
|
|
1803
|
+
type: "ellipse",
|
|
1804
|
+
radius: .95
|
|
1805
|
+
},
|
|
1806
|
+
motion: {
|
|
1807
|
+
mode: "orbit",
|
|
1808
|
+
cycles: 1
|
|
1809
|
+
}
|
|
1810
|
+
})
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
id: "array-pulse",
|
|
1814
|
+
label: "Grid pulse",
|
|
1815
|
+
sub: "Array",
|
|
1816
|
+
comp: B({
|
|
1817
|
+
text: "NODE",
|
|
1818
|
+
font: "rot",
|
|
1819
|
+
fontSize: 44,
|
|
1820
|
+
vf: {
|
|
1821
|
+
wdth: 90,
|
|
1822
|
+
wght: 500
|
|
1823
|
+
},
|
|
1824
|
+
fill: "#7fd1ff",
|
|
1825
|
+
path: {
|
|
1826
|
+
type: "array",
|
|
1827
|
+
rows: 4,
|
|
1828
|
+
cols: 5
|
|
1829
|
+
},
|
|
1830
|
+
motion: {
|
|
1831
|
+
mode: "cascade",
|
|
1832
|
+
cycles: 1,
|
|
1833
|
+
phase: .5
|
|
1834
|
+
}
|
|
1835
|
+
})
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
id: "array-wave",
|
|
1839
|
+
label: "Grid wave",
|
|
1840
|
+
sub: "Array",
|
|
1841
|
+
comp: B({
|
|
1842
|
+
text: "echo",
|
|
1843
|
+
font: "rot",
|
|
1844
|
+
fontSize: 52,
|
|
1845
|
+
vf: {
|
|
1846
|
+
wdth: 90,
|
|
1847
|
+
wght: 500
|
|
1848
|
+
},
|
|
1849
|
+
path: {
|
|
1850
|
+
type: "array",
|
|
1851
|
+
rows: 3,
|
|
1852
|
+
cols: 3
|
|
1853
|
+
},
|
|
1854
|
+
motion: {
|
|
1855
|
+
mode: "glyphwave",
|
|
1856
|
+
cycles: 1,
|
|
1857
|
+
phase: .7,
|
|
1858
|
+
amp: .4
|
|
1859
|
+
}
|
|
1860
|
+
})
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
id: "array-weight",
|
|
1864
|
+
label: "Grid weight",
|
|
1865
|
+
sub: "Array",
|
|
1866
|
+
comp: B({
|
|
1867
|
+
text: "OK",
|
|
1868
|
+
font: "rot",
|
|
1869
|
+
fontSize: 88,
|
|
1870
|
+
vf: {
|
|
1871
|
+
wdth: 100,
|
|
1872
|
+
wght: 200
|
|
1873
|
+
},
|
|
1874
|
+
path: {
|
|
1875
|
+
type: "array",
|
|
1876
|
+
rows: 2,
|
|
1877
|
+
cols: 3
|
|
1878
|
+
},
|
|
1879
|
+
motion: {
|
|
1880
|
+
mode: "vfwave",
|
|
1881
|
+
axis: "wght",
|
|
1882
|
+
cycles: 1,
|
|
1883
|
+
phase: .6
|
|
1884
|
+
}
|
|
1885
|
+
})
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
id: "stacked",
|
|
1889
|
+
label: "Stacked",
|
|
1890
|
+
sub: "Composite",
|
|
1891
|
+
comp: B({
|
|
1892
|
+
id: "a",
|
|
1893
|
+
text: "KINETIC",
|
|
1894
|
+
font: "gullhamrar",
|
|
1895
|
+
fontSize: 130,
|
|
1896
|
+
vf: { wght: 700 },
|
|
1897
|
+
fill: "#e8e4dc",
|
|
1898
|
+
path: {
|
|
1899
|
+
type: "line",
|
|
1900
|
+
offset: -.16
|
|
1901
|
+
}
|
|
1902
|
+
}, {
|
|
1903
|
+
id: "b",
|
|
1904
|
+
text: "typography",
|
|
1905
|
+
font: "rot",
|
|
1906
|
+
fontSize: 90,
|
|
1907
|
+
vf: {
|
|
1908
|
+
wdth: 90,
|
|
1909
|
+
wght: 400
|
|
1910
|
+
},
|
|
1911
|
+
fill: "#f6c453",
|
|
1912
|
+
path: {
|
|
1913
|
+
type: "line",
|
|
1914
|
+
offset: .16
|
|
1915
|
+
},
|
|
1916
|
+
motion: {
|
|
1917
|
+
mode: "vfwave",
|
|
1918
|
+
axis: "wght",
|
|
1919
|
+
cycles: 1,
|
|
1920
|
+
phase: .5
|
|
1921
|
+
}
|
|
1922
|
+
})
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
id: "grid-and-ring",
|
|
1926
|
+
label: "Grid + ring",
|
|
1927
|
+
sub: "Composite",
|
|
1928
|
+
comp: V("#0a0b14", {
|
|
1929
|
+
id: "a",
|
|
1930
|
+
text: "echo",
|
|
1931
|
+
font: "rot",
|
|
1932
|
+
fontSize: 40,
|
|
1933
|
+
vf: {
|
|
1934
|
+
wdth: 90,
|
|
1935
|
+
wght: 500
|
|
1936
|
+
},
|
|
1937
|
+
fill: "#3a4a6a",
|
|
1938
|
+
path: {
|
|
1939
|
+
type: "array",
|
|
1940
|
+
rows: 4,
|
|
1941
|
+
cols: 5
|
|
1942
|
+
}
|
|
1943
|
+
}, {
|
|
1944
|
+
id: "b",
|
|
1945
|
+
text: "SIGNAL · SIGNAL · ",
|
|
1946
|
+
font: "rot",
|
|
1947
|
+
fontSize: 60,
|
|
1948
|
+
vf: {
|
|
1949
|
+
wdth: 110,
|
|
1950
|
+
wght: 600
|
|
1951
|
+
},
|
|
1952
|
+
fill: "#9ec1ff",
|
|
1953
|
+
path: {
|
|
1954
|
+
type: "circle",
|
|
1955
|
+
radius: .7
|
|
1956
|
+
},
|
|
1957
|
+
motion: {
|
|
1958
|
+
mode: "orbit",
|
|
1959
|
+
cycles: 1
|
|
1960
|
+
}
|
|
1961
|
+
})
|
|
1962
|
+
}
|
|
1963
|
+
], ne = (e) => H.find((t) => t.id === e) || H[0], re = [
|
|
1964
|
+
"Radial",
|
|
1965
|
+
"Rings",
|
|
1966
|
+
"Path"
|
|
1967
|
+
], ie = [{
|
|
1968
|
+
label: "Type",
|
|
1969
|
+
subs: re
|
|
1970
|
+
}, {
|
|
1971
|
+
label: "Kinetic",
|
|
1972
|
+
subs: [...new Set(H.map((e) => e.sub))].filter((e) => !re.includes(e))
|
|
1973
|
+
}], ae = (e) => structuredClone(e.comp), U = {
|
|
1974
|
+
background: "Background",
|
|
1975
|
+
pattern: "Pattern",
|
|
1976
|
+
photo: "Photo",
|
|
1977
|
+
shape: "Shape",
|
|
1978
|
+
text: "Text",
|
|
1979
|
+
group: "Group",
|
|
1980
|
+
bool: "Boolean",
|
|
1981
|
+
path: "Path",
|
|
1982
|
+
loop: "Loop",
|
|
1983
|
+
kinetic: "Kinetic type",
|
|
1984
|
+
misc: "Misc"
|
|
1985
|
+
}, oe = {
|
|
1986
|
+
unite: "Unite",
|
|
1987
|
+
subtract: "Subtract",
|
|
1988
|
+
intersect: "Intersect",
|
|
1989
|
+
exclude: "Exclude"
|
|
1990
|
+
}, se = {
|
|
1991
|
+
logo: "Logo",
|
|
1992
|
+
rect: "Rectangle",
|
|
1993
|
+
ellipse: "Ellipse",
|
|
1994
|
+
triangle: "Triangle",
|
|
1995
|
+
line: "Line",
|
|
1996
|
+
polygon: "Polygon",
|
|
1997
|
+
star: "Star",
|
|
1998
|
+
flatten: "Flatten"
|
|
1999
|
+
};
|
|
2000
|
+
function W(e) {
|
|
2001
|
+
return e.isMask ? `${W({
|
|
2002
|
+
...e,
|
|
2003
|
+
isMask: !1
|
|
2004
|
+
})} (mask)` : e.name ? e.name : e.type === "text" ? e.text || U.text : e.type === "shape" ? se[e.kind ?? "logo"] ?? U.shape : e.type === "bool" ? oe[e.op] ?? U.bool : e.type === "loop" || e.type === "misc" ? e.presetLabel || U[e.type] : e.type === "kinetic" ? e.presetLabel || U.kinetic : U[e.type] ?? e.type;
|
|
2005
|
+
}
|
|
2006
|
+
//#endregion
|
|
2007
|
+
//#region src/editor/morph/buildMorph.js
|
|
2008
|
+
var ce = [
|
|
2009
|
+
{
|
|
2010
|
+
value: "loop",
|
|
2011
|
+
label: "Loop"
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
value: "pingpong",
|
|
2015
|
+
label: "Ping-pong"
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
value: "once",
|
|
2019
|
+
label: "Once"
|
|
2020
|
+
}
|
|
2021
|
+
], le = i.filter((e) => e.value !== "hold"), ue = new Set([
|
|
2022
|
+
"range",
|
|
2023
|
+
"int",
|
|
2024
|
+
"color"
|
|
2025
|
+
]), de = [
|
|
2026
|
+
"loopGroup",
|
|
2027
|
+
"presetId",
|
|
2028
|
+
"presetLabel"
|
|
2029
|
+
], fe = (e, t) => e === t || JSON.stringify(e) === JSON.stringify(t);
|
|
2030
|
+
function pe(e, t, n) {
|
|
2031
|
+
let r = t === "loop" ? [...e, e[0]] : t === "pingpong" ? [...e, ...e.slice(0, -1).reverse()] : e, i = r.length - 1;
|
|
2032
|
+
return r.map((e, t) => ({
|
|
2033
|
+
t: i ? t / i : 0,
|
|
2034
|
+
v: e,
|
|
2035
|
+
easing: n
|
|
2036
|
+
}));
|
|
2037
|
+
}
|
|
2038
|
+
function me(e, t) {
|
|
2039
|
+
return (Array.isArray(e?.layers) ? e.layers : []).find((e) => e && e.type === "loop" && e.loopId === t) ?? null;
|
|
2040
|
+
}
|
|
2041
|
+
function he({ snapshots: e, schema: t, curve: n = "in-out", cycle: r = "loop", stepSeeds: i = !1 }) {
|
|
2042
|
+
if (!Array.isArray(e) || e.length < 2) throw Error("buildMorph: two or more snapshots");
|
|
2043
|
+
if (!ce.some((e) => e.value === r)) throw Error(`buildMorph: unknown cycle ${r}`);
|
|
2044
|
+
let a = e[0], o = {};
|
|
2045
|
+
for (let e of de) a[e] !== void 0 && (o[e] = a[e]);
|
|
2046
|
+
let s = [], c = [], l = [];
|
|
2047
|
+
for (let a of t) {
|
|
2048
|
+
let t = e.map((e) => e[a.key] === void 0 ? a.default : e[a.key]);
|
|
2049
|
+
if (t.every((e) => fe(e, t[0]))) {
|
|
2050
|
+
t[0] !== void 0 && (o[a.key] = t[0]);
|
|
2051
|
+
continue;
|
|
2052
|
+
}
|
|
2053
|
+
if (a.key === "seed" && !i) {
|
|
2054
|
+
o[a.key] = t[0], l.push(a);
|
|
2055
|
+
continue;
|
|
2056
|
+
}
|
|
2057
|
+
let u = a.key === "seed" || !ue.has(a.type);
|
|
2058
|
+
o[a.key] = {
|
|
2059
|
+
bind: "track",
|
|
2060
|
+
keys: pe(t, r, u ? "hold" : n)
|
|
2061
|
+
}, (u ? c : s).push(a);
|
|
2062
|
+
}
|
|
2063
|
+
return {
|
|
2064
|
+
patch: o,
|
|
2065
|
+
tweened: s,
|
|
2066
|
+
stepped: c,
|
|
2067
|
+
held: l
|
|
2068
|
+
};
|
|
2069
|
+
}
|
|
2070
|
+
//#endregion
|
|
2071
|
+
//#region src/editor/morph/morphStore.js
|
|
2072
|
+
var ge = {
|
|
2073
|
+
active: !1,
|
|
2074
|
+
mode: "shape",
|
|
2075
|
+
resolution: 0,
|
|
2076
|
+
editRequest: null,
|
|
2077
|
+
loopId: null,
|
|
2078
|
+
steps: [],
|
|
2079
|
+
curve: "in-out",
|
|
2080
|
+
cycle: "loop",
|
|
2081
|
+
syncLoop: !1,
|
|
2082
|
+
seconds: 4,
|
|
2083
|
+
editing: null,
|
|
2084
|
+
fileId: null,
|
|
2085
|
+
fileName: null,
|
|
2086
|
+
picker: null,
|
|
2087
|
+
presetId: null
|
|
2088
|
+
}, G = { ...ge }, _e = /* @__PURE__ */ new Set(), K = () => _e.forEach((e) => e()), ve = (e) => (_e.add(e), () => _e.delete(e)), ye = () => G, be = () => b(ve, ye, ye);
|
|
2089
|
+
function xe(e) {
|
|
2090
|
+
G = {
|
|
2091
|
+
...G,
|
|
2092
|
+
...e
|
|
2093
|
+
}, K();
|
|
2094
|
+
}
|
|
2095
|
+
function Se(e = {}) {
|
|
2096
|
+
G = {
|
|
2097
|
+
...ge,
|
|
2098
|
+
...e
|
|
2099
|
+
}, K();
|
|
2100
|
+
}
|
|
2101
|
+
function Ce(e) {
|
|
2102
|
+
G = {
|
|
2103
|
+
...G,
|
|
2104
|
+
active: !0,
|
|
2105
|
+
loopId: G.loopId ?? e.loopId,
|
|
2106
|
+
steps: [...G.steps, e]
|
|
2107
|
+
}, K();
|
|
2108
|
+
}
|
|
2109
|
+
function we(e, t) {
|
|
2110
|
+
let n = G.steps[e];
|
|
2111
|
+
if (!n) return;
|
|
2112
|
+
let r = G.steps.slice();
|
|
2113
|
+
r[e] = {
|
|
2114
|
+
...n,
|
|
2115
|
+
params: { ...t }
|
|
2116
|
+
}, G = {
|
|
2117
|
+
...G,
|
|
2118
|
+
steps: r
|
|
2119
|
+
}, K();
|
|
2120
|
+
}
|
|
2121
|
+
function Te(e) {
|
|
2122
|
+
let t = G.steps.filter((t, n) => n !== e);
|
|
2123
|
+
G = {
|
|
2124
|
+
...G,
|
|
2125
|
+
steps: t,
|
|
2126
|
+
loopId: t.length ? G.loopId : null,
|
|
2127
|
+
editing: G.editing === e ? null : G.editing
|
|
2128
|
+
}, K();
|
|
2129
|
+
}
|
|
2130
|
+
function Ee(e, t) {
|
|
2131
|
+
let n = G.steps.length;
|
|
2132
|
+
if (e === t || e < 0 || e >= n || t < 0 || t >= n) return;
|
|
2133
|
+
let r = G.steps.slice(), [i] = r.splice(e, 1);
|
|
2134
|
+
r.splice(t, 0, i);
|
|
2135
|
+
let a = G.editing, o = a == null ? a : a === e ? t : e < a && a <= t ? a - 1 : t <= a && a < e ? a + 1 : a;
|
|
2136
|
+
G = {
|
|
2137
|
+
...G,
|
|
2138
|
+
steps: r,
|
|
2139
|
+
editing: o
|
|
2140
|
+
}, K();
|
|
2141
|
+
}
|
|
2142
|
+
function De(e, t) {
|
|
2143
|
+
let n = {};
|
|
2144
|
+
for (let r of t) n[r.key] = e?.[r.key] === void 0 ? r.default : e[r.key];
|
|
2145
|
+
return n;
|
|
2146
|
+
}
|
|
2147
|
+
var Oe = (e, t) => e.source?.label || `Step ${t + 1}`, ke = "kol-editor-timeline-pinned", q = !1;
|
|
2148
|
+
try {
|
|
2149
|
+
q = localStorage.getItem(ke) === "1";
|
|
2150
|
+
} catch {}
|
|
2151
|
+
var Ae = /* @__PURE__ */ new Set();
|
|
2152
|
+
function je() {
|
|
2153
|
+
q = !q;
|
|
2154
|
+
try {
|
|
2155
|
+
localStorage.setItem(ke, q ? "1" : "0");
|
|
2156
|
+
} catch {}
|
|
2157
|
+
Ae.forEach((e) => e(q));
|
|
2158
|
+
}
|
|
2159
|
+
function Me() {
|
|
2160
|
+
let [e, t] = y(q);
|
|
2161
|
+
return g(() => {
|
|
2162
|
+
let e = (e) => t(e);
|
|
2163
|
+
return Ae.add(e), () => Ae.delete(e);
|
|
2164
|
+
}, []), e;
|
|
2165
|
+
}
|
|
2166
|
+
//#endregion
|
|
2167
|
+
//#region src/editor/params/Timeline.jsx
|
|
2168
|
+
var Ne = 268, Pe = 14, J = 25, Fe = [
|
|
2169
|
+
1,
|
|
2170
|
+
2,
|
|
2171
|
+
4
|
|
2172
|
+
], Ie = 96;
|
|
2173
|
+
function Le(e, t) {
|
|
2174
|
+
if (e.length === 0) return 0;
|
|
2175
|
+
if (t <= e[0].t) return e[0].v;
|
|
2176
|
+
let n = e[e.length - 1];
|
|
2177
|
+
if (t >= n.t) return n.v;
|
|
2178
|
+
let r = 0;
|
|
2179
|
+
for (; r < e.length - 1 && e[r + 1].t <= t;) r++;
|
|
2180
|
+
let i = e[r], a = e[r + 1];
|
|
2181
|
+
if (typeof i.v != "number" || typeof a.v != "number") return i.v;
|
|
2182
|
+
let o = a.t - i.t || 1;
|
|
2183
|
+
return i.v + (a.v - i.v) * ((t - i.t) / o);
|
|
2184
|
+
}
|
|
2185
|
+
function Re(e, n = []) {
|
|
2186
|
+
for (let r of e) {
|
|
2187
|
+
let e = Array.isArray(r.morph?.steps) ? r.morph.steps : null;
|
|
2188
|
+
if (e?.length) {
|
|
2189
|
+
let i = r.morph.name || "Morph", a = (t) => t.map((t) => e[(Math.round(t.v) % e.length + e.length) % e.length]?.label ?? ""), o = t(r.morphT) && r.morphT.bind === "track" ? r.morphT : null, s = o ? o.keys : pe(e.map((e, t) => t), r.morph.cycle ?? "loop", r.morph.curve ?? "in-out");
|
|
2190
|
+
n.push({
|
|
2191
|
+
id: `${r.id}:morph`,
|
|
2192
|
+
layerId: r.id,
|
|
2193
|
+
key: "morphT",
|
|
2194
|
+
label: i,
|
|
2195
|
+
keys: s,
|
|
2196
|
+
header: !0,
|
|
2197
|
+
readOnly: !o,
|
|
2198
|
+
names: a(s),
|
|
2199
|
+
steps: e.length
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2202
|
+
for (let i in r) {
|
|
2203
|
+
if (i === "morphT" && e?.length) continue;
|
|
2204
|
+
let a = r[i];
|
|
2205
|
+
t(a) && a.bind === "track" && n.push({
|
|
2206
|
+
id: `${r.id}:${i}`,
|
|
2207
|
+
layerId: r.id,
|
|
2208
|
+
key: i,
|
|
2209
|
+
label: `${W(r)} · ${i}`,
|
|
2210
|
+
keys: a.keys,
|
|
2211
|
+
under: e?.length ? `${r.id}:morph` : null
|
|
2212
|
+
});
|
|
2213
|
+
}
|
|
2214
|
+
Array.isArray(r.children) && Re(r.children, n);
|
|
2215
|
+
}
|
|
2216
|
+
return n;
|
|
2217
|
+
}
|
|
2218
|
+
function ze(e, t = []) {
|
|
2219
|
+
for (let n of e) t.push(n), Array.isArray(n.children) && ze(n.children, t);
|
|
2220
|
+
return t;
|
|
2221
|
+
}
|
|
2222
|
+
var Be = (e) => Object.values(e).some((e) => t(e) && e.bind === "mod" && String(e.source).startsWith("audio")), Ve = {
|
|
2223
|
+
background: "square",
|
|
2224
|
+
pattern: "ptrn-dot",
|
|
2225
|
+
photo: "image",
|
|
2226
|
+
shape: "rectangle",
|
|
2227
|
+
text: "type",
|
|
2228
|
+
group: "layers",
|
|
2229
|
+
bool: "layers",
|
|
2230
|
+
loop: "refresh",
|
|
2231
|
+
misc: "refresh",
|
|
2232
|
+
kinetic: "type"
|
|
2233
|
+
}, He = (e) => Ve[e] ?? "rectangle", Ue = (e, t) => `${(e * t).toFixed(2)}`, We = (e) => `${String(Math.floor(e)).padStart(2, "0")}:${String(Math.floor(e % 1 * 100)).padStart(2, "0")}`;
|
|
2234
|
+
function Y({ name: e, label: t, on: n = !0, toggle: r = !1, size: i = 14, onClick: a, disabled: o, className: s = "" }) {
|
|
2235
|
+
return /* @__PURE__ */ S(f, {
|
|
2236
|
+
label: t,
|
|
2237
|
+
variant: "float",
|
|
2238
|
+
asChild: !0,
|
|
2239
|
+
children: /* @__PURE__ */ S("button", {
|
|
2240
|
+
type: "button",
|
|
2241
|
+
"aria-label": t,
|
|
2242
|
+
"aria-pressed": r ? n : void 0,
|
|
2243
|
+
disabled: o,
|
|
2244
|
+
onClick: a,
|
|
2245
|
+
className: `flex items-center justify-center shrink-0 rounded cursor-pointer outline-none focus-visible:shadow-[var(--kol-float-focus)] disabled:opacity-40 disabled:cursor-default ${n ? "text-oq-96" : "text-oq-48"} ${s}`.trim(),
|
|
2246
|
+
children: /* @__PURE__ */ S(w, {
|
|
2247
|
+
name: e,
|
|
2248
|
+
size: i
|
|
2249
|
+
})
|
|
2250
|
+
})
|
|
2251
|
+
});
|
|
2252
|
+
}
|
|
2253
|
+
function Ge({ track: e, view: t, selected: n, setSelected: r, writeKeys: i, lit: a }) {
|
|
2254
|
+
let o = v(null), s = v(null), [, c] = y(0), l = !!e.header, u = !!e.readOnly, { X: d, fracFromEvent: p } = t, m = (t) => n && n.trackId === e.id && n.index === t, h = (t) => {
|
|
2255
|
+
if (t.target.closest("[data-diamond]") || t.target.closest("[data-name]") || u) return;
|
|
2256
|
+
let n = p(t, o.current), a = Le(e.keys, n), s = [...e.keys, {
|
|
2257
|
+
t: n,
|
|
2258
|
+
v: a,
|
|
2259
|
+
easing: "linear"
|
|
2260
|
+
}].sort((e, t) => e.t - t.t);
|
|
2261
|
+
i(e, s), r({
|
|
2262
|
+
trackId: e.id,
|
|
2263
|
+
index: s.findIndex((e) => e.t === n)
|
|
2264
|
+
});
|
|
2265
|
+
}, g = (t) => (n) => {
|
|
2266
|
+
if (n.stopPropagation(), !u) {
|
|
2267
|
+
if (n.altKey) {
|
|
2268
|
+
e.keys.length > 1 && (i(e, e.keys.filter((e, n) => n !== t)), r(null));
|
|
2269
|
+
return;
|
|
2270
|
+
}
|
|
2271
|
+
n.currentTarget.setPointerCapture(n.pointerId), s.current = {
|
|
2272
|
+
index: t,
|
|
2273
|
+
t: e.keys[t].t
|
|
2274
|
+
}, r({
|
|
2275
|
+
trackId: e.id,
|
|
2276
|
+
index: t
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
}, _ = (e) => (t) => {
|
|
2280
|
+
!s.current || s.current.index !== e || (s.current.t = p(t, o.current), c((e) => e + 1));
|
|
2281
|
+
}, b = (t) => () => {
|
|
2282
|
+
if (!s.current || s.current.index !== t) return;
|
|
2283
|
+
let n = {
|
|
2284
|
+
...e.keys[t],
|
|
2285
|
+
t: s.current.t
|
|
2286
|
+
};
|
|
2287
|
+
if (s.current = null, n.t === e.keys[t].t) return;
|
|
2288
|
+
let a = e.keys.map((e, r) => r === t ? n : e).sort((e, t) => e.t - t.t);
|
|
2289
|
+
i(e, a), r({
|
|
2290
|
+
trackId: e.id,
|
|
2291
|
+
index: a.indexOf(n)
|
|
2292
|
+
});
|
|
2293
|
+
}, x = (t) => (n) => {
|
|
2294
|
+
n.stopPropagation(), xe({ editRequest: (Math.round(e.keys[t].v) % e.steps + e.steps) % e.steps });
|
|
2295
|
+
};
|
|
2296
|
+
return /* @__PURE__ */ C("div", {
|
|
2297
|
+
ref: o,
|
|
2298
|
+
className: `relative flex-1 min-w-0 overflow-hidden rounded-[5px] bg-[var(--kol-float-well)] ${u ? "" : "cursor-copy"}`,
|
|
2299
|
+
style: { height: J },
|
|
2300
|
+
onPointerDown: h,
|
|
2301
|
+
children: [
|
|
2302
|
+
/* @__PURE__ */ S(Ke, {
|
|
2303
|
+
view: t,
|
|
2304
|
+
lit: a,
|
|
2305
|
+
label: e.label
|
|
2306
|
+
}),
|
|
2307
|
+
e.keys.map((n, r) => {
|
|
2308
|
+
let i = s.current?.index === r ? s.current.t : n.t, a = l ? e.names?.[r] : null;
|
|
2309
|
+
return /* @__PURE__ */ S(f, {
|
|
2310
|
+
label: l ? `${a} · ${Ue(i, t.loop)} s` : `${Ue(i, t.loop)} s · v=${typeof n.v == "number" ? Math.round(n.v * 100) / 100 : n.v} (alt-click deletes)`,
|
|
2311
|
+
variant: "float",
|
|
2312
|
+
asChild: !0,
|
|
2313
|
+
children: /* @__PURE__ */ S("span", {
|
|
2314
|
+
"data-diamond": "",
|
|
2315
|
+
onPointerDown: g(r),
|
|
2316
|
+
onPointerMove: _(r),
|
|
2317
|
+
onPointerUp: b(r),
|
|
2318
|
+
className: `absolute top-1/2 -translate-x-1/2 -translate-y-1/2 flex ${u ? "" : "cursor-grab"} ${m(r) ? "text-[var(--kol-accent-primary)]" : "text-oq-96"}`,
|
|
2319
|
+
style: { left: `clamp(6px, ${d(i) * 100}%, 100% - 6px)` },
|
|
2320
|
+
children: /* @__PURE__ */ S(w, {
|
|
2321
|
+
name: "diamond",
|
|
2322
|
+
size: 12
|
|
2323
|
+
})
|
|
2324
|
+
})
|
|
2325
|
+
}, r);
|
|
2326
|
+
}),
|
|
2327
|
+
l && e.keys.map((t, n) => {
|
|
2328
|
+
let r = s.current?.index === n ? s.current.t : t.t, i = n === e.keys.length - 1 && r > .5;
|
|
2329
|
+
return /* @__PURE__ */ S("button", {
|
|
2330
|
+
type: "button",
|
|
2331
|
+
"data-name": "",
|
|
2332
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
2333
|
+
onClick: x(n),
|
|
2334
|
+
"aria-label": `Edit step ${e.names?.[n]}`,
|
|
2335
|
+
className: "absolute top-0 bottom-0 kol-float-label text-fg-64 hover:text-emphasis truncate cursor-pointer",
|
|
2336
|
+
style: {
|
|
2337
|
+
left: i ? void 0 : `calc(${d(r) * 100}% + 10px)`,
|
|
2338
|
+
right: i ? `calc(${(1 - d(r)) * 100}% + 10px)` : void 0,
|
|
2339
|
+
maxWidth: `${100 / e.keys.length}%`
|
|
2340
|
+
},
|
|
2341
|
+
children: e.names?.[n]
|
|
2342
|
+
}, `n${n}`);
|
|
2343
|
+
})
|
|
2344
|
+
]
|
|
2345
|
+
});
|
|
2346
|
+
}
|
|
2347
|
+
function Ke({ view: e, lit: t, label: n, mono: r = !1, children: i }) {
|
|
2348
|
+
let a = e.X(0), o = e.X(1);
|
|
2349
|
+
return /* @__PURE__ */ C("div", {
|
|
2350
|
+
className: `absolute top-0.5 h-[21px] rounded ${t ? "bg-fg-16" : "bg-fg-08"}`,
|
|
2351
|
+
style: {
|
|
2352
|
+
left: `${a * 100}%`,
|
|
2353
|
+
width: `${(o - a) * 100}%`
|
|
2354
|
+
},
|
|
2355
|
+
children: [/* @__PURE__ */ S("span", {
|
|
2356
|
+
className: `absolute left-2.5 top-1/2 -translate-y-1/2 ${r ? "kol-float-ruler" : "kol-float-label"} text-fg-64 whitespace-nowrap pointer-events-none`,
|
|
2357
|
+
children: n
|
|
2358
|
+
}), i]
|
|
2359
|
+
});
|
|
2360
|
+
}
|
|
2361
|
+
function qe({ view: e, lit: t, label: n }) {
|
|
2362
|
+
return /* @__PURE__ */ S("div", {
|
|
2363
|
+
className: "relative flex-1 min-w-0 overflow-hidden rounded-[5px] bg-[var(--kol-float-well)]",
|
|
2364
|
+
style: { height: J },
|
|
2365
|
+
children: /* @__PURE__ */ S(Ke, {
|
|
2366
|
+
view: e,
|
|
2367
|
+
lit: t,
|
|
2368
|
+
label: n ?? `${e.loop.toFixed(2)} s`,
|
|
2369
|
+
mono: n == null
|
|
2370
|
+
})
|
|
2371
|
+
});
|
|
2372
|
+
}
|
|
2373
|
+
function Je({ view: e, lit: t, label: n, wave: r }) {
|
|
2374
|
+
return /* @__PURE__ */ S("div", {
|
|
2375
|
+
className: "relative flex-1 min-w-0 overflow-hidden rounded-[5px] bg-[var(--kol-float-well)]",
|
|
2376
|
+
style: { height: J },
|
|
2377
|
+
children: /* @__PURE__ */ S(Ke, {
|
|
2378
|
+
view: e,
|
|
2379
|
+
lit: t,
|
|
2380
|
+
label: n,
|
|
2381
|
+
children: /* @__PURE__ */ S("span", {
|
|
2382
|
+
className: "absolute top-0 bottom-0 left-[120px] right-2.5",
|
|
2383
|
+
"aria-hidden": "true",
|
|
2384
|
+
children: r.map((e, t) => /* @__PURE__ */ S("span", {
|
|
2385
|
+
className: "absolute top-1/2 -translate-y-1/2 w-0.5 bg-oq-40",
|
|
2386
|
+
style: {
|
|
2387
|
+
left: `${t / Ie * 100}%`,
|
|
2388
|
+
height: 2 + Math.round(e * 10)
|
|
2389
|
+
}
|
|
2390
|
+
}, t))
|
|
2391
|
+
})
|
|
2392
|
+
})
|
|
2393
|
+
});
|
|
2394
|
+
}
|
|
2395
|
+
function Ye({ layer: e, name: t, sub: n, lit: r, select: i, toggleLayer: a, toggleLayerLock: o, fold: s }) {
|
|
2396
|
+
return /* @__PURE__ */ C("div", {
|
|
2397
|
+
className: `flex items-center gap-2.5 shrink-0 px-2 rounded-md ${r ? "bg-fg-16" : ""} ${e ? "cursor-pointer" : ""}`,
|
|
2398
|
+
style: {
|
|
2399
|
+
width: Ne,
|
|
2400
|
+
height: J,
|
|
2401
|
+
paddingLeft: n ? 32 : void 0
|
|
2402
|
+
},
|
|
2403
|
+
onClick: e ? () => i(e.id) : void 0,
|
|
2404
|
+
children: [
|
|
2405
|
+
!n && /* @__PURE__ */ S("span", {
|
|
2406
|
+
className: "flex shrink-0 text-oq-64",
|
|
2407
|
+
"aria-hidden": "true",
|
|
2408
|
+
children: /* @__PURE__ */ S(w, {
|
|
2409
|
+
name: e ? e.icon ?? He(e.type) : "layers",
|
|
2410
|
+
size: 14
|
|
2411
|
+
})
|
|
2412
|
+
}),
|
|
2413
|
+
/* @__PURE__ */ S("span", {
|
|
2414
|
+
className: `kol-float-label truncate flex-1 min-w-0 ${n ? "text-fg-64" : "text-emphasis"}`,
|
|
2415
|
+
children: t
|
|
2416
|
+
}),
|
|
2417
|
+
s && /* @__PURE__ */ S(Y, {
|
|
2418
|
+
name: "chevron-down",
|
|
2419
|
+
size: 12,
|
|
2420
|
+
label: s.folded ? "Show the morph’s tracks" : "Hide the morph’s tracks",
|
|
2421
|
+
onClick: (e) => {
|
|
2422
|
+
e.stopPropagation(), s.toggle();
|
|
2423
|
+
},
|
|
2424
|
+
className: s.folded ? "-rotate-90" : ""
|
|
2425
|
+
}),
|
|
2426
|
+
e && !n && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Y, {
|
|
2427
|
+
name: e.visible === !1 ? "eye-off" : "eye-on",
|
|
2428
|
+
size: 12,
|
|
2429
|
+
label: e.visible === !1 ? "Show layer" : "Hide layer",
|
|
2430
|
+
toggle: !0,
|
|
2431
|
+
on: e.visible !== !1,
|
|
2432
|
+
onClick: (t) => {
|
|
2433
|
+
t.stopPropagation(), a(e.id);
|
|
2434
|
+
}
|
|
2435
|
+
}), /* @__PURE__ */ S(Y, {
|
|
2436
|
+
name: e.locked ? "lock" : "unlock",
|
|
2437
|
+
size: 12,
|
|
2438
|
+
label: e.locked ? "Unlock layer" : "Lock layer",
|
|
2439
|
+
toggle: !0,
|
|
2440
|
+
on: !!e.locked,
|
|
2441
|
+
onClick: (t) => {
|
|
2442
|
+
t.stopPropagation(), o(e.id);
|
|
2443
|
+
}
|
|
2444
|
+
})] })
|
|
2445
|
+
]
|
|
2446
|
+
});
|
|
2447
|
+
}
|
|
2448
|
+
function Xe({ view: e, seek: t }) {
|
|
2449
|
+
let n = v(null), r = v(!1), i = Math.ceil(e.origin - 1e-9), a = Math.floor(e.origin + e.span + 1e-9), o = Array.from({ length: Math.max(0, a - i + 1) }, (e, t) => i + t), s = (r) => t(e.fracFromEvent(r, n.current));
|
|
2450
|
+
return /* @__PURE__ */ C("div", {
|
|
2451
|
+
className: "flex items-center shrink-0",
|
|
2452
|
+
style: {
|
|
2453
|
+
height: 15,
|
|
2454
|
+
gap: Pe
|
|
2455
|
+
},
|
|
2456
|
+
children: [/* @__PURE__ */ S("span", {
|
|
2457
|
+
className: "kol-float-label leading-none text-meta shrink-0",
|
|
2458
|
+
style: { width: Ne },
|
|
2459
|
+
children: "LAYERS"
|
|
2460
|
+
}), /* @__PURE__ */ S("div", {
|
|
2461
|
+
ref: n,
|
|
2462
|
+
className: "relative flex-1 min-w-0 h-full kol-float-ruler text-meta cursor-ew-resize",
|
|
2463
|
+
style: { touchAction: "none" },
|
|
2464
|
+
onPointerDown: (e) => {
|
|
2465
|
+
r.current = !0, e.currentTarget.setPointerCapture(e.pointerId), s(e);
|
|
2466
|
+
},
|
|
2467
|
+
onPointerMove: (e) => {
|
|
2468
|
+
r.current && s(e);
|
|
2469
|
+
},
|
|
2470
|
+
onPointerUp: () => {
|
|
2471
|
+
r.current = !1;
|
|
2472
|
+
},
|
|
2473
|
+
onPointerCancel: () => {
|
|
2474
|
+
r.current = !1;
|
|
2475
|
+
},
|
|
2476
|
+
children: o.map((t) => {
|
|
2477
|
+
let n = (t - e.origin) / e.span;
|
|
2478
|
+
return /* @__PURE__ */ S("span", {
|
|
2479
|
+
className: "absolute top-0 leading-[15px] whitespace-nowrap",
|
|
2480
|
+
style: {
|
|
2481
|
+
left: `${n * 100}%`,
|
|
2482
|
+
transform: n <= 0 ? void 0 : n >= 1 ? "translateX(-100%)" : "translateX(-50%)"
|
|
2483
|
+
},
|
|
2484
|
+
children: e.span <= 16 || t % 4 == 0 ? `${String(t).padStart(2, "0")}s` : ""
|
|
2485
|
+
}, t);
|
|
2486
|
+
})
|
|
2487
|
+
})]
|
|
2488
|
+
});
|
|
2489
|
+
}
|
|
2490
|
+
function Ze({ view: e, now: t }) {
|
|
2491
|
+
let n = e.X(t / e.loop);
|
|
2492
|
+
return n < 0 || n > 1 ? null : /* @__PURE__ */ C("div", {
|
|
2493
|
+
"aria-hidden": "true",
|
|
2494
|
+
className: "absolute pointer-events-none",
|
|
2495
|
+
style: {
|
|
2496
|
+
left: `calc(282px + (100% - 282px) * ${n})`,
|
|
2497
|
+
top: -1,
|
|
2498
|
+
bottom: 0
|
|
2499
|
+
},
|
|
2500
|
+
children: [/* @__PURE__ */ S("span", { className: "absolute top-0 bottom-0 w-px bg-fg-96" }), /* @__PURE__ */ S("span", {
|
|
2501
|
+
className: "absolute -top-3 -translate-x-1/2 flex items-center justify-center h-4 w-[43px] rounded kol-float-ruler leading-none bg-[var(--kol-surface-on-primary)] text-[var(--kol-surface-primary)]",
|
|
2502
|
+
children: We(t)
|
|
2503
|
+
})]
|
|
2504
|
+
});
|
|
2505
|
+
}
|
|
2506
|
+
var X = (e) => Array.isArray(e) ? e : r[e] ?? null, Z = 132, Q = 14;
|
|
2507
|
+
function Qe({ track: e, writeKeys: t, selected: n, setSelected: i }) {
|
|
2508
|
+
let a = v(null), [o, s] = y(0), [c, l] = y(null), u = v(null);
|
|
2509
|
+
g(() => {
|
|
2510
|
+
let e = a.current;
|
|
2511
|
+
if (!e) return;
|
|
2512
|
+
let t = new ResizeObserver(([e]) => s(e.contentRect.width));
|
|
2513
|
+
return t.observe(e), () => t.disconnect();
|
|
2514
|
+
}, []);
|
|
2515
|
+
let d = c ?? e.keys, f = d.map((e) => e.v), p = Math.min(...f), m = Math.max(...f);
|
|
2516
|
+
u.current?.range && ([p, m] = u.current.range), m - p < 1e-9 && (--p, m += 1);
|
|
2517
|
+
let h = (e) => e * o, _ = (e) => Q + (1 - (e - p) / (m - p)) * (Z - 2 * Q), b = (e) => {
|
|
2518
|
+
let t = a.current.getBoundingClientRect();
|
|
2519
|
+
return {
|
|
2520
|
+
t: Math.min(1, Math.max(0, (e.clientX - t.left) / t.width)),
|
|
2521
|
+
v: p + (1 - (e.clientY - t.top - Q) / (Z - 2 * Q)) * (m - p)
|
|
2522
|
+
};
|
|
2523
|
+
}, x = d.slice(0, -1).map((e, t) => ({
|
|
2524
|
+
i: t,
|
|
2525
|
+
a: e,
|
|
2526
|
+
b: d[t + 1],
|
|
2527
|
+
bez: e.easing === "hold" ? null : X(e.easing ?? "linear") ?? r.linear
|
|
2528
|
+
})), w = (t, n) => (r) => {
|
|
2529
|
+
r.stopPropagation(), r.currentTarget.setPointerCapture(r.pointerId), u.current = {
|
|
2530
|
+
kind: t,
|
|
2531
|
+
i: n,
|
|
2532
|
+
range: [p, m],
|
|
2533
|
+
moved: !1
|
|
2534
|
+
}, t === "key" && i({
|
|
2535
|
+
trackId: e.id,
|
|
2536
|
+
index: n
|
|
2537
|
+
});
|
|
2538
|
+
}, T = (e) => {
|
|
2539
|
+
let t = u.current;
|
|
2540
|
+
if (!t) return;
|
|
2541
|
+
t.moved = !0;
|
|
2542
|
+
let n = b(e), i = d.map((e) => ({ ...e }));
|
|
2543
|
+
if (t.kind === "key") {
|
|
2544
|
+
let e = i[t.i - 1]?.t ?? 0, r = i[t.i + 1]?.t ?? 1;
|
|
2545
|
+
i[t.i].t = Math.min(r, Math.max(e, n.t)), i[t.i].v = n.v;
|
|
2546
|
+
} else {
|
|
2547
|
+
let e = i[t.i], a = i[t.i + 1], o = a.t - e.t || 1e-6, s = Math.abs(a.v - e.v) > 1e-9 ? a.v - e.v : m - p, c = Math.min(1, Math.max(0, (n.t - e.t) / o)), l = (n.v - e.v) / s, u = [...X(e.easing ?? "linear") ?? r.linear];
|
|
2548
|
+
t.kind === "out" ? (u[0] = c, u[1] = l) : (u[2] = c, u[3] = l), e.easing = u.map((e) => Math.round(e * 1e3) / 1e3);
|
|
2549
|
+
}
|
|
2550
|
+
l(i);
|
|
2551
|
+
}, E = () => {
|
|
2552
|
+
let n = u.current;
|
|
2553
|
+
if (u.current = null, n?.moved && c) {
|
|
2554
|
+
let r = c[n.i];
|
|
2555
|
+
t(e, c), n.kind === "key" && i({
|
|
2556
|
+
trackId: e.id,
|
|
2557
|
+
index: [...c].sort((e, t) => e.t - t.t).indexOf(r)
|
|
2558
|
+
});
|
|
2559
|
+
}
|
|
2560
|
+
l(null);
|
|
2561
|
+
}, D = n?.trackId === e.id ? n.index : -1, O = (e, t, n, r, i, a) => /* @__PURE__ */ C("g", { children: [/* @__PURE__ */ S("line", {
|
|
2562
|
+
x1: n,
|
|
2563
|
+
y1: r,
|
|
2564
|
+
x2: e,
|
|
2565
|
+
y2: t,
|
|
2566
|
+
stroke: "var(--kol-accent-primary)",
|
|
2567
|
+
strokeWidth: 1
|
|
2568
|
+
}), /* @__PURE__ */ S("circle", {
|
|
2569
|
+
cx: e,
|
|
2570
|
+
cy: t,
|
|
2571
|
+
r: 4,
|
|
2572
|
+
fill: "var(--kol-surface-primary)",
|
|
2573
|
+
stroke: "var(--kol-accent-primary)",
|
|
2574
|
+
strokeWidth: 1.5,
|
|
2575
|
+
style: { cursor: "grab" },
|
|
2576
|
+
onPointerDown: w(i, a),
|
|
2577
|
+
onPointerMove: T,
|
|
2578
|
+
onPointerUp: E,
|
|
2579
|
+
onPointerCancel: E
|
|
2580
|
+
})] }, `${i}${a}`);
|
|
2581
|
+
return /* @__PURE__ */ C("div", {
|
|
2582
|
+
className: "flex items-stretch",
|
|
2583
|
+
style: { gap: Pe },
|
|
2584
|
+
children: [/* @__PURE__ */ C("span", {
|
|
2585
|
+
className: "shrink-0 flex flex-col justify-between items-end kol-float-ruler text-meta py-2",
|
|
2586
|
+
style: { width: Ne },
|
|
2587
|
+
children: [/* @__PURE__ */ S("span", { children: Math.round(m * 100) / 100 }), /* @__PURE__ */ S("span", { children: Math.round(p * 100) / 100 })]
|
|
2588
|
+
}), /* @__PURE__ */ S("div", {
|
|
2589
|
+
ref: a,
|
|
2590
|
+
className: "relative flex-1 rounded-[5px] bg-[var(--kol-float-well)]",
|
|
2591
|
+
style: {
|
|
2592
|
+
height: Z,
|
|
2593
|
+
touchAction: "none"
|
|
2594
|
+
},
|
|
2595
|
+
children: o > 0 && /* @__PURE__ */ C("svg", {
|
|
2596
|
+
width: o,
|
|
2597
|
+
height: Z,
|
|
2598
|
+
className: "absolute inset-0 overflow-visible",
|
|
2599
|
+
children: [
|
|
2600
|
+
x.map(({ i: e, a: t, b: n, bez: r }) => r ? /* @__PURE__ */ S("path", {
|
|
2601
|
+
d: `M ${h(t.t)} ${_(t.v)} C ${h(t.t + r[0] * (n.t - t.t))} ${_(t.v + r[1] * (n.v - t.v))}, ${h(t.t + r[2] * (n.t - t.t))} ${_(t.v + r[3] * (n.v - t.v))}, ${h(n.t)} ${_(n.v)}`,
|
|
2602
|
+
fill: "none",
|
|
2603
|
+
stroke: "var(--kol-fg-emphasis)",
|
|
2604
|
+
strokeWidth: 1.5
|
|
2605
|
+
}, `s${e}`) : /* @__PURE__ */ S("path", {
|
|
2606
|
+
d: `M ${h(t.t)} ${_(t.v)} H ${h(n.t)} V ${_(n.v)}`,
|
|
2607
|
+
fill: "none",
|
|
2608
|
+
stroke: "var(--kol-fg-emphasis)",
|
|
2609
|
+
strokeWidth: 1.5,
|
|
2610
|
+
strokeDasharray: "3 3"
|
|
2611
|
+
}, `s${e}`)),
|
|
2612
|
+
x.filter(({ i: e, bez: t }) => t && (e === D || e + 1 === D)).map(({ i: e, a: t, b: n, bez: r }) => {
|
|
2613
|
+
let i = Math.abs(n.v - t.v) > 1e-9 ? n.v - t.v : m - p;
|
|
2614
|
+
return [e === D ? O(h(t.t + r[0] * (n.t - t.t)), _(t.v + r[1] * i), h(t.t), _(t.v), "out", e) : null, e + 1 === D ? O(h(t.t + r[2] * (n.t - t.t)), _(t.v + r[3] * i), h(n.t), _(n.v), "in", e) : null];
|
|
2615
|
+
}),
|
|
2616
|
+
d.map((e, t) => /* @__PURE__ */ S("rect", {
|
|
2617
|
+
x: h(e.t) - 4.5,
|
|
2618
|
+
y: _(e.v) - 4.5,
|
|
2619
|
+
width: 9,
|
|
2620
|
+
height: 9,
|
|
2621
|
+
rx: 1.5,
|
|
2622
|
+
transform: `rotate(45 ${h(e.t)} ${_(e.v)})`,
|
|
2623
|
+
fill: t === D ? "var(--kol-accent-primary)" : "var(--kol-fg-emphasis)",
|
|
2624
|
+
style: { cursor: "grab" },
|
|
2625
|
+
onPointerDown: w("key", t),
|
|
2626
|
+
onPointerMove: T,
|
|
2627
|
+
onPointerUp: E,
|
|
2628
|
+
onPointerCancel: E
|
|
2629
|
+
}, `k${t}`))
|
|
2630
|
+
]
|
|
2631
|
+
})
|
|
2632
|
+
})]
|
|
2633
|
+
});
|
|
2634
|
+
}
|
|
2635
|
+
var $e = [...i, {
|
|
2636
|
+
value: "custom",
|
|
2637
|
+
label: "Custom"
|
|
2638
|
+
}];
|
|
2639
|
+
function et({ tracks: e, selected: t, setSelected: n, writeKeys: i, len: a }) {
|
|
2640
|
+
if (!t) return null;
|
|
2641
|
+
let o = e.find((e) => e.id === t.trackId), s = o?.keys[t.index];
|
|
2642
|
+
if (!s || o.readOnly) return null;
|
|
2643
|
+
let c = (e) => {
|
|
2644
|
+
i(o, o.keys.map((n, r) => r === t.index ? {
|
|
2645
|
+
...n,
|
|
2646
|
+
...e
|
|
2647
|
+
} : n));
|
|
2648
|
+
}, f = typeof s.v == "number", p = Array.isArray(s.easing) ? "custom" : s.easing ?? "linear";
|
|
2649
|
+
return /* @__PURE__ */ S("div", {
|
|
2650
|
+
className: "flex items-start gap-3 pt-1",
|
|
2651
|
+
children: /* @__PURE__ */ C("div", {
|
|
2652
|
+
className: "flex items-center gap-2 flex-wrap min-w-0 flex-1",
|
|
2653
|
+
children: [
|
|
2654
|
+
/* @__PURE__ */ C("span", {
|
|
2655
|
+
className: "kol-float-label text-meta shrink-0",
|
|
2656
|
+
children: [
|
|
2657
|
+
"key @ ",
|
|
2658
|
+
Ue(s.t, a),
|
|
2659
|
+
" s"
|
|
2660
|
+
]
|
|
2661
|
+
}),
|
|
2662
|
+
!o.header && /* @__PURE__ */ S(d, {
|
|
2663
|
+
variant: "float",
|
|
2664
|
+
size: "sm",
|
|
2665
|
+
chars: 7,
|
|
2666
|
+
type: f ? "number" : "text",
|
|
2667
|
+
value: String(s.v),
|
|
2668
|
+
onChange: (e) => c({ v: f ? Number(e.target.value) || 0 : e.target.value })
|
|
2669
|
+
}),
|
|
2670
|
+
/* @__PURE__ */ S(u, {
|
|
2671
|
+
variant: "subtle",
|
|
2672
|
+
size: "sm",
|
|
2673
|
+
options: $e,
|
|
2674
|
+
value: p,
|
|
2675
|
+
onChange: (e) => c({ easing: e === "custom" ? [...X(s.easing) ?? r["in-out"]] : e })
|
|
2676
|
+
}),
|
|
2677
|
+
/* @__PURE__ */ S(l, {
|
|
2678
|
+
variant: "float",
|
|
2679
|
+
tone: "ghost",
|
|
2680
|
+
size: "sm",
|
|
2681
|
+
onClick: () => {
|
|
2682
|
+
o.keys.length > 1 && i(o, o.keys.filter((e, n) => n !== t.index)), n(null);
|
|
2683
|
+
},
|
|
2684
|
+
children: "Delete key"
|
|
2685
|
+
}),
|
|
2686
|
+
/* @__PURE__ */ S(l, {
|
|
2687
|
+
variant: "float",
|
|
2688
|
+
tone: "ghost",
|
|
2689
|
+
size: "sm",
|
|
2690
|
+
className: "ml-auto",
|
|
2691
|
+
onClick: () => n(null),
|
|
2692
|
+
children: "Close"
|
|
2693
|
+
})
|
|
2694
|
+
]
|
|
2695
|
+
})
|
|
2696
|
+
});
|
|
2697
|
+
}
|
|
2698
|
+
var tt = "kol-fxr:dock-h", nt = 128, rt = 480, it = () => {
|
|
2699
|
+
try {
|
|
2700
|
+
let e = Number(localStorage.getItem(tt));
|
|
2701
|
+
return e >= nt ? e : null;
|
|
2702
|
+
} catch {
|
|
2703
|
+
return null;
|
|
2704
|
+
}
|
|
2705
|
+
};
|
|
2706
|
+
function at({ onDrag: e, onEnd: t, onReset: n }) {
|
|
2707
|
+
let r = v(null), i = v(null), [a, o] = y(!1);
|
|
2708
|
+
return m(r, { axis: "x" }), /* @__PURE__ */ S("div", {
|
|
2709
|
+
ref: r,
|
|
2710
|
+
className: `kol-timeline-grab ${a ? "is-dragging" : ""}`.trim(),
|
|
2711
|
+
role: "separator",
|
|
2712
|
+
"aria-orientation": "horizontal",
|
|
2713
|
+
"aria-label": "Resize the timeline",
|
|
2714
|
+
onPointerDown: (e) => {
|
|
2715
|
+
e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), i.current = e.clientY, o(!0);
|
|
2716
|
+
},
|
|
2717
|
+
onPointerMove: (t) => {
|
|
2718
|
+
i.current != null && e(i.current - t.clientY);
|
|
2719
|
+
},
|
|
2720
|
+
onPointerUp: (e) => {
|
|
2721
|
+
e.currentTarget.releasePointerCapture(e.pointerId), i.current = null, o(!1), t?.();
|
|
2722
|
+
},
|
|
2723
|
+
onPointerCancel: () => {
|
|
2724
|
+
i.current = null, o(!1), t?.();
|
|
2725
|
+
},
|
|
2726
|
+
onDoubleClick: n
|
|
2727
|
+
});
|
|
2728
|
+
}
|
|
2729
|
+
function ot() {
|
|
2730
|
+
let { layers: e } = n(), t = be(), r = Me();
|
|
2731
|
+
return _(() => Re(e).length > 0, [e]) || !!t.active || r;
|
|
2732
|
+
}
|
|
2733
|
+
function st({ surface: e = "solid" }) {
|
|
2734
|
+
let { layers: t, updateLayer: r, selectedIds: i, select: c, toggleLayer: l, toggleLayerLock: u, currentPresetName: d } = n(), { t: f, loopSeconds: p, seek: m } = s(), h = be(), b = Me(), x = _(() => Re(t), [t]), w = _(() => h.active && !x.some((e) => e.header) ? [{
|
|
2735
|
+
id: "morph:empty",
|
|
2736
|
+
layerId: null,
|
|
2737
|
+
key: "morphT",
|
|
2738
|
+
label: h.fileName || "Morph",
|
|
2739
|
+
keys: [],
|
|
2740
|
+
header: !0,
|
|
2741
|
+
readOnly: !0,
|
|
2742
|
+
names: [],
|
|
2743
|
+
steps: 0
|
|
2744
|
+
}, ...x] : x, [
|
|
2745
|
+
x,
|
|
2746
|
+
h.active,
|
|
2747
|
+
h.fileName
|
|
2748
|
+
]), [T, E] = y(null), [D, O] = y(() => /* @__PURE__ */ new Set()), [k, A] = y(1), [j, M] = y(it), N = v(null);
|
|
2749
|
+
g(() => {
|
|
2750
|
+
try {
|
|
2751
|
+
j ? localStorage.setItem(tt, String(j)) : localStorage.removeItem(tt);
|
|
2752
|
+
} catch {}
|
|
2753
|
+
}, [j]);
|
|
2754
|
+
let P = v(Array(Ie).fill(0)), F = _(() => ze(t), [t]);
|
|
2755
|
+
if (F.some(Be) && (P.current.push(o().level), P.current.shift()), w.length === 0 && !b) return null;
|
|
2756
|
+
let ee = f * p, I = ct(p, k, ee), L = (e, t) => {
|
|
2757
|
+
let n = [...t].sort((e, t) => e.t - t.t);
|
|
2758
|
+
r(e.layerId, { [e.key]: {
|
|
2759
|
+
bind: "track",
|
|
2760
|
+
keys: n
|
|
2761
|
+
} });
|
|
2762
|
+
}, R = (e) => O((t) => {
|
|
2763
|
+
let n = new Set(t);
|
|
2764
|
+
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2765
|
+
}), z = T && w.find((e) => e.id === T.trackId) || w.find((e) => i.includes(e.layerId) && !e.readOnly) || null, te = () => {
|
|
2766
|
+
if (!z) return;
|
|
2767
|
+
let e = [...z.keys, {
|
|
2768
|
+
t: f,
|
|
2769
|
+
v: Le(z.keys, f),
|
|
2770
|
+
easing: "linear"
|
|
2771
|
+
}].sort((e, t) => e.t - t.t);
|
|
2772
|
+
L(z, e), E({
|
|
2773
|
+
trackId: z.id,
|
|
2774
|
+
index: e.findIndex((e) => e.t === f)
|
|
2775
|
+
});
|
|
2776
|
+
}, B = /* @__PURE__ */ new Map();
|
|
2777
|
+
for (let e of w) {
|
|
2778
|
+
let t = B.get(e.layerId) ?? [];
|
|
2779
|
+
t.push(e), B.set(e.layerId, t);
|
|
2780
|
+
}
|
|
2781
|
+
let V = [];
|
|
2782
|
+
for (let e of F) {
|
|
2783
|
+
let t = B.get(e.id) ?? [];
|
|
2784
|
+
t.length === 0 ? V.push({
|
|
2785
|
+
id: e.id,
|
|
2786
|
+
layer: e,
|
|
2787
|
+
kind: Be(e) ? "wave" : "clip"
|
|
2788
|
+
}) : t.forEach((t, n) => V.push({
|
|
2789
|
+
id: t.id,
|
|
2790
|
+
layer: e,
|
|
2791
|
+
track: t,
|
|
2792
|
+
sub: n > 0
|
|
2793
|
+
}));
|
|
2794
|
+
}
|
|
2795
|
+
for (let e of B.get(null) ?? []) V.push({
|
|
2796
|
+
id: e.id,
|
|
2797
|
+
layer: null,
|
|
2798
|
+
track: e
|
|
2799
|
+
});
|
|
2800
|
+
let H = V.filter((e) => !(e.track?.under && D.has(e.track.under))), ne = (e) => !!e && i.includes(e.id), re = !!(T && w.find((e) => e.id === T.trackId && !e.header && !e.readOnly)), ie = !!a.clock.state.looping, ae = H.map((e) => ({
|
|
2801
|
+
...e,
|
|
2802
|
+
lit: ne(e.layer) || !!e.track && T?.trackId === e.track.id,
|
|
2803
|
+
labelLit: ne(e.layer),
|
|
2804
|
+
name: e.sub ? e.track.key : e.layer ? W(e.layer) : e.track.label,
|
|
2805
|
+
label: e.kind === "wave" ? `${W(e.layer)} · audio` : void 0,
|
|
2806
|
+
wave: e.kind === "wave" ? P.current : void 0,
|
|
2807
|
+
fold: e.track?.header && w.some((t) => t.under === e.track.id) ? {
|
|
2808
|
+
folded: D.has(e.track.id),
|
|
2809
|
+
toggle: () => R(e.track.id)
|
|
2810
|
+
} : null,
|
|
2811
|
+
graph: e.track && T?.trackId === e.track.id && !e.track.header && !e.track.readOnly && e.track.keys.every((e) => typeof e.v == "number") ? /* @__PURE__ */ S(Qe, {
|
|
2812
|
+
track: e.track,
|
|
2813
|
+
writeKeys: L,
|
|
2814
|
+
selected: T,
|
|
2815
|
+
setSelected: E
|
|
2816
|
+
}) : null
|
|
2817
|
+
}));
|
|
2818
|
+
return /* @__PURE__ */ C("div", {
|
|
2819
|
+
className: "kol-timeline-dock relative p-3 select-none",
|
|
2820
|
+
style: {
|
|
2821
|
+
height: j ?? void 0,
|
|
2822
|
+
maxHeight: j ? void 0 : rt
|
|
2823
|
+
},
|
|
2824
|
+
children: [/* @__PURE__ */ S(at, {
|
|
2825
|
+
onDrag: (e) => {
|
|
2826
|
+
N.current ??= j ?? 0, M(Math.min(rt, Math.max(nt, (N.current || 222) + e)));
|
|
2827
|
+
},
|
|
2828
|
+
onEnd: () => {
|
|
2829
|
+
N.current = null;
|
|
2830
|
+
},
|
|
2831
|
+
onReset: () => M(null)
|
|
2832
|
+
}), /* @__PURE__ */ S(lt, {
|
|
2833
|
+
surface: e,
|
|
2834
|
+
className: "h-full min-h-0",
|
|
2835
|
+
title: d || "Untitled",
|
|
2836
|
+
count: F.length,
|
|
2837
|
+
onAdd: z ? te : void 0,
|
|
2838
|
+
mode: re ? "Curve" : "Keyframes",
|
|
2839
|
+
looping: ie,
|
|
2840
|
+
onLoop: () => a.clock.set({ looping: !ie }),
|
|
2841
|
+
zoom: k,
|
|
2842
|
+
onZoom: () => A(Fe[(Fe.indexOf(k) + 1) % Fe.length]),
|
|
2843
|
+
onFit: () => A(1),
|
|
2844
|
+
expanded: !!j,
|
|
2845
|
+
onExpand: () => M(j ? null : rt),
|
|
2846
|
+
view: I,
|
|
2847
|
+
seek: m,
|
|
2848
|
+
now: ee,
|
|
2849
|
+
rows: ae,
|
|
2850
|
+
selected: T,
|
|
2851
|
+
setSelected: E,
|
|
2852
|
+
writeKeys: L,
|
|
2853
|
+
select: c,
|
|
2854
|
+
toggleLayer: l,
|
|
2855
|
+
toggleLayerLock: u,
|
|
2856
|
+
footer: /* @__PURE__ */ S(et, {
|
|
2857
|
+
tracks: w,
|
|
2858
|
+
selected: T,
|
|
2859
|
+
setSelected: E,
|
|
2860
|
+
writeKeys: L,
|
|
2861
|
+
len: p
|
|
2862
|
+
})
|
|
2863
|
+
})]
|
|
2864
|
+
});
|
|
2865
|
+
}
|
|
2866
|
+
var $ = () => {};
|
|
2867
|
+
function ct(e, t = 1, n = 0) {
|
|
2868
|
+
let r = e / t, i = t === 1 ? 0 : Math.min(Math.max(0, n - r / 2), e - r);
|
|
2869
|
+
return {
|
|
2870
|
+
loop: e,
|
|
2871
|
+
origin: i,
|
|
2872
|
+
span: r,
|
|
2873
|
+
X: (t) => (t * e - i) / r,
|
|
2874
|
+
fracFromEvent: (t, n) => {
|
|
2875
|
+
let a = n.getBoundingClientRect(), o = i + Math.min(1, Math.max(0, (t.clientX - a.left) / a.width)) * r;
|
|
2876
|
+
return Math.min(1, Math.max(0, o / e));
|
|
2877
|
+
}
|
|
2878
|
+
};
|
|
2879
|
+
}
|
|
2880
|
+
function lt({ surface: e = "solid", title: t, count: n = 0, onAdd: r, mode: i = "Keyframes", looping: a = !1, onLoop: o, zoom: s = 1, onZoom: c, onFit: l, expanded: u = !1, onExpand: d, view: m, seek: g = $, now: _ = 0, rows: v = [], selected: y = null, setSelected: b = $, writeKeys: x = $, select: T = $, toggleLayer: E = $, toggleLayerLock: D = $, footer: O, className: k = "", style: A }) {
|
|
2881
|
+
return /* @__PURE__ */ C("div", {
|
|
2882
|
+
className: `kol-timeline flex flex-col gap-2 p-3 ${p(e, !0)} ${k}`.trim(),
|
|
2883
|
+
style: {
|
|
2884
|
+
borderRadius: "var(--kol-float-menu-r)",
|
|
2885
|
+
...A
|
|
2886
|
+
},
|
|
2887
|
+
children: [
|
|
2888
|
+
/* @__PURE__ */ C("div", {
|
|
2889
|
+
className: "flex items-center justify-between h-6 shrink-0",
|
|
2890
|
+
children: [/* @__PURE__ */ C("div", {
|
|
2891
|
+
className: "flex items-center gap-3.5",
|
|
2892
|
+
children: [
|
|
2893
|
+
/* @__PURE__ */ S("span", {
|
|
2894
|
+
className: "flex text-oq-96",
|
|
2895
|
+
"aria-hidden": "true",
|
|
2896
|
+
children: /* @__PURE__ */ S(w, {
|
|
2897
|
+
name: "layers",
|
|
2898
|
+
size: 14
|
|
2899
|
+
})
|
|
2900
|
+
}),
|
|
2901
|
+
/* @__PURE__ */ S("span", {
|
|
2902
|
+
className: "kol-float-panel text-emphasis whitespace-nowrap",
|
|
2903
|
+
children: t
|
|
2904
|
+
}),
|
|
2905
|
+
/* @__PURE__ */ C("span", {
|
|
2906
|
+
className: "kol-float-label text-meta whitespace-nowrap",
|
|
2907
|
+
children: [
|
|
2908
|
+
n,
|
|
2909
|
+
" ",
|
|
2910
|
+
n === 1 ? "layer" : "layers"
|
|
2911
|
+
]
|
|
2912
|
+
}),
|
|
2913
|
+
/* @__PURE__ */ S(Y, {
|
|
2914
|
+
name: "plus",
|
|
2915
|
+
label: "Add a key at the head",
|
|
2916
|
+
disabled: !r,
|
|
2917
|
+
onClick: r
|
|
2918
|
+
})
|
|
2919
|
+
]
|
|
2920
|
+
}), /* @__PURE__ */ C("div", {
|
|
2921
|
+
className: "flex items-center gap-[18px]",
|
|
2922
|
+
children: [
|
|
2923
|
+
/* @__PURE__ */ S("span", {
|
|
2924
|
+
className: "kol-float-label text-fg-64",
|
|
2925
|
+
children: i
|
|
2926
|
+
}),
|
|
2927
|
+
/* @__PURE__ */ S(Y, {
|
|
2928
|
+
name: "overlap",
|
|
2929
|
+
label: a ? "Loop off" : "Loop on",
|
|
2930
|
+
toggle: !0,
|
|
2931
|
+
on: a,
|
|
2932
|
+
onClick: o
|
|
2933
|
+
}),
|
|
2934
|
+
/* @__PURE__ */ S(Y, {
|
|
2935
|
+
name: "cap-round",
|
|
2936
|
+
label: "Fit the loop",
|
|
2937
|
+
on: s !== 1,
|
|
2938
|
+
onClick: l
|
|
2939
|
+
}),
|
|
2940
|
+
/* @__PURE__ */ S(f, {
|
|
2941
|
+
label: "Zoom the lanes",
|
|
2942
|
+
variant: "float",
|
|
2943
|
+
asChild: !0,
|
|
2944
|
+
children: /* @__PURE__ */ C("button", {
|
|
2945
|
+
type: "button",
|
|
2946
|
+
onClick: c,
|
|
2947
|
+
className: "kol-float-timecode text-emphasis leading-none cursor-pointer rounded outline-none focus-visible:shadow-[var(--kol-float-focus)]",
|
|
2948
|
+
children: [s * 100, "%"]
|
|
2949
|
+
})
|
|
2950
|
+
}),
|
|
2951
|
+
/* @__PURE__ */ S(Y, {
|
|
2952
|
+
name: "nav-create",
|
|
2953
|
+
label: u ? "Fit the timeline to its lanes" : "Expand the timeline",
|
|
2954
|
+
on: u,
|
|
2955
|
+
onClick: d
|
|
2956
|
+
})
|
|
2957
|
+
]
|
|
2958
|
+
})]
|
|
2959
|
+
}),
|
|
2960
|
+
/* @__PURE__ */ C("div", {
|
|
2961
|
+
className: "relative flex flex-col gap-2 min-h-0",
|
|
2962
|
+
children: [
|
|
2963
|
+
/* @__PURE__ */ S(Xe, {
|
|
2964
|
+
view: m,
|
|
2965
|
+
seek: g
|
|
2966
|
+
}),
|
|
2967
|
+
/* @__PURE__ */ S("div", {
|
|
2968
|
+
className: "flex flex-col gap-1 min-h-0 overflow-y-auto",
|
|
2969
|
+
children: v.map((e) => /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ C("div", {
|
|
2970
|
+
className: "flex items-start shrink-0",
|
|
2971
|
+
style: {
|
|
2972
|
+
gap: Pe,
|
|
2973
|
+
height: J
|
|
2974
|
+
},
|
|
2975
|
+
children: [/* @__PURE__ */ S(Ye, {
|
|
2976
|
+
layer: e.layer,
|
|
2977
|
+
sub: e.sub,
|
|
2978
|
+
lit: e.labelLit ?? e.lit,
|
|
2979
|
+
name: e.name,
|
|
2980
|
+
select: T,
|
|
2981
|
+
toggleLayer: E,
|
|
2982
|
+
toggleLayerLock: D,
|
|
2983
|
+
fold: e.fold
|
|
2984
|
+
}), e.track ? /* @__PURE__ */ S(Ge, {
|
|
2985
|
+
track: e.track,
|
|
2986
|
+
view: m,
|
|
2987
|
+
selected: y,
|
|
2988
|
+
setSelected: b,
|
|
2989
|
+
writeKeys: x,
|
|
2990
|
+
lit: !!e.lit
|
|
2991
|
+
}) : e.kind === "wave" ? /* @__PURE__ */ S(Je, {
|
|
2992
|
+
view: m,
|
|
2993
|
+
lit: !!e.lit,
|
|
2994
|
+
label: e.label,
|
|
2995
|
+
wave: e.wave ?? []
|
|
2996
|
+
}) : /* @__PURE__ */ S(qe, {
|
|
2997
|
+
view: m,
|
|
2998
|
+
lit: !!e.lit,
|
|
2999
|
+
label: e.label
|
|
3000
|
+
})]
|
|
3001
|
+
}), e.graph] }, e.id))
|
|
3002
|
+
}),
|
|
3003
|
+
/* @__PURE__ */ S(Ze, {
|
|
3004
|
+
view: m,
|
|
3005
|
+
now: _
|
|
3006
|
+
})
|
|
3007
|
+
]
|
|
3008
|
+
}),
|
|
3009
|
+
O
|
|
3010
|
+
]
|
|
3011
|
+
});
|
|
3012
|
+
}
|
|
3013
|
+
//#endregion
|
|
3014
|
+
export { O as A, W as C, R as D, ne as E, A as M, j as N, L as O, M as P, oe as S, ie as T, le as _, je as a, pe as b, ye as c, Ee as d, Se as f, be as g, we as h, ot as i, P as j, ae as k, De as l, Oe as m, lt as n, Me as o, xe as p, ct as r, Ce as s, st as t, Te as u, ce as v, H as w, me as x, he as y };
|