archgine 1.0.64 → 1.0.67
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 +2 -0
- package/lib/extras/svg-app.d.ts +2 -0
- package/lib/extras/svg-chef.d.ts +1 -0
- package/lib/index.mjs +564 -537
- package/lib/index.umd.js +18 -18
- package/lib/renderer.worker.js +1 -1
- package/lib/scenes/svg-scene.d.ts +2 -0
- package/package.json +1 -1
|
@@ -4010,7 +4010,7 @@ Fu.__DOMHandler = Eu;
|
|
|
4010
4010
|
Fu.normalizeLineEndings = Le;
|
|
4011
4011
|
Fu.DOMParser = Ie;
|
|
4012
4012
|
var gr = Fu.DOMParser;
|
|
4013
|
-
const Er = "1.0.
|
|
4013
|
+
const Er = "1.0.67";
|
|
4014
4014
|
function vr() {
|
|
4015
4015
|
return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
|
|
4016
4016
|
}
|
|
@@ -14,6 +14,7 @@ export interface IApp {
|
|
|
14
14
|
getLayers(lv?: number): any[] | undefined;
|
|
15
15
|
getAssetIdsByType(assetType: string): string[] | undefined;
|
|
16
16
|
setAssetType(assetType: string, showLayers?: string[]): void;
|
|
17
|
+
getLayerVisible(id: string): boolean | undefined;
|
|
17
18
|
updateLayersVisibility(ids: string[], visible?: boolean): void;
|
|
18
19
|
selectByIds(ids: string | string[]): void;
|
|
19
20
|
clearSelectedByIds(ids: string | string[]): void;
|
|
@@ -36,6 +37,7 @@ export interface IApp {
|
|
|
36
37
|
zoomIn(): void;
|
|
37
38
|
zoomOut(): void;
|
|
38
39
|
focusAt(position: Vector2, padding?: number): void;
|
|
40
|
+
focusAtIds(ids: string | string[], padding?: number): Promise<void>;
|
|
39
41
|
focusAtById(id: string, padding?: number): Promise<void>;
|
|
40
42
|
focusAtDummy(id: string, padding?: number): Promise<void>;
|
|
41
43
|
showAssetsLabel(assetType: string, id: string, html?: string): void;
|
package/lib/extras/svg-app.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare class SvgApp<Config extends ISvgAppConfig> extends EventDispatche
|
|
|
51
51
|
loadByString(str: string, layers?: string[], lv?: number): ITree[];
|
|
52
52
|
setSkeletons(skeletons: string[]): void;
|
|
53
53
|
getLayers(lv?: number): ITree[] | undefined;
|
|
54
|
+
getLayerVisible(id: string): boolean | undefined;
|
|
54
55
|
updateLayersVisibility(ids: string[], visible?: boolean): void;
|
|
55
56
|
selectByIds(ids: string | string[]): void;
|
|
56
57
|
clearSelectedByIds(ids: string | string[]): void;
|
|
@@ -77,6 +78,7 @@ export declare class SvgApp<Config extends ISvgAppConfig> extends EventDispatche
|
|
|
77
78
|
zoomIn(): void;
|
|
78
79
|
zoomOut(): void;
|
|
79
80
|
focusAt(position: Vector2, padding?: number): void;
|
|
81
|
+
focusAtIds(ids: string | string[], padding?: number): Promise<void>;
|
|
80
82
|
focusAtById(id: string, padding?: number): Promise<void>;
|
|
81
83
|
focusAtDummy(id: string, padding?: number): Promise<void>;
|
|
82
84
|
showAssetsLabel(assetType: string, id: string, html?: string): void;
|
package/lib/extras/svg-chef.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare class SvgChef {
|
|
|
20
20
|
_getSvgLayer(el: HTMLElement, lv?: number, lvi?: number, out?: ITree[]): ITree[];
|
|
21
21
|
getElementsMap(el: Element, out?: Record<string, Element>): Record<string, Element>;
|
|
22
22
|
computeBoundingBoxMap(): Record<string, Box2>;
|
|
23
|
+
getLayerVisible(id: string): boolean | undefined;
|
|
23
24
|
updateLayersVisibility(ids: string[], visible?: boolean): void;
|
|
24
25
|
_updateAllLayersVisibility(visible?: boolean): void;
|
|
25
26
|
_updateLayersVisibility(o: HTMLElement, visible?: boolean, up?: boolean, uc?: boolean): void;
|