claude-exode-mcp 7.5.7 → 7.5.8
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/MCP_DOCUMENTATION.md +1 -0
- package/SKILL.md +10 -0
- package/examples/aurum-product-page.exode +3208 -0
- package/examples/bell-ring-icon.exode +1 -0
- package/examples/drift-kinetic-type.exode +770 -0
- package/examples/earbuds-product.exode +214 -0
- package/examples/energy-flow.exode +1736 -0
- package/examples/flux-hero.exode +223 -0
- package/examples/gooey-toggle.exode +214 -0
- package/examples/gravity-well.exode +3113 -0
- package/examples/heart-icon.exode +1 -0
- package/examples/hologram-temple.exode +8100 -0
- package/examples/jarful-app.exode +1 -0
- package/examples/kip-character-rig.exode +1 -0
- package/examples/low-tide-tilt.exode +2216 -0
- package/examples/manifest.json +352 -0
- package/examples/swipe-stack-carousel.exode +4048 -0
- package/examples/tokyo-neon-weather.exode +470 -0
- package/examples/typographic-collapse.exode +1578 -0
- package/examples/void-product-ad.exode +1269 -0
- package/examples/wire-globe-card.exode +580 -0
- package/index.d.ts +41 -1
- package/index.js +2553 -2407
- package/package.json +4 -2
- package/render-runtime/exode-runtime.js +20 -20
- package/skills/creative-motion/SKILL.md +10 -0
- package/skills/creative-motion/recipes/character-rig.js +104 -0
- package/skills/creative-motion/recipes/dashboard.js +120 -0
- package/skills/creative-motion/recipes/game-arcade.js +203 -0
- package/skills/creative-motion/recipes/hero-physics.js +65 -0
- package/skills/creative-motion/recipes/pricing.js +88 -0
- package/skills/creative-motion/recipes/title-sequence.js +62 -0
- package/skills/creative-motion/references/apps.md +37 -0
- package/skills/creative-motion/references/gotchas.md +80 -0
- package/skills/creative-motion/references/native-layers.md +60 -0
- package/skills/creative-motion/references/quality.md +54 -0
- package/src/__tests__/buildKit.test.ts +127 -0
- package/src/__tests__/effectKnobs.test.ts +162 -0
- package/src/__tests__/nativeLayers.test.ts +178 -0
- package/src/buildKit.d.ts +301 -0
- package/src/buildKit.d.ts.map +1 -0
- package/src/buildKit.js +559 -0
- package/src/buildKit.js.map +1 -0
- package/src/buildKit.ts +520 -0
- package/src/compiler.d.ts +4 -0
- package/src/compiler.d.ts.map +1 -1
- package/src/compiler.js +21 -45
- package/src/compiler.js.map +1 -1
- package/src/compiler.ts +22 -51
- package/src/critique.d.ts +8 -0
- package/src/critique.d.ts.map +1 -0
- package/src/critique.js +348 -0
- package/src/critique.js.map +1 -0
- package/src/critique.ts +239 -0
- package/src/effectKnobs.d.ts +72 -0
- package/src/effectKnobs.d.ts.map +1 -0
- package/src/effectKnobs.js +541 -0
- package/src/effectKnobs.js.map +1 -0
- package/src/effectKnobs.ts +445 -0
- package/src/effectOptimizer.d.ts +18 -0
- package/src/effectOptimizer.d.ts.map +1 -0
- package/src/effectOptimizer.js +125 -0
- package/src/effectOptimizer.js.map +1 -0
- package/src/effectOptimizer.ts +104 -0
- package/src/engine/layout.js +1 -1
- package/src/engine/layout.js.map +1 -1
- package/src/engine/layout.ts +1 -1
- package/src/examples.d.ts +30 -0
- package/src/examples.d.ts.map +1 -0
- package/src/examples.js +168 -0
- package/src/examples.js.map +1 -0
- package/src/examples.ts +151 -0
- package/src/handlers/artboardHandlers.d.ts.map +1 -1
- package/src/handlers/artboardHandlers.js +45 -10
- package/src/handlers/artboardHandlers.js.map +1 -1
- package/src/handlers/artboardHandlers.ts +43 -12
- package/src/handlers/buildHandlers.d.ts +2 -0
- package/src/handlers/buildHandlers.d.ts.map +1 -0
- package/src/handlers/buildHandlers.js +86 -0
- package/src/handlers/buildHandlers.js.map +1 -0
- package/src/handlers/buildHandlers.ts +76 -0
- package/src/handlers/compilerHandlers.d.ts.map +1 -1
- package/src/handlers/compilerHandlers.js +32 -2
- package/src/handlers/compilerHandlers.js.map +1 -1
- package/src/handlers/compilerHandlers.ts +31 -2
- package/src/handlers/exampleHandlers.d.ts +2 -0
- package/src/handlers/exampleHandlers.d.ts.map +1 -0
- package/src/handlers/exampleHandlers.js +81 -0
- package/src/handlers/exampleHandlers.js.map +1 -0
- package/src/handlers/exampleHandlers.ts +76 -0
- package/src/handlers/renderHandlers.d.ts.map +1 -1
- package/src/handlers/renderHandlers.js +100 -2
- package/src/handlers/renderHandlers.js.map +1 -1
- package/src/handlers/renderHandlers.ts +90 -2
- package/src/handlers/scaffoldHandlers.d.ts.map +1 -1
- package/src/handlers/scaffoldHandlers.js +3 -0
- package/src/handlers/scaffoldHandlers.js.map +1 -1
- package/src/handlers/scaffoldHandlers.ts +2 -0
- package/src/handlers/widgetHandlers.js +1 -1
- package/src/handlers/widgetHandlers.js.map +1 -1
- package/src/handlers/widgetHandlers.ts +1 -1
- package/src/lottie/convert.d.ts +16 -0
- package/src/lottie/convert.d.ts.map +1 -0
- package/src/lottie/convert.js +1225 -0
- package/src/lottie/convert.js.map +1 -0
- package/src/lottie/convert.ts +1134 -0
- package/src/lottie/evaluate.d.ts +48 -0
- package/src/lottie/evaluate.d.ts.map +1 -0
- package/src/lottie/evaluate.js +174 -0
- package/src/lottie/evaluate.js.map +1 -0
- package/src/lottie/evaluate.ts +184 -0
- package/src/nativeLayers.d.ts +76 -0
- package/src/nativeLayers.d.ts.map +1 -0
- package/src/nativeLayers.js +404 -0
- package/src/nativeLayers.js.map +1 -0
- package/src/nativeLayers.ts +339 -0
- package/src/render/motionBrief.d.ts.map +1 -1
- package/src/render/motionBrief.js +4 -0
- package/src/render/motionBrief.js.map +1 -1
- package/src/render/motionBrief.ts +4 -0
- package/src/render/videoRenderer.d.ts.map +1 -1
- package/src/render/videoRenderer.js +5 -2
- package/src/render/videoRenderer.js.map +1 -1
- package/src/render/videoRenderer.ts +5 -2
- package/src/rive/convert.d.ts +17 -0
- package/src/rive/convert.d.ts.map +1 -0
- package/src/rive/convert.js +1779 -0
- package/src/rive/convert.js.map +1 -0
- package/src/rive/convert.ts +1492 -0
- package/src/rive/font.d.ts +13 -0
- package/src/rive/font.d.ts.map +1 -0
- package/src/rive/font.js +154 -0
- package/src/rive/font.js.map +1 -0
- package/src/rive/font.ts +132 -0
- package/src/rive/layout.d.ts +20 -0
- package/src/rive/layout.d.ts.map +1 -0
- package/src/rive/layout.js +145 -0
- package/src/rive/layout.js.map +1 -0
- package/src/rive/layout.ts +140 -0
- package/src/rive/reader.d.ts +32 -0
- package/src/rive/reader.d.ts.map +1 -0
- package/src/rive/reader.js +172 -0
- package/src/rive/reader.js.map +1 -0
- package/src/rive/reader.ts +160 -0
- package/src/rive/schema.generated.d.ts +9 -0
- package/src/rive/schema.generated.d.ts.map +1 -0
- package/src/rive/schema.generated.js +13 -0
- package/src/rive/schema.generated.js.map +1 -0
- package/src/rive/schema.generated.ts +13 -0
- package/src/schema.d.ts +5 -0
- package/src/schema.d.ts.map +1 -1
- package/src/schema.js +5 -0
- package/src/schema.js.map +1 -1
- package/src/schema.ts +6 -0
- package/src/serverInstructions.d.ts +2 -0
- package/src/serverInstructions.d.ts.map +1 -0
- package/src/serverInstructions.js +22 -0
- package/src/serverInstructions.js.map +1 -0
- package/src/serverInstructions.ts +21 -0
- package/src/sseServer.d.ts +2 -0
- package/src/sseServer.d.ts.map +1 -0
- package/src/sseServer.js +165 -0
- package/src/sseServer.js.map +1 -0
- package/src/sseServer.ts +189 -0
- package/src/utils.d.ts.map +1 -1
- package/src/utils.js +23 -1
- package/src/utils.js.map +1 -1
- package/src/utils.ts +13 -1
- package/src/widgets.d.ts +26 -0
- package/src/widgets.d.ts.map +1 -1
- package/src/widgets.js +89 -45
- package/src/widgets.js.map +1 -1
- package/src/widgets.ts +88 -45
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "02_wire_globe",
|
|
3
|
+
"name": "Wireframe Globe",
|
|
4
|
+
"width": 600,
|
|
5
|
+
"height": 400,
|
|
6
|
+
"cornerRadius": 0,
|
|
7
|
+
"deviceFrame": "none",
|
|
8
|
+
"fit": "Layout",
|
|
9
|
+
"responsive": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"mode": "constraint",
|
|
12
|
+
"width": {
|
|
13
|
+
"type": "fixed"
|
|
14
|
+
},
|
|
15
|
+
"height": {
|
|
16
|
+
"type": "fixed"
|
|
17
|
+
},
|
|
18
|
+
"maintainAspectRatio": false,
|
|
19
|
+
"scaleObjects": false,
|
|
20
|
+
"breakpoints": [
|
|
21
|
+
{
|
|
22
|
+
"id": "bp_mobile",
|
|
23
|
+
"name": "Mobile",
|
|
24
|
+
"minWidth": 0,
|
|
25
|
+
"maxWidth": 599
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "bp_tablet",
|
|
29
|
+
"name": "Tablet",
|
|
30
|
+
"minWidth": 600,
|
|
31
|
+
"maxWidth": 1023
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "bp_desktop",
|
|
35
|
+
"name": "Desktop",
|
|
36
|
+
"minWidth": 1024
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"backgroundColor": "#f4f1ea",
|
|
41
|
+
"opacity": 1,
|
|
42
|
+
"x": -300,
|
|
43
|
+
"y": -200,
|
|
44
|
+
"stateMachine": {
|
|
45
|
+
"inputs": [
|
|
46
|
+
{
|
|
47
|
+
"id": "headline",
|
|
48
|
+
"name": "headline",
|
|
49
|
+
"value": {
|
|
50
|
+
"type": "Text",
|
|
51
|
+
"value": "Ship to 140 countries",
|
|
52
|
+
"defaultValue": "Ship to 140 countries"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "sub",
|
|
57
|
+
"name": "sub",
|
|
58
|
+
"value": {
|
|
59
|
+
"type": "Text",
|
|
60
|
+
"value": "Live routes, updated every minute.",
|
|
61
|
+
"defaultValue": "Live routes, updated every minute."
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "cta",
|
|
66
|
+
"name": "cta",
|
|
67
|
+
"value": {
|
|
68
|
+
"type": "Text",
|
|
69
|
+
"value": "See coverage",
|
|
70
|
+
"defaultValue": "See coverage"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "bgColor",
|
|
75
|
+
"name": "bgColor",
|
|
76
|
+
"value": {
|
|
77
|
+
"type": "Color",
|
|
78
|
+
"value": "#070a14",
|
|
79
|
+
"defaultValue": "#070a14"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "dotColor",
|
|
84
|
+
"name": "dotColor",
|
|
85
|
+
"value": {
|
|
86
|
+
"type": "Color",
|
|
87
|
+
"value": "#5b7cff",
|
|
88
|
+
"defaultValue": "#5b7cff"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "arcColor",
|
|
93
|
+
"name": "arcColor",
|
|
94
|
+
"value": {
|
|
95
|
+
"type": "Color",
|
|
96
|
+
"value": "#7cf7d4",
|
|
97
|
+
"defaultValue": "#7cf7d4"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "accent",
|
|
102
|
+
"name": "accent",
|
|
103
|
+
"value": {
|
|
104
|
+
"type": "Color",
|
|
105
|
+
"value": "#ff5a36",
|
|
106
|
+
"defaultValue": "#ff5a36"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "textColor",
|
|
111
|
+
"name": "textColor",
|
|
112
|
+
"value": {
|
|
113
|
+
"type": "Color",
|
|
114
|
+
"value": "#eef1ff",
|
|
115
|
+
"defaultValue": "#eef1ff"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "spin",
|
|
120
|
+
"name": "spin",
|
|
121
|
+
"value": {
|
|
122
|
+
"type": "Number",
|
|
123
|
+
"value": 1,
|
|
124
|
+
"defaultValue": 1,
|
|
125
|
+
"min": 0,
|
|
126
|
+
"max": 4
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "radius",
|
|
131
|
+
"name": "radius",
|
|
132
|
+
"value": {
|
|
133
|
+
"type": "Number",
|
|
134
|
+
"value": 28,
|
|
135
|
+
"defaultValue": 28,
|
|
136
|
+
"min": 0,
|
|
137
|
+
"max": 60
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "intensity",
|
|
142
|
+
"name": "intensity",
|
|
143
|
+
"value": {
|
|
144
|
+
"type": "Number",
|
|
145
|
+
"value": 1,
|
|
146
|
+
"defaultValue": 1,
|
|
147
|
+
"min": 0.3,
|
|
148
|
+
"max": 2
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "lift",
|
|
153
|
+
"name": "lift",
|
|
154
|
+
"value": {
|
|
155
|
+
"type": "Number",
|
|
156
|
+
"value": 8,
|
|
157
|
+
"defaultValue": 8,
|
|
158
|
+
"min": 0,
|
|
159
|
+
"max": 24
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "interactive",
|
|
164
|
+
"name": "interactive",
|
|
165
|
+
"value": {
|
|
166
|
+
"type": "Boolean",
|
|
167
|
+
"value": true,
|
|
168
|
+
"defaultValue": true
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "tilt",
|
|
173
|
+
"name": "tilt",
|
|
174
|
+
"value": {
|
|
175
|
+
"type": "Number",
|
|
176
|
+
"value": 0,
|
|
177
|
+
"defaultValue": 0,
|
|
178
|
+
"min": 0,
|
|
179
|
+
"max": 12
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": "press",
|
|
184
|
+
"name": "press",
|
|
185
|
+
"value": {
|
|
186
|
+
"type": "Number",
|
|
187
|
+
"value": 1,
|
|
188
|
+
"defaultValue": 1,
|
|
189
|
+
"min": 0,
|
|
190
|
+
"max": 2
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"id": "float",
|
|
195
|
+
"name": "float",
|
|
196
|
+
"value": {
|
|
197
|
+
"type": "Number",
|
|
198
|
+
"value": 0,
|
|
199
|
+
"defaultValue": 0,
|
|
200
|
+
"min": 0,
|
|
201
|
+
"max": 12
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "speed",
|
|
206
|
+
"name": "speed",
|
|
207
|
+
"value": {
|
|
208
|
+
"type": "Number",
|
|
209
|
+
"value": 1,
|
|
210
|
+
"defaultValue": 1,
|
|
211
|
+
"min": 0,
|
|
212
|
+
"max": 3
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id": "intro",
|
|
217
|
+
"name": "intro",
|
|
218
|
+
"value": {
|
|
219
|
+
"type": "Boolean",
|
|
220
|
+
"value": true,
|
|
221
|
+
"defaultValue": true
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"id": "introStyle",
|
|
226
|
+
"name": "introStyle",
|
|
227
|
+
"value": {
|
|
228
|
+
"type": "Text",
|
|
229
|
+
"value": "none",
|
|
230
|
+
"defaultValue": "none"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"id": "introDuration",
|
|
235
|
+
"name": "introDuration",
|
|
236
|
+
"value": {
|
|
237
|
+
"type": "Number",
|
|
238
|
+
"value": 1.2,
|
|
239
|
+
"defaultValue": 1.2,
|
|
240
|
+
"min": 0.2,
|
|
241
|
+
"max": 3
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": "colorTween",
|
|
246
|
+
"name": "colorTween",
|
|
247
|
+
"value": {
|
|
248
|
+
"type": "Number",
|
|
249
|
+
"value": 0.6,
|
|
250
|
+
"defaultValue": 0.6,
|
|
251
|
+
"min": 0,
|
|
252
|
+
"max": 3
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"id": "pageMode",
|
|
257
|
+
"name": "pageMode",
|
|
258
|
+
"value": {
|
|
259
|
+
"type": "Text",
|
|
260
|
+
"value": "solid",
|
|
261
|
+
"defaultValue": "solid"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"id": "pageTop",
|
|
266
|
+
"name": "pageTop",
|
|
267
|
+
"value": {
|
|
268
|
+
"type": "Color",
|
|
269
|
+
"value": "#f4f1ea",
|
|
270
|
+
"defaultValue": "#f4f1ea"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"id": "pageBottom",
|
|
275
|
+
"name": "pageBottom",
|
|
276
|
+
"value": {
|
|
277
|
+
"type": "Color",
|
|
278
|
+
"value": "#ddd5c4",
|
|
279
|
+
"defaultValue": "#ddd5c4"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "replay",
|
|
284
|
+
"name": "replay",
|
|
285
|
+
"value": {
|
|
286
|
+
"type": "Trigger",
|
|
287
|
+
"value": false,
|
|
288
|
+
"defaultValue": false
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"id": "tap",
|
|
293
|
+
"name": "tap",
|
|
294
|
+
"value": {
|
|
295
|
+
"type": "Trigger",
|
|
296
|
+
"value": false,
|
|
297
|
+
"defaultValue": false
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"layers": [
|
|
302
|
+
{
|
|
303
|
+
"id": "layer_entrance",
|
|
304
|
+
"name": "Entrance",
|
|
305
|
+
"entryStateId": "s_in_a",
|
|
306
|
+
"states": [
|
|
307
|
+
{
|
|
308
|
+
"id": "s_in_a",
|
|
309
|
+
"name": "Entrance",
|
|
310
|
+
"animationId": "a_entrance",
|
|
311
|
+
"loop": false,
|
|
312
|
+
"transitions": [
|
|
313
|
+
{
|
|
314
|
+
"id": "tr_in_b",
|
|
315
|
+
"targetStateId": "s_in_b",
|
|
316
|
+
"duration": 0,
|
|
317
|
+
"conditions": [
|
|
318
|
+
{
|
|
319
|
+
"inputId": "replay",
|
|
320
|
+
"inputName": "replay",
|
|
321
|
+
"op": "IsTrue",
|
|
322
|
+
"value": true
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"id": "s_in_b",
|
|
330
|
+
"name": "Entrance (replay)",
|
|
331
|
+
"animationId": "a_entrance",
|
|
332
|
+
"loop": false,
|
|
333
|
+
"transitions": [
|
|
334
|
+
{
|
|
335
|
+
"id": "tr_in_a",
|
|
336
|
+
"targetStateId": "s_in_a",
|
|
337
|
+
"duration": 0,
|
|
338
|
+
"conditions": [
|
|
339
|
+
{
|
|
340
|
+
"inputId": "replay",
|
|
341
|
+
"inputName": "replay",
|
|
342
|
+
"op": "IsTrue",
|
|
343
|
+
"value": true
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "layer_ambient",
|
|
353
|
+
"name": "Ambient",
|
|
354
|
+
"entryStateId": "s_ambient",
|
|
355
|
+
"states": [
|
|
356
|
+
{
|
|
357
|
+
"id": "s_ambient",
|
|
358
|
+
"name": "Ambient float",
|
|
359
|
+
"animationId": "a_ambient",
|
|
360
|
+
"loop": true,
|
|
361
|
+
"transitions": []
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"logicNodes": []
|
|
367
|
+
},
|
|
368
|
+
"physics": {
|
|
369
|
+
"enabled": false,
|
|
370
|
+
"gravity": {
|
|
371
|
+
"x": 0,
|
|
372
|
+
"y": 9.8
|
|
373
|
+
},
|
|
374
|
+
"wind": {
|
|
375
|
+
"x": 0,
|
|
376
|
+
"y": 0
|
|
377
|
+
},
|
|
378
|
+
"timeScale": 1,
|
|
379
|
+
"collideWithBounds": true,
|
|
380
|
+
"joints": []
|
|
381
|
+
},
|
|
382
|
+
"guides": {
|
|
383
|
+
"horizontal": [],
|
|
384
|
+
"vertical": []
|
|
385
|
+
},
|
|
386
|
+
"animations": [
|
|
387
|
+
{
|
|
388
|
+
"id": "a_entrance",
|
|
389
|
+
"name": "Entrance",
|
|
390
|
+
"duration": 1,
|
|
391
|
+
"loop": false,
|
|
392
|
+
"tracks": [
|
|
393
|
+
{
|
|
394
|
+
"id": "t_in_o",
|
|
395
|
+
"object_id": "02_wire_globe_stage",
|
|
396
|
+
"property": "transform.opacity",
|
|
397
|
+
"keyframes": [
|
|
398
|
+
{
|
|
399
|
+
"id": "k_o0",
|
|
400
|
+
"time": 0,
|
|
401
|
+
"value": 0,
|
|
402
|
+
"easing": "easeOutCubic"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "k_o1",
|
|
406
|
+
"time": 0.55,
|
|
407
|
+
"value": 1
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"id": "t_in_sx",
|
|
413
|
+
"object_id": "02_wire_globe_stage",
|
|
414
|
+
"property": "transform.scale_x",
|
|
415
|
+
"keyframes": [
|
|
416
|
+
{
|
|
417
|
+
"id": "k_sx0",
|
|
418
|
+
"time": 0,
|
|
419
|
+
"value": 0.92,
|
|
420
|
+
"easing": "easeOutBack"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"id": "k_sx1",
|
|
424
|
+
"time": 0.9,
|
|
425
|
+
"value": 1
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"id": "t_in_sy",
|
|
431
|
+
"object_id": "02_wire_globe_stage",
|
|
432
|
+
"property": "transform.scale_y",
|
|
433
|
+
"keyframes": [
|
|
434
|
+
{
|
|
435
|
+
"id": "k_sy0",
|
|
436
|
+
"time": 0,
|
|
437
|
+
"value": 0.92,
|
|
438
|
+
"easing": "easeOutBack"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"id": "k_sy1",
|
|
442
|
+
"time": 0.9,
|
|
443
|
+
"value": 1
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"id": "a_ambient",
|
|
451
|
+
"name": "Ambient float",
|
|
452
|
+
"duration": 6,
|
|
453
|
+
"loop": true,
|
|
454
|
+
"tracks": [
|
|
455
|
+
{
|
|
456
|
+
"id": "t_amb_y",
|
|
457
|
+
"object_id": "02_wire_globe_stage",
|
|
458
|
+
"property": "transform.y",
|
|
459
|
+
"keyframes": [
|
|
460
|
+
{
|
|
461
|
+
"id": "k_y0",
|
|
462
|
+
"time": 0,
|
|
463
|
+
"value": 200,
|
|
464
|
+
"easing": "easeInOutSine"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"id": "k_y1",
|
|
468
|
+
"time": 3,
|
|
469
|
+
"value": 195,
|
|
470
|
+
"easing": "easeInOutSine"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"id": "k_y2",
|
|
474
|
+
"time": 6,
|
|
475
|
+
"value": 200
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
"layoutProps": {
|
|
483
|
+
"mode": "linear",
|
|
484
|
+
"direction": "vertical",
|
|
485
|
+
"gap": 0,
|
|
486
|
+
"padding": {
|
|
487
|
+
"top": 0,
|
|
488
|
+
"right": 0,
|
|
489
|
+
"bottom": 0,
|
|
490
|
+
"left": 0
|
|
491
|
+
},
|
|
492
|
+
"alignItems": "stretch",
|
|
493
|
+
"layoutSizingHorizontal": "fixed",
|
|
494
|
+
"layoutSizingVertical": "fixed"
|
|
495
|
+
},
|
|
496
|
+
"animationFlow": [],
|
|
497
|
+
"navigation": [],
|
|
498
|
+
"stateVariables": [],
|
|
499
|
+
"lastModified": 1793007564941,
|
|
500
|
+
"logicEditorNodes": [],
|
|
501
|
+
"logicEditorEdges": [],
|
|
502
|
+
"stickyNotes": [],
|
|
503
|
+
"objects": [
|
|
504
|
+
{
|
|
505
|
+
"id": "02_wire_globe_stage",
|
|
506
|
+
"name": "Wireframe Globe",
|
|
507
|
+
"type": "Group",
|
|
508
|
+
"transform": {
|
|
509
|
+
"x": 300,
|
|
510
|
+
"y": 200,
|
|
511
|
+
"rotation": 0,
|
|
512
|
+
"scale_x": 1,
|
|
513
|
+
"scale_y": 1,
|
|
514
|
+
"opacity": 1,
|
|
515
|
+
"skew_x": 0,
|
|
516
|
+
"skew_y": 0
|
|
517
|
+
},
|
|
518
|
+
"width": 600,
|
|
519
|
+
"height": 400,
|
|
520
|
+
"geometry": {
|
|
521
|
+
"type": "Rectangle",
|
|
522
|
+
"width": 600,
|
|
523
|
+
"height": 400,
|
|
524
|
+
"cornerRadius": 0
|
|
525
|
+
},
|
|
526
|
+
"cornerRadius": 0,
|
|
527
|
+
"children": [],
|
|
528
|
+
"clipContent": true,
|
|
529
|
+
"style": {
|
|
530
|
+
"fill": {
|
|
531
|
+
"type": "Solid",
|
|
532
|
+
"color": "#f4f1ea",
|
|
533
|
+
"opacity": 0
|
|
534
|
+
},
|
|
535
|
+
"effects": [
|
|
536
|
+
{
|
|
537
|
+
"id": "fx",
|
|
538
|
+
"type": "CustomEffect",
|
|
539
|
+
"name": "wire-globe",
|
|
540
|
+
"isEnabled": true,
|
|
541
|
+
"params": {
|
|
542
|
+
"headline": "Ship to 140 countries",
|
|
543
|
+
"sub": "Live routes, updated every minute.",
|
|
544
|
+
"cta": "See coverage",
|
|
545
|
+
"bgColor": "#070a14",
|
|
546
|
+
"dotColor": "#5b7cff",
|
|
547
|
+
"arcColor": "#7cf7d4",
|
|
548
|
+
"accent": "#ff5a36",
|
|
549
|
+
"textColor": "#eef1ff",
|
|
550
|
+
"spin": 1,
|
|
551
|
+
"radius": 28,
|
|
552
|
+
"intensity": 1,
|
|
553
|
+
"lift": 8,
|
|
554
|
+
"interactive": true,
|
|
555
|
+
"tilt": 0,
|
|
556
|
+
"press": 1,
|
|
557
|
+
"float": 0,
|
|
558
|
+
"speed": 1,
|
|
559
|
+
"intro": true,
|
|
560
|
+
"introStyle": "none",
|
|
561
|
+
"introDuration": 1.2,
|
|
562
|
+
"colorTween": 0.6,
|
|
563
|
+
"pageMode": "solid",
|
|
564
|
+
"pageTop": "#f4f1ea",
|
|
565
|
+
"pageBottom": "#ddd5c4"
|
|
566
|
+
},
|
|
567
|
+
"code": "export const name = \"Wireframe Globe\";\nexport const params = {\n headline: { value: \"Ship to 140 countries\", label: \"Headline\" },\n sub: { value: \"Live routes, updated every minute.\", label: \"Subline\" },\n cta: { value: \"See coverage\", label: \"Button\" },\n bgColor: { value: \"#070a14\", label: \"Panel\" },\n dotColor: { value: \"#5b7cff\", label: \"Globe dots\" },\n arcColor: { value: \"#7cf7d4\", label: \"Route arcs\" },\n accent: { value: \"#ff5a36\", label: \"Accent\" },\n textColor: { value: \"#eef1ff\", label: \"Text\" },\n spin: { value: 1, min: 0, max: 4, step: 0.1, label: \"Spin speed\" },\n radius: { value: 28, min: 0, max: 60, step: 1, label: \"Corner radius\" },\n intensity: { value: 1, min: 0.3, max: 2, step: 0.1, label: \"Dot density\" },\n lift: { value: 8, min: 0, max: 24, step: 1, label: \"Hover lift\" },\n interactive: { value: true, label: \"Mouse interaction\" },\n tilt: { value: 0, min: 0, max: 12, step: 0.5, label: \"Hover tilt (deg, 0 = off)\" },\n press: { value: 1, min: 0, max: 2, step: 0.1, label: \"Press squish\" },\n float: { value: 0, min: 0, max: 12, step: 0.5, label: \"Extra idle float (px)\" },\n speed: { value: 1, min: 0, max: 3, step: 0.1, label: \"Animation speed\" },\n intro: { value: true, label: \"Entrance animation\" },\n introStyle: { value: \"none\", options: [\"none\", \"rise\", \"drop\", \"zoom\", \"swing\", \"slide\"], label: \"Extra entrance style\" },\n introDuration: { value: 1.2, min: 0.2, max: 3, step: 0.1, label: \"Entrance duration (s)\" },\n colorTween: { value: 0.6, min: 0, max: 3, step: 0.1, label: \"Colour change fade (s)\" },\n pageMode: { value: \"solid\", options: [\"solid\", \"gradient\", \"none\"], label: \"Page background\" },\n pageTop: { value: \"#f4f1ea\", label: \"Page colour\" },\n pageBottom: { value: \"#ddd5c4\", label: \"Page gradient end\" }\n};\nlet S = null;\nlet KS = null;\nfunction rr(ctx, x, y, w, h, r) {\n r = Math.max(0, Math.min(r, w / 2, h / 2));\n ctx.beginPath();\n ctx.moveTo(x + r, y); ctx.lineTo(x + w - r, y); ctx.arcTo(x + w, y, x + w, y + r, r);\n ctx.lineTo(x + w, y + h - r); ctx.arcTo(x + w, y + h, x + w - r, y + h, r);\n ctx.lineTo(x + r, y + h); ctx.arcTo(x, y + h, x, y + h - r, r);\n ctx.lineTo(x, y + r); ctx.arcTo(x, y, x + r, y, r); ctx.closePath();\n}\nfunction rnd(i) { const s = Math.sin(i * 127.1 + 311.7) * 43758.5453; return s - Math.floor(s); }\nfunction hx(c) {\n c = String(c).trim();\n if (c.charAt(0) === '#') {\n let h = c.slice(1);\n if (h.length === 3 || h.length === 4) h = h.split('').map(function (ch) { return ch + ch; }).join('');\n const n = parseInt(h.slice(0, 6), 16) || 0;\n return [(n >> 16) & 255, (n >> 8) & 255, n & 255];\n }\n const m = c.match(/[\\d.]+/g);\n return m && m.length >= 3 ? [Number(m[0]), Number(m[1]), Number(m[2])] : [0, 0, 0];\n}\nfunction isCol(v) { return typeof v === 'string' && /^(#[0-9a-f]{3,8}|rgba?\\()/i.test(v.trim()); }\nfunction mix(a, b, k) { const A = hx(a), B = hx(b); const r = A.map(function (v, i) { return Math.round(v + (B[i] - v) * k); }); return 'rgb(' + r[0] + ',' + r[1] + ',' + r[2] + ')'; }\nfunction alpha(c, a) { const v = hx(c); return 'rgba(' + v[0] + ',' + v[1] + ',' + v[2] + ',' + a + ')'; }\nfunction ease(k) { return 1 - Math.pow(1 - k, 3); }\nfunction back(k) { const s = 1.7; k = k - 1; return 1 + k * k * ((s + 1) * k + s); }\nfunction clamp(v, a, b) { return Math.max(a, Math.min(b, v)); }\n/* a state machine input with the same name wins once it differs from the file default;\n colours cross-fade and text changes replay the sheen */\nfunction cfg(env, defs) {\n if (!KS) KS = { col: {}, txt: {}, sheen: -9 };\n const out = {}, now = env.time;\n for (const k in defs) {\n const d0 = defs[k] && typeof defs[k] === 'object' && 'value' in defs[k] ? defs[k].value : defs[k];\n let v = env.params ? env.params[k] : undefined;\n if (v && typeof v === 'object' && 'value' in v) v = v.value;\n const iv = env.inputs ? env.inputs[k] : undefined;\n if (iv !== undefined && iv !== null && iv !== '' && String(iv) !== String(d0)) v = iv;\n if (v === undefined || v === null || v === '') v = d0;\n if (typeof d0 === 'number') { const n = Number(v); v = isNaN(n) ? d0 : n; }\n else if (typeof d0 === 'boolean') v = v === true || v === 'true' || v === 1;\n else v = String(v);\n out[k] = v;\n }\n const tw = Math.max(0.01, out.colorTween === undefined ? 0.6 : out.colorTween);\n for (const k in out) {\n const v = out[k];\n if (isCol(v)) {\n let s = KS.col[k];\n if (!s) s = KS.col[k] = { from: v, to: v, t0: -99 };\n if (s.to !== v) { s.from = s.cur || s.to; s.to = v; s.t0 = now; }\n const p = Math.min(1, (now - s.t0) / tw);\n s.cur = p >= 1 ? v : mix(s.from, s.to, ease(p));\n out[k] = s.cur;\n } else if (typeof v === 'string' && k !== 'introStyle' && k !== 'pageMode') {\n if (KS.txt[k] !== undefined && KS.txt[k] !== v) KS.sheen = now;\n KS.txt[k] = v;\n }\n }\n return out;\n}\n/* hover, tap (pointer or 'tap' trigger), entrance, numeric tweens; px/py are -1..1 inside the box */\nfunction stage(S, env, P, B) {\n const now = env.time, inp = env.inputs || {};\n if (S.t0 === undefined) { S.t0 = now; S.lift = 0; S.tilt = 0; S.tiltY = 0; S.press = 0; S.trg = {}; S.tw = {}; S.mx = 0; S.my = 0; }\n const trig = function (n) { const v = !!inp[n]; const r = v && !S.trg[n]; S.trg[n] = v; return r; };\n if (trig('replay')) S.t0 = now;\n /* interactive off: the piece ignores the pointer (hover, tilt, parallax, press, click);\n the tap and replay triggers still work from code */\n const pt = P.interactive === false ? {} : (env.pointer || {});\n const over = !!pt.isHovered && Math.abs(pt.x || 0) <= B[0] / 2 && Math.abs(pt.y || 0) <= B[1] / 2;\n S.lift += ((over ? 1 : 0) - S.lift) * 0.12;\n S.mx += ((over ? clamp((pt.x || 0) / (B[0] / 2), -1, 1) : 0) - S.mx) * 0.1;\n S.my += ((over ? clamp((pt.y || 0) / (B[1] / 2), -1, 1) : 0) - S.my) * 0.1;\n S.tilt = S.mx;\n const down = !!pt.isDown;\n const tap = (down && !S.wasDown && over) || trig('tap');\n S.wasDown = down;\n S.press += ((down && over ? 1 : 0) - S.press) * 0.3;\n const k = P.intro && P.introStyle !== 'none' ? Math.min(1, Math.max(0, (now - S.t0) / Math.max(0.05, P.introDuration))) : 1;\n const e = ease(k);\n const L = S.lift * P.lift;\n const fl = P.float * Math.sin(now * P.speed * Math.PI / 2);\n const sk = Math.min(1, Math.max(0, (now - KS.sheen) / 0.9));\n const tw = function (key) {\n let s = S.tw[key];\n if (!s) s = S.tw[key] = { f: P[key], t: P[key], t0: -99, v: P[key] };\n if (s.t !== P[key]) { s.f = s.v; s.t = P[key]; s.t0 = now; }\n s.v = s.f + (s.t - s.f) * ease(Math.min(1, (now - s.t0) / 0.9));\n return s.v * Math.min(1, e * 1.04);\n };\n return { over: over, tap: tap, L: L, px: S.mx, py: S.my, rawX: pt.x || 0, rawY: pt.y || 0, k: k, e: e, sk: sk,\n X: -B[0] / 2, T: -B[1] / 2 - L + fl, W: B[0], H: B[1], R: P.radius === undefined ? B[2] : P.radius, tw: tw, S: S };\n}\n/* page background, then entrance style, hover tilt and press squish */\nfunction begin(ctx, c, P) {\n const pg = ctx.createLinearGradient(0, -260, 0, 260);\n pg.addColorStop(0, P.pageTop); pg.addColorStop(1, P.pageMode === 'gradient' ? P.pageBottom : P.pageTop);\n ctx.globalAlpha = P.pageMode === 'none' ? 0 : 1;\n ctx.fillStyle = pg; ctx.fillRect(-400, -300, 800, 600);\n ctx.globalAlpha = 1;\n ctx.save();\n const k = c.k, e = c.e, st = P.introStyle;\n let dx = 0, dy = 0, s = 1, rot = 0;\n if (st === 'rise') { dy = (1 - e) * 46; s = 0.92 + 0.08 * e; }\n else if (st === 'drop') { dy = (back(k) - 1) * 90; }\n else if (st === 'zoom') { s = 0.55 + 0.45 * back(k); }\n else if (st === 'swing') { rot = (1 - back(k)) * 0.3; dy = (1 - e) * 20; }\n else if (st === 'slide') { dx = (1 - back(k)) * 160; }\n rot += c.S.tilt * P.tilt * Math.PI / 180;\n s *= 1 - 0.03 * c.S.press * P.press;\n ctx.translate(dx, dy); ctx.rotate(rot); ctx.scale(s, s);\n}\nfunction end(ctx, c, P) {\n ctx.save(); rr(ctx, c.X, c.T, c.W, c.H, c.R); ctx.clip();\n const q = c.k < 1 ? c.k : c.sk;\n const sx = c.X - 120 + q * (c.W + 240);\n const g = ctx.createLinearGradient(sx - 70, c.T, sx + 70, c.T + 140);\n g.addColorStop(0, 'rgba(255,255,255,0)'); g.addColorStop(0.5, 'rgba(255,255,255,0.5)'); g.addColorStop(1, 'rgba(255,255,255,0)');\n ctx.globalAlpha = q < 1 ? 0.7 * Math.sin(q * Math.PI) : 0;\n ctx.fillStyle = g; ctx.fillRect(c.X, c.T, c.W, c.H);\n ctx.globalAlpha = 1; ctx.restore();\n ctx.restore();\n}\nfunction shadowOn(ctx, S, col) { ctx.shadowColor = col || 'rgba(10,12,30,0.35)'; ctx.shadowBlur = 34 + 22 * S.lift; ctx.shadowOffsetY = 18 + 10 * S.lift; }\nfunction shadowOff(ctx) { ctx.shadowColor = 'transparent'; ctx.shadowBlur = 0; ctx.shadowOffsetY = 0; }\nconst BOX = [560, 340, 28];\nconst CITIES = [[40.7, -74], [51.5, -0.1], [35.7, 139.7], [-33.9, 151.2], [1.35, 103.8], [-23.5, -46.6], [19.1, 72.9], [37.8, -122.4]];\nfunction proj(lat, lon, rot, tiltX, R) {\n const la = lat * Math.PI / 180, lo = lon * Math.PI / 180 + rot;\n let x = Math.cos(la) * Math.sin(lo), y = Math.sin(la), z = Math.cos(la) * Math.cos(lo);\n const y2 = y * Math.cos(tiltX) - z * Math.sin(tiltX), z2 = y * Math.sin(tiltX) + z * Math.cos(tiltX);\n return [x * R, 0 - y2 * R, z2];\n}\nexport function render(ctx, env) {\n const P = cfg(env, params), t = env.time * P.speed;\n if (!S) S = { route: 0, r0: 0 };\n const c = stage(S, env, P, BOX), X = c.X, T = c.T, W = c.W, H = c.H;\n begin(ctx, c, P);\n if (c.tap) { S.route = (S.route + 1) % CITIES.length; S.r0 = env.time; }\n shadowOn(ctx, S, 'rgba(5,10,40,0.5)');\n rr(ctx, X, T, W, H, c.R); ctx.fillStyle = P.bgColor; ctx.fill(); shadowOff(ctx);\n ctx.save(); rr(ctx, X, T, W, H, c.R); ctx.clip();\n const cx = X + W - 160, cy = T + H / 2 + 10, R = 150;\n const halo = ctx.createRadialGradient(cx, cy, R * 0.6, cx, cy, R * 1.5);\n halo.addColorStop(0, alpha(P.dotColor, 0.25)); halo.addColorStop(1, alpha(P.dotColor, 0));\n ctx.fillStyle = halo; ctx.fillRect(X, T, W, H);\n const rot = t * 0.25 * P.spin + c.px * 0.6, tilt = 0.35 + c.py * 0.2;\n /* dot sphere, front and back hemispheres batched into two paths */\n const step = Math.max(4, Math.round(9 / P.intensity));\n const front = new Path2D(), backp = new Path2D();\n for (let la = -80; la <= 80; la += step) {\n const n = Math.max(6, Math.round(360 / step * Math.cos(la * Math.PI / 180)));\n for (let i = 0; i < n; i++) {\n const p = proj(la, i * 360 / n, rot, tilt, R);\n (p[2] > 0 ? front : backp).rect(cx + p[0] - 0.9, cy + p[1] - 0.9, 1.8, 1.8);\n }\n }\n ctx.fillStyle = alpha(P.dotColor, 0.25); ctx.fill(backp);\n ctx.fillStyle = P.dotColor; ctx.fill(front);\n /* routes from the hub city, the active one drawing on */\n const hub = proj(CITIES[0][0], CITIES[0][1], rot, tilt, R);\n for (let i = 1; i < CITIES.length; i++) {\n const p = proj(CITIES[i][0], CITIES[i][1], rot, tilt, R);\n if (p[2] < -0.2 && hub[2] < -0.2) continue;\n const mx = (hub[0] + p[0]) / 2, my = (hub[1] + p[1]) / 2, lift = 1.5;\n const active = i === S.route || (S.route === 0 && i === 1);\n const k = active ? Math.min(1, (env.time - S.r0) / 1.2) : 1;\n ctx.strokeStyle = active ? P.accent : alpha(P.arcColor, Math.max(0.15, (Math.min(p[2], hub[2]) + 1) / 2));\n ctx.lineWidth = active ? 2.2 : 1.2;\n ctx.beginPath(); ctx.moveTo(cx + hub[0], cy + hub[1]);\n const qx = cx + mx * lift, qy = cy + my * lift;\n for (let s = 1; s <= 20; s++) {\n const u = s / 20 * k, iu = 1 - u;\n ctx.lineTo(iu * iu * (cx + hub[0]) + 2 * iu * u * qx + u * u * (cx + p[0]), iu * iu * (cy + hub[1]) + 2 * iu * u * qy + u * u * (cy + p[1]));\n }\n ctx.stroke();\n if (p[2] > 0) { ctx.fillStyle = active ? P.accent : P.arcColor; ctx.beginPath(); ctx.arc(cx + p[0], cy + p[1], active ? 4 : 2.5, 0, Math.PI * 2); ctx.fill(); }\n }\n /* travelling pulse on the routes (2 s loop) */\n const pu = (t / 2) % 1;\n ctx.fillStyle = P.accent; ctx.beginPath(); ctx.arc(cx + hub[0], cy + hub[1], 4 + 10 * pu, 0, Math.PI * 2); ctx.globalAlpha = 1 - pu; ctx.fill(); ctx.globalAlpha = 1;\n ctx.restore();\n ctx.fillStyle = P.textColor; ctx.textAlign = 'left'; ctx.textBaseline = 'alphabetic';\n ctx.font = '600 11px Menlo, monospace'; ctx.globalAlpha = 0.55; ctx.fillText('GLOBAL NETWORK', X + 34, T + 56); ctx.globalAlpha = 1;\n ctx.font = '700 32px Avenir Next, Helvetica Neue, sans-serif';\n const words = P.headline.split(' '), lines = [''];\n for (let i = 0; i < words.length; i++) { const tryL = (lines[lines.length - 1] + ' ' + words[i]).trim(); if (ctx.measureText(tryL).width > 230 && lines[lines.length - 1]) lines.push(words[i]); else lines[lines.length - 1] = tryL; }\n for (let i = 0; i < Math.min(3, lines.length); i++) ctx.fillText(lines[i], X + 34, T + 104 + i * 38);\n ctx.font = '500 14px Avenir Next, Helvetica Neue, sans-serif'; ctx.globalAlpha = 0.65;\n ctx.fillText(P.sub, X + 34, T + 120 + Math.min(3, lines.length) * 38); ctx.globalAlpha = 1;\n rr(ctx, X + 34, T + H - 74, 150, 42, 21); ctx.fillStyle = P.accent; ctx.fill();\n ctx.fillStyle = '#ffffff'; ctx.font = '700 14px Avenir Next, Helvetica Neue, sans-serif'; ctx.textAlign = 'center';\n ctx.fillText(P.cta + ' →', X + 109, T + H - 48);\n end(ctx, c, P);\n}\n"
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
"layoutProps": {
|
|
572
|
+
"layoutSizingHorizontal": "fill",
|
|
573
|
+
"layoutSizingVertical": "fill"
|
|
574
|
+
},
|
|
575
|
+
"zIndex": 1,
|
|
576
|
+
"interactions": [],
|
|
577
|
+
"isExpanded": true
|
|
578
|
+
}
|
|
579
|
+
]
|
|
580
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Claude Exode MCP Connector (v7.5.7)
|
|
5
|
+
* Native connector enabling Claude to orchestrate, animate, and compile ExodeUI scenes and interactive logic.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createMCPServer(): Server;
|
|
8
|
+
declare const server: Server<{
|
|
9
|
+
method: string;
|
|
10
|
+
params?: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
_meta?: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
progressToken?: string | number | undefined;
|
|
15
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
16
|
+
taskId: string;
|
|
17
|
+
} | undefined;
|
|
18
|
+
} | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
method: string;
|
|
22
|
+
params?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
_meta?: {
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
progressToken?: string | number | undefined;
|
|
27
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
28
|
+
taskId: string;
|
|
29
|
+
} | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
_meta?: {
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
progressToken?: string | number | undefined;
|
|
37
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
38
|
+
taskId: string;
|
|
39
|
+
} | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export { server };
|
|
3
43
|
//# sourceMappingURL=index.d.ts.map
|