archgine 1.0.8 → 1.0.11

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.8";
4002
+ const Uy = "1.0.11";
4003
4003
  function qy() {
4004
4004
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
4005
4005
  }
@@ -18,7 +18,7 @@ export declare class App<Config extends IAppConfig> extends Application<Config>
18
18
  destroy(): void;
19
19
  load(url: string, layers?: string[], lv?: number): Promise<TLayer[]>;
20
20
  getLayers(): TLayer[];
21
- updateLayersVisibility(ids: string[], visilble?: boolean): void;
21
+ updateLayersVisibility(ids: string[], visible?: boolean): void;
22
22
  bindAdapterEvents(): void;
23
23
  unbindAdapterEvents(): void;
24
24
  handleInitializeStart(): void;
@@ -26,4 +26,22 @@ export declare class App<Config extends IAppConfig> extends Application<Config>
26
26
  launch(): void;
27
27
  trans2LoadingScene(): void;
28
28
  running(): void;
29
+ clearAssetLabels(typ?: string): void;
30
+ clearFillByIds(ids?: string[]): void;
31
+ clearSelected(): void;
32
+ clearStrokeByIds(ids?: string[]): void;
33
+ fontZoomIn(): void;
34
+ fontZoomOut(): void;
35
+ getLegend(): any[];
36
+ multiSelectEnableChanged(v: boolean): void;
37
+ selectEnableChanged(v: boolean): void;
38
+ selectedElementsById(id: string | string[]): void;
39
+ setAssetLabel(id: string, label: string): void;
40
+ setFillByIds(ids: string[], c: string): void;
41
+ setSkeletons(skeletons: string[]): void;
42
+ setStrokeByIds(ids: string[], c: string): void;
43
+ socialDistanceEnableChanged(v: boolean): void;
44
+ zoomIn(): void;
45
+ zoomOut(): void;
46
+ zoomToSelectEnableChanged(v: boolean): void;
29
47
  }
@@ -1,2 +1,25 @@
1
1
  export interface IApp {
2
+ destroy(): void;
3
+ start(): void;
4
+ load(url: string, layers?: string[], lv?: number, skeletons?: string[]): any;
5
+ setSkeletons(skeletons: string[]): void;
6
+ getLayers(lv?: number): any[];
7
+ updateLayersVisibility(ids: string[], visible?: boolean): void;
8
+ selectedElementsById(id: string | string[]): void;
9
+ setFillByIds(ids: string[], c: string): void;
10
+ clearFillByIds(ids?: string[]): void;
11
+ setStrokeByIds(ids: string[], c: string): void;
12
+ clearStrokeByIds(ids?: string[]): void;
13
+ getLegend(): any[];
14
+ setAssetLabel(id: string, label: string): void;
15
+ clearAssetLabels(typ?: string): void;
16
+ zoomIn(): void;
17
+ zoomOut(): void;
18
+ fontZoomIn(): void;
19
+ fontZoomOut(): void;
20
+ zoomToSelectEnableChanged(v: boolean): void;
21
+ selectEnableChanged(v: boolean): void;
22
+ multiSelectEnableChanged(v: boolean): void;
23
+ clearSelected(): void;
24
+ socialDistanceEnableChanged(v: boolean): void;
2
25
  }
@@ -43,7 +43,7 @@ export declare class SvgApp<Config extends ISvgAppConfig> extends EventDispatche
43
43
  load(url: string, layers?: string[], lv?: number, skeletons?: string[]): Promise<TLayer[]>;
44
44
  setSkeletons(skeletons: string[]): void;
45
45
  getLayers(lv?: number): TLayer[];
46
- updateLayersVisibility(ids: string[], visilble?: boolean): void;
46
+ updateLayersVisibility(ids: string[], visible?: boolean): void;
47
47
  selectedElementsById(id: string | string[]): void;
48
48
  selectedElements(el: Element | Element[]): void;
