archgine 1.0.32 → 1.0.33

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.33";
4003
4003
  function ky() {
4004
4004
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
4005
4005
  }
@@ -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;
@@ -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;
@@ -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;
package/lib/index.mjs CHANGED
@@ -3995,7 +3995,7 @@ lu.__DOMHandler = Ha;
3995
3995
  lu.normalizeLineEndings = ng;
3996
3996
  lu.DOMParser = sg;
3997
3997
  var Sb = lu.DOMParser;
3998
- const Nb = "1.0.32";
3998
+ const Nb = "1.0.33";
3999
3999
  function Ob() {
4000
4000
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
4001
4001
  }
@@ -4855,7 +4855,7 @@ class L {
4855
4855
  yield this.x, yield this.y;
4856
4856
  }
4857
4857
  }
4858
- const Il = new L(), bC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4858
+ const Il = new L(), wC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4859
4859
  __proto__: null,
4860
4860
  default: L
4861
4861
  }, Symbol.toStringTag, { value: "Module" }));
@@ -8689,7 +8689,7 @@ class Ot {
8689
8689
  return g;
8690
8690
  }
8691
8691
  }
8692
- const ms = new Ot(), ca = [new L(), new L(), new L(), new L()], Bi = new L(), On = new L(), EC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8692
+ const ms = new Ot(), ca = [new L(), new L(), new L(), new L()], Bi = new L(), On = new L(), AC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8693
8693
  __proto__: null,
8694
8694
  default: Ot
8695
8695
  }, Symbol.toStringTag, { value: "Module" })), Rb = St.window.requestAnimationFrame, fa = St.window.performance ? () => St.window.performance.now() : () => (/* @__PURE__ */ new Date()).getTime(), Ep = Rb;
@@ -8994,7 +8994,7 @@ class oE {
8994
8994
  const t = this.container.getBoundingClientRect();
8995
8995
  this.params.width = t.width, this.params.height = t.height;
8996
8996
  }
8997
- this.container.style.overflow = "hidden", this.setSize(this.params.width, this.params.height);
8997
+ this.container.style.overflow = "hidden", this.container.style.transform = "translateZ(0)", this.setSize(this.params.width, this.params.height);
8998
8998
  }
