@kolkrabbi/design-editor 0.24.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.
Files changed (35) hide show
  1. package/README.md +2 -2
  2. package/dist/BindDot-CMUtpJPX.js +84 -0
  3. package/dist/BufferGeometryUtils-Cc8LNd5v.js +150 -0
  4. package/dist/ColorModesWindow-CWhL6nfm.js +1493 -0
  5. package/dist/GLTFLoader-BFir8PCc.js +1361 -0
  6. package/dist/OBJLoader-BgqC_-Jn.js +287 -0
  7. package/dist/{OrbitControls-Cql8Rn2i.js → OrbitControls-DVpLgmKv.js} +2755 -2202
  8. package/dist/STLLoader-C6DGLf6r.js +83 -0
  9. package/dist/Timeline-BObvcdXF.js +3014 -0
  10. package/dist/TreePicker-nMf17QGH.js +68 -0
  11. package/dist/core-EWu8GfXL.js +17504 -0
  12. package/dist/core.js +5 -3
  13. package/dist/design-editor.css +1 -1
  14. package/dist/design-editor.js +2114 -916
  15. package/dist/effects-DZEmfY7a.js +444 -0
  16. package/dist/effects.js +1 -1
  17. package/dist/generators-D1tFSZgG.js +2961 -0
  18. package/dist/generators.js +1 -1
  19. package/dist/{host-qtFVROOD.js → host-CRsCCafL.js} +429 -370
  20. package/dist/{host-be1CWhN1.js → host-ZLJKCZ54.js} +137 -136
  21. package/dist/motion-C_u7tsis.js +2295 -0
  22. package/dist/motion.js +1 -1
  23. package/dist/previewScale-BMkeLc6w.js +26 -0
  24. package/dist/{rolls-Bg1XHuvJ.js → rolls-BGtqxVYq.js} +2621 -1522
  25. package/dist/{src-B5fQgAVE.js → src-BpTckTDZ.js} +1 -1
  26. package/dist/{useLayerEdit-ieOjHx6x.js → useLayerEdit-BFcZhiNX.js} +20992 -12580
  27. package/package.json +9 -7
  28. package/dist/RuleRow-DIbuUt37.js +0 -650
  29. package/dist/TreePicker-DLmMl0aU.js +0 -68
  30. package/dist/core-CNI8b_83.js +0 -12314
  31. package/dist/effectCategories-0PnGZvjd.js +0 -4210
  32. package/dist/effects-BujxwoNY.js +0 -469
  33. package/dist/generators-SpRHQDMq.js +0 -2517
  34. package/dist/labels-B5qkocWy.js +0 -2007
  35. package/dist/motion-Bn3FVkCS.js +0 -2260
