archgine 1.0.26 → 1.0.27

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.26";
4002
+ const Uy = "1.0.27";
4003
4003
  function qy() {
4004
4004
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
4005
4005
  }
@@ -36,6 +36,7 @@ export declare class App<Config extends IAppConfig> extends Application<Config>
36
36
  multiSelectEnableChanged(v: boolean): void;
37
37
  selectEnableChanged(v: boolean): void;
38
38
  selectByIds(ids: string | string[]): void;
39
+ getSelectedIds(): string[] | undefined;
39
40
  targetByIds(id: string | string[]): void;
40
41
  setAssetLabels(id: string, labels?: string[]): void;
41
42
  clearFill(): void;
@@ -11,6 +11,7 @@ export interface IApp {
11
11
  setAssetType(assetType: string, conflictLayers?: string[]): void;
12
12
  updateLayersVisibility(ids: string[], visible?: boolean): void;
13
13
  selectByIds(ids: string | string[]): void;
14
+ getSelectedIds(): string[] | undefined;
14
15
  targetByIds(id: string | string[]): void;
15
16
  setFillByIds(ids: string[], c: string): void;
16
17
  clearFill(): void;
@@ -49,6 +49,7 @@ export declare class SvgApp<Config extends ISvgAppConfig> extends EventDispatche
49
49
  getLayers(lv?: number): TLayer[] | undefined;
50
50
  updateLayersVisibility(ids: string[], visible?: boolean): void;
51
51
  selectByIds(ids: string | string[]): void;
52
+ getSelectedIds(): string[] | undefined;
52
53
  targetByIds(ids: string | string[]): void;
53
54
  setViewAreaLimit(v: number): void;
54
55
  setAssetType(assetType: string, conflictLayers?: string[]): void;
package/lib/index.mjs CHANGED
@@ -3995,7 +3995,7 @@ tu.__DOMHandler = ks;
3995
3995
  tu.normalizeLineEndings = pp;
3996
3996
  tu.DOMParser = dp;
3997
3997
  var gv = tu.DOMParser;
3998
- const mv = "1.0.26";
3998
+ const mv = "1.0.27";
3999
3999
  function yv() {
4000
4000
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
4001
4001
  }
@@ -14195,6 +14195,14 @@ class Fp extends ix {
14195
14195
  this.chef.setElementState2selected(a, !0);
14196
14196
  });
14197
14197
  }
14198
+ getSelectedIds() {
14199
+ var e;
14200
+ if (!((e = this.selectedList) != null && e.length)) return;
14201
+ const t = [];
14202
+ for (let i = 0, a = this.selectedList.length; i < a; i++)
14203
+ this.selectedList[i].id && t.push(this.selectedList[i].id);
14204
+ return t;
14205
+ }
14198
14206
  getSelectedBoundingBox() {
14199
14207
  var e;
14200
14208
  const t = new wt();
@@ -15982,6 +15990,10 @@ class mb extends zr {
15982
15990
  var e;
15983
15991
  (e = this.scene) == null || e.selectByIds(t, this.multiSelectEnable);
15984
15992
  }
15993
+ getSelectedIds() {
15994
+ var t;
15995
+ return (t = this.scene) == null ? void 0 : t.getSelectedIds();
15996
+ }
15985
15997
  targetByIds(t) {
15986
15998
  var e;
15987
15999
  this.scene && ((e = this.scene) == null || e.selectByIds(t, !1), Ko.copy(this.scene.getSelectedBoundingBox()).expandByVector(new L(1, 1).multiplyScalar(500)), Ko.isEmpty() || this.view.setByBox(Ko));