asajs 4.0.0-indev-1 → 4.0.0-indev-2
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/dist/js/compilers/Memory.js +1 -3
- package/dist/js/compilers/ui/buildcache.js +53 -0
- package/dist/js/compilers/ui/builddata.js +4 -0
- package/dist/js/compilers/ui/builder.js +22 -7
- package/dist/js/compilers/ui/installer.js +15 -1
- package/dist/js/compilers/ui/linker.js +34 -1
- package/dist/js/compilers/ui/manifest.js +22 -1
- package/dist/js/compilers/ui/prevdata.js +8 -0
- package/dist/js/components/AnimationKeyframe.js +1 -1
- package/dist/js/components/UI.js +21 -10
- package/dist/js/components/Utils.js +17 -3
- package/dist/js/index.js +1 -0
- package/dist/types/compilers/ui/buildcache.d.ts +8 -0
- package/dist/types/compilers/ui/builddata.d.ts +1 -0
- package/dist/types/compilers/ui/installer.d.ts +1 -1
- package/dist/types/compilers/ui/linker.d.ts +3 -0
- package/dist/types/compilers/ui/manifest.d.ts +1 -1
- package/dist/types/compilers/ui/prevdata.d.ts +3 -0
- package/dist/types/components/UI.d.ts +8 -2
- package/dist/types/components/Utils.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -22,9 +22,7 @@ export class Memory extends Class {
|
|
|
22
22
|
const data = new Map();
|
|
23
23
|
Memory.files.entries().forEach(([path, { elements, namespace }]) => {
|
|
24
24
|
const record = {};
|
|
25
|
-
elements.forEach(element =>
|
|
26
|
-
record[element.name] = element;
|
|
27
|
-
});
|
|
25
|
+
elements.forEach(element => (record[element.name] = element));
|
|
28
26
|
data.set(path, {
|
|
29
27
|
namespace,
|
|
30
28
|
...record,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import fs from "fs/promises";
|
|
2
|
+
export class BuildCache {
|
|
3
|
+
static queue = Promise.resolve();
|
|
4
|
+
static async enqueue(task) {
|
|
5
|
+
let result;
|
|
6
|
+
this.queue = this.queue.then(async () => {
|
|
7
|
+
result = await task();
|
|
8
|
+
});
|
|
9
|
+
return this.queue.then(() => result);
|
|
10
|
+
}
|
|
11
|
+
static async get(key) {
|
|
12
|
+
return this.enqueue(async () => {
|
|
13
|
+
try {
|
|
14
|
+
return await fs.readFile("build/cache.json", "utf-8").then(data => JSON.parse(data)[key] ?? null);
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
static async getWithDefault(key, defaultValue) {
|
|
22
|
+
const outVal = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
23
|
+
return this.get(key).then(value => value ?? outVal);
|
|
24
|
+
}
|
|
25
|
+
static async getWithSetDefault(key, defaultValue) {
|
|
26
|
+
const outVal = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
27
|
+
return this.enqueue(async () => {
|
|
28
|
+
let data = {};
|
|
29
|
+
try {
|
|
30
|
+
data = JSON.parse(await fs.readFile("build/cache.json", "utf-8"));
|
|
31
|
+
}
|
|
32
|
+
catch { }
|
|
33
|
+
if (key in data)
|
|
34
|
+
return data[key];
|
|
35
|
+
data[key] = outVal;
|
|
36
|
+
await fs.writeFile("build/cache.json", JSON.stringify(data), "utf-8");
|
|
37
|
+
return outVal;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
static async set(key, value) {
|
|
41
|
+
return this.enqueue(async () => {
|
|
42
|
+
try {
|
|
43
|
+
return fs.writeFile("build/cache.json", JSON.stringify({
|
|
44
|
+
...(await fs.readFile("build/cache.json", "utf-8").then(data => JSON.parse(data))),
|
|
45
|
+
[key]: value,
|
|
46
|
+
}), "utf-8");
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
return fs.writeFile("build/cache.json", JSON.stringify({ [key]: value }), "utf-8");
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
import { isBuildMode } from "../Configuration.js";
|
|
2
2
|
import { Memory } from "../Memory.js";
|
|
3
|
-
import { createBuildFolder } from "./linker.js";
|
|
3
|
+
import { createBuildFolder, linkToGame } from "./linker.js";
|
|
4
|
+
import { genManifest } from "./manifest.js";
|
|
4
5
|
import fs from "fs/promises";
|
|
5
6
|
async function buildUI() {
|
|
6
7
|
const build = Memory.build();
|
|
7
|
-
|
|
8
|
-
build.set("ui/ui_defs.json", {
|
|
8
|
+
build.set("ui/_ui_defs.json", {
|
|
9
9
|
ui_defs: Array.from(build.keys()),
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
build.set("build.json", {
|
|
12
|
+
files: Array.from(build.keys()),
|
|
13
|
+
});
|
|
14
|
+
const out = await Promise.all(build.entries().map(async ([file, value]) => {
|
|
12
15
|
const outFile = `build/build/${file}`;
|
|
13
16
|
await fs
|
|
14
17
|
.stat(outFile.split(/\\|\//g).slice(0, -1).join("/"))
|
|
15
18
|
.catch(async () => await fs.mkdir(outFile.split(/\\|\//g).slice(0, -1).join("/"), { recursive: true }));
|
|
16
|
-
await fs.writeFile(outFile, JSON.stringify(value),
|
|
17
|
-
|
|
19
|
+
await fs.writeFile(outFile, JSON.stringify(Object.fromEntries(Object.entries(value).map(([key, value]) => {
|
|
20
|
+
const extend = value.extend;
|
|
21
|
+
return [extend ? key + String(extend) : key, value];
|
|
22
|
+
}))), "utf-8");
|
|
23
|
+
build.delete(file);
|
|
24
|
+
return file;
|
|
18
25
|
}));
|
|
19
|
-
|
|
26
|
+
await Promise.all([
|
|
27
|
+
fs.writeFile("build/build/manifest.json", await genManifest(), "utf-8"),
|
|
28
|
+
fs.writeFile("build/build/.gitignore", [...out, "manifest.json"].join("\n"), "utf-8"),
|
|
29
|
+
fs
|
|
30
|
+
.stat("build/build/pack_icon.png")
|
|
31
|
+
.catch(() => fs.copyFile("node_modules/asajs/resources/pack_icon.png", "build/build/pack_icon.png")),
|
|
32
|
+
]);
|
|
33
|
+
return out.length;
|
|
20
34
|
}
|
|
21
35
|
if (isBuildMode) {
|
|
22
36
|
let first = true;
|
|
@@ -24,6 +38,7 @@ if (isBuildMode) {
|
|
|
24
38
|
if (first) {
|
|
25
39
|
await createBuildFolder();
|
|
26
40
|
await buildUI();
|
|
41
|
+
await linkToGame();
|
|
27
42
|
}
|
|
28
43
|
first = false;
|
|
29
44
|
});
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import os from "os";
|
|
2
|
+
import path from "path";
|
|
3
|
+
export function getGamedataPath() {
|
|
4
|
+
switch (os.platform()) {
|
|
5
|
+
case "win32": {
|
|
6
|
+
if (/Windows (10|11)/.test(os.version())) {
|
|
7
|
+
return path.join(process.env.APPDATA, "Minecraft Bedrock\\Users\\Shared\\games\\com.mojang");
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
default: {
|
|
11
|
+
console.error(`Your platform is not supported the install feature yet! \nYour OS version: ${os.version()}`);
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import fs from "fs/promises";
|
|
2
|
+
import { BuildCache } from "./buildcache.js";
|
|
3
|
+
import { RandomString } from "../../components/Utils.js";
|
|
4
|
+
import { prevData } from "./prevdata.js";
|
|
5
|
+
import path from "path";
|
|
6
|
+
import { getGamedataPath } from "./installer.js";
|
|
7
|
+
const HEX = Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
|
|
8
|
+
function genUUID() {
|
|
9
|
+
const b = Array.from({ length: 16 }, () => Math.floor(Math.random() * 256));
|
|
10
|
+
// version 4
|
|
11
|
+
b[6] = (b[6] & 0x0f) | 0x40;
|
|
12
|
+
// variant 10xx
|
|
13
|
+
b[8] = (b[8] & 0x3f) | 0x80;
|
|
14
|
+
return (`${HEX[b[0]]}${HEX[b[1]]}${HEX[b[2]]}${HEX[b[3]]}-` +
|
|
15
|
+
`${HEX[b[4]]}${HEX[b[5]]}-` +
|
|
16
|
+
`${HEX[b[6]]}${HEX[b[7]]}-` +
|
|
17
|
+
`${HEX[b[8]]}${HEX[b[9]]}-` +
|
|
18
|
+
`${HEX[b[10]]}${HEX[b[11]]}${HEX[b[12]]}${HEX[b[13]]}${HEX[b[14]]}${HEX[b[15]]}`);
|
|
19
|
+
}
|
|
2
20
|
export async function clearBuild() {
|
|
3
|
-
await fs.rm(
|
|
21
|
+
await Promise.all(prevData.files.map(file => fs.rm(`build/build/${file}`).catch(() => null)));
|
|
4
22
|
}
|
|
5
23
|
export async function createBuildFolder() {
|
|
6
24
|
return fs
|
|
@@ -8,3 +26,18 @@ export async function createBuildFolder() {
|
|
|
8
26
|
.catch(() => fs.mkdir("build"))
|
|
9
27
|
.then(() => clearBuild());
|
|
10
28
|
}
|
|
29
|
+
export async function getBuildFolderName() {
|
|
30
|
+
return await BuildCache.getWithSetDefault("build-key", () => RandomString(16));
|
|
31
|
+
}
|
|
32
|
+
export async function linkToGame() {
|
|
33
|
+
const sourcePath = path.resolve("build/build");
|
|
34
|
+
const targetPath = path.resolve(getGamedataPath(), "development_resource_packs", await getBuildFolderName());
|
|
35
|
+
await fs.stat(targetPath).catch(async () => {
|
|
36
|
+
await fs.symlink(sourcePath, targetPath, "junction");
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export async function getUUID() {
|
|
40
|
+
return await BuildCache.getWithSetDefault("uuid", () => {
|
|
41
|
+
return [genUUID(), genUUID()];
|
|
42
|
+
});
|
|
43
|
+
}
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import { getUUID } from "./linker.js";
|
|
2
|
+
export async function genManifest() {
|
|
3
|
+
const [uuid1, uuid2] = await getUUID();
|
|
4
|
+
return JSON.stringify({
|
|
5
|
+
format_version: 2,
|
|
6
|
+
header: {
|
|
7
|
+
name: "AsaJS UI",
|
|
8
|
+
description: "A framework for creating UIs for AsaJS.",
|
|
9
|
+
uuid: uuid1,
|
|
10
|
+
version: [4, 0, 0],
|
|
11
|
+
min_engine_version: [1, 21, 132],
|
|
12
|
+
},
|
|
13
|
+
modules: [
|
|
14
|
+
{
|
|
15
|
+
description: "This resource pack generate by AsaJS.",
|
|
16
|
+
type: "resources",
|
|
17
|
+
uuid: uuid2,
|
|
18
|
+
version: [4, 0, 0],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
});
|
|
22
|
+
}
|
|
@@ -25,7 +25,7 @@ export class AnimationKeyframe extends Class {
|
|
|
25
25
|
}
|
|
26
26
|
this.name = name || RandomString(16);
|
|
27
27
|
this.namespace = namespace || RandomNamespace();
|
|
28
|
-
this.path = path || `@/${this.namespace}`;
|
|
28
|
+
this.path = path || `@/${this.namespace}.json`;
|
|
29
29
|
Memory.add(this);
|
|
30
30
|
}
|
|
31
31
|
setNext(keyframe) {
|
package/dist/js/components/UI.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Memory } from "../compilers/Memory.js";
|
|
|
3
3
|
import { ArrayName } from "../types/enums/ArrayName.js";
|
|
4
4
|
import { Operation } from "../types/enums/Operation.js";
|
|
5
5
|
import { Class } from "./Class.js";
|
|
6
|
-
import {
|
|
6
|
+
import { RandomString, ResolveBinding } from "./Utils.js";
|
|
7
7
|
import { RandomNamespace } from "../compilers/Random.js";
|
|
8
8
|
import util from "node:util";
|
|
9
9
|
export class UI extends Class {
|
|
@@ -34,7 +34,7 @@ export class UI extends Class {
|
|
|
34
34
|
this.name = name?.match(/^(\w|\/)+/)?.[0] || RandomString(16);
|
|
35
35
|
this.namespace = namespace || RandomNamespace();
|
|
36
36
|
if (!path)
|
|
37
|
-
this.path =
|
|
37
|
+
this.path = `asajs/${this.namespace}.json`;
|
|
38
38
|
else
|
|
39
39
|
this.path = path;
|
|
40
40
|
this.extendable = this.name.search("/") === -1;
|
|
@@ -105,8 +105,17 @@ export class UI extends Class {
|
|
|
105
105
|
* @param namespace
|
|
106
106
|
* @returns
|
|
107
107
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
createExtends(properties, name, namespace) {
|
|
109
|
+
if (!this.extendable)
|
|
110
|
+
throw new Error("This element is not extendable");
|
|
111
|
+
const ui = new UI(undefined, name, namespace);
|
|
112
|
+
if (properties)
|
|
113
|
+
ui.setProperties(properties);
|
|
114
|
+
// @ts-ignore
|
|
115
|
+
ui.extend = this;
|
|
116
|
+
// @ts-ignore
|
|
117
|
+
ui.extendType = this.type || this.extendType;
|
|
118
|
+
return ui;
|
|
110
119
|
}
|
|
111
120
|
toString() {
|
|
112
121
|
return `@${this.namespace}.${this.name}`;
|
|
@@ -199,9 +208,11 @@ export class ModifyUI extends UI {
|
|
|
199
208
|
return this.addModifications({
|
|
200
209
|
array_name: ArrayName.CONTROLS,
|
|
201
210
|
operation: Operation.INSERT_FRONT,
|
|
202
|
-
value:
|
|
203
|
-
|
|
204
|
-
|
|
211
|
+
value: [
|
|
212
|
+
{
|
|
213
|
+
[`${name}${child}`]: properties || {},
|
|
214
|
+
},
|
|
215
|
+
],
|
|
205
216
|
});
|
|
206
217
|
}
|
|
207
218
|
insertAfterChild(where, child, properties, name) {
|
|
@@ -233,7 +244,7 @@ export class ModifyUI extends UI {
|
|
|
233
244
|
});
|
|
234
245
|
}
|
|
235
246
|
insertChild(child, properties) {
|
|
236
|
-
return this.
|
|
247
|
+
return this.insertFrontChild(child, properties);
|
|
237
248
|
}
|
|
238
249
|
replaceChild(where, child, properties) {
|
|
239
250
|
return this.addModifications({
|
|
@@ -270,7 +281,7 @@ export class ModifyUI extends UI {
|
|
|
270
281
|
});
|
|
271
282
|
}
|
|
272
283
|
insertBindings(...bindings) {
|
|
273
|
-
return this.
|
|
284
|
+
return this.insertFrontBindings(...bindings);
|
|
274
285
|
}
|
|
275
286
|
/**
|
|
276
287
|
* Remove a binding of this element
|
|
@@ -298,7 +309,7 @@ export class ModifyUI extends UI {
|
|
|
298
309
|
});
|
|
299
310
|
}
|
|
300
311
|
insertButtonMappings(...buttonMappings) {
|
|
301
|
-
return this.
|
|
312
|
+
return this.insertFrontButtonMappings(...buttonMappings);
|
|
302
313
|
}
|
|
303
314
|
/**
|
|
304
315
|
* Remove a button mapping of this element
|
|
@@ -178,9 +178,8 @@ export function SliderBox(properties, namespace, name) {
|
|
|
178
178
|
return new UI(Type.SLIDER_BOX, name, namespace).setProperties(properties || {});
|
|
179
179
|
}
|
|
180
180
|
export function ExtendsOf(element, properties, namespace, name) {
|
|
181
|
-
if (!element.extendable)
|
|
181
|
+
if (!element.extendable)
|
|
182
182
|
throw new Error("Cannot extend a UI that cannot be extended");
|
|
183
|
-
}
|
|
184
183
|
const ui = new UI(undefined, name, namespace);
|
|
185
184
|
if (properties)
|
|
186
185
|
ui.setProperties(properties);
|
|
@@ -190,6 +189,21 @@ export function ExtendsOf(element, properties, namespace, name) {
|
|
|
190
189
|
ui.extendType = element.type || element.extendType;
|
|
191
190
|
return ui;
|
|
192
191
|
}
|
|
192
|
+
export function VanillaExtendsOf(originNamespace, originName,
|
|
193
|
+
// @ts-ignore
|
|
194
|
+
properties, namespace, name) {
|
|
195
|
+
// @ts-ignore
|
|
196
|
+
const ui = new UI(undefined, name, namespace);
|
|
197
|
+
if (properties)
|
|
198
|
+
ui.setProperties(properties);
|
|
199
|
+
// @ts-ignore
|
|
200
|
+
ui.extend = {
|
|
201
|
+
name: originName,
|
|
202
|
+
namespace: originNamespace,
|
|
203
|
+
toString: () => `@${originNamespace}.${originName}`,
|
|
204
|
+
};
|
|
205
|
+
return ui;
|
|
206
|
+
}
|
|
193
207
|
// Quick Keyframe
|
|
194
208
|
export function KeyframeOffset(properties, namespace, name) {
|
|
195
209
|
return new AnimationKeyframe(AnimType.OFFSET, properties || {}, name, namespace);
|
|
@@ -236,7 +250,7 @@ export function AnimationColor(...keyframes) {
|
|
|
236
250
|
export function AnimationAlpha(...keyframes) {
|
|
237
251
|
return new Animation(AnimType.ALPHA, ...keyframes);
|
|
238
252
|
}
|
|
239
|
-
// Animation
|
|
253
|
+
// Animation ExtendsOf
|
|
240
254
|
export function AnimationExtendsOf(animation, properties) {
|
|
241
255
|
const anim = new AnimationKeyframe(animation.type, properties || {});
|
|
242
256
|
// @ts-ignore
|
package/dist/js/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./compilers/PreCompile.js";
|
|
2
2
|
import "./compilers/ui/builder.js";
|
|
3
|
+
import "./compilers/ui/installer.js";
|
|
3
4
|
export { Animation } from "./components/Animation.js";
|
|
4
5
|
export { AnimationKeyframe } from "./components/AnimationKeyframe.js";
|
|
5
6
|
export { ModifyUI, UI } from "./components/UI.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class BuildCache {
|
|
2
|
+
private static queue;
|
|
3
|
+
private static enqueue;
|
|
4
|
+
static get<T = unknown>(key: string): Promise<T | null>;
|
|
5
|
+
static getWithDefault<T = unknown>(key: string, defaultValue: (() => T) | T): Promise<T>;
|
|
6
|
+
static getWithSetDefault<T>(key: string, defaultValue: (() => T) | T): Promise<T>;
|
|
7
|
+
static set(key: string, value: unknown): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function getGamedataPath(): string;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export declare function clearBuild(): Promise<void>;
|
|
2
2
|
export declare function createBuildFolder(): Promise<void>;
|
|
3
|
+
export declare function getBuildFolderName(): Promise<string>;
|
|
4
|
+
export declare function linkToGame(): Promise<void>;
|
|
5
|
+
export declare function getUUID(): Promise<[string, string]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function genManifest(): Promise<string>;
|
|
@@ -7,12 +7,17 @@ import { Animation } from "./Animation.js";
|
|
|
7
7
|
import { AnimationKeyframe } from "./AnimationKeyframe.js";
|
|
8
8
|
import { Class } from "./Class.js";
|
|
9
9
|
import util from "node:util";
|
|
10
|
+
interface ExtendUI {
|
|
11
|
+
name: string;
|
|
12
|
+
namespace: string;
|
|
13
|
+
toString(): string;
|
|
14
|
+
}
|
|
10
15
|
export declare class UI<T extends Type, K extends Renderer | null = null> extends Class {
|
|
11
16
|
type?: T | undefined;
|
|
12
17
|
readonly path: string;
|
|
13
18
|
readonly name: string;
|
|
14
19
|
readonly namespace: string;
|
|
15
|
-
readonly extend?: UI<Type, Renderer | null
|
|
20
|
+
readonly extend?: UI<Type, Renderer | null> | ExtendUI;
|
|
16
21
|
readonly extendable: boolean;
|
|
17
22
|
protected readonly controls: Map<string, [UI<Type, Renderer | null>, Properties<Type, Renderer | null>]>;
|
|
18
23
|
protected readonly bindings: BindingItem[];
|
|
@@ -62,7 +67,7 @@ export declare class UI<T extends Type, K extends Renderer | null = null> extend
|
|
|
62
67
|
* @param namespace
|
|
63
68
|
* @returns
|
|
64
69
|
*/
|
|
65
|
-
|
|
70
|
+
createExtends(properties?: Properties<T, K>, name?: string, namespace?: string): UI<T, K>;
|
|
66
71
|
protected toString(): string;
|
|
67
72
|
protected toJsonUI(): any;
|
|
68
73
|
protected toJSON(): any;
|
|
@@ -127,3 +132,4 @@ export declare class ModifyUI<T extends Type = Type.PANEL, S extends string = st
|
|
|
127
132
|
protected toJSON(): any;
|
|
128
133
|
protected [util.inspect.custom]($: any, opts: any): string;
|
|
129
134
|
}
|
|
135
|
+
export {};
|
|
@@ -49,6 +49,7 @@ export declare function ScrollView(properties?: ScrollView, namespace?: string,
|
|
|
49
49
|
export declare function Slider(properties?: Slider, namespace?: string, name?: string): UI<Type.SLIDER, null>;
|
|
50
50
|
export declare function SliderBox(properties?: SliderBox, namespace?: string, name?: string): UI<Type.SLIDER_BOX, null>;
|
|
51
51
|
export declare function ExtendsOf<T extends Type, K extends Renderer | null>(element: UI<T, K>, properties?: Properties<T, K>, namespace?: string, name?: string): typeof element;
|
|
52
|
+
export declare function VanillaExtendsOf<T extends Namespace, K extends Exclude<Element<T>, `${string}/${string}`>>(originNamespace: T, originName: K, properties?: Properties<VanillaType<T, K>, null>, namespace?: string, name?: string): UI<VanillaType<T, K>, null>;
|
|
52
53
|
export declare function KeyframeOffset(properties?: KeyframeAnimationProperties<AnimType.OFFSET>, namespace?: string, name?: string): AnimationKeyframe<AnimType.OFFSET>;
|
|
53
54
|
export declare function KeyframeSize(properties?: KeyframeAnimationProperties<AnimType.SIZE>, namespace?: string, name?: string): AnimationKeyframe<AnimType.SIZE>;
|
|
54
55
|
export declare function KeyframeUV(properties?: KeyframeAnimationProperties<AnimType.UV>, namespace?: string, name?: string): AnimationKeyframe<AnimType.UV>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./compilers/PreCompile.js";
|
|
2
2
|
import "./compilers/ui/builder.js";
|
|
3
|
+
import "./compilers/ui/installer.js";
|
|
3
4
|
export { Animation } from "./components/Animation.js";
|
|
4
5
|
export { AnimationKeyframe } from "./components/AnimationKeyframe.js";
|
|
5
6
|
export { ModifyUI, UI } from "./components/UI.js";
|