@realsee/dnalogel 3.78.0-alpha.3 → 3.78.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.
- package/CHANGELOG.md +40 -10
- package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
- package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +55 -0
- package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
- package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
- package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
- package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
- package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
- package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -1
- package/dist/Sculpt/Meshes/Line.d.ts +4 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/dist/index.cjs.js +101 -88
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14196 -12441
- package/dist/index.umd.js +83 -70
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
- package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +16 -6
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +128 -102
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
- package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
- package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
- package/libs/DigitalPerformancePlugin/mock.js +272 -274
- package/libs/GuideLinePlugin/Controller.js +7 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/MeasurePlugin/Controller.js +11 -10
- package/libs/MeasurePlugin/index.js +5 -4
- package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +20 -19
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +141 -138
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +131 -122
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +50 -49
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +69 -65
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +2 -90
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +31 -29
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +30 -29
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/libs/PanoTagPlugin/utils/index.js +31 -30
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +34 -32
- package/libs/PanoVideoPlugin/Controller.js +9 -8
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +3 -2
- package/libs/PipelinePlugin/index.js +4 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
- package/libs/Sculpt/Meshes/Line.d.ts +4 -0
- package/libs/Sculpt/Meshes/Line.js +85 -76
- package/libs/Sculpt/Meshes/Point.js +28 -28
- package/libs/Sculpt/Meshes/Polygon.js +43 -43
- package/libs/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/libs/Sculpt/Objects/Base/Editor.js +72 -63
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
- package/libs/base/BasePlugin.js +5 -5
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
- package/libs/index.d.ts +1 -0
- package/libs/index.js +162 -150
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/shared-utils/five/getFiveFromParentChain.js +20 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
- package/libs/shared-utils/url/replace-static-prefix.js +12 -7
- package/package.json +3 -3
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.d.ts +0 -202
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.js +0 -617
|
@@ -85,6 +85,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
85
85
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
86
86
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
87
87
|
import "../shared-utils/util.js";
|
|
88
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
88
89
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
89
90
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
90
91
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -371,8 +372,8 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
371
372
|
import "../CruisePlugin/utils/safeCall.js";
|
|
372
373
|
import "../CruisePlugin/utils/sleep.js";
|
|
373
374
|
import "../shared-utils/five/fiveLoaded.js";
|
|
374
|
-
const _ = "GuideLinePlugin", E = `${_}`,
|
|
375
|
-
class
|
|
375
|
+
const _ = "GuideLinePlugin", E = `${_}`, ce = (a) => `${E}--${a}`;
|
|
376
|
+
class be extends k {
|
|
376
377
|
constructor(t, i) {
|
|
377
378
|
super(t, i);
|
|
378
379
|
d(this, "name", _);
|
|
@@ -419,7 +420,7 @@ class ce extends k {
|
|
|
419
420
|
return G({}, h, { id: (T = u.id) != null ? T : H(), pano_group: u.panoIndexList });
|
|
420
421
|
})) != null ? L : [], S = (w = (D = o.lines) == null ? void 0 : D.map((u) => G({}, h, u))) != null ? w : [], M = [...O, ...S];
|
|
421
422
|
yield $(this.five), this.clear(), M.forEach((u) => {
|
|
422
|
-
this.addGuideLineItem(
|
|
423
|
+
this.addGuideLineItem(u);
|
|
423
424
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", o), console.debug(`${E} loaded`, o);
|
|
424
425
|
});
|
|
425
426
|
}
|
|
@@ -464,7 +465,7 @@ class ce extends k {
|
|
|
464
465
|
const i = t.render_id || t.id, s = this.itemMap.get(i);
|
|
465
466
|
s && this.removeGuideLineItem(s);
|
|
466
467
|
const e = new C({ five: this.five, id: i, plugin: this });
|
|
467
|
-
return this.itemMap.set(i, e), t && e.setData(t), this.heightOffset += 1e-4, e.modelItem.setHeightOffset(this.heightOffset), e.panoramaItem.setHeightOffset(this.heightOffset), e;
|
|
468
|
+
return this.itemMap.set(i, e), t && e.setData(this.processItemUrls(t)), this.heightOffset += 1e-4, e.modelItem.setHeightOffset(this.heightOffset), e.panoramaItem.setHeightOffset(this.heightOffset), e;
|
|
468
469
|
}
|
|
469
470
|
processItemUrls(t) {
|
|
470
471
|
var e, o, r, m;
|
|
@@ -536,6 +537,6 @@ class ce extends k {
|
|
|
536
537
|
}
|
|
537
538
|
}
|
|
538
539
|
export {
|
|
539
|
-
|
|
540
|
-
|
|
540
|
+
be as default,
|
|
541
|
+
ce as pluginFlag
|
|
541
542
|
};
|
|
@@ -5,7 +5,7 @@ import "../shared-utils/five/changeMode.js";
|
|
|
5
5
|
import "../CruisePlugin/Move.js";
|
|
6
6
|
import "../CruisePlugin/Work.js";
|
|
7
7
|
import "../shared-utils/Subscribe.js";
|
|
8
|
-
import { GuideLineItem as
|
|
8
|
+
import { GuideLineItem as qp } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -65,6 +65,7 @@ import "../Sculpt/typings/style.js";
|
|
|
65
65
|
import "../shared-utils/three/IObject3D.js";
|
|
66
66
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
67
67
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
68
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
68
69
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
69
70
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
70
71
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -82,6 +83,8 @@ import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
|
82
83
|
import "../Sculpt/utils/three/rayOnLine.js";
|
|
83
84
|
import "../shared-utils/five/mode.js";
|
|
84
85
|
import "../shared-utils/url/defaultUrls.js";
|
|
86
|
+
import "../shared-utils/url/replace-static-prefix.js";
|
|
87
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
85
88
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
86
89
|
import "../shared-utils/animationFrame/index.js";
|
|
87
90
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -335,13 +338,11 @@ import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
|
335
338
|
import "./index.js";
|
|
336
339
|
import "./Controller.js";
|
|
337
340
|
import "../base/BasePluginWithData.js";
|
|
338
|
-
import "../shared-utils/url/replace-static-prefix.js";
|
|
339
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
340
341
|
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
341
342
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
342
343
|
import "../CruisePlugin/utils/safeCall.js";
|
|
343
344
|
import "../CruisePlugin/utils/sleep.js";
|
|
344
345
|
import "../shared-utils/five/fiveLoaded.js";
|
|
345
346
|
export {
|
|
346
|
-
|
|
347
|
+
qp as GuideLineItem
|
|
347
348
|
};
|
|
@@ -28,17 +28,18 @@ import { blink as O } from "../../shared-utils/three/blink.js";
|
|
|
28
28
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
29
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
30
|
import "../../vendor/earcut/src/earcut.js";
|
|
31
|
-
import { GUIDELINE_DEFAULT_ARROW_TEXTURE as
|
|
32
|
-
import {
|
|
31
|
+
import { GUIDELINE_DEFAULT_ARROW_TEXTURE as U } from "../../shared-utils/url/defaultUrls.js";
|
|
32
|
+
import { replaceStaticPrefix as E } from "../../shared-utils/url/replace-static-prefix.js";
|
|
33
|
+
import { BetterTween as A } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
33
34
|
import "../../shared-utils/five/FivePuppet.js";
|
|
34
|
-
import { loadTexture as
|
|
35
|
+
import { loadTexture as G } from "../../shared-utils/three/loadTexture.js";
|
|
35
36
|
import k from "../../PanoTagPlugin/controller/index.js";
|
|
36
|
-
import
|
|
37
|
-
import { filterAdjacentDistinct as
|
|
38
|
-
import { objectAssignDeepExports as
|
|
39
|
-
import { createPath as
|
|
40
|
-
import { getGlobalResponsiveFontSize as
|
|
41
|
-
const
|
|
37
|
+
import B from "../Components/Tag.js";
|
|
38
|
+
import { filterAdjacentDistinct as R } from "../utils/index.js";
|
|
39
|
+
import { objectAssignDeepExports as I } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
40
|
+
import { createPath as W } from "../utils/createPath.js";
|
|
41
|
+
import { getGlobalResponsiveFontSize as z, getCurrentFontSize as N } from "../../shared-utils/fontSize.js";
|
|
42
|
+
const D = (
|
|
42
43
|
/* glsl */
|
|
43
44
|
`
|
|
44
45
|
varying vec2 vUv;
|
|
@@ -51,7 +52,7 @@ const N = (
|
|
|
51
52
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
52
53
|
}
|
|
53
54
|
`
|
|
54
|
-
),
|
|
55
|
+
), H = (
|
|
55
56
|
/* glsl */
|
|
56
57
|
`
|
|
57
58
|
precision highp float;
|
|
@@ -170,7 +171,7 @@ const N = (
|
|
|
170
171
|
}
|
|
171
172
|
`
|
|
172
173
|
);
|
|
173
|
-
class
|
|
174
|
+
class j {
|
|
174
175
|
constructor(e, t) {
|
|
175
176
|
i(this, "name", "");
|
|
176
177
|
i(this, "startTagContainer");
|
|
@@ -206,15 +207,15 @@ class H {
|
|
|
206
207
|
i(this, "plugin");
|
|
207
208
|
i(this, "textureHasLoaded", !1);
|
|
208
209
|
i(this, "disposed", !1);
|
|
209
|
-
i(this, "flowAnime", new
|
|
210
|
+
i(this, "flowAnime", new A({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
210
211
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
211
212
|
i(this, "cacheLengths", []);
|
|
212
213
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
213
214
|
i(this, "heightOffset", 0);
|
|
214
215
|
/** 响应式字体大小管理器 */
|
|
215
|
-
i(this, "fontSizeManager",
|
|
216
|
+
i(this, "fontSizeManager", z());
|
|
216
217
|
/** 当前字体大小 */
|
|
217
|
-
i(this, "currentFontSize",
|
|
218
|
+
i(this, "currentFontSize", N());
|
|
218
219
|
/** 字体大小订阅取消函数 */
|
|
219
220
|
i(this, "unsubscribeFontSize", null);
|
|
220
221
|
i(this, "dispose", () => {
|
|
@@ -254,8 +255,8 @@ class H {
|
|
|
254
255
|
var a, o;
|
|
255
256
|
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.group.name = "GuideLineModeItem";
|
|
256
257
|
const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
|
|
257
|
-
vertexShader:
|
|
258
|
-
fragmentShader:
|
|
258
|
+
vertexShader: D,
|
|
259
|
+
fragmentShader: H,
|
|
259
260
|
transparent: !0,
|
|
260
261
|
uniforms: {
|
|
261
262
|
map: { value: null },
|
|
@@ -323,37 +324,39 @@ class H {
|
|
|
323
324
|
return this.logError("disposed");
|
|
324
325
|
if (!this.five.work)
|
|
325
326
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
326
|
-
const s =
|
|
327
|
+
const s = R(e);
|
|
327
328
|
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
328
|
-
const
|
|
329
|
-
this.skippedPositions =
|
|
329
|
+
const d = t.skipPanoGroup ? s.map((m) => this.plugin.workUtil.getObserverStandingPosition(m)).filter(_) : null;
|
|
330
|
+
this.skippedPositions = d;
|
|
330
331
|
}
|
|
331
|
-
const r = this.five.getCurrentState(), a = this.plugin.workUtil.workCode || r.workCode, o = this.five.works.getWork(a), h =
|
|
332
|
+
const r = this.five.getCurrentState(), a = this.plugin.workUtil.workCode || r.workCode, o = this.five.works.getWork(a), h = W(s, o, t);
|
|
332
333
|
this.path = h, this.setGeometryByPath(h, t);
|
|
333
334
|
}
|
|
334
335
|
/** 通过路径设置线条形状 */
|
|
335
336
|
setGeometryByPath(e, t) {
|
|
336
|
-
var
|
|
337
|
+
var g, f, u;
|
|
337
338
|
if (this.disposed)
|
|
338
339
|
return this.logError("disposed");
|
|
339
|
-
const s = (
|
|
340
|
+
const s = (g = t == null ? void 0 : t.scale) != null ? g : this.scale, r = (f = t == null ? void 0 : t.width) != null ? f : this.width, a = (u = t == null ? void 0 : t.unit_length) != null ? u : this.unitLength;
|
|
340
341
|
this.scale = s, this.width = r, this.unitLength = a;
|
|
341
|
-
const { geometry: o, maxV: h, curvePath:
|
|
342
|
+
const { geometry: o, maxV: h, curvePath: d, curvePoints: m } = x({
|
|
342
343
|
path: e,
|
|
343
344
|
width: r * s,
|
|
344
345
|
unitLength: a * s,
|
|
345
346
|
skipPositions: this.skippedPositions
|
|
346
347
|
});
|
|
347
|
-
this._curvePath =
|
|
348
|
+
this._curvePath = d, this._curvePoints = m, this.mesh.geometry.copy(o), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = h, this.five.needsRender = !0, this.path = e, this.geometryStyle = p(p({}, this.geometryStyle), t);
|
|
348
349
|
}
|
|
349
350
|
/** 设置线条材质 */
|
|
350
351
|
setMartial(e) {
|
|
351
|
-
var
|
|
352
|
+
var r, a, o, h, d;
|
|
352
353
|
if (this.disposed)
|
|
353
354
|
return this.logError("disposed");
|
|
354
|
-
this.setDefaultVisible((
|
|
355
|
-
const t =
|
|
356
|
-
this.
|
|
355
|
+
this.setDefaultVisible((r = e == null ? void 0 : e.visible) != null ? r : !1), this.setColor((a = e == null ? void 0 : e.color) != null ? a : "#ffffff"), this.setOpacity((o = e == null ? void 0 : e.opacity) != null ? o : 0.5);
|
|
356
|
+
const t = E(this.plugin.staticPrefix, U);
|
|
357
|
+
this.setTextureUrl((d = (h = e == null ? void 0 : e.texture) == null ? void 0 : h.url) != null ? d : t), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
|
|
358
|
+
const s = p(p({}, this.materialStyle), e);
|
|
359
|
+
this.materialStyle = s;
|
|
357
360
|
}
|
|
358
361
|
/** 设置模型状态 */
|
|
359
362
|
setMeshStyle(e) {
|
|
@@ -436,7 +439,7 @@ class H {
|
|
|
436
439
|
setTextureUrl(e) {
|
|
437
440
|
if (this.disposed)
|
|
438
441
|
return this.logError("disposed");
|
|
439
|
-
this.textureUrl = e,
|
|
442
|
+
this.textureUrl = e, G(e).then((t) => {
|
|
440
443
|
this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
441
444
|
});
|
|
442
445
|
}
|
|
@@ -474,43 +477,43 @@ class H {
|
|
|
474
477
|
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
475
478
|
}
|
|
476
479
|
getPanoGroupLengths() {
|
|
477
|
-
var
|
|
480
|
+
var d, m, g, f;
|
|
478
481
|
if (!this.curvePoints || !this.curvePath)
|
|
479
482
|
return [];
|
|
480
|
-
const e = this.curvePoints.length, t = (m = (
|
|
483
|
+
const e = this.curvePoints.length, t = (m = (d = this.curvePath) == null ? void 0 : d.getLength()) != null ? m : 0, s = e - 1, r = t / s, a = (f = (g = this.curvePath) == null ? void 0 : g.getLengths(s)) != null ? f : [], o = [];
|
|
481
484
|
let h = 0;
|
|
482
|
-
for (let
|
|
483
|
-
const v = this.curvePoints[
|
|
485
|
+
for (let u = 0; u < e; u++) {
|
|
486
|
+
const v = this.curvePoints[u], c = this.plugin.workUtil.getObserverStandingPosition(h);
|
|
484
487
|
if (!c)
|
|
485
488
|
break;
|
|
486
|
-
c.clone().setY(0).distanceTo(v.clone().setY(0)) < r && (o.push(a[
|
|
489
|
+
c.clone().setY(0).distanceTo(v.clone().setY(0)) < r && (o.push(a[u]), h += 1);
|
|
487
490
|
}
|
|
488
491
|
return o;
|
|
489
492
|
}
|
|
490
493
|
setTag(e, t) {
|
|
491
|
-
var
|
|
494
|
+
var d, m;
|
|
492
495
|
const s = this.curvePath;
|
|
493
496
|
if (!(t != null && t.data))
|
|
494
497
|
return;
|
|
495
|
-
const r = e === "start" ? (
|
|
498
|
+
const r = e === "start" ? (d = this.startTagContainer) != null ? d : (() => (this.startTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 10 }) }, this.startTagContainer))() : (m = this.endTagContainer) != null ? m : (() => (this.endTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 10 }) }, this.endTagContainer))(), o = I({}, {
|
|
496
499
|
contentType: "Custom",
|
|
497
500
|
stickType: "2DPoint",
|
|
498
501
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
499
502
|
style: { point: { enabled: !1 } },
|
|
500
503
|
data: {}
|
|
501
504
|
}, t);
|
|
502
|
-
r.tag = o,
|
|
505
|
+
r.tag = o, $(o) && (r.tag.element = (g) => {
|
|
503
506
|
var v, c;
|
|
504
507
|
(v = r.app) == null || v.$destroy();
|
|
505
|
-
const f = e === "start" ? C(p({}, o.data), { name: this.name, distance: Math.round((c = s == null ? void 0 : s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : o.data,
|
|
506
|
-
return r.app =
|
|
508
|
+
const f = e === "start" ? C(p({}, o.data), { name: this.name, distance: Math.round((c = s == null ? void 0 : s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : o.data, u = new B({ target: g, intro: !0, props: p({ fontSize: this.currentFontSize }, f) });
|
|
509
|
+
return r.app = u, () => u.$destroy();
|
|
507
510
|
}), r.plugin.load({ tagList: [r.tag] });
|
|
508
511
|
const h = this.meshStyle.translate;
|
|
509
512
|
if (h && o.position) {
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
const
|
|
513
|
-
r.plugin.changeTagById(r.tag.id, { position:
|
|
513
|
+
const g = new n.Vector3().fromArray(o.position), f = new n.Vector3().fromArray(h);
|
|
514
|
+
g.add(f), g.y += this.heightOffset;
|
|
515
|
+
const u = g.toArray();
|
|
516
|
+
r.plugin.changeTagById(r.tag.id, { position: u });
|
|
514
517
|
}
|
|
515
518
|
}
|
|
516
519
|
doShow() {
|
|
@@ -522,14 +525,14 @@ class H {
|
|
|
522
525
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.group), (e = this.startTagContainer) == null || e.plugin.hide(), (t = this.endTagContainer) == null || t.plugin.hide(), this.five.needsRender = !0;
|
|
523
526
|
}
|
|
524
527
|
}
|
|
525
|
-
function
|
|
528
|
+
function $(l) {
|
|
526
529
|
return l.contentType === "Custom";
|
|
527
530
|
}
|
|
528
|
-
const
|
|
531
|
+
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
529
532
|
__proto__: null,
|
|
530
|
-
GuideLineModeItem:
|
|
533
|
+
GuideLineModeItem: j
|
|
531
534
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
532
535
|
export {
|
|
533
|
-
|
|
534
|
-
|
|
536
|
+
j as GuideLineModeItem,
|
|
537
|
+
we as GuideLineModeItem$1
|
|
535
538
|
};
|
|
@@ -16,6 +16,7 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
16
16
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
17
17
|
import "../vendor/earcut/src/earcut.js";
|
|
18
18
|
import "../shared-utils/url/defaultUrls.js";
|
|
19
|
+
import "../shared-utils/url/replace-static-prefix.js";
|
|
19
20
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
20
21
|
import "../shared-utils/five/FivePuppet.js";
|
|
21
22
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -25,7 +26,7 @@ import "./utils/index.js";
|
|
|
25
26
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
26
27
|
import "./utils/createPath.js";
|
|
27
28
|
import "../shared-utils/fontSize.js";
|
|
28
|
-
import { GuideLineModeItem as
|
|
29
|
+
import { GuideLineModeItem as pp } from "./GuideLineModeItem/index.js";
|
|
29
30
|
import "../vendor/polyline-normals/index.js";
|
|
30
31
|
import "../vendor/polyline-miter-util/index.js";
|
|
31
32
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -68,6 +69,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
68
69
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
69
70
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
70
71
|
import "../shared-utils/util.js";
|
|
72
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
71
73
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
72
74
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
73
75
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -85,6 +87,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
85
87
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
86
88
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
87
89
|
import "@realsee/five";
|
|
90
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
88
91
|
import "../shared-utils/animationFrame/index.js";
|
|
89
92
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
90
93
|
import "../PanoTagPlugin/utils/debounce.js";
|
|
@@ -323,5 +326,5 @@ import "../PanoTagPlugin/Components/Common/TagPopover/ShareIcon.js";
|
|
|
323
326
|
import "../PanoTagPlugin/utils/popoverContainer.js";
|
|
324
327
|
import "../shared-utils/px2rem.js";
|
|
325
328
|
export {
|
|
326
|
-
|
|
329
|
+
pp as GuideLineModeItem
|
|
327
330
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as jp } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as qp } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -54,6 +54,7 @@ import "../Sculpt/typings/style.js";
|
|
|
54
54
|
import "../shared-utils/three/IObject3D.js";
|
|
55
55
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
56
56
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
57
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
57
58
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
58
59
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
59
60
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -342,10 +343,10 @@ import "../shared-utils/five/changeMode.js";
|
|
|
342
343
|
import "../shared-utils/nearlyEqual.js";
|
|
343
344
|
import "../CruisePlugin/Move.js";
|
|
344
345
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
345
|
-
const r = (i, o) => new t(i, o),
|
|
346
|
+
const r = (i, o) => new t(i, o), Cp = r;
|
|
346
347
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
348
|
+
jp as GuideLineItem,
|
|
349
|
+
qp as GuideLineModeItem,
|
|
349
350
|
r as GuideLinePlugin,
|
|
350
|
-
|
|
351
|
+
Cp as default
|
|
351
352
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var H = Object.defineProperty, I = Object.defineProperties;
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var G = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var _ = (M, S, e) => S in M ? H(M, S, { enumerable: !0, configurable: !0, writable: !0, value: e }) : M[S] = e, g = (M, S) => {
|
|
6
6
|
for (var e in S || (S = {}))
|
|
7
|
-
G.call(S, e) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
U.call(S, e) &&
|
|
7
|
+
G.call(S, e) && _(M, e, S[e]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var e of C(S))
|
|
10
|
+
U.call(S, e) && _(M, e, S[e]);
|
|
11
11
|
return M;
|
|
12
12
|
}, D = (M, S) => I(M, F(S));
|
|
13
|
-
var s = (M, S, e) => (
|
|
13
|
+
var s = (M, S, e) => (_(M, typeof S != "symbol" ? S + "" : S, e), e);
|
|
14
14
|
import * as y from "three";
|
|
15
15
|
import "../shared-utils/tag.js";
|
|
16
16
|
import "../vendor/hammerjs/hammer.js";
|
|
@@ -69,6 +69,7 @@ import "../Sculpt/typings/style.js";
|
|
|
69
69
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
70
70
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
71
71
|
import "../shared-utils/util.js";
|
|
72
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
72
73
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
73
74
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
74
75
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -95,7 +96,7 @@ import "../shared-utils/three/geometryUtil.js";
|
|
|
95
96
|
import "../shared-utils/three/vectorIsEqual.js";
|
|
96
97
|
import "../Sculpt/utils/Modules/DeleteButtonBgBorder.js";
|
|
97
98
|
import "../Sculpt/utils/Modules/DeleteIconSVG.js";
|
|
98
|
-
class
|
|
99
|
+
class Lt extends B {
|
|
99
100
|
constructor(e, t) {
|
|
100
101
|
super();
|
|
101
102
|
s(this, "name", "MeasurePlugin");
|
|
@@ -844,7 +845,7 @@ class bt extends B {
|
|
|
844
845
|
});
|
|
845
846
|
this.five = e;
|
|
846
847
|
const i = { unit: "m", lengthEnable: !0, precision: 2 };
|
|
847
|
-
this.config = t ? g(g({}, i), t) : i, this.group = new A(), this.group.name = "MeasureGroup", this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), P("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
|
|
848
|
+
this.config = t ? g(g({}, i), t) : i, this.group = new A(), this.group.name = "MeasureGroup", this.group.__five__ = this.five, this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), P("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
|
|
848
849
|
}
|
|
849
850
|
get pointSelector() {
|
|
850
851
|
return this._pointSelector ? this._pointSelector : (this._pointSelector = new V(this.five, { mode: "cursor", helper: { pointHelper: "highlight" }, skipPanorama: !0 }), this._pointSelector);
|
|
@@ -864,5 +865,5 @@ class bt extends B {
|
|
|
864
865
|
}
|
|
865
866
|
}
|
|
866
867
|
export {
|
|
867
|
-
|
|
868
|
+
Lt as MeasureController
|
|
868
869
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MeasureController as t } from "./Controller.js";
|
|
2
|
-
import { validatePolygon as
|
|
2
|
+
import { validatePolygon as Ko } from "./utils/validatePolygon.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "../shared-utils/tag.js";
|
|
5
5
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -51,6 +51,7 @@ import "../Sculpt/typings/style.js";
|
|
|
51
51
|
import "../shared-utils/three/IObject3D.js";
|
|
52
52
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
53
53
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
54
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
54
55
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
55
56
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
56
57
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -83,8 +84,8 @@ import "../Sculpt/utils/Modules/Cursor.js";
|
|
|
83
84
|
import "../Sculpt/utils/Modules/DeleteButtonBgBorder.js";
|
|
84
85
|
import "../Sculpt/utils/Modules/DeleteIconSVG.js";
|
|
85
86
|
import "../shared-utils/three/vectorIsEqual.js";
|
|
86
|
-
const
|
|
87
|
+
const Ho = (o, r) => new t(o, r);
|
|
87
88
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
Ho as MeasurePlugin,
|
|
90
|
+
Ko as validatePolygon
|
|
90
91
|
};
|
|
@@ -56,6 +56,7 @@ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
|
56
56
|
import "../../Sculpt/Meshes/Line.js";
|
|
57
57
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
58
58
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
59
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
59
60
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
60
61
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
61
62
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -78,7 +79,7 @@ import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
|
78
79
|
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
79
80
|
import "../../shared-utils/three/geometryUtil.js";
|
|
80
81
|
import "../../shared-utils/three/vectorIsEqual.js";
|
|
81
|
-
class
|
|
82
|
+
class Bt extends e {
|
|
82
83
|
constructor(t) {
|
|
83
84
|
super();
|
|
84
85
|
o(this, "name", "MeasureMesh");
|
|
@@ -118,5 +119,5 @@ class At extends e {
|
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
+
Bt as MeasureMesh
|
|
122
123
|
};
|
|
@@ -70,6 +70,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
70
70
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
71
71
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
72
72
|
import "../shared-utils/util.js";
|
|
73
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
73
74
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
74
75
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
75
76
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -87,7 +88,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
87
88
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
88
89
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
89
90
|
import "@realsee/five";
|
|
90
|
-
const
|
|
91
|
+
const $t = (i, m) => {
|
|
91
92
|
var L;
|
|
92
93
|
const p = (m == null ? void 0 : m.fbx_url) || R, a = (L = m == null ? void 0 : m.north_rad) != null ? L : void 0, t = {};
|
|
93
94
|
let f = { x: 0, y: 0, z: 0 }, b = [0, 0, 0], s = 1, e = a;
|
|
@@ -141,6 +142,6 @@ const Zt = (i, m) => {
|
|
|
141
142
|
return { load: c, disable: B, enable: A };
|
|
142
143
|
};
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
$t as ModelChassisCompassPlugin,
|
|
146
|
+
$t as default
|
|
146
147
|
};
|
|
@@ -56,6 +56,7 @@ import "../Sculpt/typings/style.js";
|
|
|
56
56
|
import "../shared-utils/three/IObject3D.js";
|
|
57
57
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
58
58
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
59
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
59
60
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
60
61
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
61
62
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -72,6 +72,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
72
72
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
73
73
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
74
74
|
import "../shared-utils/util.js";
|
|
75
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
75
76
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
76
77
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
77
78
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -89,7 +90,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
89
90
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
90
91
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
91
92
|
import "@realsee/five";
|
|
92
|
-
const
|
|
93
|
+
const ut = (i, r) => {
|
|
93
94
|
var w, _, g;
|
|
94
95
|
const o = {}, y = (w = r == null ? void 0 : r.animationEnabled) != null ? w : !0, j = (_ = r == null ? void 0 : r.position) != null ? _ : void 0, D = (g = r == null ? void 0 : r.rad) != null ? g : void 0, h = (r == null ? void 0 : r.fbx_url) || H, l = [], n = (t) => L(void 0, null, function* () {
|
|
95
96
|
var d, a, M, b, f, E, P, R;
|
|
@@ -143,12 +144,12 @@ const dt = (i, r) => {
|
|
|
143
144
|
o.object && (o.animation && o.animation.stop(), i.scene.remove(o.object), i.needsRender = !0);
|
|
144
145
|
}, x = (t) => t === "Floorplan" ? T() : F();
|
|
145
146
|
return { load: n, enable: (t) => (o.enabled || (o.enabled = !0, x(i.currentMode), i.on("modeChange", x), T(t)), !0), disable: () => (o.enabled && (o.enabled = !1, F(), i.off("modeChange", x)), !0) };
|
|
146
|
-
},
|
|
147
|
+
}, at = {
|
|
147
148
|
name: "ModelEntryDoorGuidePlugin",
|
|
148
149
|
version: 0
|
|
149
150
|
};
|
|
150
151
|
export {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
ut as ModelEntryDoorGuidePlugin,
|
|
153
|
+
ut as default,
|
|
154
|
+
at as modelEntryDoorGuidePluginServerParams
|
|
154
155
|
};
|
|
@@ -57,6 +57,7 @@ import "../Sculpt/typings/style.js";
|
|
|
57
57
|
import "../shared-utils/three/IObject3D.js";
|
|
58
58
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
59
59
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
60
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
60
61
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
61
62
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
62
63
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -80,6 +80,7 @@ import "../Sculpt/Meshes/Line.js";
|
|
|
80
80
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
81
81
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
82
82
|
import "../shared-utils/util.js";
|
|
83
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
83
84
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
84
85
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
85
86
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -130,7 +131,7 @@ import "../shared-utils/math/rad2Deg.js";
|
|
|
130
131
|
import "../components/AreaLabel/Assets/fontSize.js";
|
|
131
132
|
import "../shared-utils/px2rem.js";
|
|
132
133
|
import "../shared-utils/fontSize.js";
|
|
133
|
-
class
|
|
134
|
+
class Ye extends H {
|
|
134
135
|
constructor(t, i) {
|
|
135
136
|
var e, r;
|
|
136
137
|
super(t);
|
|
@@ -641,5 +642,5 @@ class Ue extends H {
|
|
|
641
642
|
}
|
|
642
643
|
}
|
|
643
644
|
export {
|
|
644
|
-
|
|
645
|
+
Ye as Controller
|
|
645
646
|
};
|
|
@@ -52,6 +52,7 @@ import "../Sculpt/typings/style.js";
|
|
|
52
52
|
import "../shared-utils/three/IObject3D.js";
|
|
53
53
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
54
54
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
55
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
55
56
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
56
57
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
57
58
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -103,7 +104,7 @@ import "./item/prismItem.js";
|
|
|
103
104
|
import "./item/polygonItem.js";
|
|
104
105
|
import "../CruisePlugin/utils/sleep.js";
|
|
105
106
|
import "../shared-utils/constants.js";
|
|
106
|
-
const
|
|
107
|
+
const rr = (...o) => new r(...o);
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
rr as ModelMakerPlugin
|
|
109
110
|
};
|
|
@@ -54,6 +54,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
54
54
|
import "../../shared-utils/three/IObject3D.js";
|
|
55
55
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
56
56
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
57
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
57
58
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
58
59
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
59
60
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -69,7 +70,7 @@ import "../../shared-utils/five/getPosition.js";
|
|
|
69
70
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
70
71
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
71
72
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
72
|
-
class
|
|
73
|
+
class Ii extends n {
|
|
73
74
|
constructor(i) {
|
|
74
75
|
var s, m;
|
|
75
76
|
super();
|
|
@@ -121,5 +122,5 @@ class _i extends n {
|
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
+
Ii as ModelMakerBaseItem
|
|
125
126
|
};
|