@realsee/dnalogel 3.73.1 → 3.73.3
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 +8 -0
- package/dist/MeasurePlugin/Controller.d.ts +3 -4
- package/dist/MeasurePlugin/index.d.ts +2 -1
- package/dist/Sculpt/utils/export.d.ts +1 -0
- package/dist/index.cjs.js +71 -71
- package/dist/index.js +4893 -4894
- package/dist/index.umd.js +76 -76
- package/dist/shared-utils/three/index.d.ts +2 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +80 -79
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -0
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +1 -1
- package/libs/CruisePlugin/Work.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/MeasurePlugin/Controller.d.ts +3 -4
- package/libs/MeasurePlugin/Controller.js +29 -29
- package/libs/MeasurePlugin/index.d.ts +2 -1
- package/libs/MeasurePlugin/index.js +6 -5
- package/libs/MeasurePlugin/utils/MeasureMesh.js +1 -1
- 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 +1 -1
- package/libs/ModelMakerPlugin/index.js +1 -1
- 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 +4 -3
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +18 -17
- 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 +3 -2
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
- 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 +233 -232
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -21
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +3 -2
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +95 -94
- 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 +22 -21
- package/libs/Sculpt/Meshes/Circle.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +3 -2
- package/libs/Sculpt/Meshes/Line.js +3 -2
- package/libs/Sculpt/Meshes/LineWithDots.js +5 -4
- package/libs/Sculpt/Meshes/Point.js +3 -2
- package/libs/Sculpt/Meshes/Rectangle.js +4 -3
- package/libs/Sculpt/Objects/Base/index.js +1 -0
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.js +19 -18
- package/libs/Sculpt/utils/export.d.ts +1 -0
- package/libs/Sculpt/utils/export.js +23 -20
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
- package/libs/base/BasePlugin.js +8 -7
- 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/floorplan/index.js +1 -0
- package/libs/index.js +146 -145
- package/libs/shared-utils/CSS3DRender/CSS3DObject.js +3 -2
- package/libs/shared-utils/exports.js +62 -55
- package/libs/shared-utils/five/index.js +4 -3
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +1 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +3 -2
- package/libs/shared-utils/three/PointDomHelper.js +3 -2
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
- package/libs/shared-utils/three/geometryUtil.js +12 -8
- package/libs/shared-utils/three/index.d.ts +2 -0
- package/libs/shared-utils/three/index.js +1 -0
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +139 -151
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ import "../../shared-utils/three/core/Sphere.js";
|
|
|
27
27
|
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
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
30
31
|
import { GUIDELINE_DEFAULT_ARROW_TEXTURE as E } from "../../shared-utils/url/defaultUrls.js";
|
|
31
32
|
import { BetterTween as U } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
32
33
|
import "../../shared-utils/five/FivePuppet.js";
|
|
@@ -524,11 +525,11 @@ class H {
|
|
|
524
525
|
function j(l) {
|
|
525
526
|
return l.contentType === "Custom";
|
|
526
527
|
}
|
|
527
|
-
const
|
|
528
|
+
const Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
528
529
|
__proto__: null,
|
|
529
530
|
GuideLineModeItem: H
|
|
530
531
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
531
532
|
export {
|
|
532
533
|
H as GuideLineModeItem,
|
|
533
|
-
|
|
534
|
+
Ce as GuideLineModeItem$1
|
|
534
535
|
};
|
|
@@ -14,6 +14,7 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
14
14
|
import "../shared-utils/three/blink.js";
|
|
15
15
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
16
16
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
17
|
+
import "../vendor/earcut/src/earcut.js";
|
|
17
18
|
import "../shared-utils/url/defaultUrls.js";
|
|
18
19
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
19
20
|
import "../shared-utils/five/FivePuppet.js";
|
|
@@ -268,7 +269,6 @@ import "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
|
268
269
|
import "../Sculpt/Meshes/Polygon.js";
|
|
269
270
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
270
271
|
import "../shared-utils/three/earcut3D.js";
|
|
271
|
-
import "../vendor/earcut/src/earcut.js";
|
|
272
272
|
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
273
273
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
274
274
|
import "../shared-utils/three/geometryUtil.js";
|
|
@@ -60,6 +60,7 @@ import "../shared-utils/three/core/Line2.js";
|
|
|
60
60
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
61
61
|
import "../Sculpt/utils/unit.js";
|
|
62
62
|
import "../Sculpt/utils/renderDom.js";
|
|
63
|
+
import "../vendor/earcut/src/earcut.js";
|
|
63
64
|
import "../shared-utils/five/FivePuppet.js";
|
|
64
65
|
import "@realsee/five";
|
|
65
66
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -279,7 +280,6 @@ import "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
|
279
280
|
import "../Sculpt/Meshes/Polygon.js";
|
|
280
281
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
281
282
|
import "../shared-utils/three/earcut3D.js";
|
|
282
|
-
import "../vendor/earcut/src/earcut.js";
|
|
283
283
|
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
284
284
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
285
285
|
import "../shared-utils/three/geometryUtil.js";
|
|
@@ -5,11 +5,11 @@ import { MeasureMesh } from './utils/MeasureMesh';
|
|
|
5
5
|
import { Subscribe } from '../shared-utils/Subscribe';
|
|
6
6
|
import type { MeasurePluginConfig } from '.';
|
|
7
7
|
export type MeasureEndReason = 'enter' | 'escape' | 'polygon' | 'mode_change' | 'pano_move' | 'floor_change' | 'points_insufficient' | 'external';
|
|
8
|
-
type
|
|
9
|
-
measureEnd: (reason: MeasureEndReason) => void;
|
|
8
|
+
export type MeasurePluginEventMap = {
|
|
9
|
+
measureEnd: (reason: MeasureEndReason, points: THREE.Vector3[]) => void;
|
|
10
10
|
undo: () => void;
|
|
11
11
|
};
|
|
12
|
-
export declare class MeasureController extends Subscribe<
|
|
12
|
+
export declare class MeasureController extends Subscribe<MeasurePluginEventMap> {
|
|
13
13
|
readonly name = "MeasurePlugin";
|
|
14
14
|
currentMeasureMesh?: MeasureMesh | null;
|
|
15
15
|
private five;
|
|
@@ -164,4 +164,3 @@ export declare class MeasureController extends Subscribe<Event> {
|
|
|
164
164
|
*/
|
|
165
165
|
private calculateScreenDistance;
|
|
166
166
|
}
|
|
167
|
-
export {};
|
|
@@ -11,7 +11,7 @@ var C = (M, S, e) => S in M ? H(M, S, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return M;
|
|
12
12
|
}, D = (M, S) => I(M, F(S));
|
|
13
13
|
var s = (M, S, e) => (C(M, typeof S != "symbol" ? S + "" : S, e), e);
|
|
14
|
-
import * as
|
|
14
|
+
import * as y from "three";
|
|
15
15
|
import "../shared-utils/tag.js";
|
|
16
16
|
import "../vendor/hammerjs/hammer.js";
|
|
17
17
|
import { Subscribe as B } from "../shared-utils/Subscribe.js";
|
|
@@ -23,6 +23,7 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
23
23
|
import "../shared-utils/three/blink.js";
|
|
24
24
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
25
25
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
26
|
+
import "../vendor/earcut/src/earcut.js";
|
|
26
27
|
import { FiveDomEvents as X } from "../shared-utils/five/FiveDomEvents.js";
|
|
27
28
|
import "../shared-utils/five/FivePuppet.js";
|
|
28
29
|
import { MeasureMesh as T } from "./utils/MeasureMesh.js";
|
|
@@ -87,7 +88,6 @@ import "@realsee/five";
|
|
|
87
88
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
88
89
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
89
90
|
import "../shared-utils/three/earcut3D.js";
|
|
90
|
-
import "../vendor/earcut/src/earcut.js";
|
|
91
91
|
import "../shared-utils/three/getNormal.js";
|
|
92
92
|
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
93
93
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
@@ -173,9 +173,9 @@ class bt extends B {
|
|
|
173
173
|
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", t.removeFromParent(), this.group.addIfNotExists(i), i.setStyle(D(g({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), i.setPoints([e.points.at(-1), d.point]), d.isAdsorbed)
|
|
174
174
|
o.removeFromParent(), c.removeFromParent(), a.removeFromParent(), r = null, h = !1;
|
|
175
175
|
else {
|
|
176
|
-
const
|
|
177
|
-
if (Math.abs(d.point.y -
|
|
178
|
-
const L = new
|
|
176
|
+
const m = e.points.at(-1);
|
|
177
|
+
if (Math.abs(d.point.y - m.y) > 0.2) {
|
|
178
|
+
const L = new y.Vector3(d.point.x, m.y, d.point.z);
|
|
179
179
|
o.setStyle(D(g({}, this.lineStyle), {
|
|
180
180
|
lineOpacity: 0.5,
|
|
181
181
|
lineColor: 3407837,
|
|
@@ -186,10 +186,10 @@ class bt extends B {
|
|
|
186
186
|
lineColor: 3407837,
|
|
187
187
|
dashed: !0,
|
|
188
188
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
189
|
-
})), o.setPoints([
|
|
189
|
+
})), o.setPoints([m, L]), c.setPoints([L, d.point]), a.position.copy(L), r = L.clone(), h = !0;
|
|
190
190
|
} else {
|
|
191
|
-
let L = new
|
|
192
|
-
Math.abs(d.point.x -
|
|
191
|
+
let L = new y.Vector3();
|
|
192
|
+
Math.abs(d.point.x - m.x) < Math.abs(d.point.z - m.z) ? L = new y.Vector3(d.point.x, m.y, m.z) : L = new y.Vector3(m.x, m.y, d.point.z), o.setStyle(D(g({}, this.lineStyle), {
|
|
193
193
|
lineOpacity: 0.5,
|
|
194
194
|
lineColor: 3407837,
|
|
195
195
|
dashed: !0,
|
|
@@ -199,26 +199,26 @@ class bt extends B {
|
|
|
199
199
|
lineColor: 3407837,
|
|
200
200
|
dashed: !0,
|
|
201
201
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
202
|
-
})), o.setPoints([
|
|
202
|
+
})), o.setPoints([m, L]), c.setPoints([L, d.point]), a.position.copy(L), r = L.clone(), h = !0;
|
|
203
203
|
}
|
|
204
204
|
this.group.addIfNotExists(o, c, a);
|
|
205
205
|
}
|
|
206
206
|
if (e.points.length >= 2) {
|
|
207
|
-
const
|
|
208
|
-
z(
|
|
207
|
+
const m = [...e.points, d.point];
|
|
208
|
+
z(m) ? (n.setStyle(g({}, this.polygonStyle)), n.setPoints(m), this.group.addIfNotExists(n)) : n.removeFromParent();
|
|
209
209
|
}
|
|
210
210
|
}, E = (d) => {
|
|
211
211
|
if (!d)
|
|
212
212
|
return;
|
|
213
|
-
let
|
|
214
|
-
l && h && r && e.points.length >= 1 && (
|
|
213
|
+
let m = d.point;
|
|
214
|
+
l && h && r && e.points.length >= 1 && (m = r.clone()), p(), e.setPoints([...e.points, m]), this.updateSelectAdsorbedHelper(), e.isPolygon && (this.currentEndReason = "polygon", this.pointSelector.disable());
|
|
215
215
|
}, b = () => {
|
|
216
|
-
var d,
|
|
217
|
-
e == null || e.setPoints(e.points.slice(0, -1)), p(), (
|
|
216
|
+
var d, m;
|
|
217
|
+
e == null || e.setPoints(e.points.slice(0, -1)), p(), (m = (d = this.pointSelector.pointSelectorHelper) == null ? void 0 : d.magnifier) == null || m.render(), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
|
|
218
218
|
}, R = () => {
|
|
219
219
|
this.pointSelector.off("intersectionUpdate", v), this.pointSelector.off("select", E), this.pointSelector.off("disable", R), this.off("undo", b), document.removeEventListener("keydown", f), document.removeEventListener("keyup", u), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), p();
|
|
220
|
-
let d = this.currentEndReason;
|
|
221
|
-
e.points.length < 2 ? (e.removeFromParent(), d = "points_insufficient") : this.addMeshEventListeners(e), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.removeMeasureListener(), this.emit("measureEnd", d), this.currentEndReason = "enter";
|
|
220
|
+
let d = this.currentEndReason, m = !0;
|
|
221
|
+
d === "escape" ? m = !1 : e.points.length < 2 ? (e.removeFromParent(), d = "points_insufficient", m = !1) : this.addMeshEventListeners(e), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.removeMeasureListener(), this.emit("measureEnd", d, m ? e.points : []), this.currentEndReason = "enter";
|
|
222
222
|
};
|
|
223
223
|
this.on("undo", b), this.pointSelector.on("intersectionUpdate", v), this.pointSelector.on("select", E), this.pointSelector.on("disable", R), this.pointSelector.enable();
|
|
224
224
|
});
|
|
@@ -450,13 +450,13 @@ class bt extends B {
|
|
|
450
450
|
this.pointSelector.setAdherePoints([this.currentMeasureMesh.points[0]]);
|
|
451
451
|
const e = this.currentMeasureMesh.points.at(-1);
|
|
452
452
|
this.pointSelector.adhereLine = [
|
|
453
|
-
new
|
|
454
|
-
new
|
|
455
|
-
new
|
|
453
|
+
new y.Line3(new y.Vector3(1, 0, 0).add(e), new y.Vector3(-1, 0, 0).add(e)),
|
|
454
|
+
new y.Line3(new y.Vector3(0, 1, 0).add(e), new y.Vector3(0, -1, 0).add(e)),
|
|
455
|
+
new y.Line3(new y.Vector3(0, 0, 1).add(e), new y.Vector3(0, 0, -1).add(e))
|
|
456
456
|
], this.pointSelector.adherePlane = [];
|
|
457
457
|
}
|
|
458
458
|
if (this.currentMeasureMesh.points.length >= 3) {
|
|
459
|
-
const e = new
|
|
459
|
+
const e = new y.Plane().setFromCoplanarPoints(
|
|
460
460
|
this.currentMeasureMesh.points[0],
|
|
461
461
|
this.currentMeasureMesh.points[1],
|
|
462
462
|
this.currentMeasureMesh.points[2]
|
|
@@ -660,8 +660,8 @@ class bt extends B {
|
|
|
660
660
|
const i = (r) => {
|
|
661
661
|
if (!this.repositioningState)
|
|
662
662
|
return;
|
|
663
|
-
const h = e.getBoundingClientRect(), l = (r.clientX - h.left) / h.width * 2 - 1, f = -((r.clientY - h.top) / h.height) * 2 + 1, u = new
|
|
664
|
-
u.setFromCamera(new
|
|
663
|
+
const h = e.getBoundingClientRect(), l = (r.clientX - h.left) / h.width * 2 - 1, f = -((r.clientY - h.top) / h.height) * 2 + 1, u = new y.Raycaster();
|
|
664
|
+
u.setFromCamera(new y.Vector2(l, f), this.five.camera);
|
|
665
665
|
const p = this.five.model.intersectRaycaster(u);
|
|
666
666
|
p && p.length > 0 ? (t = {
|
|
667
667
|
point: p[0].point,
|
|
@@ -677,8 +677,8 @@ class bt extends B {
|
|
|
677
677
|
}, n = (r) => {
|
|
678
678
|
if (!this.repositioningState || !r.touches[0])
|
|
679
679
|
return;
|
|
680
|
-
const h = e.getBoundingClientRect(), l = r.touches[0], f = (l.clientX - h.left) / h.width * 2 - 1, u = -((l.clientY - h.top) / h.height) * 2 + 1, p = new
|
|
681
|
-
p.setFromCamera(new
|
|
680
|
+
const h = e.getBoundingClientRect(), l = r.touches[0], f = (l.clientX - h.left) / h.width * 2 - 1, u = -((l.clientY - h.top) / h.height) * 2 + 1, p = new y.Raycaster();
|
|
681
|
+
p.setFromCamera(new y.Vector2(f, u), this.five.camera);
|
|
682
682
|
const v = this.five.model.intersectRaycaster(p);
|
|
683
683
|
v && v.length > 0 ? (t = {
|
|
684
684
|
point: v[0].point,
|
|
@@ -730,7 +730,7 @@ class bt extends B {
|
|
|
730
730
|
if (t)
|
|
731
731
|
n.style.left = `${t.x}px`, n.style.top = `${t.y}px`, n.style.transform = "translate(-50%, -50%)";
|
|
732
732
|
else {
|
|
733
|
-
const c = e.getWorldPosition(new
|
|
733
|
+
const c = e.getWorldPosition(new y.Vector3()).clone().project(this.five.camera), a = i.getBoundingClientRect(), r = (c.x + 1) * a.width / 2 + a.left, h = (-c.y + 1) * a.height / 2 + a.top;
|
|
734
734
|
n.style.left = `${r}px`, n.style.top = `${h}px`, n.style.transform = "translate(-50%, -50%)";
|
|
735
735
|
}
|
|
736
736
|
document.body.appendChild(n), this.longPressIndicator = n;
|
|
@@ -768,8 +768,8 @@ class bt extends B {
|
|
|
768
768
|
const c = o.touches[0];
|
|
769
769
|
if (!c)
|
|
770
770
|
return;
|
|
771
|
-
const a = e.getBoundingClientRect(), r = (c.clientX - a.left) / a.width * 2 - 1, h = -((c.clientY - a.top) / a.height) * 2 + 1, l = new
|
|
772
|
-
l.setFromCamera(new
|
|
771
|
+
const a = e.getBoundingClientRect(), r = (c.clientX - a.left) / a.width * 2 - 1, h = -((c.clientY - a.top) / a.height) * 2 + 1, l = new y.Raycaster();
|
|
772
|
+
l.setFromCamera(new y.Vector2(r, h), this.five.camera), l.params.Points.threshold = 0.5, l.params.Line.threshold = 0.1, l.params.Mesh = {};
|
|
773
773
|
const f = [];
|
|
774
774
|
for (const u of this.group.children)
|
|
775
775
|
if (!(!u || !u.line || !u.line.pointMeshes))
|
|
@@ -839,7 +839,7 @@ class bt extends B {
|
|
|
839
839
|
* Calculate screen distance between touch/mouse point and point mesh
|
|
840
840
|
*/
|
|
841
841
|
s(this, "calculateScreenDistance", (e, t, i) => {
|
|
842
|
-
const n = e.clientX, o = e.clientY, a = t.getWorldPosition(new
|
|
842
|
+
const n = e.clientX, o = e.clientY, a = t.getWorldPosition(new y.Vector3()).clone().project(this.five.camera), r = i.getBoundingClientRect(), h = (a.x + 1) * r.width / 2 + r.left, l = (-a.y + 1) * r.height / 2 + r.top, f = n - h, u = o - l;
|
|
843
843
|
return Math.sqrt(f * f + u * u);
|
|
844
844
|
});
|
|
845
845
|
this.five = e;
|
|
@@ -9,5 +9,6 @@ export type MeasurePluginConfig = {
|
|
|
9
9
|
*/
|
|
10
10
|
precision?: number;
|
|
11
11
|
};
|
|
12
|
-
export type { MeasureEndReason } from './Controller';
|
|
12
|
+
export type { MeasureEndReason, MeasurePluginEventMap } from './Controller';
|
|
13
|
+
export { validatePolygon } from './utils/validatePolygon';
|
|
13
14
|
export declare const MeasurePlugin: (five: Five, config?: MeasurePluginConfig) => MeasureController;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MeasureController as t } from "./Controller.js";
|
|
2
|
+
import { validatePolygon as Jo } from "./utils/validatePolygon.js";
|
|
2
3
|
import "three";
|
|
3
4
|
import "../shared-utils/tag.js";
|
|
4
5
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -56,6 +57,7 @@ import "../shared-utils/three/core/Line2.js";
|
|
|
56
57
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
57
58
|
import "../Sculpt/utils/unit.js";
|
|
58
59
|
import "../Sculpt/utils/renderDom.js";
|
|
60
|
+
import "../vendor/earcut/src/earcut.js";
|
|
59
61
|
import "../shared-utils/five/FivePuppet.js";
|
|
60
62
|
import "@realsee/five";
|
|
61
63
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -72,18 +74,17 @@ import "../Sculpt/Meshes/Point.js";
|
|
|
72
74
|
import "../Sculpt/Meshes/Polygon.js";
|
|
73
75
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
74
76
|
import "../shared-utils/three/earcut3D.js";
|
|
75
|
-
import "../vendor/earcut/src/earcut.js";
|
|
76
77
|
import "../shared-utils/three/getNormal.js";
|
|
77
78
|
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
78
79
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
79
80
|
import "../shared-utils/three/geometryUtil.js";
|
|
80
|
-
import "./utils/validatePolygon.js";
|
|
81
|
-
import "../shared-utils/three/vectorIsEqual.js";
|
|
82
81
|
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
83
82
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
84
83
|
import "../Sculpt/utils/Modules/DeleteButtonBgBorder.js";
|
|
85
84
|
import "../Sculpt/utils/Modules/DeleteIconSVG.js";
|
|
86
|
-
|
|
85
|
+
import "../shared-utils/three/vectorIsEqual.js";
|
|
86
|
+
const Go = (o, r) => new t(o, r);
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
Go as MeasurePlugin,
|
|
89
|
+
Jo as validatePolygon
|
|
89
90
|
};
|
|
@@ -62,6 +62,7 @@ import "../../shared-utils/three/core/Line2.js";
|
|
|
62
62
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
63
63
|
import "../../Sculpt/utils/unit.js";
|
|
64
64
|
import "../../Sculpt/utils/renderDom.js";
|
|
65
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
65
66
|
import "../../shared-utils/five/FivePuppet.js";
|
|
66
67
|
import "@realsee/five";
|
|
67
68
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -72,7 +73,6 @@ import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
|
72
73
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
73
74
|
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
74
75
|
import "../../shared-utils/three/earcut3D.js";
|
|
75
|
-
import "../../vendor/earcut/src/earcut.js";
|
|
76
76
|
import "../../shared-utils/three/getNormal.js";
|
|
77
77
|
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
78
78
|
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
@@ -29,6 +29,7 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
29
29
|
import "../shared-utils/three/blink.js";
|
|
30
30
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
31
31
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
32
|
+
import "../vendor/earcut/src/earcut.js";
|
|
32
33
|
import { MODEL_CHASSIS_COMPASS_DEFAULT_MODEL as R } from "../shared-utils/url/defaultUrls.js";
|
|
33
34
|
import "../shared-utils/five/FivePuppet.js";
|
|
34
35
|
import "../shared-utils/three/libs/inflate.js";
|
|
@@ -86,7 +87,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
86
87
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
87
88
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
89
|
import "@realsee/five";
|
|
89
|
-
const
|
|
90
|
+
const Zt = (i, m) => {
|
|
90
91
|
var L;
|
|
91
92
|
const p = (m == null ? void 0 : m.fbx_url) || R, a = (L = m == null ? void 0 : m.north_rad) != null ? L : void 0, t = {};
|
|
92
93
|
let f = { x: 0, y: 0, z: 0 }, b = [0, 0, 0], s = 1, e = a;
|
|
@@ -140,6 +141,6 @@ const Wt = (i, m) => {
|
|
|
140
141
|
return { load: c, disable: B, enable: A };
|
|
141
142
|
};
|
|
142
143
|
export {
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
Zt as ModelChassisCompassPlugin,
|
|
145
|
+
Zt as default
|
|
145
146
|
};
|
|
@@ -62,6 +62,7 @@ import "../shared-utils/three/core/Line2.js";
|
|
|
62
62
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
63
63
|
import "../Sculpt/utils/unit.js";
|
|
64
64
|
import "../Sculpt/utils/renderDom.js";
|
|
65
|
+
import "../vendor/earcut/src/earcut.js";
|
|
65
66
|
import "../shared-utils/five/FivePuppet.js";
|
|
66
67
|
import "@realsee/five";
|
|
67
68
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -31,6 +31,7 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
31
31
|
import "../shared-utils/three/blink.js";
|
|
32
32
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
33
33
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
34
|
+
import "../vendor/earcut/src/earcut.js";
|
|
34
35
|
import { MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL as H } from "../shared-utils/url/defaultUrls.js";
|
|
35
36
|
import "../shared-utils/five/FivePuppet.js";
|
|
36
37
|
import "../shared-utils/three/libs/inflate.js";
|
|
@@ -88,7 +89,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
88
89
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
89
90
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
90
91
|
import "@realsee/five";
|
|
91
|
-
const
|
|
92
|
+
const dt = (i, r) => {
|
|
92
93
|
var w, _, g;
|
|
93
94
|
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* () {
|
|
94
95
|
var d, a, M, b, f, E, P, R;
|
|
@@ -142,12 +143,12 @@ const st = (i, r) => {
|
|
|
142
143
|
o.object && (o.animation && o.animation.stop(), i.scene.remove(o.object), i.needsRender = !0);
|
|
143
144
|
}, x = (t) => t === "Floorplan" ? T() : F();
|
|
144
145
|
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) };
|
|
145
|
-
},
|
|
146
|
+
}, ut = {
|
|
146
147
|
name: "ModelEntryDoorGuidePlugin",
|
|
147
148
|
version: 0
|
|
148
149
|
};
|
|
149
150
|
export {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
dt as ModelEntryDoorGuidePlugin,
|
|
152
|
+
dt as default,
|
|
153
|
+
ut as modelEntryDoorGuidePluginServerParams
|
|
153
154
|
};
|
|
@@ -63,6 +63,7 @@ import "../shared-utils/three/core/Line2.js";
|
|
|
63
63
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
64
64
|
import "../Sculpt/utils/unit.js";
|
|
65
65
|
import "../Sculpt/utils/renderDom.js";
|
|
66
|
+
import "../vendor/earcut/src/earcut.js";
|
|
66
67
|
import "../shared-utils/five/FivePuppet.js";
|
|
67
68
|
import "@realsee/five";
|
|
68
69
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -45,6 +45,7 @@ import { boxVertex as u } from "../shared-utils/three/boundingBox.js";
|
|
|
45
45
|
import "../shared-utils/three/blink.js";
|
|
46
46
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
47
47
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
48
|
+
import "../vendor/earcut/src/earcut.js";
|
|
48
49
|
import { FiveDomEvents as z } from "../shared-utils/five/FiveDomEvents.js";
|
|
49
50
|
import "../shared-utils/five/FivePuppet.js";
|
|
50
51
|
import { tagRendererMap as G } from "./utils/tagRenderer.js";
|
|
@@ -71,7 +72,6 @@ import "../Sculpt/typings/style.js";
|
|
|
71
72
|
import "../shared-utils/three/core/PrismGeometry.js";
|
|
72
73
|
import "../shared-utils/three/core/polygonVertex.js";
|
|
73
74
|
import "../shared-utils/three/earcut3D.js";
|
|
74
|
-
import "../vendor/earcut/src/earcut.js";
|
|
75
75
|
import "../shared-utils/three/getNormal.js";
|
|
76
76
|
import "../shared-utils/three/core/PrismAnimationGeometry.js";
|
|
77
77
|
import "../shared-utils/three/geometryUtil.js";
|
|
@@ -58,6 +58,7 @@ import "../shared-utils/three/core/Line2.js";
|
|
|
58
58
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
59
59
|
import "../Sculpt/utils/unit.js";
|
|
60
60
|
import "../Sculpt/utils/renderDom.js";
|
|
61
|
+
import "../vendor/earcut/src/earcut.js";
|
|
61
62
|
import "../shared-utils/five/FivePuppet.js";
|
|
62
63
|
import "@realsee/five";
|
|
63
64
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -76,7 +77,6 @@ import "../Sculpt/utils/three/ColoredMesh.js";
|
|
|
76
77
|
import "../shared-utils/three/core/PrismGeometry.js";
|
|
77
78
|
import "../shared-utils/three/core/polygonVertex.js";
|
|
78
79
|
import "../shared-utils/three/earcut3D.js";
|
|
79
|
-
import "../vendor/earcut/src/earcut.js";
|
|
80
80
|
import "../shared-utils/three/getNormal.js";
|
|
81
81
|
import "../shared-utils/three/core/PrismAnimationGeometry.js";
|
|
82
82
|
import "../shared-utils/three/geometryUtil.js";
|
|
@@ -60,6 +60,7 @@ import "../../shared-utils/three/core/Line2.js";
|
|
|
60
60
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
61
61
|
import "../../Sculpt/utils/unit.js";
|
|
62
62
|
import "../../Sculpt/utils/renderDom.js";
|
|
63
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
63
64
|
import "../../shared-utils/five/FivePuppet.js";
|
|
64
65
|
import "@realsee/five";
|
|
65
66
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -68,7 +69,7 @@ import "../../shared-utils/five/getPosition.js";
|
|
|
68
69
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
69
70
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
70
71
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
71
|
-
class
|
|
72
|
+
class _i extends n {
|
|
72
73
|
constructor(i) {
|
|
73
74
|
var s, m;
|
|
74
75
|
super();
|
|
@@ -120,5 +121,5 @@ class Ri extends n {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
export {
|
|
123
|
-
|
|
124
|
+
_i as ModelMakerBaseItem
|
|
124
125
|
};
|
|
@@ -60,6 +60,7 @@ import "../../shared-utils/three/core/Line2.js";
|
|
|
60
60
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
61
61
|
import "../../Sculpt/utils/unit.js";
|
|
62
62
|
import "../../Sculpt/utils/renderDom.js";
|
|
63
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
63
64
|
import "../../shared-utils/five/FivePuppet.js";
|
|
64
65
|
import "@realsee/five";
|
|
65
66
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -69,7 +70,7 @@ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
|
69
70
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
70
71
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
71
72
|
import "../../shared-utils/three/boundingBox.js";
|
|
72
|
-
class
|
|
73
|
+
class xi extends s {
|
|
73
74
|
constructor(...t) {
|
|
74
75
|
super(...t);
|
|
75
76
|
r(this, "hideTag", () => {
|
|
@@ -94,5 +95,5 @@ class wi extends s {
|
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
xi as ModelMakerBoxItem
|
|
98
99
|
};
|
|
@@ -60,6 +60,7 @@ import "../../shared-utils/three/core/Line2.js";
|
|
|
60
60
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
61
61
|
import "../../Sculpt/utils/unit.js";
|
|
62
62
|
import "../../Sculpt/utils/renderDom.js";
|
|
63
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
63
64
|
import "../../shared-utils/five/FivePuppet.js";
|
|
64
65
|
import "@realsee/five";
|
|
65
66
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -69,7 +70,7 @@ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
|
69
70
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
70
71
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
71
72
|
import "../../shared-utils/three/boundingBox.js";
|
|
72
|
-
class
|
|
73
|
+
class wt extends a {
|
|
73
74
|
constructor(...t) {
|
|
74
75
|
super(...t);
|
|
75
76
|
p(this, "onPanoArrived", (t) => {
|
|
@@ -94,5 +95,5 @@ class ct extends a {
|
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
wt as ModelMakerPolygonItem
|
|
98
99
|
};
|
|
@@ -24,6 +24,7 @@ import { boundingBox as C, boxVertex as a } from "../../shared-utils/three/bound
|
|
|
24
24
|
import "../../shared-utils/three/blink.js";
|
|
25
25
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
26
26
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
27
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
27
28
|
import "../../shared-utils/five/FivePuppet.js";
|
|
28
29
|
import { ModelMakerBaseItem as S } from "./baseItem.js";
|
|
29
30
|
import "../../shared-utils/positionToVector3.js";
|
|
@@ -79,7 +80,7 @@ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
|
79
80
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
80
81
|
import "@realsee/five";
|
|
81
82
|
import "../../shared-utils/three/addIfNotExists.js";
|
|
82
|
-
class
|
|
83
|
+
class _o extends S {
|
|
83
84
|
constructor(...o) {
|
|
84
85
|
const r = o[0], p = C(r.model), m = new b.Vector3().lerpVectors(a(p, 0), a(p, 5), 0.5);
|
|
85
86
|
super(h(n({}, r), { position: m }));
|
|
@@ -103,5 +104,5 @@ class To extends S {
|
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
+
_o as ModelMakerPrismItem
|
|
107
108
|
};
|
|
@@ -73,6 +73,7 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
73
73
|
import "../shared-utils/three/blink.js";
|
|
74
74
|
import "../vendor/animejs/lib/anime.es.js";
|
|
75
75
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
76
|
+
import "../vendor/earcut/src/earcut.js";
|
|
76
77
|
import "../shared-utils/five/FivePuppet.js";
|
|
77
78
|
import "@realsee/five";
|
|
78
79
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -85,7 +86,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
85
86
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
86
87
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
87
88
|
import "../shared-utils/url/defaultUrls.js";
|
|
88
|
-
const
|
|
89
|
+
const Ze = (s, { videoElement: g }) => {
|
|
89
90
|
const e = {
|
|
90
91
|
videoMeshes: [],
|
|
91
92
|
videoTextureEnabled: !1,
|
|
@@ -228,6 +229,6 @@ const Ye = (s, { videoElement: g }) => {
|
|
|
228
229
|
}), { enable: h, disable: l, load: L, dispose: V, state: e, css3DRenderPlugin: f };
|
|
229
230
|
};
|
|
230
231
|
export {
|
|
231
|
-
|
|
232
|
-
|
|
232
|
+
Ze as ModelTVVideoPlugin,
|
|
233
|
+
Ze as default
|
|
233
234
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelTVVideoPlugin as r } from "./Plugin.js";
|
|
2
|
-
import { DIRECTION as
|
|
2
|
+
import { DIRECTION as Mo } from "./typings.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "./utils/parseData.js";
|
|
5
5
|
import "../CSS3DRenderPlugin/index.js";
|
|
@@ -57,6 +57,7 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
57
57
|
import "../shared-utils/three/blink.js";
|
|
58
58
|
import "../vendor/animejs/lib/anime.es.js";
|
|
59
59
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
60
|
+
import "../vendor/earcut/src/earcut.js";
|
|
60
61
|
import "../shared-utils/five/FivePuppet.js";
|
|
61
62
|
import "@realsee/five";
|
|
62
63
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
@@ -71,7 +72,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
71
72
|
import "../shared-utils/url/defaultUrls.js";
|
|
72
73
|
import "../PanoTagPlugin/Assets/Icon.js";
|
|
73
74
|
export {
|
|
74
|
-
|
|
75
|
+
Mo as DIRECTION,
|
|
75
76
|
r as ModelTVVideoPlugin,
|
|
76
77
|
r as default
|
|
77
78
|
};
|
|
@@ -39,6 +39,7 @@ import { boundingBox as v } from "../shared-utils/three/boundingBox.js";
|
|
|
39
39
|
import "../shared-utils/three/blink.js";
|
|
40
40
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
41
41
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
42
|
+
import "../vendor/earcut/src/earcut.js";
|
|
42
43
|
import "../shared-utils/five/FivePuppet.js";
|
|
43
44
|
import "../shared-utils/positionToVector3.js";
|
|
44
45
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
@@ -91,7 +92,7 @@ import "../vendor/animejs/lib/anime.es.js";
|
|
|
91
92
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
92
93
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
93
94
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
94
|
-
const
|
|
95
|
+
const ue = (e, o) => {
|
|
95
96
|
var N, R;
|
|
96
97
|
const r = new $();
|
|
97
98
|
let s = (R = (N = o == null ? void 0 : o.initialState) == null ? void 0 : N.enabled) != null ? R : !0, f = !1, h = !0, i = null;
|
|
@@ -188,6 +189,6 @@ const ce = (e, o) => {
|
|
|
188
189
|
return e.on("loaded", O), e.on("willLoad", F), e.on("cameraDirectionUpdate", g), e.on("dispose", H), e.on("renderFrame", M), e.on("cameraPositionUpdate", g), { appendTo: G, refresh: P, changeConfigs: _, enable: T, disable: W, getCurrentState: q, hooks: r };
|
|
189
190
|
};
|
|
190
191
|
export {
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
ue as ModelViewPlugin,
|
|
193
|
+
ue as default
|
|
193
194
|
};
|
|
@@ -57,6 +57,7 @@ import "../shared-utils/three/core/Line2.js";
|
|
|
57
57
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
58
58
|
import "../Sculpt/utils/unit.js";
|
|
59
59
|
import "../Sculpt/utils/renderDom.js";
|
|
60
|
+
import "../vendor/earcut/src/earcut.js";
|
|
60
61
|
import "../shared-utils/five/FivePuppet.js";
|
|
61
62
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
62
63
|
import "../shared-utils/isTouchDevice.js";
|