@realsee/dnalogel 2.7.1 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +19 -19
- package/dist/index.js +344 -351
- package/dist/index.umd.js +17 -17
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +32 -4
- package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +4 -1
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +0 -2
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +2 -2
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +47 -47
- 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 +18 -18
- 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/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/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- 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/HelperOffset.html +8 -8
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.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 +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- 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 +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- 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/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/State.html +8 -8
- package/docs/interfaces/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- 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/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.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/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.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 +14 -14
- package/docs/types/LoadTagConfig.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/MediaStore.html +5 -5
- package/docs/types/ModelElement.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/PanoIndex.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/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.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/StickType.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/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.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/ModelItemLabelPlugin/ItemLabelItem.js +16 -16
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +23 -25
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +32 -4
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +2 -2
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +35 -35
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +4 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +56 -52
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +71 -72
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +0 -2
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +22 -30
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -490,17 +490,17 @@ class fc extends dc {
|
|
|
490
490
|
let p = [];
|
|
491
491
|
const v = this;
|
|
492
492
|
v.tween = cc({ step: 0 }, { step: l.length - 1 }, u).onUpdate(({ step: g }) => {
|
|
493
|
-
var
|
|
493
|
+
var w;
|
|
494
494
|
if (v.tweening = !0, !v.ready)
|
|
495
|
-
return a.clearRect(0, 0, v.canvas[h].width, v.canvas[h].height), (
|
|
495
|
+
return a.clearRect(0, 0, v.canvas[h].width, v.canvas[h].height), (w = v.tween) == null ? void 0 : w.stop();
|
|
496
496
|
const A = Math.floor(g);
|
|
497
|
-
if (!p.find((
|
|
497
|
+
if (!p.find((y) => y === A)) {
|
|
498
498
|
if (p.push(A), console.log("__debug__", l, l[A], A), f.push(wi(l[A], v.clientWidth, v.clientHeight)), f.length < 3)
|
|
499
499
|
return;
|
|
500
|
-
const { control:
|
|
501
|
-
if (!
|
|
500
|
+
const { control: y, end: C } = zn(f);
|
|
501
|
+
if (!y || !C)
|
|
502
502
|
return;
|
|
503
|
-
a.quadraticCurveTo(
|
|
503
|
+
a.quadraticCurveTo(y.x, y.y, C.x, C.y), a.stroke();
|
|
504
504
|
}
|
|
505
505
|
}).onComplete((g) => {
|
|
506
506
|
v.tween = void 0, v.tweening = !1, p = [], f = [], s && s(), r();
|
|
@@ -627,9 +627,9 @@ const Ab = (i, t) => {
|
|
|
627
627
|
!e || n || f();
|
|
628
628
|
}, A = () => {
|
|
629
629
|
e || (e = !0, l.add(u), !n && i.model.loaded && f(), S());
|
|
630
|
-
},
|
|
630
|
+
}, w = () => {
|
|
631
631
|
!e || (l.remove(u), o = !0, k(), e = !1);
|
|
632
|
-
},
|
|
632
|
+
}, y = (B, R = {}) => {
|
|
633
633
|
const G = p();
|
|
634
634
|
if (!G)
|
|
635
635
|
return;
|
|
@@ -671,7 +671,7 @@ const Ab = (i, t) => {
|
|
|
671
671
|
}, H = () => ({
|
|
672
672
|
enabled: e
|
|
673
673
|
});
|
|
674
|
-
return Object.assign(window, { camera: c }), i.on("modelLoaded", g), i.on("modelWillLoad", v), i.on("cameraDirectionUpdate", S), i.on("dispose", j), i.on("renderFrame", k), i.on("cameraPositionUpdate", S), { appendTo:
|
|
674
|
+
return Object.assign(window, { camera: c }), i.on("modelLoaded", g), i.on("modelWillLoad", v), i.on("cameraDirectionUpdate", S), i.on("dispose", j), i.on("renderFrame", k), i.on("cameraPositionUpdate", S), { appendTo: y, refresh: C, changeConfigs: N, enable: A, disable: w, getCurrentState: H };
|
|
675
675
|
};
|
|
676
676
|
function vt(...i) {
|
|
677
677
|
const t = [];
|
|
@@ -859,8 +859,8 @@ class Cc extends Fi {
|
|
|
859
859
|
n.classList.add(`${bc}__container`);
|
|
860
860
|
const v = new $().subVectors(o[1], o[0]), g = new $().subVectors(o[3], o[0]), A = new $().crossVectors(v, g).normalize();
|
|
861
861
|
this.lookAt(A);
|
|
862
|
-
const
|
|
863
|
-
this.rotateOnWorldAxis(C,
|
|
862
|
+
const w = this.up.clone().applyQuaternion(this.quaternion), y = g.clone(), C = new $().crossVectors(w, y).normalize();
|
|
863
|
+
this.rotateOnWorldAxis(C, w.angleTo(y)), this.position.copy(f), this.addEventListener("added", () => {
|
|
864
864
|
var k;
|
|
865
865
|
this.mode === "front" && ((k = this.opacityMesh) == null || k.removeFromParent()), this.addParentVisibleListener();
|
|
866
866
|
}), this.addEventListener("removed", () => {
|
|
@@ -1037,7 +1037,7 @@ class wn {
|
|
|
1037
1037
|
!C || C.add(f);
|
|
1038
1038
|
}, v = () => {
|
|
1039
1039
|
d || (p(), this.render(t));
|
|
1040
|
-
}, g = (C) => this.setVisibleById(f.id, C), A = (C) => this.setEnabledById(f.id, C),
|
|
1040
|
+
}, g = (C) => this.setVisibleById(f.id, C), A = (C) => this.setEnabledById(f.id, C), w = () => (d = !0, f.removeFromParent(), !0), y = l === "front" ? De.frontModeStore.css3DRenderer : De.behindModeStore.css3DRenderer;
|
|
1041
1041
|
return c && v(), {
|
|
1042
1042
|
id: f.uuid,
|
|
1043
1043
|
container: u,
|
|
@@ -1049,8 +1049,8 @@ class wn {
|
|
|
1049
1049
|
enable: () => A(!0),
|
|
1050
1050
|
disable: () => A(!1),
|
|
1051
1051
|
setEnabled: A,
|
|
1052
|
-
dispose:
|
|
1053
|
-
appendToElement: (C) =>
|
|
1052
|
+
dispose: w,
|
|
1053
|
+
appendToElement: (C) => y.setWrapper(C)
|
|
1054
1054
|
};
|
|
1055
1055
|
});
|
|
1056
1056
|
m(this, "setVisibleById", (t, e) => {
|
|
@@ -1346,11 +1346,11 @@ const vb = (i) => {
|
|
|
1346
1346
|
};
|
|
1347
1347
|
return t.disposers.push(A), { clear: A, pointAxesHelperMesh: g };
|
|
1348
1348
|
}, s = (u, h = 0) => {
|
|
1349
|
-
var A,
|
|
1349
|
+
var A, w;
|
|
1350
1350
|
const d = (A = i == null ? void 0 : i.camera) == null ? void 0 : A.position;
|
|
1351
1351
|
if (!d)
|
|
1352
1352
|
return !1;
|
|
1353
|
-
const f = u.distanceTo(d), p = u.sub(d).normalize(), v = new zt(d, p), g = (
|
|
1353
|
+
const f = u.distanceTo(d), p = u.sub(d).normalize(), v = new zt(d, p), g = (w = i.model.intersectRaycaster(v)) == null ? void 0 : w[0];
|
|
1354
1354
|
return !(g && g.distance + h < f);
|
|
1355
1355
|
}, r = () => t.intersection, a = () => {
|
|
1356
1356
|
var u, h;
|
|
@@ -1754,13 +1754,13 @@ function Bt(i, t, e) {
|
|
|
1754
1754
|
const { delay: h = 0, duration: d = 300, easing: f = bt, tick: p = X, css: v } = n || Ta;
|
|
1755
1755
|
v && (s = xa(i, 0, 1, d, h, f, v, a++)), p(0, 1);
|
|
1756
1756
|
const g = wa() + h, A = g + d;
|
|
1757
|
-
r && r.abort(), o = !0, Se(() => oi(i, !0, "start")), r = Pa((
|
|
1757
|
+
r && r.abort(), o = !0, Se(() => oi(i, !0, "start")), r = Pa((w) => {
|
|
1758
1758
|
if (o) {
|
|
1759
|
-
if (
|
|
1759
|
+
if (w >= A)
|
|
1760
1760
|
return p(1, 0), oi(i, !0, "end"), l(), o = !1;
|
|
1761
|
-
if (
|
|
1762
|
-
const
|
|
1763
|
-
p(
|
|
1761
|
+
if (w >= g) {
|
|
1762
|
+
const y = f((w - g) / d);
|
|
1763
|
+
p(y, 1 - y);
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
1766
|
return o;
|
|
@@ -1856,19 +1856,19 @@ function qe(i, t, e, n, o, s, r, a, l, c, u, h) {
|
|
|
1856
1856
|
const v = {};
|
|
1857
1857
|
for (; p--; )
|
|
1858
1858
|
v[i[p].key] = p;
|
|
1859
|
-
const g = [], A = /* @__PURE__ */ new Map(),
|
|
1859
|
+
const g = [], A = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
|
|
1860
1860
|
for (p = f; p--; ) {
|
|
1861
1861
|
const I = h(o, s, p), S = e(I);
|
|
1862
1862
|
let k = r.get(S);
|
|
1863
|
-
k ? n && k.p(I, t) : (k = c(S, I), k.c()), A.set(S, g[p] = k), S in v &&
|
|
1863
|
+
k ? n && k.p(I, t) : (k = c(S, I), k.c()), A.set(S, g[p] = k), S in v && w.set(S, Math.abs(p - v[S]));
|
|
1864
1864
|
}
|
|
1865
|
-
const
|
|
1865
|
+
const y = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
|
|
1866
1866
|
function x(I) {
|
|
1867
1867
|
P(I, 1), I.m(a, u), r.set(I.key, I), u = I.first, f--;
|
|
1868
1868
|
}
|
|
1869
1869
|
for (; d && f; ) {
|
|
1870
1870
|
const I = g[f - 1], S = i[d - 1], k = I.key, j = S.key;
|
|
1871
|
-
I === S ? (u = I.first, d--, f--) : A.has(j) ? !r.has(k) ||
|
|
1871
|
+
I === S ? (u = I.first, d--, f--) : A.has(j) ? !r.has(k) || y.has(k) ? x(I) : C.has(j) ? d-- : w.get(k) > w.get(j) ? (C.add(k), x(I)) : (y.add(j), d--) : (l(S, r), d--);
|
|
1872
1872
|
}
|
|
1873
1873
|
for (; d--; ) {
|
|
1874
1874
|
const I = i[d];
|
|
@@ -2104,23 +2104,23 @@ function tu(i, t, e) {
|
|
|
2104
2104
|
function c(g) {
|
|
2105
2105
|
if (!(l === null || g.floorIndex === l))
|
|
2106
2106
|
return !1;
|
|
2107
|
-
const
|
|
2108
|
-
|
|
2109
|
-
const [I] = o.model.intersectRaycaster(
|
|
2107
|
+
const w = new zt(), y = o.camera.position.clone(), C = new $(g.position.x, g.position.y, g.position.z), x = C.distanceTo(y);
|
|
2108
|
+
w.set(y.clone(), C.clone().sub(y).normalize());
|
|
2109
|
+
const [I] = o.model.intersectRaycaster(w);
|
|
2110
2110
|
return !(I && I.distance + 1 < x);
|
|
2111
2111
|
}
|
|
2112
2112
|
function u(g, A) {
|
|
2113
|
-
const
|
|
2113
|
+
const y = new $(g.position.x, g.position.y, g.position.z).clone().project(o.camera), C = Math.ceil((y.x + 1) / 2 * A.x), x = Math.ceil((-y.y + 1) / 2 * A.y);
|
|
2114
2114
|
return `translate(${C}px, ${x}px)`;
|
|
2115
2115
|
}
|
|
2116
2116
|
function h(g) {
|
|
2117
|
-
const { rendererSize: A, shownFloor:
|
|
2117
|
+
const { rendererSize: A, shownFloor: w } = g, y = /* @__PURE__ */ new Map();
|
|
2118
2118
|
function C(I) {
|
|
2119
|
-
const S =
|
|
2119
|
+
const S = y.get(I.id);
|
|
2120
2120
|
if (S)
|
|
2121
2121
|
return S;
|
|
2122
2122
|
const { x: k, y: j, z: N } = I.position, H = new $(k, j, N).clone().distanceTo(o.camera.position);
|
|
2123
|
-
return
|
|
2123
|
+
return y.set(I.id, H), H;
|
|
2124
2124
|
}
|
|
2125
2125
|
return s.map((I) => {
|
|
2126
2126
|
const S = c(I), k = S ? u(I, A) : I.transform, j = C(I), H = s.filter((U) => U.visible && C(U) < j).length * 10;
|
|
@@ -2356,8 +2356,8 @@ function hu(i) {
|
|
|
2356
2356
|
function fu(i, t, e) {
|
|
2357
2357
|
let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
|
|
2358
2358
|
const { observers: a } = o, l = a[n], c = l.positionInImage.x, u = l.positionInImage.y, h = c * 100 + "%", d = u * 100 + "%", f = -uu(s) + 45, p = document.body.clientWidth, v = document.body.clientHeight, A = `${(p < 500 || v < 500 ? 17 : 37) / 16}rem`;
|
|
2359
|
-
return i.$$set = (
|
|
2360
|
-
"panoIndex" in
|
|
2359
|
+
return i.$$set = (w) => {
|
|
2360
|
+
"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);
|
|
2361
2361
|
}, [
|
|
2362
2362
|
r,
|
|
2363
2363
|
h,
|
|
@@ -2731,7 +2731,7 @@ function Hu(i, t, e) {
|
|
|
2731
2731
|
].every((Pe) => Ou(Pe, he));
|
|
2732
2732
|
};
|
|
2733
2733
|
}
|
|
2734
|
-
const p = document.body.clientWidth, v = document.body.clientHeight, g = l.roomLabel, A = g.positionInImage.x * 100 + "%",
|
|
2734
|
+
const p = document.body.clientWidth, v = document.body.clientHeight, g = l.roomLabel, A = g.positionInImage.x * 100 + "%", w = g.positionInImage.y * 100 + "%", y = (p < 500 || v < 500 ? 10 : 14) / 16 + "rem";
|
|
2735
2735
|
let C = !1, x, I;
|
|
2736
2736
|
c.subscribe(function(j) {
|
|
2737
2737
|
e(13, C = !!j && j.id === l.id);
|
|
@@ -2759,8 +2759,8 @@ function Hu(i, t, e) {
|
|
|
2759
2759
|
s,
|
|
2760
2760
|
n,
|
|
2761
2761
|
A,
|
|
2762
|
-
y,
|
|
2763
2762
|
w,
|
|
2763
|
+
y,
|
|
2764
2764
|
a,
|
|
2765
2765
|
c,
|
|
2766
2766
|
u,
|
|
@@ -3065,8 +3065,8 @@ function Uu(i, t, e) {
|
|
|
3065
3065
|
});
|
|
3066
3066
|
h.unshift({ left: 0, bottom: 0 }), h.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
3067
3067
|
const d = u[u.length - 1] - u[0], f = u.map((p, v, g) => {
|
|
3068
|
-
const A = v === 0 ? 0 : p - g[v - 1],
|
|
3069
|
-
return { left:
|
|
3068
|
+
const A = v === 0 ? 0 : p - g[v - 1], w = v === 0 ? 0 : (p + g[v - 1]) / 2, y = a ? (w - s.min.x - Ot + Ht) / l : 0, C = a ? 0 : (w - s.min.y - Ot + Ht) / c;
|
|
3069
|
+
return { left: y, bottom: C, distance: A };
|
|
3070
3070
|
}).filter(({ distance: p }) => p / d > 0.1);
|
|
3071
3071
|
return i.$$set = (p) => {
|
|
3072
3072
|
"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);
|
|
@@ -3855,30 +3855,30 @@ function xd(i) {
|
|
|
3855
3855
|
c() {
|
|
3856
3856
|
t = z("div"), K(e.$$.fragment), n = ne(), d && d.c(), o = ne(), K(s.$$.fragment), r = ne(), v && v.c(), a = ne(), g && g.c(), b(t, "class", l = Qe(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
|
|
3857
3857
|
},
|
|
3858
|
-
m(A,
|
|
3859
|
-
T(A, t,
|
|
3858
|
+
m(A, w) {
|
|
3859
|
+
T(A, t, w), Z(e, t, null), Q(t, n), d && d.m(t, null), Q(t, o), Z(s, t, null), Q(t, r), v && v.m(t, null), Q(t, a), g && g.m(t, null), c = !0;
|
|
3860
3860
|
},
|
|
3861
|
-
p(A, [
|
|
3862
|
-
const
|
|
3861
|
+
p(A, [w]) {
|
|
3862
|
+
const y = w & 34 ? Re(u, [
|
|
3863
3863
|
{
|
|
3864
3864
|
floorIndex: A[1],
|
|
3865
3865
|
floorplanData: A[5]
|
|
3866
3866
|
}
|
|
3867
3867
|
]) : {};
|
|
3868
|
-
e.$set(
|
|
3868
|
+
e.$set(y), A[2] ? d ? (d.p(A, w), w & 4 && P(d, 1)) : (d = is(A), d.c(), P(d, 1), d.m(t, o)) : d && (re(), D(d, 1, 1, () => {
|
|
3869
3869
|
d = null;
|
|
3870
3870
|
}), ae());
|
|
3871
|
-
const C =
|
|
3871
|
+
const C = w & 34 ? Re(f, [
|
|
3872
3872
|
{
|
|
3873
3873
|
floorplanData: A[5],
|
|
3874
3874
|
floorIndex: A[1]
|
|
3875
3875
|
}
|
|
3876
3876
|
]) : {};
|
|
3877
|
-
s.$set(C), A[3] ? v ? (v.p(A,
|
|
3877
|
+
s.$set(C), A[3] ? v ? (v.p(A, w), w & 8 && P(v, 1)) : (v = os(A), v.c(), P(v, 1), v.m(t, a)) : v && (re(), D(v, 1, 1, () => {
|
|
3878
3878
|
v = null;
|
|
3879
|
-
}), ae()), A[4] ? g ? (g.p(A,
|
|
3879
|
+
}), ae()), A[4] ? g ? (g.p(A, w), w & 16 && P(g, 1)) : (g = ss(A), g.c(), P(g, 1), g.m(t, null)) : g && (re(), D(g, 1, 1, () => {
|
|
3880
3880
|
g = null;
|
|
3881
|
-
}), ae()), (!c ||
|
|
3881
|
+
}), ae()), (!c || w & 1 && l !== (l = Qe(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
|
|
3882
3882
|
},
|
|
3883
3883
|
i(A) {
|
|
3884
3884
|
c || (P(e.$$.fragment, A), P(d), P(s.$$.fragment, A), P(v), P(g), c = !0);
|
|
@@ -4137,9 +4137,9 @@ function Md(i) {
|
|
|
4137
4137
|
};
|
|
4138
4138
|
}
|
|
4139
4139
|
function Td(i, t, e) {
|
|
4140
|
-
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: u } = t, { ruleLabelsEnable: h } = t, { floorplanData: d } = t, { lastPanoramaLongitude: f } = t, { cameraImageUrl: p } = t, { getRoomAreaText: v } = t, { getLabelElement: g } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable:
|
|
4141
|
-
return i.$$set = (
|
|
4142
|
-
"duration" in
|
|
4140
|
+
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: u } = t, { ruleLabelsEnable: h } = t, { floorplanData: d } = t, { lastPanoramaLongitude: f } = t, { cameraImageUrl: p } = t, { getRoomAreaText: v } = t, { getLabelElement: g } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: w } = t;
|
|
4141
|
+
return i.$$set = (y) => {
|
|
4142
|
+
"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, u = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, h = y.ruleLabelsEnable), "floorplanData" in y && e(9, d = y.floorplanData), "lastPanoramaLongitude" in y && e(10, f = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, p = y.cameraImageUrl), "getRoomAreaText" in y && e(12, v = y.getRoomAreaText), "getLabelElement" in y && e(13, g = y.getLabelElement), "getRuleDistanceText" in y && e(14, A = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, w = y.adaptiveRoomLabelVisibleEnable);
|
|
4143
4143
|
}, [
|
|
4144
4144
|
n,
|
|
4145
4145
|
o,
|
|
@@ -4156,7 +4156,7 @@ function Td(i, t, e) {
|
|
|
4156
4156
|
v,
|
|
4157
4157
|
g,
|
|
4158
4158
|
A,
|
|
4159
|
-
|
|
4159
|
+
w
|
|
4160
4160
|
];
|
|
4161
4161
|
}
|
|
4162
4162
|
class ho extends se {
|
|
@@ -5191,7 +5191,7 @@ function Kd(i, t, e) {
|
|
|
5191
5191
|
const g = p.bounding, A = p.observers[v];
|
|
5192
5192
|
if (!A)
|
|
5193
5193
|
return "";
|
|
5194
|
-
const
|
|
5194
|
+
const w = (g.max.x - g.min.x) * r, y = (g.max.y - g.min.y) * r, C = Math.floor(A.positionInImage.x * w), x = Math.floor(A.positionInImage.y * y);
|
|
5195
5195
|
return `translate(${C}px, ${x}px)`;
|
|
5196
5196
|
}
|
|
5197
5197
|
function d(p) {
|
|
@@ -5549,10 +5549,10 @@ function lh(i) {
|
|
|
5549
5549
|
};
|
|
5550
5550
|
}
|
|
5551
5551
|
function ch(i, t, e) {
|
|
5552
|
-
var A,
|
|
5553
|
-
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, u = (
|
|
5554
|
-
function v(
|
|
5555
|
-
e(10, u = n.work.observers[
|
|
5552
|
+
var A, w;
|
|
5553
|
+
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, u = (w = (A = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : A.floorIndex) != null ? w : 0, h = 0, d = 0, f = 0, p = 0;
|
|
5554
|
+
function v(y) {
|
|
5555
|
+
e(10, u = n.work.observers[y].floorIndex);
|
|
5556
5556
|
}
|
|
5557
5557
|
Ze(() => (n.on("panoArrived", v), () => {
|
|
5558
5558
|
n.off("panoArrived", v);
|
|
@@ -5560,12 +5560,12 @@ function ch(i, t, e) {
|
|
|
5560
5560
|
function g() {
|
|
5561
5561
|
h = this.clientWidth, d = this.clientHeight, e(6, h), e(7, d);
|
|
5562
5562
|
}
|
|
5563
|
-
return i.$$set = (
|
|
5564
|
-
"five" in
|
|
5563
|
+
return i.$$set = (y) => {
|
|
5564
|
+
"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);
|
|
5565
5565
|
}, i.$$.update = () => {
|
|
5566
5566
|
if (i.$$.dirty & 456) {
|
|
5567
|
-
const
|
|
5568
|
-
return I > S ? [
|
|
5567
|
+
const y = Math.min(h, d), { max: C, min: x } = r.bounding, I = C.x - x.x, S = C.y - x.y, k = function() {
|
|
5568
|
+
return I > S ? [y, y / I * S] : [y / S * I, y];
|
|
5569
5569
|
}();
|
|
5570
5570
|
e(8, f = k[0]), e(11, p = k[1]), e(9, c = f / I);
|
|
5571
5571
|
}
|
|
@@ -5857,8 +5857,8 @@ const Db = (i, t) => {
|
|
|
5857
5857
|
const d = (h == null ? void 0 : h.fbx_url) || e, f = (U = h == null ? void 0 : h.north_rad) != null ? U : n;
|
|
5858
5858
|
if (typeof f != "number")
|
|
5859
5859
|
throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
|
|
5860
|
-
const p = i.model.bounding, v = p.max.x - p.min.x, g = p.max.z - p.min.z, A = Math.max(v, g),
|
|
5861
|
-
Fa(
|
|
5860
|
+
const p = i.model.bounding, v = p.max.x - p.min.x, g = p.max.z - p.min.z, A = Math.max(v, g), y = yield new ha().loadAsync(d);
|
|
5861
|
+
Fa(y, {
|
|
5862
5862
|
transparent: !0,
|
|
5863
5863
|
side: E.DoubleSide,
|
|
5864
5864
|
blending: E.AdditiveBlending
|
|
@@ -5873,7 +5873,7 @@ const Db = (i, t) => {
|
|
|
5873
5873
|
} = i;
|
|
5874
5874
|
o.yBase = k;
|
|
5875
5875
|
const N = { x: (x + S) / 2, y: k - 1.6, z: (I + j) / 2 }, H = 45e-4 * A;
|
|
5876
|
-
return hh(
|
|
5876
|
+
return hh(y, { position: N, rotation: C, scale: H }), o.object = y, !0;
|
|
5877
5877
|
}), r = ({ latitude: h }) => {
|
|
5878
5878
|
if (!o.object)
|
|
5879
5879
|
return;
|
|
@@ -5906,12 +5906,12 @@ function fh(i, t) {
|
|
|
5906
5906
|
}
|
|
5907
5907
|
const mh = ({ x: i, y: t, z: e }) => new $(i, t, e), Lb = (i, t) => {
|
|
5908
5908
|
var v, g, A;
|
|
5909
|
-
const e = {}, n = (v = t.animationEnabled) != null ? v : !0, o = (g = t.position) != null ? g : 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 = (
|
|
5909
|
+
const e = {}, n = (v = t.animationEnabled) != null ? v : !0, o = (g = t.position) != null ? g : 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) => W(void 0, null, function* () {
|
|
5910
5910
|
var N, H, U, V, B, R, G, F;
|
|
5911
|
-
const
|
|
5912
|
-
if (!
|
|
5911
|
+
const y = (N = w == null ? void 0 : w.position) != null ? N : o;
|
|
5912
|
+
if (!y)
|
|
5913
5913
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
5914
|
-
const C = mh(
|
|
5914
|
+
const C = mh(y), x = (H = w == null ? void 0 : w.rad) != null ? H : s, I = (U = w == null ? void 0 : w.fbx_url) != null ? U : r;
|
|
5915
5915
|
if (e.rad = x, x === void 0)
|
|
5916
5916
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${x}`));
|
|
5917
5917
|
const S = yield new ha().loadAsync(I);
|
|
@@ -5926,10 +5926,10 @@ const mh = ({ x: i, y: t, z: e }) => new $(i, t, e), Lb = (i, t) => {
|
|
|
5926
5926
|
return;
|
|
5927
5927
|
if (!e.object)
|
|
5928
5928
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
5929
|
-
const
|
|
5930
|
-
a.push(
|
|
5931
|
-
const C =
|
|
5932
|
-
C.timeScale =
|
|
5929
|
+
const w = 1, y = new _l(e.object);
|
|
5930
|
+
a.push(y);
|
|
5931
|
+
const C = y.clipAction(e.object.animations[0]);
|
|
5932
|
+
C.timeScale = w;
|
|
5933
5933
|
let x;
|
|
5934
5934
|
const I = () => {
|
|
5935
5935
|
let N = 0, H = 0;
|
|
@@ -5949,15 +5949,15 @@ const mh = ({ x: i, y: t, z: e }) => new $(i, t, e), Lb = (i, t) => {
|
|
|
5949
5949
|
C.stop(), x == null || x(), x = void 0;
|
|
5950
5950
|
} };
|
|
5951
5951
|
e.animation = j;
|
|
5952
|
-
}, u = (
|
|
5952
|
+
}, u = (w) => {
|
|
5953
5953
|
var C;
|
|
5954
5954
|
if (!e.object)
|
|
5955
5955
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
5956
|
-
((C =
|
|
5956
|
+
((C = w == null ? void 0 : w.animationEnable) != null ? C : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
|
|
5957
5957
|
}, h = () => {
|
|
5958
5958
|
!e.object || (e.animation && e.animation.stop(), i.scene.remove(e.object), i.needsRender = !0);
|
|
5959
|
-
}, d = (
|
|
5960
|
-
return { load: l, enable: (
|
|
5959
|
+
}, d = (w) => w === "Floorplan" ? u() : h();
|
|
5960
|
+
return { load: l, enable: (w) => (e.enabled || (e.enabled = !0, d(i.currentMode), i.on("modeChange", d), u(w)), !0), disable: () => (e.enabled && (e.enabled = !1, h(), i.off("modeChange", d)), !0) };
|
|
5961
5961
|
};
|
|
5962
5962
|
class Ao extends An.Tween {
|
|
5963
5963
|
constructor() {
|
|
@@ -6077,16 +6077,16 @@ const Ui = (i, t, e) => {
|
|
|
6077
6077
|
})), a.asyncEndCallback && (yield a.asyncEndCallback());
|
|
6078
6078
|
const { from: h, to: d } = n(s);
|
|
6079
6079
|
return yield new Promise((f) => {
|
|
6080
|
-
const p = ({ progress:
|
|
6080
|
+
const p = ({ progress: y }) => {
|
|
6081
6081
|
const C = {};
|
|
6082
|
-
C.longitude = Li(h.longitude, d.longitude,
|
|
6082
|
+
C.longitude = Li(h.longitude, d.longitude, y), C.latitude = Li(h.latitude, d.latitude, y), C.fov = Li(h.fov, d.fov, y), i.setState(C, !0);
|
|
6083
6083
|
}, v = () => {
|
|
6084
6084
|
f(!0);
|
|
6085
6085
|
}, g = () => {
|
|
6086
6086
|
f(!1);
|
|
6087
|
-
}, A = s.rotateSpeed ? Math.ceil(Math.abs(d.longitude - h.longitude) / s.rotateSpeed * 1e3) : r,
|
|
6088
|
-
s.rotation === st.Loop &&
|
|
6089
|
-
|
|
6087
|
+
}, A = s.rotateSpeed ? Math.ceil(Math.abs(d.longitude - h.longitude) / s.rotateSpeed * 1e3) : r, w = bh(A, ui.Easing.Linear.None).onUpdate(p).onComplete(v).onDestroy(g);
|
|
6088
|
+
s.rotation === st.Loop && w.repeat(1 / 0).yoyo(!0), t.interruptCallback = (y = !0) => {
|
|
6089
|
+
w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), f(y);
|
|
6090
6090
|
}, t.timeoutId = setTimeout(() => {
|
|
6091
6091
|
t.interruptCallback && t.interruptCallback(!0);
|
|
6092
6092
|
}, r);
|
|
@@ -6260,8 +6260,8 @@ const Ch = `<style type="text/css">
|
|
|
6260
6260
|
<div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(g)}</div>
|
|
6261
6261
|
</div>
|
|
6262
6262
|
</div>
|
|
6263
|
-
`,
|
|
6264
|
-
return
|
|
6263
|
+
`, w = document.createElement("div");
|
|
6264
|
+
return w.setAttribute("class", "PanoRulerPlugin-rule"), w.setAttribute("data-name", v), w.setAttribute("style", "display: none"), w.innerHTML = A, w;
|
|
6265
6265
|
}, o = document.createElement("div");
|
|
6266
6266
|
o.setAttribute(
|
|
6267
6267
|
"style",
|
|
@@ -6272,11 +6272,11 @@ const Ch = `<style type="text/css">
|
|
|
6272
6272
|
const r = {}, a = (v, g) => {
|
|
6273
6273
|
if (e.loaded)
|
|
6274
6274
|
throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
|
|
6275
|
-
const A = Eh(v, i),
|
|
6276
|
-
if (!
|
|
6275
|
+
const A = Eh(v, i), w = i.work;
|
|
6276
|
+
if (!w)
|
|
6277
6277
|
return !1;
|
|
6278
|
-
for (const
|
|
6279
|
-
const C = g[
|
|
6278
|
+
for (const y in g) {
|
|
6279
|
+
const C = g[y], { standingPosition: x } = w.observers[0], I = C.map(({ x: S, z: k, observers: j }) => {
|
|
6280
6280
|
const N = j.length > 0 ? v.rooms[v.observers[j[0]]].name : "", H = A[N] ? A[N].floor : null;
|
|
6281
6281
|
let U = 1 / 0, V = {
|
|
6282
6282
|
index: 0,
|
|
@@ -6285,9 +6285,9 @@ const Ch = `<style type="text/css">
|
|
|
6285
6285
|
z: x.z
|
|
6286
6286
|
};
|
|
6287
6287
|
j.forEach((_) => {
|
|
6288
|
-
if (!
|
|
6288
|
+
if (!w.observers[_])
|
|
6289
6289
|
return;
|
|
6290
|
-
const { standingPosition: Y } =
|
|
6290
|
+
const { standingPosition: Y } = w.observers[_], de = {
|
|
6291
6291
|
index: _,
|
|
6292
6292
|
x: Y.x,
|
|
6293
6293
|
y: Y.y,
|
|
@@ -6300,54 +6300,54 @@ const Ch = `<style type="text/css">
|
|
|
6300
6300
|
const R = A[N] ? A[N].roof : null, G = R ? new $(S, R, k) : null;
|
|
6301
6301
|
return G && Object.assign(G, { observers: j }), { origin: B, vertical: G };
|
|
6302
6302
|
});
|
|
6303
|
-
r[
|
|
6303
|
+
r[y] = {
|
|
6304
6304
|
origins: I.map((S) => S.origin),
|
|
6305
6305
|
rules: []
|
|
6306
6306
|
};
|
|
6307
6307
|
for (const { origin: S, vertical: k } of I) {
|
|
6308
6308
|
if (!k)
|
|
6309
6309
|
continue;
|
|
6310
|
-
const j = n(
|
|
6311
|
-
o.append(j), r[
|
|
6310
|
+
const j = n(y, S.distanceTo(k));
|
|
6311
|
+
o.append(j), r[y].rules.push({ vertical: !0, rule: [S, k], $element: j });
|
|
6312
6312
|
}
|
|
6313
6313
|
for (let S = 0; S < I.length; S++) {
|
|
6314
6314
|
let k = S + 1;
|
|
6315
6315
|
k >= I.length && (k = 0);
|
|
6316
|
-
const { origin: j } = I[S], { origin: N } = I[k], H = n(
|
|
6317
|
-
o.append(H), r[
|
|
6316
|
+
const { origin: j } = I[S], { origin: N } = I[k], H = n(y, j.distanceTo(N));
|
|
6317
|
+
o.append(H), r[y].rules.push({ vertical: !1, rule: [j, N], $element: H });
|
|
6318
6318
|
}
|
|
6319
6319
|
}
|
|
6320
6320
|
return e.loaded = !0, !0;
|
|
6321
6321
|
}, l = (v, g, A) => W(void 0, null, function* () {
|
|
6322
|
-
const
|
|
6323
|
-
if (!
|
|
6322
|
+
const w = v || t.roomInfo, y = g || t.roomRules;
|
|
6323
|
+
if (!w || !y)
|
|
6324
6324
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
6325
|
-
return e.loaded = !1, e.options = O(O({}, e.options), A || {}), i.model.loaded ? a(
|
|
6326
|
-
(C) => i.once("modelLoaded", () => C(a(
|
|
6325
|
+
return e.loaded = !1, e.options = O(O({}, e.options), A || {}), i.model.loaded ? a(w, y) : yield new Promise(
|
|
6326
|
+
(C) => i.once("modelLoaded", () => C(a(w, y)))
|
|
6327
6327
|
);
|
|
6328
6328
|
});
|
|
6329
6329
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
6330
|
-
const c = (v, g, A,
|
|
6331
|
-
const
|
|
6330
|
+
const c = (v, g, A, w) => {
|
|
6331
|
+
const y = [
|
|
6332
6332
|
[
|
|
6333
6333
|
{ x: 0, y: 0 },
|
|
6334
6334
|
{ x: A, y: 0 }
|
|
6335
6335
|
],
|
|
6336
6336
|
[
|
|
6337
6337
|
{ x: 0, y: 0 },
|
|
6338
|
-
{ x: 0, y }
|
|
6338
|
+
{ x: 0, y: w }
|
|
6339
6339
|
],
|
|
6340
6340
|
[
|
|
6341
6341
|
{ x: A, y: 0 },
|
|
6342
|
-
{ x: A, y }
|
|
6342
|
+
{ x: A, y: w }
|
|
6343
6343
|
],
|
|
6344
6344
|
[
|
|
6345
|
-
{ x: 0, y },
|
|
6346
|
-
{ x: A, y }
|
|
6345
|
+
{ x: 0, y: w },
|
|
6346
|
+
{ x: A, y: w }
|
|
6347
6347
|
]
|
|
6348
6348
|
], C = [];
|
|
6349
|
-
for (let x = 0; x <
|
|
6350
|
-
const I = Na([v, g], [
|
|
6349
|
+
for (let x = 0; x < y.length; x++) {
|
|
6350
|
+
const I = Na([v, g], [y[x][0], y[x][1]], !0);
|
|
6351
6351
|
I && C.push(I);
|
|
6352
6352
|
}
|
|
6353
6353
|
return C.length === 0 ? !1 : C;
|
|
@@ -6356,20 +6356,20 @@ const Ch = `<style type="text/css">
|
|
|
6356
6356
|
const v = (j = i.getElement()) == null ? void 0 : j.parentElement;
|
|
6357
6357
|
if (!v || !e.loaded || Object.keys(r).length <= 0)
|
|
6358
6358
|
return;
|
|
6359
|
-
const { panoIndex: g, camera: A, currentMode:
|
|
6359
|
+
const { panoIndex: g, camera: A, currentMode: w } = i;
|
|
6360
6360
|
if (g === void 0)
|
|
6361
6361
|
return;
|
|
6362
|
-
let
|
|
6362
|
+
let y;
|
|
6363
6363
|
for (const N in r)
|
|
6364
|
-
N.split(",").indexOf(g.toString()) >= 0 && (
|
|
6365
|
-
if (!
|
|
6364
|
+
N.split(",").indexOf(g.toString()) >= 0 && (y = N);
|
|
6365
|
+
if (!y) {
|
|
6366
6366
|
for (const N in r)
|
|
6367
6367
|
for (const { $element: H } of r[N].rules)
|
|
6368
6368
|
H.style.display = "none";
|
|
6369
6369
|
return;
|
|
6370
6370
|
}
|
|
6371
6371
|
const C = A.position, x = A.getWorldDirection(new $()), I = v.clientWidth, S = v.clientHeight;
|
|
6372
|
-
if (
|
|
6372
|
+
if (w !== Ve.Mode.Panorama) {
|
|
6373
6373
|
for (const N in r)
|
|
6374
6374
|
for (const { $element: H } of r[N].rules)
|
|
6375
6375
|
H.style.display = "none";
|
|
@@ -6377,12 +6377,12 @@ const Ch = `<style type="text/css">
|
|
|
6377
6377
|
}
|
|
6378
6378
|
for (const N in r)
|
|
6379
6379
|
for (const { $element: H } of r[N].rules)
|
|
6380
|
-
H.style.display = N ===
|
|
6381
|
-
const [k] = r[
|
|
6380
|
+
H.style.display = N === y ? "block" : "none";
|
|
6381
|
+
const [k] = r[y].origins.slice().filter((N) => N.observers.indexOf(g) >= 0).sort((N, H) => {
|
|
6382
6382
|
const U = N.clone().setY(0).sub(C).normalize().angleTo(x.clone().setY(0)), V = H.clone().setY(0).sub(C).normalize().angleTo(x.clone().setY(0));
|
|
6383
6383
|
return U - V;
|
|
6384
6384
|
});
|
|
6385
|
-
for (const { rule: N, vertical: H, $element: U } of r[
|
|
6385
|
+
for (const { rule: N, vertical: H, $element: U } of r[y].rules) {
|
|
6386
6386
|
const [V, B] = N, R = U.querySelector(".PanoRulerPlugin-rule-line");
|
|
6387
6387
|
if (!R)
|
|
6388
6388
|
return;
|
|
@@ -6441,8 +6441,8 @@ const Ch = `<style type="text/css">
|
|
|
6441
6441
|
if (v.distanceText && v.distanceText !== e.options.distanceText) {
|
|
6442
6442
|
const g = v.distanceText;
|
|
6443
6443
|
e.options.distanceText = g, Object.values(r).forEach((A) => {
|
|
6444
|
-
A.rules.forEach((
|
|
6445
|
-
const [
|
|
6444
|
+
A.rules.forEach((w) => {
|
|
6445
|
+
const [y, C] = w.rule, x = y.distanceTo(C), I = w.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
6446
6446
|
!I || (I.innerText = g(x));
|
|
6447
6447
|
});
|
|
6448
6448
|
});
|
|
@@ -6651,9 +6651,9 @@ function Mh(i) {
|
|
|
6651
6651
|
};
|
|
6652
6652
|
}
|
|
6653
6653
|
function Th(i, t, e) {
|
|
6654
|
-
var v, g, A,
|
|
6654
|
+
var v, g, A, w;
|
|
6655
6655
|
let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
|
|
6656
|
-
const a = ((g = (v = n.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : g.clientWidth) || 0, l = ((
|
|
6656
|
+
const a = ((g = (v = n.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : g.clientWidth) || 0, l = ((w = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : w.clientHeight) || 0, c = (y, C) => {
|
|
6657
6657
|
const x = [
|
|
6658
6658
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
6659
6659
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
@@ -6661,12 +6661,12 @@ function Th(i, t, e) {
|
|
|
6661
6661
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
6662
6662
|
], I = [];
|
|
6663
6663
|
for (let S = 0; S < x.length; S++) {
|
|
6664
|
-
const k = Na([
|
|
6664
|
+
const k = Na([y, C], [x[S][0], x[S][1]], !0);
|
|
6665
6665
|
k && I.push(k);
|
|
6666
6666
|
}
|
|
6667
6667
|
return I.length === 0 ? !1 : I;
|
|
6668
|
-
}, u = (
|
|
6669
|
-
const x =
|
|
6668
|
+
}, u = (y, C) => {
|
|
6669
|
+
const x = y.clone().project(n.camera), I = (x.x + 1) / 2 * a, S = (-x.y + 1) / 2 * l, k = C.clone().project(n.camera), j = (k.x + 1) / 2 * a, N = (-k.y + 1) / 2 * l, H = Math.sqrt(Math.pow(j - I, 2) + Math.pow(N - S, 2));
|
|
6670
6670
|
return {
|
|
6671
6671
|
startLeft: I,
|
|
6672
6672
|
startTop: S,
|
|
@@ -6674,13 +6674,13 @@ function Th(i, t, e) {
|
|
|
6674
6674
|
endTop: N,
|
|
6675
6675
|
distance: H
|
|
6676
6676
|
};
|
|
6677
|
-
}, h = (
|
|
6678
|
-
const I = n.camera.position, S = n.camera.getWorldDirection(new $()), k =
|
|
6677
|
+
}, h = (y, C, x) => {
|
|
6678
|
+
const I = n.camera.position, S = n.camera.getWorldDirection(new $()), k = y.clone().sub(I).normalize().angleTo(S), j = C.clone().sub(I).normalize().angleTo(S), N = y.distanceTo(C), U = C.clone().sub(C.clone().sub(y).divide(new $(2, 2, 2))).distanceTo(I), { startLeft: V, startTop: B, endLeft: R, endTop: G, distance: F } = u(y, C), _ = -((Math.PI / 2 - Math.atan2(R - V, B - G)) / Math.PI) * 180;
|
|
6679
6679
|
let Y = !0;
|
|
6680
|
-
x || (Y = !1), !tt(
|
|
6680
|
+
x || (Y = !1), !tt(y, x) && !tt(C, x) && (Y = !1), N < 0.3 && (Y = !1), k > Math.PI / 2 && (Y = !1), j > Math.PI / 2 && (Y = !1), U / N > 8 && (Y = !1);
|
|
6681
6681
|
let de = 50, he = F;
|
|
6682
6682
|
const pe = c({ x: ~~V, y: ~~B }, { x: ~~R, y: ~~G });
|
|
6683
|
-
if (pe && pe.length === 1 && (tt(
|
|
6683
|
+
if (pe && pe.length === 1 && (tt(y, x) ? (he = Math.sqrt(Math.pow(pe[0].x - V, 2) + Math.pow(pe[0].y - B, 2)), de = he / F * 50) : tt(C, x) && (he = Math.sqrt(Math.pow(pe[0].x - R, 2) + Math.pow(pe[0].y - G, 2)), de = 100 - he / F * 50)), pe && pe.length === 2) {
|
|
6684
6684
|
const Pe = {
|
|
6685
6685
|
x: (pe[0].x + pe[1].x) / 2,
|
|
6686
6686
|
y: (pe[0].y + pe[1].y) / 2
|
|
@@ -6697,7 +6697,7 @@ function Th(i, t, e) {
|
|
|
6697
6697
|
ruleLength: N
|
|
6698
6698
|
};
|
|
6699
6699
|
}, d = () => {
|
|
6700
|
-
const
|
|
6700
|
+
const y = n.panoIndex, C = o.find((H) => H.panoIndex === y);
|
|
6701
6701
|
if (!C)
|
|
6702
6702
|
return e(0, r = []);
|
|
6703
6703
|
if (n.currentMode !== Ve.Mode.Panorama)
|
|
@@ -6729,8 +6729,8 @@ function Th(i, t, e) {
|
|
|
6729
6729
|
d(), n.on("panoArrived", d), n.on("modeChange", d), n.on("cameraDirectionUpdate", f), n.on("movingToPano", f), n.on("mouseWheel", () => p()), n.on("pinchGesture", () => p());
|
|
6730
6730
|
}), It(() => {
|
|
6731
6731
|
n.off("panoArrived", d), n.off("modeChange", d), n.off("cameraDirectionUpdate", f), n.off("movingToPano", f), n.off("mouseWheel", () => p()), n.off("pinchGesture", () => p());
|
|
6732
|
-
}), i.$$set = (
|
|
6733
|
-
"five" in
|
|
6732
|
+
}), i.$$set = (y) => {
|
|
6733
|
+
"five" in y && e(1, n = y.five), "rulerDatas" in y && e(2, o = y.rulerDatas), "options" in y && e(3, s = y.options);
|
|
6734
6734
|
}, [r, n, o, s];
|
|
6735
6735
|
}
|
|
6736
6736
|
class zh extends se {
|
|
@@ -7370,10 +7370,10 @@ function nf(i) {
|
|
|
7370
7370
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7371
7371
|
return;
|
|
7372
7372
|
}
|
|
7373
|
-
const
|
|
7374
|
-
if (!
|
|
7373
|
+
const w = A.getElement();
|
|
7374
|
+
if (!w)
|
|
7375
7375
|
return;
|
|
7376
|
-
const
|
|
7376
|
+
const y = w.clientWidth, C = w.clientHeight, x = y / 2, I = C / 2;
|
|
7377
7377
|
if (e.points.length < 2)
|
|
7378
7378
|
return;
|
|
7379
7379
|
const [S, k] = e.points, j = S.position.clone().project(A.camera), N = k.position.clone().project(A.camera), H = j.clone().lerp(N, 0.5), U = new Ne(j.x * x, j.y * I), V = new Ne(N.x * x, N.y * I), B = U.distanceTo(V);
|
|
@@ -7381,7 +7381,7 @@ function nf(i) {
|
|
|
7381
7381
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7382
7382
|
return;
|
|
7383
7383
|
}
|
|
7384
|
-
const G = (H.x + 1) / 2 *
|
|
7384
|
+
const G = (H.x + 1) / 2 * y, F = -(H.y - 1) / 2 * C, _ = -(Math.atan((U.y - V.y) / (U.x - V.x)) * 180) / Math.PI, Y = s.parentElement && o.clientWidth > B ? -20 : 0;
|
|
7385
7385
|
s.style.transform = `translate(${G}px, ${F}px) rotate(${_}deg) translateY(${Y}px)`, s.style.opacity = "1", s.style.pointerEvents = t ? "all" : "none", r && r.update({ line: e, polyline: e.getPolyline() });
|
|
7386
7386
|
const de = v();
|
|
7387
7387
|
o.innerText = de;
|
|
@@ -7396,8 +7396,8 @@ function nf(i) {
|
|
|
7396
7396
|
var S, k, j;
|
|
7397
7397
|
if (e.points.length < 2)
|
|
7398
7398
|
return "";
|
|
7399
|
-
const [A,
|
|
7400
|
-
return I != null ? I :
|
|
7399
|
+
const [A, w] = e.points, y = A.position.clone().distanceTo(w.position), C = (S = i.line.text) != null ? S : i.line.model.config.defaultText, x = (j = (k = i.line.model.config) == null ? void 0 : k.getDistanceText) == null ? void 0 : j.call(k, y), I = C != null ? C : x;
|
|
7400
|
+
return I != null ? I : y.toFixed(2) + "m";
|
|
7401
7401
|
}
|
|
7402
7402
|
function g(A) {
|
|
7403
7403
|
t = A;
|
|
@@ -7868,8 +7868,8 @@ class xs extends Ai {
|
|
|
7868
7868
|
const [p, v] = f.points, g = p.position.clone().project(o), A = v.position.clone().project(o);
|
|
7869
7869
|
if (!At(g) && !At(A))
|
|
7870
7870
|
return null;
|
|
7871
|
-
const
|
|
7872
|
-
return { id: f.id, points: [
|
|
7871
|
+
const w = new Ne(g.x * r, g.y * a), y = new Ne(A.x * r, A.y * a);
|
|
7872
|
+
return { id: f.id, points: [w, y] };
|
|
7873
7873
|
}).filter((f) => !!f);
|
|
7874
7874
|
if (c.length === 0)
|
|
7875
7875
|
return;
|
|
@@ -8025,8 +8025,8 @@ void main() {
|
|
|
8025
8025
|
}
|
|
8026
8026
|
`;
|
|
8027
8027
|
function qa(i) {
|
|
8028
|
-
var A,
|
|
8029
|
-
const t = (A = i.isMobile) != null ? A : !0, e = (
|
|
8028
|
+
var A, w;
|
|
8029
|
+
const t = (A = i.isMobile) != null ? A : !0, e = (w = i.useNormalVector) != null ? w : !0;
|
|
8030
8030
|
let n = 10349931;
|
|
8031
8031
|
e && i.ballColor >= 0 && (n = i.ballColor);
|
|
8032
8032
|
const o = new vn(), s = new Xl(0.3, 0.3), r = t ? mf : pf, a = new la().load(r);
|
|
@@ -8182,8 +8182,8 @@ class rn extends Ai {
|
|
|
8182
8182
|
const [p, v] = f.points, g = p.position.clone().project(o), A = v.position.clone().project(o);
|
|
8183
8183
|
if (!At(g) && !At(A))
|
|
8184
8184
|
return null;
|
|
8185
|
-
const
|
|
8186
|
-
return { id: f.id, points: [
|
|
8185
|
+
const w = new Ne(g.x * r, g.y * a), y = new Ne(A.x * r, A.y * a);
|
|
8186
|
+
return { id: f.id, points: [w, y] };
|
|
8187
8187
|
}).filter((f) => !!f);
|
|
8188
8188
|
if (c.length === 0)
|
|
8189
8189
|
return;
|
|
@@ -9029,13 +9029,13 @@ function Ff(i) {
|
|
|
9029
9029
|
};
|
|
9030
9030
|
}
|
|
9031
9031
|
function Gf(i, t, e) {
|
|
9032
|
-
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: h } = t, { events: d } = t, { hooks: f } = t, p = 0, v = 0, g, A,
|
|
9032
|
+
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: h } = t, { events: d } = t, { hooks: f } = t, p = 0, v = 0, g, A, w = setTimeout(
|
|
9033
9033
|
() => {
|
|
9034
|
-
u || e(10, A = !0),
|
|
9034
|
+
u || e(10, A = !0), w = void 0;
|
|
9035
9035
|
},
|
|
9036
9036
|
100
|
|
9037
9037
|
);
|
|
9038
|
-
const
|
|
9038
|
+
const y = (I) => {
|
|
9039
9039
|
const S = Object.keys(d);
|
|
9040
9040
|
let k = I.target;
|
|
9041
9041
|
for (; k; ) {
|
|
@@ -9060,15 +9060,15 @@ function Gf(i, t, e) {
|
|
|
9060
9060
|
if (I === null)
|
|
9061
9061
|
return;
|
|
9062
9062
|
const [S, k] = I.split("-PanoSpatialTagPlugin-");
|
|
9063
|
-
n === S && (f.emit("clickOrigin", { id: n, show: A }),
|
|
9063
|
+
n === S && (f.emit("clickOrigin", { id: n, show: A }), w || (e(10, A = u), e(12, u = !u), w = setTimeout(
|
|
9064
9064
|
() => {
|
|
9065
|
-
|
|
9065
|
+
w = void 0;
|
|
9066
9066
|
},
|
|
9067
9067
|
1500
|
|
9068
9068
|
)));
|
|
9069
9069
|
});
|
|
9070
9070
|
Hc(() => {
|
|
9071
|
-
e(7, p = g.offsetWidth), e(8, v = g.offsetHeight), !
|
|
9071
|
+
e(7, p = g.offsetWidth), e(8, v = g.offsetHeight), !w && e(10, A = !u);
|
|
9072
9072
|
}), It(() => {
|
|
9073
9073
|
f.emit("destroyTag", { id: n }), C(), h();
|
|
9074
9074
|
});
|
|
@@ -9091,7 +9091,7 @@ function Gf(i, t, e) {
|
|
|
9091
9091
|
v,
|
|
9092
9092
|
g,
|
|
9093
9093
|
A,
|
|
9094
|
-
|
|
9094
|
+
y,
|
|
9095
9095
|
u,
|
|
9096
9096
|
h,
|
|
9097
9097
|
d,
|
|
@@ -9288,9 +9288,9 @@ const Mi = 1e-3, Vs = 0.01, Jf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9288
9288
|
props: { origins: v.origins }
|
|
9289
9289
|
}), A = (ce, be) => {
|
|
9290
9290
|
x(), be && I();
|
|
9291
|
-
},
|
|
9291
|
+
}, w = () => {
|
|
9292
9292
|
v.forbidden && (v.forbidden = !1, I());
|
|
9293
|
-
},
|
|
9293
|
+
}, y = (ce, be) => {
|
|
9294
9294
|
if (v.tags.length === 0)
|
|
9295
9295
|
return;
|
|
9296
9296
|
const Ce = be.longitude - i.state.longitude, ue = i.camera.clone();
|
|
@@ -9482,11 +9482,11 @@ const Mi = 1e-3, Vs = 0.01, Jf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9482
9482
|
}, G = () => {
|
|
9483
9483
|
i.once("renderFrame", x);
|
|
9484
9484
|
}, F = () => {
|
|
9485
|
-
e || (e = i.getElement().parentElement), e && e.appendChild(d), v.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, I(), i.on("panoWillArrive",
|
|
9485
|
+
e || (e = i.getElement().parentElement), e && e.appendChild(d), v.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, I(), i.on("panoWillArrive", y), i.on("panoArrived", w), i.on("modeChange", C), i.on("cameraUpdate", A);
|
|
9486
9486
|
}, ee = () => {
|
|
9487
9487
|
p = null, h.disposeAll(), g.$destroy(), v.tags.forEach((ce) => {
|
|
9488
9488
|
ce.app.$destroy(), ce = null;
|
|
9489
|
-
}), v.origins = [], v.tags = [], i.off("modelLoaded", F), i.off("renderFrame", x), i.off("panoWillArrive",
|
|
9489
|
+
}), v.origins = [], v.tags = [], i.off("modelLoaded", F), i.off("renderFrame", x), i.off("panoWillArrive", y), i.off("panoArrived", w), i.off("modeChange", C), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", G, !1);
|
|
9490
9490
|
};
|
|
9491
9491
|
return window.addEventListener("resize", G, !1), (Be = i == null ? void 0 : i.model) != null && Be.loaded ? F() : i.once("modelLoaded", F), i.on("dispose", ee), {
|
|
9492
9492
|
load: k,
|
|
@@ -9529,7 +9529,7 @@ function qf(i) {
|
|
|
9529
9529
|
function Kf(i, t, e) {
|
|
9530
9530
|
let { itemLabel: n } = t, { hooks: o } = t;
|
|
9531
9531
|
function s() {
|
|
9532
|
-
|
|
9532
|
+
o.emit("onLabelClick", n);
|
|
9533
9533
|
}
|
|
9534
9534
|
return i.$$set = (r) => {
|
|
9535
9535
|
"itemLabel" in r && e(0, n = r.itemLabel), "hooks" in r && e(2, o = r.hooks);
|
|
@@ -9642,7 +9642,7 @@ function im(i, t, e) {
|
|
|
9642
9642
|
}, A = (V, B) => {
|
|
9643
9643
|
const R = new o(B.modelPosition[0], B.modelPosition[1], B.modelPosition[2]), G = V.project2d(R), F = G == null ? void 0 : G.x, ee = G == null ? void 0 : G.y;
|
|
9644
9644
|
return [F, ee];
|
|
9645
|
-
},
|
|
9645
|
+
}, w = (V) => `translate(${V[0]}px, ${V[1]}px)`, y = (V, B) => p.length === 0 ? !1 : !!p.find((G) => V[0] >= G[0] - B && V[0] <= G[0] + B || V[1] >= G[1] - Os && V[1] <= G[1] + Os);
|
|
9646
9646
|
function C(V, B) {
|
|
9647
9647
|
switch (B) {
|
|
9648
9648
|
case Ft.SMALL:
|
|
@@ -9657,11 +9657,11 @@ function im(i, t, e) {
|
|
|
9657
9657
|
}
|
|
9658
9658
|
const x = (V, B) => {
|
|
9659
9659
|
const R = B.map((F) => {
|
|
9660
|
-
const ee = A(V, F), _ = F.name.length * nm, Y = C(F.modelPosition[1], c), he = (r ? g(V, F) : !0) && !
|
|
9660
|
+
const ee = A(V, F), _ = F.name.length * nm, Y = C(F.modelPosition[1], c), he = (r ? g(V, F) : !0) && !y([ee[0], ee[1] + Y], _);
|
|
9661
9661
|
if (!he)
|
|
9662
9662
|
return me(O({}, F), { visible: he });
|
|
9663
9663
|
p.push(ee);
|
|
9664
|
-
const pe =
|
|
9664
|
+
const pe = w(ee);
|
|
9665
9665
|
return me(O({}, F), {
|
|
9666
9666
|
visible: he,
|
|
9667
9667
|
transform: pe,
|
|
@@ -9849,17 +9849,17 @@ const Rb = (i, { videoElement: t }) => {
|
|
|
9849
9849
|
}, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
|
|
9850
9850
|
if (e.enabled || !e.videoTexture)
|
|
9851
9851
|
return;
|
|
9852
|
-
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((
|
|
9852
|
+
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((w) => i.scene.add(w));
|
|
9853
9853
|
const A = () => {
|
|
9854
9854
|
if (!e.videoTexture)
|
|
9855
9855
|
return;
|
|
9856
|
-
const
|
|
9857
|
-
var
|
|
9858
|
-
!e.videoTexture || ((
|
|
9856
|
+
const w = () => {
|
|
9857
|
+
var y;
|
|
9858
|
+
!e.videoTexture || ((y = e.videoTexture) == null || y.image.removeEventListener("timeupdate", w), e.videoTextureEnabled = !0, e.videoMeshes.forEach((C) => {
|
|
9859
9859
|
C.material.map !== e.videoTexture && (C.material.map = e.videoTexture);
|
|
9860
9860
|
}), i.needsRender = !0);
|
|
9861
9861
|
};
|
|
9862
|
-
e.videoTexture.image.addEventListener("timeupdate",
|
|
9862
|
+
e.videoTexture.image.addEventListener("timeupdate", w), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
9863
9863
|
n.hide();
|
|
9864
9864
|
}, e.videoTexture.image.onpause = () => {
|
|
9865
9865
|
n.show();
|
|
@@ -9875,8 +9875,8 @@ const Rb = (i, { videoElement: t }) => {
|
|
|
9875
9875
|
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((A) => {
|
|
9876
9876
|
A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
|
|
9877
9877
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
9878
|
-
}, c = () => e.rectPoints.map((A,
|
|
9879
|
-
const
|
|
9878
|
+
}, c = () => e.rectPoints.map((A, w) => {
|
|
9879
|
+
const y = new E.BufferGeometry(), C = 128, x = [];
|
|
9880
9880
|
x.push(...A[0].toArray());
|
|
9881
9881
|
for (let V = 1; V < C; V++)
|
|
9882
9882
|
x.push(
|
|
@@ -9903,14 +9903,14 @@ const Rb = (i, { videoElement: t }) => {
|
|
|
9903
9903
|
const S = [];
|
|
9904
9904
|
for (let V = 0; V < C; V++)
|
|
9905
9905
|
S.push(V, V + 1, C * 2 - V, V, C * 2 - V, C * 2 + 1 - V);
|
|
9906
|
-
|
|
9906
|
+
y.setAttribute("position", new E.BufferAttribute(new Float32Array(x), 3)), y.setAttribute("uv", new E.BufferAttribute(new Float32Array(I), 2)), y.setIndex(new E.BufferAttribute(new Uint32Array(S), 1));
|
|
9907
9907
|
const k = new E.AxesHelper(10);
|
|
9908
9908
|
i.scene.add(k);
|
|
9909
9909
|
const j = new E.MeshBasicMaterial({
|
|
9910
9910
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
9911
9911
|
side: E.DoubleSide
|
|
9912
|
-
}), N = new E.Mesh(
|
|
9913
|
-
N.renderOrder = 1, N.name = `ModelTVVideoPlugin-${
|
|
9912
|
+
}), N = new E.Mesh(y, j);
|
|
9913
|
+
N.renderOrder = 1, N.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
|
|
9914
9914
|
const H = [A[1], A[2], A[3], A[0]], U = n.create3DDomContainer(H);
|
|
9915
9915
|
if (U != null && U.container) {
|
|
9916
9916
|
const V = document.createElement("div");
|
|
@@ -9922,28 +9922,28 @@ const Rb = (i, { videoElement: t }) => {
|
|
|
9922
9922
|
}
|
|
9923
9923
|
return N;
|
|
9924
9924
|
}), u = (A) => {
|
|
9925
|
-
const
|
|
9926
|
-
return
|
|
9927
|
-
}, h = (A,
|
|
9925
|
+
const w = new E.TextureLoader().load(A);
|
|
9926
|
+
return w.minFilter = E.LinearFilter, w.magFilter = E.LinearFilter, w.format = E.RGBFormat, w;
|
|
9927
|
+
}, h = (A, w) => new Promise((y, C) => {
|
|
9928
9928
|
const x = new XMLHttpRequest();
|
|
9929
9929
|
x.onreadystatechange = () => {
|
|
9930
9930
|
if (x.readyState == 4)
|
|
9931
9931
|
if (x.status == 200) {
|
|
9932
9932
|
const I = window.URL || window.webkitURL;
|
|
9933
|
-
|
|
9934
|
-
const S = new E.VideoTexture(
|
|
9935
|
-
S.minFilter = E.LinearFilter, S.magFilter = E.LinearFilter, S.format = E.RGBFormat,
|
|
9933
|
+
w = w || document.createElement("video"), w.crossOrigin = "anonymous", w.muted = !0, w.loop = !0, w.playsInline = !0, w.src = I.createObjectURL(x.response);
|
|
9934
|
+
const S = new E.VideoTexture(w);
|
|
9935
|
+
S.minFilter = E.LinearFilter, S.magFilter = E.LinearFilter, S.format = E.RGBFormat, y(Object.assign(S, { videoSource: A }));
|
|
9936
9936
|
} else
|
|
9937
9937
|
C(new Error("Video download Error: " + x.status));
|
|
9938
9938
|
}, x.onerror = (I) => C(I), x.open("GET", A), x.responseType = "blob", x.send();
|
|
9939
|
-
}), d = (A,
|
|
9940
|
-
const { video_src:
|
|
9941
|
-
e.videoSource =
|
|
9939
|
+
}), d = (A, w) => W(void 0, null, function* () {
|
|
9940
|
+
const { video_src: y, video_poster_src: C, points: x } = A;
|
|
9941
|
+
e.videoSource = y, e.rectPoints = rm(x).map((I) => I.map(({ x: S, y: k, z: j }) => new E.Vector3(S, k, j))), e.imageTexture = u(C), w && (e.videoElement = w), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
9942
9942
|
}), f = (A) => {
|
|
9943
9943
|
if (!e.enabled)
|
|
9944
9944
|
return;
|
|
9945
|
-
const
|
|
9946
|
-
if (!(!
|
|
9945
|
+
const w = e.videoMeshes;
|
|
9946
|
+
if (!(!w || A.intersectObjects(w).length === 0))
|
|
9947
9947
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
9948
9948
|
}, p = (A) => {
|
|
9949
9949
|
A === "Floorplan" ? n.hide() : n.show();
|
|
@@ -9951,18 +9951,18 @@ const Rb = (i, { videoElement: t }) => {
|
|
|
9951
9951
|
if (!e.enabled)
|
|
9952
9952
|
return;
|
|
9953
9953
|
const A = i.camera.position;
|
|
9954
|
-
if (o.forEach((
|
|
9955
|
-
const C =
|
|
9956
|
-
S && S.distance + j < k ?
|
|
9954
|
+
if (o.forEach((w, y) => {
|
|
9955
|
+
const C = w.css3DObject.position.clone(), x = C.clone().sub(A).normalize(), I = new E.Raycaster(A, x), S = i.model.intersectRaycaster(I)[0], k = C.distanceTo(A), j = 0.01;
|
|
9956
|
+
S && S.distance + j < k ? w.hide() : w.show();
|
|
9957
9957
|
}), !r()) {
|
|
9958
|
-
const
|
|
9959
|
-
const C =
|
|
9960
|
-
return
|
|
9958
|
+
const w = e.rectPoints.find((y) => {
|
|
9959
|
+
const C = y[0].clone().add(y[1]).add(y[2]).add(y[3]).divideScalar(4);
|
|
9960
|
+
return y.map((x) => x.clone().add(C).divideScalar(2)).filter((x) => {
|
|
9961
9961
|
const I = x.distanceTo(A), S = new E.Raycaster(A, x.clone().sub(A).normalize()), k = i.model.intersectRaycaster(S)[0], j = 0.01;
|
|
9962
9962
|
return !(k && k.distance + j < I);
|
|
9963
9963
|
}).length >= 2;
|
|
9964
9964
|
});
|
|
9965
|
-
(!
|
|
9965
|
+
(!w || w.length === 0) && s(!0);
|
|
9966
9966
|
}
|
|
9967
9967
|
}, g = () => {
|
|
9968
9968
|
l(), e.videoTexture = void 0, i.off("modeChange", p), i.off("wantsTapGesture", f), i.off("panoArrived", v), i.off("renderFrame", () => {
|
|
@@ -10244,10 +10244,10 @@ let vm = 11;
|
|
|
10244
10244
|
function bm(i, t, e) {
|
|
10245
10245
|
const { Raycaster: n, Vector3: o } = E;
|
|
10246
10246
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, f = (s == null ? void 0 : s.currentMode) === Ve.Mode.Panorama, p, v, g = [], A = !0;
|
|
10247
|
-
const
|
|
10247
|
+
const w = (R, G) => {
|
|
10248
10248
|
const F = R.camera.position.clone(), ee = new o(G.modelPosition[0], G.modelPosition[1], G.modelPosition[2]), _ = ee.distanceTo(F);
|
|
10249
10249
|
return u !== void 0 && R.state.mode === Ve.Mode.Panorama && _ > u ? !1 : Fs(R, ee.clone().sub(F).normalize(), F, _);
|
|
10250
|
-
},
|
|
10250
|
+
}, y = (R) => {
|
|
10251
10251
|
const { camera: G, model: F } = s, { x: ee, y: _, z: Y } = R.clone().project(G), de = (ee + 1) / 2, he = (2 - (_ + 1)) / 2, xe = Math.abs(Y) < 1 && [de, he].every((Be) => Be < 1 && Be >= 0);
|
|
10252
10252
|
return Boolean(xe);
|
|
10253
10253
|
}, C = (R, G) => {
|
|
@@ -10259,7 +10259,7 @@ function bm(i, t, e) {
|
|
|
10259
10259
|
return me(O({}, _), { visible: !1 });
|
|
10260
10260
|
const Y = C(R, _);
|
|
10261
10261
|
_.name.length * vm;
|
|
10262
|
-
const de = mm(_.modelPosition[1], c), he = R.currentMode === Ve.Mode.Panorama ?
|
|
10262
|
+
const de = mm(_.modelPosition[1], c), he = R.currentMode === Ve.Mode.Panorama ? y(new o(_.position[0], _.position[1], _.position[2])) : !0, pe = r ? w(R, _) : !1, Pe = he && !pe;
|
|
10263
10263
|
if (!Pe)
|
|
10264
10264
|
return me(O({}, _), { visible: Pe });
|
|
10265
10265
|
g.push(Y);
|
|
@@ -10525,25 +10525,23 @@ function Im(i) {
|
|
|
10525
10525
|
};
|
|
10526
10526
|
}
|
|
10527
10527
|
function km(i, t, e) {
|
|
10528
|
-
let { props: n } = t, { onClick: o } = t, s, { left: r, top: a, inSight: l, transform: c, panoIndex: u, cameraToward: h, name: d } = n
|
|
10529
|
-
const
|
|
10528
|
+
let { props: n } = t, { onClick: o } = t, s, { left: r, top: a, inSight: l, transform: c, panoIndex: u, cameraToward: h, name: d } = n;
|
|
10529
|
+
const f = () => {
|
|
10530
10530
|
if (!r || !a || !l || !s)
|
|
10531
10531
|
return;
|
|
10532
|
-
const
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
u !== f && (console.log("panoDoorLabelPlugin", u, "\u89E6\u53D1\u57CB\u70B9"), f = u);
|
|
10536
|
-
}, v = (A) => {
|
|
10532
|
+
const g = s.current.clientWidth / window.innerWidth * 100, A = s.current.clientHeight / window.innerHeight * 100;
|
|
10533
|
+
r <= g / 2 || r >= 100 - g / 2 || a <= A / 2 || a >= 100 - A / 2;
|
|
10534
|
+
}, p = (g) => {
|
|
10537
10535
|
o && o();
|
|
10538
10536
|
};
|
|
10539
|
-
function g
|
|
10540
|
-
ze[
|
|
10541
|
-
s =
|
|
10537
|
+
function v(g) {
|
|
10538
|
+
ze[g ? "unshift" : "push"](() => {
|
|
10539
|
+
s = g, e(2, s);
|
|
10542
10540
|
});
|
|
10543
10541
|
}
|
|
10544
|
-
return i.$$set = (
|
|
10545
|
-
"props" in
|
|
10546
|
-
},
|
|
10542
|
+
return i.$$set = (g) => {
|
|
10543
|
+
"props" in g && e(0, n = g.props), "onClick" in g && e(1, o = g.onClick);
|
|
10544
|
+
}, f(), [
|
|
10547
10545
|
n,
|
|
10548
10546
|
o,
|
|
10549
10547
|
s,
|
|
@@ -10553,8 +10551,8 @@ function km(i, t, e) {
|
|
|
10553
10551
|
c,
|
|
10554
10552
|
h,
|
|
10555
10553
|
d,
|
|
10556
|
-
|
|
10557
|
-
|
|
10554
|
+
p,
|
|
10555
|
+
v
|
|
10558
10556
|
];
|
|
10559
10557
|
}
|
|
10560
10558
|
class xm extends se {
|
|
@@ -10644,7 +10642,7 @@ class zm extends Pm {
|
|
|
10644
10642
|
}), this.fixDoorPosition();
|
|
10645
10643
|
});
|
|
10646
10644
|
m(this, "fixDoorPosition", () => {
|
|
10647
|
-
var u, h, d, f, p, v, g, A,
|
|
10645
|
+
var u, h, d, f, p, v, g, A, w, y, C, x;
|
|
10648
10646
|
const { panoIndex: e, camera: n } = this.five;
|
|
10649
10647
|
if (e === null)
|
|
10650
10648
|
return;
|
|
@@ -10672,8 +10670,8 @@ class zm extends Pm {
|
|
|
10672
10670
|
}, F = {
|
|
10673
10671
|
left: s * U / 100,
|
|
10674
10672
|
top: r * V / 100,
|
|
10675
|
-
width: (
|
|
10676
|
-
height: (x = (C = (
|
|
10673
|
+
width: (w = (A = (g = R.children) == null ? void 0 : g[0]) == null ? void 0 : A.clientWidth) != null ? w : 0,
|
|
10674
|
+
height: (x = (C = (y = R.children) == null ? void 0 : y[0]) == null ? void 0 : C.clientHeight) != null ? x : 0
|
|
10677
10675
|
};
|
|
10678
10676
|
Dm(G, F) && (I++, c[k].transform = `translate(-50%, ${(I - 1) * 100 - 50}%)`, c[H].transform = `translate(-50%, ${I * 100 - 50}%)`);
|
|
10679
10677
|
}
|
|
@@ -10716,8 +10714,8 @@ class zm extends Pm {
|
|
|
10716
10714
|
x: g.x,
|
|
10717
10715
|
y: g.y,
|
|
10718
10716
|
z: g.z
|
|
10719
|
-
},
|
|
10720
|
-
|
|
10717
|
+
}, w = Sm(h, A);
|
|
10718
|
+
w < d && (d = w, f = A);
|
|
10721
10719
|
}), f && (h.y = f.y + 0.01);
|
|
10722
10720
|
const p = new $(h.x, h.y, h.z);
|
|
10723
10721
|
p.add(new $(-0.2, 1.8, 0).applyEuler(new Lo(0, u.rad, 0))), this.doorLabels.push({
|
|
@@ -10793,12 +10791,12 @@ function Rm(i, t) {
|
|
|
10793
10791
|
const k = I.distanceTo(p);
|
|
10794
10792
|
k < A && (g = S, A = k);
|
|
10795
10793
|
});
|
|
10796
|
-
const
|
|
10794
|
+
const w = u[g + 1], y = w == null ? void 0 : w.distanceTo(p), C = u[g - 1], x = C == null ? void 0 : C.distanceTo(p);
|
|
10797
10795
|
if (g > d && g - d > 1) {
|
|
10798
10796
|
let I = g;
|
|
10799
10797
|
C !== void 0 && x > 0.8 && (I = g + 1), C !== void 0 && x > 0.2 && x < 0.3 ? I = g : A > 0.2 && A < 0.3 && (I = g + 1);
|
|
10800
10798
|
let S = d;
|
|
10801
|
-
if (
|
|
10799
|
+
if (w !== void 0 && y > 0.2 && y < 0.3 ? S = d + 1 : A > 0.2 && A < 0.3 && (S = d), u[S] && u[S + 1]) {
|
|
10802
10800
|
const N = f[v - 1];
|
|
10803
10801
|
if (N)
|
|
10804
10802
|
if (N.equals(u[S]))
|
|
@@ -10821,13 +10819,13 @@ function Rm(i, t) {
|
|
|
10821
10819
|
}
|
|
10822
10820
|
function Xs(i, t, e) {
|
|
10823
10821
|
const n = t / 2, o = e / t, s = i.length, r = nc(i.map((A) => [A.x, A.z])), l = (i.length - 1) * Bm * jm, c = 2 * s, u = c * Vm, h = c * Qm, d = new Uint32Array(l), f = new Float32Array(u), p = new Float32Array(h);
|
|
10824
|
-
i.forEach((A,
|
|
10822
|
+
i.forEach((A, w) => {
|
|
10825
10823
|
});
|
|
10826
10824
|
let v = 0;
|
|
10827
10825
|
for (let A = 0; A < i.length; A++) {
|
|
10828
|
-
const [
|
|
10826
|
+
const [w, y] = r[A][0], C = i[A], { x, y: I, z: S } = C, k = new $(x + w * n, I + 0.05, S + y * n);
|
|
10829
10827
|
f[A * 6 + 0] = k.x, f[A * 6 + 1] = k.y, f[A * 6 + 2] = k.z;
|
|
10830
|
-
const j = new $(x -
|
|
10828
|
+
const j = new $(x - w * n, I + 0.05, S - y * n);
|
|
10831
10829
|
f[A * 6 + 3] = j.x, f[A * 6 + 4] = j.y, f[A * 6 + 5] = j.z, v += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
|
|
10832
10830
|
const N = v / t / o;
|
|
10833
10831
|
p[A * 4 + 0] = 0, p[A * 4 + 1] = N, p[A * 4 + 2] = 1, p[A * 4 + 3] = N, A !== i.length - 1 && (d[A * 6 + 0] = A * 2 + 0, d[A * 6 + 1] = A * 2 + 2, d[A * 6 + 2] = A * 2 + 1, d[A * 6 + 3] = A * 2 + 2, d[A * 6 + 4] = A * 2 + 3, d[A * 6 + 5] = A * 2 + 1);
|
|
@@ -11056,16 +11054,16 @@ class cl extends jt {
|
|
|
11056
11054
|
var A;
|
|
11057
11055
|
return v.data.panoIndex !== ((A = c[g - 1]) == null ? void 0 : A.data.panoIndex);
|
|
11058
11056
|
}).map((v) => v.data.panoIndex).forEach((v) => {
|
|
11059
|
-
var A,
|
|
11057
|
+
var A, w;
|
|
11060
11058
|
const g = (A = this.five.work.observers[v]) == null ? void 0 : A.floorIndex;
|
|
11061
11059
|
if (g !== void 0)
|
|
11062
11060
|
if (l === g) {
|
|
11063
|
-
const
|
|
11064
|
-
a[
|
|
11061
|
+
const y = a.length - 1;
|
|
11062
|
+
a[y] = [...(w = a[y]) != null ? w : [], v];
|
|
11065
11063
|
} else {
|
|
11066
11064
|
l = g;
|
|
11067
|
-
const
|
|
11068
|
-
a[
|
|
11065
|
+
const y = a.length;
|
|
11066
|
+
a[y] = [v];
|
|
11069
11067
|
}
|
|
11070
11068
|
}), this.GuideLine || (this.GuideLine = Fm(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: a.map((v) => ({ panoIndexList: v })), config: r.guildPluginOptions }), 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.info(`${vi} loaded`, r), this.hooks.emit("dataLoaded", r);
|
|
11071
11069
|
});
|
|
@@ -11132,12 +11130,12 @@ class cl extends jt {
|
|
|
11132
11130
|
const { moveEffect: r, moveToFirstPanoEffect: a, moveToFirstPanoDuration: l } = o;
|
|
11133
11131
|
return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, o.panoIndexList.forEach((c, u) => {
|
|
11134
11132
|
const h = (() => {
|
|
11135
|
-
var g, A,
|
|
11133
|
+
var g, A, w, y;
|
|
11136
11134
|
const d = o.panoIndexList.slice(u).find((C) => C !== c);
|
|
11137
11135
|
if (d === void 0)
|
|
11138
11136
|
return;
|
|
11139
11137
|
const f = (g = n[c]) == null ? void 0 : g.position, p = (A = n[d]) == null ? void 0 : A.position;
|
|
11140
|
-
if (!p || !f || ((
|
|
11138
|
+
if (!p || !f || ((w = n[c]) == null ? void 0 : w.floorIndex) !== ((y = n[d]) == null ? void 0 : y.floorIndex))
|
|
11141
11139
|
return;
|
|
11142
11140
|
const v = new E.Vector3().subVectors(p, f);
|
|
11143
11141
|
return _m(v);
|
|
@@ -11932,7 +11930,7 @@ function Ap(i, t, e) {
|
|
|
11932
11930
|
}
|
|
11933
11931
|
clearTimeout(d), d = setTimeout(g, x ? o : s);
|
|
11934
11932
|
}
|
|
11935
|
-
function
|
|
11933
|
+
function w(x) {
|
|
11936
11934
|
const I = function() {
|
|
11937
11935
|
const S = dp((k) => x[k].getBoundingClientRect().x, [Math.min(x.length - 1, 10), Math.min(x.length - 1, 30)]);
|
|
11938
11936
|
if (S > 0)
|
|
@@ -11951,7 +11949,7 @@ function Ap(i, t, e) {
|
|
|
11951
11949
|
easing: "easeInOutCubic"
|
|
11952
11950
|
}), a && f.seek(f.duration);
|
|
11953
11951
|
}
|
|
11954
|
-
function
|
|
11952
|
+
function y(x, I) {
|
|
11955
11953
|
ze[x ? "unshift" : "push"](() => {
|
|
11956
11954
|
p[I] = x, e(1, p);
|
|
11957
11955
|
});
|
|
@@ -11964,7 +11962,7 @@ function Ap(i, t, e) {
|
|
|
11964
11962
|
return i.$$set = (x) => {
|
|
11965
11963
|
"inDelay" in x && e(5, o = x.inDelay), "outDelay" in x && e(6, s = x.outDelay), "content" in x && e(0, r = x.content), "unfolded" in x && e(7, a = x.unfolded), "isFistUnfoldedUpdate" in x && e(4, l = x.isFistUnfoldedUpdate);
|
|
11966
11964
|
}, i.$$.update = () => {
|
|
11967
|
-
i.$$.dirty & 1 && e(2, n = v(r)), i.$$.dirty & 128 && A(a), i.$$.dirty & 2 &&
|
|
11965
|
+
i.$$.dirty & 1 && e(2, n = v(r)), i.$$.dirty & 128 && A(a), i.$$.dirty & 2 && w(p.filter((x) => !!x));
|
|
11968
11966
|
}, [
|
|
11969
11967
|
r,
|
|
11970
11968
|
p,
|
|
@@ -11974,7 +11972,7 @@ function Ap(i, t, e) {
|
|
|
11974
11972
|
o,
|
|
11975
11973
|
s,
|
|
11976
11974
|
a,
|
|
11977
|
-
|
|
11975
|
+
y,
|
|
11978
11976
|
C
|
|
11979
11977
|
];
|
|
11980
11978
|
}
|
|
@@ -12266,11 +12264,11 @@ function ar(i) {
|
|
|
12266
12264
|
Z(t, f, p), T(f, e, p), Z(n, f, p), T(f, o, p), T(f, s, p), Z(r, s, null), a = Pt(s, i[8].bind(s)), l = !0, c || (u = we(s, "click", i[7]), c = !0);
|
|
12267
12265
|
},
|
|
12268
12266
|
p(f, p) {
|
|
12269
|
-
var
|
|
12267
|
+
var w, y;
|
|
12270
12268
|
const v = {};
|
|
12271
12269
|
p & 4 && (v.visible = f[2]), p & 8 && (v.left = f[3] / 2 + "px"), t.$set(v);
|
|
12272
12270
|
const g = {};
|
|
12273
|
-
p & 4 && (g.unfolded = f[2]), p & 8 && (g.length = f[3]), p & 16 && (g.outDelay = f[4] + 40 * Math.min((
|
|
12271
|
+
p & 4 && (g.unfolded = f[2]), p & 8 && (g.length = f[3]), p & 16 && (g.outDelay = f[4] + 40 * Math.min((y = (w = f[6][0]) == null ? void 0 : w.content.length) != null ? y : 10, 15)), n.$set(g);
|
|
12274
12272
|
const A = {};
|
|
12275
12273
|
p & 4 && (A.visible = f[2]), p & 2 && (A.textUnfolded = f[1]), p & 32 && (A.content = f[5]), r.$set(A);
|
|
12276
12274
|
},
|
|
@@ -12539,11 +12537,11 @@ function ur(i) {
|
|
|
12539
12537
|
Z(t, f, p), T(f, e, p), T(f, n, p), Q(n, o), Q(o, s), Q(s, r), Z(a, r, null), Q(s, l), u && u.m(s, null), c = !0;
|
|
12540
12538
|
},
|
|
12541
12539
|
p(f, p) {
|
|
12542
|
-
var A,
|
|
12540
|
+
var A, w;
|
|
12543
12541
|
const v = {};
|
|
12544
12542
|
p & 2 && (v.unfolded = f[1]), t.$set(v);
|
|
12545
12543
|
const g = {};
|
|
12546
|
-
p & 4 && (g.text = f[2]), p & 1 && (g.edit = (A = f[0].data.edit) == null ? void 0 : A.title), a.$set(g), f[0].data.description || ((
|
|
12544
|
+
p & 4 && (g.text = f[2]), p & 1 && (g.edit = (A = f[0].data.edit) == null ? void 0 : A.title), a.$set(g), f[0].data.description || ((w = f[0].data.edit) == null ? void 0 : w.description) ? u ? (u.p(f, p), p & 1 && P(u, 1)) : (u = dr(f), u.c(), P(u, 1), u.m(s, null)) : u && (re(), D(u, 1, 1, () => {
|
|
12547
12545
|
u = null;
|
|
12548
12546
|
}), ae()), p & 2 && L(o, "transform", f[1] ? "translateY(-15px)" : "translateY(0)"), (!c || p & 2) && J(n, "unfolded", f[1]), (!c || p & 8) && J(n, "folded", f[3]);
|
|
12549
12547
|
},
|
|
@@ -13409,25 +13407,25 @@ function Jg(i, t) {
|
|
|
13409
13407
|
methods: d
|
|
13410
13408
|
});
|
|
13411
13409
|
let p = !1;
|
|
13412
|
-
const v = (A) => (...
|
|
13410
|
+
const v = (A) => (...w) => {
|
|
13413
13411
|
p = !0;
|
|
13414
|
-
const
|
|
13415
|
-
return p = !1,
|
|
13412
|
+
const y = A(...w);
|
|
13413
|
+
return p = !1, y;
|
|
13416
13414
|
};
|
|
13417
|
-
Object.entries(o).forEach(([A,
|
|
13415
|
+
Object.entries(o).forEach(([A, w]) => {
|
|
13418
13416
|
d[A] = v(
|
|
13419
|
-
(...
|
|
13417
|
+
(...y) => w(f(), ...y)
|
|
13420
13418
|
), Object.defineProperty(d[A], "name", { value: A });
|
|
13421
13419
|
}), h = new Proxy(oc(e), {
|
|
13422
|
-
get(A,
|
|
13423
|
-
return u() && !p && r(u(), { prop:
|
|
13420
|
+
get(A, w) {
|
|
13421
|
+
return u() && !p && r(u(), { prop: w, value: A[w] }), Reflect.get(...arguments);
|
|
13424
13422
|
},
|
|
13425
|
-
set(A,
|
|
13426
|
-
return A[
|
|
13423
|
+
set(A, w, y) {
|
|
13424
|
+
return A[w] === y || (Reflect.set(...arguments), u() || (s && s(w, y), a(h, w))), !0;
|
|
13427
13425
|
}
|
|
13428
|
-
}), Object.entries(n).forEach(([A,
|
|
13426
|
+
}), Object.entries(n).forEach(([A, w]) => {
|
|
13429
13427
|
c(A, () => {
|
|
13430
|
-
|
|
13428
|
+
w(f());
|
|
13431
13429
|
});
|
|
13432
13430
|
});
|
|
13433
13431
|
const g = [h, d];
|
|
@@ -13980,13 +13978,13 @@ function c0(i) {
|
|
|
13980
13978
|
function u0(i) {
|
|
13981
13979
|
let t, e, n, o, s, r, a, l, c, u, h, d, f = i[1] && Ir(i);
|
|
13982
13980
|
const p = i[37].default, v = qt(p, i, i[36], Pr);
|
|
13983
|
-
let g = i[3] && kr(i), A = i[1] && xr(i),
|
|
13981
|
+
let g = i[3] && kr(i), A = i[1] && xr(i), w = i[4] && Dr(i);
|
|
13984
13982
|
return {
|
|
13985
13983
|
c() {
|
|
13986
|
-
t = z("div"), e = z("div"), f && f.c(), n = ne(), o = z("div"), s = z("div"), v && v.c(), a = ne(), g && g.c(), l = ne(), A && A.c(), c = ne(),
|
|
13984
|
+
t = z("div"), e = z("div"), f && f.c(), n = ne(), o = z("div"), s = z("div"), v && v.c(), a = ne(), g && g.c(), l = ne(), A && A.c(), c = ne(), w && w.c(), b(s, "class", "sc-carousel__pages-container svelte-sme1z4"), L(s, "transform", "translateX(" + i[8] + "px)"), L(s, "transition-duration", i[9] + "ms"), L(s, "transition-timing-function", i[0]), b(o, "class", "sc-carousel__pages-window svelte-sme1z4"), b(e, "class", "sc-carousel__content-container svelte-sme1z4"), b(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
13987
13985
|
},
|
|
13988
|
-
m(
|
|
13989
|
-
T(
|
|
13986
|
+
m(y, C) {
|
|
13987
|
+
T(y, t, C), Q(t, e), f && f.m(e, null), Q(e, n), Q(e, o), Q(o, s), v && v.m(s, null), i[39](s), Q(o, a), g && g.m(o, null), i[40](o), Q(e, l), A && A.m(e, null), Q(t, c), w && w.m(t, null), u = !0, h || (d = [
|
|
13990
13988
|
Ii(r = Cg.call(null, s, {
|
|
13991
13989
|
thresholdProvider: i[38]
|
|
13992
13990
|
})),
|
|
@@ -14001,34 +13999,34 @@ function u0(i) {
|
|
|
14001
13999
|
we(o, "tapped", i[22])
|
|
14002
14000
|
], h = !0);
|
|
14003
14001
|
},
|
|
14004
|
-
p(
|
|
14005
|
-
|
|
14002
|
+
p(y, C) {
|
|
14003
|
+
y[1] ? f ? (f.p(y, C), C[0] & 2 && P(f, 1)) : (f = Ir(y), f.c(), P(f, 1), f.m(e, n)) : f && (re(), D(f, 1, 1, () => {
|
|
14006
14004
|
f = null;
|
|
14007
14005
|
}), ae()), v && v.p && (!u || C[0] & 96 | C[1] & 32) && $t(
|
|
14008
14006
|
v,
|
|
14009
14007
|
p,
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
u ? Kt(p,
|
|
14008
|
+
y,
|
|
14009
|
+
y[36],
|
|
14010
|
+
u ? Kt(p, y[36], C, s0) : en(y[36]),
|
|
14013
14011
|
Pr
|
|
14014
|
-
), (!u || C[0] & 256) && L(s, "transform", "translateX(" +
|
|
14015
|
-
thresholdProvider:
|
|
14016
|
-
}),
|
|
14012
|
+
), (!u || C[0] & 256) && L(s, "transform", "translateX(" + y[8] + "px)"), (!u || C[0] & 512) && L(s, "transition-duration", y[9] + "ms"), (!u || C[0] & 1) && L(s, "transition-timing-function", y[0]), r && Zt(r.update) && C[0] & 2048 && r.update.call(null, {
|
|
14013
|
+
thresholdProvider: y[38]
|
|
14014
|
+
}), y[3] ? g ? (g.p(y, C), C[0] & 8 && P(g, 1)) : (g = kr(y), g.c(), P(g, 1), g.m(o, null)) : g && (re(), D(g, 1, 1, () => {
|
|
14017
14015
|
g = null;
|
|
14018
|
-
}), ae()),
|
|
14016
|
+
}), ae()), y[1] ? A ? (A.p(y, C), C[0] & 2 && P(A, 1)) : (A = xr(y), A.c(), P(A, 1), A.m(e, null)) : A && (re(), D(A, 1, 1, () => {
|
|
14019
14017
|
A = null;
|
|
14020
|
-
}), ae()),
|
|
14021
|
-
|
|
14018
|
+
}), ae()), y[4] ? w ? (w.p(y, C), C[0] & 16 && P(w, 1)) : (w = Dr(y), w.c(), P(w, 1), w.m(t, null)) : w && (re(), D(w, 1, 1, () => {
|
|
14019
|
+
w = null;
|
|
14022
14020
|
}), ae());
|
|
14023
14021
|
},
|
|
14024
|
-
i(
|
|
14025
|
-
u || (P(f), P(v,
|
|
14022
|
+
i(y) {
|
|
14023
|
+
u || (P(f), P(v, y), P(g), P(A), P(w), u = !0);
|
|
14026
14024
|
},
|
|
14027
|
-
o(
|
|
14028
|
-
D(f), D(v,
|
|
14025
|
+
o(y) {
|
|
14026
|
+
D(f), D(v, y), D(g), D(A), D(w), u = !1;
|
|
14029
14027
|
},
|
|
14030
|
-
d(
|
|
14031
|
-
|
|
14028
|
+
d(y) {
|
|
14029
|
+
y && M(t), f && f.d(), v && v.d(y), i[39](null), g && g.d(), i[40](null), A && A.d(), w && w.d(), h = !1, dt(d);
|
|
14032
14030
|
}
|
|
14033
14031
|
};
|
|
14034
14032
|
}
|
|
@@ -14044,7 +14042,7 @@ function d0(i, t, e) {
|
|
|
14044
14042
|
loaded: () => e(6, s = ge)
|
|
14045
14043
|
})(te);
|
|
14046
14044
|
}), v = xn();
|
|
14047
|
-
let { timingFunction: g = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite:
|
|
14045
|
+
let { timingFunction: g = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: y = 0 } = t, { duration: C = 500 } = t, { autoplay: x = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: S = Ct } = t, { pauseOnFocus: k = !1 } = t, { autoplayProgressVisible: j = !1 } = t, { dots: N = !0 } = t, { swiping: H = !0 } = t, { particlesToShow: U = 1 } = t, { particlesToScroll: V = 1 } = t;
|
|
14048
14046
|
function B(te, ge) {
|
|
14049
14047
|
return W(this, null, function* () {
|
|
14050
14048
|
const je = pn(ge, "animated", !0);
|
|
@@ -14086,7 +14084,7 @@ function d0(i, t, e) {
|
|
|
14086
14084
|
}
|
|
14087
14085
|
Ze(() => {
|
|
14088
14086
|
W(this, null, function* () {
|
|
14089
|
-
yield Qo(), _ && ee && (h.particlesCountWithoutClones = _.children.length, yield Qo(), h.infinite && de(), h.particlesCount = _.children.length, f.showPage(
|
|
14087
|
+
yield Qo(), _ && ee && (h.particlesCountWithoutClones = _.children.length, yield Qo(), h.infinite && de(), h.particlesCount = _.children.length, f.showPage(y, { animated: !1 }), Y.observe(ee));
|
|
14090
14088
|
});
|
|
14091
14089
|
}), It(() => {
|
|
14092
14090
|
Y.disconnect(), d.reset();
|
|
@@ -14140,13 +14138,13 @@ function d0(i, t, e) {
|
|
|
14140
14138
|
}
|
|
14141
14139
|
const Ke = (te) => he(te.detail);
|
|
14142
14140
|
return i.$$set = (te) => {
|
|
14143
|
-
"timingFunction" in te && e(0, g = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2,
|
|
14141
|
+
"timingFunction" in te && e(0, g = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2, w = te.infinite), "initialPageIndex" in te && e(24, y = te.initialPageIndex), "duration" in te && e(25, C = te.duration), "autoplay" in te && e(26, x = te.autoplay), "autoplayDuration" in te && e(27, I = te.autoplayDuration), "autoplayDirection" in te && e(28, S = te.autoplayDirection), "pauseOnFocus" in te && e(29, k = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, j = te.autoplayProgressVisible), "dots" in te && e(4, N = te.dots), "swiping" in te && e(30, H = te.swiping), "particlesToShow" in te && e(31, U = te.particlesToShow), "particlesToScroll" in te && e(32, V = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
|
|
14144
14142
|
}, i.$$.update = () => {
|
|
14145
|
-
i.$$.dirty[0] & 32 && v("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite =
|
|
14143
|
+
i.$$.dirty[0] & 32 && v("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite = w), i.$$.dirty[0] & 33554432 && (h.durationMsInit = C), i.$$.dirty[0] & 67108864 && (h.autoplay = x), i.$$.dirty[0] & 134217728 && (h.autoplayDuration = I), i.$$.dirty[0] & 268435456 && (h.autoplayDirection = S), i.$$.dirty[0] & 536870912 && (h.pauseOnFocus = k), i.$$.dirty[1] & 1 && (h.particlesToShowInit = U), i.$$.dirty[1] & 2 && (h.particlesToScrollInit = V);
|
|
14146
14144
|
}, [
|
|
14147
14145
|
g,
|
|
14148
14146
|
A,
|
|
14149
|
-
|
|
14147
|
+
w,
|
|
14150
14148
|
j,
|
|
14151
14149
|
N,
|
|
14152
14150
|
r,
|
|
@@ -14168,7 +14166,7 @@ function d0(i, t, e) {
|
|
|
14168
14166
|
be,
|
|
14169
14167
|
Ce,
|
|
14170
14168
|
ue,
|
|
14171
|
-
|
|
14169
|
+
y,
|
|
14172
14170
|
C,
|
|
14173
14171
|
x,
|
|
14174
14172
|
I,
|
|
@@ -14356,15 +14354,15 @@ function b0(i, t, e) {
|
|
|
14356
14354
|
function v() {
|
|
14357
14355
|
e(12, p = (r == null ? void 0 : r.type) === "Video" && Boolean(r.videoCoverUrl));
|
|
14358
14356
|
}
|
|
14359
|
-
const g = Mt("mediaStore"), A = Mt("hooks"),
|
|
14357
|
+
const g = Mt("mediaStore"), A = Mt("hooks"), w = () => {
|
|
14360
14358
|
p || (d == null || d.play(), d == null || d.pause(), e(12, p = !0));
|
|
14361
14359
|
};
|
|
14362
|
-
A.on("loadVideoFirstFrame",
|
|
14360
|
+
A.on("loadVideoFirstFrame", w), Ze(() => {
|
|
14363
14361
|
g.subscribe(({ currentMediaElement: j }) => {
|
|
14364
14362
|
j !== d && (d == null || d.pause());
|
|
14365
14363
|
});
|
|
14366
14364
|
});
|
|
14367
|
-
const
|
|
14365
|
+
const y = (j) => {
|
|
14368
14366
|
e(9, f = !1), e(0, o.paused = !1, o), g.set({ currentMediaElement: d }), A.emit("playStateChange", {
|
|
14369
14367
|
event: j,
|
|
14370
14368
|
state: "playing",
|
|
@@ -14394,7 +14392,7 @@ function b0(i, t, e) {
|
|
|
14394
14392
|
}, i.$$.update = () => {
|
|
14395
14393
|
if (i.$$.dirty & 4 && e(13, n = r == null ? void 0 : r.url), i.$$.dirty & 8192 && Boolean(n) && v(), i.$$.dirty & 256 && d && e(9, f = d.paused), i.$$.dirty & 4356 && (r == null ? void 0 : r.type) === "Video" && !p) {
|
|
14396
14394
|
const j = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, H = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && j;
|
|
14397
|
-
d && H && d.paused && (document.removeEventListener("WeixinJSBridgeReady",
|
|
14395
|
+
d && H && d.paused && (document.removeEventListener("WeixinJSBridgeReady", w), document.removeEventListener("touchstart", w), document.removeEventListener("click", w), document.addEventListener("WeixinJSBridgeReady", w), document.addEventListener("touchstart", w), document.addEventListener("click", w));
|
|
14398
14396
|
}
|
|
14399
14397
|
}, [
|
|
14400
14398
|
o,
|
|
@@ -14411,7 +14409,7 @@ function b0(i, t, e) {
|
|
|
14411
14409
|
A,
|
|
14412
14410
|
p,
|
|
14413
14411
|
n,
|
|
14414
|
-
|
|
14412
|
+
y,
|
|
14415
14413
|
C,
|
|
14416
14414
|
x,
|
|
14417
14415
|
I,
|
|
@@ -14671,24 +14669,24 @@ function E0(i) {
|
|
|
14671
14669
|
};
|
|
14672
14670
|
}
|
|
14673
14671
|
function I0(i, t, e) {
|
|
14674
|
-
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: h = 0 } = t, { unfolded: d = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig: p } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: g = { autoplay: !0, autoplayVideo: !1 } } = t, A = [],
|
|
14672
|
+
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: h = 0 } = t, { unfolded: d = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig: p } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: g = { autoplay: !0, autoplayVideo: !1 } } = t, A = [], w, y = null;
|
|
14675
14673
|
const C = Mt("mediaStore");
|
|
14676
14674
|
Ze(() => {
|
|
14677
|
-
|
|
14675
|
+
y = setInterval(
|
|
14678
14676
|
() => {
|
|
14679
|
-
r && (
|
|
14677
|
+
r && (w == null || w.goToNext());
|
|
14680
14678
|
},
|
|
14681
14679
|
3e3
|
|
14682
14680
|
);
|
|
14683
14681
|
}), It(() => {
|
|
14684
|
-
clearInterval(
|
|
14682
|
+
clearInterval(y);
|
|
14685
14683
|
});
|
|
14686
14684
|
function x(k, j) {
|
|
14687
14685
|
i.$$.not_equal(A[j], k) && (A[j] = k, e(8, A));
|
|
14688
14686
|
}
|
|
14689
14687
|
function I(k) {
|
|
14690
14688
|
ze[k ? "unshift" : "push"](() => {
|
|
14691
|
-
|
|
14689
|
+
w = k, e(11, w);
|
|
14692
14690
|
});
|
|
14693
14691
|
}
|
|
14694
14692
|
const S = (k) => {
|
|
@@ -14710,7 +14708,7 @@ function I0(i, t, e) {
|
|
|
14710
14708
|
A,
|
|
14711
14709
|
n,
|
|
14712
14710
|
s,
|
|
14713
|
-
|
|
14711
|
+
w,
|
|
14714
14712
|
o,
|
|
14715
14713
|
C,
|
|
14716
14714
|
v,
|
|
@@ -15350,7 +15348,7 @@ function Nr(i) {
|
|
|
15350
15348
|
}
|
|
15351
15349
|
function W0(i) {
|
|
15352
15350
|
var U, V;
|
|
15353
|
-
let t, e, n, o, s, r, a, l, c, u, h, d, f, p, v = i[2].title + "", g, A,
|
|
15351
|
+
let t, e, n, o, s, r, a, l, c, u, h, d, f, p, v = i[2].title + "", g, A, w, y = Je((U = i[2].price) == null ? void 0 : U.value) && ((V = i[2].price) == null ? void 0 : V.value) !== "", C, x;
|
|
15354
15352
|
e = new it({
|
|
15355
15353
|
props: {
|
|
15356
15354
|
visible: i[1],
|
|
@@ -15367,7 +15365,7 @@ function W0(i) {
|
|
|
15367
15365
|
let k = i[2].tags || [], j = [];
|
|
15368
15366
|
for (let B = 0; B < k.length; B += 1)
|
|
15369
15367
|
j[B] = Fr(Vr(i, k, B));
|
|
15370
|
-
let N =
|
|
15368
|
+
let N = y && Gr(i), H = i[2].highlightText && Nr(i);
|
|
15371
15369
|
return {
|
|
15372
15370
|
c() {
|
|
15373
15371
|
var B;
|
|
@@ -15377,7 +15375,7 @@ function W0(i) {
|
|
|
15377
15375
|
h = ne();
|
|
15378
15376
|
for (let R = 0; R < j.length; R += 1)
|
|
15379
15377
|
j[R].c();
|
|
15380
|
-
d = ne(), f = z("div"), p = z("div"), g = Ie(v), A = ne(),
|
|
15378
|
+
d = ne(), f = z("div"), p = z("div"), g = Ie(v), A = ne(), w = z("div"), N && N.c(), C = ne(), H && H.c(), b(o, "class", "line svelte-8mby9k"), L(o, "transition-delay", i[1] ? Yn + "ms" : Un + Xr - _r - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), Xe(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(u, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(f, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), L(w, "height", Je((B = i[2].price) == null ? void 0 : B.value) && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), L(r, "transition-delay", i[1] ? Yn + Un + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"), J(t, "unfolded", i[1]), J(t, "folded", i[3]);
|
|
15381
15379
|
},
|
|
15382
15380
|
m(B, R) {
|
|
15383
15381
|
T(B, t, R), Z(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), Q(r, a), Q(r, c), Q(r, u);
|
|
@@ -15386,7 +15384,7 @@ function W0(i) {
|
|
|
15386
15384
|
Q(u, h);
|
|
15387
15385
|
for (let G = 0; G < j.length; G += 1)
|
|
15388
15386
|
j[G].m(u, null);
|
|
15389
|
-
Q(r, d), Q(r, f), Q(f, p), Q(p, g), Q(r, A), Q(r,
|
|
15387
|
+
Q(r, d), Q(r, f), Q(f, p), Q(p, g), Q(r, A), Q(r, w), N && N.m(w, null), Q(w, C), H && H.m(w, null), x = !0;
|
|
15390
15388
|
},
|
|
15391
15389
|
p(B, [R]) {
|
|
15392
15390
|
var F, ee, _;
|
|
@@ -15413,7 +15411,7 @@ function W0(i) {
|
|
|
15413
15411
|
j[Y].d(1);
|
|
15414
15412
|
j.length = k.length;
|
|
15415
15413
|
}
|
|
15416
|
-
(!x || R & 4) && v !== (v = B[2].title + "") && Le(g, v), R & 4 && (
|
|
15414
|
+
(!x || R & 4) && v !== (v = B[2].title + "") && Le(g, v), R & 4 && (y = Je((F = B[2].price) == null ? void 0 : F.value) && ((ee = B[2].price) == null ? void 0 : ee.value) !== ""), y ? N ? N.p(B, R) : (N = Gr(B), N.c(), N.m(w, C)) : N && (N.d(1), N = null), B[2].highlightText ? H ? H.p(B, R) : (H = Nr(B), H.c(), H.m(w, null)) : H && (H.d(1), H = null), R & 4 && L(w, "height", Je((_ = B[2].price) == null ? void 0 : _.value) && B[2].highlightText ? void 0 : "1rem"), R & 2 && L(r, "transition-delay", B[1] ? Yn + Un + "ms" : "0ms"), (!x || R & 2) && J(t, "unfolded", B[1]), (!x || R & 8) && J(t, "folded", B[3]);
|
|
15417
15415
|
},
|
|
15418
15416
|
i(B) {
|
|
15419
15417
|
x || (P(e.$$.fragment, B), x = !0);
|
|
@@ -15796,7 +15794,7 @@ function tA(i) {
|
|
|
15796
15794
|
le(i, "svelte-1s6gk4a", ".audio-tag.svelte-1s6gk4a{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.audio-icon__wrapper.svelte-1s6gk4a{position:relative;vertical-align:top;width:100%;height:100%}.content.svelte-1s6gk4a{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-1s6gk4a{position:relative;width:100%;height:100%}.audio-icon.svelte-1s6gk4a{pointer-events:none;vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.audio.svelte-1s6gk4a{position:relative;width:100%;height:100%}");
|
|
15797
15795
|
}
|
|
15798
15796
|
function Jr(i) {
|
|
15799
|
-
var A,
|
|
15797
|
+
var A, w;
|
|
15800
15798
|
let t, e, n, o, s, r, a, l, c, u, h, d, f, p, v;
|
|
15801
15799
|
e = new it({
|
|
15802
15800
|
props: {
|
|
@@ -15819,35 +15817,35 @@ function Jr(i) {
|
|
|
15819
15817
|
props: {
|
|
15820
15818
|
unfolded: i[6],
|
|
15821
15819
|
length: i[3],
|
|
15822
|
-
outDelay: i[4] + 20 * Math.min((
|
|
15820
|
+
outDelay: i[4] + 20 * Math.min((w = (A = i[5]) == null ? void 0 : A.length) != null ? w : 10, 15),
|
|
15823
15821
|
useLinearColor: !0
|
|
15824
15822
|
}
|
|
15825
15823
|
}), {
|
|
15826
15824
|
c() {
|
|
15827
15825
|
t = z("div"), K(e.$$.fragment), n = ne(), o = z("div"), s = z("div"), r = z("div"), g && g.c(), a = ne(), l = z("div"), K(c.$$.fragment), h = ne(), K(d.$$.fragment), b(r, "class", "audio-icon svelte-1s6gk4a"), Se(() => i[11].call(l)), L(l, "display", "inline-block"), b(s, "class", "wrapper svelte-1s6gk4a"), b(o, "class", "content svelte-1s6gk4a"), b(t, "class", "audio-tag svelte-1s6gk4a"), J(t, "unfolded", i[6]);
|
|
15828
15826
|
},
|
|
15829
|
-
m(
|
|
15830
|
-
T(
|
|
15827
|
+
m(y, C) {
|
|
15828
|
+
T(y, t, C), Z(e, t, null), Q(t, n), Q(t, o), Q(o, s), Q(s, r), g && g.m(r, null), Q(s, a), Q(s, l), Z(c, l, null), u = Pt(l, i[11].bind(l)), Q(t, h), Z(d, t, null), f = !0, p || (v = we(l, "click", i[7]), p = !0);
|
|
15831
15829
|
},
|
|
15832
|
-
p(
|
|
15830
|
+
p(y, C) {
|
|
15833
15831
|
var k, j;
|
|
15834
15832
|
const x = {};
|
|
15835
|
-
C & 64 && (x.visible =
|
|
15833
|
+
C & 64 && (x.visible = y[6]), C & 8 && (x.left = y[3] / 2 + "px"), e.$set(x), y[6] ? g ? (g.p(y, C), C & 64 && P(g, 1)) : (g = Zr(y), g.c(), P(g, 1), g.m(r, null)) : g && (re(), D(g, 1, 1, () => {
|
|
15836
15834
|
g = null;
|
|
15837
15835
|
}), ae());
|
|
15838
15836
|
const I = {};
|
|
15839
|
-
C & 64 && (I.visible =
|
|
15837
|
+
C & 64 && (I.visible = y[6]), C & 2 && (I.textUnfolded = y[1]), C & 32 && (I.content = y[5]), c.$set(I);
|
|
15840
15838
|
const S = {};
|
|
15841
|
-
C & 64 && (S.unfolded =
|
|
15839
|
+
C & 64 && (S.unfolded = y[6]), C & 8 && (S.length = y[3]), C & 48 && (S.outDelay = y[4] + 20 * Math.min((j = (k = y[5]) == null ? void 0 : k.length) != null ? j : 10, 15)), d.$set(S), (!f || C & 64) && J(t, "unfolded", y[6]);
|
|
15842
15840
|
},
|
|
15843
|
-
i(
|
|
15844
|
-
f || (P(e.$$.fragment,
|
|
15841
|
+
i(y) {
|
|
15842
|
+
f || (P(e.$$.fragment, y), P(g), P(c.$$.fragment, y), P(d.$$.fragment, y), f = !0);
|
|
15845
15843
|
},
|
|
15846
|
-
o(
|
|
15847
|
-
D(e.$$.fragment,
|
|
15844
|
+
o(y) {
|
|
15845
|
+
D(e.$$.fragment, y), D(g), D(c.$$.fragment, y), D(d.$$.fragment, y), f = !1;
|
|
15848
15846
|
},
|
|
15849
|
-
d(
|
|
15850
|
-
|
|
15847
|
+
d(y) {
|
|
15848
|
+
y && M(t), q(e), g && g.d(), q(c), u(), q(d), p = !1, v();
|
|
15851
15849
|
}
|
|
15852
15850
|
};
|
|
15853
15851
|
}
|
|
@@ -16139,8 +16137,8 @@ function dA(i, t, e) {
|
|
|
16139
16137
|
var A;
|
|
16140
16138
|
return r.data.backgroundColor === "dark" ? "rgba(0, 0, 0, 0.3)" : r.data.backgroundColor === "light" ? "rgba(255, 255, 255, 0.3)" : (A = r.data.backgroundColor) != null ? A : "rgba(0, 0, 0, 0.3)";
|
|
16141
16139
|
})()), i.$$.dirty & 2 && e(5, s = (() => {
|
|
16142
|
-
const { r: A, g:
|
|
16143
|
-
return (A * 299 +
|
|
16140
|
+
const { r: A, g: w, b: y } = rA(o);
|
|
16141
|
+
return (A * 299 + w * 587 + y * 114) / 1e3 >= 128 ? "rgba(0, 0, 0, 0.6)" : "white";
|
|
16144
16142
|
})());
|
|
16145
16143
|
}, [
|
|
16146
16144
|
r,
|
|
@@ -16998,16 +16996,16 @@ function qA(i, t, e) {
|
|
|
16998
16996
|
function A(C) {
|
|
16999
16997
|
C ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
|
|
17000
16998
|
}
|
|
17001
|
-
function
|
|
16999
|
+
function w(C, x, I) {
|
|
17002
17000
|
var S, k;
|
|
17003
17001
|
return !(!x.visible || !x.enabled || !I.visible || !((S = C.state) != null && S.visible) || ((k = C.temporaryState) == null ? void 0 : k.visible) === !1 || Fe(C) && C.mediaVisible === !1);
|
|
17004
17002
|
}
|
|
17005
|
-
const
|
|
17003
|
+
const y = (C) => h.emit("click", { event: C, target: "TagContent", tag: u });
|
|
17006
17004
|
return i.$$set = (C) => {
|
|
17007
17005
|
"withAnimation" in C && e(0, c = C.withAnimation), "tag" in C && e(1, u = C.tag), "hooks" in C && e(2, h = C.hooks), "state" in C && e(5, d = C.state), "mediaStore" in C && e(6, f = C.mediaStore), "temporaryState" in C && e(7, p = C.temporaryState);
|
|
17008
17006
|
}, i.$$.update = () => {
|
|
17009
17007
|
var C, x, I, S, k, j, N, H, U, V, B;
|
|
17010
|
-
i.$$.dirty & 2 && e(11, n = (C = u.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(10, o = (x = u.state) == null ? void 0 : x.visible), i.$$.dirty & 162 && e(12, s = d.visible && p.visible && ((I = u.state) == null ? void 0 : I.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !
|
|
17008
|
+
i.$$.dirty & 2 && e(11, n = (C = u.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(10, o = (x = u.state) == null ? void 0 : x.visible), i.$$.dirty & 162 && e(12, s = d.visible && p.visible && ((I = u.state) == null ? void 0 : I.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !w(u, d, p)), i.$$.dirty & 4096 && A(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== g && (e(9, g = n), n ? (k = (S = u.hooks).emit) == null || k.call(S, "unfolded") : (N = u == null ? void 0 : (j = u.hooks).emit) == null || N.call(j, "folded")), o !== void 0 && o !== v && (e(8, v = o), o ? (U = (H = u.hooks).emit) == null || U.call(H, "show") : (B = (V = u.hooks).emit) == null || B.call(V, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
|
|
17011
17009
|
}, [
|
|
17012
17010
|
c,
|
|
17013
17011
|
u,
|
|
@@ -17022,7 +17020,7 @@ function qA(i, t, e) {
|
|
|
17022
17020
|
o,
|
|
17023
17021
|
n,
|
|
17024
17022
|
s,
|
|
17025
|
-
|
|
17023
|
+
y
|
|
17026
17024
|
];
|
|
17027
17025
|
}
|
|
17028
17026
|
class Il extends se {
|
|
@@ -17104,9 +17102,9 @@ function ev(i, t, e) {
|
|
|
17104
17102
|
}, i.$$.update = () => {
|
|
17105
17103
|
var p, v, g, A;
|
|
17106
17104
|
i.$$.dirty & 64 && e(0, n = (p = l.state) == null ? void 0 : p.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (g = (v = l.style) == null ? void 0 : v.point) != null && g.url ? (A = l.style) == null ? void 0 : A.point : { url: wp }), i.$$.dirty & 64 && e(1, r = (() => {
|
|
17107
|
-
var
|
|
17108
|
-
const
|
|
17109
|
-
return typeof
|
|
17105
|
+
var y, C, x;
|
|
17106
|
+
const w = (x = (C = (y = l.style) == null ? void 0 : y.point) == null ? void 0 : C.size) != null ? x : "S";
|
|
17107
|
+
return typeof w == "number" ? w : w === "S" ? 18 : w === "M" ? 20 : w === "L" ? 24 : w === "XL" ? 28 : 18;
|
|
17110
17108
|
})());
|
|
17111
17109
|
}, h(), [n, r, s, o, d, f, l];
|
|
17112
17110
|
}
|
|
@@ -17228,13 +17226,13 @@ function av(i) {
|
|
|
17228
17226
|
T(g, t, A), Q(t, e), h[n].m(e, null), Q(e, s), p[r].m(e, null), c = !0;
|
|
17229
17227
|
},
|
|
17230
17228
|
p(g, [A]) {
|
|
17231
|
-
let
|
|
17232
|
-
n = d(g), n ===
|
|
17233
|
-
h[
|
|
17229
|
+
let w = n;
|
|
17230
|
+
n = d(g), n === w ? h[n].p(g, A) : (re(), D(h[w], 1, 1, () => {
|
|
17231
|
+
h[w] = null;
|
|
17234
17232
|
}), ae(), o = h[n], o ? o.p(g, A) : (o = h[n] = u[n](g), o.c()), P(o, 1), o.m(e, s));
|
|
17235
|
-
let
|
|
17236
|
-
r = v(g), r ===
|
|
17237
|
-
p[
|
|
17233
|
+
let y = r;
|
|
17234
|
+
r = v(g), r === y ? p[r].p(g, A) : (re(), D(p[y], 1, 1, () => {
|
|
17235
|
+
p[y] = null;
|
|
17238
17236
|
}), ae(), a = p[r], a ? a.p(g, A) : (a = p[r] = f[r](g), a.c()), P(a, 1), a.m(e, null)), (!c || A & 256) && b(e, "data-tag-unfolded", g[8]), (!c || A & 2048) && b(e, "data-tag-id", g[11]), (!c || A & 2 && l !== (l = g[1].contentType)) && b(e, "data-content-type", l), A & 128 && L(e, "left", g[7]), A & 64 && L(e, "top", g[6]), A & 32 && L(e, "z-index", g[5]), (!c || A & 2048) && b(t, "data-tag-id", g[11]), (!c || A & 2) && J(t, "unClickable", g[1].clickable === !1), (!c || A & 1024) && J(t, "disable", g[10]), (!c || A & 512) && J(t, "hide", g[9]), (!c || A & 1) && J(t, "withAnimation", g[0]);
|
|
17239
17237
|
},
|
|
17240
17238
|
i(g) {
|
|
@@ -17251,11 +17249,11 @@ function av(i) {
|
|
|
17251
17249
|
function lv(i, t, e) {
|
|
17252
17250
|
let n, o, s, r, a, l, c, u, h, { withAnimation: d = !1 } = t, { tag: f } = t, { mediaStore: p } = t, { state: v } = t, { temporaryState: g } = t;
|
|
17253
17251
|
const A = Mt("hooks");
|
|
17254
|
-
return i.$$set = (
|
|
17255
|
-
"withAnimation" in
|
|
17252
|
+
return i.$$set = (w) => {
|
|
17253
|
+
"withAnimation" in w && e(0, d = w.withAnimation), "tag" in w && e(1, f = w.tag), "mediaStore" in w && e(2, p = w.mediaStore), "state" in w && e(3, v = w.state), "temporaryState" in w && e(4, g = w.temporaryState);
|
|
17256
17254
|
}, i.$$.update = () => {
|
|
17257
|
-
var
|
|
17258
|
-
i.$$.dirty & 2 && e(13, n = (() => !(f.contentType === "Link" || f.contentType === "VRLink" || f.contentType === "PanoLink" || f.contentType === "Audio" && f.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => f.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = f.id), i.$$.dirty & 2 && e(10, r = !((
|
|
17255
|
+
var w, y, C, x, I, S, k, j;
|
|
17256
|
+
i.$$.dirty & 2 && e(13, n = (() => !(f.contentType === "Link" || f.contentType === "VRLink" || f.contentType === "PanoLink" || f.contentType === "Audio" && f.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => f.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = f.id), i.$$.dirty & 2 && e(10, r = !((w = f.pointTagStyle) != null && w.leftPercent) || !((y = f.pointTagStyle) != null && y.topPercent) || f.enabled === !1 || !f.state), i.$$.dirty & 2 && e(9, a = !((C = f.state) != null && C.visible) || ((x = f.temporaryState) == null ? void 0 : x.visible) === !1), i.$$.dirty & 2 && e(8, l = (I = f.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(7, c = ((S = f.pointTagStyle) == null ? void 0 : S.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((k = f.pointTagStyle) == null ? void 0 : k.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (j = f.state) != null && j.unfolded ? 1 : 0);
|
|
17259
17257
|
}, [
|
|
17260
17258
|
d,
|
|
17261
17259
|
f,
|
|
@@ -18078,8 +18076,8 @@ class wv extends gv {
|
|
|
18078
18076
|
this.mediaStore.set({ currentMediaElement: null });
|
|
18079
18077
|
}
|
|
18080
18078
|
updateTagCss3DObjectMatrix(e, n) {
|
|
18081
|
-
var v, g, A,
|
|
18082
|
-
const o = (A = (g = (v = e.mergedConfig) == null ? void 0 : v.tag3DConfig) == null ? void 0 : g.ratio) != null ? A : 216e-5, s = (
|
|
18079
|
+
var v, g, A, w;
|
|
18080
|
+
const o = (A = (g = (v = e.mergedConfig) == null ? void 0 : v.tag3DConfig) == null ? void 0 : g.ratio) != null ? A : 216e-5, s = (w = e.tag3DContentSvelte) == null ? void 0 : w.domContainer.css3DObject;
|
|
18083
18081
|
if (!s)
|
|
18084
18082
|
return;
|
|
18085
18083
|
const r = Fe(e) ? e.data.mediaPosition : e.position;
|
|
@@ -18611,13 +18609,13 @@ class Ln {
|
|
|
18611
18609
|
onIntersectionOnModelUpdate(t) {
|
|
18612
18610
|
}
|
|
18613
18611
|
onApplyOriginObjectScale(t) {
|
|
18614
|
-
this.applyHelperScaleMatrix4(t.
|
|
18612
|
+
this.applyHelperScaleMatrix4(t.matrix, t.origin);
|
|
18615
18613
|
}
|
|
18616
18614
|
onApplyOriginObjectRotate(t) {
|
|
18617
18615
|
this.applyHelperQuaternion(t.quaternion, t.origin);
|
|
18618
18616
|
}
|
|
18619
18617
|
onApplyOriginObjectPosition(t) {
|
|
18620
|
-
this.applyHelperMatrix4(t.
|
|
18618
|
+
this.applyHelperMatrix4(t.matrix);
|
|
18621
18619
|
}
|
|
18622
18620
|
onSetOriginObjectScale(t) {
|
|
18623
18621
|
this.helperObject3D.scale.copy(t), this.updateOffsetByScale(t);
|
|
@@ -19151,14 +19149,6 @@ class Vv extends xv {
|
|
|
19151
19149
|
throw new Error("css3DInstance is not initialized");
|
|
19152
19150
|
return this.css3DInstance.css3DObject;
|
|
19153
19151
|
}
|
|
19154
|
-
updatePosition() {
|
|
19155
|
-
var e;
|
|
19156
|
-
this.helperObject.position.copy(this.originObject3D.position), (e = this.plane) == null || e.position.copy(this.originObject3D.position);
|
|
19157
|
-
}
|
|
19158
|
-
updateQuaternion() {
|
|
19159
|
-
var e;
|
|
19160
|
-
(e = this.plane) == null || e.quaternion.copy(this.originObject3D.quaternion);
|
|
19161
|
-
}
|
|
19162
19152
|
applyMatrix4(e) {
|
|
19163
19153
|
var n;
|
|
19164
19154
|
super.applyMatrix4(e), this.helperObject.applyMatrix4(e), (n = this.plane) == null || n.applyMatrix4(e), this.cornerPositions.forEach((o) => o.applyMatrix4(e));
|
|
@@ -19211,7 +19201,7 @@ class Vv extends xv {
|
|
|
19211
19201
|
this.disable(), this.css3DRenderer.dispose();
|
|
19212
19202
|
}
|
|
19213
19203
|
initRectangleScaleHelper() {
|
|
19214
|
-
var a;
|
|
19204
|
+
var a, l;
|
|
19215
19205
|
const e = this.getCornerPositions();
|
|
19216
19206
|
if (!e)
|
|
19217
19207
|
return;
|
|
@@ -19221,11 +19211,11 @@ class Vv extends xv {
|
|
|
19221
19211
|
return;
|
|
19222
19212
|
this.css3DInstance = n, n.appendToElement(this.container);
|
|
19223
19213
|
const o = n.css3DObject.container, { container: s, squares: r } = jv();
|
|
19224
|
-
this.points = r.map((
|
|
19225
|
-
direction:
|
|
19226
|
-
point:
|
|
19227
|
-
position: this.calculatePointPosition(e)[
|
|
19228
|
-
})), o.insertBefore(s, (a = o.children[0]) != null ? a : null), this.
|
|
19214
|
+
this.points = r.map((c, u) => ({
|
|
19215
|
+
direction: c.direction,
|
|
19216
|
+
point: c.element,
|
|
19217
|
+
position: this.calculatePointPosition(e)[u]
|
|
19218
|
+
})), o.insertBefore(s, (a = o.children[0]) != null ? a : null), this.helperObject.position.copy(this.originObject3D.position), (l = this.plane) == null || l.position.copy(this.originObject3D.position);
|
|
19229
19219
|
}
|
|
19230
19220
|
getCornerPositions() {
|
|
19231
19221
|
const { originObject3D: e } = this;
|
|
@@ -19407,13 +19397,13 @@ class Rv extends Ln {
|
|
|
19407
19397
|
return s;
|
|
19408
19398
|
}
|
|
19409
19399
|
})(), u = n.point.clone(), h = new E.Plane();
|
|
19410
|
-
h.setFromNormalAndCoplanarPoint(c, u), this.startInfo = { startVectorProject: u.clone().projectOnVector(l), directionVector: l, plane: h }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0
|
|
19400
|
+
h.setFromNormalAndCoplanarPoint(c, u), this.startInfo = { startVectorProject: u.clone().projectOnVector(l), directionVector: l, plane: h }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0;
|
|
19411
19401
|
}
|
|
19412
19402
|
dragging(e) {
|
|
19413
19403
|
if (!this.isDragging || !this.startInfo)
|
|
19414
19404
|
return;
|
|
19415
19405
|
const n = Eo(this.camera, e, this.container);
|
|
19416
|
-
return n ? (
|
|
19406
|
+
return n ? (this.move(n), !1) : this.dragEnd();
|
|
19417
19407
|
}
|
|
19418
19408
|
move(e) {
|
|
19419
19409
|
if (!this.startInfo)
|
|
@@ -19424,10 +19414,10 @@ class Rv extends Ln {
|
|
|
19424
19414
|
const l = a.clone().projectOnVector(o), c = l.clone().sub(s), u = new E.Matrix4();
|
|
19425
19415
|
u.setPosition(c);
|
|
19426
19416
|
const h = r.position.clone().applyMatrix4(u);
|
|
19427
|
-
this.hooks.emit("wantToMove", h) || (r.applyMatrix4(u), s.copy(l), this.hooks.emit("applyObjectPosition", {
|
|
19417
|
+
this.hooks.emit("wantToMove", h) || (r.applyMatrix4(u), s.copy(l), this.hooks.emit("applyObjectPosition", { matrix: u }), this.hooks.emit("move", h));
|
|
19428
19418
|
}
|
|
19429
19419
|
dragEnd() {
|
|
19430
|
-
!this.isDragging || (
|
|
19420
|
+
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
|
|
19431
19421
|
}
|
|
19432
19422
|
}
|
|
19433
19423
|
class ln {
|
|
@@ -19618,14 +19608,13 @@ class _v extends Ln {
|
|
|
19618
19608
|
})(), d = new E.Plane().setFromNormalAndCoplanarPoint(h, s), f = new E.Vector3();
|
|
19619
19609
|
d.projectPoint(s.clone(), f);
|
|
19620
19610
|
const p = f.clone().sub(this.rotateCenter), v = p.clone(), g = p.angleTo(r.baseAxes);
|
|
19621
|
-
this.setAngleHelperStart(o, g), this.setAngleHelperLength(o, 0), this.rotations.push({ vector: p.clone(), direction: !0 }), this.startInfo = { direction: o, startVector: p, staticStartVector: v, plane: d, angleHelper: r }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("rotateStart"), this.isDragging = !0
|
|
19611
|
+
this.setAngleHelperStart(o, g), this.setAngleHelperLength(o, 0), this.rotations.push({ vector: p.clone(), direction: !0 }), this.startInfo = { direction: o, startVector: p, staticStartVector: v, plane: d, angleHelper: r }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("rotateStart"), this.isDragging = !0;
|
|
19622
19612
|
}
|
|
19623
19613
|
dragging(e) {
|
|
19624
|
-
var o;
|
|
19625
19614
|
if (!this.isDragging)
|
|
19626
19615
|
return;
|
|
19627
19616
|
const n = Eo(this.camera, e, this.container);
|
|
19628
|
-
return n ? (
|
|
19617
|
+
return n ? (this.rotate(n), !1) : this.dragEnd();
|
|
19629
19618
|
}
|
|
19630
19619
|
rotate(e) {
|
|
19631
19620
|
if (!this.startInfo)
|
|
@@ -19642,12 +19631,12 @@ class _v extends Ln {
|
|
|
19642
19631
|
if (this.rotations.length === 1)
|
|
19643
19632
|
return h.angleTo(s.baseAxes) > r.angleTo(s.baseAxes);
|
|
19644
19633
|
{
|
|
19645
|
-
const A = this.rotations[this.rotations.length - 1],
|
|
19646
|
-
if (x === 0 || C === 0 ||
|
|
19634
|
+
const A = this.rotations[this.rotations.length - 1], w = this.rotations[this.rotations.length - 2], y = h.angleTo(w.vector), C = h.angleTo(A.vector), x = A.vector.angleTo(w.vector);
|
|
19635
|
+
if (x === 0 || C === 0 || y === 0)
|
|
19647
19636
|
return;
|
|
19648
|
-
if (
|
|
19637
|
+
if (y > C && y > x)
|
|
19649
19638
|
return A.direction;
|
|
19650
|
-
if (
|
|
19639
|
+
if (y < x && C < x || y < C && C > x)
|
|
19651
19640
|
return !A.direction;
|
|
19652
19641
|
}
|
|
19653
19642
|
})();
|
|
@@ -19663,7 +19652,7 @@ class _v extends Ln {
|
|
|
19663
19652
|
}
|
|
19664
19653
|
}
|
|
19665
19654
|
dragEnd() {
|
|
19666
|
-
!this.isDragging || (
|
|
19655
|
+
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.lastRotation = void 0, this.rotations = [], this.helperObject3D.show(), this.hooks.emit("rotateEnd"));
|
|
19667
19656
|
}
|
|
19668
19657
|
getAngleHelper(e) {
|
|
19669
19658
|
switch (e) {
|
|
@@ -19725,7 +19714,11 @@ class Xv extends Ln {
|
|
|
19725
19714
|
hide() {
|
|
19726
19715
|
this.helperObject3D.hide(), super.hide();
|
|
19727
19716
|
}
|
|
19717
|
+
onApplyOriginObjectPosition(e) {
|
|
19718
|
+
this.isDragging || super.onApplyOriginObjectPosition(e);
|
|
19719
|
+
}
|
|
19728
19720
|
onApplyOriginObjectScale(e) {
|
|
19721
|
+
this.helperObject3D.applyHelperScaleMatrix4(e.matrix, e.origin);
|
|
19729
19722
|
}
|
|
19730
19723
|
getDragPlane() {
|
|
19731
19724
|
const e = new E.Plane(), n = this.helperObject3D.cornerPositions;
|
|
@@ -19738,7 +19731,7 @@ class Xv extends Ln {
|
|
|
19738
19731
|
const o = this.getDragPlane();
|
|
19739
19732
|
if (!o)
|
|
19740
19733
|
return this.dragEnd();
|
|
19741
|
-
this.startInfo = { startPoint: { position: n.position.clone(), direction: n.direction }, plane: o }, this.hooks.emit("scaleStart"), this.render(), this.isDragging = !0
|
|
19734
|
+
this.startInfo = { startPoint: { position: n.position.clone(), direction: n.direction }, plane: o }, this.hooks.emit("scaleStart"), this.render(), this.isDragging = !0;
|
|
19742
19735
|
}
|
|
19743
19736
|
dragging(e) {
|
|
19744
19737
|
if (!this.isDragging)
|
|
@@ -19746,7 +19739,7 @@ class Xv extends Ln {
|
|
|
19746
19739
|
const n = Eo(this.camera, e, this.container);
|
|
19747
19740
|
if (!n)
|
|
19748
19741
|
return this.dragEnd();
|
|
19749
|
-
this.scale(n)
|
|
19742
|
+
this.scale(n);
|
|
19750
19743
|
}
|
|
19751
19744
|
scale(e) {
|
|
19752
19745
|
var j, N;
|
|
@@ -19799,13 +19792,13 @@ class Xv extends Ln {
|
|
|
19799
19792
|
case "nwse":
|
|
19800
19793
|
g(), A();
|
|
19801
19794
|
}
|
|
19802
|
-
const
|
|
19795
|
+
const w = new $().subVectors(r[1], r[0]).length() / h.length(), y = new $().subVectors(r[3], r[0]).length() / d.length(), C = new $(w, y, 1), x = new E.Matrix4().scale(C);
|
|
19803
19796
|
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(x) : n.scale.applyMatrix4(x), o.position.copy(a);
|
|
19804
19797
|
const I = new $().addVectors(r[0], r[2]).divideScalar(2), S = new $().subVectors(I, l), k = new E.Matrix4().setPosition(S);
|
|
19805
|
-
n.applyMatrix4(k), (j = this.helperObject3D.css3DInstance) == null || j.css3DObject.applyMatrix4(k), (N = this.helperObject3D.plane) == null || N.applyMatrix4(k), this.hooks.emit("applyObjectScale", {
|
|
19798
|
+
n.applyMatrix4(k), (j = this.helperObject3D.css3DInstance) == null || j.css3DObject.applyMatrix4(k), (N = this.helperObject3D.plane) == null || N.applyMatrix4(k), this.hooks.emit("applyObjectScale", { matrix: x }), this.hooks.emit("applyObjectPosition", { matrix: k }), this.render();
|
|
19806
19799
|
}
|
|
19807
19800
|
dragEnd() {
|
|
19808
|
-
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render()
|
|
19801
|
+
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
|
|
19809
19802
|
}
|
|
19810
19803
|
}
|
|
19811
19804
|
class Yv extends Xv {
|
|
@@ -19913,11 +19906,11 @@ class $v extends mi {
|
|
|
19913
19906
|
o.addControllers({ scaleController: v.helperController }), s.push(() => v.dispose()), ga(this.five).then(() => {
|
|
19914
19907
|
var g, A;
|
|
19915
19908
|
if (e.isCSS3DObjectPlus) {
|
|
19916
|
-
const
|
|
19917
|
-
if (!
|
|
19909
|
+
const w = e;
|
|
19910
|
+
if (!w || w.mode !== "front")
|
|
19918
19911
|
return;
|
|
19919
|
-
const
|
|
19920
|
-
|
|
19912
|
+
const y = (g = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? g : Aa(this.five);
|
|
19913
|
+
y && (this.css3DObjectParentMap.set(w, w.parent), w.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(y), (A = this.css3DRender.getBehindCSS3DObjectGroup()) == null || A.add(w), this.css3DRender.render(this.five.camera));
|
|
19921
19914
|
}
|
|
19922
19915
|
});
|
|
19923
19916
|
} else {
|