8999
8999
  resize() {
9000
9000
  var e, r;
@@ -15871,19 +15871,16 @@ var fh = /* @__PURE__ */ ((i) => (i.UPDATE = "update", i))(fh || {});
15871
15871
  class Og extends Hi {
15872
15872
  name = "SvgSelectRect";
15873
15873
  container;
15874
- offset = new L();
15875
15874
  el;
15876
15875
  constructor(t) {
15877
- super(), t ? this.container = t : this.container = document.getElementsByTagName("body")[0];
15878
- let e = this.container.getBoundingClientRect();
15879
- this.offset.set(e.left, e.top), this.el = document.createElement("div"), this.el.setAttribute("id", Bs + "SvgSelectRect"), this.el.setAttribute("class", Bs + "-svg-select-rect"), this.el.style.display = "none", this.container.appendChild(this.el);
15876
+ super(), t ? this.container = t : this.container = document.getElementsByTagName("body")[0], this.el = document.createElement("div"), this.el.setAttribute("id", Bs + "SvgSelectRect"), this.el.setAttribute("class", Bs + "-svg-select-rect"), this.el.style.display = "none", this.container.appendChild(this.el);
15880
15877
  }
15881
15878
  destroy() {
15882
15879
  super.destroy(), this.el && this.el.remove();
15883
15880
  }
15884
15881
  // draw(p1: Vector2, p2: Vector2) {
15885
15882
  draw(t) {
15886
- ld.copy(t).translate(this.offset).getSize(Kl), Zl.copy(ld.min), this.el.style.display = "none", this.el.style.position = "absolute", this.el.style.left = Zl.x + "px", this.el.style.top = Zl.y + "px", this.el.style.width = Kl.x + "px", this.el.style.height = Kl.y + "px", this.el.style.display = "block", this.el.style.background = new kt(Ut.darkBlue).setA(0.1).getStyle(), this.el.style.border = Ut.darkBlue + " 1px dashed";
15883
+ ld.copy(t).getSize(Kl), Zl.copy(ld.min), this.el.style.display = "none", this.el.style.position = "absolute", this.el.style.left = Zl.x + "px", this.el.style.top = Zl.y + "px", this.el.style.width = Kl.x + "px", this.el.style.height = Kl.y + "px", this.el.style.display = "block", this.el.style.background = new kt(Ut.darkBlue).setA(0.1).getStyle(), this.el.style.border = Ut.darkBlue + " 1px dashed";
15887
15884
  }
15888
15885
  hide() {
15889
15886
  this.el.style.display = "none";
@@ -17704,8 +17701,7 @@ const nn = za(document.body, {
17704
17701
  placement: "left-start",
17705
17702
  trigger: "manual",
17706
17703
  // interactive: true,
17707
- arrow: !0,
17708
- offset: [0, 0]
17704
+ arrow: !0
17709
17705
  });
17710
17706
  class Yh {
17711
17707
  constructor(t, e) {
@@ -17715,7 +17711,6 @@ class Yh {
17715
17711
  id = "Label" + rC++;
17716
17712
  el;
17717
17713
  position = new L();
17718
- offset = new L(-10, 0);
17719
17714
  get isMounted() {
17720
17715
  return nn.state.isMounted;
17721
17716
  }
@@ -17753,7 +17748,7 @@ class Yh {
17753
17748
  }
17754
17749
  async show(t) {
17755
17750
  if (t)
17756
- return await this.hide(), this.position.copy(t), this.position.add(this.offset), nn.setContent(this.text), nn.setProps({
17751
+ return await this.hide(), this.position.copy(t), nn.setContent(this.text), nn.setProps({
17757
17752
  getReferenceClientRect: () => ({
17758
17753
  width: 0,
17759
17754
  height: 0,
@@ -17831,8 +17826,15 @@ class sC extends Hi {
17831
17826
  // return this;
17832
17827
  // }
17833
17828
  setActive(t) {
17834
- var e, r;
17835
- return t ? (Ma(this.el, "active"), (e = this.label) == null || e.show(this.position)) : (Ba(this.el, "active"), (r = this.label) == null || r.hide()), this;
17829
+ return t ? (Ma(this.el, "active"), this.showLabel()) : (Ba(this.el, "active"), this.hideLabel()), this;
17830
+ }
17831
+ showLabel() {
17832
+ var t;
17833
+ (t = this.label) == null || t.show(aC.copy(this.position).add(this.offset).subScalar(this.radius));
17834
+ }
17835
+ hideLabel() {
17836
+ var t;
17837
+ (t = this.label) == null || t.hide();
17836
17838
  }
17837
17839
  setType(t) {
17838
17840
  var r;
@@ -17852,10 +17854,11 @@ class sC extends Hi {
17852
17854
  !t || !this.isMounted || (e || t.subScalar(this.radius).round(), this.position.copy(t), this.el.style.transform = `translate3D(${this.position.x}px, ${this.position.y}px, 0)`);
17853
17855
  }
17854
17856
  }
17855
- let aC = 0;
17856
- class oC extends Hi {
17857
+ const aC = new L();
17858
+ let oC = 0;
17859
+ class uC extends Hi {
17857
17860
  name = "DummyRect";
17858
- id = "dummyRect" + aC++;
17861
+ id = "dummyRect" + oC++;
17859
17862
  container;
17860
17863
  offset = new L();
17861
17864
  el;
@@ -17902,6 +17905,14 @@ class oC extends Hi {
17902
17905
  setActive(t) {
17903
17906
  return t ? Ma(this.el, "active") : Ba(this.el, "active"), this;
17904
17907
  }
17908
+ showLabel() {
17909
+ var t;
17910
+ (t = this.label) == null || t.show(lC.copy(this.position).add(this.offset).subScalar(this.radius));
17911
+ }
17912
+ hideLabel() {
17913
+ var t;
17914
+ (t = this.label) == null || t.hide();
17915
+ }
17905
17916
  setType(t) {
17906
17917
  var r;
17907
17918
  if (!this.userData) return this;
@@ -17921,10 +17932,10 @@ class oC extends Hi {
17921
17932
  !t || !this.isMounted || (e || t.subScalar(this.radius).round(), this.position.copy(t), this.el.style.transform = `translate3D(${this.position.x}px, ${this.position.y}px, 0)`);
17922
17933
  }
17923
17934
  }
17924
- class uC extends Hi {
17935
+ const lC = new L();
17936
+ class hC extends Hi {
17925
17937
  name = "Dummies";
17926
17938
  container;
17927
- offset = new L();
17928
17939
  controller;
17929
17940
  scene;
17930
17941
  viewMatrix = new Ht();
@@ -17934,9 +17945,7 @@ class uC extends Hi {
17934
17945
  cameraUpdateHandler = this.handleCameraUpdate.bind(this);
17935
17946
  controllerTapHandler = this.handleControllerTap.bind(this);
17936
17947
  constructor(t, e) {
17937
- super(), this.container = t;
17938
- let r = this.container.getBoundingClientRect();
17939
- this.offset.set(r.left, r.top), this.controller = e, this.bindEvents();
17948
+ super(), this.container = t, this.controller = e, this.bindEvents();
17940
17949
  }
17941
17950
  destroy() {
17942
17951
  this.unbindEvents(), super.destroy(), this.clearDummies();
@@ -17958,9 +17967,9 @@ class uC extends Hi {
17958
17967
  const h = this.dummies[o], c = (r = this.scene) == null ? void 0 : r.getElementById((e = h.userData) == null ? void 0 : e.rmId);
17959
17968
  if (c) {
17960
17969
  const p = (s = this.scene) == null ? void 0 : s.chef.getElementBoundingBox(c.id);
17961
- p == null || p.getCenter(sn), sn.applyMatrix3(this.viewMatrix).add(this.offset).round(), h.position.copy(sn);
17970
+ p == null || p.getCenter(sn), sn.applyMatrix3(this.viewMatrix).round(), h.position.copy(sn);
17962
17971
  } else
17963
- sn.copy(h.worldPosition).applyMatrix3(this.viewMatrix).add(this.offset).round(), h.update(sn);
17972
+ sn.copy(h.worldPosition).applyMatrix3(this.viewMatrix).round(), h.update(sn);
17964
17973
  }
17965
17974
  this.mergeDummies();
17966
17975
  }
@@ -18011,7 +18020,7 @@ class uC extends Hi {
18011
18020
  if ((s = this.scene) == null ? void 0 : s.getElementById(e)) {
18012
18021
  const c = (o = this.scene) == null ? void 0 : o.chef.getElementBoundingBox(e);
18013
18022
  if (!c) return;
18014
- eh.copy(c).applyMatrix3(this.viewMatrix).translate(this.offset).round(), eh.getSize(sn);
18023
+ eh.copy(c).applyMatrix3(this.viewMatrix).round(), eh.getSize(sn);
18015
18024
  const p = t[0].radius, g = eh.centralArrange(t.length, p * 2, p * 2);
18016
18025
  if (sn.x < p * 3 || sn.y < p * 3) {
18017
18026
  t.forEach((E) => E.unmount());
@@ -18036,7 +18045,7 @@ class uC extends Hi {
18036
18045
  var W, H;
18037
18046
  return (W = I.userData) != null && W.value && _.push((H = I.userData) == null ? void 0 : H.value), _;
18038
18047
  }, []);
18039
- w.value = C.join(","), w.rmId = e, x = new oC(this.container, w), this.mergedMap.set(e, x);
18048
+ w.value = C.join(","), w.rmId = e, x = new uC(this.container, w), this.mergedMap.set(e, x);
18040
18049
  }
18041
18050
  x.setText(t.length.toString());
18042
18051
  const E = at.reduce(t, (w, M) => {
@@ -18069,21 +18078,14 @@ class uC extends Hi {
18069
18078
  this.dummies.forEach((t) => t.setActive(!1)), this.mergedMap.forEach((t) => t.setActive(!1));
18070
18079
  }
18071
18080
  showDummyLabel(t) {
18072
- var s, o;
18073
18081
  if (!t) return;
18074
18082
  const e = this.getDummyById(t);
18075
- e && ((s = e.label) == null || s.show(e.position));
18083
+ e && e.showLabel();
18076
18084
  const r = this.mergedMap.get(t);
18077
- r && ((o = r.label) == null || o.show(r.position));
18085
+ r && r.showLabel();
18078
18086
  }
18079
18087
  async hideDummyLabel() {
18080
- this.dummies.forEach((t) => {
18081
- var e;
18082
- return (e = t.label) == null ? void 0 : e.hide();
18083
- }), this.mergedMap.forEach((t) => {
18084
- var e;
18085
- return (e = t.label) == null ? void 0 : e.hide();
18086
- });
18088
+ this.dummies.forEach((t) => t.hideLabel()), this.mergedMap.forEach((t) => t.hideLabel());
18087
18089
  }
18088
18090
  // ====================== events
18089
18091
  handleCameraUpdate() {
@@ -18102,7 +18104,7 @@ const sn = new L(), eh = new Ot();
18102
18104
  window.setTimeout(i, 1e3 / 60);
18103
18105
  };
18104
18106
  })();
18105
- class lC extends Hi {
18107
+ class cC extends Hi {
18106
18108
  name = "DragController";
18107
18109
  dragFake = !1;
18108
18110
  container;
@@ -18123,7 +18125,7 @@ class lC extends Hi {
18123
18125
  constructor(t, e, r = !0) {
18124
18126
  super(), this.container = t;
18125
18127
  let s = this.container.getBoundingClientRect();
18126
- this.offset.set(s.left, s.top), this.controller = e, this.dummies = new uC(t, e), this.raycaster = new AT(), this.dragFake = r;
18128
+ this.offset.set(s.left, s.top), this.controller = e, this.dummies = new hC(t, e), this.raycaster = new AT(), this.dragFake = r;
18127
18129
  }
18128
18130
  destroy() {
18129
18131
  var t;
@@ -18188,7 +18190,7 @@ class lC extends Hi {
18188
18190
  const r = at.cloneDeep(e);
18189
18191
  r.type = this._panType;
18190
18192
  const s = this._getDummy(t.target, r);
18191
- Aa.set(t.center.x, t.center.y), s.worldPosition.copy(Aa).sub(this.offset).unproject(this.controller.camera), s.update(Aa), this.panEndHandler({ type: "panend", e: t });
18193
+ Aa.set(t.center.x, t.center.y).sub(this.offset), s.worldPosition.copy(Aa).unproject(this.controller.camera), s.update(Aa), this.panEndHandler({ type: "panend", e: t });
18192
18194
  }
18193
18195
  handlePanEnd(t) {
18194
18196
  if ((t == null ? void 0 : t.type) !== "panend") return;
@@ -18204,7 +18206,7 @@ class lC extends Hi {
18204
18206
  if (t) {
18205
18207
  const u = this._elMap.get(r);
18206
18208
  if (!u || !this.controller.camera) return;
18207
- Aa.copy(u.position).sub(this.offset), this.raycaster.setFromCamera(Aa, this.controller.camera);
18209
+ Aa.copy(u.position), this.raycaster.setFromCamera(Aa, this.controller.camera);
18208
18210
  const h = [];
18209
18211
  if ((o = this.scene) == null || o.getIntersectObjects(this.raycaster, Br.RM, h), !(h != null && h.length)) return;
18210
18212
  s = at.cloneDeep(s), s.rmId = h[0].id;
@@ -18497,7 +18499,7 @@ var Ds = Object.freeze({
18497
18499
  return i._nextId++;
18498
18500
  }, i._nextId = 0, i;
18499
18501
  }()
18500
- ), xh = new Qg(), hC = (
18502
+ ), xh = new Qg(), fC = (
18501
18503
  /** @class */
18502
18504
  function() {
18503
18505
  function i(t, e) {
@@ -18668,15 +18670,15 @@ var Ds = Object.freeze({
18668
18670
  typeof r == "string" ? this._valuesStartRepeat[t] = this._valuesStartRepeat[t] + parseFloat(r) : this._valuesStartRepeat[t] = this._valuesEnd[t], this._valuesEnd[t] = e;
18669
18671
  }, i.autoStartOnUpdate = !1, i;
18670
18672
  }()
18671
- ), cC = "25.0.0", fC = Zh.nextId, ar = xh, pC = ar.getAll.bind(ar), dC = ar.removeAll.bind(ar), gC = ar.add.bind(ar), mC = ar.remove.bind(ar), yC = ar.update.bind(ar), Nd = {
18673
+ ), pC = "25.0.0", dC = Zh.nextId, ar = xh, gC = ar.getAll.bind(ar), mC = ar.removeAll.bind(ar), yC = ar.add.bind(ar), vC = ar.remove.bind(ar), xC = ar.update.bind(ar), Nd = {
18672
18674
  Easing: Ds,
18673
18675
  Group: Qg,
18674
18676
  Interpolation: qn,
18675
18677
  now: _s,
18676
18678
  Sequence: Zh,
18677
- nextId: fC,
18678
- Tween: hC,
18679
- VERSION: cC,
18679
+ nextId: dC,
18680
+ Tween: fC,
18681
+ VERSION: pC,
18680
18682
  /**
18681
18683
  * @deprecated The global TWEEN Group will be removed in a following major
18682
18684
  * release. To migrate, create a `new Group()` instead of using `TWEEN` as a
@@ -18724,7 +18726,7 @@ var Ds = Object.freeze({
18724
18726
  * })
18725
18727
  * ```
18726
18728
  */
18727
- getAll: pC,
18729
+ getAll: gC,
18728
18730
  /**
18729
18731
  * @deprecated The global TWEEN Group will be removed in a following major
18730
18732
  * release. To migrate, create a `new Group()` instead of using `TWEEN` as a
@@ -18772,7 +18774,7 @@ var Ds = Object.freeze({
18772
18774
  * })
18773
18775
  * ```
18774
18776
  */
18775
- removeAll: dC,
18777
+ removeAll: mC,
18776
18778
  /**
18777
18779
  * @deprecated The global TWEEN Group will be removed in a following major
18778
18780
  * release. To migrate, create a `new Group()` instead of using `TWEEN` as a
@@ -18820,7 +18822,7 @@ var Ds = Object.freeze({
18820
18822
  * })
18821
18823
  * ```
18822
18824
  */
18823
- add: gC,
18825
+ add: yC,
18824
18826
  /**
18825
18827
  * @deprecated The global TWEEN Group will be removed in a following major
18826
18828
  * release. To migrate, create a `new Group()` instead of using `TWEEN` as a
@@ -18868,7 +18870,7 @@ var Ds = Object.freeze({
18868
18870
  * })
18869
18871
  * ```
18870
18872
  */
18871
- remove: mC,
18873
+ remove: vC,
18872
18874
  /**
18873
18875
  * @deprecated The global TWEEN Group will be removed in a following major
18874
18876
  * release. To migrate, create a `new Group()` instead of using `TWEEN` as a
@@ -18916,9 +18918,9 @@ var Ds = Object.freeze({
18916
18918
  * })
18917
18919
  * ```
18918
18920
  */
18919
- update: yC
18921
+ update: xC
18920
18922
  };
18921
- class vC extends Hi {
18923
+ class bC extends Hi {
18922
18924
  name = "SvgView";
18923
18925
  params;
18924
18926
  container;
@@ -18952,7 +18954,7 @@ class vC extends Hi {
18952
18954
  constructor(t = {}) {
18953
18955
  super(), this.params = t, this.params.zoomToSelectEnable && (this.zoomToSelectEnable = !0), this.params.selectEnable && (this.selectEnable = !0), this.params.multiSelectEnable && (this.multiSelectEnable = !0), this.params.camera || (this.params.camera = {}), this.params.camera.flipY = !0, this.animateDuration = this.params.animateDuration || 300, this.camera = new ET(this.params.camera), this.container = this.params.containerId ? document.getElementById(this.params.containerId) : St.window.document.getElementsByTagName("body")[0];
18954
18956
  let e = this.container.getBoundingClientRect();
18955
- this.offset.set(e.left, e.top), this.controller = new bT(this.container, this.camera, !0), this.graph = new Og(this.container), this.multiSelector = new wT(this.container, this.controller), this.dummiesController = new lC(this.container, this.controller), this.bindControllerEvents(), this.initLabel();
18957
+ this.offset.set(e.left, e.top), this.controller = new bT(this.container, this.camera, !0), this.graph = new Og(this.container), this.multiSelector = new wT(this.container, this.controller), this.dummiesController = new cC(this.container, this.controller), this.bindControllerEvents(), this.initLabel();
18956
18958
  }
18957
18959
  destroy() {
18958
18960
  var t;
@@ -19116,7 +19118,7 @@ class vC extends Hi {
19116
19118
  }
19117
19119
  const Kt = new Ot(), Ko = new Ht(), Rn = new L(), ih = new L();
19118
19120
  var Un = /* @__PURE__ */ ((i) => (i.SELECTED = "SELECTED", i.POINTEROVER = "POINTEROVER", i.POINTERLEAVE = "POINTERLEAVE", i))(Un || {});
19119
- class TC extends Hi {
19121
+ class CC extends Hi {
19120
19122
  name = "SvgApp";
19121
19123
  params;
19122
19124
  renderer;
@@ -19136,7 +19138,7 @@ class TC extends Hi {
19136
19138
  multiSelectorSelectedHandler = this.handleMultiSelectorSelected.bind(this);
19137
19139
  dragEndHandler = this.handleDragEnd.bind(this);
19138
19140
  constructor(t = {}) {
19139
- super(), this.params = t, this.params.zoomToSelectEnable && (this.zoomToSelectEnable = !0), this.params.selectEnable && (this.selectEnable = !0), this.params.multiSelectEnable && (this.multiSelectEnable = !0), this.params.defaultFill || (this.params.defaultFill = kt.getMoreTransparent(Ut.white, 0.3)), this.params.defaultStroke || (this.params.defaultStroke = kt.getMoreTransparent(Ut.darkWhite, 0.8)), this.params.infoFill || (this.params.infoFill = kt.getMoreTransparent(Ut.gray, 0.3)), this.params.infoStroke || (this.params.infoStroke = kt.getMoreTransparent(Ut.darkGray, 0.8)), this.params.primaryFill || (this.params.primaryFill = kt.getMoreTransparent(Ut.blue, 0.3)), this.params.primaryStroke || (this.params.primaryStroke = kt.getMoreTransparent(Ut.darkBlue, 0.8)), this.params.successFill || (this.params.successFill = kt.getMoreTransparent(Ut.green, 0.3)), this.params.successStroke || (this.params.successStroke = kt.getMoreTransparent(Ut.darkGreen, 0.8)), this.params.warningFill || (this.params.warningFill = kt.getMoreTransparent(Ut.yellow, 0.3)), this.params.warningStroke || (this.params.warningStroke = kt.getMoreTransparent(Ut.darkYellow, 0.8)), this.params.dangerFill || (this.params.dangerFill = kt.getMoreTransparent(Ut.red, 0.3)), this.params.dangerStroke || (this.params.dangerStroke = kt.getMoreTransparent(Ut.darkRed, 0.8)), this.params.activeFill || (this.params.activeFill = kt.getMoreTransparent(Ut.brown, 0.3)), this.params.activeStroke || (this.params.activeStroke = kt.getMoreTransparent(Ut.darkBrown, 0.8)), this.renderer = new oE(t), this.view = new vC(t), this.trans2LoadingScene();
19141
+ super(), this.params = t, this.params.zoomToSelectEnable && (this.zoomToSelectEnable = !0), this.params.selectEnable && (this.selectEnable = !0), this.params.multiSelectEnable && (this.multiSelectEnable = !0), this.params.defaultFill || (this.params.defaultFill = kt.getMoreTransparent(Ut.white, 0.3)), this.params.defaultStroke || (this.params.defaultStroke = kt.getMoreTransparent(Ut.darkWhite, 0.8)), this.params.infoFill || (this.params.infoFill = kt.getMoreTransparent(Ut.gray, 0.3)), this.params.infoStroke || (this.params.infoStroke = kt.getMoreTransparent(Ut.darkGray, 0.8)), this.params.primaryFill || (this.params.primaryFill = kt.getMoreTransparent(Ut.blue, 0.3)), this.params.primaryStroke || (this.params.primaryStroke = kt.getMoreTransparent(Ut.darkBlue, 0.8)), this.params.successFill || (this.params.successFill = kt.getMoreTransparent(Ut.green, 0.3)), this.params.successStroke || (this.params.successStroke = kt.getMoreTransparent(Ut.darkGreen, 0.8)), this.params.warningFill || (this.params.warningFill = kt.getMoreTransparent(Ut.yellow, 0.3)), this.params.warningStroke || (this.params.warningStroke = kt.getMoreTransparent(Ut.darkYellow, 0.8)), this.params.dangerFill || (this.params.dangerFill = kt.getMoreTransparent(Ut.red, 0.3)), this.params.dangerStroke || (this.params.dangerStroke = kt.getMoreTransparent(Ut.darkRed, 0.8)), this.params.activeFill || (this.params.activeFill = kt.getMoreTransparent(Ut.brown, 0.3)), this.params.activeStroke || (this.params.activeStroke = kt.getMoreTransparent(Ut.darkBrown, 0.8)), this.renderer = new oE(t), this.view = new bC(t), this.trans2LoadingScene();
19140
19142
  }
19141
19143
  get isLoadingScene() {
19142
19144
  var t;
@@ -19380,8 +19382,8 @@ class TC extends Hi {
19380
19382
  }
19381
19383
  }
19382
19384
  const rh = new Ot();
19383
- var xC = /* @__PURE__ */ ((i) => (i.SELECTED = "SELECTED", i.POINTEROVER = "pointerover", i.POINTERLEAVE = "pointerleave", i.DRAG_END = "panend", i))(xC || {});
19384
- function _C(i) {
19385
+ var EC = /* @__PURE__ */ ((i) => (i.SELECTED = "SELECTED", i.POINTEROVER = "pointerover", i.POINTERLEAVE = "pointerleave", i.DRAG_END = "panend", i))(EC || {});
19386
+ function DC(i) {
19385
19387
  return new Worker(
19386
19388
  "/environment.worker.js",
19387
19389
  {
@@ -19391,16 +19393,16 @@ function _C(i) {
19391
19393
  );
19392
19394
  }
19393
19395
  export {
19394
- xC as AppEnum,
19396
+ EC as AppEnum,
19395
19397
  Br as AssetTypeEnum,
19396
- EC as Box2,
19398
+ AC as Box2,
19397
19399
  kt as Color,
19398
19400
  Ut as ColorsEnum,
19399
- _C as EnvironmentWorker,
19401
+ DC as EnvironmentWorker,
19400
19402
  St as GLOB,
19401
19403
  Oh as LayerTypeEnum,
19402
19404
  Rt as Monitor,
19403
- TC as SvgApp,
19404
- bC as Vector2,
19405
+ CC as SvgApp,
19406
+ wC as Vector2,
19405
19407
  Yx as defaultConfig
19406
19408
  };