asajs 4.0.4 → 4.0.5-indev
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/config.d.ts +1 -0
- package/dist/js/compilers/FormatProperties.js +5 -0
- package/dist/js/compilers/bindings/Binary.js +2 -2
- package/dist/js/compilers/bindings/Function.js +73 -24
- package/dist/js/compilers/bindings/Parser.js +2 -2
- package/dist/js/components/Utils.js +2 -2
- package/dist/js/types/vanilla/paths.js +147 -108
- package/dist/types/compilers/bindings/Function.d.ts +21 -7
- package/dist/types/components/AnimationKeyframe.d.ts +4 -4
- package/dist/types/components/Utils.d.ts +1 -1
- package/dist/types/types/properties/element/Control.d.ts +2 -1
- package/dist/types/types/vanilla/intellisense.d.ts +521 -365
- package/dist/types/types/vanilla/paths.d.ts +147 -108
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Expression, GenBinding } from "./types.js";
|
|
2
|
-
type
|
|
2
|
+
type CallbackRet = {
|
|
3
3
|
genBindings?: GenBinding[];
|
|
4
4
|
value: Expression;
|
|
5
5
|
};
|
|
6
|
+
type Callback = (...args: Expression[]) => CallbackRet;
|
|
6
7
|
export declare const FunctionMap: Map<string, Callback>;
|
|
7
8
|
export declare const defaultFunctions: {
|
|
8
9
|
/**
|
|
@@ -41,13 +42,25 @@ export declare const defaultFunctions: {
|
|
|
41
42
|
}[];
|
|
42
43
|
value: `#${string}`;
|
|
43
44
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
sqrt: (input: string) => {
|
|
46
|
+
genBindings: {
|
|
47
|
+
source: string;
|
|
48
|
+
target: `#${string}`;
|
|
49
|
+
}[];
|
|
50
|
+
value: `#${string}`;
|
|
51
|
+
};
|
|
52
|
+
cache_value: (cache_binding: string, override_binding: string, is_read: string) => {
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
55
|
+
vector_length: (x: string, y: string, z: string) => {
|
|
50
56
|
genBindings: GenBinding[];
|
|
57
|
+
value: string;
|
|
58
|
+
};
|
|
59
|
+
strlen: (str: string) => {
|
|
60
|
+
genBindings: {
|
|
61
|
+
source: string;
|
|
62
|
+
target: `#${string}`;
|
|
63
|
+
}[];
|
|
51
64
|
value: `#${string}`;
|
|
52
65
|
};
|
|
53
66
|
/**
|
|
@@ -56,6 +69,7 @@ export declare const defaultFunctions: {
|
|
|
56
69
|
* @returns
|
|
57
70
|
*/
|
|
58
71
|
translatable: (key: string) => {
|
|
72
|
+
genBindings: never[];
|
|
59
73
|
value: string;
|
|
60
74
|
};
|
|
61
75
|
/**
|
|
@@ -15,8 +15,8 @@ export declare class AnimationKeyframe<T extends AnimType> extends Class {
|
|
|
15
15
|
clearNext(): this;
|
|
16
16
|
protected toJsonUI(): KeyframeAnimationProperties<AnimType>;
|
|
17
17
|
protected toJSON(): (Partial<import("../types/properties/element/Animation.js").DurationAnimation> & import("../types/properties/element/Animation.js").KeyframeAnimationPropertiesItem) | (Partial<import("../types/properties/element/Animation.js").AsepriteFlipBookAnimation> & import("../types/properties/element/Animation.js").KeyframeAnimationPropertiesItem) | {
|
|
18
|
-
from?: import("../types/properties/value.js").
|
|
19
|
-
to?: import("../types/properties/value.js").
|
|
18
|
+
from?: import("../types/properties/value.js").Value<number> | undefined;
|
|
19
|
+
to?: import("../types/properties/value.js").Value<number> | undefined;
|
|
20
20
|
duration?: import("../types/properties/value.js").Value<number> | undefined;
|
|
21
21
|
easing?: import("../types/properties/value.js").Value<string | import("../index.js").Easing> | undefined;
|
|
22
22
|
next?: import("../types/properties/value.js").Value<string | AnimationKeyframe<AnimType> | Animation<AnimType>>;
|
|
@@ -33,8 +33,8 @@ export declare class AnimationKeyframe<T extends AnimType> extends Class {
|
|
|
33
33
|
wait_until_rendered_to_play?: import("../types/properties/value.js").Value<boolean>;
|
|
34
34
|
anim_type: T;
|
|
35
35
|
} | {
|
|
36
|
-
from?: import("../types/properties/value.js").
|
|
37
|
-
to?: import("../types/properties/value.js").
|
|
36
|
+
from?: import("../types/properties/value.js").Array2<string | number> | undefined;
|
|
37
|
+
to?: import("../types/properties/value.js").Array2<string | number> | undefined;
|
|
38
38
|
duration?: import("../types/properties/value.js").Value<number> | undefined;
|
|
39
39
|
easing?: import("../types/properties/value.js").Value<string | import("../index.js").Easing> | undefined;
|
|
40
40
|
next?: import("../types/properties/value.js").Value<string | AnimationKeyframe<AnimType> | Animation<AnimType>>;
|
|
@@ -13,7 +13,7 @@ type CompileBinding = `[${string}]`;
|
|
|
13
13
|
export declare function Color(hex: string | number): Array3<number>;
|
|
14
14
|
export declare function ResolveBinding(cache: Map<string, unknown>, ...bindings: BindingItem[]): BindingItem[];
|
|
15
15
|
export declare function RandomString(length: number, base?: number): string;
|
|
16
|
-
export declare function RandomBindingString(length
|
|
16
|
+
export declare function RandomBindingString(length?: number, base?: number): Binding;
|
|
17
17
|
export declare function GetItemByAuxID(auxID: number): string | undefined;
|
|
18
18
|
/**
|
|
19
19
|
* Return format string binding input
|
|
@@ -16,7 +16,8 @@ export interface Control {
|
|
|
16
16
|
contained?: Value<boolean>;
|
|
17
17
|
draggable?: Value<boolean>;
|
|
18
18
|
follows_cursor?: Value<boolean>;
|
|
19
|
-
|
|
19
|
+
property_bag?: Value<PropertyBags>;
|
|
20
|
+
property_bag_for_children?: Value<PropertyBags>;
|
|
20
21
|
[key: Binding]: Value<any>;
|
|
21
22
|
[key: Variable]: Value<any>;
|
|
22
23
|
}
|