@realsee/dnalogel 2.2.0 → 2.2.1
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/index.cjs.js +13 -13
- package/dist/index.js +275 -274
- package/dist/index.umd.js +13 -13
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +85 -84
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -494,17 +494,17 @@ class Ka extends qa {
|
|
|
494
494
|
let p = [];
|
|
495
495
|
const g = this;
|
|
496
496
|
g.tween = Va({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step: v }) => {
|
|
497
|
-
var
|
|
497
|
+
var w;
|
|
498
498
|
if (g.tweening = !0, !g.ready)
|
|
499
|
-
return a.clearRect(0, 0, g.canvas[f].width, g.canvas[f].height), (
|
|
499
|
+
return a.clearRect(0, 0, g.canvas[f].width, g.canvas[f].height), (w = g.tween) == null ? void 0 : w.stop();
|
|
500
500
|
const A = Math.floor(v);
|
|
501
|
-
if (!p.find((
|
|
501
|
+
if (!p.find((y) => y === A)) {
|
|
502
502
|
if (p.push(A), console.log("__debug__", l, l[A], A), m.push(Un(l[A], g.clientWidth, g.clientHeight)), m.length < 3)
|
|
503
503
|
return;
|
|
504
|
-
const { control:
|
|
505
|
-
if (!
|
|
504
|
+
const { control: y, end: I } = ln(m);
|
|
505
|
+
if (!y || !I)
|
|
506
506
|
return;
|
|
507
|
-
a.quadraticCurveTo(
|
|
507
|
+
a.quadraticCurveTo(y.x, y.y, I.x, I.y), a.stroke();
|
|
508
508
|
}
|
|
509
509
|
}).onComplete((v) => {
|
|
510
510
|
g.tween = void 0, g.tweening = !1, p = [], m = [], s && s(), r();
|
|
@@ -605,7 +605,7 @@ const Hg = (i, t) => {
|
|
|
605
605
|
}, u = () => {
|
|
606
606
|
l.traverse((C) => {
|
|
607
607
|
C instanceof P.Mesh && [].concat(C.material).forEach((D) => D.dispose());
|
|
608
|
-
}), r.remove(l), l = new P.Object3D(), r.add(l),
|
|
608
|
+
}), r.remove(l), l = new P.Object3D(), r.add(l), w();
|
|
609
609
|
}, m = () => {
|
|
610
610
|
c = v(i.model, a.fov, a.aspect), d = i.model.bounding.getCenter(new P.Vector3());
|
|
611
611
|
function C(D) {
|
|
@@ -624,7 +624,7 @@ const Hg = (i, t) => {
|
|
|
624
624
|
return D.children.forEach((B) => H.add(L(B))), H;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
r.remove(l), l = L(i.model), r.add(l),
|
|
627
|
+
r.remove(l), l = L(i.model), r.add(l), w();
|
|
628
628
|
}, p = (C, L = {}) => {
|
|
629
629
|
const D = f();
|
|
630
630
|
if (!D)
|
|
@@ -640,7 +640,7 @@ const Hg = (i, t) => {
|
|
|
640
640
|
const { width: H = D.offsetWidth, height: B = D.offsetHeight } = C;
|
|
641
641
|
n.setSize(H, B), a.aspect = H / B, a.updateProjectionMatrix();
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
w();
|
|
644
644
|
};
|
|
645
645
|
function v(C, L, D) {
|
|
646
646
|
const H = C.bounding, B = Math.pow(
|
|
@@ -653,19 +653,19 @@ const Hg = (i, t) => {
|
|
|
653
653
|
function A(C) {
|
|
654
654
|
return i.work.observers[C].standingPosition.clone();
|
|
655
655
|
}
|
|
656
|
-
const
|
|
656
|
+
const w = () => {
|
|
657
657
|
if (!c || !d)
|
|
658
658
|
return;
|
|
659
659
|
const C = i.getPose();
|
|
660
660
|
C.fov = a.fov, C.offset = d, C.distance = c, typeof s.lockedLatitude == "number" && (C.latitude = s.lockedLatitude), typeof s.lockedLongitude == "number" && (C.longitude = s.lockedLongitude), typeof s.lockedPanoIndex == "number" && (C.offset = A(s.lockedPanoIndex)), s.lookAtCurrentCamera && (C.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), a.setFromPose(C), e = !0;
|
|
661
|
-
},
|
|
661
|
+
}, y = () => {
|
|
662
662
|
e !== !0 || !n || !n.domElement.parentNode || n.domElement.parentNode.offsetWidth === 0 || (n.render(r, a), e = !1);
|
|
663
663
|
}, I = () => {
|
|
664
664
|
n && n.dispose(), n = null;
|
|
665
665
|
}, k = (C) => {
|
|
666
|
-
Object.assign(s, C),
|
|
666
|
+
Object.assign(s, C), w();
|
|
667
667
|
};
|
|
668
|
-
return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate",
|
|
668
|
+
return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate", w), i.on("dispose", I), i.on("renderFrame", y), i.on("cameraPositionUpdate", w), { appendTo: p, refresh: g, changeConfigs: k };
|
|
669
669
|
};
|
|
670
670
|
function $a(i) {
|
|
671
671
|
return typeof Symbol == "undefined" ? `$Symbol<${i}>$` : Symbol(i);
|
|
@@ -759,8 +759,8 @@ class Cr extends mr {
|
|
|
759
759
|
e.classList.add(`${nl}__container`);
|
|
760
760
|
const p = new Z().subVectors(n[1], n[0]), g = new Z().subVectors(n[3], n[0]), v = new Z().crossVectors(p, g).normalize();
|
|
761
761
|
this.lookAt(v);
|
|
762
|
-
const A = this.up.clone().applyQuaternion(this.quaternion),
|
|
763
|
-
this.rotateOnWorldAxis(
|
|
762
|
+
const A = this.up.clone().applyQuaternion(this.quaternion), w = g.clone(), y = new Z().crossVectors(A, w).normalize();
|
|
763
|
+
this.rotateOnWorldAxis(y, A.angleTo(w)), this.position.copy(u);
|
|
764
764
|
}
|
|
765
765
|
changeMode(e, n) {
|
|
766
766
|
if (e === this.mode)
|
|
@@ -829,7 +829,7 @@ class Pr {
|
|
|
829
829
|
}
|
|
830
830
|
E === "front" && (N == null || N.css3DScene.remove(Y.css3DObject), (me = (le = ee[m.uuid]) == null ? void 0 : le.scene) == null || me.remove(Y.opacityMesh), W[m.uuid] = { css3DObject: m, visible: !0, enabled: !0, mode: E }, X == null || X.css3DScene.add(m)), E === "behind" && this.appendToElement(de.behindModeContainer, "behind"), E === "front" && this.appendToElement(de.frontModeContainer, "front"), this.render(t), console.log("change success");
|
|
831
831
|
});
|
|
832
|
-
const A = l === "front" ? de.frontModeStore : de.behindModeStore, { css3DScene:
|
|
832
|
+
const A = l === "front" ? de.frontModeStore : de.behindModeStore, { css3DScene: w, css3DRenderer: y } = A, I = (() => {
|
|
833
833
|
const E = () => {
|
|
834
834
|
var j, N;
|
|
835
835
|
const S = m.mode;
|
|
@@ -852,12 +852,12 @@ class Pr {
|
|
|
852
852
|
scene: o.scene
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
|
-
|
|
855
|
+
w.getObjectById(m.id) || w.add(m), S === "behind" && p && ((j = o.scene) != null && j.getObjectById(p.id) || (N = o.scene) == null || N.add(p), u.push(() => {
|
|
856
856
|
var X;
|
|
857
857
|
return p && ((X = o.scene) == null ? void 0 : X.remove(p));
|
|
858
858
|
}));
|
|
859
859
|
};
|
|
860
|
-
return g || v ? (
|
|
860
|
+
return g || v ? (y.domElement.style.position = "absolute", y.domElement.style.top = "0", y.domElement.style.userSelect = "none", y.domElement.style.pointerEvents = "none", y.domElement.classList.add(_i(l)), () => {
|
|
861
861
|
E(), this.render(t);
|
|
862
862
|
}) : (this.store.rendered = !0, () => E());
|
|
863
863
|
})(), k = l === "front" ? de.frontModeContainer : de.behindModeContainer;
|
|
@@ -866,7 +866,7 @@ class Pr {
|
|
|
866
866
|
const E = l === "front" ? de.frontModeStore : de.behindModeStore;
|
|
867
867
|
E && (E.appendedToPage = !0);
|
|
868
868
|
}
|
|
869
|
-
const C = (E) => this.setVisibleById(m.uuid, E), L = (E) => this.setEnabledById(m.uuid, E), D = () => C(!0), H = () => C(!1), B = () => L(!0), F = () => L(!1), U = () => (delete this.store.frontModeCSS3DObjects[m.uuid], delete this.store.behindModeCSS3DObjects[m.uuid], u.forEach((E) => E == null ? void 0 : E()),
|
|
869
|
+
const C = (E) => this.setVisibleById(m.uuid, E), L = (E) => this.setEnabledById(m.uuid, E), D = () => C(!0), H = () => C(!1), B = () => L(!0), F = () => L(!1), U = () => (delete this.store.frontModeCSS3DObjects[m.uuid], delete this.store.behindModeCSS3DObjects[m.uuid], u.forEach((E) => E == null ? void 0 : E()), w.remove(m), w.children.length === 0 && (typeof A.requestAnimationFrameId == "number" && cancelAnimationFrame(A.requestAnimationFrameId), y.domElement.remove(), l === "front" && (de.frontModeStore = void 0), l === "behind" && (de.behindModeStore = void 0), de.frontModeResizeObserver = void 0, de.behindModeResizeObserver = void 0), !0);
|
|
870
870
|
return this.store.disposers.push(U), c && I(), {
|
|
871
871
|
id: m.uuid,
|
|
872
872
|
container: d,
|
|
@@ -1177,11 +1177,11 @@ const Fg = (i) => {
|
|
|
1177
1177
|
};
|
|
1178
1178
|
return t.disposers.push(A), { clear: A, pointAxesHelperMesh: v };
|
|
1179
1179
|
}, s = (d, f = 0) => {
|
|
1180
|
-
var A,
|
|
1180
|
+
var A, w;
|
|
1181
1181
|
const u = (A = i == null ? void 0 : i.camera) == null ? void 0 : A.position;
|
|
1182
1182
|
if (!u)
|
|
1183
1183
|
return !1;
|
|
1184
|
-
const m = d.distanceTo(u), p = d.sub(u).normalize(), g = new Tt(u, p), v = (
|
|
1184
|
+
const m = d.distanceTo(u), p = d.sub(u).normalize(), g = new Tt(u, p), v = (w = i.model.intersectRaycaster(g)) == null ? void 0 : w[0];
|
|
1185
1185
|
return !(v && v.distance + f < m);
|
|
1186
1186
|
}, r = () => t.intersection, a = () => {
|
|
1187
1187
|
var d, f;
|
|
@@ -1321,23 +1321,23 @@ function gl(i, t, e) {
|
|
|
1321
1321
|
function c(v) {
|
|
1322
1322
|
if (!(l === null || v.floorIndex === l))
|
|
1323
1323
|
return !1;
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1326
|
-
const [C] = o.model.intersectRaycaster(
|
|
1324
|
+
const w = new Tt(), y = o.camera.position.clone(), I = new Z(v.position.x, v.position.y, v.position.z), k = I.distanceTo(y);
|
|
1325
|
+
w.set(y.clone(), I.clone().sub(y).normalize());
|
|
1326
|
+
const [C] = o.model.intersectRaycaster(w);
|
|
1327
1327
|
return !(C && C.distance + 1 < k);
|
|
1328
1328
|
}
|
|
1329
1329
|
function d(v, A) {
|
|
1330
|
-
const
|
|
1330
|
+
const y = new Z(v.position.x, v.position.y, v.position.z).clone().project(o.camera), I = Math.ceil((y.x + 1) / 2 * A.x), k = Math.ceil((-y.y + 1) / 2 * A.y);
|
|
1331
1331
|
return `translate(${I}px, ${k}px)`;
|
|
1332
1332
|
}
|
|
1333
1333
|
function f(v) {
|
|
1334
|
-
const { rendererSize: A, shownFloor:
|
|
1334
|
+
const { rendererSize: A, shownFloor: w } = v, y = /* @__PURE__ */ new Map();
|
|
1335
1335
|
function I(C) {
|
|
1336
|
-
const L =
|
|
1336
|
+
const L = y.get(C.id);
|
|
1337
1337
|
if (L)
|
|
1338
1338
|
return L;
|
|
1339
1339
|
const { x: D, y: H, z: B } = C.position, F = new Z(D, H, B).clone().distanceTo(o.camera.position);
|
|
1340
|
-
return
|
|
1340
|
+
return y.set(C.id, F), F;
|
|
1341
1341
|
}
|
|
1342
1342
|
return s.map((C) => {
|
|
1343
1343
|
const L = c(C), D = L ? d(C, A) : C.transform, H = I(C), F = s.filter((U) => U.visible && I(U) < H).length * 10;
|
|
@@ -1536,8 +1536,8 @@ function kl(i) {
|
|
|
1536
1536
|
function Dl(i, t, e) {
|
|
1537
1537
|
let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
|
|
1538
1538
|
const { observers: a } = o, l = a[n], c = l.positionInImage.x, d = l.positionInImage.y, f = c * 100 + "%", u = d * 100 + "%", m = -Il(s) + 45, p = document.body.clientWidth, g = document.body.clientHeight, A = `${(p < 500 || g < 500 ? 17 : 37) / 16}rem`;
|
|
1539
|
-
return i.$$set = (
|
|
1540
|
-
"panoIndex" in
|
|
1539
|
+
return i.$$set = (w) => {
|
|
1540
|
+
"panoIndex" in w && e(5, n = w.panoIndex), "floorplanData" in w && e(6, o = w.floorplanData), "lastPanoramaLongitude" in w && e(7, s = w.lastPanoramaLongitude), "cameraImageUrl" in w && e(0, r = w.cameraImageUrl);
|
|
1541
1541
|
}, [
|
|
1542
1542
|
r,
|
|
1543
1543
|
f,
|
|
@@ -1884,7 +1884,7 @@ function tc(i, t, e) {
|
|
|
1884
1884
|
].every((ye) => ec(ye, le));
|
|
1885
1885
|
};
|
|
1886
1886
|
}
|
|
1887
|
-
const p = document.body.clientWidth, g = document.body.clientHeight, v = l.roomLabel, A = v.positionInImage.x * 100 + "%",
|
|
1887
|
+
const p = document.body.clientWidth, g = document.body.clientHeight, v = l.roomLabel, A = v.positionInImage.x * 100 + "%", w = v.positionInImage.y * 100 + "%", y = (p < 500 || g < 500 ? 10 : 14) / 16 + "rem";
|
|
1888
1888
|
let I = !1, k, C;
|
|
1889
1889
|
c.subscribe(function(H) {
|
|
1890
1890
|
e(13, I = !!H && H.id === l.id);
|
|
@@ -1912,8 +1912,8 @@ function tc(i, t, e) {
|
|
|
1912
1912
|
s,
|
|
1913
1913
|
n,
|
|
1914
1914
|
A,
|
|
1915
|
-
y,
|
|
1916
1915
|
w,
|
|
1916
|
+
y,
|
|
1917
1917
|
a,
|
|
1918
1918
|
c,
|
|
1919
1919
|
d,
|
|
@@ -2218,8 +2218,8 @@ function cc(i, t, e) {
|
|
|
2218
2218
|
});
|
|
2219
2219
|
f.unshift({ left: 0, bottom: 0 }), f.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
2220
2220
|
const u = d[d.length - 1] - d[0], m = d.map((p, g, v) => {
|
|
2221
|
-
const A = g === 0 ? 0 : p - v[g - 1],
|
|
2222
|
-
return { left:
|
|
2221
|
+
const A = g === 0 ? 0 : p - v[g - 1], w = g === 0 ? 0 : (p + v[g - 1]) / 2, y = a ? (w - s.min.x - Rt + Ot) / l : 0, I = a ? 0 : (w - s.min.y - Rt + Ot) / c;
|
|
2222
|
+
return { left: y, bottom: I, distance: A };
|
|
2223
2223
|
}).filter(({ distance: p }) => p / u > 0.1);
|
|
2224
2224
|
return i.$$set = (p) => {
|
|
2225
2225
|
"type" in p && e(0, n = p.type), "data" in p && e(5, o = p.data), "bounding" in p && e(6, s = p.bounding), "getRuleDistanceText" in p && e(1, r = p.getRuleDistanceText);
|
|
@@ -3008,30 +3008,30 @@ function Nc(i) {
|
|
|
3008
3008
|
c() {
|
|
3009
3009
|
t = O("div"), _(e.$$.fragment), n = V(), u && u.c(), o = V(), _(s.$$.fragment), r = V(), g && g.c(), a = V(), v && v.c(), b(t, "class", l = Te(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
|
|
3010
3010
|
},
|
|
3011
|
-
m(A,
|
|
3012
|
-
M(A, t,
|
|
3011
|
+
m(A, w) {
|
|
3012
|
+
M(A, t, w), K(e, t, null), Q(t, n), u && u.m(t, null), Q(t, o), K(s, t, null), Q(t, r), g && g.m(t, null), Q(t, a), v && v.m(t, null), c = !0;
|
|
3013
3013
|
},
|
|
3014
|
-
p(A, [
|
|
3015
|
-
const
|
|
3014
|
+
p(A, [w]) {
|
|
3015
|
+
const y = w & 34 ? ze(d, [
|
|
3016
3016
|
{
|
|
3017
3017
|
floorIndex: A[1],
|
|
3018
3018
|
floorplanData: A[5]
|
|
3019
3019
|
}
|
|
3020
3020
|
]) : {};
|
|
3021
|
-
e.$set(
|
|
3021
|
+
e.$set(y), A[2] ? u ? (u.p(A, w), w & 4 && x(u, 1)) : (u = Ao(A), u.c(), x(u, 1), u.m(t, o)) : u && (ue(), z(u, 1, 1, () => {
|
|
3022
3022
|
u = null;
|
|
3023
3023
|
}), fe());
|
|
3024
|
-
const I =
|
|
3024
|
+
const I = w & 34 ? ze(m, [
|
|
3025
3025
|
{
|
|
3026
3026
|
floorplanData: A[5],
|
|
3027
3027
|
floorIndex: A[1]
|
|
3028
3028
|
}
|
|
3029
3029
|
]) : {};
|
|
3030
|
-
s.$set(I), A[3] ? g ? (g.p(A,
|
|
3030
|
+
s.$set(I), A[3] ? g ? (g.p(A, w), w & 8 && x(g, 1)) : (g = vo(A), g.c(), x(g, 1), g.m(t, a)) : g && (ue(), z(g, 1, 1, () => {
|
|
3031
3031
|
g = null;
|
|
3032
|
-
}), fe()), A[4] ? v ? (v.p(A,
|
|
3032
|
+
}), fe()), A[4] ? v ? (v.p(A, w), w & 16 && x(v, 1)) : (v = bo(A), v.c(), x(v, 1), v.m(t, null)) : v && (ue(), z(v, 1, 1, () => {
|
|
3033
3033
|
v = null;
|
|
3034
|
-
}), fe()), (!c ||
|
|
3034
|
+
}), fe()), (!c || w & 1 && l !== (l = Te(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
|
|
3035
3035
|
},
|
|
3036
3036
|
i(A) {
|
|
3037
3037
|
c || (x(e.$$.fragment, A), x(u), x(s.$$.fragment, A), x(g), x(v), c = !0);
|
|
@@ -3290,9 +3290,9 @@ function Uc(i) {
|
|
|
3290
3290
|
};
|
|
3291
3291
|
}
|
|
3292
3292
|
function Jc(i, t, e) {
|
|
3293
|
-
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: f } = t, { floorplanData: u } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: p } = t, { getRoomAreaText: g } = t, { getLabelElement: v } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable:
|
|
3294
|
-
return i.$$set = (
|
|
3295
|
-
"duration" in
|
|
3293
|
+
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: f } = t, { floorplanData: u } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: p } = t, { getRoomAreaText: g } = t, { getLabelElement: v } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: w } = t;
|
|
3294
|
+
return i.$$set = (y) => {
|
|
3295
|
+
"duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, f = y.ruleLabelsEnable), "floorplanData" in y && e(9, u = y.floorplanData), "lastPanoramaLongitude" in y && e(10, m = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, p = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, v = y.getLabelElement), "getRuleDistanceText" in y && e(14, A = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, w = y.adaptiveRoomLabelVisibleEnable);
|
|
3296
3296
|
}, [
|
|
3297
3297
|
n,
|
|
3298
3298
|
o,
|
|
@@ -3309,7 +3309,7 @@ function Jc(i, t, e) {
|
|
|
3309
3309
|
g,
|
|
3310
3310
|
v,
|
|
3311
3311
|
A,
|
|
3312
|
-
|
|
3312
|
+
w
|
|
3313
3313
|
];
|
|
3314
3314
|
}
|
|
3315
3315
|
class Li extends te {
|
|
@@ -4344,7 +4344,7 @@ function hd(i, t, e) {
|
|
|
4344
4344
|
const v = p.bounding, A = p.observers[g];
|
|
4345
4345
|
if (!A)
|
|
4346
4346
|
return "";
|
|
4347
|
-
const
|
|
4347
|
+
const w = (v.max.x - v.min.x) * r, y = (v.max.y - v.min.y) * r, I = Math.floor(A.positionInImage.x * w), k = Math.floor(A.positionInImage.y * y);
|
|
4348
4348
|
return `translate(${I}px, ${k}px)`;
|
|
4349
4349
|
}
|
|
4350
4350
|
function u(p) {
|
|
@@ -4702,9 +4702,10 @@ function Ed(i) {
|
|
|
4702
4702
|
};
|
|
4703
4703
|
}
|
|
4704
4704
|
function Pd(i, t, e) {
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4705
|
+
var A, w;
|
|
4706
|
+
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (w = (A = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : A.floorIndex) != null ? w : 0, f = 0, u = 0, m = 0, p = 0;
|
|
4707
|
+
function g(y) {
|
|
4708
|
+
e(10, d = n.work.observers[y].floorIndex);
|
|
4708
4709
|
}
|
|
4709
4710
|
Ue(() => (n.on("panoArrived", g), () => {
|
|
4710
4711
|
n.off("panoArrived", g);
|
|
@@ -4712,14 +4713,14 @@ function Pd(i, t, e) {
|
|
|
4712
4713
|
function v() {
|
|
4713
4714
|
f = this.clientWidth, u = this.clientHeight, e(6, f), e(7, u);
|
|
4714
4715
|
}
|
|
4715
|
-
return i.$$set = (
|
|
4716
|
-
"five" in
|
|
4716
|
+
return i.$$set = (y) => {
|
|
4717
|
+
"five" in y && e(0, n = y.five), "visible" in y && e(1, o = y.visible), "hoverEnable" in y && e(2, s = y.hoverEnable), "floorplanData" in y && e(3, r = y.floorplanData), "cameraImageUrl" in y && e(4, a = y.cameraImageUrl), "extraObjects" in y && e(5, l = y.extraObjects);
|
|
4717
4718
|
}, i.$$.update = () => {
|
|
4718
4719
|
if (i.$$.dirty & 456) {
|
|
4719
|
-
const
|
|
4720
|
-
return
|
|
4720
|
+
const y = Math.min(f, u), { max: I, min: k } = r.bounding, C = I.x - k.x, L = I.y - k.y, D = function() {
|
|
4721
|
+
return C > L ? [y, y / C * L] : [y / L * C, y];
|
|
4721
4722
|
}();
|
|
4722
|
-
e(8, m =
|
|
4723
|
+
e(8, m = D[0]), e(11, p = D[1]), e(9, c = m / C);
|
|
4723
4724
|
}
|
|
4724
4725
|
}, [
|
|
4725
4726
|
n,
|
|
@@ -5009,8 +5010,8 @@ const qg = (i, t) => {
|
|
|
5009
5010
|
const u = (f == null ? void 0 : f.fbx_url) || e, m = (U = f == null ? void 0 : f.north_rad) != null ? U : n;
|
|
5010
5011
|
if (typeof m != "number")
|
|
5011
5012
|
throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
|
|
5012
|
-
const p = i.model.bounding, g = p.max.x - p.min.x, v = p.max.z - p.min.z, A = Math.max(g, v),
|
|
5013
|
-
zr(
|
|
5013
|
+
const p = i.model.bounding, g = p.max.x - p.min.x, v = p.max.z - p.min.z, A = Math.max(g, v), y = yield new vr().loadAsync(u);
|
|
5014
|
+
zr(y, {
|
|
5014
5015
|
transparent: !0,
|
|
5015
5016
|
side: P.DoubleSide,
|
|
5016
5017
|
blending: P.AdditiveBlending
|
|
@@ -5025,7 +5026,7 @@ const qg = (i, t) => {
|
|
|
5025
5026
|
} = i;
|
|
5026
5027
|
o.yBase = D;
|
|
5027
5028
|
const B = { x: (k + L) / 2, y: D - 1.6, z: (C + H) / 2 }, F = 45e-4 * A;
|
|
5028
|
-
return kd(
|
|
5029
|
+
return kd(y, { position: B, rotation: I, scale: F }), o.object = y, !0;
|
|
5029
5030
|
}), r = ({ latitude: f }) => {
|
|
5030
5031
|
if (!o.object)
|
|
5031
5032
|
return;
|
|
@@ -5058,12 +5059,12 @@ function Dd(i, t) {
|
|
|
5058
5059
|
}
|
|
5059
5060
|
const Ld = ({ x: i, y: t, z: e }) => new Z(i, t, e), _g = (i, t) => {
|
|
5060
5061
|
var g, v, A;
|
|
5061
|
-
const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (
|
|
5062
|
+
const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (w) => J(void 0, null, function* () {
|
|
5062
5063
|
var H, B, F, U, E, S, j;
|
|
5063
|
-
const
|
|
5064
|
-
if (!
|
|
5064
|
+
const y = (H = w == null ? void 0 : w.position) != null ? H : o;
|
|
5065
|
+
if (!y)
|
|
5065
5066
|
return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");
|
|
5066
|
-
const I = Ld(
|
|
5067
|
+
const I = Ld(y), k = (B = w == null ? void 0 : w.rad) != null ? B : s, C = (F = w == null ? void 0 : w.fbx_url) != null ? F : r;
|
|
5067
5068
|
if (e.rad = k, k === void 0)
|
|
5068
5069
|
return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${k}`);
|
|
5069
5070
|
const L = yield new vr().loadAsync(C);
|
|
@@ -5075,10 +5076,10 @@ const Ld = ({ x: i, y: t, z: e }) => new Z(i, t, e), _g = (i, t) => {
|
|
|
5075
5076
|
return;
|
|
5076
5077
|
if (!e.object)
|
|
5077
5078
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
5078
|
-
const
|
|
5079
|
-
a.push(
|
|
5080
|
-
const I =
|
|
5081
|
-
I.timeScale =
|
|
5079
|
+
const w = 1, y = new Da(e.object);
|
|
5080
|
+
a.push(y);
|
|
5081
|
+
const I = y.clipAction(e.object.animations[0]);
|
|
5082
|
+
I.timeScale = w;
|
|
5082
5083
|
let k;
|
|
5083
5084
|
const C = () => {
|
|
5084
5085
|
let B = 0, F = 0;
|
|
@@ -5098,15 +5099,15 @@ const Ld = ({ x: i, y: t, z: e }) => new Z(i, t, e), _g = (i, t) => {
|
|
|
5098
5099
|
I.stop(), k == null || k(), k = void 0;
|
|
5099
5100
|
} };
|
|
5100
5101
|
e.animation = H;
|
|
5101
|
-
}, d = (
|
|
5102
|
+
}, d = (w) => {
|
|
5102
5103
|
var I;
|
|
5103
5104
|
if (!e.object)
|
|
5104
5105
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
5105
|
-
((I =
|
|
5106
|
+
((I = w == null ? void 0 : w.animationEnable) != null ? I : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
|
|
5106
5107
|
}, f = () => {
|
|
5107
5108
|
!e.object || (e.animation && e.animation.stop(), i.scene.remove(e.object), i.needsRender = !0);
|
|
5108
|
-
}, u = (
|
|
5109
|
-
return { load: l, enable: (
|
|
5109
|
+
}, u = (w) => w === "Floorplan" ? d() : f();
|
|
5110
|
+
return { load: l, enable: (w) => (e.enabled || (e.enabled = !0, u(i.currentMode), i.on("modeChange", u), d(w)), !0), disable: () => (e.enabled && (e.enabled = !1, f(), i.off("modeChange", u)), !0) };
|
|
5110
5111
|
};
|
|
5111
5112
|
class ji extends Zt.Tween {
|
|
5112
5113
|
constructor() {
|
|
@@ -5226,16 +5227,16 @@ const ui = (i, t, e) => {
|
|
|
5226
5227
|
})), a.asyncEndCallback && (yield a.asyncEndCallback());
|
|
5227
5228
|
const { from: f, to: u } = n(s);
|
|
5228
5229
|
return yield new Promise((m) => {
|
|
5229
|
-
const p = ({ progress:
|
|
5230
|
+
const p = ({ progress: y }) => {
|
|
5230
5231
|
const I = {};
|
|
5231
|
-
I.longitude = qn(f.longitude, u.longitude,
|
|
5232
|
+
I.longitude = qn(f.longitude, u.longitude, y), I.latitude = qn(f.latitude, u.latitude, y), I.fov = qn(f.fov, u.fov, y), i.setState(I, !0);
|
|
5232
5233
|
}, g = () => {
|
|
5233
5234
|
m(!0);
|
|
5234
5235
|
}, v = () => {
|
|
5235
5236
|
m(!1);
|
|
5236
|
-
}, A = s.rotateSpeed ? Math.ceil(Math.abs(u.longitude - f.longitude) / s.rotateSpeed * 1e3) : r,
|
|
5237
|
-
s.rotation === ot.Loop &&
|
|
5238
|
-
|
|
5237
|
+
}, A = s.rotateSpeed ? Math.ceil(Math.abs(u.longitude - f.longitude) / s.rotateSpeed * 1e3) : r, w = jd(A, Qn.Easing.Linear.None).onUpdate(p).onComplete(g).onDestroy(v);
|
|
5238
|
+
s.rotation === ot.Loop && w.repeat(1 / 0).yoyo(!0), t.interruptCallback = (y = !0) => {
|
|
5239
|
+
w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(y);
|
|
5239
5240
|
}, t.timeoutId = setTimeout(() => {
|
|
5240
5241
|
t.interruptCallback && t.interruptCallback(!0);
|
|
5241
5242
|
}, r);
|
|
@@ -5409,8 +5410,8 @@ const Rd = `<style type="text/css">
|
|
|
5409
5410
|
<div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(v)}</div>
|
|
5410
5411
|
</div>
|
|
5411
5412
|
</div>
|
|
5412
|
-
`,
|
|
5413
|
-
return
|
|
5413
|
+
`, w = document.createElement("div");
|
|
5414
|
+
return w.setAttribute("class", "PanoRulerPlugin-rule"), w.setAttribute("data-name", g), w.setAttribute("style", "display: none"), w.innerHTML = A, w;
|
|
5414
5415
|
}, o = document.createElement("div");
|
|
5415
5416
|
o.setAttribute(
|
|
5416
5417
|
"style",
|
|
@@ -5421,11 +5422,11 @@ const Rd = `<style type="text/css">
|
|
|
5421
5422
|
const r = {}, a = (g, v) => {
|
|
5422
5423
|
if (e.loaded)
|
|
5423
5424
|
throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
|
|
5424
|
-
const A = Hd(g, i),
|
|
5425
|
-
if (!
|
|
5425
|
+
const A = Hd(g, i), w = i.work;
|
|
5426
|
+
if (!w)
|
|
5426
5427
|
return !1;
|
|
5427
|
-
for (const
|
|
5428
|
-
const I = v[
|
|
5428
|
+
for (const y in v) {
|
|
5429
|
+
const I = v[y], { standingPosition: k } = w.observers[0], C = I.map(({ x: L, z: D, observers: H }) => {
|
|
5429
5430
|
const B = H.length > 0 ? g.rooms[g.observers[H[0]]].name : "", F = A[B] ? A[B].floor : null;
|
|
5430
5431
|
let U = 1 / 0, E = {
|
|
5431
5432
|
index: 0,
|
|
@@ -5434,9 +5435,9 @@ const Rd = `<style type="text/css">
|
|
|
5434
5435
|
z: k.z
|
|
5435
5436
|
};
|
|
5436
5437
|
H.forEach((W) => {
|
|
5437
|
-
if (!
|
|
5438
|
+
if (!w.observers[W])
|
|
5438
5439
|
return;
|
|
5439
|
-
const { standingPosition: Y } =
|
|
5440
|
+
const { standingPosition: Y } = w.observers[W], ae = {
|
|
5440
5441
|
index: W,
|
|
5441
5442
|
x: Y.x,
|
|
5442
5443
|
y: Y.y,
|
|
@@ -5449,54 +5450,54 @@ const Rd = `<style type="text/css">
|
|
|
5449
5450
|
const j = A[B] ? A[B].roof : null, N = j ? new Z(L, j, D) : null;
|
|
5450
5451
|
return N && Object.assign(N, { observers: H }), { origin: S, vertical: N };
|
|
5451
5452
|
});
|
|
5452
|
-
r[
|
|
5453
|
+
r[y] = {
|
|
5453
5454
|
origins: C.map((L) => L.origin),
|
|
5454
5455
|
rules: []
|
|
5455
5456
|
};
|
|
5456
5457
|
for (const { origin: L, vertical: D } of C) {
|
|
5457
5458
|
if (!D)
|
|
5458
5459
|
continue;
|
|
5459
|
-
const H = n(
|
|
5460
|
-
o.append(H), r[
|
|
5460
|
+
const H = n(y, L.distanceTo(D));
|
|
5461
|
+
o.append(H), r[y].rules.push({ vertical: !0, rule: [L, D], $element: H });
|
|
5461
5462
|
}
|
|
5462
5463
|
for (let L = 0; L < C.length; L++) {
|
|
5463
5464
|
let D = L + 1;
|
|
5464
5465
|
D >= C.length && (D = 0);
|
|
5465
|
-
const { origin: H } = C[L], { origin: B } = C[D], F = n(
|
|
5466
|
-
o.append(F), r[
|
|
5466
|
+
const { origin: H } = C[L], { origin: B } = C[D], F = n(y, H.distanceTo(B));
|
|
5467
|
+
o.append(F), r[y].rules.push({ vertical: !1, rule: [H, B], $element: F });
|
|
5467
5468
|
}
|
|
5468
5469
|
}
|
|
5469
5470
|
return e.loaded = !0, !0;
|
|
5470
5471
|
}, l = (g, v, A) => J(void 0, null, function* () {
|
|
5471
|
-
const
|
|
5472
|
-
if (!
|
|
5472
|
+
const w = g || t.roomInfo, y = v || t.roomRules;
|
|
5473
|
+
if (!w || !y)
|
|
5473
5474
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
5474
|
-
return e.loaded = !1, e.options = G(G({}, e.options), A || {}), i.model.loaded ? a(
|
|
5475
|
-
(I) => i.once("modelLoaded", () => I(a(
|
|
5475
|
+
return e.loaded = !1, e.options = G(G({}, e.options), A || {}), i.model.loaded ? a(w, y) : yield new Promise(
|
|
5476
|
+
(I) => i.once("modelLoaded", () => I(a(w, y)))
|
|
5476
5477
|
);
|
|
5477
5478
|
});
|
|
5478
5479
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
5479
|
-
const c = (g, v, A,
|
|
5480
|
-
const
|
|
5480
|
+
const c = (g, v, A, w) => {
|
|
5481
|
+
const y = [
|
|
5481
5482
|
[
|
|
5482
5483
|
{ x: 0, y: 0 },
|
|
5483
5484
|
{ x: A, y: 0 }
|
|
5484
5485
|
],
|
|
5485
5486
|
[
|
|
5486
5487
|
{ x: 0, y: 0 },
|
|
5487
|
-
{ x: 0, y }
|
|
5488
|
+
{ x: 0, y: w }
|
|
5488
5489
|
],
|
|
5489
5490
|
[
|
|
5490
5491
|
{ x: A, y: 0 },
|
|
5491
|
-
{ x: A, y }
|
|
5492
|
+
{ x: A, y: w }
|
|
5492
5493
|
],
|
|
5493
5494
|
[
|
|
5494
|
-
{ x: 0, y },
|
|
5495
|
-
{ x: A, y }
|
|
5495
|
+
{ x: 0, y: w },
|
|
5496
|
+
{ x: A, y: w }
|
|
5496
5497
|
]
|
|
5497
5498
|
], I = [];
|
|
5498
|
-
for (let k = 0; k <
|
|
5499
|
-
const C = jr([g, v], [
|
|
5499
|
+
for (let k = 0; k < y.length; k++) {
|
|
5500
|
+
const C = jr([g, v], [y[k][0], y[k][1]], !0);
|
|
5500
5501
|
C && I.push(C);
|
|
5501
5502
|
}
|
|
5502
5503
|
return I.length === 0 ? !1 : I;
|
|
@@ -5505,20 +5506,20 @@ const Rd = `<style type="text/css">
|
|
|
5505
5506
|
const g = (H = i.getElement()) == null ? void 0 : H.parentElement;
|
|
5506
5507
|
if (!g || !e.loaded || Object.keys(r).length <= 0)
|
|
5507
5508
|
return;
|
|
5508
|
-
const { panoIndex: v, camera: A, currentMode:
|
|
5509
|
+
const { panoIndex: v, camera: A, currentMode: w } = i;
|
|
5509
5510
|
if (v === void 0)
|
|
5510
5511
|
return;
|
|
5511
|
-
let
|
|
5512
|
+
let y;
|
|
5512
5513
|
for (const B in r)
|
|
5513
|
-
B.split(",").indexOf(v.toString()) >= 0 && (
|
|
5514
|
-
if (!
|
|
5514
|
+
B.split(",").indexOf(v.toString()) >= 0 && (y = B);
|
|
5515
|
+
if (!y) {
|
|
5515
5516
|
for (const B in r)
|
|
5516
5517
|
for (const { $element: F } of r[B].rules)
|
|
5517
5518
|
F.style.display = "none";
|
|
5518
5519
|
return;
|
|
5519
5520
|
}
|
|
5520
5521
|
const I = A.position, k = A.getWorldDirection(new Z()), C = g.clientWidth, L = g.clientHeight;
|
|
5521
|
-
if (
|
|
5522
|
+
if (w !== Me.Mode.Panorama) {
|
|
5522
5523
|
for (const B in r)
|
|
5523
5524
|
for (const { $element: F } of r[B].rules)
|
|
5524
5525
|
F.style.display = "none";
|
|
@@ -5526,12 +5527,12 @@ const Rd = `<style type="text/css">
|
|
|
5526
5527
|
}
|
|
5527
5528
|
for (const B in r)
|
|
5528
5529
|
for (const { $element: F } of r[B].rules)
|
|
5529
|
-
F.style.display = B ===
|
|
5530
|
-
const [D] = r[
|
|
5530
|
+
F.style.display = B === y ? "block" : "none";
|
|
5531
|
+
const [D] = r[y].origins.slice().filter((B) => B.observers.indexOf(v) >= 0).sort((B, F) => {
|
|
5531
5532
|
const U = B.clone().setY(0).sub(I).normalize().angleTo(k.clone().setY(0)), E = F.clone().setY(0).sub(I).normalize().angleTo(k.clone().setY(0));
|
|
5532
5533
|
return U - E;
|
|
5533
5534
|
});
|
|
5534
|
-
for (const { rule: B, vertical: F, $element: U } of r[
|
|
5535
|
+
for (const { rule: B, vertical: F, $element: U } of r[y].rules) {
|
|
5535
5536
|
const [E, S] = B, j = U.querySelector(".PanoRulerPlugin-rule-line");
|
|
5536
5537
|
if (!j)
|
|
5537
5538
|
return;
|
|
@@ -5590,8 +5591,8 @@ const Rd = `<style type="text/css">
|
|
|
5590
5591
|
if (g.distanceText && g.distanceText !== e.options.distanceText) {
|
|
5591
5592
|
const v = g.distanceText;
|
|
5592
5593
|
e.options.distanceText = v, Object.values(r).forEach((A) => {
|
|
5593
|
-
A.rules.forEach((
|
|
5594
|
-
const [
|
|
5594
|
+
A.rules.forEach((w) => {
|
|
5595
|
+
const [y, I] = w.rule, k = y.distanceTo(I), C = w.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
5595
5596
|
!C || (C.innerText = v(k));
|
|
5596
5597
|
});
|
|
5597
5598
|
});
|
|
@@ -5810,9 +5811,9 @@ function Ud(i) {
|
|
|
5810
5811
|
};
|
|
5811
5812
|
}
|
|
5812
5813
|
function Jd(i, t, e) {
|
|
5813
|
-
var g, v, A,
|
|
5814
|
+
var g, v, A, w;
|
|
5814
5815
|
let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
|
|
5815
|
-
const a = ((v = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((
|
|
5816
|
+
const a = ((v = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((w = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : w.clientHeight) || 0, c = (y, I) => {
|
|
5816
5817
|
const k = [
|
|
5817
5818
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
5818
5819
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
@@ -5820,12 +5821,12 @@ function Jd(i, t, e) {
|
|
|
5820
5821
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
5821
5822
|
], C = [];
|
|
5822
5823
|
for (let L = 0; L < k.length; L++) {
|
|
5823
|
-
const D = jr([
|
|
5824
|
+
const D = jr([y, I], [k[L][0], k[L][1]], !0);
|
|
5824
5825
|
D && C.push(D);
|
|
5825
5826
|
}
|
|
5826
5827
|
return C.length === 0 ? !1 : C;
|
|
5827
|
-
}, d = (
|
|
5828
|
-
const k =
|
|
5828
|
+
}, d = (y, I) => {
|
|
5829
|
+
const k = y.clone().project(n.camera), C = (k.x + 1) / 2 * a, L = (-k.y + 1) / 2 * l, D = I.clone().project(n.camera), H = (D.x + 1) / 2 * a, B = (-D.y + 1) / 2 * l, F = Math.sqrt(Math.pow(H - C, 2) + Math.pow(B - L, 2));
|
|
5829
5830
|
return {
|
|
5830
5831
|
startLeft: C,
|
|
5831
5832
|
startTop: L,
|
|
@@ -5833,13 +5834,13 @@ function Jd(i, t, e) {
|
|
|
5833
5834
|
endTop: B,
|
|
5834
5835
|
distance: F
|
|
5835
5836
|
};
|
|
5836
|
-
}, f = (
|
|
5837
|
-
const C = n.camera.position, L = n.camera.getWorldDirection(new Z()), D =
|
|
5837
|
+
}, f = (y, I, k) => {
|
|
5838
|
+
const C = n.camera.position, L = n.camera.getWorldDirection(new Z()), D = y.clone().sub(C).normalize().angleTo(L), H = I.clone().sub(C).normalize().angleTo(L), B = y.distanceTo(I), U = I.clone().sub(I.clone().sub(y).divide(new Z(2, 2, 2))).distanceTo(C), { startLeft: E, startTop: S, endLeft: j, endTop: N, distance: X } = d(y, I), W = -((Math.PI / 2 - Math.atan2(j - E, S - N)) / Math.PI) * 180;
|
|
5838
5839
|
let Y = !0;
|
|
5839
|
-
k || (Y = !1), !_e(
|
|
5840
|
+
k || (Y = !1), !_e(y, k) && !_e(I, k) && (Y = !1), B < 0.3 && (Y = !1), D > Math.PI / 2 && (Y = !1), H > Math.PI / 2 && (Y = !1), U / B > 8 && (Y = !1);
|
|
5840
5841
|
let ae = 50, le = X;
|
|
5841
5842
|
const me = c({ x: ~~E, y: ~~S }, { x: ~~j, y: ~~N });
|
|
5842
|
-
if (me && me.length === 1 && (_e(
|
|
5843
|
+
if (me && me.length === 1 && (_e(y, k) ? (le = Math.sqrt(Math.pow(me[0].x - E, 2) + Math.pow(me[0].y - S, 2)), ae = le / X * 50) : _e(I, k) && (le = Math.sqrt(Math.pow(me[0].x - j, 2) + Math.pow(me[0].y - N, 2)), ae = 100 - le / X * 50)), me && me.length === 2) {
|
|
5843
5844
|
const ye = {
|
|
5844
5845
|
x: (me[0].x + me[1].x) / 2,
|
|
5845
5846
|
y: (me[0].y + me[1].y) / 2
|
|
@@ -5856,7 +5857,7 @@ function Jd(i, t, e) {
|
|
|
5856
5857
|
ruleLength: B
|
|
5857
5858
|
};
|
|
5858
5859
|
}, u = () => {
|
|
5859
|
-
const
|
|
5860
|
+
const y = n.panoIndex, I = o.find((F) => F.panoIndex === y);
|
|
5860
5861
|
if (!I)
|
|
5861
5862
|
return e(0, r = []);
|
|
5862
5863
|
if (n.currentMode !== Me.Mode.Panorama)
|
|
@@ -5888,8 +5889,8 @@ function Jd(i, t, e) {
|
|
|
5888
5889
|
u(), n.on("panoArrived", u), n.on("modeChange", u), n.on("cameraDirectionUpdate", m), n.on("movingToPano", m), n.on("mouseWheel", () => p()), n.on("pinchGesture", () => p());
|
|
5889
5890
|
}), At(() => {
|
|
5890
5891
|
n.off("panoArrived", u), n.off("modeChange", u), n.off("cameraDirectionUpdate", m), n.off("movingToPano", m), n.off("mouseWheel", () => p()), n.off("pinchGesture", () => p());
|
|
5891
|
-
}), i.$$set = (
|
|
5892
|
-
"five" in
|
|
5892
|
+
}), i.$$set = (y) => {
|
|
5893
|
+
"five" in y && e(1, n = y.five), "rulerDatas" in y && e(2, o = y.rulerDatas), "options" in y && e(3, s = y.options);
|
|
5893
5894
|
}, [r, n, o, s];
|
|
5894
5895
|
}
|
|
5895
5896
|
class Vd extends te {
|
|
@@ -6393,14 +6394,14 @@ function gu(i) {
|
|
|
6393
6394
|
const v = g.clientWidth, A = g.clientHeight;
|
|
6394
6395
|
if (a.points.length < 2)
|
|
6395
6396
|
return;
|
|
6396
|
-
const [
|
|
6397
|
+
const [w, y] = a.points, I = w.position.clone().project(p.camera), k = y.position.clone().project(p.camera), C = I.clone().lerp(k, 0.5), L = new je(I.x * v, I.y * A), D = new je(k.x * v, k.y * A);
|
|
6397
6398
|
if ((() => !(Math.abs(I.z) > 1 || Math.abs(k.z) > 1 || !Ke(I) && !Ke(k) || !Ke(C) || L.distanceTo(D) < 20))() === !1) {
|
|
6398
6399
|
d.style.opacity = "0", d.style.pointerEvents = "none";
|
|
6399
6400
|
return;
|
|
6400
6401
|
}
|
|
6401
6402
|
const B = (C.x + 1) / 2 * v, F = -(C.y - 1) / 2 * A, E = -(Math.atan((L.y - D.y) / (L.x - D.x)) * 180) / Math.PI;
|
|
6402
6403
|
d.style.transform = `translate(${B}px, ${F}px) rotate(${E}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", f && f.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
|
|
6403
|
-
const S =
|
|
6404
|
+
const S = w.position.clone().distanceTo(y.position), j = i.line.model.params.getDistanceText(S);
|
|
6404
6405
|
c.innerText !== j && (c.innerText = j);
|
|
6405
6406
|
}
|
|
6406
6407
|
function s(p) {
|
|
@@ -6748,14 +6749,14 @@ class vu extends Wn {
|
|
|
6748
6749
|
const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
|
|
6749
6750
|
if (!Ke(v) && !Ke(A))
|
|
6750
6751
|
return null;
|
|
6751
|
-
const
|
|
6752
|
+
const w = new je(
|
|
6752
6753
|
v.x * r,
|
|
6753
6754
|
v.y * a
|
|
6754
|
-
),
|
|
6755
|
+
), y = new je(
|
|
6755
6756
|
A.x * r,
|
|
6756
6757
|
A.y * a
|
|
6757
6758
|
);
|
|
6758
|
-
return { id: m.id, points: [
|
|
6759
|
+
return { id: m.id, points: [w, y] };
|
|
6759
6760
|
}).filter((m) => !!m);
|
|
6760
6761
|
if (c.length === 0)
|
|
6761
6762
|
return;
|
|
@@ -6960,14 +6961,14 @@ class Kn extends Wn {
|
|
|
6960
6961
|
const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
|
|
6961
6962
|
if (!Ke(v) && !Ke(A))
|
|
6962
6963
|
return null;
|
|
6963
|
-
const
|
|
6964
|
+
const w = new je(
|
|
6964
6965
|
v.x * r,
|
|
6965
6966
|
v.y * a
|
|
6966
|
-
),
|
|
6967
|
+
), y = new je(
|
|
6967
6968
|
A.x * r,
|
|
6968
6969
|
A.y * a
|
|
6969
6970
|
);
|
|
6970
|
-
return { id: m.id, points: [
|
|
6971
|
+
return { id: m.id, points: [w, y] };
|
|
6971
6972
|
}).filter((m) => !!m);
|
|
6972
6973
|
if (c.length === 0)
|
|
6973
6974
|
return;
|
|
@@ -7060,8 +7061,8 @@ class Fo extends Wn {
|
|
|
7060
7061
|
const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
|
|
7061
7062
|
if (!Ke(v) && !Ke(A))
|
|
7062
7063
|
return null;
|
|
7063
|
-
const
|
|
7064
|
-
return { id: m.id, points: [
|
|
7064
|
+
const w = new je(v.x * r, v.y * a), y = new je(A.x * r, A.y * a);
|
|
7065
|
+
return { id: m.id, points: [w, y] };
|
|
7065
7066
|
}).filter((m) => !!m);
|
|
7066
7067
|
if (c.length === 0)
|
|
7067
7068
|
return;
|
|
@@ -7161,8 +7162,8 @@ void main() {
|
|
|
7161
7162
|
}
|
|
7162
7163
|
`;
|
|
7163
7164
|
function Hr(i) {
|
|
7164
|
-
var A,
|
|
7165
|
-
const t = (A = i.isMobile) != null ? A : !0, e = (
|
|
7165
|
+
var A, w;
|
|
7166
|
+
const t = (A = i.isMobile) != null ? A : !0, e = (w = i.useNormalVector) != null ? w : !0;
|
|
7166
7167
|
let n = 10349931;
|
|
7167
7168
|
e && i.ballColor >= 0 && (n = i.ballColor);
|
|
7168
7169
|
const o = new Ci(), s = new La(0.3, 0.3), r = t ? Eu : Pu, a = new ur().load(r);
|
|
@@ -8032,13 +8033,13 @@ function tf(i) {
|
|
|
8032
8033
|
};
|
|
8033
8034
|
}
|
|
8034
8035
|
function nf(i, t, e) {
|
|
8035
|
-
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: f } = t, { events: u } = t, { hooks: m } = t, p = 0, g = 0, v, A,
|
|
8036
|
+
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: f } = t, { events: u } = t, { hooks: m } = t, p = 0, g = 0, v, A, w = setTimeout(
|
|
8036
8037
|
() => {
|
|
8037
|
-
d || e(10, A = !0),
|
|
8038
|
+
d || e(10, A = !0), w = void 0;
|
|
8038
8039
|
},
|
|
8039
8040
|
100
|
|
8040
8041
|
);
|
|
8041
|
-
const
|
|
8042
|
+
const y = (C) => {
|
|
8042
8043
|
const L = Object.keys(u);
|
|
8043
8044
|
let D = C.target;
|
|
8044
8045
|
for (; D; ) {
|
|
@@ -8063,15 +8064,15 @@ function nf(i, t, e) {
|
|
|
8063
8064
|
if (C === null)
|
|
8064
8065
|
return;
|
|
8065
8066
|
const [L, D] = C.split("-PanoSpatialTagPlugin-");
|
|
8066
|
-
n === L && (m.emit("clickOrigin", { id: n, show: A }),
|
|
8067
|
+
n === L && (m.emit("clickOrigin", { id: n, show: A }), w || (e(10, A = d), e(12, d = !d), w = setTimeout(
|
|
8067
8068
|
() => {
|
|
8068
|
-
|
|
8069
|
+
w = void 0;
|
|
8069
8070
|
},
|
|
8070
8071
|
1500
|
|
8071
8072
|
)));
|
|
8072
8073
|
});
|
|
8073
8074
|
Ii(() => {
|
|
8074
|
-
e(7, p = v.offsetWidth), e(8, g = v.offsetHeight), !
|
|
8075
|
+
e(7, p = v.offsetWidth), e(8, g = v.offsetHeight), !w && e(10, A = !d);
|
|
8075
8076
|
}), At(() => {
|
|
8076
8077
|
m.emit("destroyTag", { id: n }), I(), f();
|
|
8077
8078
|
});
|
|
@@ -8094,7 +8095,7 @@ function nf(i, t, e) {
|
|
|
8094
8095
|
g,
|
|
8095
8096
|
v,
|
|
8096
8097
|
A,
|
|
8097
|
-
|
|
8098
|
+
y,
|
|
8098
8099
|
d,
|
|
8099
8100
|
f,
|
|
8100
8101
|
u,
|
|
@@ -8291,9 +8292,9 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
8291
8292
|
props: { origins: g.origins }
|
|
8292
8293
|
}), A = (oe, ve) => {
|
|
8293
8294
|
k(), ve && C();
|
|
8294
|
-
},
|
|
8295
|
+
}, w = () => {
|
|
8295
8296
|
g.forbidden && (g.forbidden = !1, C());
|
|
8296
|
-
},
|
|
8297
|
+
}, y = (oe, ve) => {
|
|
8297
8298
|
if (g.tags.length === 0)
|
|
8298
8299
|
return;
|
|
8299
8300
|
const we = ve.longitude - i.state.longitude, se = i.camera.clone();
|
|
@@ -8485,11 +8486,11 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
8485
8486
|
}, N = () => {
|
|
8486
8487
|
i.once("renderFrame", k);
|
|
8487
8488
|
}, X = () => {
|
|
8488
|
-
e || (e = i.getElement().parentElement), e && e.appendChild(u), g.forbidden = !1, n = i.model.bounding.getCenter(new P.Vector3()).y, C(), i.on("panoWillArrive",
|
|
8489
|
+
e || (e = i.getElement().parentElement), e && e.appendChild(u), g.forbidden = !1, n = i.model.bounding.getCenter(new P.Vector3()).y, C(), i.on("panoWillArrive", y), i.on("panoArrived", w), i.on("modeChange", I), i.on("cameraUpdate", A);
|
|
8489
8490
|
}, ee = () => {
|
|
8490
8491
|
p = null, f.disposeAll(), v.$destroy(), g.tags.forEach((oe) => {
|
|
8491
8492
|
oe.app.$destroy(), oe = null;
|
|
8492
|
-
}), g.origins = [], g.tags = [], i.off("modelLoaded", X), i.off("renderFrame", k), i.off("panoWillArrive",
|
|
8493
|
+
}), g.origins = [], g.tags = [], i.off("modelLoaded", X), i.off("renderFrame", k), i.off("panoWillArrive", y), i.off("panoArrived", w), i.off("modeChange", I), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", N, !1);
|
|
8493
8494
|
};
|
|
8494
8495
|
return window.addEventListener("resize", N, !1), (Oe = i == null ? void 0 : i.model) != null && Oe.loaded ? X() : i.once("modelLoaded", X), i.on("dispose", ee), {
|
|
8495
8496
|
load: D,
|
|
@@ -8645,7 +8646,7 @@ function vf(i, t, e) {
|
|
|
8645
8646
|
}, A = (E, S) => {
|
|
8646
8647
|
const j = new o(S.modelPosition[0], S.modelPosition[1], S.modelPosition[2]), N = E.project2d(j), X = N == null ? void 0 : N.x, ee = N == null ? void 0 : N.y;
|
|
8647
8648
|
return [X, ee];
|
|
8648
|
-
},
|
|
8649
|
+
}, w = (E) => `translate(${E[0]}px, ${E[1]}px)`, y = (E, S) => p.length === 0 ? !1 : !!p.find((N) => E[0] >= N[0] - S && E[0] <= N[0] + S || E[1] >= N[1] - Ko && E[1] <= N[1] + Ko);
|
|
8649
8650
|
function I(E, S) {
|
|
8650
8651
|
switch (S) {
|
|
8651
8652
|
case Ht.SMALL:
|
|
@@ -8660,11 +8661,11 @@ function vf(i, t, e) {
|
|
|
8660
8661
|
}
|
|
8661
8662
|
const k = (E, S) => {
|
|
8662
8663
|
const j = S.map((X) => {
|
|
8663
|
-
const ee = A(E, X), W = X.name.length * Af, Y = I(X.modelPosition[1], c), le = (r ? v(E, X) : !0) && !
|
|
8664
|
+
const ee = A(E, X), W = X.name.length * Af, Y = I(X.modelPosition[1], c), le = (r ? v(E, X) : !0) && !y([ee[0], ee[1] + Y], W);
|
|
8664
8665
|
if (!le)
|
|
8665
8666
|
return he(G({}, X), { visible: le });
|
|
8666
8667
|
p.push(ee);
|
|
8667
|
-
const me =
|
|
8668
|
+
const me = w(ee);
|
|
8668
8669
|
return he(G({}, X), {
|
|
8669
8670
|
visible: le,
|
|
8670
8671
|
transform: me,
|
|
@@ -8852,17 +8853,17 @@ const r0 = (i, { videoElement: t }) => {
|
|
|
8852
8853
|
}, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
|
|
8853
8854
|
if (e.enabled || !e.videoTexture)
|
|
8854
8855
|
return;
|
|
8855
|
-
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((
|
|
8856
|
+
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((w) => i.scene.add(w));
|
|
8856
8857
|
const A = () => {
|
|
8857
8858
|
if (!e.videoTexture)
|
|
8858
8859
|
return;
|
|
8859
|
-
const
|
|
8860
|
-
var
|
|
8861
|
-
!e.videoTexture || ((
|
|
8860
|
+
const w = () => {
|
|
8861
|
+
var y;
|
|
8862
|
+
!e.videoTexture || ((y = e.videoTexture) == null || y.image.removeEventListener("timeupdate", w), e.videoTextureEnabled = !0, e.videoMeshes.forEach((I) => {
|
|
8862
8863
|
I.material.map !== e.videoTexture && (I.material.map = e.videoTexture);
|
|
8863
8864
|
}), i.needsRender = !0);
|
|
8864
8865
|
};
|
|
8865
|
-
e.videoTexture.image.addEventListener("timeupdate",
|
|
8866
|
+
e.videoTexture.image.addEventListener("timeupdate", w), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
8866
8867
|
n.hide();
|
|
8867
8868
|
}, e.videoTexture.image.onpause = () => {
|
|
8868
8869
|
n.show();
|
|
@@ -8878,8 +8879,8 @@ const r0 = (i, { videoElement: t }) => {
|
|
|
8878
8879
|
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((A) => {
|
|
8879
8880
|
A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
|
|
8880
8881
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
8881
|
-
}, c = () => e.rectPoints.map((A,
|
|
8882
|
-
const
|
|
8882
|
+
}, c = () => e.rectPoints.map((A, w) => {
|
|
8883
|
+
const y = new P.BufferGeometry(), I = 128, k = [];
|
|
8883
8884
|
k.push(...A[0].toArray());
|
|
8884
8885
|
for (let E = 1; E < I; E++)
|
|
8885
8886
|
k.push(
|
|
@@ -8906,14 +8907,14 @@ const r0 = (i, { videoElement: t }) => {
|
|
|
8906
8907
|
const L = [];
|
|
8907
8908
|
for (let E = 0; E < I; E++)
|
|
8908
8909
|
L.push(E, E + 1, I * 2 - E, E, I * 2 - E, I * 2 + 1 - E);
|
|
8909
|
-
|
|
8910
|
+
y.setAttribute("position", new P.BufferAttribute(new Float32Array(k), 3)), y.setAttribute("uv", new P.BufferAttribute(new Float32Array(C), 2)), y.setIndex(new P.BufferAttribute(new Uint32Array(L), 1));
|
|
8910
8911
|
const D = new P.AxesHelper(10);
|
|
8911
8912
|
i.scene.add(D);
|
|
8912
8913
|
const H = new P.MeshBasicMaterial({
|
|
8913
8914
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
8914
8915
|
side: P.DoubleSide
|
|
8915
|
-
}), B = new P.Mesh(
|
|
8916
|
-
B.renderOrder = 1, B.name = `ModelTVVideoPlugin-${
|
|
8916
|
+
}), B = new P.Mesh(y, H);
|
|
8917
|
+
B.renderOrder = 1, B.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
|
|
8917
8918
|
const F = [A[1], A[2], A[3], A[0]], U = n.create3DDomContainer(F);
|
|
8918
8919
|
if (U != null && U.container) {
|
|
8919
8920
|
const E = document.createElement("div");
|
|
@@ -8925,28 +8926,28 @@ const r0 = (i, { videoElement: t }) => {
|
|
|
8925
8926
|
}
|
|
8926
8927
|
return B;
|
|
8927
8928
|
}), d = (A) => {
|
|
8928
|
-
const
|
|
8929
|
-
return
|
|
8930
|
-
}, f = (A,
|
|
8929
|
+
const w = new P.TextureLoader().load(A);
|
|
8930
|
+
return w.minFilter = P.LinearFilter, w.magFilter = P.LinearFilter, w.format = P.RGBFormat, w;
|
|
8931
|
+
}, f = (A, w) => new Promise((y, I) => {
|
|
8931
8932
|
const k = new XMLHttpRequest();
|
|
8932
8933
|
k.onreadystatechange = () => {
|
|
8933
8934
|
if (k.readyState == 4)
|
|
8934
8935
|
if (k.status == 200) {
|
|
8935
8936
|
const C = window.URL || window.webkitURL;
|
|
8936
|
-
|
|
8937
|
-
const L = new P.VideoTexture(
|
|
8938
|
-
L.minFilter = P.LinearFilter, L.magFilter = P.LinearFilter, L.format = P.RGBFormat,
|
|
8937
|
+
w = w || document.createElement("video"), w.crossOrigin = "anonymous", w.muted = !0, w.loop = !0, w.playsInline = !0, w.src = C.createObjectURL(k.response);
|
|
8938
|
+
const L = new P.VideoTexture(w);
|
|
8939
|
+
L.minFilter = P.LinearFilter, L.magFilter = P.LinearFilter, L.format = P.RGBFormat, y(Object.assign(L, { videoSource: A }));
|
|
8939
8940
|
} else
|
|
8940
8941
|
I(new Error("Video download Error: " + k.status));
|
|
8941
8942
|
}, k.onerror = (C) => I(C), k.open("GET", A), k.responseType = "blob", k.send();
|
|
8942
|
-
}), u = (A,
|
|
8943
|
-
const { video_src:
|
|
8944
|
-
e.videoSource =
|
|
8943
|
+
}), u = (A, w) => J(void 0, null, function* () {
|
|
8944
|
+
const { video_src: y, video_poster_src: I, points: k } = A;
|
|
8945
|
+
e.videoSource = y, e.rectPoints = wf(k).map((C) => C.map(({ x: L, y: D, z: H }) => new P.Vector3(L, D, H))), e.imageTexture = d(I), w && (e.videoElement = w), e.videoTexture = yield f(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
8945
8946
|
}), m = (A) => {
|
|
8946
8947
|
if (!e.enabled)
|
|
8947
8948
|
return;
|
|
8948
|
-
const
|
|
8949
|
-
if (!(!
|
|
8949
|
+
const w = e.videoMeshes;
|
|
8950
|
+
if (!(!w || A.intersectObjects(w).length === 0))
|
|
8950
8951
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
8951
8952
|
}, p = (A) => {
|
|
8952
8953
|
A === "Floorplan" ? n.hide() : n.show();
|
|
@@ -8954,18 +8955,18 @@ const r0 = (i, { videoElement: t }) => {
|
|
|
8954
8955
|
if (!e.enabled)
|
|
8955
8956
|
return;
|
|
8956
8957
|
const A = i.camera.position;
|
|
8957
|
-
if (o.forEach((
|
|
8958
|
-
const I =
|
|
8959
|
-
L && L.distance + H < D ?
|
|
8958
|
+
if (o.forEach((w, y) => {
|
|
8959
|
+
const I = w.css3DObject.position.clone(), k = I.clone().sub(A).normalize(), C = new P.Raycaster(A, k), L = i.model.intersectRaycaster(C)[0], D = I.distanceTo(A), H = 0.01;
|
|
8960
|
+
L && L.distance + H < D ? w.hide() : w.show();
|
|
8960
8961
|
}), !r()) {
|
|
8961
|
-
const
|
|
8962
|
-
const I =
|
|
8963
|
-
return
|
|
8962
|
+
const w = e.rectPoints.find((y) => {
|
|
8963
|
+
const I = y[0].clone().add(y[1]).add(y[2]).add(y[3]).divideScalar(4);
|
|
8964
|
+
return y.map((k) => k.clone().add(I).divideScalar(2)).filter((k) => {
|
|
8964
8965
|
const C = k.distanceTo(A), L = new P.Raycaster(A, k.clone().sub(A).normalize()), D = i.model.intersectRaycaster(L)[0], H = 0.01;
|
|
8965
8966
|
return !(D && D.distance + H < C);
|
|
8966
8967
|
}).length >= 2;
|
|
8967
8968
|
});
|
|
8968
|
-
(!
|
|
8969
|
+
(!w || w.length === 0) && s(!0);
|
|
8969
8970
|
}
|
|
8970
8971
|
}, v = () => {
|
|
8971
8972
|
l(), e.videoTexture = void 0, i.off("modeChange", p), i.off("wantsTapGesture", m), i.off("panoArrived", g), i.off("renderFrame", () => {
|
|
@@ -9247,10 +9248,10 @@ let Tf = 11;
|
|
|
9247
9248
|
function jf(i, t, e) {
|
|
9248
9249
|
const { Raycaster: n, Vector3: o } = P;
|
|
9249
9250
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, f = null, u = null, m = (s == null ? void 0 : s.currentMode) === Me.Mode.Panorama, p, g, v = [], A = !0;
|
|
9250
|
-
const
|
|
9251
|
+
const w = (j, N) => {
|
|
9251
9252
|
const X = j.camera.position.clone(), ee = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), W = ee.distanceTo(X);
|
|
9252
9253
|
return d !== void 0 && j.state.mode === Me.Mode.Panorama && W > d ? !1 : es(j, ee.clone().sub(X).normalize(), X, W);
|
|
9253
|
-
},
|
|
9254
|
+
}, y = (j) => {
|
|
9254
9255
|
const { camera: N, model: X } = s, { x: ee, y: W, z: Y } = j.clone().project(N), ae = (ee + 1) / 2, le = (2 - (W + 1)) / 2, Ie = Math.abs(Y) < 1 && [ae, le].every((Oe) => Oe < 1 && Oe >= 0);
|
|
9255
9256
|
return Boolean(Ie);
|
|
9256
9257
|
}, I = (j, N) => {
|
|
@@ -9262,7 +9263,7 @@ function jf(i, t, e) {
|
|
|
9262
9263
|
return he(G({}, W), { visible: !1 });
|
|
9263
9264
|
const Y = I(j, W);
|
|
9264
9265
|
W.name.length * Tf;
|
|
9265
|
-
const ae = Lf(W.modelPosition[1], c), le = j.currentMode === Me.Mode.Panorama ?
|
|
9266
|
+
const ae = Lf(W.modelPosition[1], c), le = j.currentMode === Me.Mode.Panorama ? y(new o(W.position[0], W.position[1], W.position[2])) : !0, me = r ? w(j, W) : !1, ye = le && !me;
|
|
9266
9267
|
if (!ye)
|
|
9267
9268
|
return he(G({}, W), { visible: ye });
|
|
9268
9269
|
v.push(Y);
|
|
@@ -9532,8 +9533,8 @@ function Gf(i, t, e) {
|
|
|
9532
9533
|
const p = () => {
|
|
9533
9534
|
if (!r || !a || !l || !s)
|
|
9534
9535
|
return;
|
|
9535
|
-
const A = s.current.clientWidth / window.innerWidth * 100,
|
|
9536
|
-
if (r <= A / 2 || r >= 100 - A / 2 || a <=
|
|
9536
|
+
const A = s.current.clientWidth / window.innerWidth * 100, w = s.current.clientHeight / window.innerHeight * 100;
|
|
9537
|
+
if (r <= A / 2 || r >= 100 - A / 2 || a <= w / 2 || a >= 100 - w / 2)
|
|
9537
9538
|
return;
|
|
9538
9539
|
d !== m && (console.log("panoDoorLabelPlugin", d, "\u89E6\u53D1\u57CB\u70B9"), m = d);
|
|
9539
9540
|
}, g = (A) => {
|
|
@@ -9655,27 +9656,27 @@ class Vf extends Of {
|
|
|
9655
9656
|
const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new Z()), l = [], c = [...this.labelItems];
|
|
9656
9657
|
if (c.forEach((d, f) => {
|
|
9657
9658
|
if (d.visible) {
|
|
9658
|
-
const u = n.position.distanceTo(d.position), m = d.position.clone().add(new Z(0, this.OffsetHeight, 0)), g = m.clone().sub(n.position).normalize().angleTo(a), v = m.clone().project(n), A = (v.x + 1) / 2.2 * 100,
|
|
9659
|
-
d.left = A, d.top =
|
|
9659
|
+
const u = n.position.distanceTo(d.position), m = d.position.clone().add(new Z(0, this.OffsetHeight, 0)), g = m.clone().sub(n.position).normalize().angleTo(a), v = m.clone().project(n), A = (v.x + 1) / 2.2 * 100, w = (-v.y + 1) / 2.2 * 100, y = A >= 0 && A <= 100 && w >= 0 && w <= 100 && u > this.MinVisibledistance && u <= this.MaxVisibledistance;
|
|
9660
|
+
d.left = A, d.top = w, d.inSight = y && g < Math.PI / 2, d.cameraToward = Xf(this.five), y ? l.push({ disFromCameraToLabel: u, left: A, top: w, index: f }) : d.transform = "translate(-50%, -50%)";
|
|
9660
9661
|
} else
|
|
9661
9662
|
d.inSight = !1;
|
|
9662
9663
|
}), l.length > 1) {
|
|
9663
9664
|
let d = 0;
|
|
9664
9665
|
l.sort((f, u) => u.disFromCameraToLabel - f.disFromCameraToLabel);
|
|
9665
9666
|
for (let f = 1; f < l.length; f++) {
|
|
9666
|
-
const { index: u, left: m, top: p } = l[f - 1], { index: g, left: v, top: A } = l[f],
|
|
9667
|
-
if (!
|
|
9667
|
+
const { index: u, left: m, top: p } = l[f - 1], { index: g, left: v, top: A } = l[f], w = this.container.children[u], y = this.container.children[g];
|
|
9668
|
+
if (!w || !y)
|
|
9668
9669
|
return;
|
|
9669
9670
|
const I = {
|
|
9670
9671
|
left: s * m / 100,
|
|
9671
9672
|
top: r * p / 100,
|
|
9672
|
-
width:
|
|
9673
|
-
height:
|
|
9673
|
+
width: w.children[0].clientWidth,
|
|
9674
|
+
height: w.children[0].clientHeight
|
|
9674
9675
|
}, k = {
|
|
9675
9676
|
left: s * v / 100,
|
|
9676
9677
|
top: r * A / 100,
|
|
9677
|
-
width:
|
|
9678
|
-
height:
|
|
9678
|
+
width: y.children[0].clientWidth,
|
|
9679
|
+
height: y.children[0].clientHeight
|
|
9679
9680
|
};
|
|
9680
9681
|
Wf(I, k) && (d++, c[u].transform = `translate(-50%, ${(d - 1) * 100 - 50}%)`, c[g].transform = `translate(-50%, ${d * 100 - 50}%)`);
|
|
9681
9682
|
}
|
|
@@ -9719,8 +9720,8 @@ class Vf extends Of {
|
|
|
9719
9720
|
x: v.x,
|
|
9720
9721
|
y: v.y,
|
|
9721
9722
|
z: v.z
|
|
9722
|
-
},
|
|
9723
|
-
|
|
9723
|
+
}, w = Yf(f, A);
|
|
9724
|
+
w < u && (u = w, m = A);
|
|
9724
9725
|
}), m && (f.y = m.y + 0.01);
|
|
9725
9726
|
const p = new Z(f.x, f.y, f.z);
|
|
9726
9727
|
p.add(new Z(-0.2, 1.8, 0).applyEuler(new Xi(0, d.rad, 0))), this.doorLabels.push({
|
|
@@ -9796,12 +9797,12 @@ function $f(i, t) {
|
|
|
9796
9797
|
const D = C.distanceTo(p);
|
|
9797
9798
|
D < A && (v = L, A = D);
|
|
9798
9799
|
});
|
|
9799
|
-
const
|
|
9800
|
+
const w = d[v + 1], y = w == null ? void 0 : w.distanceTo(p), I = d[v - 1], k = I == null ? void 0 : I.distanceTo(p);
|
|
9800
9801
|
if (v > u && v - u > 1) {
|
|
9801
9802
|
let C = v;
|
|
9802
9803
|
I !== void 0 && k > 0.8 && (C = v + 1), I !== void 0 && k > 0.2 && k < 0.3 ? C = v : A > 0.2 && A < 0.3 && (C = v + 1);
|
|
9803
9804
|
let L = u;
|
|
9804
|
-
if (
|
|
9805
|
+
if (w !== void 0 && y > 0.2 && y < 0.3 ? L = u + 1 : A > 0.2 && A < 0.3 && (L = u), d[L] && d[L + 1]) {
|
|
9805
9806
|
const B = m[g - 1];
|
|
9806
9807
|
if (B)
|
|
9807
9808
|
if (B.equals(d[L]))
|
|
@@ -9824,13 +9825,13 @@ function $f(i, t) {
|
|
|
9824
9825
|
}
|
|
9825
9826
|
function ss(i, t, e) {
|
|
9826
9827
|
const n = t / 2, o = e / t, s = i.length, r = Wa(i.map((A) => [A.x, A.z])), l = (i.length - 1) * Zf * qf, c = 2 * s, d = c * _f, f = c * Kf, u = new Uint32Array(l), m = new Float32Array(d), p = new Float32Array(f);
|
|
9827
|
-
i.forEach((A,
|
|
9828
|
+
i.forEach((A, w) => {
|
|
9828
9829
|
});
|
|
9829
9830
|
let g = 0;
|
|
9830
9831
|
for (let A = 0; A < i.length; A++) {
|
|
9831
|
-
const [
|
|
9832
|
+
const [w, y] = r[A][0], I = i[A], { x: k, y: C, z: L } = I, D = new Z(k + w * n, C + 0.05, L + y * n);
|
|
9832
9833
|
m[A * 6 + 0] = D.x, m[A * 6 + 1] = D.y, m[A * 6 + 2] = D.z;
|
|
9833
|
-
const H = new Z(k -
|
|
9834
|
+
const H = new Z(k - w * n, C + 0.05, L - y * n);
|
|
9834
9835
|
m[A * 6 + 3] = H.x, m[A * 6 + 4] = H.y, m[A * 6 + 5] = H.z, g += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
|
|
9835
9836
|
const B = g / t / o;
|
|
9836
9837
|
p[A * 4 + 0] = 0, p[A * 4 + 1] = B, p[A * 4 + 2] = 1, p[A * 4 + 3] = B, A !== i.length - 1 && (u[A * 6 + 0] = A * 2 + 0, u[A * 6 + 1] = A * 2 + 2, u[A * 6 + 2] = A * 2 + 1, u[A * 6 + 3] = A * 2 + 2, u[A * 6 + 4] = A * 2 + 3, u[A * 6 + 5] = A * 2 + 1);
|
|
@@ -10057,16 +10058,16 @@ class Kr extends Bt {
|
|
|
10057
10058
|
var A;
|
|
10058
10059
|
return g.data.panoIndex !== ((A = c[v - 1]) == null ? void 0 : A.data.panoIndex);
|
|
10059
10060
|
}).map((g) => g.data.panoIndex).forEach((g) => {
|
|
10060
|
-
var A,
|
|
10061
|
+
var A, w;
|
|
10061
10062
|
const v = (A = this.five.work.observers[g]) == null ? void 0 : A.floorIndex;
|
|
10062
10063
|
if (v !== void 0)
|
|
10063
10064
|
if (l === v) {
|
|
10064
|
-
const
|
|
10065
|
-
a[
|
|
10065
|
+
const y = a.length - 1;
|
|
10066
|
+
a[y] = [...(w = a[y]) != null ? w : [], g];
|
|
10066
10067
|
} else {
|
|
10067
10068
|
l = v;
|
|
10068
|
-
const
|
|
10069
|
-
a[
|
|
10069
|
+
const y = a.length;
|
|
10070
|
+
a[y] = [g];
|
|
10070
10071
|
}
|
|
10071
10072
|
}), this.GuideLine || (this.GuideLine = nh(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: a.map((g) => ({ panoIndexList: g })) }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.log(`${Xn} loaded`, r), this.hooks.emit("dataLoaded", r);
|
|
10072
10073
|
});
|
|
@@ -10133,12 +10134,12 @@ class Kr extends Bt {
|
|
|
10133
10134
|
const { moveEffect: r, moveToFirstPanoEffect: a } = o;
|
|
10134
10135
|
return this.privateState.moveToFirstPanoEffect = a, o.panoIndexList.forEach((l, c) => {
|
|
10135
10136
|
const d = (() => {
|
|
10136
|
-
var g, v, A,
|
|
10137
|
-
const f = o.panoIndexList.slice(c).find((
|
|
10137
|
+
var g, v, A, w;
|
|
10138
|
+
const f = o.panoIndexList.slice(c).find((y) => y !== l);
|
|
10138
10139
|
if (f === void 0)
|
|
10139
10140
|
return;
|
|
10140
10141
|
const u = (g = n[l]) == null ? void 0 : g.position, m = (v = n[f]) == null ? void 0 : v.position;
|
|
10141
|
-
if (!m || !u || ((A = n[l]) == null ? void 0 : A.floorIndex) !== ((
|
|
10142
|
+
if (!m || !u || ((A = n[l]) == null ? void 0 : A.floorIndex) !== ((w = n[f]) == null ? void 0 : w.floorIndex))
|
|
10142
10143
|
return;
|
|
10143
10144
|
const p = new P.Vector3().subVectors(m, u);
|
|
10144
10145
|
return rh(p);
|
|
@@ -11174,13 +11175,13 @@ function Cs(i) {
|
|
|
11174
11175
|
K(t, p, g), M(p, e, g), M(p, n, g), K(o, n, null), M(p, s, g), M(p, r, g), K(a, r, null), l = gt(r, i[8].bind(r)), c = !0, d || (f = Pe(r, "click", i[6]), d = !0);
|
|
11175
11176
|
},
|
|
11176
11177
|
p(p, g) {
|
|
11177
|
-
var
|
|
11178
|
+
var y, I;
|
|
11178
11179
|
const v = {};
|
|
11179
11180
|
g & 4 && (v.visible = p[2]), g & 8 && (v.left = p[3] / 2 + "px"), t.$set(v);
|
|
11180
11181
|
const A = {};
|
|
11181
|
-
g & 4 && (A.unfolded = p[2]), g & 48 && (A.outDelay = p[5] + 40 * Math.min((I = (
|
|
11182
|
-
const
|
|
11183
|
-
g & 4 && (
|
|
11182
|
+
g & 4 && (A.unfolded = p[2]), g & 48 && (A.outDelay = p[5] + 40 * Math.min((I = (y = p[4][0]) == null ? void 0 : y.content.length) != null ? I : 10, 15)), o.$set(A), g & 8 && R(n, "width", p[3] + "px", !1);
|
|
11183
|
+
const w = {};
|
|
11184
|
+
g & 4 && (w.visible = p[2]), g & 2 && (w.textUnfolded = p[1]), g & 16 && (w.textItems = p[4]), a.$set(w);
|
|
11184
11185
|
},
|
|
11185
11186
|
i(p) {
|
|
11186
11187
|
c || (x(t.$$.fragment, p), x(o.$$.fragment, p), x(a.$$.fragment, p), c = !0);
|
|
@@ -11549,8 +11550,8 @@ function Uh({
|
|
|
11549
11550
|
virtual: m,
|
|
11550
11551
|
thumbs: p
|
|
11551
11552
|
} = i;
|
|
11552
|
-
let g, v, A,
|
|
11553
|
-
n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (v = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (A = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && u && !u.el && (
|
|
11553
|
+
let g, v, A, w, y;
|
|
11554
|
+
n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (v = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (A = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && u && !u.el && (w = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && f && !f.prevEl && !f.nextEl && (y = !0);
|
|
11554
11555
|
const I = (k) => {
|
|
11555
11556
|
!i[k] || (i[k].destroy(), k === "navigation" ? (c[k].prevEl = void 0, c[k].nextEl = void 0, i[k].prevEl = void 0, i[k].nextEl = void 0) : (c[k].el = void 0, i[k].el = void 0));
|
|
11556
11557
|
};
|
|
@@ -11561,7 +11562,7 @@ function Uh({
|
|
|
11561
11562
|
const C = e[k];
|
|
11562
11563
|
(C === !0 || C === !1) && (k === "navigation" || k === "pagination" || k === "scrollbar") ? C === !1 && I(k) : c[k] = e[k];
|
|
11563
11564
|
}
|
|
11564
|
-
}), l.includes("controller") && !v && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && m && c.virtual.enabled ? (m.slides = t, m.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && p.init() && p.update(!0), v && (i.controller.control = c.controller.control), A && (a && (c.pagination.el = a), d.init(), d.render(), d.update()),
|
|
11565
|
+
}), l.includes("controller") && !v && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && m && c.virtual.enabled ? (m.slides = t, m.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && p.init() && p.update(!0), v && (i.controller.control = c.controller.control), A && (a && (c.pagination.el = a), d.init(), d.render(), d.update()), w && (r && (c.scrollbar.el = r), u.init(), u.updateSize(), u.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), f.init(), f.update()), n.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), n.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), n.includes("direction") && i.changeDirection(e.direction, !1), i.update();
|
|
11565
11566
|
}
|
|
11566
11567
|
const Jh = (i) => ({ virtualData: i & 512 }), Ps = (i) => ({ virtualData: i[9] }), Vh = (i) => ({ virtualData: i & 512 }), Is = (i) => ({ virtualData: i[9] }), Zh = (i) => ({ virtualData: i & 512 }), xs = (i) => ({ virtualData: i[9] }), qh = (i) => ({ virtualData: i & 512 }), ks = (i) => ({ virtualData: i[9] }), _h = (i) => ({ virtualData: i & 512 }), Ds = (i) => ({ virtualData: i[9] });
|
|
11567
11568
|
function Ls(i) {
|
|
@@ -11611,7 +11612,7 @@ function zs(i) {
|
|
|
11611
11612
|
}
|
|
11612
11613
|
function Kh(i) {
|
|
11613
11614
|
let t, e, n, o, s, r, a = gi(i[2]), l, c = vi(i[2]), d, f = Ai(i[2]), u, m, p;
|
|
11614
|
-
const g = i[12]["container-start"], v = Et(g, i, i[11], Ds), A = i[12]["wrapper-start"],
|
|
11615
|
+
const g = i[12]["container-start"], v = Et(g, i, i[11], Ds), A = i[12]["wrapper-start"], w = Et(A, i, i[11], ks), y = i[12].default, I = Et(y, i, i[11], xs), k = i[12]["wrapper-end"], C = Et(k, i, i[11], Is);
|
|
11615
11616
|
let L = a && Ls(i), D = c && Ss(i), H = f && zs(i);
|
|
11616
11617
|
const B = i[12]["container-end"], F = Et(B, i, i[11], Ps);
|
|
11617
11618
|
let U = [
|
|
@@ -11624,10 +11625,10 @@ function Kh(i) {
|
|
|
11624
11625
|
E = Ee(E, U[S]);
|
|
11625
11626
|
return {
|
|
11626
11627
|
c() {
|
|
11627
|
-
t = O("div"), v && v.c(), e = V(), n = O("div"),
|
|
11628
|
+
t = O("div"), v && v.c(), e = V(), n = O("div"), w && w.c(), o = V(), I && I.c(), s = V(), C && C.c(), r = V(), L && L.c(), l = V(), D && D.c(), d = V(), H && H.c(), u = V(), F && F.c(), b(n, "class", "swiper-wrapper"), kn(t, E);
|
|
11628
11629
|
},
|
|
11629
11630
|
m(S, j) {
|
|
11630
|
-
M(S, t, j), v && v.m(t, null), Q(t, e), Q(t, n),
|
|
11631
|
+
M(S, t, j), v && v.m(t, null), Q(t, e), Q(t, n), w && w.m(n, null), Q(n, o), I && I.m(n, null), Q(n, s), C && C.m(n, null), Q(t, r), L && L.m(t, null), Q(t, l), D && D.m(t, null), Q(t, d), H && H.m(t, null), Q(t, u), F && F.m(t, null), i[17](t), p = !0;
|
|
11631
11632
|
},
|
|
11632
11633
|
p(S, [j]) {
|
|
11633
11634
|
v && v.p && (!p || j & 2560) && Pt(
|
|
@@ -11637,8 +11638,8 @@ function Kh(i) {
|
|
|
11637
11638
|
S[11],
|
|
11638
11639
|
p ? xt(g, S[11], j, _h) : It(S[11]),
|
|
11639
11640
|
Ds
|
|
11640
|
-
),
|
|
11641
|
-
|
|
11641
|
+
), w && w.p && (!p || j & 2560) && Pt(
|
|
11642
|
+
w,
|
|
11642
11643
|
A,
|
|
11643
11644
|
S,
|
|
11644
11645
|
S[11],
|
|
@@ -11646,10 +11647,10 @@ function Kh(i) {
|
|
|
11646
11647
|
ks
|
|
11647
11648
|
), I && I.p && (!p || j & 2560) && Pt(
|
|
11648
11649
|
I,
|
|
11649
|
-
|
|
11650
|
+
y,
|
|
11650
11651
|
S,
|
|
11651
11652
|
S[11],
|
|
11652
|
-
p ? xt(
|
|
11653
|
+
p ? xt(y, S[11], j, Zh) : It(S[11]),
|
|
11653
11654
|
xs
|
|
11654
11655
|
), C && C.p && (!p || j & 2560) && Pt(
|
|
11655
11656
|
C,
|
|
@@ -11671,13 +11672,13 @@ function Kh(i) {
|
|
|
11671
11672
|
]));
|
|
11672
11673
|
},
|
|
11673
11674
|
i(S) {
|
|
11674
|
-
p || (x(v, S), x(
|
|
11675
|
+
p || (x(v, S), x(w, S), x(I, S), x(C, S), x(F, S), p = !0);
|
|
11675
11676
|
},
|
|
11676
11677
|
o(S) {
|
|
11677
|
-
z(v, S), z(
|
|
11678
|
+
z(v, S), z(w, S), z(I, S), z(C, S), z(F, S), p = !1;
|
|
11678
11679
|
},
|
|
11679
11680
|
d(S) {
|
|
11680
|
-
S && T(t), v && v.d(S),
|
|
11681
|
+
S && T(t), v && v.d(S), w && w.d(S), I && I.d(S), C && C.d(S), L && L.d(), D && D.d(), H && H.d(), F && F.d(S), i[17](null);
|
|
11681
11682
|
}
|
|
11682
11683
|
};
|
|
11683
11684
|
}
|
|
@@ -11685,7 +11686,7 @@ function $h(i, t, e) {
|
|
|
11685
11686
|
const n = ["class", "swiper"];
|
|
11686
11687
|
let o = Dn(t, n), { $$slots: s = {}, $$scope: r } = t;
|
|
11687
11688
|
const a = Fa();
|
|
11688
|
-
let { class: l = void 0 } = t, c = "swiper", d = !1, f = null, u = null, m, p, g, v, A = null,
|
|
11689
|
+
let { class: l = void 0 } = t, c = "swiper", d = !1, f = null, u = null, m, p, g, v, A = null, w = null, y = null, I = null, k = null, C = { slides: [] };
|
|
11689
11690
|
function L() {
|
|
11690
11691
|
return f;
|
|
11691
11692
|
}
|
|
@@ -11723,8 +11724,8 @@ function $h(i, t, e) {
|
|
|
11723
11724
|
!A || (Xh(
|
|
11724
11725
|
{
|
|
11725
11726
|
el: A,
|
|
11726
|
-
nextEl:
|
|
11727
|
-
prevEl:
|
|
11727
|
+
nextEl: y,
|
|
11728
|
+
prevEl: w,
|
|
11728
11729
|
paginationEl: k,
|
|
11729
11730
|
scrollbarEl: I,
|
|
11730
11731
|
swiper: f
|
|
@@ -11742,8 +11743,8 @@ function $h(i, t, e) {
|
|
|
11742
11743
|
swiper: f,
|
|
11743
11744
|
passedParams: g,
|
|
11744
11745
|
changedParams: N,
|
|
11745
|
-
nextEl:
|
|
11746
|
-
prevEl:
|
|
11746
|
+
nextEl: y,
|
|
11747
|
+
prevEl: w,
|
|
11747
11748
|
scrollbarEl: I,
|
|
11748
11749
|
paginationEl: k
|
|
11749
11750
|
}), d = !1, u = g;
|
|
@@ -11752,12 +11753,12 @@ function $h(i, t, e) {
|
|
|
11752
11753
|
});
|
|
11753
11754
|
function F(N) {
|
|
11754
11755
|
Qe[N ? "unshift" : "push"](() => {
|
|
11755
|
-
|
|
11756
|
+
w = N, e(5, w);
|
|
11756
11757
|
});
|
|
11757
11758
|
}
|
|
11758
11759
|
function U(N) {
|
|
11759
11760
|
Qe[N ? "unshift" : "push"](() => {
|
|
11760
|
-
|
|
11761
|
+
y = N, e(6, y);
|
|
11761
11762
|
});
|
|
11762
11763
|
}
|
|
11763
11764
|
function E(N) {
|
|
@@ -11783,8 +11784,8 @@ function $h(i, t, e) {
|
|
|
11783
11784
|
p,
|
|
11784
11785
|
v,
|
|
11785
11786
|
A,
|
|
11786
|
-
y,
|
|
11787
11787
|
w,
|
|
11788
|
+
y,
|
|
11788
11789
|
I,
|
|
11789
11790
|
k,
|
|
11790
11791
|
C,
|
|
@@ -11921,7 +11922,7 @@ function rm(i, t, e) {
|
|
|
11921
11922
|
let n;
|
|
11922
11923
|
const o = ["zoom", "virtualIndex", "class"];
|
|
11923
11924
|
let s = Dn(t, o), { $$slots: r = {}, $$scope: a } = t, { zoom: l = void 0 } = t, { virtualIndex: c = void 0 } = t, { class: d = void 0 } = t, f = null, u = "swiper-slide", m = _t("swiper"), p = !1;
|
|
11924
|
-
const g = (
|
|
11925
|
+
const g = (y, I, k) => {
|
|
11925
11926
|
I === f && e(3, u = k);
|
|
11926
11927
|
}, v = () => {
|
|
11927
11928
|
!m || p || (m.on("_slideClass", g), p = !0);
|
|
@@ -11931,8 +11932,8 @@ function rm(i, t, e) {
|
|
|
11931
11932
|
Ue(() => {
|
|
11932
11933
|
typeof c != "undefined" && (e(
|
|
11933
11934
|
4,
|
|
11934
|
-
f.onSwiper = (
|
|
11935
|
-
m =
|
|
11935
|
+
f.onSwiper = (y) => {
|
|
11936
|
+
m = y, v();
|
|
11936
11937
|
},
|
|
11937
11938
|
f
|
|
11938
11939
|
), v());
|
|
@@ -11949,13 +11950,13 @@ function rm(i, t, e) {
|
|
|
11949
11950
|
}), At(() => {
|
|
11950
11951
|
!m || A();
|
|
11951
11952
|
});
|
|
11952
|
-
function y
|
|
11953
|
-
Qe[
|
|
11954
|
-
f =
|
|
11953
|
+
function w(y) {
|
|
11954
|
+
Qe[y ? "unshift" : "push"](() => {
|
|
11955
|
+
f = y, e(4, f);
|
|
11955
11956
|
});
|
|
11956
11957
|
}
|
|
11957
|
-
return i.$$set = (
|
|
11958
|
-
t = Ee(Ee({}, t), Ar(
|
|
11958
|
+
return i.$$set = (y) => {
|
|
11959
|
+
t = Ee(Ee({}, t), Ar(y)), e(6, s = Dn(t, o)), "zoom" in y && e(0, l = y.zoom), "virtualIndex" in y && e(1, c = y.virtualIndex), "class" in y && e(2, d = y.class), "$$scope" in y && e(7, a = y.$$scope);
|
|
11959
11960
|
}, i.$$.update = () => {
|
|
11960
11961
|
i.$$.dirty & 8 && e(5, n = {
|
|
11961
11962
|
isActive: u.indexOf("swiper-slide-active") >= 0 || u.indexOf("swiper-slide-duplicate-active") >= 0,
|
|
@@ -11974,7 +11975,7 @@ function rm(i, t, e) {
|
|
|
11974
11975
|
s,
|
|
11975
11976
|
a,
|
|
11976
11977
|
r,
|
|
11977
|
-
|
|
11978
|
+
w
|
|
11978
11979
|
];
|
|
11979
11980
|
}
|
|
11980
11981
|
class am extends te {
|
|
@@ -12375,10 +12376,10 @@ function vm(i) {
|
|
|
12375
12376
|
}
|
|
12376
12377
|
function bm(i, t, e) {
|
|
12377
12378
|
let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: f = !0 } = t, { animation: u = !0 } = t, { playButtonIfNeed: m = "small" } = t, { canPlay: p = !0 } = t, { objectFit: g = "cover" } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: A = { autoplay: !0, autoplayVideo: !1 } } = t;
|
|
12378
|
-
const
|
|
12379
|
+
const w = _t("mediaStore"), y = _t("hooks");
|
|
12379
12380
|
let I;
|
|
12380
12381
|
function k(B) {
|
|
12381
|
-
!n || !I || (
|
|
12382
|
+
!n || !I || (w.set({ currentMediaUrl: this.src }), y.emit("playStateChange", {
|
|
12382
12383
|
event: B,
|
|
12383
12384
|
state: "playing",
|
|
12384
12385
|
tag: r,
|
|
@@ -12386,7 +12387,7 @@ function bm(i, t, e) {
|
|
|
12386
12387
|
}), I.autoplay.stop());
|
|
12387
12388
|
}
|
|
12388
12389
|
function C(B) {
|
|
12389
|
-
!n || !I || (
|
|
12390
|
+
!n || !I || (y.emit("playStateChange", {
|
|
12390
12391
|
event: B,
|
|
12391
12392
|
state: "paused",
|
|
12392
12393
|
tag: r,
|
|
@@ -12423,7 +12424,7 @@ function bm(i, t, e) {
|
|
|
12423
12424
|
}, i.$$.update = () => {
|
|
12424
12425
|
i.$$.dirty & 262145 && e(13, n = v && (a == null ? void 0 : a.length) > 1), i.$$.dirty & 1 && e(11, o = a), i.$$.dirty & 2560 && e(14, s = o.length > 1 && A.autoplay), i.$$.dirty & 1024 && I && I.slides.forEach((B) => {
|
|
12425
12426
|
const F = B.querySelector("video");
|
|
12426
|
-
F &&
|
|
12427
|
+
F && w.subscribe(({ currentMediaUrl: U }) => {
|
|
12427
12428
|
U !== F.src && F.pause();
|
|
12428
12429
|
});
|
|
12429
12430
|
});
|
|
@@ -12792,7 +12793,7 @@ function qs(i) {
|
|
|
12792
12793
|
}
|
|
12793
12794
|
function Im(i) {
|
|
12794
12795
|
var F, U;
|
|
12795
|
-
let t, e, n, o, s, r, a, l, c, d, f, u, m, p, g = i[2].title + "", v, A,
|
|
12796
|
+
let t, e, n, o, s, r, a, l, c, d, f, u, m, p, g = i[2].title + "", v, A, w, y, I;
|
|
12796
12797
|
e = new Je({
|
|
12797
12798
|
props: {
|
|
12798
12799
|
visible: i[1],
|
|
@@ -12819,13 +12820,13 @@ function Im(i) {
|
|
|
12819
12820
|
f = V();
|
|
12820
12821
|
for (let j = 0; j < D.length; j += 1)
|
|
12821
12822
|
D[j].c();
|
|
12822
|
-
u = V(), m = O("div"), p = O("div"), v = Le(g), A = V(),
|
|
12823
|
+
u = V(), m = O("div"), p = O("div"), v = Le(g), A = V(), w = O("div"), H && H.c(), y = V(), B && B.c(), b(o, "class", "line svelte-8mby9k"), R(
|
|
12823
12824
|
o,
|
|
12824
12825
|
"transition-delay",
|
|
12825
12826
|
i[1] ? yn + "ms" : wn + Ks - _s - 40 + "ms",
|
|
12826
12827
|
!1
|
|
12827
|
-
), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(m, "class", "title svelte-8mby9k"), b(
|
|
12828
|
-
|
|
12828
|
+
), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(m, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), R(
|
|
12829
|
+
w,
|
|
12829
12830
|
"height",
|
|
12830
12831
|
((E = i[2].price) == null ? void 0 : E.value) !== void 0 && ((S = i[2].price) == null ? void 0 : S.value) !== null && i[2].highlightText ? void 0 : "1rem",
|
|
12831
12832
|
!1
|
|
@@ -12843,7 +12844,7 @@ function Im(i) {
|
|
|
12843
12844
|
Q(d, f);
|
|
12844
12845
|
for (let j = 0; j < D.length; j += 1)
|
|
12845
12846
|
D[j].m(d, null);
|
|
12846
|
-
Q(r, u), Q(r, m), Q(m, p), Q(p, v), Q(r, A), Q(r,
|
|
12847
|
+
Q(r, u), Q(r, m), Q(m, p), Q(p, v), Q(r, A), Q(r, w), H && H.m(w, null), Q(w, y), B && B.m(w, null), I = !0;
|
|
12847
12848
|
},
|
|
12848
12849
|
p(E, [S]) {
|
|
12849
12850
|
var N, X, ee, W;
|
|
@@ -12875,8 +12876,8 @@ function Im(i) {
|
|
|
12875
12876
|
D[Y].d(1);
|
|
12876
12877
|
D.length = L.length;
|
|
12877
12878
|
}
|
|
12878
|
-
(!I || S & 4) && g !== (g = E[2].title + "") && Se(v, g), ((N = E[2].price) == null ? void 0 : N.value) !== void 0 && ((X = E[2].price) == null ? void 0 : X.value) !== null ? H ? H.p(E, S) : (H = Vs(E), H.c(), H.m(
|
|
12879
|
-
|
|
12879
|
+
(!I || S & 4) && g !== (g = E[2].title + "") && Se(v, g), ((N = E[2].price) == null ? void 0 : N.value) !== void 0 && ((X = E[2].price) == null ? void 0 : X.value) !== null ? H ? H.p(E, S) : (H = Vs(E), H.c(), H.m(w, y)) : H && (H.d(1), H = null), E[2].highlightText ? B ? B.p(E, S) : (B = qs(E), B.c(), B.m(w, null)) : B && (B.d(1), B = null), S & 4 && R(
|
|
12880
|
+
w,
|
|
12880
12881
|
"height",
|
|
12881
12882
|
((ee = E[2].price) == null ? void 0 : ee.value) !== void 0 && ((W = E[2].price) == null ? void 0 : W.value) !== null && E[2].highlightText ? void 0 : "1rem",
|
|
12882
12883
|
!1
|
|
@@ -13064,7 +13065,7 @@ function Mm(i) {
|
|
|
13064
13065
|
ce(i, "svelte-4r8s18", ".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}");
|
|
13065
13066
|
}
|
|
13066
13067
|
function er(i) {
|
|
13067
|
-
var
|
|
13068
|
+
var w, y, I, k;
|
|
13068
13069
|
let t, e, n, o, s, r, a, l, c, d, f, u, m, p, g, v, A;
|
|
13069
13070
|
return e = new Je({
|
|
13070
13071
|
props: {
|
|
@@ -13079,7 +13080,7 @@ function er(i) {
|
|
|
13079
13080
|
props: {
|
|
13080
13081
|
unfolded: i[5],
|
|
13081
13082
|
duration: 1e3,
|
|
13082
|
-
outDelay: i[4] + 20 * Math.min((
|
|
13083
|
+
outDelay: i[4] + 20 * Math.min((y = (w = i[3][0]) == null ? void 0 : w.content.length) != null ? y : 10, 15)
|
|
13083
13084
|
}
|
|
13084
13085
|
}), d = new zm({
|
|
13085
13086
|
props: {
|
|
@@ -13352,9 +13353,9 @@ function Wm(i) {
|
|
|
13352
13353
|
M(v, t, A), Q(t, e), ~n && p[n].m(e, null), Q(t, s), Q(t, r), K(a, r, null), Q(r, l), Q(r, c), Q(c, f), u = !0;
|
|
13353
13354
|
},
|
|
13354
13355
|
p(v, [A]) {
|
|
13355
|
-
let
|
|
13356
|
-
n = g(v), n !==
|
|
13357
|
-
p[
|
|
13356
|
+
let w = n;
|
|
13357
|
+
n = g(v), n !== w && (o && (ue(), z(p[w], 1, 1, () => {
|
|
13358
|
+
p[w] = null;
|
|
13358
13359
|
}), fe()), ~n ? (o = p[n], o || (o = p[n] = m[n](v), o.c()), x(o, 1), o.m(e, null)) : o = null), (!u || A & 1) && d !== (d = v[0].text + "") && Se(f, d);
|
|
13359
13360
|
},
|
|
13360
13361
|
i(v) {
|
|
@@ -13659,11 +13660,11 @@ function op(i) {
|
|
|
13659
13660
|
M(m, t, p), Q(t, e), Q(e, n), ~o && f[o].m(n, null), a = !0, l || (c = Pe(t, "click", Pi(i[11])), l = !0);
|
|
13660
13661
|
},
|
|
13661
13662
|
p(m, [p]) {
|
|
13662
|
-
var v, A,
|
|
13663
|
+
var v, A, w;
|
|
13663
13664
|
let g = o;
|
|
13664
13665
|
o = u(m), o === g ? ~o && f[o].p(m, p) : (s && (ue(), z(f[g], 1, 1, () => {
|
|
13665
13666
|
f[g] = null;
|
|
13666
|
-
}), fe()), ~o ? (s = f[o], s ? s.p(m, p) : (s = f[o] = d[o](m), s.c()), x(s, 1), s.m(n, null)) : s = null), p & 2 && q(n, "unfolded", (v = m[1].state) == null ? void 0 : v.unfolded), (!a || p & 2 && r !== (r = m[1].id)) && b(t, "data-id", r), p & 2 && q(t, "disable", m[1].enabled === !1 || ((A = m[1].temporaryState) == null ? void 0 : A.visible) === !1), p & 26 && q(t, "hide", !m[3].visible || !m[3].enabled || !m[4].visible || !((
|
|
13667
|
+
}), fe()), ~o ? (s = f[o], s ? s.p(m, p) : (s = f[o] = d[o](m), s.c()), x(s, 1), s.m(n, null)) : s = null), p & 2 && q(n, "unfolded", (v = m[1].state) == null ? void 0 : v.unfolded), (!a || p & 2 && r !== (r = m[1].id)) && b(t, "data-id", r), p & 2 && q(t, "disable", m[1].enabled === !1 || ((A = m[1].temporaryState) == null ? void 0 : A.visible) === !1), p & 26 && q(t, "hide", !m[3].visible || !m[3].enabled || !m[4].visible || !((w = m[1].state) != null && w.visible)), p & 1 && q(t, "withAnimation", m[0]), p & 2 && q(t, "unClickable", m[1].clickable === !1), p & 2 && R(t, "width", m[1].pointType === "PointTag" ? 0 : "100%", !1), p & 2 && R(t, "height", m[1].pointType === "PointTag" ? 0 : "100%", !1);
|
|
13667
13668
|
},
|
|
13668
13669
|
i(m) {
|
|
13669
13670
|
a || (x(s), a = !0);
|
|
@@ -13687,8 +13688,8 @@ function sp(i, t, e) {
|
|
|
13687
13688
|
return i.$$set = (A) => {
|
|
13688
13689
|
"withAnimation" in A && e(0, a = A.withAnimation), "tag" in A && e(1, l = A.tag), "hooks" in A && e(2, c = A.hooks), "state" in A && e(3, d = A.state), "mediaStore" in A && e(5, f = A.mediaStore), "temporaryState" in A && e(4, u = A.temporaryState);
|
|
13689
13690
|
}, i.$$.update = () => {
|
|
13690
|
-
var A,
|
|
13691
|
-
i.$$.dirty & 2 && e(9, n = (A = l.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(8, o = (
|
|
13691
|
+
var A, w;
|
|
13692
|
+
i.$$.dirty & 2 && e(9, n = (A = l.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(8, o = (w = l.state) == null ? void 0 : w.visible), i.$$.dirty & 280 && e(10, s = d.visible && u.visible && o), i.$$.dirty & 2 && (r = l.id), i.$$.dirty & 1024 && g(s), i.$$.dirty & 962 && l.hooks && (n !== void 0 && n !== p && (e(7, p = n), n ? l.hooks.emit("unfolded") : l.hooks.emit("folded")), o !== void 0 && o !== m && (e(6, m = o), o ? l.hooks.emit("show") : l.hooks.emit("hide")));
|
|
13692
13693
|
}, [
|
|
13693
13694
|
a,
|
|
13694
13695
|
l,
|
|
@@ -14064,7 +14065,7 @@ function wp(i) {
|
|
|
14064
14065
|
}
|
|
14065
14066
|
function Cp(i, t, e) {
|
|
14066
14067
|
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: f } = t, { state: u } = t, { mediaStore: m } = t, { temporaryState: p } = t, g, v = !1;
|
|
14067
|
-
function A(
|
|
14068
|
+
function A(y) {
|
|
14068
14069
|
g !== void 0 && clearTimeout(g), v = !0, g = setTimeout(
|
|
14069
14070
|
() => {
|
|
14070
14071
|
v = !1;
|
|
@@ -14072,14 +14073,14 @@ function Cp(i, t, e) {
|
|
|
14072
14073
|
800
|
|
14073
14074
|
);
|
|
14074
14075
|
}
|
|
14075
|
-
const
|
|
14076
|
-
v || f.emit("click", { event:
|
|
14076
|
+
const w = (y) => {
|
|
14077
|
+
v || f.emit("click", { event: y, target: "TagPoint", tag: d });
|
|
14077
14078
|
};
|
|
14078
|
-
return i.$$set = (
|
|
14079
|
-
"withAnimation" in
|
|
14079
|
+
return i.$$set = (y) => {
|
|
14080
|
+
"withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, f = y.hooks), "state" in y && e(3, u = y.state), "mediaStore" in y && e(4, m = y.mediaStore), "temporaryState" in y && e(5, p = y.temporaryState);
|
|
14080
14081
|
}, i.$$.update = () => {
|
|
14081
|
-
var
|
|
14082
|
-
i.$$.dirty & 2 && e(12, n = (
|
|
14082
|
+
var y, I, k, C;
|
|
14083
|
+
i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (I = d.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(9, r = ((k = d.pointTagStyle) == null ? void 0 : k.leftPercent) + "%"), i.$$.dirty & 2 && e(8, a = ((C = d.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(7, l = d.contentType === Xe.Link ? 1 : 0), i.$$.dirty & 64 && A();
|
|
14083
14084
|
}, [
|
|
14084
14085
|
c,
|
|
14085
14086
|
d,
|
|
@@ -14092,7 +14093,7 @@ function Cp(i, t, e) {
|
|
|
14092
14093
|
a,
|
|
14093
14094
|
r,
|
|
14094
14095
|
o,
|
|
14095
|
-
|
|
14096
|
+
w,
|
|
14096
14097
|
n
|
|
14097
14098
|
];
|
|
14098
14099
|
}
|
|
@@ -14380,8 +14381,8 @@ class Sp extends Lp {
|
|
|
14380
14381
|
throw new Error(`getVisible(): observerPosition is ${g}`);
|
|
14381
14382
|
const v = vn(e.position).sub(g).normalize();
|
|
14382
14383
|
this.raycaster.set(g, v);
|
|
14383
|
-
const [A] = this.five.model.intersectRaycaster(this.raycaster),
|
|
14384
|
-
if (A && A.distance +
|
|
14384
|
+
const [A] = this.five.model.intersectRaycaster(this.raycaster), w = (p = (m = l.intersectRaycaster) == null ? void 0 : m.distanceAccuracy) != null ? p : 0.01;
|
|
14385
|
+
if (A && A.distance + w < c)
|
|
14385
14386
|
return !1;
|
|
14386
14387
|
}
|
|
14387
14388
|
return !(l.angleRange && e.dimensionType === qe.Three && bn(this.getAngle(e), l.angleRange) === !1);
|
|
@@ -16006,12 +16007,12 @@ class $p extends Hi {
|
|
|
16006
16007
|
if (this.rotations.length === 1)
|
|
16007
16008
|
return u.angleTo(s.baseAxes) > r.angleTo(s.baseAxes);
|
|
16008
16009
|
{
|
|
16009
|
-
const g = this.rotations[this.rotations.length - 1], v = this.rotations[this.rotations.length - 2], A = u.angleTo(v.vector),
|
|
16010
|
-
if (
|
|
16010
|
+
const g = this.rotations[this.rotations.length - 1], v = this.rotations[this.rotations.length - 2], A = u.angleTo(v.vector), w = u.angleTo(g.vector), y = g.vector.angleTo(v.vector);
|
|
16011
|
+
if (y === 0 || w === 0 || A === 0)
|
|
16011
16012
|
return;
|
|
16012
|
-
if (A >
|
|
16013
|
+
if (A > w && A > y)
|
|
16013
16014
|
return g.direction;
|
|
16014
|
-
if (A <
|
|
16015
|
+
if (A < y && w < y || A < w && w > y)
|
|
16015
16016
|
return !g.direction;
|
|
16016
16017
|
}
|
|
16017
16018
|
})();
|
|
@@ -16155,7 +16156,7 @@ class eg extends Hi {
|
|
|
16155
16156
|
case "nwse":
|
|
16156
16157
|
v(), A();
|
|
16157
16158
|
}
|
|
16158
|
-
const
|
|
16159
|
+
const w = new Z().subVectors(r[1], r[0]).length() / f.length(), y = new Z().subVectors(r[3], r[0]).length() / u.length(), I = new Z(w, y, 1), k = new P.Matrix4().scale(I);
|
|
16159
16160
|
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(k) : n.scale.applyMatrix4(k), o.position.copy(a);
|
|
16160
16161
|
const C = new Z().addVectors(r[0], r[2]).divideScalar(2), L = new Z().subVectors(C, l), D = new P.Matrix4().setPosition(L);
|
|
16161
16162
|
n.applyMatrix4(D), (H = this.helperObject3D.css3DInstance) == null || H.css3DObject.applyMatrix4(D), (B = this.helperObject3D.plane) == null || B.applyMatrix4(D), this.hooks.emit("scaleUpdate", { matrix4: k, helperOrigin: l }), this.hooks.emit("positionUpdate", { matrix4: D }), this.render();
|