@fungi.computer/sprite-zdog 0.0.0-stage → 0.0.1

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 (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +125 -2
  3. package/dist/agent-proof/moth.d.ts +50 -0
  4. package/dist/agent-proof/moth.js +52 -0
  5. package/dist/author.d.ts +217 -0
  6. package/dist/author.js +372 -0
  7. package/dist/avatar.d.ts +69 -0
  8. package/dist/avatar.js +40 -0
  9. package/dist/builtins/base-face.d.ts +290 -0
  10. package/dist/builtins/base-face.js +615 -0
  11. package/dist/builtins/base.d.ts +331 -0
  12. package/dist/builtins/base.js +579 -0
  13. package/dist/builtins/burger-input.d.ts +310 -0
  14. package/dist/builtins/burger-input.js +517 -0
  15. package/dist/builtins/burger.d.ts +305 -0
  16. package/dist/builtins/burger.js +4 -0
  17. package/dist/builtins/cat-input.d.ts +316 -0
  18. package/dist/builtins/cat-input.js +255 -0
  19. package/dist/builtins/cat.d.ts +311 -0
  20. package/dist/builtins/cat.js +4 -0
  21. package/dist/builtins/index.d.ts +4 -0
  22. package/dist/builtins/index.js +4 -0
  23. package/dist/builtins/mushroom-input.d.ts +314 -0
  24. package/dist/builtins/mushroom-input.js +94 -0
  25. package/dist/builtins/mushroom.d.ts +310 -0
  26. package/dist/builtins/mushroom.js +4 -0
  27. package/dist/burger.d.ts +9 -0
  28. package/dist/burger.js +15 -0
  29. package/dist/cat.d.ts +9 -0
  30. package/dist/cat.js +15 -0
  31. package/dist/catalog.d.ts +3 -0
  32. package/dist/catalog.js +63 -0
  33. package/dist/document.d.ts +444 -0
  34. package/dist/document.js +204 -0
  35. package/dist/index.d.ts +10 -0
  36. package/dist/index.js +10 -0
  37. package/dist/internal.d.ts +41 -0
  38. package/dist/internal.js +21 -0
  39. package/dist/mushroom.character.json +1930 -0
  40. package/dist/mushroom.d.ts +4 -0
  41. package/dist/mushroom.js +9 -0
  42. package/dist/palette.d.ts +3 -0
  43. package/dist/palette.js +5 -0
  44. package/dist/portable.d.ts +4 -0
  45. package/dist/portable.js +61 -0
  46. package/dist/renderer.d.ts +4 -0
  47. package/dist/renderer.js +106 -0
  48. package/dist/zdog-runtime.d.ts +21 -0
  49. package/dist/zdog-runtime.js +622 -0
  50. package/package.json +112 -3
@@ -0,0 +1,310 @@
1
+ import type { SceneNode } from "../author.js";
2
+ /**
3
+ * The burger's authoring input, kept apart from its `defineSprite` call so
4
+ * the avatar catalog can import it without building the scene at module
5
+ * evaluation (a Worker cold-start cost). `./burger.js` is the definition.
6
+ */
7
+ export declare const burgerInput: {
8
+ apiVersion: 1;
9
+ name: string;
10
+ palette: {
11
+ bottomBun: string;
12
+ bunSpot: string;
13
+ cheese: string;
14
+ dead: string;
15
+ deadTongue: string;
16
+ eye: string;
17
+ lettuce: string;
18
+ mouth: string;
19
+ patty: string;
20
+ tomato: string;
21
+ topBun: string;
22
+ blush: string;
23
+ tongue: string;
24
+ sweat: string;
25
+ white: string;
26
+ };
27
+ build({ scene, color }: import("../author.js").AuthorContext): {
28
+ root: SceneNode;
29
+ variants: {
30
+ eyes: Record<string, SceneNode>;
31
+ mouth: Record<string, SceneNode>;
32
+ blush: Record<string, SceneNode>;
33
+ };
34
+ };
35
+ expressions: {
36
+ readonly angry: {
37
+ readonly variants: {
38
+ readonly eyes: "angry";
39
+ readonly mouth: "angry";
40
+ readonly blush: "off";
41
+ };
42
+ readonly motion: {
43
+ readonly target: "root";
44
+ readonly translate: {
45
+ readonly x: 1;
46
+ readonly y: 0;
47
+ };
48
+ readonly durationMs: 150;
49
+ readonly repeat: "none";
50
+ };
51
+ };
52
+ readonly confused: {
53
+ readonly variants: {
54
+ readonly eyes: "confused";
55
+ readonly mouth: "normal";
56
+ readonly blush: "off";
57
+ };
58
+ readonly motion: {
59
+ readonly target: "root";
60
+ readonly translate: {
61
+ readonly x: 0;
62
+ readonly y: 0.5;
63
+ };
64
+ readonly durationMs: 150;
65
+ readonly repeat: "none";
66
+ };
67
+ };
68
+ readonly cute: {
69
+ readonly variants: {
70
+ readonly eyes: "cute";
71
+ readonly mouth: "happy";
72
+ readonly blush: "big";
73
+ };
74
+ readonly motion: {
75
+ readonly target: "root";
76
+ readonly translate: {
77
+ readonly x: 0;
78
+ readonly y: -2.5;
79
+ };
80
+ readonly durationMs: 150;
81
+ readonly repeat: "none";
82
+ };
83
+ };
84
+ readonly dead: {
85
+ readonly variants: {
86
+ readonly eyes: "dead";
87
+ readonly mouth: "dead";
88
+ readonly blush: "off";
89
+ };
90
+ };
91
+ readonly happy: {
92
+ readonly variants: {
93
+ readonly eyes: "happy";
94
+ readonly mouth: "happy";
95
+ readonly blush: "medium";
96
+ };
97
+ readonly motion: {
98
+ readonly target: "root";
99
+ readonly translate: {
100
+ readonly x: 0;
101
+ readonly y: -2;
102
+ };
103
+ readonly durationMs: 150;
104
+ readonly repeat: "none";
105
+ };
106
+ };
107
+ readonly nervous: {
108
+ readonly variants: {
109
+ readonly eyes: "nervous";
110
+ readonly mouth: "worried";
111
+ readonly blush: "off";
112
+ };
113
+ readonly motion: {
114
+ readonly target: "root";
115
+ readonly translate: {
116
+ readonly x: -0.5;
117
+ readonly y: -1;
118
+ };
119
+ readonly durationMs: 150;
120
+ readonly repeat: "none";
121
+ };
122
+ };
123
+ readonly normal: {
124
+ readonly variants: {
125
+ readonly eyes: "normal";
126
+ readonly mouth: "normal";
127
+ readonly blush: "off";
128
+ };
129
+ readonly motion: {
130
+ readonly target: "root";
131
+ readonly translate: {
132
+ readonly x: 0;
133
+ readonly y: 1;
134
+ };
135
+ readonly durationMs: 150;
136
+ readonly repeat: "none";
137
+ };
138
+ };
139
+ readonly pleading: {
140
+ readonly variants: {
141
+ readonly eyes: "cute";
142
+ readonly mouth: "pout";
143
+ readonly blush: "medium";
144
+ };
145
+ readonly motion: {
146
+ readonly target: "root";
147
+ readonly translate: {
148
+ readonly x: 0;
149
+ readonly y: -1;
150
+ };
151
+ readonly durationMs: 150;
152
+ readonly repeat: "none";
153
+ };
154
+ };
155
+ readonly sad: {
156
+ readonly variants: {
157
+ readonly eyes: "sad";
158
+ readonly mouth: "sad";
159
+ readonly blush: "off";
160
+ };
161
+ readonly motion: {
162
+ readonly target: "root";
163
+ readonly translate: {
164
+ readonly x: 0;
165
+ readonly y: 2;
166
+ };
167
+ readonly durationMs: 150;
168
+ readonly repeat: "none";
169
+ };
170
+ };
171
+ readonly shy: {
172
+ readonly variants: {
173
+ readonly eyes: "shy";
174
+ readonly mouth: "small";
175
+ readonly blush: "small";
176
+ };
177
+ readonly motion: {
178
+ readonly target: "root";
179
+ readonly translate: {
180
+ readonly x: 0;
181
+ readonly y: 1.5;
182
+ };
183
+ readonly durationMs: 150;
184
+ readonly repeat: "none";
185
+ };
186
+ };
187
+ readonly sleepy: {
188
+ readonly variants: {
189
+ readonly eyes: "sleepy";
190
+ readonly mouth: "small";
191
+ readonly blush: "off";
192
+ };
193
+ readonly motion: {
194
+ readonly target: "root";
195
+ readonly translate: {
196
+ readonly x: 0;
197
+ readonly y: 2;
198
+ };
199
+ readonly durationMs: 150;
200
+ readonly repeat: "none";
201
+ };
202
+ };
203
+ readonly surprised: {
204
+ readonly variants: {
205
+ readonly eyes: "surprised";
206
+ readonly mouth: "surprised";
207
+ readonly blush: "off";
208
+ };
209
+ readonly motion: {
210
+ readonly target: "root";
211
+ readonly translate: {
212
+ readonly x: 0;
213
+ readonly y: -3;
214
+ };
215
+ readonly durationMs: 150;
216
+ readonly repeat: "none";
217
+ };
218
+ };
219
+ readonly wink: {
220
+ readonly variants: {
221
+ readonly mouth: "happy";
222
+ readonly blush: "small";
223
+ };
224
+ readonly variantChoices: {
225
+ readonly eyes: readonly ["wink.left", "wink.right"];
226
+ };
227
+ readonly motion: {
228
+ readonly target: "root";
229
+ readonly translate: {
230
+ readonly x: 0;
231
+ readonly y: -1.5;
232
+ };
233
+ readonly durationMs: 150;
234
+ readonly repeat: "none";
235
+ };
236
+ };
237
+ };
238
+ activities: {
239
+ readonly idle: {
240
+ readonly motion: {
241
+ readonly target: "root";
242
+ readonly translate: {
243
+ readonly y: 0.5;
244
+ };
245
+ readonly durationMs: 2000;
246
+ readonly repeat: "yoyo";
247
+ };
248
+ readonly mouseInfluence: 1;
249
+ };
250
+ readonly listening: {
251
+ readonly motion: {
252
+ readonly target: "root";
253
+ readonly rotate: {
254
+ readonly x: -0.2;
255
+ };
256
+ readonly durationMs: 300;
257
+ readonly repeat: "yoyo";
258
+ };
259
+ readonly mouseInfluence: 0.3;
260
+ };
261
+ readonly processing: {
262
+ readonly mouseInfluence: 0.2;
263
+ };
264
+ readonly speaking: {
265
+ readonly motion: {
266
+ readonly target: "root";
267
+ readonly translate: {
268
+ readonly y: 0.5;
269
+ };
270
+ readonly durationMs: 1500;
271
+ readonly repeat: "yoyo";
272
+ };
273
+ readonly mouseInfluence: 0;
274
+ readonly mouthCycle: readonly [{
275
+ readonly durationMs: 100;
276
+ readonly mouth: "open";
277
+ }, {
278
+ readonly durationMs: 150;
279
+ readonly mouth: "base";
280
+ }, {
281
+ readonly durationMs: 100;
282
+ readonly mouth: "open";
283
+ }, {
284
+ readonly durationMs: 200;
285
+ readonly mouth: "base";
286
+ }];
287
+ };
288
+ readonly thinking: {
289
+ readonly motion: {
290
+ readonly target: "root";
291
+ readonly rotate: {
292
+ readonly z: 0.1;
293
+ };
294
+ readonly durationMs: 800;
295
+ readonly repeat: "yoyo";
296
+ };
297
+ readonly mouseInfluence: 0;
298
+ };
299
+ readonly error: {
300
+ readonly geometry: {
301
+ readonly expression: "dead";
302
+ };
303
+ readonly mouseInfluence: 0.1;
304
+ };
305
+ };
306
+ defaultPresentation: {
307
+ activity: string;
308
+ expression: string;
309
+ };
310
+ };