archgine 1.0.41 → 1.0.42
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/lib/environment.worker.js +1 -1
- package/lib/extras/interfaces.d.ts +1 -0
- package/lib/extras/svg-app.d.ts +1 -0
- package/lib/index.mjs +347 -343
- package/lib/index.umd.js +17 -17
- package/lib/renderer.worker.js +1 -1
- package/package.json +1 -1
|
@@ -3997,7 +3997,7 @@ Fu.__DOMHandler = Eu;
|
|
|
3997
3997
|
Fu.normalizeLineEndings = Le;
|
|
3998
3998
|
Fu.DOMParser = Ie;
|
|
3999
3999
|
var gr = Fu.DOMParser;
|
|
4000
|
-
const Er = "1.0.
|
|
4000
|
+
const Er = "1.0.42";
|
|
4001
4001
|
function vr() {
|
|
4002
4002
|
return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
|
|
4003
4003
|
}
|
|
@@ -8,6 +8,7 @@ export interface IApp {
|
|
|
8
8
|
resize(): void;
|
|
9
9
|
start(): void;
|
|
10
10
|
load(url: string, layers?: string[], lv?: number, skeletons?: string[]): any;
|
|
11
|
+
loadByString(str: string, layers?: string[], lv?: number): ITree[];
|
|
11
12
|
setSkeletons(skeletons: string[]): void;
|
|
12
13
|
getLayers(lv?: number): any[] | undefined;
|
|
13
14
|
getAssetIdsByType(assetType: string): string[] | undefined;
|
package/lib/extras/svg-app.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export declare class SvgApp<Config extends ISvgAppConfig> extends EventDispatche
|
|
|
45
45
|
/** @description application's lifeCycle */
|
|
46
46
|
running(time: DOMHighResTimeStamp): void;
|
|
47
47
|
load(url: string, layers?: string[], lv?: number, skeletons?: string[]): Promise<ITree[]>;
|
|
48
|
+
loadByString(str: string, layers?: string[], lv?: number): ITree[];
|
|
48
49
|
setSkeletons(skeletons: string[]): void;
|
|
49
50
|
getLayers(lv?: number): ITree[] | undefined;
|
|
50
51
|
updateLayersVisibility(ids: string[], visible?: boolean): void;
|