@energy8platform/golem 0.3.0 → 0.5.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/README.md +17 -0
- package/dist/editor.css +50 -0
- package/dist/editor.js +1315 -969
- package/dist/lib/cli.js +278 -19
- package/dist/lib/cli.js.map +4 -4
- package/dist/lib/editor/controls-panel.d.ts +2 -0
- package/dist/lib/editor/store.d.ts +140 -1
- package/dist/lib/editor-entry.js +278 -19
- package/dist/lib/editor-entry.js.map +4 -4
- package/dist/lib/harness.js +167 -5
- package/dist/lib/interactive-bones.d.ts +37 -0
- package/dist/lib/interactive-editor.d.ts +80 -0
- package/dist/lib/interactive-editor.js +744 -0
- package/dist/lib/interactive-editor.js.map +7 -0
- package/dist/lib/rig-anim.d.ts +5 -2
- package/dist/lib/rig-control-qa.d.ts +319 -0
- package/dist/lib/rig-controls.d.ts +13 -0
- package/dist/lib/rig-format.d.ts +912 -0
- package/dist/lib/rig-gates.d.ts +6 -6
- package/dist/lib/rig-runtime.d.ts +39 -2
- package/dist/lib/runtime.d.ts +3 -1
- package/dist/lib/runtime.js +170 -5
- package/dist/lib/runtime.js.map +4 -4
- package/dist/lib/tools.js +274 -15
- package/dist/lib/tools.js.map +4 -4
- package/package.json +7 -1
|
@@ -174,6 +174,18 @@ export declare const doc: import("@preact/signals-core").Signal<{
|
|
|
174
174
|
duration: number;
|
|
175
175
|
loop: boolean;
|
|
176
176
|
tracks: ({
|
|
177
|
+
keys: {
|
|
178
|
+
t: number;
|
|
179
|
+
v: string | number | number[] | string[] | null;
|
|
180
|
+
ease: "linear" | "step" | "ease_in" | "ease_out" | "ease_in_out" | "minimum_jerk" | "back_out" | "elastic_out" | {
|
|
181
|
+
bezier: [number, number, number, number];
|
|
182
|
+
};
|
|
183
|
+
}[];
|
|
184
|
+
id: string;
|
|
185
|
+
target: "control";
|
|
186
|
+
prop: "value";
|
|
187
|
+
interpolation?: "segment" | "pchip" | undefined;
|
|
188
|
+
} | {
|
|
177
189
|
keys: {
|
|
178
190
|
t: number;
|
|
179
191
|
v: string | number | number[] | string[] | null;
|
|
@@ -268,6 +280,36 @@ export declare const doc: import("@preact/signals-core").Signal<{
|
|
|
268
280
|
name: string;
|
|
269
281
|
} | undefined;
|
|
270
282
|
}[];
|
|
283
|
+
controls?: {
|
|
284
|
+
id: string;
|
|
285
|
+
min: number;
|
|
286
|
+
max: number;
|
|
287
|
+
default: number;
|
|
288
|
+
label?: string | undefined;
|
|
289
|
+
}[] | undefined;
|
|
290
|
+
controlBindings?: {
|
|
291
|
+
id: string;
|
|
292
|
+
axes: {
|
|
293
|
+
keys: number[];
|
|
294
|
+
control: string;
|
|
295
|
+
}[];
|
|
296
|
+
channels: ({
|
|
297
|
+
values: (number | number[])[];
|
|
298
|
+
id: string;
|
|
299
|
+
target: "bone";
|
|
300
|
+
prop: "x" | "y" | "rotation" | "scaleX" | "scaleY" | "shearX" | "shearY";
|
|
301
|
+
} | {
|
|
302
|
+
values: (number | number[])[];
|
|
303
|
+
id: string;
|
|
304
|
+
target: "slot";
|
|
305
|
+
prop: "alpha";
|
|
306
|
+
} | {
|
|
307
|
+
values: (number | number[])[];
|
|
308
|
+
id: string;
|
|
309
|
+
target: "deform";
|
|
310
|
+
prop: "vertices";
|
|
311
|
+
})[];
|
|
312
|
+
}[] | undefined;
|
|
271
313
|
} | undefined>;
|
|
272
314
|
export declare const draft: import("@preact/signals-core").Signal<{
|
|
273
315
|
path: {
|
|
@@ -426,6 +468,18 @@ export declare const draft: import("@preact/signals-core").Signal<{
|
|
|
426
468
|
duration: number;
|
|
427
469
|
loop: boolean;
|
|
428
470
|
tracks: ({
|
|
471
|
+
keys: {
|
|
472
|
+
t: number;
|
|
473
|
+
v: string | number | number[] | string[] | null;
|
|
474
|
+
ease: "linear" | "step" | "ease_in" | "ease_out" | "ease_in_out" | "minimum_jerk" | "back_out" | "elastic_out" | {
|
|
475
|
+
bezier: [number, number, number, number];
|
|
476
|
+
};
|
|
477
|
+
}[];
|
|
478
|
+
id: string;
|
|
479
|
+
target: "control";
|
|
480
|
+
prop: "value";
|
|
481
|
+
interpolation?: "segment" | "pchip" | undefined;
|
|
482
|
+
} | {
|
|
429
483
|
keys: {
|
|
430
484
|
t: number;
|
|
431
485
|
v: string | number | number[] | string[] | null;
|
|
@@ -520,6 +574,36 @@ export declare const draft: import("@preact/signals-core").Signal<{
|
|
|
520
574
|
name: string;
|
|
521
575
|
} | undefined;
|
|
522
576
|
}[];
|
|
577
|
+
controls?: {
|
|
578
|
+
id: string;
|
|
579
|
+
min: number;
|
|
580
|
+
max: number;
|
|
581
|
+
default: number;
|
|
582
|
+
label?: string | undefined;
|
|
583
|
+
}[] | undefined;
|
|
584
|
+
controlBindings?: {
|
|
585
|
+
id: string;
|
|
586
|
+
axes: {
|
|
587
|
+
keys: number[];
|
|
588
|
+
control: string;
|
|
589
|
+
}[];
|
|
590
|
+
channels: ({
|
|
591
|
+
values: (number | number[])[];
|
|
592
|
+
id: string;
|
|
593
|
+
target: "bone";
|
|
594
|
+
prop: "x" | "y" | "rotation" | "scaleX" | "scaleY" | "shearX" | "shearY";
|
|
595
|
+
} | {
|
|
596
|
+
values: (number | number[])[];
|
|
597
|
+
id: string;
|
|
598
|
+
target: "slot";
|
|
599
|
+
prop: "alpha";
|
|
600
|
+
} | {
|
|
601
|
+
values: (number | number[])[];
|
|
602
|
+
id: string;
|
|
603
|
+
target: "deform";
|
|
604
|
+
prop: "vertices";
|
|
605
|
+
})[];
|
|
606
|
+
}[] | undefined;
|
|
523
607
|
} | undefined>;
|
|
524
608
|
export declare const shown: import("@preact/signals-core").ReadonlySignal<{
|
|
525
609
|
path: {
|
|
@@ -678,6 +762,18 @@ export declare const shown: import("@preact/signals-core").ReadonlySignal<{
|
|
|
678
762
|
duration: number;
|
|
679
763
|
loop: boolean;
|
|
680
764
|
tracks: ({
|
|
765
|
+
keys: {
|
|
766
|
+
t: number;
|
|
767
|
+
v: string | number | number[] | string[] | null;
|
|
768
|
+
ease: "linear" | "step" | "ease_in" | "ease_out" | "ease_in_out" | "minimum_jerk" | "back_out" | "elastic_out" | {
|
|
769
|
+
bezier: [number, number, number, number];
|
|
770
|
+
};
|
|
771
|
+
}[];
|
|
772
|
+
id: string;
|
|
773
|
+
target: "control";
|
|
774
|
+
prop: "value";
|
|
775
|
+
interpolation?: "segment" | "pchip" | undefined;
|
|
776
|
+
} | {
|
|
681
777
|
keys: {
|
|
682
778
|
t: number;
|
|
683
779
|
v: string | number | number[] | string[] | null;
|
|
@@ -772,9 +868,40 @@ export declare const shown: import("@preact/signals-core").ReadonlySignal<{
|
|
|
772
868
|
name: string;
|
|
773
869
|
} | undefined;
|
|
774
870
|
}[];
|
|
871
|
+
controls?: {
|
|
872
|
+
id: string;
|
|
873
|
+
min: number;
|
|
874
|
+
max: number;
|
|
875
|
+
default: number;
|
|
876
|
+
label?: string | undefined;
|
|
877
|
+
}[] | undefined;
|
|
878
|
+
controlBindings?: {
|
|
879
|
+
id: string;
|
|
880
|
+
axes: {
|
|
881
|
+
keys: number[];
|
|
882
|
+
control: string;
|
|
883
|
+
}[];
|
|
884
|
+
channels: ({
|
|
885
|
+
values: (number | number[])[];
|
|
886
|
+
id: string;
|
|
887
|
+
target: "bone";
|
|
888
|
+
prop: "x" | "y" | "rotation" | "scaleX" | "scaleY" | "shearX" | "shearY";
|
|
889
|
+
} | {
|
|
890
|
+
values: (number | number[])[];
|
|
891
|
+
id: string;
|
|
892
|
+
target: "slot";
|
|
893
|
+
prop: "alpha";
|
|
894
|
+
} | {
|
|
895
|
+
values: (number | number[])[];
|
|
896
|
+
id: string;
|
|
897
|
+
target: "deform";
|
|
898
|
+
prop: "vertices";
|
|
899
|
+
})[];
|
|
900
|
+
}[] | undefined;
|
|
775
901
|
} | undefined>;
|
|
776
902
|
export declare const version: import("@preact/signals-core").Signal<string>;
|
|
777
|
-
export declare const mode: import("@preact/signals-core").Signal<"setup" | "atlas" | "animate">;
|
|
903
|
+
export declare const mode: import("@preact/signals-core").Signal<"controls" | "setup" | "atlas" | "animate">;
|
|
904
|
+
export declare const controlValues: import("@preact/signals-core").Signal<Record<string, number>>;
|
|
778
905
|
export declare const animId: import("@preact/signals-core").Signal<string | undefined>;
|
|
779
906
|
export declare const time: import("@preact/signals-core").Signal<number>;
|
|
780
907
|
export declare const playing: import("@preact/signals-core").Signal<boolean>;
|
|
@@ -842,6 +969,18 @@ export declare const currentAnim: import("@preact/signals-core").ReadonlySignal<
|
|
|
842
969
|
duration: number;
|
|
843
970
|
loop: boolean;
|
|
844
971
|
tracks: ({
|
|
972
|
+
keys: {
|
|
973
|
+
t: number;
|
|
974
|
+
v: string | number | number[] | string[] | null;
|
|
975
|
+
ease: "linear" | "step" | "ease_in" | "ease_out" | "ease_in_out" | "minimum_jerk" | "back_out" | "elastic_out" | {
|
|
976
|
+
bezier: [number, number, number, number];
|
|
977
|
+
};
|
|
978
|
+
}[];
|
|
979
|
+
id: string;
|
|
980
|
+
target: "control";
|
|
981
|
+
prop: "value";
|
|
982
|
+
interpolation?: "segment" | "pchip" | undefined;
|
|
983
|
+
} | {
|
|
845
984
|
keys: {
|
|
846
985
|
t: number;
|
|
847
986
|
v: string | number | number[] | string[] | null;
|