archgine 1.0.32 → 1.0.34

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.
@@ -3999,7 +3999,7 @@ Ms.__DOMHandler = yi;
3999
3999
  Ms.normalizeLineEndings = Vc;
4000
4000
  Ms.DOMParser = Gc;
4001
4001
  var Uy = Ms.DOMParser;
4002
- const qy = "1.0.32";
4002
+ const qy = "1.0.34";
4003
4003
  function ky() {
4004
4004
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
4005
4005
  }
@@ -50,9 +50,9 @@ export declare class App<Config extends IAppConfig> extends Application<Config>
50
50
  setSkeletons(skeletons: string[]): void;
51
51
  socialDistanceEnableChanged(v: boolean): void;
52
52
  fullscreen(): void;
53
- saveCameraPosition(): void;
54
- restoreCameraPosition(): void;
55
- clearCameraPosition(): void;
53
+ saveCameraPosition(id?: string): void;
54
+ restoreCameraPosition(id?: string): void;
55
+ clearCameraPosition(id?: string): void;
56
56
  zoomIn(): void;
57
57
  zoomOut(): void;
58
58
  focusAt(position: Vector2, padding?: number): void;
@@ -23,6 +23,8 @@ export declare class DummyPoint extends EventDispatcher implements IDummy {
23
23
  initDom(): void;
24
24
  initLabel(): void;
25
25
  setActive(v?: boolean): this;
26
+ showLabel(): void;
27
+ hideLabel(): void;
26
28
  setType(type: TAE_TYPES | undefined): this;
27
29
  update(v: IVector2, isStrict?: boolean): void;
28
30
  }
@@ -23,6 +23,8 @@ export declare class DummyRect extends EventDispatcher implements IDummy {
23
23
  initLabel(): void;
24
24
  setText(txt?: string): this;
25
25
  setActive(v?: boolean): this;
26
+ showLabel(): void;
27
+ hideLabel(): void;
26
28
  setType(type: TAE_TYPES | undefined): this;
27
29
  update(v: IVector2, isStrict?: boolean): void;
28
30
  }
@@ -1,10 +1,8 @@
1
1
  import { default as EventDispatcher } from '../core/event-dispatcher';
2
2
  import { default as Box2 } from '../math/box2';
3
- import { IVector2 } from '../interfaces';
4
3
  export declare class DynamicDrawRect extends EventDispatcher {
5
4
  readonly name: string;
6
5
  container: HTMLElement;
7
- offset: IVector2;
8
6
  el: HTMLElement;
9
7
  constructor(container?: HTMLElement);
10
8
  destroy(): void;
@@ -26,9 +26,9 @@ export interface IApp {
26
26
  setAssetLabels(id: string, labels?: string[]): void;
27
27
  clearAssetLabels(): void;
28
28
  fullscreen(): void;
29
- saveCameraPosition(): void;
30
- restoreCameraPosition(): void;
31
- clearCameraPosition(): void;
29
+ saveCameraPosition(id?: string): void;
30
+ restoreCameraPosition(id?: string): void;
31
+ clearCameraPosition(id?: string): void;
32
32
  zoomIn(): void;
33
33
  zoomOut(): void;
34
34
  focusAt(position: Vector2, padding?: number): void;
@@ -86,6 +86,8 @@ export interface IDummy {
86
86
  get isMounted(): boolean;
87
87
  setText(txt?: string): IDummy;
88
88
  setActive(v?: boolean): IDummy;
89
+ showLabel(): void;
90
+ hideLabel(): void;
89
91
  setType(type: TAE_TYPES | undefined): IDummy;
90
92
  update(v: IVector2, isStrict?: boolean): void;
91
93
  }
@@ -8,7 +8,6 @@ export declare class Label implements ILabel {
8
8
  readonly id: string;
9
9
  el: HTMLElement;
10
10
  position: Vector2;
11
- offset: Vector2;
12
11
  constructor(container: HTMLElement, text: string);
13
12
  get isMounted(): boolean;
14
13
  get isShown(): boolean;
@@ -79,9 +79,9 @@ export declare class SvgApp<Config extends ISvgAppConfig> extends EventDispatche
79
79
  setAssetLabels(id: string, labels?: string[]): void;
80
80
  clearAssetLabels(): void;
81
81
  fullscreen(): void;
82
- saveCameraPosition(): void;
83
- restoreCameraPosition(): void;
84
- clearCameraPosition(): void;
82
+ saveCameraPosition(id?: string): void;
83
+ restoreCameraPosition(id?: string): void;
84
+ clearCameraPosition(id?: string): void;
85
85
  zoomIn(): void;
86
86
  zoomOut(): void;
87
87
  focusAt(position: Vector2, padding?: number): void;
@@ -2,12 +2,11 @@ import { default as EventDispatcher } from '../core/event-dispatcher';
2
2
  import { default as Matrix3 } from '../math/matrix3';
3
3
  import { IDummy, IDummyVo } from './interfaces';
4
4
  import { SvgScene } from '../scenes/svg-scene';
5
- import { IEvent, IMatrix3, IVector2 } from '../interfaces';
5
+ import { IEvent, IMatrix3 } from '../interfaces';
6
6
  import { OrbitController } from '../controls/orbit-controller';
7
7
  export declare class SvgDummies extends EventDispatcher {
8
8
  readonly name: string;
9
9
  container: HTMLElement;
10
- offset: IVector2;
11
10
  controller: OrbitController;
12
11
  scene?: SvgScene<any>;
13
12
  viewMatrix: Matrix3;
@@ -47,7 +47,7 @@ export declare class SvgView<Config extends ISvgViewConfig> extends EventDispatc
47
47
  showAssetsLabel(assetType?: string, id?: string, html?: string): void;
48
48
  hideAssetsLabel(): Promise<void>;
49
49
  bindScene(scene: SvgScene<Config>): void;
50
- setByBox(box: Box2): void;
50
+ setByBox(box: Box2, animate?: boolean): void;
51
51
  zoomIn(): void;
52
52
  zoomOut(): void;
53
53
  zoomToSelectEnableChanged(v: boolean): void;
@@ -59,9 +59,9 @@ export declare class SvgView<Config extends ISvgViewConfig> extends EventDispatc
59
59
  resetCameraByBoundingBox(box: IBox2, animate?: boolean): Promise<void>;
60
60
  animateCamera(from: ICamera2Position, to: ICamera2Position): Promise<void>;
61
61
  fullscreen(): void;
62
- saveCameraPosition(): void;
63
- restoreCameraPosition(): void;
64
- clearCameraPosition(): void;
62
+ saveCameraPosition(id?: string): void;
63
+ restoreCameraPosition(id?: string): void;
64
+ clearCameraPosition(id?: string): void;
65
65
  bindControllerEvents(): void;
66
66
  unbindControllerEvents(): void;
67
67
  handlePanStart(e: IEvent): void;