@realsee/dnalogel 2.27.4-0 → 2.27.4-2
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.
- package/dist/AreaMakerPlugin/index.d.ts +3 -3
- package/dist/floorplan/utils/correctFiveState.d.ts +2 -0
- package/dist/index.cjs.js +49 -49
- package/dist/index.js +1998 -1994
- package/dist/index.umd.js +41 -41
- package/libs/AreaMakerPlugin/index.d.ts +3 -3
- package/libs/AreaMakerPlugin/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +49 -48
- package/libs/floorplan/utils/correctFiveState.d.ts +2 -0
- package/libs/floorplan/utils/correctFiveState.js +28 -28
- package/libs/index.js +6 -6
- package/libs/shared-utils/five/changeMode.js +32 -29
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
|
-
import type * as
|
|
3
|
-
export declare const
|
|
4
|
-
export type {
|
|
2
|
+
import type * as AreaMakerPluginType from './typing';
|
|
3
|
+
export declare const AreaMakerPlugin: (five: Five) => AreaMakerPluginType.AreaMakerController;
|
|
4
|
+
export type { AreaMakerPluginType };
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var m = (d,
|
|
6
|
-
for (var t in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
1
|
+
var A = Object.defineProperty, P = Object.defineProperties;
|
|
2
|
+
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var g = Object.getOwnPropertySymbols;
|
|
4
|
+
var C = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (d, r, t) => r in d ? A(d, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[r] = t, c = (d, r) => {
|
|
6
|
+
for (var t in r || (r = {}))
|
|
7
|
+
C.call(r, t) && m(d, t, r[t]);
|
|
8
|
+
if (g)
|
|
9
|
+
for (var t of g(r))
|
|
10
|
+
I.call(r, t) && m(d, t, r[t]);
|
|
11
11
|
return d;
|
|
12
|
-
}, v = (d,
|
|
13
|
-
var o = (d,
|
|
14
|
-
var u = (d,
|
|
15
|
-
var
|
|
12
|
+
}, v = (d, r) => P(d, E(r));
|
|
13
|
+
var o = (d, r, t) => (m(d, typeof r != "symbol" ? r + "" : r, t), t);
|
|
14
|
+
var u = (d, r, t) => new Promise((e, i) => {
|
|
15
|
+
var n = (a) => {
|
|
16
16
|
try {
|
|
17
17
|
s(t.next(a));
|
|
18
18
|
} catch (l) {
|
|
@@ -24,21 +24,21 @@ var u = (d, n, t) => new Promise((e, i) => {
|
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(
|
|
28
|
-
s((t = t.apply(d,
|
|
27
|
+
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(n, h);
|
|
28
|
+
s((t = t.apply(d, r)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as w from "three";
|
|
31
31
|
import { to as y } from "../../shared-utils/to.js";
|
|
32
32
|
import { equal as F } from "../../shared-utils/equal.js";
|
|
33
33
|
import { Main as x } from "../Components/Main.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as b } from "../utils/formatData.js";
|
|
35
35
|
import { CAMERA_IMAGE as M } from "../Assets/camera.js";
|
|
36
36
|
import { omit as _ } from "../../shared-utils/filter.js";
|
|
37
37
|
import { FLOOR_PLAN_ATTACHED_TO as L } from "../constant.js";
|
|
38
38
|
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
39
39
|
import { getPxmm as D, getAttachedY as T } from "../../shared-utils/getPxmm.js";
|
|
40
40
|
import { checkShowState as k, correctFiveState as H } from "../utils/correctFiveState.js";
|
|
41
|
-
import { changeModelCanvasOpacity as
|
|
41
|
+
import { changeModelCanvasOpacity as S } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
42
|
import { FloorplanErrorType as f, SHOW_ANIME_DURATION as R } from "../utils/constant.js";
|
|
43
43
|
import "../../shared-utils/isTruelyObject.js";
|
|
44
44
|
import "../../vendor/svelte/internal/index.js";
|
|
@@ -90,11 +90,11 @@ import "../../shared-utils/absoluteUrl.js";
|
|
|
90
90
|
import "../../shared-utils/nearlyEqual.js";
|
|
91
91
|
import "../../shared-utils/five/changeMode.js";
|
|
92
92
|
function G(d) {
|
|
93
|
-
const { latitude:
|
|
93
|
+
const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
94
94
|
return e || i;
|
|
95
95
|
}
|
|
96
96
|
function W(d) {
|
|
97
|
-
const { latitude:
|
|
97
|
+
const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
98
98
|
return e && i;
|
|
99
99
|
}
|
|
100
100
|
class Jt extends O {
|
|
@@ -160,7 +160,7 @@ class Jt extends O {
|
|
|
160
160
|
o(this, "updateSize", () => {
|
|
161
161
|
if (!this.data || !k(this.five, this.showState) || !this.container || !this.wrapper)
|
|
162
162
|
return;
|
|
163
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x,
|
|
163
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, n = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, s = D(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), l = Math.ceil(n * s);
|
|
164
164
|
this.size.width === a && this.size.height === l || (this.container.style.width = a + "px", this.container.style.height = l + "px", this.size = { width: a, height: l });
|
|
165
165
|
});
|
|
166
166
|
o(this, "highlight", (t) => {
|
|
@@ -170,9 +170,9 @@ class Jt extends O {
|
|
|
170
170
|
this.highlightData = {}, this.render();
|
|
171
171
|
});
|
|
172
172
|
o(this, "_disable", (t) => {
|
|
173
|
-
var i,
|
|
173
|
+
var i, n, h;
|
|
174
174
|
const { userAction: e } = t;
|
|
175
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (
|
|
175
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
|
|
176
176
|
});
|
|
177
177
|
o(this, "_enable", (t) => {
|
|
178
178
|
const { userAction: e } = t;
|
|
@@ -194,7 +194,7 @@ class Jt extends O {
|
|
|
194
194
|
immediately: !1,
|
|
195
195
|
isAutoShow: !1,
|
|
196
196
|
userAction: !0
|
|
197
|
-
}, i = c(c({}, e), t),
|
|
197
|
+
}, i = c(c({}, e), t), n = () => u(this, null, function* () {
|
|
198
198
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
199
199
|
let s = !1, a;
|
|
200
200
|
this.showRejection = (p) => {
|
|
@@ -207,10 +207,10 @@ class Jt extends O {
|
|
|
207
207
|
throw a ? new Error(a) : new Error(f.UnknownError);
|
|
208
208
|
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
209
209
|
});
|
|
210
|
-
return this.isHiddenByHideFunc = !1, this.showPromise =
|
|
210
|
+
return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
|
|
211
211
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
212
212
|
const s = i.modelOpacity, a = i.immediately ? 0 : R;
|
|
213
|
-
|
|
213
|
+
S(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
|
|
214
214
|
auto: i.isAutoShow,
|
|
215
215
|
userAction: i.userAction
|
|
216
216
|
});
|
|
@@ -220,13 +220,13 @@ class Jt extends O {
|
|
|
220
220
|
}), this.showPromise;
|
|
221
221
|
}));
|
|
222
222
|
o(this, "_hide", (t) => {
|
|
223
|
-
var
|
|
224
|
-
(
|
|
223
|
+
var n;
|
|
224
|
+
(n = this.showRejection) == null || n.call(this, f.BreakOffByHide), this.showPromise = void 0;
|
|
225
225
|
const i = c(c({}, {
|
|
226
226
|
userAction: !0,
|
|
227
227
|
isAutoHide: !1
|
|
228
228
|
}), t);
|
|
229
|
-
|
|
229
|
+
S(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
230
230
|
});
|
|
231
231
|
o(this, "handleClick", () => {
|
|
232
232
|
if (!this.state.visible)
|
|
@@ -236,12 +236,13 @@ class Jt extends O {
|
|
|
236
236
|
});
|
|
237
237
|
/** modelLoaded 之后自动执行 append container 操作 */
|
|
238
238
|
o(this, "onFiveModelLoaded", () => {
|
|
239
|
-
|
|
239
|
+
const e = this.five.model.bounding.getCenter(new w.Vector3());
|
|
240
|
+
if (this.showState.offset = e, this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
240
241
|
return;
|
|
241
|
-
const
|
|
242
|
-
if (!
|
|
242
|
+
const i = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
243
|
+
if (!i)
|
|
243
244
|
throw new Error("不正确的父容器选择器");
|
|
244
|
-
this.wrapper =
|
|
245
|
+
this.wrapper = i, i.append(this.container);
|
|
245
246
|
});
|
|
246
247
|
/** 更改模型时,自动隐藏户型图 */
|
|
247
248
|
o(this, "onFiveModeChange", (t) => {
|
|
@@ -292,7 +293,7 @@ class Jt extends O {
|
|
|
292
293
|
mode: "Mapview",
|
|
293
294
|
longitude: 0,
|
|
294
295
|
latitude: Math.PI / 2,
|
|
295
|
-
fov:
|
|
296
|
+
fov: 80
|
|
296
297
|
};
|
|
297
298
|
const i = {
|
|
298
299
|
northDesc: "北",
|
|
@@ -312,7 +313,7 @@ class Jt extends O {
|
|
|
312
313
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
313
314
|
getRoomAreaText: (s) => (s / 1e6).toFixed(1) + "㎡",
|
|
314
315
|
getRuleDistanceText: (s) => s.toString()
|
|
315
|
-
},
|
|
316
|
+
}, n = e ? _(e, ["selector", "scale"]) : {}, h = c(c({}, i), n);
|
|
316
317
|
this.state = {
|
|
317
318
|
enabled: !0,
|
|
318
319
|
visible: !1,
|
|
@@ -321,13 +322,13 @@ class Jt extends O {
|
|
|
321
322
|
}
|
|
322
323
|
load(t, e, i = !0) {
|
|
323
324
|
return u(this, null, function* () {
|
|
324
|
-
function
|
|
325
|
+
function n(p) {
|
|
325
326
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
326
327
|
}
|
|
327
328
|
const h = t;
|
|
328
329
|
h && !h.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
329
|
-
const s = JSON.parse(JSON.stringify(t)), a =
|
|
330
|
-
this.data = yield
|
|
330
|
+
const s = JSON.parse(JSON.stringify(t)), a = n(s) ? s.data : s, l = this.data;
|
|
331
|
+
this.data = yield b(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
|
|
331
332
|
});
|
|
332
333
|
}
|
|
333
334
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -351,9 +352,9 @@ class Jt extends O {
|
|
|
351
352
|
}
|
|
352
353
|
/** 更改插件 State */
|
|
353
354
|
setState(t, e = {}) {
|
|
354
|
-
const i = this.state,
|
|
355
|
-
if (this.updateState(t,
|
|
356
|
-
const h = { userAction:
|
|
355
|
+
const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
|
|
356
|
+
if (this.updateState(t, n), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: n }) : this._disable({ userAction: n })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
357
|
+
const h = { userAction: n };
|
|
357
358
|
t.visible ? this._show(h) : this._hide(h);
|
|
358
359
|
}
|
|
359
360
|
}
|
|
@@ -363,20 +364,20 @@ class Jt extends O {
|
|
|
363
364
|
/** 更新户型图位置 */
|
|
364
365
|
updatePosition() {
|
|
365
366
|
var s;
|
|
366
|
-
const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new
|
|
367
|
+
const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new w.Vector3()).setY(t);
|
|
367
368
|
if (!e)
|
|
368
369
|
return;
|
|
369
|
-
const i = e.clone().project(this.five.camera),
|
|
370
|
-
this.container.style.left =
|
|
370
|
+
const i = e.clone().project(this.five.camera), n = (i.x + 1) / 2, h = -(i.y - 1) / 2;
|
|
371
|
+
this.container.style.left = n * 100 + "%", this.container.style.top = h * 100 + "%";
|
|
371
372
|
}
|
|
372
373
|
formatData(t) {
|
|
373
374
|
return u(this, null, function* () {
|
|
374
|
-
return yield
|
|
375
|
+
return yield b(t.data);
|
|
375
376
|
});
|
|
376
377
|
}
|
|
377
378
|
updateState(t, e) {
|
|
378
|
-
const i = this.state,
|
|
379
|
-
this.state = v(c(c({}, this.state), t), { config:
|
|
379
|
+
const i = this.state, n = t.config ? c(c({}, i.config), t.config) : i.config;
|
|
380
|
+
this.state = v(c(c({}, this.state), t), { config: n }), !F(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
380
381
|
}
|
|
381
382
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
382
383
|
*
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type * as THREE from 'three';
|
|
1
2
|
import type { Five, Mode } from '@realsee/five';
|
|
2
3
|
export interface ShowState {
|
|
3
4
|
latitude: number;
|
|
4
5
|
longitude: number;
|
|
5
6
|
fov: number;
|
|
6
7
|
mode: Mode;
|
|
8
|
+
offset?: THREE.Vector3;
|
|
7
9
|
}
|
|
8
10
|
/** 判断当前状态是否可以展示户型图 */
|
|
9
11
|
export declare function checkShowState(five: Five, showState: ShowState): boolean;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var i = (
|
|
1
|
+
var c = (e, r, o) => new Promise((d, a) => {
|
|
2
|
+
var i = (t) => {
|
|
3
3
|
try {
|
|
4
|
-
u(
|
|
5
|
-
} catch (
|
|
6
|
-
a(
|
|
4
|
+
u(o.next(t));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
a(f);
|
|
7
7
|
}
|
|
8
|
-
}, n = (
|
|
8
|
+
}, n = (t) => {
|
|
9
9
|
try {
|
|
10
|
-
u(
|
|
11
|
-
} catch (
|
|
12
|
-
a(
|
|
10
|
+
u(o.throw(t));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
a(f);
|
|
13
13
|
}
|
|
14
|
-
}, u = (
|
|
15
|
-
u((
|
|
14
|
+
}, u = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(i, n);
|
|
15
|
+
u((o = o.apply(e, r)).next());
|
|
16
16
|
});
|
|
17
|
-
import { to as
|
|
18
|
-
import { FloorplanErrorType as
|
|
17
|
+
import { to as l } from "../../shared-utils/to.js";
|
|
18
|
+
import { FloorplanErrorType as m } from "./constant.js";
|
|
19
19
|
import { nearlyEqual as s } from "../../shared-utils/nearlyEqual.js";
|
|
20
20
|
import { changeMode as p } from "../../shared-utils/five/changeMode.js";
|
|
21
|
-
function g(
|
|
22
|
-
if (
|
|
21
|
+
function g(e, r) {
|
|
22
|
+
if (e.currentMode !== r.mode)
|
|
23
23
|
return !1;
|
|
24
|
-
const { latitude:
|
|
25
|
-
return !(!s(
|
|
24
|
+
const { latitude: o, longitude: d, fov: a, offset: i } = r, { latitude: n, longitude: u, offset: t } = e.getCurrentState(), f = e.camera.fov;
|
|
25
|
+
return !(!s(o, n, 2) || !s(d, u, 2) || i !== void 0 && i.distanceTo(t) > 0.01 || a !== f);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
if (g(
|
|
27
|
+
function y(e, r, o = !0) {
|
|
28
|
+
return c(this, null, function* () {
|
|
29
|
+
if (g(e, r) === !0)
|
|
30
30
|
return;
|
|
31
|
-
const a =
|
|
31
|
+
const a = e.getCurrentState();
|
|
32
32
|
if (a.mode !== r.mode) {
|
|
33
|
-
const [M] = yield
|
|
33
|
+
const [M] = yield l(p(e, [r.mode, r, void 0, o]));
|
|
34
34
|
if (M)
|
|
35
|
-
throw new Error(
|
|
35
|
+
throw new Error(m.ChangeModeError);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
const { latitude: i, longitude: n, fov: u } = a,
|
|
38
|
+
const { latitude: i, longitude: n, fov: u } = a, t = Math.min(
|
|
39
39
|
1e3,
|
|
40
40
|
Math.max(
|
|
41
41
|
200,
|
|
@@ -43,12 +43,12 @@ function F(t, r, e = !0) {
|
|
|
43
43
|
(n > Math.PI ? 2 * Math.PI - n : n) * 500,
|
|
44
44
|
Math.abs(u - r.fov) * 10
|
|
45
45
|
)
|
|
46
|
-
), [
|
|
47
|
-
if (
|
|
48
|
-
throw new Error(
|
|
46
|
+
), [f] = yield l(e.updateCamera(r, t, o));
|
|
47
|
+
if (f)
|
|
48
|
+
throw new Error(m.UpdateCameraError);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
52
|
g as checkShowState,
|
|
53
|
-
|
|
53
|
+
y as correctFiveState
|
|
54
54
|
};
|
package/libs/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { PanoFloorplanRadarPlugin as te } from "./floorplan/PanoFloorplanRadarPl
|
|
|
14
14
|
import { FLOOR_TYPE_MAP as me, ROOM_FETILE_TYPE_MAP as pe, ROOM_TYPE_MAP as ee } from "./floorplan/typings/floorplanServerData.js";
|
|
15
15
|
import { ModelChassisCompassPlugin as le } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
16
|
import { ModelEntryDoorGuidePlugin as Pe } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
-
import { CameraMovementPlugin as
|
|
17
|
+
import { CameraMovementPlugin as ue } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
18
|
import { CameraMovementEffect as ge, Rotation as se } from "./CameraMovementPlugin/typing.js";
|
|
19
19
|
import { PanoRulerPlugin as Me } from "./PanoRulerPlugin/Plugin.js";
|
|
20
20
|
import { PanoRulerProPlugin as Le } from "./PanoRulerProPlugin/index.js";
|
|
@@ -32,7 +32,7 @@ import { PanoTagPlugin as He } from "./PanoTagPlugin/index.js";
|
|
|
32
32
|
import { Object3DHelperPlugin as je } from "./Object3DHelperPlugin/index.js";
|
|
33
33
|
import { PanoVideoPlugin as ke } from "./PanoVideoPlugin/index.js";
|
|
34
34
|
import { PipelinePlugin as ze } from "./PipelinePlugin/index.js";
|
|
35
|
-
import {
|
|
35
|
+
import { AreaMakerPlugin as Ke } from "./AreaMakerPlugin/index.js";
|
|
36
36
|
import { index as We } from "./shared-utils/index.js";
|
|
37
37
|
import { CSS3DRender as Ze } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
38
38
|
import { Model as rn } from "./PanoMeasurePlugin/Model/index.js";
|
|
@@ -40,7 +40,7 @@ import { default as mn } from "./PanoMeasurePlugin/Model/point.js";
|
|
|
40
40
|
import { default as en } from "./PanoMeasurePlugin/Model/line.js";
|
|
41
41
|
import { Polyline as ln } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
42
42
|
import { default as Pn } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
43
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
43
|
+
import { DISPLAY_STRATEGY_TYPE as un } from "./ModelItemLabelPlugin/typings.js";
|
|
44
44
|
import { ModelItemLabelPlugin as gn } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
45
45
|
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as dn } from "./ItemLabelPlugin/typings.js";
|
|
46
46
|
import { Plugin as Tn } from "./ItemLabelPlugin/Plugin.js";
|
|
@@ -408,17 +408,17 @@ import "./shared-utils/three/getRaycaster.js";
|
|
|
408
408
|
r();
|
|
409
409
|
o();
|
|
410
410
|
export {
|
|
411
|
-
Ke as
|
|
411
|
+
Ke as AreaMakerPlugin,
|
|
412
412
|
Ze as CSS3DRender,
|
|
413
413
|
Hp as CSS3DRenderPlugin,
|
|
414
414
|
ge as CameraMovementEffect,
|
|
415
|
-
|
|
415
|
+
ue as CameraMovementPlugin,
|
|
416
416
|
Yn as ContentType,
|
|
417
417
|
we as CruisePlugin,
|
|
418
418
|
In as CruisePluginController,
|
|
419
419
|
yn as CruisePluginTypes,
|
|
420
420
|
be as DIRECTION,
|
|
421
|
-
|
|
421
|
+
un as DISPLAY_STRATEGY_TYPE,
|
|
422
422
|
vn as DimensionType,
|
|
423
423
|
Jp as FLOOR_PLAN_ATTACHED_TO,
|
|
424
424
|
me as FLOOR_TYPE_MAP,
|
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
var
|
|
1
|
+
var f = (t, c, n) => new Promise((e, r) => {
|
|
2
2
|
var a = (o) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
4
|
+
u(n.next(o));
|
|
5
|
+
} catch (s) {
|
|
6
|
+
r(s);
|
|
7
7
|
}
|
|
8
8
|
}, i = (o) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
10
|
+
u(n.throw(o));
|
|
11
|
+
} catch (s) {
|
|
12
|
+
r(s);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, u = (o) => o.done ? e(o.value) : Promise.resolve(o.value).then(a, i);
|
|
15
|
+
u((n = n.apply(t, c)).next());
|
|
16
16
|
});
|
|
17
|
-
import { nearlyEqual as
|
|
18
|
-
import { to as
|
|
19
|
-
function
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
import { nearlyEqual as d } from "../nearlyEqual.js";
|
|
18
|
+
import { to as l } from "../to.js";
|
|
19
|
+
function h(t) {
|
|
20
|
+
return Object.prototype.toString.call(t) === "[object Object]";
|
|
21
|
+
}
|
|
22
|
+
function m(t) {
|
|
23
|
+
return h(t) && !!t.isVector3;
|
|
24
|
+
}
|
|
25
|
+
function g(t, c) {
|
|
26
|
+
return f(this, null, function* () {
|
|
27
|
+
const [n] = yield l(t.changeMode(...c));
|
|
28
|
+
if (n)
|
|
23
29
|
throw new Error("change mode canceled");
|
|
24
30
|
yield new Promise((i) => {
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
t.once("initAnimationWillStart", () => {
|
|
32
|
+
t.once("initAnimationEnded", () => i());
|
|
27
33
|
});
|
|
28
34
|
});
|
|
29
|
-
const
|
|
30
|
-
if (!
|
|
35
|
+
const e = c[1];
|
|
36
|
+
if (!e)
|
|
31
37
|
return !0;
|
|
32
|
-
const
|
|
33
|
-
if (!w(
|
|
38
|
+
const r = t.getCurrentState();
|
|
39
|
+
if (!w(e, r))
|
|
34
40
|
throw new Error("pose 与预期不符");
|
|
35
41
|
});
|
|
36
42
|
}
|
|
37
|
-
function w(
|
|
38
|
-
return Object.keys(
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
return !0;
|
|
42
|
-
const n = e[t];
|
|
43
|
-
return typeof r == "number" && typeof n == "number" ? f(r, n, 2) : r === n;
|
|
43
|
+
function w(t, c) {
|
|
44
|
+
return Object.keys(t).every((n) => {
|
|
45
|
+
const e = c[n], r = t[n];
|
|
46
|
+
return e === void 0 || r === void 0 ? !0 : typeof e == "number" && typeof r == "number" ? d(e, r, 2) : m(r) && m(e) ? r.distanceTo(e) < 0.01 : e === r;
|
|
44
47
|
});
|
|
45
48
|
}
|
|
46
49
|
export {
|
|
47
|
-
|
|
50
|
+
g as changeMode
|
|
48
51
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.27.4-
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.27.4-2",
|
|
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",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.27.4-
|
|
10
|
+
"version": "2.27.4-2",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
22
22
|
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
23
23
|
"docs": "typedoc --options ./typedoc.json",
|
|
24
|
-
"prepublishOnly": "run-p build
|
|
24
|
+
"prepublishOnly": "run-p build",
|
|
25
25
|
"postpublish": "cnpm sync @realsee/dnalogel"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|