@@ -1,2007 +0,0 @@
1
- import { nn as e, tn as t } from "./rolls-Bg1XHuvJ.js";
2
- //#region src/kinetic/paths.js
3
- var n = Math.PI * 2, r = (e) => Math.round(e * 100) / 100;
4
- function i(e) {
5
- return e.map((e, t) => `${t === 0 ? "M" : "L"} ${r(e[0])} ${r(e[1])}`).join(" ");
6
- }
7
- var a = [
8
- [.12, .55],
9
- [.37, .32],
10
- [.63, .68],
11
- [.88, .45]
12
- ];
13
- function o(e, t, n) {
14
- let i = e.map(([e, r]) => [e * t, r * n]);
15
- if (i.length < 2) return `M ${r(t / 2)} ${r(n / 2)} L ${r(t / 2 + 1)} ${r(n / 2)}`;
16
- let a = `M ${r(i[0][0])} ${r(i[0][1])}`;
17
- for (let e = 0; e < i.length - 1; e++) {
18
- let t = i[e - 1] || i[e], n = i[e], o = i[e + 1], s = i[e + 2] || i[e + 1], c = n[0] + (o[0] - t[0]) / 6, l = n[1] + (o[1] - t[1]) / 6, u = o[0] - (s[0] - n[0]) / 6, d = o[1] - (s[1] - n[1]) / 6;
19
- a += ` C ${r(c)} ${r(l)} ${r(u)} ${r(d)} ${r(o[0])} ${r(o[1])}`;
20
- }
21
- return a;
22
- }
23
- var s = (e) => e === "array", c = (e) => e === "radial", l = (e) => e === "rings", u = {
24
- amp: .4,
25
- freq: 2,
26
- turns: 3,
27
- radius: .72,
28
- rows: 2,
29
- cols: 3,
30
- count: 12,
31
- inner: .12,
32
- spin: 1,
33
- twist: .5,
34
- grow: .6
35
- };
36
- function d(e, t, s, c = {}) {
37
- let l = t / 2, d = s / 2, f = Math.min(t, s) * .12, p = c.amp ?? u.amp, m = Math.max(1, Math.round(c.freq ?? u.freq)), h = Math.max(1, Math.round(c.turns ?? u.turns)), g = c.radius ?? u.radius;
38
- switch (e) {
39
- case "arc": {
40
- let e = s * .62, n = e - p * s * .7;
41
- return {
42
- d: `M ${r(f)} ${r(e)} Q ${r(l)} ${r(n)} ${r(t - f)} ${r(e)}`,
43
- closed: !1
44
- };
45
- }
46
- case "circle": {
47
- let e = Math.min(t, s) * .5 * g;
48
- return {
49
- d: `M ${r(l - e)} ${r(d)} A ${r(e)} ${r(e)} 0 1 1 ${r(l + e)} ${r(d)} A ${r(e)} ${r(e)} 0 1 1 ${r(l - e)} ${r(d)} Z`,
50
- closed: !0
51
- };
52
- }
53
- case "ellipse": {
54
- let e = (t * .5 - f) * g, n = (s * .5 - f) * g;
55
- return {
56
- d: `M ${r(l - e)} ${r(d)} A ${r(e)} ${r(n)} 0 1 1 ${r(l + e)} ${r(d)} A ${r(e)} ${r(n)} 0 1 1 ${r(l - e)} ${r(d)} Z`,
57
- closed: !0
58
- };
59
- }
60
- case "sine": {
61
- let e = [];
62
- for (let r = 0; r <= 120; r++) {
63
- let i = r / 120;
64
- e.push([f + i * (t - 2 * f), d + p * s * .32 * Math.sin(i * m * n)]);
65
- }
66
- return {
67
- d: i(e),
68
- closed: !1
69
- };
70
- }
71
- case "spiral": {
72
- let e = Math.min(t, s) * .45 * g, r = [];
73
- for (let t = 0; t <= 420; t++) {
74
- let i = t / 420, a = i * h * n, o = i * e;
75
- r.push([l + Math.cos(a) * o, d + Math.sin(a) * o]);
76
- }
77
- return {
78
- d: i(r),
79
- closed: !1
80
- };
81
- }
82
- case "zigzag": {
83
- let e = m * 2, n = [];
84
- for (let r = 0; r <= e; r++) {
85
- let i = r / e;
86
- n.push([f + i * (t - 2 * f), d + (r % 2 == 0 ? -1 : 1) * p * s * .28]);
87
- }
88
- return {
89
- d: i(n),
90
- closed: !1
91
- };
92
- }
93
- case "custom": return {
94
- d: o(Array.isArray(c.points) && c.points.length >= 2 ? c.points : a, t, s),
95
- closed: !1
96
- };
97
- default: {
98
- let e = d + (c.offset || 0) * s;
99
- return {
100
- d: `M ${r(f)} ${r(e)} L ${r(t - f)} ${r(e)}`,
101
- closed: !1
102
- };
103
- }
104
- }
105
- }
106
- //#endregion
107
- //#region src/kinetic/presets.js
108
- var f = "#0b0d12", p = "#e8e4dc", m = {
109
- text: "Kinetic",
110
- font: "gullhamrar",
111
- fontSize: 120,
112
- fill: "#e8e4dc",
113
- italic: !1,
114
- case: "none",
115
- letterSpacing: 0,
116
- align: "center",
117
- multiply: 1,
118
- group: null,
119
- flow: "flow",
120
- offset: {
121
- x: 0,
122
- y: 0
123
- },
124
- phase: 0,
125
- stagger: 0,
126
- vf: {},
127
- opentype: {},
128
- showPath: !1,
129
- path: {
130
- type: "line",
131
- ...u
132
- },
133
- motion: {
134
- mode: "none",
135
- cycles: 1,
136
- phase: .5,
137
- amp: .3,
138
- axis: "wght",
139
- field: "x"
140
- },
141
- motions: [],
142
- morph: {
143
- on: !1,
144
- mode: "morph",
145
- vf2: {},
146
- face2: "",
147
- curve: "flat",
148
- blend: .5,
149
- cp1: {
150
- x: .33,
151
- y: .33
152
- },
153
- cp2: {
154
- x: .66,
155
- y: .66
156
- }
157
- }
158
- };
159
- function h(n, r = {}) {
160
- let i = e(n), a = t(i);
161
- for (let e of i.axes) r[e.tag] != null && (a[e.tag] = r[e.tag]);
162
- return a;
163
- }
164
- function g(e = {}, t = 0) {
165
- let n = {
166
- id: e.id || `i${t}`,
167
- ...m,
168
- ...e,
169
- path: {
170
- ...m.path,
171
- ...e.path || {}
172
- },
173
- motion: {
174
- ...m.motion,
175
- ...e.motion || {}
176
- },
177
- motions: Array.isArray(e.motions) ? e.motions.map((e) => ({
178
- ...m.motion,
179
- ...e
180
- })) : [],
181
- offset: {
182
- ...m.offset,
183
- ...e.offset || {}
184
- },
185
- opentype: { ...e.opentype || {} },
186
- morph: {
187
- ...m.morph,
188
- ...e.morph || {},
189
- vf2: { ...e.morph?.vf2 || {} }
190
- }
191
- };
192
- return n.vf = h(n.font, e.vf), n;
193
- }
194
- var _ = (e) => ({
195
- bg: f,
196
- instances: [g({
197
- font: "rot",
198
- fill: p,
199
- ...e
200
- }, 0)]
201
- }), v = "#16202E", y = (...e) => ({
202
- bg: v,
203
- instances: e.map((e, t) => g(e, t))
204
- }), b = (e, ...t) => ({
205
- bg: e,
206
- instances: t.map((e, t) => g(e, t))
207
- }), x = [
208
- {
209
- id: "sunburst",
210
- label: "Sunburst",
211
- sub: "Radial",
212
- comp: _({
213
- text: "Without a soul, is it a place?",
214
- fontSize: 26,
215
- vf: {
216
- wdth: 100,
217
- wght: 500
218
- },
219
- path: {
220
- type: "radial",
221
- count: 14,
222
- inner: .1,
223
- spin: 1
224
- }
225
- })
226
- },
227
- {
228
- id: "dense-burst",
229
- label: "Dense burst",
230
- sub: "Radial",
231
- comp: _({
232
- text: "is it a place",
233
- fontSize: 30,
234
- vf: {
235
- wdth: 90,
236
- wght: 600
237
- },
238
- path: {
239
- type: "radial",
240
- count: 28,
241
- inner: .06,
242
- spin: 1
243
- }
244
- })
245
- },
246
- {
247
- id: "double-twirl",
248
- label: "Double twirl",
249
- sub: "Radial",
250
- comp: _({
251
- text: "turning and turning",
252
- fontSize: 24,
253
- font: "malromur",
254
- vf: { wght: 500 },
255
- path: {
256
- type: "radial",
257
- count: 18,
258
- inner: .12,
259
- spin: 2
260
- }
261
- })
262
- },
263
- {
264
- id: "pulse-burst",
265
- label: "Pulse burst",
266
- sub: "Radial",
267
- comp: _({
268
- text: "breathe in, breathe out",
269
- fontSize: 26,
270
- font: "gullhamrar",
271
- vf: { wght: 600 },
272
- path: {
273
- type: "radial",
274
- count: 16,
275
- inner: .1,
276
- spin: 1
277
- },
278
- motion: {
279
- mode: "cascade",
280
- cycles: 2,
281
- phase: .5
282
- }
283
- })
284
- },
285
- {
286
- id: "vortex",
287
- label: "Vortex",
288
- sub: "Rings",
289
- comp: _({
290
- text: "Does a community make a place? ",
291
- fontSize: 24,
292
- vf: {
293
- wdth: 100,
294
- wght: 500
295
- },
296
- path: {
297
- type: "rings",
298
- count: 12,
299
- inner: .1,
300
- radius: .94,
301
- spin: 1,
302
- twist: .6,
303
- grow: .8
304
- }
305
- })
306
- },
307
- {
308
- id: "galaxy",
309
- label: "Galaxy",
310
- sub: "Rings",
311
- comp: _({
312
- text: "spiralling inward forever ",
313
- fontSize: 22,
314
- font: "malromur",
315
- vf: { wght: 500 },
316
- path: {
317
- type: "rings",
318
- count: 16,
319
- inner: .05,
320
- radius: .96,
321
- spin: 1,
322
- twist: 1.25,
323
- grow: .9
324
- }
325
- })
326
- },
327
- {
328
- id: "wide-rings",
329
- label: "Wide rings",
330
- sub: "Rings",
331
- comp: _({
332
- text: "around and around ",
333
- fontSize: 28,
334
- font: "gullhamrar",
335
- vf: { wght: 600 },
336
- path: {
337
- type: "rings",
338
- count: 8,
339
- inner: .18,
340
- radius: .92,
341
- spin: 1,
342
- twist: .3,
343
- grow: 1.2
344
- }
345
- })
346
- },
347
- {
348
- id: "orbit",
349
- label: "Orbit",
350
- sub: "Path",
351
- comp: _({
352
- text: "KOLKRABBI · REYKJAVIK · ",
353
- fontSize: 40,
354
- font: "malromur",
355
- vf: { wght: 500 },
356
- path: {
357
- type: "circle",
358
- radius: .82
359
- },
360
- motion: {
361
- mode: "orbit",
362
- cycles: 1
363
- }
364
- })
365
- },
366
- {
367
- id: "spiral",
368
- label: "Spiral",
369
- sub: "Path",
370
- comp: _({
371
- text: "into the spiral we go ",
372
- fontSize: 30,
373
- vf: {
374
- wdth: 100,
375
- wght: 500
376
- },
377
- path: {
378
- type: "spiral",
379
- turns: 4,
380
- radius: .95
381
- },
382
- motion: {
383
- mode: "march",
384
- cycles: 1
385
- }
386
- })
387
- },
388
- {
389
- id: "template",
390
- label: "Template",
391
- sub: "Path",
392
- comp: _({
393
- text: "Type here",
394
- fontSize: 160,
395
- vf: {
396
- wdth: 100,
397
- wght: 600
398
- }
399
- })
400
- },
401
- {
402
- id: "big-statement",
403
- label: "Flood",
404
- sub: "Scenes",
405
- comp: y({
406
- text: "BIG",
407
- font: "rot",
408
- fontSize: 220,
409
- vf: {
410
- wdth: 140,
411
- wght: 100
412
- },
413
- fill: "#c2502e",
414
- motion: {
415
- mode: "vfwave",
416
- axis: "wght",
417
- cycles: 1,
418
- phase: .5
419
- }
420
- })
421
- },
422
- {
423
- id: "ring-and-word",
424
- label: "Ring",
425
- sub: "Scenes",
426
- comp: y({
427
- id: "a",
428
- text: "KOLKRABBI · REYKJAVIK · ",
429
- font: "malromur",
430
- fontSize: 56,
431
- vf: { wght: 500 },
432
- fill: "#9ec1ff",
433
- path: {
434
- type: "circle",
435
- radius: .86
436
- },
437
- motion: {
438
- mode: "orbit",
439
- cycles: 1
440
- }
441
- }, {
442
- id: "b",
443
- text: "KOL",
444
- font: "gullhamrar",
445
- fontSize: 180,
446
- vf: { wght: 800 },
447
- fill: "#e8e4dc",
448
- path: { type: "line" }
449
- })
450
- },
451
- {
452
- id: "custom-s",
453
- label: "Flow",
454
- sub: "Scenes",
455
- comp: y({
456
- text: "freeform",
457
- fontSize: 96,
458
- vf: { wght: 600 },
459
- path: { type: "custom" },
460
- showPath: !0
461
- })
462
- },
463
- {
464
- id: "malromur-wave",
465
- label: "Morph",
466
- sub: "Scenes",
467
- comp: y({
468
- text: "Malromur",
469
- font: "malromur",
470
- fontSize: 132,
471
- vf: { wght: 300 },
472
- motion: {
473
- mode: "vfwave",
474
- axis: "wght",
475
- cycles: 2,
476
- phase: .5
477
- }
478
- })
479
- },
480
- {
481
- id: "flag",
482
- label: "Wave",
483
- sub: "Scenes",
484
- comp: y({
485
- text: "flag",
486
- font: "rot",
487
- fontSize: 168,
488
- vf: {
489
- wdth: 120,
490
- wght: 600
491
- },
492
- motion: {
493
- mode: "glyphwave",
494
- cycles: 1,
495
- phase: .5,
496
- amp: .5
497
- }
498
- })
499
- },
500
- {
501
- id: "sweep-grid",
502
- label: "Reveal",
503
- sub: "Scenes",
504
- comp: y({
505
- text: "KOL",
506
- font: "rot",
507
- fontSize: 56,
508
- vf: {
509
- wdth: 90,
510
- wght: 500
511
- },
512
- fill: "#7fd1ff",
513
- path: {
514
- type: "array",
515
- rows: 4,
516
- cols: 5
517
- },
518
- motion: {
519
- mode: "sweep",
520
- field: "diagonal",
521
- cycles: 1,
522
- amp: .3
523
- }
524
- })
525
- },
526
- {
527
- id: "baseline",
528
- label: "Baseline",
529
- sub: "Elements",
530
- comp: y({
531
- text: "Typography",
532
- fontSize: 120,
533
- vf: { wght: 500 }
534
- })
535
- },
536
- {
537
- id: "arc-kinetic",
538
- label: "Arcs",
539
- sub: "Elements",
540
- comp: y({
541
- text: "Kinetic",
542
- fontSize: 130,
543
- vf: { wght: 600 },
544
- path: {
545
- type: "arc",
546
- amp: .45
547
- }
548
- })
549
- },
550
- {
551
- id: "ellipse-loop",
552
- label: "Loops",
553
- sub: "Elements",
554
- comp: y({
555
- text: "REYKJAVIK",
556
- font: "rot",
557
- fontSize: 78,
558
- vf: {
559
- wdth: 120,
560
- wght: 600
561
- },
562
- path: {
563
- type: "ellipse",
564
- radius: .92
565
- },
566
- motion: { mode: "orbit" }
567
- })
568
- },
569
- {
570
- id: "zigzag",
571
- label: "Angular",
572
- sub: "Elements",
573
- comp: y({
574
- text: "ZIGZAG",
575
- font: "malromur",
576
- fontSize: 92,
577
- vf: { wght: 700 },
578
- path: {
579
- type: "zigzag",
580
- amp: .5,
581
- freq: 3
582
- }
583
- })
584
- },
585
- {
586
- id: "array-grid",
587
- label: "Grid",
588
- sub: "Elements",
589
- comp: y({
590
- text: "KOL",
591
- fontSize: 64,
592
- vf: { wght: 600 },
593
- path: {
594
- type: "array",
595
- rows: 3,
596
- cols: 4
597
- }
598
- })
599
- },
600
- {
601
- id: "weight-pulse",
602
- label: "Weight",
603
- sub: "Elements",
604
- comp: y({
605
- text: "WEIGHT",
606
- fontSize: 150,
607
- vf: { wght: 300 },
608
- motion: {
609
- mode: "vfwave",
610
- axis: "wght",
611
- cycles: 1,
612
- phase: .6
613
- }
614
- })
615
- },
616
- {
617
- id: "rot-width",
618
- label: "Width",
619
- sub: "Elements",
620
- comp: y({
621
- text: "WIDTH",
622
- font: "rot",
623
- fontSize: 150,
624
- vf: {
625
- wdth: 64,
626
- wght: 600
627
- },
628
- motion: {
629
- mode: "vfwave",
630
- axis: "wdth",
631
- cycles: 1,
632
- phase: .6
633
- }
634
- })
635
- },
636
- {
637
- id: "cascade",
638
- label: "Cascade",
639
- sub: "Elements",
640
- comp: y({
641
- text: "CASCADE",
642
- fontSize: 130,
643
- vf: { wght: 600 },
644
- motion: {
645
- mode: "cascade",
646
- cycles: 1,
647
- phase: .6
648
- }
649
- })
650
- },
651
- {
652
- id: "baseline-mono",
653
- label: "Mono line",
654
- sub: "Lines",
655
- comp: y({
656
- text: "monospace",
657
- font: "rot",
658
- fontSize: 110,
659
- vf: {
660
- wdth: 90,
661
- wght: 500
662
- },
663
- fill: "#7fd1ff"
664
- })
665
- },
666
- {
667
- id: "baseline-light",
668
- label: "On paper",
669
- sub: "Lines",
670
- comp: b("#f4f1ea", {
671
- text: "Reykjavik",
672
- font: "malromur",
673
- fontSize: 130,
674
- vf: { wght: 600 },
675
- fill: "#0b0b0e"
676
- })
677
- },
678
- {
679
- id: "sine-flow",
680
- label: "Sine flow",
681
- sub: "Curves",
682
- comp: y({
683
- text: "wave along",
684
- font: "rot",
685
- fontSize: 96,
686
- vf: {
687
- wdth: 90,
688
- wght: 500
689
- },
690
- path: {
691
- type: "sine",
692
- amp: .4,
693
- freq: 2
694
- },
695
- motion: {
696
- mode: "march",
697
- cycles: 1
698
- }
699
- })
700
- },
701
- {
702
- id: "spiral-in",
703
- label: "Spiral",
704
- sub: "Curves",
705
- comp: y({
706
- text: "spiral",
707
- fontSize: 88,
708
- vf: { wght: 700 },
709
- path: {
710
- type: "spiral",
711
- turns: 3
712
- }
713
- })
714
- },
715
- {
716
- id: "arc-march",
717
- label: "Arc march",
718
- sub: "Curves",
719
- comp: y({
720
- text: "on the arc",
721
- font: "rot",
722
- fontSize: 96,
723
- vf: {
724
- wdth: 100,
725
- wght: 500
726
- },
727
- path: {
728
- type: "arc",
729
- amp: .5
730
- },
731
- motion: { mode: "march" }
732
- })
733
- },
734
- {
735
- id: "arc-up",
736
- label: "High arc",
737
- sub: "Curves",
738
- comp: y({
739
- text: "over the top",
740
- font: "malromur",
741
- fontSize: 92,
742
- vf: { wght: 600 },
743
- path: {
744
- type: "arc",
745
- amp: .7
746
- }
747
- })
748
- },
749
- {
750
- id: "arc-wide",
751
- label: "Wide arc",
752
- sub: "Curves",
753
- comp: y({
754
- text: "WIDEARC",
755
- font: "rot",
756
- fontSize: 96,
757
- vf: {
758
- wdth: 150,
759
- wght: 600
760
- },
761
- path: {
762
- type: "arc",
763
- amp: .4
764
- }
765
- })
766
- },
767
- {
768
- id: "sine-fast",
769
- label: "Fast wave",
770
- sub: "Curves",
771
- comp: y({
772
- text: "up and down",
773
- fontSize: 90,
774
- vf: { wght: 600 },
775
- path: {
776
- type: "sine",
777
- amp: .4,
778
- freq: 3
779
- },
780
- motion: {
781
- mode: "march",
782
- cycles: 2
783
- }
784
- })
785
- },
786
- {
787
- id: "sine-tall",
788
- label: "Tall wave",
789
- sub: "Curves",
790
- comp: y({
791
- text: "rolling",
792
- font: "rot",
793
- fontSize: 100,
794
- vf: {
795
- wdth: 90,
796
- wght: 500
797
- },
798
- path: {
799
- type: "sine",
800
- amp: .6,
801
- freq: 2
802
- }
803
- })
804
- },
805
- {
806
- id: "spiral-march",
807
- label: "Spiral march",
808
- sub: "Curves",
809
- comp: y({
810
- text: "into the spiral",
811
- font: "rot",
812
- fontSize: 72,
813
- vf: {
814
- wdth: 100,
815
- wght: 500
816
- },
817
- path: {
818
- type: "spiral",
819
- turns: 5
820
- },
821
- motion: {
822
- mode: "march",
823
- cycles: 1
824
- }
825
- })
826
- },
827
- {
828
- id: "circle-orbit",
829
- label: "Circle",
830
- sub: "Closed",
831
- comp: y({
832
- text: "KOLKRABBI",
833
- font: "malromur",
834
- fontSize: 80,
835
- vf: { wght: 500 },
836
- path: {
837
- type: "circle",
838
- radius: .72
839
- },
840
- motion: {
841
- mode: "orbit",
842
- cycles: 1
843
- }
844
- })
845
- },
846
- {
847
- id: "circle-big",
848
- label: "Big circle",
849
- sub: "Closed",
850
- comp: y({
851
- text: "AROUND WE GO",
852
- fontSize: 76,
853
- vf: { wght: 600 },
854
- path: {
855
- type: "circle",
856
- radius: .85
857
- },
858
- motion: { mode: "orbit" }
859
- })
860
- },
861
- {
862
- id: "circle-mono",
863
- label: "Mono circle",
864
- sub: "Closed",
865
- comp: y({
866
- text: "LOOP/LOOP/",
867
- font: "rot",
868
- fontSize: 72,
869
- vf: {
870
- wdth: 90,
871
- wght: 500
872
- },
873
- fill: "#f6c453",
874
- path: {
875
- type: "circle",
876
- radius: .78
877
- },
878
- motion: { mode: "orbit" }
879
- })
880
- },
881
- {
882
- id: "ellipse-wide",
883
- label: "Wide ellipse",
884
- sub: "Closed",
885
- comp: y({
886
- text: "ELLIPTICAL",
887
- font: "malromur",
888
- fontSize: 74,
889
- vf: { wght: 500 },
890
- path: {
891
- type: "ellipse",
892
- radius: 1
893
- },
894
- motion: { mode: "orbit" }
895
- })
896
- },
897
- {
898
- id: "zigzag-fine",
899
- label: "Fine zigzag",
900
- sub: "Angular",
901
- comp: y({
902
- text: "sawtooth",
903
- font: "rot",
904
- fontSize: 80,
905
- vf: {
906
- wdth: 90,
907
- wght: 600
908
- },
909
- path: {
910
- type: "zigzag",
911
- amp: .35,
912
- freq: 5
913
- }
914
- })
915
- },
916
- {
917
- id: "custom-march",
918
- label: "Custom march",
919
- sub: "Custom",
920
- comp: y({
921
- text: "follow me",
922
- font: "rot",
923
- fontSize: 90,
924
- vf: {
925
- wdth: 90,
926
- wght: 500
927
- },
928
- path: { type: "custom" },
929
- motion: { mode: "march" }
930
- })
931
- },
932
- {
933
- id: "ordspor-pulse",
934
- label: "Ordspor",
935
- sub: "Weight",
936
- comp: y({
937
- text: "Ordspor",
938
- font: "rot",
939
- fontSize: 132,
940
- vf: {
941
- wdth: 90,
942
- wght: 300
943
- },
944
- motion: {
945
- mode: "vfwave",
946
- axis: "wght",
947
- cycles: 1,
948
- phase: .7
949
- }
950
- })
951
- },
952
- {
953
- id: "rot-weight",
954
- label: "Rot weight",
955
- sub: "Weight",
956
- comp: y({
957
- text: "ROT",
958
- font: "rot",
959
- fontSize: 200,
960
- vf: {
961
- wdth: 120,
962
- wght: 100
963
- },
964
- motion: {
965
- mode: "vfwave",
966
- axis: "wght",
967
- cycles: 1,
968
- phase: .5
969
- }
970
- })
971
- },
972
- {
973
- id: "weight-slow",
974
- label: "Slow weight",
975
- sub: "Weight",
976
- comp: y({
977
- text: "breathe",
978
- fontSize: 150,
979
- vf: { wght: 300 },
980
- motion: {
981
- mode: "vfwave",
982
- axis: "wght",
983
- cycles: 1,
984
- phase: .3
985
- }
986
- })
987
- },
988
- {
989
- id: "weight-fast",
990
- label: "Fast weight",
991
- sub: "Weight",
992
- comp: y({
993
- text: "PULSE",
994
- fontSize: 160,
995
- vf: { wght: 300 },
996
- motion: {
997
- mode: "vfwave",
998
- axis: "wght",
999
- cycles: 3,
1000
- phase: .6
1001
- }
1002
- })
1003
- },
1004
- {
1005
- id: "malromur-heavy",
1006
- label: "Heavy swing",
1007
- sub: "Weight",
1008
- comp: b("#f4f1ea", {
1009
- text: "Malromur",
1010
- font: "malromur",
1011
- fontSize: 130,
1012
- vf: { wght: 300 },
1013
- fill: "#0b0b0e",
1014
- motion: {
1015
- mode: "vfwave",
1016
- axis: "wght",
1017
- cycles: 1,
1018
- phase: .5
1019
- }
1020
- })
1021
- },
1022
- {
1023
- id: "ordspor-wave2",
1024
- label: "Ordspor ×2",
1025
- sub: "Weight",
1026
- comp: y({
1027
- text: "twice",
1028
- font: "rot",
1029
- fontSize: 150,
1030
- vf: {
1031
- wdth: 90,
1032
- wght: 300
1033
- },
1034
- motion: {
1035
- mode: "vfwave",
1036
- axis: "wght",
1037
- cycles: 2,
1038
- phase: .5
1039
- }
1040
- })
1041
- },
1042
- {
1043
- id: "rot-weight2",
1044
- label: "Rot weight ×2",
1045
- sub: "Weight",
1046
- comp: y({
1047
- text: "ROT",
1048
- font: "rot",
1049
- fontSize: 200,
1050
- vf: {
1051
- wdth: 120,
1052
- wght: 100
1053
- },
1054
- motion: {
1055
- mode: "vfwave",
1056
- axis: "wght",
1057
- cycles: 2,
1058
- phase: .4
1059
- }
1060
- })
1061
- },
1062
- {
1063
- id: "malromur-bigwave",
1064
- label: "Big wave",
1065
- sub: "Weight",
1066
- comp: y({
1067
- text: "WEIGHT",
1068
- font: "malromur",
1069
- fontSize: 150,
1070
- vf: { wght: 300 },
1071
- fill: "#f6c453",
1072
- motion: {
1073
- mode: "vfwave",
1074
- axis: "wght",
1075
- cycles: 2,
1076
- phase: .7
1077
- }
1078
- })
1079
- },
1080
- {
1081
- id: "ordspor-accent",
1082
- label: "Ordspor accent",
1083
- sub: "Weight",
1084
- comp: y({
1085
- text: "Ordspor",
1086
- font: "rot",
1087
- fontSize: 140,
1088
- vf: {
1089
- wdth: 90,
1090
- wght: 300
1091
- },
1092
- fill: "#8f5ad0",
1093
- motion: {
1094
- mode: "vfwave",
1095
- axis: "wght",
1096
- cycles: 1,
1097
- phase: .6
1098
- }
1099
- })
1100
- },
1101
- {
1102
- id: "rot-dual",
1103
- label: "Variable",
1104
- sub: "Width",
1105
- comp: y({
1106
- text: "variable",
1107
- font: "rot",
1108
- fontSize: 124,
1109
- vf: {
1110
- wdth: 100,
1111
- wght: 400
1112
- },
1113
- motion: {
1114
- mode: "vfwave",
1115
- axis: "wdth",
1116
- cycles: 2,
1117
- phase: .4
1118
- }
1119
- })
1120
- },
1121
- {
1122
- id: "rot-width-fast",
1123
- label: "Width ×2",
1124
- sub: "Width",
1125
- comp: y({
1126
- text: "STRETCH",
1127
- font: "rot",
1128
- fontSize: 130,
1129
- vf: {
1130
- wdth: 64,
1131
- wght: 600
1132
- },
1133
- motion: {
1134
- mode: "vfwave",
1135
- axis: "wdth",
1136
- cycles: 2,
1137
- phase: .5
1138
- }
1139
- })
1140
- },
1141
- {
1142
- id: "rot-width-slow",
1143
- label: "Width slow",
1144
- sub: "Width",
1145
- comp: y({
1146
- text: "expand",
1147
- font: "rot",
1148
- fontSize: 130,
1149
- vf: {
1150
- wdth: 100,
1151
- wght: 500
1152
- },
1153
- motion: {
1154
- mode: "vfwave",
1155
- axis: "wdth",
1156
- cycles: 1,
1157
- phase: .3
1158
- }
1159
- })
1160
- },
1161
- {
1162
- id: "morph-mtl",
1163
- label: "Made to last",
1164
- sub: "Morph",
1165
- comp: y({
1166
- text: "Made to last",
1167
- font: "rot",
1168
- fontSize: 150,
1169
- vf: {
1170
- wdth: 64,
1171
- wght: 100
1172
- },
1173
- morph: {
1174
- on: !0,
1175
- mode: "morph",
1176
- curve: "linear",
1177
- blend: .5,
1178
- vf2: {
1179
- wdth: 172,
1180
- wght: 900
1181
- }
1182
- }
1183
- })
1184
- },
1185
- {
1186
- id: "morph-wave",
1187
- label: "Morph wave",
1188
- sub: "Morph",
1189
- comp: y({
1190
- text: "MORPH",
1191
- font: "rot",
1192
- fontSize: 200,
1193
- vf: {
1194
- wdth: 64,
1195
- wght: 200
1196
- },
1197
- morph: {
1198
- on: !0,
1199
- mode: "morph",
1200
- curve: "sine",
1201
- blend: .5,
1202
- vf2: {
1203
- wdth: 172,
1204
- wght: 900
1205
- }
1206
- }
1207
- })
1208
- },
1209
- {
1210
- id: "morph-ease",
1211
- label: "Heavy → light",
1212
- sub: "Morph",
1213
- comp: y({
1214
- text: "gradient",
1215
- font: "rot",
1216
- fontSize: 150,
1217
- vf: {
1218
- wdth: 120,
1219
- wght: 900
1220
- },
1221
- morph: {
1222
- on: !0,
1223
- mode: "morph",
1224
- curve: "ease",
1225
- blend: .5,
1226
- vf2: {
1227
- wdth: 120,
1228
- wght: 100
1229
- }
1230
- }
1231
- })
1232
- },
1233
- {
1234
- id: "morph-random",
1235
- label: "Ransom note",
1236
- sub: "Morph",
1237
- comp: y({
1238
- text: "CHAOS",
1239
- font: "rot",
1240
- fontSize: 170,
1241
- vf: {
1242
- wdth: 100,
1243
- wght: 500
1244
- },
1245
- morph: {
1246
- on: !0,
1247
- mode: "random",
1248
- blend: .37
1249
- }
1250
- })
1251
- },
1252
- {
1253
- id: "morph-fade",
1254
- label: "Fade A↔B",
1255
- sub: "Morph",
1256
- comp: y({
1257
- text: "between",
1258
- font: "gullhamrar",
1259
- fontSize: 150,
1260
- vf: { wght: 300 },
1261
- morph: {
1262
- on: !0,
1263
- mode: "fade",
1264
- blend: .5,
1265
- vf2: { wght: 900 }
1266
- }
1267
- })
1268
- },
1269
- {
1270
- id: "morph-cross",
1271
- label: "Cross-face",
1272
- sub: "Morph",
1273
- comp: y({
1274
- text: "hybrid",
1275
- font: "rot",
1276
- fontSize: 150,
1277
- vf: {
1278
- wdth: 100,
1279
- wght: 600
1280
- },
1281
- morph: {
1282
- on: !0,
1283
- mode: "morph",
1284
- blend: .5,
1285
- face2: "gullhamrar"
1286
- }
1287
- })
1288
- },
1289
- {
1290
- id: "arc-weight",
1291
- label: "Morph on arc",
1292
- sub: "On path",
1293
- comp: y({
1294
- text: "morph",
1295
- fontSize: 120,
1296
- path: {
1297
- type: "arc",
1298
- amp: .3
1299
- },
1300
- motion: {
1301
- mode: "vfwave",
1302
- axis: "wght",
1303
- cycles: 1,
1304
- phase: .6
1305
- }
1306
- })
1307
- },
1308
- {
1309
- id: "sine-weight",
1310
- label: "Wave + weight",
1311
- sub: "On path",
1312
- comp: y({
1313
- text: "modulated",
1314
- fontSize: 92,
1315
- vf: { wght: 400 },
1316
- path: {
1317
- type: "sine",
1318
- amp: .3,
1319
- freq: 2
1320
- },
1321
- motion: {
1322
- mode: "vfwave",
1323
- axis: "wght",
1324
- cycles: 1,
1325
- phase: .5
1326
- }
1327
- })
1328
- },
1329
- {
1330
- id: "circle-weight",
1331
- label: "Ring + weight",
1332
- sub: "On path",
1333
- comp: y({
1334
- text: "ROTATING",
1335
- font: "malromur",
1336
- fontSize: 78,
1337
- vf: { wght: 300 },
1338
- path: {
1339
- type: "circle",
1340
- radius: .74
1341
- },
1342
- motion: {
1343
- mode: "vfwave",
1344
- axis: "wght",
1345
- cycles: 2,
1346
- phase: .6
1347
- }
1348
- })
1349
- },
1350
- {
1351
- id: "arc-width",
1352
- label: "Arc + width",
1353
- sub: "On path",
1354
- comp: y({
1355
- text: "arcwidth",
1356
- font: "rot",
1357
- fontSize: 96,
1358
- vf: {
1359
- wdth: 80,
1360
- wght: 600
1361
- },
1362
- path: {
1363
- type: "arc",
1364
- amp: .4
1365
- },
1366
- motion: {
1367
- mode: "vfwave",
1368
- axis: "wdth",
1369
- cycles: 1,
1370
- phase: .5
1371
- }
1372
- })
1373
- },
1374
- {
1375
- id: "pop",
1376
- label: "Pop",
1377
- sub: "Reveal",
1378
- comp: y({
1379
- text: "POP POP",
1380
- fontSize: 130,
1381
- vf: { wght: 800 },
1382
- motion: {
1383
- mode: "cascade",
1384
- cycles: 2,
1385
- phase: .8
1386
- }
1387
- })
1388
- },
1389
- {
1390
- id: "arc-cascade",
1391
- label: "Curve cascade",
1392
- sub: "Reveal",
1393
- comp: y({
1394
- text: "on a curve",
1395
- font: "rot",
1396
- fontSize: 100,
1397
- vf: {
1398
- wdth: 90,
1399
- wght: 500
1400
- },
1401
- path: {
1402
- type: "arc",
1403
- amp: .4
1404
- },
1405
- motion: {
1406
- mode: "cascade",
1407
- cycles: 1,
1408
- phase: .5
1409
- }
1410
- })
1411
- },
1412
- {
1413
- id: "cascade-slow",
1414
- label: "Slow cascade",
1415
- sub: "Reveal",
1416
- comp: y({
1417
- text: "unfold",
1418
- fontSize: 130,
1419
- vf: { wght: 600 },
1420
- motion: {
1421
- mode: "cascade",
1422
- cycles: 1,
1423
- phase: .4
1424
- }
1425
- })
1426
- },
1427
- {
1428
- id: "cascade-fast",
1429
- label: "Fast cascade",
1430
- sub: "Reveal",
1431
- comp: y({
1432
- text: "flicker",
1433
- fontSize: 130,
1434
- vf: { wght: 700 },
1435
- motion: {
1436
- mode: "cascade",
1437
- cycles: 2,
1438
- phase: .7
1439
- }
1440
- })
1441
- },
1442
- {
1443
- id: "typewriter",
1444
- label: "Typewriter",
1445
- sub: "Reveal",
1446
- comp: y({
1447
- text: "type_type_",
1448
- font: "rot",
1449
- fontSize: 100,
1450
- vf: {
1451
- wdth: 90,
1452
- wght: 500
1453
- },
1454
- fill: "#7fd1ff",
1455
- motion: {
1456
- mode: "cascade",
1457
- cycles: 1,
1458
- phase: 1
1459
- }
1460
- })
1461
- },
1462
- {
1463
- id: "spiral-cascade",
1464
- label: "Spiral reveal",
1465
- sub: "Reveal",
1466
- comp: y({
1467
- text: "spiral down",
1468
- fontSize: 74,
1469
- vf: { wght: 600 },
1470
- path: {
1471
- type: "spiral",
1472
- turns: 3
1473
- },
1474
- motion: {
1475
- mode: "cascade",
1476
- cycles: 1,
1477
- phase: .5
1478
- }
1479
- })
1480
- },
1481
- {
1482
- id: "circle-cascade",
1483
- label: "Ring reveal",
1484
- sub: "Reveal",
1485
- comp: y({
1486
- text: "AROUND",
1487
- font: "malromur",
1488
- fontSize: 86,
1489
- vf: { wght: 600 },
1490
- path: {
1491
- type: "circle",
1492
- radius: .74
1493
- },
1494
- motion: {
1495
- mode: "cascade",
1496
- cycles: 1,
1497
- phase: .6
1498
- }
1499
- })
1500
- },
1501
- {
1502
- id: "pop-mono",
1503
- label: "Mono pop",
1504
- sub: "Reveal",
1505
- comp: y({
1506
- text: "POP.POP.",
1507
- font: "rot",
1508
- fontSize: 110,
1509
- vf: {
1510
- wdth: 90,
1511
- wght: 500
1512
- },
1513
- fill: "#f6c453",
1514
- motion: {
1515
- mode: "cascade",
1516
- cycles: 2,
1517
- phase: .8
1518
- }
1519
- })
1520
- },
1521
- {
1522
- id: "glyph-wave",
1523
- label: "Ripple",
1524
- sub: "Wave",
1525
- comp: y({
1526
- text: "ripple",
1527
- font: "malromur",
1528
- fontSize: 140,
1529
- vf: { wght: 600 },
1530
- motion: {
1531
- mode: "glyphwave",
1532
- cycles: 1,
1533
- phase: .6,
1534
- amp: .4
1535
- }
1536
- })
1537
- },
1538
- {
1539
- id: "sine-ripple",
1540
- label: "Sine ripple",
1541
- sub: "Wave",
1542
- comp: y({
1543
- text: "wavewave",
1544
- font: "rot",
1545
- fontSize: 108,
1546
- vf: {
1547
- wdth: 110,
1548
- wght: 600
1549
- },
1550
- path: {
1551
- type: "sine",
1552
- amp: .3,
1553
- freq: 2
1554
- },
1555
- motion: {
1556
- mode: "glyphwave",
1557
- amp: .3
1558
- }
1559
- })
1560
- },
1561
- {
1562
- id: "glyph-big",
1563
- label: "Big ripple",
1564
- sub: "Wave",
1565
- comp: y({
1566
- text: "WAVES",
1567
- fontSize: 150,
1568
- vf: { wght: 700 },
1569
- motion: {
1570
- mode: "glyphwave",
1571
- cycles: 1,
1572
- phase: .6,
1573
- amp: .6
1574
- }
1575
- })
1576
- },
1577
- {
1578
- id: "glyph-fast",
1579
- label: "Fast ripple",
1580
- sub: "Wave",
1581
- comp: y({
1582
- text: "shiver",
1583
- font: "malromur",
1584
- fontSize: 140,
1585
- vf: { wght: 600 },
1586
- motion: {
1587
- mode: "glyphwave",
1588
- cycles: 2,
1589
- phase: .5,
1590
- amp: .35
1591
- }
1592
- })
1593
- },
1594
- {
1595
- id: "arc-glyphwave",
1596
- label: "Arc ripple",
1597
- sub: "Wave",
1598
- comp: y({
1599
- text: "on a curve",
1600
- font: "rot",
1601
- fontSize: 96,
1602
- vf: {
1603
- wdth: 90,
1604
- wght: 500
1605
- },
1606
- path: {
1607
- type: "arc",
1608
- amp: .4
1609
- },
1610
- motion: {
1611
- mode: "glyphwave",
1612
- amp: .3
1613
- }
1614
- })
1615
- },
1616
- {
1617
- id: "rot-flag-fast",
1618
- label: "Rot flag",
1619
- sub: "Wave",
1620
- comp: y({
1621
- text: "flutter",
1622
- font: "rot",
1623
- fontSize: 150,
1624
- vf: {
1625
- wdth: 120,
1626
- wght: 600
1627
- },
1628
- motion: {
1629
- mode: "glyphwave",
1630
- cycles: 2,
1631
- phase: .5,
1632
- amp: .5
1633
- }
1634
- })
1635
- },
1636
- {
1637
- id: "sine-ripple2",
1638
- label: "Sine flutter",
1639
- sub: "Wave",
1640
- comp: y({
1641
- text: "flowflow",
1642
- font: "rot",
1643
- fontSize: 100,
1644
- vf: {
1645
- wdth: 90,
1646
- wght: 500
1647
- },
1648
- path: {
1649
- type: "sine",
1650
- amp: .3,
1651
- freq: 2
1652
- },
1653
- motion: {
1654
- mode: "glyphwave",
1655
- cycles: 2,
1656
- amp: .3
1657
- }
1658
- })
1659
- },
1660
- {
1661
- id: "sweep-x",
1662
- label: "Sweep X",
1663
- sub: "Sweep",
1664
- comp: y({
1665
- text: "SWEEP",
1666
- fontSize: 150,
1667
- vf: { wght: 700 },
1668
- motion: {
1669
- mode: "sweep",
1670
- field: "x",
1671
- cycles: 1,
1672
- amp: .3
1673
- }
1674
- })
1675
- },
1676
- {
1677
- id: "sweep-y",
1678
- label: "Sweep Y",
1679
- sub: "Sweep",
1680
- comp: y({
1681
- text: "descend",
1682
- font: "rot",
1683
- fontSize: 130,
1684
- vf: {
1685
- wdth: 90,
1686
- wght: 500
1687
- },
1688
- motion: {
1689
- mode: "sweep",
1690
- field: "y",
1691
- cycles: 1,
1692
- amp: .35
1693
- }
1694
- })
1695
- },
1696
- {
1697
- id: "sweep-radial",
1698
- label: "Radial pulse",
1699
- sub: "Sweep",
1700
- comp: y({
1701
- text: "PULSE",
1702
- font: "malromur",
1703
- fontSize: 140,
1704
- vf: { wght: 600 },
1705
- motion: {
1706
- mode: "sweep",
1707
- field: "radial",
1708
- cycles: 1,
1709
- amp: .4
1710
- }
1711
- })
1712
- },
1713
- {
1714
- id: "sweep-weight",
1715
- label: "Sweep weight",
1716
- sub: "Sweep",
1717
- comp: y({
1718
- text: "WEIGHT",
1719
- fontSize: 150,
1720
- vf: { wght: 300 },
1721
- motion: {
1722
- mode: "sweepWeight",
1723
- field: "x",
1724
- cycles: 1,
1725
- amp: .4
1726
- }
1727
- })
1728
- },
1729
- {
1730
- id: "sweep-shift",
1731
- label: "Sweep shift",
1732
- sub: "Sweep",
1733
- comp: y({
1734
- text: "shiver",
1735
- font: "rot",
1736
- fontSize: 130,
1737
- vf: {
1738
- wdth: 110,
1739
- wght: 600
1740
- },
1741
- motion: {
1742
- mode: "sweepShift",
1743
- field: "wave",
1744
- cycles: 1,
1745
- amp: .3
1746
- }
1747
- })
1748
- },
1749
- {
1750
- id: "orbit-spin",
1751
- label: "Orbit",
1752
- sub: "Orbit",
1753
- comp: y({
1754
- text: "ORBIT",
1755
- font: "malromur",
1756
- fontSize: 88,
1757
- vf: { wght: 600 },
1758
- path: {
1759
- type: "circle",
1760
- radius: .7
1761
- },
1762
- motion: {
1763
- mode: "orbit",
1764
- cycles: 1
1765
- }
1766
- })
1767
- },
1768
- {
1769
- id: "orbit-fast",
1770
- label: "Fast orbit",
1771
- sub: "Orbit",
1772
- comp: y({
1773
- text: "spinning",
1774
- fontSize: 84,
1775
- vf: { wght: 600 },
1776
- path: {
1777
- type: "circle",
1778
- radius: .72
1779
- },
1780
- motion: {
1781
- mode: "orbit",
1782
- cycles: 2
1783
- }
1784
- })
1785
- },
1786
- {
1787
- id: "ellipse-orbit",
1788
- label: "Ellipse orbit",
1789
- sub: "Orbit",
1790
- comp: y({
1791
- text: "ORBITAL",
1792
- font: "rot",
1793
- fontSize: 78,
1794
- vf: {
1795
- wdth: 110,
1796
- wght: 600
1797
- },
1798
- path: {
1799
- type: "ellipse",
1800
- radius: .95
1801
- },
1802
- motion: {
1803
- mode: "orbit",
1804
- cycles: 1
1805
- }
1806
- })
1807
- },
1808
- {
1809
- id: "array-pulse",
1810
- label: "Grid pulse",
1811
- sub: "Array",
1812
- comp: y({
1813
- text: "NODE",
1814
- font: "rot",
1815
- fontSize: 44,
1816
- vf: {
1817
- wdth: 90,
1818
- wght: 500
1819
- },
1820
- fill: "#7fd1ff",
1821
- path: {
1822
- type: "array",
1823
- rows: 4,
1824
- cols: 5
1825
- },
1826
- motion: {
1827
- mode: "cascade",
1828
- cycles: 1,
1829
- phase: .5
1830
- }
1831
- })
1832
- },
1833
- {
1834
- id: "array-wave",
1835
- label: "Grid wave",
1836
- sub: "Array",
1837
- comp: y({
1838
- text: "echo",
1839
- font: "rot",
1840
- fontSize: 52,
1841
- vf: {
1842
- wdth: 90,
1843
- wght: 500
1844
- },
1845
- path: {
1846
- type: "array",
1847
- rows: 3,
1848
- cols: 3
1849
- },
1850
- motion: {
1851
- mode: "glyphwave",
1852
- cycles: 1,
1853
- phase: .7,
1854
- amp: .4
1855
- }
1856
- })
1857
- },
1858
- {
1859
- id: "array-weight",
1860
- label: "Grid weight",
1861
- sub: "Array",
1862
- comp: y({
1863
- text: "OK",
1864
- font: "rot",
1865
- fontSize: 88,
1866
- vf: {
1867
- wdth: 100,
1868
- wght: 200
1869
- },
1870
- path: {
1871
- type: "array",
1872
- rows: 2,
1873
- cols: 3
1874
- },
1875
- motion: {
1876
- mode: "vfwave",
1877
- axis: "wght",
1878
- cycles: 1,
1879
- phase: .6
1880
- }
1881
- })
1882
- },
1883
- {
1884
- id: "stacked",
1885
- label: "Stacked",
1886
- sub: "Composite",
1887
- comp: y({
1888
- id: "a",
1889
- text: "KINETIC",
1890
- font: "gullhamrar",
1891
- fontSize: 130,
1892
- vf: { wght: 700 },
1893
- fill: "#e8e4dc",
1894
- path: {
1895
- type: "line",
1896
- offset: -.16
1897
- }
1898
- }, {
1899
- id: "b",
1900
- text: "typography",
1901
- font: "rot",
1902
- fontSize: 90,
1903
- vf: {
1904
- wdth: 90,
1905
- wght: 400
1906
- },
1907
- fill: "#f6c453",
1908
- path: {
1909
- type: "line",
1910
- offset: .16
1911
- },
1912
- motion: {
1913
- mode: "vfwave",
1914
- axis: "wght",
1915
- cycles: 1,
1916
- phase: .5
1917
- }
1918
- })
1919
- },
1920
- {
1921
- id: "grid-and-ring",
1922
- label: "Grid + ring",
1923
- sub: "Composite",
1924
- comp: b("#0a0b14", {
1925
- id: "a",
1926
- text: "echo",
1927
- font: "rot",
1928
- fontSize: 40,
1929
- vf: {
1930
- wdth: 90,
1931
- wght: 500
1932
- },
1933
- fill: "#3a4a6a",
1934
- path: {
1935
- type: "array",
1936
- rows: 4,
1937
- cols: 5
1938
- }
1939
- }, {
1940
- id: "b",
1941
- text: "SIGNAL · SIGNAL · ",
1942
- font: "rot",
1943
- fontSize: 60,
1944
- vf: {
1945
- wdth: 110,
1946
- wght: 600
1947
- },
1948
- fill: "#9ec1ff",
1949
- path: {
1950
- type: "circle",
1951
- radius: .7
1952
- },
1953
- motion: {
1954
- mode: "orbit",
1955
- cycles: 1
1956
- }
1957
- })
1958
- }
1959
- ], S = (e) => x.find((t) => t.id === e) || x[0], C = [
1960
- "Radial",
1961
- "Rings",
1962
- "Path"
1963
- ], w = [{
1964
- label: "Type",
1965
- subs: C
1966
- }, {
1967
- label: "Kinetic",
1968
- subs: [...new Set(x.map((e) => e.sub))].filter((e) => !C.includes(e))
1969
- }], T = (e) => structuredClone(e.comp), E = {
1970
- background: "Background",
1971
- pattern: "Pattern",
1972
- photo: "Photo",
1973
- shape: "Shape",
1974
- text: "Text",
1975
- group: "Group",
1976
- bool: "Boolean",
1977
- loop: "Loop",
1978
- kinetic: "Kinetic type",
1979
- misc: "Misc"
1980
- }, D = {
1981
- unite: "Unite",
1982
- subtract: "Subtract",
1983
- intersect: "Intersect",
1984
- exclude: "Exclude"
1985
- }, O = {
1986
- logo: "Logo",
1987
- rect: "Rectangle",
1988
- ellipse: "Ellipse",
1989
- triangle: "Triangle",
1990
- line: "Line",
1991
- polygon: "Polygon",
1992
- star: "Star",
1993
- flatten: "Flatten"
1994
- };
1995
- function k(e) {
1996
- if (e.type === "shape") return `Shape · ${O[e.kind ?? "logo"] ?? "Shape"}`;
1997
- if (e.type === "bool") {
1998
- let t = D[e.op];
1999
- return t ? `Boolean · ${t}` : E.bool;
2000
- }
2001
- return e.type === "loop" && e.presetLabel ? `Loop · ${e.presetLabel}` : e.type === "misc" && e.presetLabel ? `Misc · ${e.presetLabel}` : e.type === "kinetic" && e.presetLabel ? `Kinetic · ${e.presetLabel}` : E[e.type] ?? e.type;
2002
- }
2003
- function A(e) {
2004
- return e.name ? e.name : e.type === "text" ? e.text || E.text : e.type === "shape" ? O[e.kind ?? "logo"] ?? E.shape : e.type === "bool" ? D[e.op] ?? E.bool : e.type === "loop" || e.type === "misc" ? e.presetLabel || E[e.type] : e.type === "kinetic" ? e.presetLabel || E.kinetic : E[e.type] ?? e.type;
2005
- }
2006
- //#endregion
2007
- export { S as a, T as c, s as d, c as f, w as i, a as l, A as n, g as o, l as p, x as r, h as s, k as t, d as u };