49
49
  setViewAreaLimit(v: number): void;
package/lib/index.d.ts CHANGED
@@ -3,5 +3,6 @@ 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 { Monitor } from './core/monitor';
6
7
  export { AppEnum, SvgApp } from './extras/svg-app';
7
8
  export { defaultConfig, EnvironmentWorker, };
package/lib/index.mjs CHANGED
@@ -3995,7 +3995,7 @@ ja.__DOMHandler = Fs;
3995
3995
  ja.normalizeLineEndings = cp;
3996
3996
  ja.DOMParser = fp;
3997
3997
  var fv = ja.DOMParser;
3998
- const pv = "1.0.8";
3998
+ const pv = "1.0.11";
3999
3999
  function dv() {
4000
4000
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
4001
4001
  }
@@ -4855,7 +4855,169 @@ class R {
4855
4855
  const Bo = new R(), cb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4856
4856
  __proto__: null,
4857
4857
  default: R
4858
- }, Symbol.toStringTag, { value: "Module" }));
4858
+ }, Symbol.toStringTag, { value: "Module" })), xv = mt.window.requestAnimationFrame, vs = mt.window.performance ? () => mt.window.performance.now() : () => (/* @__PURE__ */ new Date()).getTime(), Zc = xv;
4859
+ class Tt {
4860
+ static idCounter = 0;
4861
+ id = Tt.idCounter++;
4862
+ timers = /* @__PURE__ */ new Map();
4863
+ timersDuration = /* @__PURE__ */ new Map();
4864
+ counters = /* @__PURE__ */ new Map();
4865
+ countersAmount = /* @__PURE__ */ new Map();
4866
+ out = [];
4867
+ constructor() {
4868
+ }
4869
+ destroy() {
4870
+ Tt.remove(this);
4871
+ }
4872
+ // timers
4873
+ addTimer(t, e = vs(), r = vs() - (this.timersDuration.get(t) || vs())) {
4874
+ this.addTimerDuration(t, r), this.timersDuration.set(t, e);
4875
+ }
4876
+ addTimerDuration(t, e) {
4877
+ var r;
4878
+ this.timers.has(t) || this.timers.set(t, []), (r = this.timers.get(t)) == null || r.push(e);
4879
+ }
4880
+ calculateTimers() {
4881
+ this.timers.forEach((t, e) => {
4882
+ !t || !t.length || (this.out.push(this.calculateDurations(e, t)), t.length = 0);
4883
+ });
4884
+ }
4885
+ // counters
4886
+ addCounterAmount(t, e) {
4887
+ var r;
4888
+ this.counters.has(t) || this.counters.set(t, []), (r = this.counters.get(t)) == null || r.push(e);
4889
+ }
4890
+ calculateCounters() {
4891
+ this.counters.forEach((t, e) => {
4892
+ !t || !t.length || (this.out.push(this.calculateAmounts(e, t)), t.length = 0);
4893
+ });
4894
+ }
4895
+ start() {
4896
+ return this.stop(), Tt.add(this), this;
4897
+ }
4898
+ stop() {
4899
+ return Tt.remove(this), this;
4900
+ }
4901
+ calculateDurations(t, e) {
4902
+ const r = { name: t, avg: 0, min: 0, max: 0, stdDev: 0, count: 0, FPS: 0 };
4903
+ if (!e || !e.length) return r;
4904
+ const a = e.length, { min: u, max: l, avg: c } = this.minMaxAvg(e), f = parseFloat(this.stdDev(e, c).toFixed(2));
4905
+ return { name: t, avg: this.fd(c), min: this.fd(u), max: this.fd(l), stdDev: f, count: a, FPS: Math.ceil(a / Tt.duration * 1e3) };
4906
+ }
4907
+ calculateAmounts(t, e) {
4908
+ const r = { name: t, avg: 0, min: 0, max: 0, stdDev: 0, count: 0, FPS: 0 };
4909
+ if (!e || !e.length) return r;
4910
+ const a = e.length, { min: u, max: l, avg: c } = this.minMaxAvg(e), f = this.stdDev(e, c);
4911
+ return { name: t, avg: c, min: u, max: l, stdDev: f, count: a, FPS: Math.ceil(a / Tt.duration * 1e3) };
4912
+ }
4913
+ minMaxAvg(t) {
4914
+ let e = t[0], r = t[0], a = t.length, u = 0;
4915
+ for (let c = 0; c < t.length; c++) {
4916
+ const f = t[c];
4917
+ u += f, f < e && (e = f), f > r && (r = f);
4918
+ }
4919
+ const l = u / a;
4920
+ return { min: this.fx(e), max: this.fx(r), avg: this.fx(l) };
4921
+ }
4922
+ stdDev(t, e) {
4923
+ let r = 0;
4924
+ for (let u = 0; u < t.length; u++) {
4925
+ const l = t[u];
4926
+ r += (l - e) * (l - e);
4927
+ }
4928
+ const a = t.length;
4929
+ return this.fx(Math.sqrt(r / a));
4930
+ }
4931
+ fd(t) {
4932
+ return t > 1e3 ? (t / 1e3).toFixed(1) + "s" : t.toFixed(1) + "ms";
4933
+ }
4934
+ fx(t, e = 1) {
4935
+ return e === 1 ? Math.round(t * 10) / 10 : e === 2 ? Math.round(t * 100) / 100 : e === 3 ? Math.round(t * 1e3) / 1e3 : t;
4936
+ }
4937
+ static children = [];
4938
+ static isRunning = !1;
4939
+ static actived = !1;
4940
+ static duration = 0;
4941
+ static lastTime = vs();
4942
+ static messages = [];
4943
+ // { avg, min, max, stdDev, count }
4944
+ static maxLetters = 20;
4945
+ static active(t) {
4946
+ t ? Tt.actived = !0 : Tt.actived = !1, Tt.duration = t || 0;
4947
+ }
4948
+ static add(t) {
4949
+ this.children.push(t), this.handleStart();
4950
+ }
4951
+ static remove(t) {
4952
+ for (let e = 0, r = Tt.children.length; e < r; e++)
4953
+ if (Tt.children[e].id === t.id) {
4954
+ this.children.splice(e, 1);
4955
+ break;
4956
+ }
4957
+ }
4958
+ static handleStart() {
4959
+ this.isRunning || (this.isRunning = !0, Zc(this.runLoop));
4960
+ }
4961
+ static runLoop() {
4962
+ Tt.children.length ? (Tt.runFrames(), Zc(Tt.runLoop)) : Tt.isRunning = !1;
4963
+ }
4964
+ static runFrames() {
4965
+ let t, e = vs();
4966
+ if (!(e - Tt.lastTime < Tt.duration)) {
4967
+ Tt.lastTime = e;
4968
+ for (let r = 0, a = this.children.length; r < a; r++)
4969
+ t = this.children[r], t.calculateTimers(), t.calculateCounters(), Tt.messages = Tt.messages.concat(t.out), t.out.length = 0;
4970
+ if (Tt.messages.length) {
4971
+ if (Tt.actived) {
4972
+ let r = [];
4973
+ r.push(Ev), r.push(Av), r.push(bv), this.messages.forEach((a) => r.push(Dv(a, this.maxLetters))), r.push(wv), console.log(r.join(`
4974
+ `));
4975
+ }
4976
+ Tt.messages.length = 0;
4977
+ }
4978
+ }
4979
+ }
4980
+ }
4981
+ const tu = 20, eu = ["avg", "min", "max", "stdDev", "count", "FPS"], yi = _v(eu, 1), Ev = Tv(eu, tu), Av = Cv(eu, tu), bv = Sv(eu, tu), wv = Nv(tu);
4982
+ function Tv(n, t = 20) {
4983
+ let e = "┌";
4984
+ e += "─".repeat(t), e += "┬";
4985
+ for (let r = 0, a = n.length; r < a; r++)
4986
+ e += "─".repeat(yi), r < a - 1 ? e += "┬" : e += "┐";
4987
+ return e;
4988
+ }
4989
+ function _v(n, t = 0) {
4990
+ let e = 0;
4991
+ for (let r = 0, a = n.length; r < a; r++)
4992
+ e = Math.max(e, n[r].length);
4993
+ return e + t;
4994
+ }
4995
+ function Cv(n, t = 20) {
4996
+ let e = "│";
4997
+ e += " ".repeat(t), e += "│";
4998
+ for (let r = 0, a = n.length; r < a; r++)
4999
+ e += " ".repeat(Math.max(yi - n[r].length - 1, 0)), e += n[r], e += " │";
5000
+ return e;
5001
+ }
5002
+ function Sv(n, t = 20) {
5003
+ let e = "├";
5004
+ e += "─".repeat(t), e += "┼";
5005
+ for (let r = 0, a = n.length; r < a; r++)
5006
+ e += "─".repeat(yi), r < a - 1 ? e += "┴" : e += "┘";
5007
+ return e;
5008
+ }
5009
+ function Dv(n, t = 20) {
5010
+ let e = "│";
5011
+ e += " ".repeat(Math.max(t - n.name.length, 0)), e += n.name, e += "│";
5012
+ const r = typeof n.avg == "string" ? yi - n.avg.length : yi - n.avg.toString().length;
5013
+ return e += " ".repeat(Math.max(r, 0)), e += n.avg + " ", e += " ".repeat(Math.max(yi - n.min.toString().length, 0)), e += n.min + " ", e += " ".repeat(Math.max(yi - n.max.toString().length, 0)), e += n.max + " ", e += " ".repeat(Math.max(yi - n.stdDev.toString().length, 0)), e += n.stdDev + " ", e += " ".repeat(Math.max(yi - n.count.toString().length, 0)), e += n.count + " ", e += " ".repeat(Math.max(yi - n.FPS.toString().length, 0)), e += n.FPS, e;
5014
+ }
5015
+ function Nv(n = 20) {
5016
+ let t = "└";
5017
+ for (let e = 0; e < n; e++)
5018
+ t += "─";
5019
+ return t += "┘", t;
5020
+ }
4859
5021
  class dr {
4860
5022
  _listeners = /* @__PURE__ */ new Map();
4861
5023
  destroy() {
@@ -4903,11 +5065,11 @@ class dr {
4903
5065
  });
4904
5066
  }
