@realsee/dnalogel 3.40.0-alpha.0 → 3.40.0

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.
@@ -1,144 +1,85 @@
1
- import * as l from "three";
2
- import { Vector3 as nt } from "three";
3
- import { polylineNormals as ht } from "../../vendor/polyline-normals/index.js";
4
- import { lineIsIntersecting as mt, findIntersectingOfLines as pt } from "../../shared-utils/math/intersecting.js";
1
+ import * as o from "three";
2
+ import { Vector3 as z } from "three";
3
+ import { polylineNormals as Y } from "../../vendor/polyline-normals/index.js";
5
4
  import "../../vendor/polyline-miter-util/index.js";
6
5
  import "../../vendor/gl-vec2/add.js";
7
6
  import "../../vendor/gl-vec2/set.js";
8
7
  import "../../vendor/gl-vec2/normalize.js";
9
8
  import "../../vendor/gl-vec2/subtract.js";
10
9
  import "../../vendor/gl-vec2/dot.js";
11
- const dt = 2, xt = 3, gt = 3, vt = 2;
12
- function kt(i) {
13
- const G = i.width, L = i.unitLength, V = G / 2, B = i.path;
14
- if (B.length === 0)
15
- return { geometry: new l.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
16
- const I = new l.CurvePath();
17
- B.forEach((t) => {
18
- const e = yt(t);
19
- e && I.add(e);
10
+ const Z = 2, $ = 3, j = 3, q = 2;
11
+ function at(n) {
12
+ const _ = n.width, w = n.unitLength, f = _ / 2, x = n.path;
13
+ if (x.length === 0)
14
+ return { geometry: new o.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
15
+ const u = new o.CurvePath();
16
+ x.forEach((t) => {
17
+ const c = J(t);
18
+ c && u.add(c);
20
19
  });
21
- const W = Math.ceil(I.getLength() * 100);
22
- I.arcLengthDivisions = W;
23
- const P = I.getPoints(W), x = P.length, et = ht(P.map((t) => [t.x, t.z])), ot = (x - 1) * dt * xt, X = 2 * x, st = X * gt, ct = X * vt, E = new Uint32Array(ot), n = new Float32Array(st), N = new Float32Array(ct), H = I.getLength();
24
- let R = 0, Z = 0, $ = {};
25
- const b = i.path[0].points.map((t) => new l.Vector3().fromArray(t)), j = i.path[0].panoIndexList ? [...i.path[0].panoIndexList] : void 0, q = (() => {
20
+ const T = Math.ceil(u.getLength() * 100);
21
+ u.arcLengthDivisions = T;
22
+ const s = u.getPoints(T), V = s.length, X = Y(s.map((t) => [t.x, t.z])), O = (V - 1) * Z * $, C = 2 * V, S = C * j, W = C * q, r = new Uint32Array(O), a = new Float32Array(S), d = new Float32Array(W), B = u.getLength();
23
+ let l = 0, D = 0, M = {};
24
+ const v = n.path[0].points.map((t) => new o.Vector3().fromArray(t)), y = n.path[0].panoIndexList ? [...n.path[0].panoIndexList] : void 0, k = (() => {
26
25
  const t = [];
27
- for (let s = 0; s < b.length; s++) {
28
- const u = b[s];
29
- if (s === 0)
26
+ for (let e = 0; e < v.length; e++) {
27
+ const i = v[e];
28
+ if (e === 0)
30
29
  t.push(0);
31
30
  else {
32
- const f = b[s - 1];
33
- t.push(u.distanceTo(f) + t[s - 1]);
31
+ const h = v[e - 1];
32
+ t.push(i.distanceTo(h) + t[e - 1]);
34
33
  }
35
34
  }
36
- const e = t.at(-1), p = [];
37
- for (let s = 0; s < t.length; s++) {
38
- const u = t[s], f = s === 0 ? 0 : t[s - 1], w = s === t.length - 1 ? e : t[s + 1], r = u - Math.min(0.3, (u - f) / 2), a = u + Math.min(0.3, (w - u) / 2);
39
- p.push([H * (r / e), H * (a / e)]);
35
+ const c = t.at(-1), g = [];
36
+ for (let e = 0; e < t.length; e++) {
37
+ const i = t[e], h = e === 0 ? 0 : t[e - 1], P = e === t.length - 1 ? c : t[e + 1], m = i - Math.min(0.3, (i - h) / 2), p = i + Math.min(0.3, (P - i) / 2);
38
+ g.push([B * (m / c), B * (p / c)]);
40
39
  }
41
- return p;
40
+ return g;
42
41
  })();
43
- let D = [];
44
- for (let t = 0; t < x; t++) {
45
- const [e, p] = et[t][0], s = P[t], { x: u, y: f, z: w } = s, r = new nt(u + e * V, f + 0.05, w + p * V);
46
- n[t * 6 + 0] = r.x, n[t * 6 + 1] = r.y, n[t * 6 + 2] = r.z;
47
- const a = new nt(u - e * V, f + 0.05, w - p * V);
48
- n[t * 6 + 3] = a.x, n[t * 6 + 4] = a.y, n[t * 6 + 5] = a.z, R += t > 0 ? P[t - 1].clone().sub(P[t]).length() : 0;
49
- const g = R / L;
50
- Z = g, N[t * 4 + 0] = 0, N[t * 4 + 1] = g, N[t * 4 + 2] = 1, N[t * 4 + 3] = g;
51
- const A = new l.Vector3().lerpVectors(r, a, 0.5);
52
- if (i.skipPositions && i.skipPositions.some((_) => _.distanceTo(A) < 0.26))
42
+ let E = [];
43
+ for (let t = 0; t < s.length; t++) {
44
+ const [c, g] = X[t][0], e = s[t], { x: i, y: h, z: P } = e, m = new z(i + c * f, h + 0.05, P + g * f);
45
+ a[t * 6 + 0] = m.x, a[t * 6 + 1] = m.y, a[t * 6 + 2] = m.z;
46
+ const p = new z(i - c * f, h + 0.05, P - g * f);
47
+ a[t * 6 + 3] = p.x, a[t * 6 + 4] = p.y, a[t * 6 + 5] = p.z, l += t > 0 ? s[t - 1].clone().sub(s[t]).length() : 0;
48
+ const L = l / w;
49
+ D = L, d[t * 4 + 0] = 0, d[t * 4 + 1] = L, d[t * 4 + 2] = 1, d[t * 4 + 3] = L;
50
+ const I = new o.Vector3().lerpVectors(m, p, 0.5);
51
+ if (n.skipPositions && n.skipPositions.some((N) => N.distanceTo(I) < 0.26))
53
52
  continue;
54
- const h = b[0];
55
- if (i.useAutoDepthTest && h && j) {
56
- const T = j[0], [_, v] = q[0];
57
- if (R > _ && R < v && D.push({
58
- distance: h.distanceTo(A),
53
+ const U = v[0];
54
+ if (n.useAutoDepthTest && U && y) {
55
+ const R = y[0], [N, F] = k[0];
56
+ if (l > N && l < F && E.push({
57
+ distance: U.distanceTo(I),
59
58
  index: t
60
- }), R >= v || t === x - 1) {
61
- const Y = Math.min(...D.map((M) => M.distance)), c = D.find((M) => M.distance === Y);
62
- if (D = [], b.shift(), j.shift(), q.shift(), c)
63
- $[T] = c.index;
59
+ }), l >= F || t === s.length - 1) {
60
+ const H = Math.min(...E.map((b) => b.distance)), G = E.find((b) => b.distance === H);
61
+ if (E = [], v.shift(), y.shift(), k.shift(), G)
62
+ M[R] = G.index;
64
63
  else {
65
- console.error(`can not find the min distance ${T}`);
64
+ console.error(`can not find the min distance ${R}`);
66
65
  continue;
67
66
  }
68
67
  }
69
68
  }
70
- t !== x - 1 && (E[t * 6 + 0] = t * 2 + 0, E[t * 6 + 1] = t * 2 + 2, E[t * 6 + 2] = t * 2 + 1, E[t * 6 + 3] = t * 2 + 2, E[t * 6 + 4] = t * 2 + 3, E[t * 6 + 5] = t * 2 + 1);
69
+ t !== s.length - 1 && (r[t * 6 + 0] = t * 2 + 0, r[t * 6 + 1] = t * 2 + 2, r[t * 6 + 2] = t * 2 + 1, r[t * 6 + 3] = t * 2 + 2, r[t * 6 + 4] = t * 2 + 3, r[t * 6 + 5] = t * 2 + 1);
71
70
  }
72
- const m = [], z = [];
73
- for (let t = 0; t < x - 1; t++) {
74
- const e = t + 1, p = {
75
- x: n[t * 6 + 0],
76
- y: n[t * 6 + 2]
77
- }, s = {
78
- x: n[t * 6 + 3],
79
- y: n[t * 6 + 5]
80
- }, u = {
81
- x: n[e * 6 + 0],
82
- y: n[e * 6 + 2]
83
- }, f = {
84
- x: n[e * 6 + 3],
85
- y: n[e * 6 + 5]
86
- }, w = mt([p, s], [u, f]);
87
- if (w && m.push(t), !w && m.length) {
88
- m.push(e);
89
- const r = new l.Vector2(p.x, p.y).distanceTo(new l.Vector2(u.x, u.y)), a = new l.Vector2(s.x, s.y).distanceTo(new l.Vector2(f.x, f.y)), g = [], A = [], h = Math.max(0, m[0] - L * 100), T = m[0];
90
- for (let c = h; c < T; c++)
91
- r < a ? g.push({ x: n[c * 6 + 0], y: n[c * 6 + 2] }) : g.push({ x: n[c * 6 + 3], y: n[c * 6 + 5] });
92
- const _ = m.at(-1), v = Math.min(x - 1, m.at(-1) + L * 100);
93
- for (let c = _; c < v; c++)
94
- r < a ? A.push({ x: n[c * 6 + 0], y: n[c * 6 + 2] }) : A.push({ x: n[c * 6 + 3], y: n[c * 6 + 5] });
95
- const Y = pt(g, A);
96
- if (console.log(Y, r < a, m, g, A), Y) {
97
- const {
98
- line1RelativeIndex: c,
99
- line2RelativeIndex: M,
100
- x: J,
101
- y: K
102
- } = Y, y = h + c, d = _ + M + 2;
103
- console.log(y, d, r < a);
104
- for (let o = y; o < d; o++)
105
- r < a ? (n[o * 6 + 0] = J, n[o * 6 + 2] = K) : (n[o * 6 + 3] = J, n[o * 6 + 5] = K);
106
- const Q = n[h * 6 + 1], tt = n[h * 6 + 4], it = n[y * 6 + 1], rt = n[y * 6 + 4], at = n[d * 6 + 1], lt = n[d * 6 + 4], ut = n[(v - 1) * 6 + 1], ft = n[(v - 1) * 6 + 4], F = (it + at) / 2, U = (rt + lt) / 2;
107
- for (let o = h; o < y; o++) {
108
- const O = y - h, C = (o - h) / O;
109
- r < a ? n[o * 6 + 1] = Q + (F - Q) * C : n[o * 6 + 4] = tt + (U - tt) * C;
110
- }
111
- for (let o = y; o < d; o++)
112
- r < a ? n[o * 6 + 1] = F : n[o * 6 + 4] = U;
113
- for (let o = d; o < v; o++) {
114
- const O = v - d, C = (o - d + 1) / O;
115
- r < a ? n[o * 6 + 1] = F + (ut - F) * C : n[o * 6 + 4] = U + (ft - U) * C;
116
- }
117
- z.push({
118
- start: y,
119
- end: d
120
- });
121
- }
122
- m.length = 0;
123
- }
124
- }
125
- const k = new Float32Array(X);
126
- z.forEach((t) => {
127
- for (let e = 0; e < x - 1; e++)
128
- e >= t.start && e <= t.end ? (k[e * 2 + 0] = 1, k[e * 2 + 1] = 1) : k[e] !== 1 && (k[e * 2 + 0] = 0, k[e * 2 + 1] = 0);
129
- });
130
- const S = new l.BufferGeometry();
131
- return S.setAttribute("position", new l.BufferAttribute(n, 3)), S.setAttribute("uv", new l.BufferAttribute(N, 2)), S.setIndex(new l.BufferAttribute(E, 1)), { geometry: S, maxV: Z, animationWillError: z, curvePath: I, curvePoints: P, panoMap: $, totalLength: R };
71
+ const A = new o.BufferGeometry();
72
+ return A.setAttribute("position", new o.BufferAttribute(a, 3)), A.setAttribute("uv", new o.BufferAttribute(d, 2)), A.setIndex(new o.BufferAttribute(r, 1)), { geometry: A, maxV: D, curvePath: u, curvePoints: s, panoMap: M, totalLength: l };
132
73
  }
133
- function yt(i) {
134
- if (Et(i)) {
135
- const G = [i.closed, i.curve_type, i.tension], L = i.points.map((B) => new l.Vector3().fromArray(B));
136
- return new l.CatmullRomCurve3(L, ...G);
74
+ function J(n) {
75
+ if (K(n)) {
76
+ const _ = [n.closed, n.curve_type, n.tension], w = n.points.map((x) => new o.Vector3().fromArray(x));
77
+ return new o.CatmullRomCurve3(w, ..._);
137
78
  }
138
79
  }
139
- function Et(i) {
140
- return i.type === "CatmullRomCurve3";
80
+ function K(n) {
81
+ return n.type === "CatmullRomCurve3";
141
82
  }
142
83
  export {
143
- kt as createLineGeometry
84
+ at as createLineGeometry
144
85
  };
@@ -446,7 +446,7 @@ class Ni extends j {
446
446
  updateRender: () => {
447
447
  this.five.needsRender = !0;
448
448
  }
449
- }, t)), s === !1 && (i.enabled = !1), o === !1 && this.setVisible(i), this.updateTag(i), this.updateDomView(), n === !1 && (i.dom && (i.dom.style.visibility = ""), i.contentDom && (i.contentDom.style.visibility = ""));
449
+ }, t)).finished, s === !1 && (i.enabled = !1), o === !1 && this.setVisible(i), this.updateTag(i), this.updateDomView(), n === !1 && (i.dom && (i.dom.style.visibility = ""), i.contentDom && (i.contentDom.style.visibility = ""));
450
450
  });
451
451
  }
452
452
  /**
@@ -15,7 +15,7 @@ let x = class {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- o(this, "VERSION", "3.40.0-alpha.0");
18
+ o(this, "VERSION", "3.40.0");
19
19
  o(this, "NAME");
20
20
  o(this, "five");
21
21
  o(this, "workUtil");
package/libs/index.js CHANGED
@@ -1,62 +1,62 @@
1
1
  import { consoleVersion as o } from "./shared-utils/logger.js";
2
2
  import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
3
- import { PaintBrush as ml } from "./components/PaintBrush/index.js";
4
- import { PaintBrushTypeEnum as el } from "./components/PaintBrush/typings.js";
5
- import { ModelViewPlugin as nl } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as Pl } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as fl } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as gl, modelRoomLabelPluginServerParams as sl } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as Ml } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as Ll } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as _l } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as Il } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as Sl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FLOOR_TYPE_MAP as yl, ROOM_FETILE_TYPE_MAP as Al, ROOM_TYPE_MAP as Dl } from "./floorplan/typings/floorplanServerData.js";
15
- import { ModelChassisCompassPlugin as bl } from "./ModelChassisCompassPlugin/Plugin.js";
16
- import { ModelEntryDoorGuidePlugin as Fl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
- import { CameraMovementPlugin as cl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
- import { CameraMovementEffect as Nl, Rotation as hl } from "./CameraMovementPlugin/typing.js";
19
- import { PanoRulerPlugin as wl } from "./PanoRulerPlugin/Plugin.js";
20
- import { PanoRulerProPlugin as Hl } from "./PanoRulerProPlugin/index.js";
21
- import { PanoCompassPlugin as jl } from "./PanoCompassPlugin/index.js";
22
- import { PanoMeasurePlugin as Wl } from "./PanoMeasurePlugin/index.js";
23
- import { PanoSpatialTagPlugin as zl } from "./PanoSpatialTagPlugin/Plugin.js";
24
- import { modelItemLabelPluginServerParams as Kl } from "./ModelItemLabelPlugin/index.js";
25
- import { ModelTVVideoPlugin as Xl } from "./ModelTVVideoPlugin/Plugin.js";
26
- import { DIRECTION as on } from "./ModelTVVideoPlugin/typings.js";
27
- import { itemLabelPluginServerParams as tn } from "./ItemLabelPlugin/index.js";
28
- import { PanoDoorLabelPlugin as pn } from "./PanoDoorLabelPlugin/index.js";
29
- import { GuideLinePlugin as ln } from "./GuideLinePlugin/index.js";
30
- import { CruisePlugin as an, MovePlugin as Pn } from "./CruisePlugin/index.js";
31
- import { PanoTagPlugin as fn } from "./PanoTagPlugin/index.js";
32
- import { Object3DHelperPlugin as gn } from "./Object3DHelperPlugin/index.js";
33
- import { PanoVideoPlugin as dn } from "./PanoVideoPlugin/index.js";
34
- import { PipelinePlugin as Tn } from "./PipelinePlugin/index.js";
35
- import { AreaMakerPlugin as Cn } from "./AreaMakerPlugin/index.js";
36
- import { CurrentPanoImagePlugin as En } from "./CurrentPanoImagePlugin/index.js";
37
- import { Sculpt as Rn, SculptPlugin as Sn } from "./Sculpt/index.js";
38
- import { ModelMakerPlugin as yn } from "./ModelMakerPlugin/index.js";
39
- import { index as Dn } from "./shared-utils/index.js";
40
- import { CSS3DRender as bn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
- import { Model as Fn } from "./PanoMeasurePlugin/Model/index.js";
42
- import { default as cn } from "./PanoMeasurePlugin/Model/point.js";
43
- import { default as Nn } from "./PanoMeasurePlugin/Model/line.js";
44
- import { Polyline as kn } from "./PanoMeasurePlugin/Model/polyline.js";
45
- import { Magnifier as Bn } from "./shared-utils/three/Magnifier.js";
46
- import { DISPLAY_STRATEGY_TYPE as Un } from "./ModelItemLabelPlugin/typings.js";
47
- import { ModelItemLabelPlugin as $n } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as qn } from "./ItemLabelPlugin/typings.js";
49
- import { Plugin as Jn } from "./ItemLabelPlugin/Plugin.js";
50
- import { GuideLineItem$1 as Qn } from "./GuideLinePlugin/GuideLineItem/index.js";
51
- import { GuideLineModeItem$1 as Zn } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
- import { default as ra, default as ta } from "./CruisePlugin/Work.js";
53
- import { default as ma } from "./CruisePlugin/Move.js";
54
- import { typing as ea } from "./CruisePlugin/typing/index.js";
55
- import { default as na, pluginFlag as aa } from "./PanoTagPlugin/controller/index.js";
56
- import { defaultGlobalConfig as ua } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
- import { ContentType as xa, DimensionType as ga, PointType as sa } from "./PanoTagPlugin/Archive/deprecated.js";
58
- import { Object3DHelperController as Ma, PLUGIN as Ta } from "./Object3DHelperPlugin/Controller.js";
59
- import { typings as Ca } from "./PanoVideoPlugin/typings/index.js";
3
+ import { PaintBrush as il } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as pl } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as ll } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as al } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as ul } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as xl, modelRoomLabelPluginServerParams as gl } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as dl } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as Tl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as Cl } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as El } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as Rl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FLOOR_TYPE_MAP as Ol, ROOM_FETILE_TYPE_MAP as yl, ROOM_TYPE_MAP as Al } from "./floorplan/typings/floorplanServerData.js";
15
+ import { ModelChassisCompassPlugin as Gl } from "./ModelChassisCompassPlugin/Plugin.js";
16
+ import { ModelEntryDoorGuidePlugin as vl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
+ import { CameraMovementPlugin as Yl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
+ import { CameraMovementEffect as Vl, Rotation as Nl } from "./CameraMovementPlugin/typing.js";
19
+ import { PanoRulerPlugin as kl } from "./PanoRulerPlugin/Plugin.js";
20
+ import { PanoRulerProPlugin as Bl } from "./PanoRulerProPlugin/index.js";
21
+ import { PanoCompassPlugin as Ul } from "./PanoCompassPlugin/index.js";
22
+ import { PanoMeasurePlugin as $l } from "./PanoMeasurePlugin/index.js";
23
+ import { PanoSpatialTagPlugin as ql } from "./PanoSpatialTagPlugin/Plugin.js";
24
+ import { modelItemLabelPluginServerParams as Jl } from "./ModelItemLabelPlugin/index.js";
25
+ import { ModelTVVideoPlugin as Ql } from "./ModelTVVideoPlugin/Plugin.js";
26
+ import { DIRECTION as Zl } from "./ModelTVVideoPlugin/typings.js";
27
+ import { itemLabelPluginServerParams as rn } from "./ItemLabelPlugin/index.js";
28
+ import { PanoDoorLabelPlugin as mn } from "./PanoDoorLabelPlugin/index.js";
29
+ import { GuideLinePlugin as en } from "./GuideLinePlugin/index.js";
30
+ import { CruisePlugin as nn, MovePlugin as an } from "./CruisePlugin/index.js";
31
+ import { PanoTagPlugin as un } from "./PanoTagPlugin/index.js";
32
+ import { Object3DHelperPlugin as xn } from "./Object3DHelperPlugin/index.js";
33
+ import { PanoVideoPlugin as sn } from "./PanoVideoPlugin/index.js";
34
+ import { PipelinePlugin as Mn } from "./PipelinePlugin/index.js";
35
+ import { AreaMakerPlugin as Ln } from "./AreaMakerPlugin/index.js";
36
+ import { CurrentPanoImagePlugin as _n } from "./CurrentPanoImagePlugin/index.js";
37
+ import { Sculpt as In, SculptPlugin as Rn } from "./Sculpt/index.js";
38
+ import { ModelMakerPlugin as On } from "./ModelMakerPlugin/index.js";
39
+ import { index as An } from "./shared-utils/index.js";
40
+ import { CSS3DRender as Gn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
+ import { Model as vn } from "./PanoMeasurePlugin/Model/index.js";
42
+ import { default as Yn } from "./PanoMeasurePlugin/Model/point.js";
43
+ import { default as Vn } from "./PanoMeasurePlugin/Model/line.js";
44
+ import { Polyline as hn } from "./PanoMeasurePlugin/Model/polyline.js";
45
+ import { Magnifier as wn } from "./shared-utils/three/Magnifier.js";
46
+ import { DISPLAY_STRATEGY_TYPE as Hn } from "./ModelItemLabelPlugin/typings.js";
47
+ import { ModelItemLabelPlugin as jn } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Wn } from "./ItemLabelPlugin/typings.js";
49
+ import { Plugin as zn } from "./ItemLabelPlugin/Plugin.js";
50
+ import { GuideLineItem$1 as Kn } from "./GuideLinePlugin/GuideLineItem/index.js";
51
+ import { GuideLineModeItem$1 as Xn } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
+ import { default as oa, default as ra } from "./CruisePlugin/Work.js";
53
+ import { default as ia } from "./CruisePlugin/Move.js";
54
+ import { typing as pa } from "./CruisePlugin/typing/index.js";
55
+ import { default as la, pluginFlag as na } from "./PanoTagPlugin/controller/index.js";
56
+ import { defaultGlobalConfig as Pa } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
+ import { ContentType as fa, DimensionType as xa, PointType as ga } from "./PanoTagPlugin/Archive/deprecated.js";
58
+ import { Object3DHelperController as da, PLUGIN as Ma } from "./Object3DHelperPlugin/Controller.js";
59
+ import { typings as La } from "./PanoVideoPlugin/typings/index.js";
60
60
  import "./components/PaintBrush/Controller.js";
61
61
  import "./components/PaintBrush/utils.js";
62
62
  import "./components/PaintBrush/tween.js";
@@ -265,7 +265,6 @@ import "./vendor/gl-vec2/set.js";
265
265
  import "./vendor/gl-vec2/normalize.js";
266
266
  import "./vendor/gl-vec2/subtract.js";
267
267
  import "./vendor/gl-vec2/dot.js";
268
- import "./shared-utils/math/intersecting.js";
269
268
  import "./shared-utils/five/mode.js";
270
269
  import "./PanoTagPlugin/utils/addDebugPoints.js";
271
270
  import "./PanoTagPlugin/utils/tag/tagCheck.js";
@@ -489,72 +488,72 @@ import "./shared-utils/three/getIntersect.js";
489
488
  r();
490
489
  o();
491
490
  export {
492
- Cn as AreaMakerPlugin,
493
- bn as CSS3DRender,
494
- Pl as CSS3DRenderPlugin,
495
- Nl as CameraMovementEffect,
496
- cl as CameraMovementPlugin,
497
- xa as ContentType,
498
- an as CruisePlugin,
499
- ra as CruisePluginController,
500
- ea as CruisePluginTypes,
501
- En as CurrentPanoImagePlugin,
502
- on as DIRECTION,
503
- Un as DISPLAY_STRATEGY_TYPE,
504
- ga as DimensionType,
505
- Ml as FLOOR_PLAN_ATTACHED_TO,
506
- yl as FLOOR_TYPE_MAP,
507
- Qn as GuideLineItem,
508
- Zn as GuideLineModeItem,
509
- ln as GuideLinePlugin,
510
- qn as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
511
- Jn as ItemLabelPlugin,
512
- Bn as Magnifier,
513
- _l as MapviewFloorplanPlugin,
514
- bl as ModelChassisCompassPlugin,
515
- Fl as ModelEntryDoorGuidePlugin,
516
- Ll as ModelFloorplanPlugin,
517
- $n as ModelItemLabelPlugin,
518
- yn as ModelMakerPlugin,
519
- gl as ModelRoomLabelPlugin,
520
- Xl as ModelTVVideoPlugin,
521
- nl as ModelViewPlugin,
522
- ma as MoveController,
523
- Pn as MovePlugin,
524
- Ma as Object3DHelperController,
525
- gn as Object3DHelperPlugin,
526
- Ta as PLUGIN,
527
- ml as PaintBrush,
528
- el as PaintBrushTypeEnum,
529
- jl as PanoCompassPlugin,
530
- fl as PanoCursorRaycasterPlugin,
531
- pn as PanoDoorLabelPlugin,
532
- Sl as PanoFloorplanRadarPlugin,
533
- Wl as PanoMeasurePlugin,
534
- Nn as PanoMeasurePluginLine,
535
- Fn as PanoMeasurePluginModel,
536
- cn as PanoMeasurePluginPoint,
537
- kn as PanoMeasurePluginPolyline,
538
- wl as PanoRulerPlugin,
539
- Hl as PanoRulerProPlugin,
540
- zl as PanoSpatialTagPlugin,
541
- fn as PanoTagPlugin,
542
- na as PanoTagPluginController,
543
- dn as PanoVideoPlugin,
544
- Ca as PanoVideoPluginType,
545
- Tn as PipelinePlugin,
546
- sa as PointType,
547
- Al as ROOM_FETILE_TYPE_MAP,
548
- Dl as ROOM_TYPE_MAP,
549
- hl as Rotation,
550
- Rn as Sculpt,
551
- Sn as SculptPlugin,
552
- Il as TopviewFloorplanPlugin,
553
- Dn as Util,
554
- ta as WalkController,
555
- ua as defaultGlobalConfig,
556
- tn as itemLabelPluginServerParams,
557
- Kl as modelItemLabelPluginServerParams,
558
- sl as modelRoomLabelPluginServerParams,
559
- aa as pluginFlag
491
+ Ln as AreaMakerPlugin,
492
+ Gn as CSS3DRender,
493
+ al as CSS3DRenderPlugin,
494
+ Vl as CameraMovementEffect,
495
+ Yl as CameraMovementPlugin,
496
+ fa as ContentType,
497
+ nn as CruisePlugin,
498
+ oa as CruisePluginController,
499
+ pa as CruisePluginTypes,
500
+ _n as CurrentPanoImagePlugin,
501
+ Zl as DIRECTION,
502
+ Hn as DISPLAY_STRATEGY_TYPE,
503
+ xa as DimensionType,
504
+ dl as FLOOR_PLAN_ATTACHED_TO,
505
+ Ol as FLOOR_TYPE_MAP,
506
+ Kn as GuideLineItem,
507
+ Xn as GuideLineModeItem,
508
+ en as GuideLinePlugin,
509
+ Wn as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
510
+ zn as ItemLabelPlugin,
511
+ wn as Magnifier,
512
+ Cl as MapviewFloorplanPlugin,
513
+ Gl as ModelChassisCompassPlugin,
514
+ vl as ModelEntryDoorGuidePlugin,
515
+ Tl as ModelFloorplanPlugin,
516
+ jn as ModelItemLabelPlugin,
517
+ On as ModelMakerPlugin,
518
+ xl as ModelRoomLabelPlugin,
519
+ Ql as ModelTVVideoPlugin,
520
+ ll as ModelViewPlugin,
521
+ ia as MoveController,
522
+ an as MovePlugin,
523
+ da as Object3DHelperController,
524
+ xn as Object3DHelperPlugin,
525
+ Ma as PLUGIN,
526
+ il as PaintBrush,
527
+ pl as PaintBrushTypeEnum,
528
+ Ul as PanoCompassPlugin,
529
+ ul as PanoCursorRaycasterPlugin,
530
+ mn as PanoDoorLabelPlugin,
531
+ Rl as PanoFloorplanRadarPlugin,
532
+ $l as PanoMeasurePlugin,
533
+ Vn as PanoMeasurePluginLine,
534
+ vn as PanoMeasurePluginModel,
535
+ Yn as PanoMeasurePluginPoint,
536
+ hn as PanoMeasurePluginPolyline,
537
+ kl as PanoRulerPlugin,
538
+ Bl as PanoRulerProPlugin,
539
+ ql as PanoSpatialTagPlugin,
540
+ un as PanoTagPlugin,
541
+ la as PanoTagPluginController,
542
+ sn as PanoVideoPlugin,
543
+ La as PanoVideoPluginType,
544
+ Mn as PipelinePlugin,
545
+ ga as PointType,
546
+ yl as ROOM_FETILE_TYPE_MAP,
547
+ Al as ROOM_TYPE_MAP,
548
+ Nl as Rotation,
549
+ In as Sculpt,
550
+ Rn as SculptPlugin,
551
+ El as TopviewFloorplanPlugin,
552
+ An as Util,
553
+ ra as WalkController,
554
+ Pa as defaultGlobalConfig,
555
+ rn as itemLabelPluginServerParams,
556
+ Jl as modelItemLabelPluginServerParams,
557
+ gl as modelRoomLabelPluginServerParams,
558
+ na as pluginFlag
560
559
  };
@@ -6,50 +6,51 @@ import { getCoordsFromClient as m, getCoordsFromElement as i } from "./three/get
6
6
  import { getRaycasterFromFivePointer as n } from "./three/getRaycaster.js";
7
7
  import { getIntersectFromRelativePosition as p } from "./three/getIntersect.js";
8
8
  import { PointHelper as l } from "./three/PointHelper.js";
9
- import { PointDomHelper as f } from "./three/PointDomHelper.js";
10
- import { PointSelectorHelper as a } from "./three/PointSelectorHelper.js";
9
+ import { PointDomHelper as a } from "./three/PointDomHelper.js";
10
+ import { PointSelectorHelper as f } from "./three/PointSelectorHelper.js";
11
11
  import { Object3D as s } from "./three/core/Object3D.js";
12
12
  import { LineSegments as g } from "./three/objects/LineSegments.js";
13
- import { blink as c, reblink as d } from "./three/blink.js";
14
- import { isNil as F, notNil as u } from "./isNil.js";
15
- import { uuid as b } from "./uuid.js";
16
- import { absoluteUrl as P, isAbsoluteURL as v } from "./url/absoluteUrl.js";
17
- import { awaitNextFrame as k, getFrameTime as L, nextFrame as x, requestAnimationFrameInterval as M } from "./animationFrame/index.js";
18
- import { equal as R } from "./equal.js";
19
- import { isModelLike as S, isPanoramaLike as _ } from "./five/mode.js";
20
- import { BetterTween as j, tweenProgress as w } from "./animationFrame/BetterTween.js";
21
- const W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13
+ import { animeMap as c, blink as d, reblink as F } from "./three/blink.js";
14
+ import { isNil as u, notNil as b } from "./isNil.js";
15
+ import { uuid as P } from "./uuid.js";
16
+ import { absoluteUrl as v, isAbsoluteURL as k } from "./url/absoluteUrl.js";
17
+ import { awaitNextFrame as L, getFrameTime as M, nextFrame as x, requestAnimationFrameInterval as R } from "./animationFrame/index.js";
18
+ import { equal as S } from "./equal.js";
19
+ import { isModelLike as _, isPanoramaLike as j } from "./five/mode.js";
20
+ import { BetterTween as w, tweenProgress as y } from "./animationFrame/BetterTween.js";
21
+ const X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22
22
  __proto__: null,
23
- BetterTween: j,
23
+ BetterTween: w,
24
24
  Interval: o,
25
25
  LineSegments: g,
26
26
  Magnifier: t,
27
27
  Object3D: s,
28
- PointDomHelper: f,
28
+ PointDomHelper: a,
29
29
  PointHelper: l,
30
- PointSelectorHelper: a,
30
+ PointSelectorHelper: f,
31
31
  Rectangle: r,
32
- absoluteUrl: P,
33
- awaitNextFrame: k,
34
- blink: c,
32
+ absoluteUrl: v,
33
+ animeMap: c,
34
+ awaitNextFrame: L,
35
+ blink: d,
35
36
  checkFiveModelLoaded: e,
36
- equal: R,
37
+ equal: S,
37
38
  getCoordsFromClient: m,
38
39
  getCoordsFromElement: i,
39
- getFrameTime: L,
40
+ getFrameTime: M,
40
41
  getIntersectFromRelativePosition: p,
41
42
  getRaycasterFromFivePointer: n,
42
- isAbsoluteURL: v,
43
- isModelLike: S,
44
- isNil: F,
45
- isPanoramaLike: _,
43
+ isAbsoluteURL: k,
44
+ isModelLike: _,
45
+ isNil: u,
46
+ isPanoramaLike: j,
46
47
  nextFrame: x,
47
- notNil: u,
48
- reblink: d,
49
- requestAnimationFrameInterval: M,
50
- tweenProgress: w,
51
- uuid: b
48
+ notNil: b,
49
+ reblink: F,
50
+ requestAnimationFrameInterval: R,
51
+ tweenProgress: y,
52
+ uuid: P
52
53
  }, Symbol.toStringTag, { value: "Module" }));
53
54
  export {
54
- W as index
55
+ X as index
55
56
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.40.0-alpha.0",
3
+ "%c %c@realsee/dnalogel %cv3.40.0",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
@@ -11,7 +11,14 @@ interface BlinkAnimeOptions extends anime.AnimeParams {
11
11
  interface ReBlinkAnimeOptions extends BlinkAnimeOptions {
12
12
  maxOpacity?: number;
13
13
  }
14
+ interface AnimeInstance extends anime.AnimeInstance {
15
+ /**
16
+ * @description 提前结束动画
17
+ */
18
+ preComplete: () => void;
19
+ }
14
20
  type Target = HTMLElement | THREE.Object3D;
21
+ declare const animeMap: Map<Target | Target[], AnimeInstance>;
15
22
  /**
16
23
  * @description 闪烁一个物体/Dom
17
24
  * @param animeOptions https://animejs.com/documentation/
@@ -23,12 +30,12 @@ type Target = HTMLElement | THREE.Object3D;
23
30
  * blink(document.getElementById('id'), { loop: 5 * 2 })
24
31
  * ```
25
32
  */
26
- declare function blink(objects: Target | Target[], animeOptions?: BlinkAnimeOptions): Promise<void>;
33
+ declare function blink(objects: Target | Target[], animeOptions?: BlinkAnimeOptions): AnimeInstance;
27
34
  /**
28
35
  * @description 闪烁一个不可见的物体/Dom
29
36
  *
30
37
  * 适用于物体/Dom在初始状态不可见的情况,闪烁完成后的状态为初始不可见的状态
31
38
  * @param animeOptions https://animejs.com/documentation/
32
39
  */
33
- declare function reblink(objects: Target | Target[], animeOptions?: BlinkAnimeOptions): Promise<void>;
34
- export { blink, reblink, type BlinkAnimeOptions, type ReBlinkAnimeOptions };
40
+ declare function reblink(objects: Target | Target[], animeOptions?: BlinkAnimeOptions): AnimeInstance;
41
+ export { blink, reblink, animeMap, type BlinkAnimeOptions, type ReBlinkAnimeOptions, type AnimeInstance };