asajs 4.1.11 → 4.1.13
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.
|
@@ -50,7 +50,6 @@ if (!fs.existsSync("asajs.config.js")) {
|
|
|
50
50
|
}
|
|
51
51
|
export const config = createRequire(import.meta.url)(path.resolve(process.cwd(), "asajs.config.js")).config;
|
|
52
52
|
export const debugMode = options["debug"] ?? false;
|
|
53
|
-
console.log(debugMode);
|
|
54
53
|
export const isBuildMode = options["build"] ?? config.compiler?.enabled ?? false;
|
|
55
54
|
export const isLinkMode = options["link"] ?? config.compiler?.autoImport ?? false;
|
|
56
55
|
export const unLinked = options["unlink"] ?? !(config.compiler?.autoImport ?? true);
|
|
@@ -167,7 +167,7 @@ export function RandomBindingString(length = 16, base = 32, force) {
|
|
|
167
167
|
return `#${StringID}_binding_${rndStrBind++}`;
|
|
168
168
|
}
|
|
169
169
|
let rndVarBind = 1;
|
|
170
|
-
export function
|
|
170
|
+
export function RandomVariableString(length = 16, base = 32, force) {
|
|
171
171
|
if (force || allowRandomStringName)
|
|
172
172
|
return `$${GenRandomString(length, base)}`;
|
|
173
173
|
else
|
|
@@ -213,7 +213,7 @@ export function vs(input) {
|
|
|
213
213
|
if (rndMap.has(input))
|
|
214
214
|
return `${rndMap.get(input)}${mode}`;
|
|
215
215
|
else {
|
|
216
|
-
const ret =
|
|
216
|
+
const ret = RandomVariableString();
|
|
217
217
|
rndMap.set(input, ret);
|
|
218
218
|
return `${ret}${mode}`;
|
|
219
219
|
}
|
|
@@ -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").Array2<string | number> | undefined;
|
|
19
|
+
to?: import("../types/properties/value.js").Array2<string | 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").Value<number> | undefined;
|
|
37
|
+
to?: import("../types/properties/value.js").Value<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>>;
|
|
@@ -19,7 +19,7 @@ export declare function GenRandomString(length: number, base?: number): string;
|
|
|
19
19
|
export declare function RandomNamespace(): string;
|
|
20
20
|
export declare function RandomString(length: number, base?: number, force?: boolean): string;
|
|
21
21
|
export declare function RandomBindingString(length?: number, base?: number, force?: boolean): Binding;
|
|
22
|
-
export declare function
|
|
22
|
+
export declare function RandomVariableString(length?: number, base?: number, force?: boolean): Variable;
|
|
23
23
|
export declare function s(input: string): string;
|
|
24
24
|
export declare function bs(input: Binding): Binding;
|
|
25
25
|
export declare function vs(input: Variable): Variable;
|