4905
5067
  }
4906
- function xv(n) {
5068
+ function Mv(n) {
4907
5069
  var t, e;
4908
5070
  return (e = (t = mt.window) == null ? void 0 : t.document) == null ? void 0 : e.createElement(n);
4909
5071
  }
4910
- async function Ev(n = 2e3) {
5072
+ async function Ov(n = 2e3) {
4911
5073
  return new Promise((t) => setTimeout(t, (Math.random() + 0.5) * n));
4912
5074
  }
4913
5075
  var Ya = { exports: {} };
@@ -8581,8 +8743,8 @@ function print() { __p += __j.call(arguments, '') }
8581
8743
  _r ? ((_r.exports = un)._ = un, bu._ = un) : jt._ = un;
8582
8744
  }).call(ps);
8583
8745
  })(Ya, Ya.exports);
8584
- var Av = Ya.exports;
8585
- const ft = /* @__PURE__ */ Ff(Av), Pr = new R();
8746
+ var Bv = Ya.exports;
8747
+ const ft = /* @__PURE__ */ Ff(Bv), Pr = new R();
8586
8748
  class _t {
8587
8749
  isBox2 = !0;
8588
8750
  min;
@@ -8591,7 +8753,7 @@ class _t {
8591
8753
  this.min = t, this.max = e;
8592
8754
  }
8593
8755
  applyMatrix3(t) {
8594
- return this.isEmpty() ? this : (vs[0].set(this.min.x, this.min.y).applyMatrix3(t), vs[1].set(this.min.x, this.max.y).applyMatrix3(t), vs[3].set(this.max.x, this.max.y).applyMatrix3(t), vs[2].set(this.max.x, this.min.y).applyMatrix3(t), this.setFromPoints(vs), this);
8756
+ return this.isEmpty() ? this : (xs[0].set(this.min.x, this.min.y).applyMatrix3(t), xs[1].set(this.min.x, this.max.y).applyMatrix3(t), xs[3].set(this.max.x, this.max.y).applyMatrix3(t), xs[2].set(this.max.x, this.min.y).applyMatrix3(t), this.setFromPoints(xs), this);
8595
8757
  }
8596
8758
  clone() {
8597
8759
  return new _t().copy(this);
@@ -8728,169 +8890,7 @@ class _t {
8728
8890
  return this.applyMatrix3(t.projectionMatrixInverse).applyMatrix3(t.matrixWorld);
8729
8891
  }
8730
8892
  }
8731
- const An = new _t(), vs = [new R(), new R(), new R(), new R()], bv = mt.window.requestAnimationFrame, xs = mt.window.performance ? () => mt.window.performance.now() : () => (/* @__PURE__ */ new Date()).getTime(), Zc = bv;
8732
- class Tt {
8733
- static idCounter = 0;
8734
- id = Tt.idCounter++;
8735
- timers = /* @__PURE__ */ new Map();
8736
- timersDuration = /* @__PURE__ */ new Map();
8737
- counters = /* @__PURE__ */ new Map();
8738
- countersAmount = /* @__PURE__ */ new Map();
8739
- out = [];
8740
- constructor() {
8741
- }
8742
- destroy() {
8743
- Tt.remove(this);
8744
- }
8745
- // timers
8746
- addTimer(t, e = xs(), r = xs() - (this.timersDuration.get(t) || xs())) {
8747
- this.addTimerDuration(t, r), this.timersDuration.set(t, e);
8748
- }
8749
- addTimerDuration(t, e) {
8750
- var r;
8751
- this.timers.has(t) || this.timers.set(t, []), (r = this.timers.get(t)) == null || r.push(e);
8752
- }
8753
- calculateTimers() {
8754
- this.timers.forEach((t, e) => {
8755
- !t || !t.length || (this.out.push(this.calculateDurations(e, t)), t.length = 0);
8756
- });
8757
- }
8758
- // counters
8759
- addCounterAmount(t, e) {
8760
- var r;
8761
- this.counters.has(t) || this.counters.set(t, []), (r = this.counters.get(t)) == null || r.push(e);
8762
- }
8763
- calculateCounters() {
8764
- this.counters.forEach((t, e) => {
8765
- !t || !t.length || (this.out.push(this.calculateAmounts(e, t)), t.length = 0);
8766
- });
8767
- }
8768
- start() {
8769
- return this.stop(), Tt.add(this), this;
8770
- }
8771
- stop() {
8772
- return Tt.remove(this), this;
8773
- }
8774
- calculateDurations(t, e) {
8775
- const r = { name: t, avg: 0, min: 0, max: 0, stdDev: 0, count: 0, FPS: 0 };
8776
- if (!e || !e.length) return r;
8777
- const a = e.length, { min: u, max: l, avg: c } = this.minMaxAvg(e), f = parseFloat(this.stdDev(e, c).toFixed(2));
8778
- return { name: t, avg: this.fd(c), min: this.fd(u), max: this.fd(l), stdDev: f, count: a, FPS: Math.ceil(a / Tt.duration * 1e3) };
8779
- }
8780
- calculateAmounts(t, e) {
8781
- const r = { name: t, avg: 0, min: 0, max: 0, stdDev: 0, count: 0, FPS: 0 };
8782
- if (!e || !e.length) return r;
8783
- const a = e.length, { min: u, max: l, avg: c } = this.minMaxAvg(e), f = this.stdDev(e, c);
8784
- return { name: t, avg: c, min: u, max: l, stdDev: f, count: a, FPS: Math.ceil(a / Tt.duration * 1e3) };
8785
- }
8786
- minMaxAvg(t) {
8787
- let e = t[0], r = t[0], a = t.length, u = 0;
8788
- for (let c = 0; c < t.length; c++) {
8789
- const f = t[c];
8790
- u += f, f < e && (e = f), f > r && (r = f);
8791
- }
8792
- const l = u / a;
8793
- return { min: this.fx(e), max: this.fx(r), avg: this.fx(l) };
8794
- }
8795
- stdDev(t, e) {
8796
- let r = 0;
8797
- for (let u = 0; u < t.length; u++) {
8798
- const l = t[u];
8799
- r += (l - e) * (l - e);
8800
- }
8801
- const a = t.length;
8802
- return this.fx(Math.sqrt(r / a));
8803
- }
8804
- fd(t) {
8805
- return t > 1e3 ? (t / 1e3).toFixed(1) + "s" : t.toFixed(1) + "ms";
8806
- }
8807
- fx(t, e = 1) {
8808
- return e === 1 ? Math.round(t * 10) / 10 : e === 2 ? Math.round(t * 100) / 100 : e === 3 ? Math.round(t * 1e3) / 1e3 : t;
8809
- }
8810
- static children = [];
8811
- static isRunning = !1;
8812
- static actived = !1;
8813
- static duration = 0;
8814
- static lastTime = xs();
8815
- static messages = [];
8816
- // { avg, min, max, stdDev, count }
8817
- static maxLetters = 20;
8818
- static active(t) {
8819
- t ? Tt.actived = !0 : Tt.actived = !1, Tt.duration = t || 0;
8820
- }
8821
- static add(t) {
8822
- this.children.push(t), this.handleStart();
8823
- }
8824
- static remove(t) {
8825
- for (let e = 0, r = Tt.children.length; e < r; e++)
8826
- if (Tt.children[e].id === t.id) {
8827
- this.children.splice(e, 1);
8828
- break;
8829
- }
8830
- }
8831
- static handleStart() {
8832
- this.isRunning || (this.isRunning = !0, Zc(this.runLoop));
8833
- }
8834
- static runLoop() {
8835
- Tt.children.length ? (Tt.runFrames(), Zc(Tt.runLoop)) : Tt.isRunning = !1;
8836
- }
8837
- static runFrames() {
8838
- let t, e = xs();
8839
- if (!(e - Tt.lastTime < Tt.duration)) {
8840
- Tt.lastTime = e;
8841
- for (let r = 0, a = this.children.length; r < a; r++)
8842
- t = this.children[r], t.calculateTimers(), t.calculateCounters(), Tt.messages = Tt.messages.concat(t.out), t.out.length = 0;
8843
- if (Tt.messages.length) {
8844
- if (Tt.actived) {
8845
- let r = [];
8846
- r.push(wv), r.push(Tv), r.push(_v), this.messages.forEach((a) => r.push(Ov(a, this.maxLetters))), r.push(Cv), console.log(r.join(`
8847
- `));
8848
- }
8849
- Tt.messages.length = 0;
8850
- }
8851
- }
8852
- }
8853
- }
8854
- const tu = 20, eu = ["avg", "min", "max", "stdDev", "count", "FPS"], yi = Dv(eu, 1), wv = Sv(eu, tu), Tv = Nv(eu, tu), _v = Mv(eu, tu), Cv = Bv(tu);
8855
- function Sv(n, t = 20) {
8856
- let e = "┌";
8857
- e += "─".repeat(t), e += "┬";
8858
- for (let r = 0, a = n.length; r < a; r++)
8859
- e += "─".repeat(yi), r < a - 1 ? e += "┬" : e += "┐";
8860
- return e;
8861
- }
8862
- function Dv(n, t = 0) {
8863
- let e = 0;
8864
- for (let r = 0, a = n.length; r < a; r++)
8865
- e = Math.max(e, n[r].length);
8866
- return e + t;
8867
- }
8868
- function Nv(n, t = 20) {
8869
- let e = "│";
8870
- e += " ".repeat(t), e += "│";
8871
- for (let r = 0, a = n.length; r < a; r++)
8872
- e += " ".repeat(Math.max(yi - n[r].length - 1, 0)), e += n[r], e += " │";
8873
- return e;
8874
- }
8875
- function Mv(n, t = 20) {
8876
- let e = "├";
8877
- e += "─".repeat(t), e += "┼";
8878
- for (let r = 0, a = n.length; r < a; r++)
8879
- e += "─".repeat(yi), r < a - 1 ? e += "┴" : e += "┘";
8880
- return e;
8881
- }
8882
- function Ov(n, t = 20) {
8883
- let e = "│";
8884
- e += " ".repeat(Math.max(t - n.name.length, 0)), e += n.name, e += "│";
8885
- const r = typeof n.avg == "string" ? yi - n.avg.length : yi - n.avg.toString().length;
8886
- return e += " ".repeat(Math.max(r, 0)), e += n.avg + " ", e += " ".repeat(Math.max(yi - n.min.toString().length, 0)), e += n.min + " ", e += " ".repeat(Math.max(yi - n.max.toString().length, 0)), e += n.max + " ", e += " ".repeat(Math.max(yi - n.stdDev.toString().length, 0)), e += n.stdDev + " ", e += " ".repeat(Math.max(yi - n.count.toString().length, 0)), e += n.count + " ", e += " ".repeat(Math.max(yi - n.FPS.toString().length, 0)), e += n.FPS, e;
8887
- }
8888
- function Bv(n = 20) {
8889
- let t = "└";
8890
- for (let e = 0; e < n; e++)
8891
- t += "─";
8892
- return t += "┘", t;
8893
- }
8893
+ const An = new _t(), xs = [new R(), new R(), new R(), new R()];
8894
8894
  function Io(n) {
8895
8895
  const t = n.match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm);
8896
8896
  return t ? t.map(parseFloat) : [];
@@ -13788,7 +13788,7 @@ class eb {
13788
13788
  setTextInChildren2(t, e) {
13789
13789
  var a;
13790
13790
  let r;
13791
- ((a = t == null ? void 0 : t.children) == null ? void 0 : a.length) < 2 ? (r = xv("text"), r.setAttribute("dy", "1em"), t.appendChild(r)) : r = t.children[t.children.length - 1], r.innerHTML = e;
13791
+ ((a = t == null ? void 0 : t.children) == null ? void 0 : a.length) < 2 ? (r = Mv("text"), r.setAttribute("dy", "1em"), t.appendChild(r)) : r = t.children[t.children.length - 1], r.innerHTML = e;
13792
13792
  }
13793
13793
  traverseSvg(t, e) {
13794
13794
  var r;
@@ -15458,7 +15458,7 @@ class sb extends dr {
15458
15458
  "pinchmove",
15459
15459
  "pinchend"
15460
15460
  /* PINCH_END */
15461
- ].join(" "), this.pinchHandler), this.hammer.on("singletap", this.tapHandler), this.hammer.on("press", this.pressHandler), this.hammer.on("swipe", this.swipeHandler), this.hammer.on("hammer.input", this.hammerInputHandler), this.dom.addEventListener("contextmenu", this.contextMenuHandler), this.dom.addEventListener("mousewheel", this.wheelHandler, { passive: !1 }), this.dom.addEventListener("mousemove", this.pointerOverHandler), this.isSvg || (this.dom.addEventListener("pointerdown", this.pointerDownHandler), this.dom.addEventListener("pointerleave", this.pointerLeaveHandler));
15461
+ ].join(" "), this.pinchHandler), this.hammer.on("singletap", this.tapHandler), this.hammer.on("press", this.pressHandler), this.hammer.on("swipe", this.swipeHandler), this.hammer.on("hammer.input", this.hammerInputHandler), this.dom.addEventListener("contextmenu", this.contextMenuHandler), this.dom.addEventListener("wheel", this.wheelHandler, { passive: !1 }), this.dom.addEventListener("mousemove", this.pointerOverHandler), this.isSvg || (this.dom.addEventListener("pointerdown", this.pointerDownHandler), this.dom.addEventListener("pointerleave", this.pointerLeaveHandler));
15462
15462
  }
