archgine 1.0.21 → 1.0.23

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 @@ Ss.__DOMHandler = mi;
3999
3999
  Ss.normalizeLineEndings = Hc;
4000
4000
  Ss.DOMParser = Vc;
4001
4001
  var Fy = Ss.DOMParser;
4002
- const Uy = "1.0.21";
4002
+ const Uy = "1.0.23";
4003
4003
  function qy() {
4004
4004
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
4005
4005
  }
@@ -2,6 +2,7 @@ import { Application, IApplicationConfig } from '../applications/application';
2
2
  import { default as Scene } from '../scenes/scene';
3
3
  import { EffectComposer } from '../effects/effect-composer';
4
4
  import { Adapter } from './adapter';
5
+ import { default as Box2 } from '../math/box2';
5
6
  import { TLayer } from './chef';
6
7
  import { IApp } from './interfaces';
7
8
  export interface IAppConfig extends IApplicationConfig {
@@ -54,4 +55,5 @@ export declare class App<Config extends IAppConfig> extends Application<Config>
54
55
  zoomToSelectEnableChanged(v: boolean): void;
55
56
  setAssetType(assetType: string, conflictLayers?: string[]): void;
56
57
  getAssetIdsByType(assetType: string): string[];
58
+ getBoundingBoxById(id: string, viewTrans?: boolean): Box2 | undefined;
57
59
  }
@@ -1,3 +1,4 @@
1
+ import { default as Box2 } from '../math/box2';
1
2
  export interface IApp {
2
3
  addEventListener(type: string, listener: Function): void;
3
4
  removeEventListener(type: string, listener: Function): void;
@@ -33,4 +34,5 @@ export interface IApp {
33
34
  multiSelectEnableChanged(v: boolean): void;
34
35
  clearSelected(): void;
35
36
  socialDistanceEnableChanged(v: boolean): void;
37
+ getBoundingBoxById(id: string, viewTrans?: boolean): Box2 | undefined;
36
38
  }
@@ -31,6 +31,8 @@ export declare class SvgApp<Config extends ISvgAppConfig> extends EventDispatche
31
31
  selectEnable: boolean;
32
32
  multiSelectEnable: boolean;
33
33
  private readonly runningHandler;
34
+ private readonly pointerOverHandler;
35
+ private readonly pointerLeaveHandler;
34
36
  private readonly multiSelectorSelectedHandler;
35
37
  constructor(config?: Config);
36
38
  get isLoadingScene(): boolean;
@@ -73,13 +75,18 @@ export declare class SvgApp<Config extends ISvgAppConfig> extends EventDispatche
73
75
  multiSelectEnableChanged(v: boolean): void;
74
76
  clearSelected(): void;
75
77
  socialDistanceEnableChanged(v: boolean): void;
78
+ getBoundingBoxById(id: string, viewTrans?: boolean): Box2 | undefined;
76
79
  bindAssetsEvents(): void;
77
80
  unbindAssetsEvents(): void;
78
81
  handleMultiSelectorSelected(e: IEvent): void;
82
+ handlePointerOver(e: IEvent): void;
83
+ handlePointerLeave(e: IEvent): void;
79
84
  handleInitializeStart(): void;
80
85
  handleInitializeComplete(res: any): Promise<void>;
81
86
  launch(): void;
82
87
  }
83
88
  export declare enum AppEnum {
84
- SELECTED = "SELECTED"
89
+ SELECTED = "SELECTED",
90
+ POINTEROVER = "pointerover",
91
+ POINTERLEAVE = "pointerleave"
85
92
  }
@@ -4,7 +4,6 @@ import { ICamera2, IEvent } from '../interfaces';
4
4
  import { OrbitController } from '../controls/orbit-controller';
5
5
  import { SvgScene } from '../scenes/svg-scene';
6
6
  import { SvgMultiSelector } from './svg-multi-selector';
7
- import { Tooltip } from './tooltip';
8
7
  import { default as Box2 } from '../math/box2';
9
8
  import { DynamicDrawRect } from './dynamic-draw-rect';
10
9
  import { default as Vector2 } from '../math/vector2';
@@ -20,12 +19,12 @@ export declare class SvgView<Config extends ISvgViewConfig> extends EventDispatc
20
19
  p1: Vector2;
21
20
  p2: Vector2;
22
21
  graph: DynamicDrawRect;
23
- tooltip?: Tooltip;
24
22
  multiSelector: SvgMultiSelector;
25
23
  zoomToSelectEnable: boolean;
26
24
  zoomBox: Box2;
27
25
  selectEnable: boolean;
28
26
  multiSelectEnable: boolean;
27
+ private _currentAssetId?;
29
28
  controlsPanStartHandler: (e: IEvent) => void;
30
29
  controlsPanEndHandler: (e: IEvent) => void;
31
30
  controlsWheelStartHandler: (e: IEvent) => void;
@@ -55,5 +54,7 @@ export declare class SvgView<Config extends ISvgViewConfig> extends EventDispatc
55
54
  handleMultiSelectorSelected(e: IEvent): void;
56
55
  }
57
56
  export declare enum SvgViewEnum {
58
- SELECTED = "SELECTED"
57
+ SELECTED = "SELECTED",
58
+ POINTEROVER = "POINTEROVER",
59
+ POINTERLEAVE = "POINTERLEAVE"
59
60
  }
package/lib/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { default as defaultConfig } from './env/default-config.js';
3
3
  export { GLOB } from './core/global.js';
4
4
  export { Color, ColorsEnum } from './math/color.js';
5
5
  export * as Vector2 from './math/vector2';
6
+ export * as Box2 from './math/box2';
6
7
  export { Monitor } from './core/monitor';
7
8
  export { AssetTypeEnum, LayerTypeEnum } from './env/enums';
8
9
  export type { IApp } from './extras/interfaces';