15463
15463
  unbindEvents() {
15464
15464
  var t, e, r, a, u, l, c, f;
@@ -15472,7 +15472,7 @@ class sb extends dr {
15472
15472
  "pinchmove",
15473
15473
  "pinchend"
15474
15474
  /* PINCH_END */
15475
- ].join(" "), this.pinchHandler), (r = this.hammer) == null || r.off("singletap", this.tapHandler), (a = this.hammer) == null || a.off("press", this.pressHandler), (u = this.hammer) == null || u.off("swipe", this.swipeHandler), (l = this.hammer) == null || l.off("hammer.input", this.hammerInputHandler), this.dom.removeEventListener("contextmenu", this.contextMenuHandler), this.dom.removeEventListener("mousewheel", this.wheelHandler), this.dom.removeEventListener("mousemove", this.pointerOverHandler), this.isSvg || (this.dom.removeEventListener("pointerdown", this.pointerDownHandler), this.dom.removeEventListener("pointerleave", this.pointerLeaveHandler)), (c = this.hammer) == null || c.stop(!0), (f = this.hammer) == null || f.destroy();
15475
+ ].join(" "), this.pinchHandler), (r = this.hammer) == null || r.off("singletap", this.tapHandler), (a = this.hammer) == null || a.off("press", this.pressHandler), (u = this.hammer) == null || u.off("swipe", this.swipeHandler), (l = this.hammer) == null || l.off("hammer.input", this.hammerInputHandler), this.dom.removeEventListener("contextmenu", this.contextMenuHandler), this.dom.removeEventListener("wheel", this.wheelHandler), this.dom.removeEventListener("mousemove", this.pointerOverHandler), this.isSvg || (this.dom.removeEventListener("pointerdown", this.pointerDownHandler), this.dom.removeEventListener("pointerleave", this.pointerLeaveHandler)), (c = this.hammer) == null || c.stop(!0), (f = this.hammer) == null || f.destroy();
15476
15476
  }
15477
15477
  // events: common logic
15478
15478
  setFocus(t, e) {
@@ -15902,7 +15902,7 @@ class db extends dr {
15902
15902
  }
15903
15903
  // ======================= output business logic =======================
15904
15904
  async load(t, e, r = 2, a) {
15905
- this.isLoadingScene || this.trans2LoadingScene(), await Ev(this.params.syncDelay);
15905
+ this.isLoadingScene || this.trans2LoadingScene(), await Ov(this.params.syncDelay);
15906
15906
  const u = await new wl().loadAsync(t);
15907
15907
  this.mainScene = new Pp(this.params), this.mainScene.bind(u), this.view.setByBox(this.mainScene.viewBox);
15908
15908
  const l = this.mainScene.getLayers(r);
@@ -16022,6 +16022,7 @@ export {
16022
16022
  $e as ColorsEnum,
16023
16023
  gb as EnvironmentWorker,
16024
16024
  mt as GLOB,
16025
+ Tt as Monitor,
16025
16026
  db as SvgApp,
16026
16027
  cb as Vector2,
16027
16028
  By as defaultConfig