@realsee/dnalogel 2.14.1 → 2.14.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +3 -2
- package/dist/index.cjs.js +19 -19
- package/dist/index.js +629 -615
- package/dist/index.umd.js +19 -19
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- 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 +46 -46
- 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 +19 -19
- 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/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/PanoVideoPlugin.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/ImagePlaneGroup.html +6 -6
- 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 +14 -14
- 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/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.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/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- 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/PanoVideoPluginType.html +5 -5
- 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 +5 -5
- 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/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.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/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/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/Components/Common/Media.js +31 -29
- package/libs/PanoTagPlugin/controller/TagRender.js +73 -73
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +46 -34
- package/libs/PanoTagPlugin/controller/index.js +8 -8
- package/libs/base/BasePlugin.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -355,8 +355,8 @@ class Rc extends Oc {
|
|
|
355
355
|
n.strokeStyle = o;
|
|
356
356
|
let s = null, r = [], a, l = [], c = 0;
|
|
357
357
|
const u = (d, h, f) => {
|
|
358
|
-
const
|
|
359
|
-
n.strokeStyle =
|
|
358
|
+
const A = this.color || "#ff0000";
|
|
359
|
+
n.strokeStyle = A, n.beginPath(), n.moveTo(d.x, d.y), n.quadraticCurveTo(h.x, h.y, f.x, f.y), n.stroke();
|
|
360
360
|
};
|
|
361
361
|
e.onmousedown = (d) => {
|
|
362
362
|
d.preventDefault(), c = Date.now();
|
|
@@ -368,8 +368,8 @@ class Rc extends Oc {
|
|
|
368
368
|
const h = Number(d.clientX), f = Number(d.clientY);
|
|
369
369
|
if (Math.abs(h - s.x) < 5 && Math.abs(f - s.y) < 5 || (r.push({ x: h, y: f }), l.push(Qn({ x: h, y: f }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
370
370
|
return;
|
|
371
|
-
const { control:
|
|
372
|
-
!
|
|
371
|
+
const { control: A, end: g } = Rn(r);
|
|
372
|
+
!A || !g || (u(s, A, g), s = g);
|
|
373
373
|
}, e.onmouseup = (d) => {
|
|
374
374
|
if (d.preventDefault(), s = null, r.length < 3)
|
|
375
375
|
return;
|
|
@@ -400,8 +400,8 @@ class Rc extends Oc {
|
|
|
400
400
|
const h = Number(d.touches[0].clientX), f = Number(d.touches[0].clientY);
|
|
401
401
|
if (Math.abs(h - s.x) < 5 && Math.abs(f - s.y) < 5 || (r.push({ x: h, y: f }), l.push(Qn({ x: h, y: f }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
402
402
|
return;
|
|
403
|
-
const { control:
|
|
404
|
-
!
|
|
403
|
+
const { control: A, end: g } = Rn(r);
|
|
404
|
+
!A || !g || (u(s, A, g), s = g);
|
|
405
405
|
}, e.ontouchend = e.ontouchcancel = (d) => {
|
|
406
406
|
if (d.preventDefault(), s = null, r.length < 3)
|
|
407
407
|
return;
|
|
@@ -487,15 +487,15 @@ class Rc extends Oc {
|
|
|
487
487
|
const { line: l = [], color: c = "black", duration: u = 0, uuid: d } = n, h = Si(n.move || {}, this.clientWidth, this.clientHeight);
|
|
488
488
|
let f = [h];
|
|
489
489
|
if (a.strokeStyle = c, a.beginPath(), a.moveTo(h.x, h.y), u && !o) {
|
|
490
|
-
let
|
|
490
|
+
let A = [];
|
|
491
491
|
const g = this;
|
|
492
492
|
g.tween = jc({ step: 0 }, { step: l.length - 1 }, u).onUpdate(({ step: p }) => {
|
|
493
493
|
var b;
|
|
494
494
|
if (g.tweening = !0, !g.ready)
|
|
495
495
|
return a.clearRect(0, 0, g.canvas[d].width, g.canvas[d].height), (b = g.tween) == null ? void 0 : b.stop();
|
|
496
|
-
const
|
|
497
|
-
if (!
|
|
498
|
-
if (
|
|
496
|
+
const v = Math.floor(p);
|
|
497
|
+
if (!A.find((w) => w === v)) {
|
|
498
|
+
if (A.push(v), f.push(Si(l[v], g.clientWidth, g.clientHeight)), f.length < 3)
|
|
499
499
|
return;
|
|
500
500
|
const { control: w, end: E } = Rn(f);
|
|
501
501
|
if (!w || !E)
|
|
@@ -503,11 +503,11 @@ class Rc extends Oc {
|
|
|
503
503
|
a.quadraticCurveTo(w.x, w.y, E.x, E.y), a.stroke();
|
|
504
504
|
}
|
|
505
505
|
}).onComplete((p) => {
|
|
506
|
-
g.tween = void 0, g.tweening = !1,
|
|
506
|
+
g.tween = void 0, g.tweening = !1, A = [], f = [], s && s(), r();
|
|
507
507
|
});
|
|
508
508
|
} else {
|
|
509
|
-
for (let
|
|
510
|
-
if (f.push(Si(l[
|
|
509
|
+
for (let A = 0; A < l.length; A++) {
|
|
510
|
+
if (f.push(Si(l[A], this.clientWidth, this.clientHeight)), f.length < 3)
|
|
511
511
|
continue;
|
|
512
512
|
const { control: g, end: p } = Rn(f);
|
|
513
513
|
!g || !p || a.quadraticCurveTo(g.x, g.y, p.x, p.y);
|
|
@@ -616,7 +616,7 @@ const gb = (i, t) => {
|
|
|
616
616
|
return X.children.forEach((ee) => G.add(W(ee))), G;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
},
|
|
619
|
+
}, A = () => {
|
|
620
620
|
if (!!i.renderer)
|
|
621
621
|
return s || (s = new C.WebGLRenderer({ antialias: !1, alpha: !0 }), s.setPixelRatio(i.renderer.getPixelRatio()), s.outputEncoding = C.sRGBEncoding, s.setClearColor(1579548, 0), s.autoClear = !0), s;
|
|
622
622
|
}, g = () => {
|
|
@@ -625,12 +625,12 @@ const gb = (i, t) => {
|
|
|
625
625
|
}), l.remove(u), u = new C.Object3D(), l.add(u), n = !1, D();
|
|
626
626
|
}, p = () => {
|
|
627
627
|
!e || n || f();
|
|
628
|
-
},
|
|
628
|
+
}, v = () => {
|
|
629
629
|
e || (e = !0, l.add(u), !n && i.model.loaded && f(), D());
|
|
630
630
|
}, b = () => {
|
|
631
631
|
!e || (l.remove(u), o = !0, k(), e = !1);
|
|
632
632
|
}, w = (R, W = {}) => {
|
|
633
|
-
const X =
|
|
633
|
+
const X = A();
|
|
634
634
|
if (!X)
|
|
635
635
|
return;
|
|
636
636
|
R.appendChild(X.domElement), E(W);
|
|
@@ -671,7 +671,7 @@ const gb = (i, t) => {
|
|
|
671
671
|
}, O = () => ({
|
|
672
672
|
enabled: e
|
|
673
673
|
});
|
|
674
|
-
return Object.assign(window, { camera: c }), i.on("modelLoaded", p), i.on("modelWillLoad", g), i.on("cameraDirectionUpdate", D), i.on("dispose", V), i.on("renderFrame", k), i.on("cameraPositionUpdate", D), { appendTo: w, refresh: E, changeConfigs: _, enable:
|
|
674
|
+
return Object.assign(window, { camera: c }), i.on("modelLoaded", p), i.on("modelWillLoad", g), i.on("cameraDirectionUpdate", D), i.on("dispose", V), i.on("renderFrame", k), i.on("cameraPositionUpdate", D), { appendTo: w, refresh: E, changeConfigs: _, enable: v, disable: b, getCurrentState: O };
|
|
675
675
|
};
|
|
676
676
|
function gt(...i) {
|
|
677
677
|
const t = [];
|
|
@@ -808,16 +808,16 @@ class Uc extends Zi {
|
|
|
808
808
|
constructor(e) {
|
|
809
809
|
var L, I, D;
|
|
810
810
|
const n = e.container, o = e.cornerPoints, s = (L = e.ratio) != null ? L : Yc, r = (I = e.dpr) != null ? I : 1, a = (D = e.pointerEvents) != null ? D : "auto", l = Math.max(Xc, s), c = o[0].distanceTo(o[1]), u = o[1].distanceTo(o[2]), d = si(c / s * r), h = si(u / s * r), f = Mn(...o);
|
|
811
|
-
let
|
|
811
|
+
let A;
|
|
812
812
|
if (l === s)
|
|
813
|
-
n.style.width = `${d}px`, n.style.height = `${h}px`,
|
|
813
|
+
n.style.width = `${d}px`, n.style.height = `${h}px`, A = n;
|
|
814
814
|
else {
|
|
815
815
|
const k = document.createElement("div");
|
|
816
816
|
k.style.width = `${d}px`, k.style.height = `${h}px`, k.style.pointerEvents = "none";
|
|
817
817
|
const V = s / l;
|
|
818
|
-
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${V * d}px`, n.style.height = `${V * h}px`, k.appendChild(n),
|
|
818
|
+
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${V * d}px`, n.style.height = `${V * h}px`, k.appendChild(n), A = k;
|
|
819
819
|
}
|
|
820
|
-
super(
|
|
820
|
+
super(A);
|
|
821
821
|
m(this, "version", Da);
|
|
822
822
|
m(this, "isCSS3DObjectPlus", !0);
|
|
823
823
|
m(this, "container");
|
|
@@ -857,8 +857,8 @@ class Uc extends Zi {
|
|
|
857
857
|
this.width = k * c, this.height = k * u, this.domWidthPx = k * d, this.domHeightPx = k * h, this.centerPosition = new U().subVectors(f, o[0]).multiplyScalar(k).add(o[0]);
|
|
858
858
|
}
|
|
859
859
|
n.classList.add(`${Nc}__container`);
|
|
860
|
-
const g = new U().subVectors(o[1], o[0]), p = new U().subVectors(o[3], o[0]),
|
|
861
|
-
this.lookAt(
|
|
860
|
+
const g = new U().subVectors(o[1], o[0]), p = new U().subVectors(o[3], o[0]), v = new U().crossVectors(g, p).normalize();
|
|
861
|
+
this.lookAt(v);
|
|
862
862
|
const b = this.up.clone().applyQuaternion(this.quaternion), w = p.clone(), E = new U().crossVectors(b, w).normalize();
|
|
863
863
|
this.rotateOnWorldAxis(E, b.angleTo(w)), this.position.copy(f), this.addEventListener("added", () => {
|
|
864
864
|
var k;
|
|
@@ -1030,14 +1030,14 @@ class In {
|
|
|
1030
1030
|
let h = !1;
|
|
1031
1031
|
const f = this.createObject(s, { ratio: r, dpr: a, container: u, mode: l, pointerEvents: d });
|
|
1032
1032
|
De.css3DObjects.push(f), o.scene && this.setScene(o.scene);
|
|
1033
|
-
const
|
|
1033
|
+
const A = () => {
|
|
1034
1034
|
if (h)
|
|
1035
1035
|
return;
|
|
1036
1036
|
const E = f.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
|
|
1037
1037
|
!E || E.add(f);
|
|
1038
1038
|
}, g = () => {
|
|
1039
|
-
h || (
|
|
1040
|
-
}, p = (E) => this.setVisibleById(f.id, E),
|
|
1039
|
+
h || (A(), this.render(t), this.hooks.emit("render"));
|
|
1040
|
+
}, p = (E) => this.setVisibleById(f.id, E), v = (E) => this.setEnabledById(f.id, E), b = () => (h = !0, f.removeFromParent(), !0), w = l === "front" ? De.frontModeStore.css3DRenderer : De.behindModeStore.css3DRenderer;
|
|
1041
1041
|
return c && g(), {
|
|
1042
1042
|
id: f.uuid,
|
|
1043
1043
|
container: u,
|
|
@@ -1046,9 +1046,9 @@ class In {
|
|
|
1046
1046
|
show: () => p(!0),
|
|
1047
1047
|
hide: () => p(!1),
|
|
1048
1048
|
setVisible: p,
|
|
1049
|
-
enable: () =>
|
|
1050
|
-
disable: () =>
|
|
1051
|
-
setEnabled:
|
|
1049
|
+
enable: () => v(!0),
|
|
1050
|
+
disable: () => v(!1),
|
|
1051
|
+
setEnabled: v,
|
|
1052
1052
|
dispose: b,
|
|
1053
1053
|
appendToElement: (E) => w.setWrapper(E)
|
|
1054
1054
|
};
|
|
@@ -1340,16 +1340,16 @@ const Ab = (i) => {
|
|
|
1340
1340
|
new U(0, 0, 1)
|
|
1341
1341
|
)
|
|
1342
1342
|
), i.scene.add(p), i.needsRender = !0;
|
|
1343
|
-
const
|
|
1343
|
+
const v = () => {
|
|
1344
1344
|
i.scene.remove(p);
|
|
1345
1345
|
};
|
|
1346
|
-
return t.disposers.push(
|
|
1346
|
+
return t.disposers.push(v), { clear: v, pointAxesHelperMesh: p };
|
|
1347
1347
|
}, s = (u, d = 0) => {
|
|
1348
|
-
var
|
|
1349
|
-
const h = (
|
|
1348
|
+
var v, b;
|
|
1349
|
+
const h = (v = i == null ? void 0 : i.camera) == null ? void 0 : v.position;
|
|
1350
1350
|
if (!h)
|
|
1351
1351
|
return !1;
|
|
1352
|
-
const f = u.distanceTo(h),
|
|
1352
|
+
const f = u.distanceTo(h), A = u.sub(h).normalize(), g = new Mt(h, A), p = (b = i.model.intersectRaycaster(g)) == null ? void 0 : b[0];
|
|
1353
1353
|
return !(p && p.distance + d < f);
|
|
1354
1354
|
}, r = () => t.intersection, a = () => {
|
|
1355
1355
|
var u, d;
|
|
@@ -1599,13 +1599,13 @@ function Ga(i, t, e, n, o, s, r, a = 0) {
|
|
|
1599
1599
|
let c = `{
|
|
1600
1600
|
`;
|
|
1601
1601
|
for (let p = 0; p <= 1; p += l) {
|
|
1602
|
-
const
|
|
1603
|
-
c += p * 100 + `%{${r(
|
|
1602
|
+
const v = t + (e - t) * s(p);
|
|
1603
|
+
c += p * 100 + `%{${r(v, 1 - v)}}
|
|
1604
1604
|
`;
|
|
1605
1605
|
}
|
|
1606
1606
|
const u = c + `100% {${r(e, 1 - e)}}
|
|
1607
|
-
}`, d = `__svelte_${lu(u)}_${a}`, h = go(i), { stylesheet: f, rules:
|
|
1608
|
-
|
|
1607
|
+
}`, d = `__svelte_${lu(u)}_${a}`, h = go(i), { stylesheet: f, rules: A } = ai.get(h) || cu(h, i);
|
|
1608
|
+
A[d] || (A[d] = !0, f.insertRule(`@keyframes ${d} ${u}`, f.cssRules.length));
|
|
1609
1609
|
const g = i.style.animation || "";
|
|
1610
1610
|
return i.style.animation = `${g ? `${g}, ` : ""}${d} ${n}ms linear ${o}ms 1 both`, li += 1, d;
|
|
1611
1611
|
}
|
|
@@ -1750,16 +1750,16 @@ function Tt(i, t, e) {
|
|
|
1750
1750
|
s && $i(i, s);
|
|
1751
1751
|
}
|
|
1752
1752
|
function c() {
|
|
1753
|
-
const { delay: d = 0, duration: h = 300, easing: f = At, tick:
|
|
1754
|
-
g && (s = Ga(i, 0, 1, h, d, f, g, a++)),
|
|
1755
|
-
const p = Va() + d,
|
|
1753
|
+
const { delay: d = 0, duration: h = 300, easing: f = At, tick: A = N, css: g } = n || Ua;
|
|
1754
|
+
g && (s = Ga(i, 0, 1, h, d, f, g, a++)), A(0, 1);
|
|
1755
|
+
const p = Va() + d, v = p + h;
|
|
1756
1756
|
r && r.abort(), o = !0, Qe(() => ci(i, !0, "start")), r = Qa((b) => {
|
|
1757
1757
|
if (o) {
|
|
1758
|
-
if (b >=
|
|
1759
|
-
return
|
|
1758
|
+
if (b >= v)
|
|
1759
|
+
return A(1, 0), ci(i, !0, "end"), l(), o = !1;
|
|
1760
1760
|
if (b >= p) {
|
|
1761
1761
|
const w = f((b - p) / h);
|
|
1762
|
-
|
|
1762
|
+
A(w, 1 - w);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
1765
|
return o;
|
|
@@ -1785,10 +1785,10 @@ function sn(i, t, e) {
|
|
|
1785
1785
|
function a() {
|
|
1786
1786
|
const { delay: l = 0, duration: c = 300, easing: u = At, tick: d = N, css: h } = n || Ua;
|
|
1787
1787
|
h && (s = Ga(i, 1, 0, c, l, u, h));
|
|
1788
|
-
const f = Va() + l,
|
|
1788
|
+
const f = Va() + l, A = f + c;
|
|
1789
1789
|
Qe(() => ci(i, !1, "start")), Qa((g) => {
|
|
1790
1790
|
if (o) {
|
|
1791
|
-
if (g >=
|
|
1791
|
+
if (g >= A)
|
|
1792
1792
|
return d(0, 1), ci(i, !1, "end"), --r.r || He(r.c), !1;
|
|
1793
1793
|
if (g >= f) {
|
|
1794
1794
|
const p = u((g - f) / c);
|
|
@@ -1851,15 +1851,15 @@ function It(i, t) {
|
|
|
1851
1851
|
});
|
|
1852
1852
|
}
|
|
1853
1853
|
function Ke(i, t, e, n, o, s, r, a, l, c, u, d) {
|
|
1854
|
-
let h = i.length, f = s.length,
|
|
1854
|
+
let h = i.length, f = s.length, A = h;
|
|
1855
1855
|
const g = {};
|
|
1856
|
-
for (;
|
|
1857
|
-
g[i[
|
|
1858
|
-
const p = [],
|
|
1859
|
-
for (
|
|
1860
|
-
const I = d(o, s,
|
|
1856
|
+
for (; A--; )
|
|
1857
|
+
g[i[A].key] = A;
|
|
1858
|
+
const p = [], v = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
1859
|
+
for (A = f; A--; ) {
|
|
1860
|
+
const I = d(o, s, A), D = e(I);
|
|
1861
1861
|
let k = r.get(D);
|
|
1862
|
-
k ? n && k.p(I, t) : (k = c(D, I), k.c()),
|
|
1862
|
+
k ? n && k.p(I, t) : (k = c(D, I), k.c()), v.set(D, p[A] = k), D in g && b.set(D, Math.abs(A - g[D]));
|
|
1863
1863
|
}
|
|
1864
1864
|
const w = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set();
|
|
1865
1865
|
function L(I) {
|
|
@@ -1867,11 +1867,11 @@ function Ke(i, t, e, n, o, s, r, a, l, c, u, d) {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
for (; h && f; ) {
|
|
1869
1869
|
const I = p[f - 1], D = i[h - 1], k = I.key, V = D.key;
|
|
1870
|
-
I === D ? (u = I.first, h--, f--) :
|
|
1870
|
+
I === D ? (u = I.first, h--, f--) : v.has(V) ? !r.has(k) || w.has(k) ? L(I) : E.has(V) ? h-- : b.get(k) > b.get(V) ? (E.add(k), L(I)) : (w.add(V), h--) : (l(D, r), h--);
|
|
1871
1871
|
}
|
|
1872
1872
|
for (; h--; ) {
|
|
1873
1873
|
const I = i[h];
|
|
1874
|
-
|
|
1874
|
+
v.has(I.key) || l(I, r);
|
|
1875
1875
|
}
|
|
1876
1876
|
for (; f; )
|
|
1877
1877
|
L(p[f - 1]);
|
|
@@ -1944,8 +1944,8 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
|
|
|
1944
1944
|
r && r(c.root);
|
|
1945
1945
|
let u = !1;
|
|
1946
1946
|
if (c.ctx = e ? e(i, t.props || {}, (d, h, ...f) => {
|
|
1947
|
-
const
|
|
1948
|
-
return c.ctx && o(c.ctx[d], c.ctx[d] =
|
|
1947
|
+
const A = f.length ? f[0] : h;
|
|
1948
|
+
return c.ctx && o(c.ctx[d], c.ctx[d] = A) && (!c.skip_bound && c.bound[d] && c.bound[d](A), u && pu(i, d)), h;
|
|
1949
1949
|
}) : [], c.update(), u = !0, He(c.before_update), c.fragment = n ? n(c.ctx) : !1, t.target) {
|
|
1950
1950
|
if (t.hydrate) {
|
|
1951
1951
|
const d = ru(t.target);
|
|
@@ -2284,8 +2284,8 @@ function rn(i) {
|
|
|
2284
2284
|
new Qu((e, n) => {
|
|
2285
2285
|
var o, s, r, a, l, c;
|
|
2286
2286
|
for (const u of e) {
|
|
2287
|
-
const { borderBoxSize: d, contentRect: h } = u, f = (r = (s = (o = d == null ? void 0 : d[0]) == null ? void 0 : o.inlineSize) != null ? s : h.width) != null ? r : i.clientWidth,
|
|
2288
|
-
i.dispatchEvent(new CustomEvent("clientWidth", { detail: f })), i.dispatchEvent(new CustomEvent("clientHeight", { detail:
|
|
2287
|
+
const { borderBoxSize: d, contentRect: h } = u, f = (r = (s = (o = d == null ? void 0 : d[0]) == null ? void 0 : o.inlineSize) != null ? s : h.width) != null ? r : i.clientWidth, A = (c = (l = (a = d == null ? void 0 : d[0]) == null ? void 0 : a.blockSize) != null ? l : h.height) != null ? c : i.clientHeight;
|
|
2288
|
+
i.dispatchEvent(new CustomEvent("clientWidth", { detail: f })), i.dispatchEvent(new CustomEvent("clientHeight", { detail: A }));
|
|
2289
2289
|
}
|
|
2290
2290
|
}).observe(i);
|
|
2291
2291
|
}
|
|
@@ -2379,20 +2379,20 @@ function Hu(i) {
|
|
|
2379
2379
|
function Gu(i, t, e) {
|
|
2380
2380
|
var p;
|
|
2381
2381
|
let n, { five: o } = t, { roomLabels: s } = t, r, a, l = (p = o.model.shownFloor) != null ? p : null;
|
|
2382
|
-
function c(
|
|
2383
|
-
if (!(l === null ||
|
|
2382
|
+
function c(v) {
|
|
2383
|
+
if (!(l === null || v.floorIndex === l))
|
|
2384
2384
|
return !1;
|
|
2385
|
-
const w = new Mt(), E = o.camera.position.clone(), L = new U(
|
|
2385
|
+
const w = new Mt(), E = o.camera.position.clone(), L = new U(v.position.x, v.position.y, v.position.z), I = L.distanceTo(E);
|
|
2386
2386
|
w.set(E.clone(), L.clone().sub(E).normalize());
|
|
2387
2387
|
const [D] = o.model.intersectRaycaster(w);
|
|
2388
2388
|
return !(D && D.distance + 1 < I);
|
|
2389
2389
|
}
|
|
2390
|
-
function u(
|
|
2391
|
-
const E = new U(
|
|
2390
|
+
function u(v, b) {
|
|
2391
|
+
const E = new U(v.position.x, v.position.y, v.position.z).clone().project(o.camera), L = Math.ceil((E.x + 1) / 2 * b.x), I = Math.ceil((-E.y + 1) / 2 * b.y);
|
|
2392
2392
|
return `translate(${L}px, ${I}px)`;
|
|
2393
2393
|
}
|
|
2394
|
-
function d(
|
|
2395
|
-
const { rendererSize: b, shownFloor: w } =
|
|
2394
|
+
function d(v) {
|
|
2395
|
+
const { rendererSize: b, shownFloor: w } = v, E = /* @__PURE__ */ new Map();
|
|
2396
2396
|
function L(D) {
|
|
2397
2397
|
const k = E.get(D.id);
|
|
2398
2398
|
if (k)
|
|
@@ -2408,21 +2408,21 @@ function Gu(i, t, e) {
|
|
|
2408
2408
|
function h() {
|
|
2409
2409
|
e(0, s = d({ rendererSize: n, shownFloor: l }));
|
|
2410
2410
|
}
|
|
2411
|
-
function f(
|
|
2412
|
-
e(4, l =
|
|
2411
|
+
function f(v) {
|
|
2412
|
+
e(4, l = v);
|
|
2413
2413
|
}
|
|
2414
2414
|
o.on("cameraUpdate", h), o.on("modelShownFloorChange", f), _a(() => {
|
|
2415
2415
|
e(0, s = d({ rendererSize: n, shownFloor: l }));
|
|
2416
2416
|
}), Pt(() => {
|
|
2417
2417
|
o.off("cameraUpdate", h), o.off("modelShownFloorChange", f);
|
|
2418
2418
|
});
|
|
2419
|
-
const
|
|
2420
|
-
e(2, r =
|
|
2421
|
-
}, g = (
|
|
2422
|
-
e(3, a =
|
|
2419
|
+
const A = (v) => {
|
|
2420
|
+
e(2, r = v.detail);
|
|
2421
|
+
}, g = (v) => {
|
|
2422
|
+
e(3, a = v.detail);
|
|
2423
2423
|
};
|
|
2424
|
-
return i.$$set = (
|
|
2425
|
-
"five" in
|
|
2424
|
+
return i.$$set = (v) => {
|
|
2425
|
+
"five" in v && e(1, o = v.five), "roomLabels" in v && e(0, s = v.roomLabels);
|
|
2426
2426
|
}, i.$$.update = () => {
|
|
2427
2427
|
i.$$.dirty & 12 && e(5, n = { x: r, y: a }), i.$$.dirty & 48 && e(0, s = d({ rendererSize: n, shownFloor: l }));
|
|
2428
2428
|
}, [
|
|
@@ -2432,7 +2432,7 @@ function Gu(i, t, e) {
|
|
|
2432
2432
|
a,
|
|
2433
2433
|
l,
|
|
2434
2434
|
n,
|
|
2435
|
-
|
|
2435
|
+
A,
|
|
2436
2436
|
g
|
|
2437
2437
|
];
|
|
2438
2438
|
}
|
|
@@ -2641,7 +2641,7 @@ function Ku(i) {
|
|
|
2641
2641
|
}
|
|
2642
2642
|
function $u(i, t, e) {
|
|
2643
2643
|
let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
|
|
2644
|
-
const { observers: a } = o, l = a[n], c = l.positionInImage.x, u = l.positionInImage.y, d = c * 100 + "%", h = u * 100 + "%", f = -il(s) + 45,
|
|
2644
|
+
const { observers: a } = o, l = a[n], c = l.positionInImage.x, u = l.positionInImage.y, d = c * 100 + "%", h = u * 100 + "%", f = -il(s) + 45, A = document.body.clientWidth, g = document.body.clientHeight, v = `${(A < 500 || g < 500 ? 17 : 37) / 16}rem`;
|
|
2645
2645
|
return i.$$set = (b) => {
|
|
2646
2646
|
"panoIndex" in b && e(5, n = b.panoIndex), "floorplanData" in b && e(6, o = b.floorplanData), "lastPanoramaLongitude" in b && e(7, s = b.lastPanoramaLongitude), "cameraImageUrl" in b && e(0, r = b.cameraImageUrl);
|
|
2647
2647
|
}, [
|
|
@@ -2649,7 +2649,7 @@ function $u(i, t, e) {
|
|
|
2649
2649
|
d,
|
|
2650
2650
|
h,
|
|
2651
2651
|
f,
|
|
2652
|
-
|
|
2652
|
+
v,
|
|
2653
2653
|
n,
|
|
2654
2654
|
o,
|
|
2655
2655
|
s
|
|
@@ -3040,7 +3040,7 @@ function Id(i, t) {
|
|
|
3040
3040
|
return o;
|
|
3041
3041
|
}
|
|
3042
3042
|
function kd(i, t, e) {
|
|
3043
|
-
let n, o, s, r, a, { pxmm: l } = t, { roomAreaEnable: c } = t, { roomNameEnable: u } = t, { room: d } = t, { hoveredRoom: h } = t, { getRoomAreaText: f } = t, { getLabelElement:
|
|
3043
|
+
let n, o, s, r, a, { pxmm: l } = t, { roomAreaEnable: c } = t, { roomNameEnable: u } = t, { room: d } = t, { hoveredRoom: h } = t, { getRoomAreaText: f } = t, { getLabelElement: A } = t, { adaptiveRoomLabelVisibleEnable: g } = t;
|
|
3044
3044
|
function p(F, B) {
|
|
3045
3045
|
if (B.width === 0 || B.height === 0)
|
|
3046
3046
|
return () => !1;
|
|
@@ -3055,7 +3055,7 @@ function kd(i, t, e) {
|
|
|
3055
3055
|
].every((Ae) => Id(Ae, Se));
|
|
3056
3056
|
};
|
|
3057
3057
|
}
|
|
3058
|
-
const
|
|
3058
|
+
const v = document.body.clientWidth, b = document.body.clientHeight, w = d.roomLabel, E = w.positionInImage.x * 100 + "%", L = w.positionInImage.y * 100 + "%", I = (v < 500 || b < 500 ? 10 : 14) + "px";
|
|
3059
3059
|
let D = 0, k = 0, V = !1;
|
|
3060
3060
|
h.subscribe(function(B) {
|
|
3061
3061
|
e(16, V = !!B && B.id === d.id);
|
|
@@ -3066,14 +3066,14 @@ function kd(i, t, e) {
|
|
|
3066
3066
|
e(5, k = F.detail);
|
|
3067
3067
|
};
|
|
3068
3068
|
return i.$$set = (F) => {
|
|
3069
|
-
"pxmm" in F && e(12, l = F.pxmm), "roomAreaEnable" in F && e(0, c = F.roomAreaEnable), "roomNameEnable" in F && e(1, u = F.roomNameEnable), "room" in F && e(2, d = F.room), "hoveredRoom" in F && e(13, h = F.hoveredRoom), "getRoomAreaText" in F && e(14, f = F.getRoomAreaText), "getLabelElement" in F && e(3,
|
|
3069
|
+
"pxmm" in F && e(12, l = F.pxmm), "roomAreaEnable" in F && e(0, c = F.roomAreaEnable), "roomNameEnable" in F && e(1, u = F.roomNameEnable), "room" in F && e(2, d = F.room), "hoveredRoom" in F && e(13, h = F.hoveredRoom), "getRoomAreaText" in F && e(14, f = F.getRoomAreaText), "getLabelElement" in F && e(3, A = F.getLabelElement), "adaptiveRoomLabelVisibleEnable" in F && e(15, g = F.adaptiveRoomLabelVisibleEnable);
|
|
3070
3070
|
}, i.$$.update = () => {
|
|
3071
|
-
i.$$.dirty & 12 && e(8, n =
|
|
3071
|
+
i.$$.dirty & 12 && e(8, n = A == null ? void 0 : A(d)), i.$$.dirty & 16388 && e(7, o = d.size ? f(d.size) : ""), i.$$.dirty & 48 && e(18, s = { width: D, height: k }), i.$$.dirty & 262148 && e(17, r = s ? p(d, s) : void 0), i.$$.dirty & 233472 && e(6, a = g ? V ? !0 : !!(r != null && r(l)) : !0);
|
|
3072
3072
|
}, [
|
|
3073
3073
|
c,
|
|
3074
3074
|
u,
|
|
3075
3075
|
d,
|
|
3076
|
-
|
|
3076
|
+
A,
|
|
3077
3077
|
D,
|
|
3078
3078
|
k,
|
|
3079
3079
|
a,
|
|
@@ -3248,15 +3248,15 @@ function Ld(i) {
|
|
|
3248
3248
|
}
|
|
3249
3249
|
function Sd(i, t, e) {
|
|
3250
3250
|
let n, { floorIndex: o } = t, { roomAreaEnable: s } = t, { roomNameEnable: r } = t, { floorplanData: a } = t, { hoveredRoom: l } = t, { getRoomAreaText: c } = t, { getLabelElement: u } = t, { adaptiveRoomLabelVisibleEnable: d } = t, h = 0, f = 0;
|
|
3251
|
-
const
|
|
3251
|
+
const A = (g) => {
|
|
3252
3252
|
e(6, h = g.detail);
|
|
3253
3253
|
};
|
|
3254
3254
|
return i.$$set = (g) => {
|
|
3255
3255
|
"floorIndex" in g && e(9, o = g.floorIndex), "roomAreaEnable" in g && e(0, s = g.roomAreaEnable), "roomNameEnable" in g && e(1, r = g.roomNameEnable), "floorplanData" in g && e(10, a = g.floorplanData), "hoveredRoom" in g && e(2, l = g.hoveredRoom), "getRoomAreaText" in g && e(3, c = g.getRoomAreaText), "getLabelElement" in g && e(4, u = g.getLabelElement), "adaptiveRoomLabelVisibleEnable" in g && e(5, d = g.adaptiveRoomLabelVisibleEnable);
|
|
3256
3256
|
}, i.$$.update = () => {
|
|
3257
3257
|
if (i.$$.dirty & 1536 && e(8, n = a.floorDatas[o].rooms), i.$$.dirty & 1088) {
|
|
3258
|
-
const { max: g, min: p } = a.bounding,
|
|
3259
|
-
e(7, f = h /
|
|
3258
|
+
const { max: g, min: p } = a.bounding, v = g.x - p.x;
|
|
3259
|
+
e(7, f = h / v);
|
|
3260
3260
|
}
|
|
3261
3261
|
}, [
|
|
3262
3262
|
s,
|
|
@@ -3270,7 +3270,7 @@ function Sd(i, t, e) {
|
|
|
3270
3270
|
n,
|
|
3271
3271
|
o,
|
|
3272
3272
|
a,
|
|
3273
|
-
|
|
3273
|
+
A
|
|
3274
3274
|
];
|
|
3275
3275
|
}
|
|
3276
3276
|
class Md extends oe {
|
|
@@ -3342,50 +3342,50 @@ function rs(i, t) {
|
|
|
3342
3342
|
}
|
|
3343
3343
|
function zd(i) {
|
|
3344
3344
|
let t, e, n, o, s, r, a = [], l = /* @__PURE__ */ new Map(), c, u = i[3], d = [];
|
|
3345
|
-
for (let
|
|
3346
|
-
d[
|
|
3345
|
+
for (let A = 0; A < u.length; A += 1)
|
|
3346
|
+
d[A] = ss(os(i, u, A));
|
|
3347
3347
|
let h = i[4];
|
|
3348
|
-
const f = (
|
|
3349
|
-
for (let
|
|
3350
|
-
let g = is(i, h,
|
|
3351
|
-
l.set(p, a[
|
|
3348
|
+
const f = (A) => A[13];
|
|
3349
|
+
for (let A = 0; A < h.length; A += 1) {
|
|
3350
|
+
let g = is(i, h, A), p = f(g);
|
|
3351
|
+
l.set(p, a[A] = rs(p, g));
|
|
3352
3352
|
}
|
|
3353
3353
|
return {
|
|
3354
3354
|
c() {
|
|
3355
3355
|
t = z("div"), e = z("div"), n = $(), o = z("div");
|
|
3356
|
-
for (let
|
|
3357
|
-
d[
|
|
3356
|
+
for (let A = 0; A < d.length; A += 1)
|
|
3357
|
+
d[A].c();
|
|
3358
3358
|
s = $(), r = z("div");
|
|
3359
|
-
for (let
|
|
3360
|
-
a[
|
|
3359
|
+
for (let A = 0; A < a.length; A += 1)
|
|
3360
|
+
a[A].c();
|
|
3361
3361
|
y(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), y(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), q(o, "is-row", i[2]), y(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), y(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), q(t, "is-row", i[2]), T(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), T(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
|
|
3362
3362
|
},
|
|
3363
|
-
m(
|
|
3364
|
-
M(
|
|
3363
|
+
m(A, g) {
|
|
3364
|
+
M(A, t, g), j(t, e), j(t, n), j(t, o);
|
|
3365
3365
|
for (let p = 0; p < d.length; p += 1)
|
|
3366
3366
|
d[p].m(o, null);
|
|
3367
3367
|
j(t, s), j(t, r);
|
|
3368
3368
|
for (let p = 0; p < a.length; p += 1)
|
|
3369
3369
|
a[p].m(r, null);
|
|
3370
3370
|
},
|
|
3371
|
-
p(
|
|
3371
|
+
p(A, [g]) {
|
|
3372
3372
|
if (g & 8) {
|
|
3373
|
-
u =
|
|
3373
|
+
u = A[3];
|
|
3374
3374
|
let p;
|
|
3375
3375
|
for (p = 0; p < u.length; p += 1) {
|
|
3376
|
-
const
|
|
3377
|
-
d[p] ? d[p].p(
|
|
3376
|
+
const v = os(A, u, p);
|
|
3377
|
+
d[p] ? d[p].p(v, g) : (d[p] = ss(v), d[p].c(), d[p].m(o, null));
|
|
3378
3378
|
}
|
|
3379
3379
|
for (; p < d.length; p += 1)
|
|
3380
3380
|
d[p].d(1);
|
|
3381
3381
|
d.length = u.length;
|
|
3382
3382
|
}
|
|
3383
|
-
g & 22 && (h =
|
|
3383
|
+
g & 22 && (h = A[4], a = Ke(a, g, f, 1, A, h, l, r, vo, rs, null, is)), g & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + A[0] + " svelte-djlmk4") && y(t, "class", c), g & 5 && q(t, "is-row", A[2]);
|
|
3384
3384
|
},
|
|
3385
3385
|
i: N,
|
|
3386
3386
|
o: N,
|
|
3387
|
-
d(
|
|
3388
|
-
|
|
3387
|
+
d(A) {
|
|
3388
|
+
A && S(t), ut(d, A);
|
|
3389
3389
|
for (let g = 0; g < a.length; g += 1)
|
|
3390
3390
|
a[g].d();
|
|
3391
3391
|
}
|
|
@@ -3394,17 +3394,17 @@ function zd(i) {
|
|
|
3394
3394
|
const Ot = 1e3, Qt = 180;
|
|
3395
3395
|
function Bd(i, t, e) {
|
|
3396
3396
|
let { type: n } = t, { data: o } = t, { bounding: s } = t, { getRuleDistanceText: r } = t;
|
|
3397
|
-
const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Ot - Qt) * 2, c = s.max.y - s.min.y - (Ot - Qt) * 2, u = o.map(([
|
|
3398
|
-
const g = a ? (
|
|
3397
|
+
const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Ot - Qt) * 2, c = s.max.y - s.min.y - (Ot - Qt) * 2, u = o.map(([A, g]) => a ? [A.x, g.x] : [A.y, g.y]).flat().sort().filter((A, g, p) => g === 0 ? !0 : A !== p[g - 1]), d = u.map((A) => {
|
|
3398
|
+
const g = a ? (A - s.min.x - Ot + Qt) / l : 0, p = a ? 0 : (A - s.min.y - Ot + Qt) / c;
|
|
3399
3399
|
return { left: g, bottom: p };
|
|
3400
3400
|
});
|
|
3401
3401
|
d.unshift({ left: 0, bottom: 0 }), d.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
3402
|
-
const h = u[u.length - 1] - u[0], f = u.map((
|
|
3403
|
-
const
|
|
3404
|
-
return { left: w, bottom: E, distance:
|
|
3405
|
-
}).filter(({ distance:
|
|
3406
|
-
return i.$$set = (
|
|
3407
|
-
"type" in
|
|
3402
|
+
const h = u[u.length - 1] - u[0], f = u.map((A, g, p) => {
|
|
3403
|
+
const v = g === 0 ? 0 : A - p[g - 1], b = g === 0 ? 0 : (A + p[g - 1]) / 2, w = a ? (b - s.min.x - Ot + Qt) / l : 0, E = a ? 0 : (b - s.min.y - Ot + Qt) / c;
|
|
3404
|
+
return { left: w, bottom: E, distance: v };
|
|
3405
|
+
}).filter(({ distance: A }) => A / h > 0.1);
|
|
3406
|
+
return i.$$set = (A) => {
|
|
3407
|
+
"type" in A && e(0, n = A.type), "data" in A && e(5, o = A.data), "bounding" in A && e(6, s = A.bounding), "getRuleDistanceText" in A && e(1, r = A.getRuleDistanceText);
|
|
3408
3408
|
}, [n, r, a, d, f, o, s];
|
|
3409
3409
|
}
|
|
3410
3410
|
class jd extends oe {
|
|
@@ -3521,11 +3521,11 @@ function Od(i) {
|
|
|
3521
3521
|
}
|
|
3522
3522
|
const cs = 1e3, us = 180;
|
|
3523
3523
|
function Qd(i, t, e) {
|
|
3524
|
-
let n, o, s, r, a, l, c, u, d, h, { floorIndex: f } = t, { floorplanData:
|
|
3524
|
+
let n, o, s, r, a, l, c, u, d, h, { floorIndex: f } = t, { floorplanData: A } = t, { getRuleDistanceText: g } = t;
|
|
3525
3525
|
return i.$$set = (p) => {
|
|
3526
|
-
"floorIndex" in p && e(5, f = p.floorIndex), "floorplanData" in p && e(6,
|
|
3526
|
+
"floorIndex" in p && e(5, f = p.floorIndex), "floorplanData" in p && e(6, A = p.floorplanData), "getRuleDistanceText" in p && e(0, g = p.getRuleDistanceText);
|
|
3527
3527
|
}, i.$$.update = () => {
|
|
3528
|
-
i.$$.dirty & 64 && e(1, n =
|
|
3528
|
+
i.$$.dirty & 64 && e(1, n = A.bounding), i.$$.dirty & 96 && e(11, o = A.floorDatas[f].rules), i.$$.dirty & 2048 && e(12, s = Object.keys(o)), i.$$.dirty & 6144 && e(4, r = s.map((p) => [p, o[p]])), i.$$.dirty & 2 && e(9, a = n.max.x - n.min.x), i.$$.dirty & 2 && e(7, l = n.max.y - n.min.y), i.$$.dirty & 2 && e(10, c = n.max.x - n.min.x - (cs - us) * 2), i.$$.dirty & 2 && e(8, u = n.max.y - n.min.y - (cs - us) * 2), i.$$.dirty & 1536 && e(3, d = c / a * 100 + "%"), i.$$.dirty & 384 && e(2, h = u / l * 100 + "%");
|
|
3529
3529
|
}, [
|
|
3530
3530
|
g,
|
|
3531
3531
|
n,
|
|
@@ -3533,7 +3533,7 @@ function Qd(i, t, e) {
|
|
|
3533
3533
|
d,
|
|
3534
3534
|
r,
|
|
3535
3535
|
f,
|
|
3536
|
-
|
|
3536
|
+
A,
|
|
3537
3537
|
l,
|
|
3538
3538
|
u,
|
|
3539
3539
|
a,
|
|
@@ -3896,10 +3896,10 @@ function ah(i, t, e) {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
const { bounding: h } = a, f = Ci(s.path, {
|
|
3898
3898
|
needZ: !0,
|
|
3899
|
-
format: (
|
|
3899
|
+
format: (A) => sl(A, h)
|
|
3900
3900
|
});
|
|
3901
|
-
return i.$$set = (
|
|
3902
|
-
"room" in
|
|
3901
|
+
return i.$$set = (A) => {
|
|
3902
|
+
"room" in A && e(0, s = A.room), "floorIndex" in A && e(1, r = A.floorIndex), "floorplanData" in A && e(6, a = A.floorplanData), "hoveredRoom" in A && e(7, l = A.hoveredRoom), "highlightData" in A && e(8, c = A.highlightData);
|
|
3903
3903
|
}, i.$$.update = () => {
|
|
3904
3904
|
i.$$.dirty & 259 && e(9, n = c[`${r}_${s.id}`]), i.$$.dirty & 512 && e(2, o = n ? `fill: ${n.color}; --opacity: ${n.opacity}; pointer-events: ${n.disabled ? "none" : "auto"}` : null);
|
|
3905
3905
|
}, [
|
|
@@ -4206,8 +4206,8 @@ function fh(i) {
|
|
|
4206
4206
|
}
|
|
4207
4207
|
];
|
|
4208
4208
|
let d = {};
|
|
4209
|
-
for (let
|
|
4210
|
-
d = ze(d, u[
|
|
4209
|
+
for (let v = 0; v < u.length; v += 1)
|
|
4210
|
+
d = ze(d, u[v]);
|
|
4211
4211
|
e = new oh({ props: d });
|
|
4212
4212
|
let h = (i[2] || i[3]) && ps(i);
|
|
4213
4213
|
const f = [
|
|
@@ -4216,56 +4216,56 @@ function fh(i) {
|
|
|
4216
4216
|
floorIndex: i[1]
|
|
4217
4217
|
}
|
|
4218
4218
|
];
|
|
4219
|
-
let
|
|
4220
|
-
for (let
|
|
4221
|
-
|
|
4222
|
-
s = new ol({ props:
|
|
4219
|
+
let A = {};
|
|
4220
|
+
for (let v = 0; v < f.length; v += 1)
|
|
4221
|
+
A = ze(A, f[v]);
|
|
4222
|
+
s = new ol({ props: A });
|
|
4223
4223
|
let g = i[4] && gs(i), p = i[7] && As(i);
|
|
4224
4224
|
return {
|
|
4225
4225
|
c() {
|
|
4226
4226
|
t = z("div"), K(e.$$.fragment), n = $(), h && h.c(), o = $(), K(s.$$.fragment), r = $(), g && g.c(), a = $(), p && p.c(), y(t, "class", l = Me(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
|
|
4227
4227
|
},
|
|
4228
|
-
m(
|
|
4229
|
-
M(
|
|
4228
|
+
m(v, b) {
|
|
4229
|
+
M(v, t, b), J(e, t, null), j(t, n), h && h.m(t, null), j(t, o), J(s, t, null), j(t, r), g && g.m(t, null), j(t, a), p && p.m(t, null), c = !0;
|
|
4230
4230
|
},
|
|
4231
|
-
p(
|
|
4231
|
+
p(v, [b]) {
|
|
4232
4232
|
const w = b & 258 ? Re(u, [
|
|
4233
4233
|
{
|
|
4234
|
-
floorIndex:
|
|
4235
|
-
floorplanData:
|
|
4234
|
+
floorIndex: v[1],
|
|
4235
|
+
floorplanData: v[8]
|
|
4236
4236
|
}
|
|
4237
4237
|
]) : {};
|
|
4238
|
-
e.$set(w),
|
|
4238
|
+
e.$set(w), v[2] || v[3] ? h ? (h.p(v, b), b & 12 && P(h, 1)) : (h = ps(v), h.c(), P(h, 1), h.m(t, o)) : h && (se(), x(h, 1, 1, () => {
|
|
4239
4239
|
h = null;
|
|
4240
4240
|
}), re());
|
|
4241
4241
|
const E = b & 258 ? Re(f, [
|
|
4242
4242
|
{
|
|
4243
|
-
floorplanData:
|
|
4244
|
-
floorIndex:
|
|
4243
|
+
floorplanData: v[8],
|
|
4244
|
+
floorIndex: v[1]
|
|
4245
4245
|
}
|
|
4246
4246
|
]) : {};
|
|
4247
|
-
s.$set(E),
|
|
4247
|
+
s.$set(E), v[4] ? g ? (g.p(v, b), b & 16 && P(g, 1)) : (g = gs(v), g.c(), P(g, 1), g.m(t, a)) : g && (se(), x(g, 1, 1, () => {
|
|
4248
4248
|
g = null;
|
|
4249
|
-
}), re()),
|
|
4249
|
+
}), re()), v[7] ? p ? (p.p(v, b), b & 128 && P(p, 1)) : (p = As(v), p.c(), P(p, 1), p.m(t, null)) : p && (se(), x(p, 1, 1, () => {
|
|
4250
4250
|
p = null;
|
|
4251
|
-
}), re()), (!c || b & 1 && l !== (l = Me(`floorplan-plugin__floor${
|
|
4251
|
+
}), re()), (!c || b & 1 && l !== (l = Me(`floorplan-plugin__floor${v[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && y(t, "class", l);
|
|
4252
4252
|
},
|
|
4253
|
-
i(
|
|
4254
|
-
c || (P(e.$$.fragment,
|
|
4253
|
+
i(v) {
|
|
4254
|
+
c || (P(e.$$.fragment, v), P(h), P(s.$$.fragment, v), P(g), P(p), c = !0);
|
|
4255
4255
|
},
|
|
4256
|
-
o(
|
|
4257
|
-
x(e.$$.fragment,
|
|
4256
|
+
o(v) {
|
|
4257
|
+
x(e.$$.fragment, v), x(h), x(s.$$.fragment, v), x(g), x(p), c = !1;
|
|
4258
4258
|
},
|
|
4259
|
-
d(
|
|
4260
|
-
|
|
4259
|
+
d(v) {
|
|
4260
|
+
v && S(t), Z(e), h && h.d(), Z(s), g && g.d(), p && p.d();
|
|
4261
4261
|
}
|
|
4262
4262
|
};
|
|
4263
4263
|
}
|
|
4264
4264
|
function mh(i, t, e) {
|
|
4265
|
-
let { isCurrent: n } = t, { floorIndex: o } = t, { highlightEnable: s } = t, { hoverEnable: r } = t, { roomLabelsEnable: a } = t, { roomAreaEnable: l } = t, { roomNameEnable: c } = t, { ruleLabelsEnable: u } = t, { floorplanData: d } = t, { getRoomAreaText: h } = t, { getLabelElement: f } = t, { getRuleDistanceText:
|
|
4266
|
-
const
|
|
4265
|
+
let { isCurrent: n } = t, { floorIndex: o } = t, { highlightEnable: s } = t, { hoverEnable: r } = t, { roomLabelsEnable: a } = t, { roomAreaEnable: l } = t, { roomNameEnable: c } = t, { ruleLabelsEnable: u } = t, { floorplanData: d } = t, { getRoomAreaText: h } = t, { getLabelElement: f } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: g } = t, { highlightData: p } = t;
|
|
4266
|
+
const v = yo(void 0);
|
|
4267
4267
|
return i.$$set = (b) => {
|
|
4268
|
-
"isCurrent" in b && e(0, n = b.isCurrent), "floorIndex" in b && e(1, o = b.floorIndex), "highlightEnable" in b && e(2, s = b.highlightEnable), "hoverEnable" in b && e(3, r = b.hoverEnable), "roomLabelsEnable" in b && e(4, a = b.roomLabelsEnable), "roomAreaEnable" in b && e(5, l = b.roomAreaEnable), "roomNameEnable" in b && e(6, c = b.roomNameEnable), "ruleLabelsEnable" in b && e(7, u = b.ruleLabelsEnable), "floorplanData" in b && e(8, d = b.floorplanData), "getRoomAreaText" in b && e(9, h = b.getRoomAreaText), "getLabelElement" in b && e(10, f = b.getLabelElement), "getRuleDistanceText" in b && e(11,
|
|
4268
|
+
"isCurrent" in b && e(0, n = b.isCurrent), "floorIndex" in b && e(1, o = b.floorIndex), "highlightEnable" in b && e(2, s = b.highlightEnable), "hoverEnable" in b && e(3, r = b.hoverEnable), "roomLabelsEnable" in b && e(4, a = b.roomLabelsEnable), "roomAreaEnable" in b && e(5, l = b.roomAreaEnable), "roomNameEnable" in b && e(6, c = b.roomNameEnable), "ruleLabelsEnable" in b && e(7, u = b.ruleLabelsEnable), "floorplanData" in b && e(8, d = b.floorplanData), "getRoomAreaText" in b && e(9, h = b.getRoomAreaText), "getLabelElement" in b && e(10, f = b.getLabelElement), "getRuleDistanceText" in b && e(11, A = b.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in b && e(12, g = b.adaptiveRoomLabelVisibleEnable), "highlightData" in b && e(13, p = b.highlightData);
|
|
4269
4269
|
}, [
|
|
4270
4270
|
n,
|
|
4271
4271
|
o,
|
|
@@ -4278,10 +4278,10 @@ function mh(i, t, e) {
|
|
|
4278
4278
|
d,
|
|
4279
4279
|
h,
|
|
4280
4280
|
f,
|
|
4281
|
-
|
|
4281
|
+
A,
|
|
4282
4282
|
g,
|
|
4283
4283
|
p,
|
|
4284
|
-
|
|
4284
|
+
v
|
|
4285
4285
|
];
|
|
4286
4286
|
}
|
|
4287
4287
|
class ph extends oe {
|
|
@@ -4345,8 +4345,8 @@ function bs(i) {
|
|
|
4345
4345
|
r = i[13].floorDatas;
|
|
4346
4346
|
let f;
|
|
4347
4347
|
for (f = 0; f < r.length; f += 1) {
|
|
4348
|
-
const
|
|
4349
|
-
a[f] ? (a[f].p(
|
|
4348
|
+
const A = vs(i, r, f);
|
|
4349
|
+
a[f] ? (a[f].p(A, h), P(a[f], 1)) : (a[f] = ys(A), a[f].c(), P(a[f], 1), a[f].m(t, e));
|
|
4350
4350
|
}
|
|
4351
4351
|
for (se(), f = r.length; f < a.length; f += 1)
|
|
4352
4352
|
l(f);
|
|
@@ -4548,9 +4548,9 @@ function Ah(i) {
|
|
|
4548
4548
|
};
|
|
4549
4549
|
}
|
|
4550
4550
|
function vh(i, t, e) {
|
|
4551
|
-
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: u } = t, { compassEnable: d } = t, { roomLabelsEnable: h } = t, { roomAreaEnable: f } = t, { roomNameEnable:
|
|
4551
|
+
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: u } = t, { compassEnable: d } = t, { roomLabelsEnable: h } = t, { roomAreaEnable: f } = t, { roomNameEnable: A } = t, { ruleLabelsEnable: g } = t, { floorplanData: p } = t, { lastPanoramaLongitude: v } = t, { cameraImageUrl: b } = t, { getRoomAreaText: w } = t, { getLabelElement: E } = t, { getRuleDistanceText: L } = t, { adaptiveRoomLabelVisibleEnable: I } = t, { highlightData: D } = t;
|
|
4552
4552
|
return i.$$set = (k) => {
|
|
4553
|
-
"duration" in k && e(0, n = k.duration), "visible" in k && e(1, o = k.visible), "northDesc" in k && e(2, s = k.northDesc), "panoIndex" in k && e(3, r = k.panoIndex), "floorIndex" in k && e(4, a = k.floorIndex), "cameraEnable" in k && e(5, l = k.cameraEnable), "hoverEnable" in k && e(6, c = k.hoverEnable), "highlightEnable" in k && e(7, u = k.highlightEnable), "compassEnable" in k && e(8, d = k.compassEnable), "roomLabelsEnable" in k && e(9, h = k.roomLabelsEnable), "roomAreaEnable" in k && e(10, f = k.roomAreaEnable), "roomNameEnable" in k && e(11,
|
|
4553
|
+
"duration" in k && e(0, n = k.duration), "visible" in k && e(1, o = k.visible), "northDesc" in k && e(2, s = k.northDesc), "panoIndex" in k && e(3, r = k.panoIndex), "floorIndex" in k && e(4, a = k.floorIndex), "cameraEnable" in k && e(5, l = k.cameraEnable), "hoverEnable" in k && e(6, c = k.hoverEnable), "highlightEnable" in k && e(7, u = k.highlightEnable), "compassEnable" in k && e(8, d = k.compassEnable), "roomLabelsEnable" in k && e(9, h = k.roomLabelsEnable), "roomAreaEnable" in k && e(10, f = k.roomAreaEnable), "roomNameEnable" in k && e(11, A = k.roomNameEnable), "ruleLabelsEnable" in k && e(12, g = k.ruleLabelsEnable), "floorplanData" in k && e(13, p = k.floorplanData), "lastPanoramaLongitude" in k && e(14, v = k.lastPanoramaLongitude), "cameraImageUrl" in k && e(15, b = k.cameraImageUrl), "getRoomAreaText" in k && e(16, w = k.getRoomAreaText), "getLabelElement" in k && e(17, E = k.getLabelElement), "getRuleDistanceText" in k && e(18, L = k.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in k && e(19, I = k.adaptiveRoomLabelVisibleEnable), "highlightData" in k && e(20, D = k.highlightData);
|
|
4554
4554
|
}, [
|
|
4555
4555
|
n,
|
|
4556
4556
|
o,
|
|
@@ -4563,10 +4563,10 @@ function vh(i, t, e) {
|
|
|
4563
4563
|
d,
|
|
4564
4564
|
h,
|
|
4565
4565
|
f,
|
|
4566
|
-
|
|
4566
|
+
A,
|
|
4567
4567
|
g,
|
|
4568
4568
|
p,
|
|
4569
|
-
|
|
4569
|
+
v,
|
|
4570
4570
|
b,
|
|
4571
4571
|
w,
|
|
4572
4572
|
E,
|
|
@@ -4718,7 +4718,7 @@ function Co(i, t, e, n) {
|
|
|
4718
4718
|
}
|
|
4719
4719
|
class zn {
|
|
4720
4720
|
constructor(t, e) {
|
|
4721
|
-
m(this, "VERSION", "2.14.
|
|
4721
|
+
m(this, "VERSION", "2.14.2-alpha.0");
|
|
4722
4722
|
m(this, "five");
|
|
4723
4723
|
m(this, "hooks", new Zt());
|
|
4724
4724
|
m(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|
|
@@ -5645,26 +5645,26 @@ function Oh(i) {
|
|
|
5645
5645
|
}
|
|
5646
5646
|
function Qh(i, t, e) {
|
|
5647
5647
|
let n, o, { five: s } = t, { pxmm: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, c = s.getCurrentState().panoIndex, u = s.getCurrentState().longitude;
|
|
5648
|
-
function d(
|
|
5649
|
-
const p =
|
|
5650
|
-
if (!
|
|
5648
|
+
function d(A, g) {
|
|
5649
|
+
const p = A.bounding, v = A.observers[g];
|
|
5650
|
+
if (!v)
|
|
5651
5651
|
return "";
|
|
5652
|
-
const b = (p.max.x - p.min.x) * r, w = (p.max.y - p.min.y) * r, E = Math.floor(
|
|
5652
|
+
const b = (p.max.x - p.min.x) * r, w = (p.max.y - p.min.y) * r, E = Math.floor(v.positionInImage.x * b), L = Math.floor(v.positionInImage.y * w);
|
|
5653
5653
|
return `translate(${E}px, ${L}px)`;
|
|
5654
5654
|
}
|
|
5655
|
-
function h(
|
|
5656
|
-
e(6, c =
|
|
5655
|
+
function h(A) {
|
|
5656
|
+
e(6, c = A);
|
|
5657
5657
|
}
|
|
5658
5658
|
const f = Io(
|
|
5659
|
-
(
|
|
5660
|
-
e(7, u =
|
|
5659
|
+
(A) => {
|
|
5660
|
+
e(7, u = A.longitude);
|
|
5661
5661
|
},
|
|
5662
5662
|
1e3 / 60
|
|
5663
5663
|
);
|
|
5664
5664
|
return Ze(() => (s.on("panoWillArrive", h), s.on("cameraDirectionUpdate", f), function() {
|
|
5665
5665
|
s.off("panoWillArrive", h), s.off("cameraDirectionUpdate", f);
|
|
5666
|
-
})), i.$$set = (
|
|
5667
|
-
"five" in
|
|
5666
|
+
})), i.$$set = (A) => {
|
|
5667
|
+
"five" in A && e(3, s = A.five), "pxmm" in A && e(4, r = A.pxmm), "floorplanData" in A && e(5, a = A.floorplanData), "cameraImageUrl" in A && e(0, l = A.cameraImageUrl);
|
|
5668
5668
|
}, i.$$.update = () => {
|
|
5669
5669
|
i.$$.dirty & 96 && e(2, n = d(a, c)), i.$$.dirty & 128 && e(1, o = Oh(u));
|
|
5670
5670
|
}, [
|
|
@@ -5953,7 +5953,7 @@ function Ds(i) {
|
|
|
5953
5953
|
M(h, t, f), J(e, t, null), j(t, n), J(o, t, null), a = !0;
|
|
5954
5954
|
},
|
|
5955
5955
|
p(h, f) {
|
|
5956
|
-
const
|
|
5956
|
+
const A = f & 1581 ? Re(l, [
|
|
5957
5957
|
{
|
|
5958
5958
|
five: h[0],
|
|
5959
5959
|
pxmm: h[9],
|
|
@@ -5963,7 +5963,7 @@ function Ds(i) {
|
|
|
5963
5963
|
extraObjects: h[5]
|
|
5964
5964
|
}
|
|
5965
5965
|
]) : {};
|
|
5966
|
-
e.$set(
|
|
5966
|
+
e.$set(A);
|
|
5967
5967
|
const g = f & 537 ? Re(u, [
|
|
5968
5968
|
{
|
|
5969
5969
|
pxmm: h[9],
|
|
@@ -6012,7 +6012,7 @@ function Uh(i) {
|
|
|
6012
6012
|
}
|
|
6013
6013
|
function qh(i, t, e) {
|
|
6014
6014
|
var b, w;
|
|
6015
|
-
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, u = (w = (b = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : b.floorIndex) != null ? w : 0, d = 0, h = 0, f = 0,
|
|
6015
|
+
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, u = (w = (b = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : b.floorIndex) != null ? w : 0, d = 0, h = 0, f = 0, A = 0;
|
|
6016
6016
|
function g(E) {
|
|
6017
6017
|
e(10, u = n.work.observers[E].floorIndex);
|
|
6018
6018
|
}
|
|
@@ -6021,7 +6021,7 @@ function qh(i, t, e) {
|
|
|
6021
6021
|
}));
|
|
6022
6022
|
const p = (E) => {
|
|
6023
6023
|
e(6, d = E.detail);
|
|
6024
|
-
},
|
|
6024
|
+
}, v = (E) => {
|
|
6025
6025
|
e(7, h = E.detail);
|
|
6026
6026
|
};
|
|
6027
6027
|
return i.$$set = (E) => {
|
|
@@ -6031,7 +6031,7 @@ function qh(i, t, e) {
|
|
|
6031
6031
|
const E = Math.min(d, h), { max: L, min: I } = r.bounding, D = L.x - I.x, k = L.y - I.y, V = function() {
|
|
6032
6032
|
return D > k ? [E, E / D * k] : [E / k * D, E];
|
|
6033
6033
|
}();
|
|
6034
|
-
e(8, f = V[0]), e(11,
|
|
6034
|
+
e(8, f = V[0]), e(11, A = V[1]), e(9, c = f / D);
|
|
6035
6035
|
}
|
|
6036
6036
|
}, [
|
|
6037
6037
|
n,
|
|
@@ -6045,9 +6045,9 @@ function qh(i, t, e) {
|
|
|
6045
6045
|
f,
|
|
6046
6046
|
c,
|
|
6047
6047
|
u,
|
|
6048
|
-
|
|
6048
|
+
A,
|
|
6049
6049
|
p,
|
|
6050
|
-
|
|
6050
|
+
v
|
|
6051
6051
|
];
|
|
6052
6052
|
}
|
|
6053
6053
|
class Jh extends oe {
|
|
@@ -6322,7 +6322,7 @@ const xb = (i, t) => {
|
|
|
6322
6322
|
const h = (d == null ? void 0 : d.fbx_url) || e, f = (F = d == null ? void 0 : d.north_rad) != null ? F : n;
|
|
6323
6323
|
if (typeof f != "number")
|
|
6324
6324
|
throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
|
|
6325
|
-
const
|
|
6325
|
+
const A = i.model.bounding, g = A.max.x - A.min.x, p = A.max.z - A.min.z, v = Math.max(g, p), w = yield new ka().loadAsync(h);
|
|
6326
6326
|
ul(w, {
|
|
6327
6327
|
transparent: !0,
|
|
6328
6328
|
side: C.DoubleSide,
|
|
@@ -6337,7 +6337,7 @@ const xb = (i, t) => {
|
|
|
6337
6337
|
}
|
|
6338
6338
|
} = i;
|
|
6339
6339
|
o.yBase = k;
|
|
6340
|
-
const _ = { x: (L + D) / 2, y: k - 1.6, z: (I + V) / 2 }, O = 45e-4 *
|
|
6340
|
+
const _ = { x: (L + D) / 2, y: k - 1.6, z: (I + V) / 2 }, O = 45e-4 * v;
|
|
6341
6341
|
return Kh(w, { position: _, rotation: E, scale: O }), o.object = w, !0;
|
|
6342
6342
|
}), r = ({ latitude: d }) => {
|
|
6343
6343
|
if (!o.object)
|
|
@@ -6370,8 +6370,8 @@ function $h(i, t) {
|
|
|
6370
6370
|
return l.fillStyle = o, l.fillRect(0, 0, e, e), l.font = `${n}px "\u5FAE\u8F6F\u96C5\u9ED1"`, l.textAlign = r, l.fillStyle = s, l.fillText(i, e / 2, e * 0.7), new mc(a);
|
|
6371
6371
|
}
|
|
6372
6372
|
const ef = ({ x: i, y: t, z: e }) => new U(i, t, e), Db = (i, t) => {
|
|
6373
|
-
var g, p,
|
|
6374
|
-
const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (p = t.position) != null ? p : void 0, s = (
|
|
6373
|
+
var g, p, v;
|
|
6374
|
+
const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (p = t.position) != null ? p : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (b) => H(void 0, null, function* () {
|
|
6375
6375
|
var _, O, F, B, R, W, X, G;
|
|
6376
6376
|
const w = (_ = b == null ? void 0 : b.position) != null ? _ : o;
|
|
6377
6377
|
if (!w)
|
|
@@ -6530,26 +6530,26 @@ const so = (i, t, e) => {
|
|
|
6530
6530
|
return {
|
|
6531
6531
|
move: e,
|
|
6532
6532
|
rotate: (l, c, ...u) => H(void 0, [l, c, ...u], function* (s, r, a = {}) {
|
|
6533
|
-
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== je.Mode.Panorama && (yield i.changeMode(je.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((f,
|
|
6533
|
+
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== je.Mode.Panorama && (yield i.changeMode(je.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((f, A) => {
|
|
6534
6534
|
if (!s.panoIndex) {
|
|
6535
6535
|
f(!0);
|
|
6536
6536
|
return;
|
|
6537
6537
|
}
|
|
6538
6538
|
i.moveToPano(s.panoIndex, {
|
|
6539
6539
|
moveEndCallback: () => f(!0),
|
|
6540
|
-
moveCancelCallback: () =>
|
|
6540
|
+
moveCancelCallback: () => A(!1)
|
|
6541
6541
|
});
|
|
6542
6542
|
})), a.asyncEndCallback && (yield a.asyncEndCallback());
|
|
6543
6543
|
const { from: d, to: h } = n(s);
|
|
6544
6544
|
return yield new Promise((f) => {
|
|
6545
|
-
const
|
|
6545
|
+
const A = ({ progress: w }) => {
|
|
6546
6546
|
const E = {};
|
|
6547
6547
|
E.longitude = Oi(d.longitude, h.longitude, w), E.latitude = Oi(d.latitude, h.latitude, w), E.fov = Oi(d.fov, h.fov, w), i.setState(E, !0);
|
|
6548
6548
|
}, g = () => {
|
|
6549
6549
|
f(!0);
|
|
6550
6550
|
}, p = () => {
|
|
6551
6551
|
f(!1);
|
|
6552
|
-
},
|
|
6552
|
+
}, v = s.rotateSpeed ? Math.ceil(Math.abs(h.longitude - d.longitude) / s.rotateSpeed * 1e3) : r, b = rf(v, vi.Easing.Linear.None).onUpdate(A).onComplete(g).onDestroy(p);
|
|
6553
6553
|
s.rotation === at.Loop && b.repeat(1 / 0).yoyo(!0), t.interruptCallback = (w = !0) => {
|
|
6554
6554
|
b.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), f(w);
|
|
6555
6555
|
}, t.timeoutId = setTimeout(() => {
|
|
@@ -6718,7 +6718,7 @@ const cf = `<style type="text/css">
|
|
|
6718
6718
|
distanceText: (g) => `${g.toFixed(1)}m`
|
|
6719
6719
|
}
|
|
6720
6720
|
}, n = (g, p) => {
|
|
6721
|
-
const
|
|
6721
|
+
const v = `
|
|
6722
6722
|
<div class="PanoRulerPlugin-rule-line">
|
|
6723
6723
|
<em></em>
|
|
6724
6724
|
<div class="PanoRulerPlugin-rule-label">
|
|
@@ -6726,7 +6726,7 @@ const cf = `<style type="text/css">
|
|
|
6726
6726
|
</div>
|
|
6727
6727
|
</div>
|
|
6728
6728
|
`, b = document.createElement("div");
|
|
6729
|
-
return b.setAttribute("class", "PanoRulerPlugin-rule"), b.setAttribute("data-name", g), b.setAttribute("style", "display: none"), b.innerHTML =
|
|
6729
|
+
return b.setAttribute("class", "PanoRulerPlugin-rule"), b.setAttribute("data-name", g), b.setAttribute("style", "display: none"), b.innerHTML = v, b;
|
|
6730
6730
|
}, o = document.createElement("div");
|
|
6731
6731
|
o.setAttribute(
|
|
6732
6732
|
"style",
|
|
@@ -6737,12 +6737,12 @@ const cf = `<style type="text/css">
|
|
|
6737
6737
|
const r = {}, a = (g, p) => {
|
|
6738
6738
|
if (e.loaded)
|
|
6739
6739
|
throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
|
|
6740
|
-
const
|
|
6740
|
+
const v = df(g, i), b = i.work;
|
|
6741
6741
|
if (!b)
|
|
6742
6742
|
return !1;
|
|
6743
6743
|
for (const w in p) {
|
|
6744
6744
|
const E = p[w], { standingPosition: L } = b.observers[0], I = E.map(({ x: D, z: k, observers: V }) => {
|
|
6745
|
-
const _ = V.length > 0 ? g.rooms[g.observers[V[0]]].name : "", O =
|
|
6745
|
+
const _ = V.length > 0 ? g.rooms[g.observers[V[0]]].name : "", O = v[_] ? v[_].floor : null;
|
|
6746
6746
|
let F = 1 / 0, B = {
|
|
6747
6747
|
index: 0,
|
|
6748
6748
|
x: L.x,
|
|
@@ -6762,7 +6762,7 @@ const cf = `<style type="text/css">
|
|
|
6762
6762
|
});
|
|
6763
6763
|
const R = new U(D, B.y, k);
|
|
6764
6764
|
Object.assign(R, { observers: V });
|
|
6765
|
-
const W =
|
|
6765
|
+
const W = v[_] ? v[_].roof : null, X = W ? new U(D, W, k) : null;
|
|
6766
6766
|
return X && Object.assign(X, { observers: V }), { origin: R, vertical: X };
|
|
6767
6767
|
});
|
|
6768
6768
|
r[w] = {
|
|
@@ -6783,32 +6783,32 @@ const cf = `<style type="text/css">
|
|
|
6783
6783
|
}
|
|
6784
6784
|
}
|
|
6785
6785
|
return e.loaded = !0, !0;
|
|
6786
|
-
}, l = (g, p,
|
|
6786
|
+
}, l = (g, p, v) => H(void 0, null, function* () {
|
|
6787
6787
|
const b = g || t.roomInfo, w = p || t.roomRules;
|
|
6788
6788
|
if (!b || !w)
|
|
6789
6789
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
6790
|
-
return e.loaded = !1, e.options = Q(Q({}, e.options),
|
|
6790
|
+
return e.loaded = !1, e.options = Q(Q({}, e.options), v || {}), i.model.loaded ? a(b, w) : yield new Promise(
|
|
6791
6791
|
(E) => i.once("modelLoaded", () => E(a(b, w)))
|
|
6792
6792
|
);
|
|
6793
6793
|
});
|
|
6794
6794
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
6795
|
-
const c = (g, p,
|
|
6795
|
+
const c = (g, p, v, b) => {
|
|
6796
6796
|
const w = [
|
|
6797
6797
|
[
|
|
6798
6798
|
{ x: 0, y: 0 },
|
|
6799
|
-
{ x:
|
|
6799
|
+
{ x: v, y: 0 }
|
|
6800
6800
|
],
|
|
6801
6801
|
[
|
|
6802
6802
|
{ x: 0, y: 0 },
|
|
6803
6803
|
{ x: 0, y: b }
|
|
6804
6804
|
],
|
|
6805
6805
|
[
|
|
6806
|
-
{ x:
|
|
6807
|
-
{ x:
|
|
6806
|
+
{ x: v, y: 0 },
|
|
6807
|
+
{ x: v, y: b }
|
|
6808
6808
|
],
|
|
6809
6809
|
[
|
|
6810
6810
|
{ x: 0, y: b },
|
|
6811
|
-
{ x:
|
|
6811
|
+
{ x: v, y: b }
|
|
6812
6812
|
]
|
|
6813
6813
|
], E = [];
|
|
6814
6814
|
for (let L = 0; L < w.length; L++) {
|
|
@@ -6821,7 +6821,7 @@ const cf = `<style type="text/css">
|
|
|
6821
6821
|
const g = (V = i.getElement()) == null ? void 0 : V.parentElement;
|
|
6822
6822
|
if (!g || !e.loaded || Object.keys(r).length <= 0)
|
|
6823
6823
|
return;
|
|
6824
|
-
const { panoIndex: p, camera:
|
|
6824
|
+
const { panoIndex: p, camera: v, currentMode: b } = i;
|
|
6825
6825
|
if (p === void 0)
|
|
6826
6826
|
return;
|
|
6827
6827
|
let w;
|
|
@@ -6833,7 +6833,7 @@ const cf = `<style type="text/css">
|
|
|
6833
6833
|
O.style.display = "none";
|
|
6834
6834
|
return;
|
|
6835
6835
|
}
|
|
6836
|
-
const E =
|
|
6836
|
+
const E = v.position, L = v.getWorldDirection(new U()), I = g.clientWidth, D = g.clientHeight;
|
|
6837
6837
|
if (b !== je.Mode.Panorama) {
|
|
6838
6838
|
for (const _ in r)
|
|
6839
6839
|
for (const { $element: O } of r[_].rules)
|
|
@@ -6880,7 +6880,7 @@ const cf = `<style type="text/css">
|
|
|
6880
6880
|
F.style.display = "none";
|
|
6881
6881
|
continue;
|
|
6882
6882
|
}
|
|
6883
|
-
const he = B.clone().project(
|
|
6883
|
+
const he = B.clone().project(v), de = (he.x + 1) / 2 * I, pe = (-he.y + 1) / 2 * D, Ce = R.clone().project(v), Pe = (Ce.x + 1) / 2 * I, Se = (-Ce.y + 1) / 2 * D, ce = Math.sqrt(Math.pow(Pe - de, 2) + Math.pow(Se - pe, 2));
|
|
6884
6884
|
let Ae = ce, Ee = 50;
|
|
6885
6885
|
const ue = c({ x: ~~de, y: ~~pe }, {
|
|
6886
6886
|
x: ~~Pe,
|
|
@@ -6902,11 +6902,11 @@ const cf = `<style type="text/css">
|
|
|
6902
6902
|
var g, p;
|
|
6903
6903
|
return e.loaded ? (e.enable || (o.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (p = (g = i.getElement()) == null ? void 0 : g.parentElement) == null || p.append(o), u(), i.on("modeChange", u), i.on("cameraUpdate", d), e.enable = !0), !0) : !1;
|
|
6904
6904
|
}, f = () => (e.enable && (i.off("modeChange", u), i.off("cameraUpdate", d), o && o.remove(), e.enable = !1), !0);
|
|
6905
|
-
function
|
|
6905
|
+
function A(g) {
|
|
6906
6906
|
if (g.distanceText && g.distanceText !== e.options.distanceText) {
|
|
6907
6907
|
const p = g.distanceText;
|
|
6908
|
-
e.options.distanceText = p, Object.values(r).forEach((
|
|
6909
|
-
|
|
6908
|
+
e.options.distanceText = p, Object.values(r).forEach((v) => {
|
|
6909
|
+
v.rules.forEach((b) => {
|
|
6910
6910
|
const [w, E] = b.rule, L = w.distanceTo(E), I = b.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
6911
6911
|
!I || (I.innerText = p(L));
|
|
6912
6912
|
});
|
|
@@ -6918,7 +6918,7 @@ const cf = `<style type="text/css">
|
|
|
6918
6918
|
disable: f,
|
|
6919
6919
|
load: l,
|
|
6920
6920
|
state: e,
|
|
6921
|
-
changeConfigs:
|
|
6921
|
+
changeConfigs: A
|
|
6922
6922
|
};
|
|
6923
6923
|
};
|
|
6924
6924
|
function hf(i) {
|
|
@@ -6998,19 +6998,19 @@ function zs(i) {
|
|
|
6998
6998
|
}
|
|
6999
6999
|
function pf(i) {
|
|
7000
7000
|
let t, e, n, o, s = i[0].labelElement + "", r, a, l = `${i[0].labelOffset}%`, c = `${i[0].width}px`, u = `${i[0].left}px`, d = `${i[0].top}px`, h = `rotate(${i[0].rotateDeg}deg)`;
|
|
7001
|
-
function f(p,
|
|
7001
|
+
function f(p, v) {
|
|
7002
7002
|
return p[0].children.length === 0 ? mf : ff;
|
|
7003
7003
|
}
|
|
7004
|
-
let
|
|
7004
|
+
let A = f(i), g = A(i);
|
|
7005
7005
|
return {
|
|
7006
7006
|
c() {
|
|
7007
7007
|
t = z("div"), g.c(), e = $(), n = z("div"), o = z("div"), r = Ie(s), y(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Qe(() => i[4].call(o)), y(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), T(n, "left", l), y(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), T(t, "width", c), T(t, "left", u), T(t, "top", d), T(t, "transform", h), T(t, "display", i[0].visible && i[2] ? "block" : "none");
|
|
7008
7008
|
},
|
|
7009
|
-
m(p,
|
|
7010
|
-
M(p, t,
|
|
7009
|
+
m(p, v) {
|
|
7010
|
+
M(p, t, v), g.m(t, null), j(t, e), j(t, n), j(n, o), j(o, r), a = bi(o, i[4].bind(o));
|
|
7011
7011
|
},
|
|
7012
|
-
p(p, [
|
|
7013
|
-
|
|
7012
|
+
p(p, [v]) {
|
|
7013
|
+
A === (A = f(p)) && g ? g.p(p, v) : (g.d(1), g = A(p), g && (g.c(), g.m(t, e))), v & 1 && s !== (s = p[0].labelElement + "") && Le(r, s), v & 1 && l !== (l = `${p[0].labelOffset}%`) && T(n, "left", l), v & 1 && c !== (c = `${p[0].width}px`) && T(t, "width", c), v & 1 && u !== (u = `${p[0].left}px`) && T(t, "left", u), v & 1 && d !== (d = `${p[0].top}px`) && T(t, "top", d), v & 1 && h !== (h = `rotate(${p[0].rotateDeg}deg)`) && T(t, "transform", h), v & 5 && T(t, "display", p[0].visible && p[2] ? "block" : "none");
|
|
7014
7014
|
},
|
|
7015
7015
|
i: N,
|
|
7016
7016
|
o: N,
|
|
@@ -7116,9 +7116,9 @@ function vf(i) {
|
|
|
7116
7116
|
};
|
|
7117
7117
|
}
|
|
7118
7118
|
function bf(i, t, e) {
|
|
7119
|
-
var g, p,
|
|
7119
|
+
var g, p, v, b;
|
|
7120
7120
|
let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
|
|
7121
|
-
const a = ((p = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : p.clientWidth) || 0, l = ((b = (
|
|
7121
|
+
const a = ((p = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : p.clientWidth) || 0, l = ((b = (v = n.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : b.clientHeight) || 0, c = (w, E) => {
|
|
7122
7122
|
const L = [
|
|
7123
7123
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
7124
7124
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
@@ -7189,11 +7189,11 @@ function bf(i, t, e) {
|
|
|
7189
7189
|
};
|
|
7190
7190
|
});
|
|
7191
7191
|
e(0, r = _);
|
|
7192
|
-
}, f = () => Ii(h),
|
|
7192
|
+
}, f = () => Ii(h), A = Io(h, 80);
|
|
7193
7193
|
return Ze(() => {
|
|
7194
|
-
h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate", f), n.on("movingToPano", f), n.on("mouseWheel", () =>
|
|
7194
|
+
h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate", f), n.on("movingToPano", f), n.on("mouseWheel", () => A()), n.on("pinchGesture", () => A());
|
|
7195
7195
|
}), Pt(() => {
|
|
7196
|
-
n.off("panoArrived", h), n.off("modeChange", h), n.off("cameraDirectionUpdate", f), n.off("movingToPano", f), n.off("mouseWheel", () =>
|
|
7196
|
+
n.off("panoArrived", h), n.off("modeChange", h), n.off("cameraDirectionUpdate", f), n.off("movingToPano", f), n.off("mouseWheel", () => A()), n.off("pinchGesture", () => A());
|
|
7197
7197
|
}), i.$$set = (w) => {
|
|
7198
7198
|
"five" in w && e(1, n = w.five), "rulerDatas" in w && e(2, o = w.rulerDatas), "options" in w && e(3, s = w.options);
|
|
7199
7199
|
}, [r, n, o, s];
|
|
@@ -7603,9 +7603,9 @@ class xf {
|
|
|
7603
7603
|
return [(p.x + 1) / 2 * s.x, (p.y + 1) / 2 * s.y];
|
|
7604
7604
|
} else
|
|
7605
7605
|
return [this.renderCenter.x, s.y - this.renderCenter.y];
|
|
7606
|
-
})(), l = 1, c = n / t, u = o / t, d = l * t, h = this.five.getPixels(r - c / 2, a - c / 2, c, u, d), f = Math.floor(n * l),
|
|
7607
|
-
kf(h, f,
|
|
7608
|
-
const g = new ImageData(f,
|
|
7606
|
+
})(), l = 1, c = n / t, u = o / t, d = l * t, h = this.five.getPixels(r - c / 2, a - c / 2, c, u, d), f = Math.floor(n * l), A = Math.floor(o * l);
|
|
7607
|
+
kf(h, f, A);
|
|
7608
|
+
const g = new ImageData(f, A);
|
|
7609
7609
|
g.data.set(h), e.putImageData(g, 0, 0);
|
|
7610
7610
|
}
|
|
7611
7611
|
initStyle() {
|
|
@@ -7779,8 +7779,8 @@ const Rf = {
|
|
|
7779
7779
|
pointsRenderOrder: 10
|
|
7780
7780
|
};
|
|
7781
7781
|
function Ff(i, t, e) {
|
|
7782
|
-
var u, d, h, f,
|
|
7783
|
-
const n = (u = e == null ? void 0 : e.lineWidth) != null ? u : 2, o = (d = e == null ? void 0 : e.lineColor) != null ? d : new Ln(16777215), s = (h = e == null ? void 0 : e.pointSize) != null ? h : 5, r = (f = e == null ? void 0 : e.lineRenderOrder) != null ? f : 10, a = (
|
|
7782
|
+
var u, d, h, f, A;
|
|
7783
|
+
const n = (u = e == null ? void 0 : e.lineWidth) != null ? u : 2, o = (d = e == null ? void 0 : e.lineColor) != null ? d : new Ln(16777215), s = (h = e == null ? void 0 : e.pointSize) != null ? h : 5, r = (f = e == null ? void 0 : e.lineRenderOrder) != null ? f : 10, a = (A = e == null ? void 0 : e.lineRenderOrder) != null ? A : 20, l = new Ia(i, t);
|
|
7784
7784
|
l.setMaterial({ linewidth: n, color: o }), l.line.material.depthTest = !1, l.line.material.transparent = !0, l.line.renderOrder = r, l.points.renderOrder = a;
|
|
7785
7785
|
const c = l.points.material;
|
|
7786
7786
|
return c.depthTest = !1, c.size = s, e != null && e.pointColor && c.color.set(e.pointColor).convertSRGBToLinear(), e != null && e.pointTexture && (c.map = e.pointTexture), l;
|
|
@@ -7815,7 +7815,7 @@ function Wf(i) {
|
|
|
7815
7815
|
ndcPosition: a,
|
|
7816
7816
|
update: h,
|
|
7817
7817
|
appendTo: f,
|
|
7818
|
-
remove:
|
|
7818
|
+
remove: A,
|
|
7819
7819
|
highlight: u,
|
|
7820
7820
|
unHighlight: d,
|
|
7821
7821
|
getCurrentContent: g,
|
|
@@ -7823,8 +7823,8 @@ function Wf(i) {
|
|
|
7823
7823
|
};
|
|
7824
7824
|
s.style.pointerEvents = t ? "all" : "none", r != null && r.element ? s.appendChild(r.element) : s.appendChild(o);
|
|
7825
7825
|
function c() {
|
|
7826
|
-
var
|
|
7827
|
-
(
|
|
7826
|
+
var v;
|
|
7827
|
+
(v = i.clickCallback) == null || v.call(i, l);
|
|
7828
7828
|
}
|
|
7829
7829
|
function u() {
|
|
7830
7830
|
if (r)
|
|
@@ -7836,18 +7836,18 @@ function Wf(i) {
|
|
|
7836
7836
|
return r.unHighlight();
|
|
7837
7837
|
o.style.border = "0.5px solid rgba(255,255,255,0.6)", o.style.background = "rgba(195,195,195,0.70)";
|
|
7838
7838
|
}
|
|
7839
|
-
function h(
|
|
7839
|
+
function h(v) {
|
|
7840
7840
|
if (e.mesh.visible === !1) {
|
|
7841
7841
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7842
7842
|
return;
|
|
7843
7843
|
}
|
|
7844
|
-
const b =
|
|
7844
|
+
const b = v.getElement();
|
|
7845
7845
|
if (!b)
|
|
7846
7846
|
return;
|
|
7847
7847
|
const w = b.clientWidth, E = b.clientHeight, L = w / 2, I = E / 2;
|
|
7848
7848
|
if (e.points.length < 2)
|
|
7849
7849
|
return;
|
|
7850
|
-
const [D, k] = e.points, V = D.position.clone().project(
|
|
7850
|
+
const [D, k] = e.points, V = D.position.clone().project(v.camera), _ = k.position.clone().project(v.camera), O = V.clone().lerp(_, 0.5), F = new _e(V.x * L, V.y * I), B = new _e(_.x * L, _.y * I), R = F.distanceTo(B);
|
|
7851
7851
|
if ((() => !(Math.abs(V.z) > 1 || Math.abs(_.z) > 1 || !Qi(V) && !Qi(_) || !Qi(O) || R === 0))() === !1) {
|
|
7852
7852
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7853
7853
|
return;
|
|
@@ -7857,21 +7857,21 @@ function Wf(i) {
|
|
|
7857
7857
|
const he = g();
|
|
7858
7858
|
o.innerText = he;
|
|
7859
7859
|
}
|
|
7860
|
-
function f(
|
|
7861
|
-
|
|
7860
|
+
function f(v) {
|
|
7861
|
+
v.appendChild(s), s.addEventListener("click", c);
|
|
7862
7862
|
}
|
|
7863
|
-
function
|
|
7863
|
+
function A() {
|
|
7864
7864
|
o.removeEventListener("click", c), s.remove();
|
|
7865
7865
|
}
|
|
7866
7866
|
function g() {
|
|
7867
7867
|
var D, k, V;
|
|
7868
7868
|
if (e.points.length < 2)
|
|
7869
7869
|
return "";
|
|
7870
|
-
const [
|
|
7870
|
+
const [v, b] = e.points, w = v.position.clone().distanceTo(b.position), E = (D = i.line.text) != null ? D : i.line.model.config.defaultText, L = (V = (k = i.line.model.config) == null ? void 0 : k.getDistanceText) == null ? void 0 : V.call(k, w), I = E != null ? E : L;
|
|
7871
7871
|
return I != null ? I : w.toFixed(2) + "m";
|
|
7872
7872
|
}
|
|
7873
|
-
function p(
|
|
7874
|
-
t =
|
|
7873
|
+
function p(v) {
|
|
7874
|
+
t = v;
|
|
7875
7875
|
}
|
|
7876
7876
|
return l;
|
|
7877
7877
|
}
|
|
@@ -8230,8 +8230,8 @@ class Al {
|
|
|
8230
8230
|
const l = (s + 1) / 2 * a.clientWidth, c = -(r - 1) / 2 * a.clientHeight;
|
|
8231
8231
|
let u = l, d = c - 34;
|
|
8232
8232
|
if (this.lines.length === 1 && t.length === 2) {
|
|
8233
|
-
const h = (o[1] - o[0]) / (n[1] - n[0]),
|
|
8234
|
-
Math.abs(h) > 0.4 && (u = l + 57, d =
|
|
8233
|
+
const h = (o[1] - o[0]) / (n[1] - n[0]), A = -((o[1] + o[0]) / 2 - 1) / 2 * a.clientHeight;
|
|
8234
|
+
Math.abs(h) > 0.4 && (u = l + 57, d = A);
|
|
8235
8235
|
}
|
|
8236
8236
|
return this.container.style.transform = `translate3d(${u}px, ${d}px, 10px)`, this.show();
|
|
8237
8237
|
}
|
|
@@ -8337,18 +8337,18 @@ class Rs extends ki {
|
|
|
8337
8337
|
if (!n)
|
|
8338
8338
|
return;
|
|
8339
8339
|
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new _e(s.x * r, s.y * a), c = this.model.getAllLines().map((f) => {
|
|
8340
|
-
const [
|
|
8341
|
-
if (!Dn(p) && !Dn(
|
|
8340
|
+
const [A, g] = f.points, p = A.position.clone().project(o), v = g.position.clone().project(o);
|
|
8341
|
+
if (!Dn(p) && !Dn(v))
|
|
8342
8342
|
return null;
|
|
8343
|
-
const b = new _e(p.x * r, p.y * a), w = new _e(
|
|
8343
|
+
const b = new _e(p.x * r, p.y * a), w = new _e(v.x * r, v.y * a);
|
|
8344
8344
|
return { id: f.id, points: [b, w] };
|
|
8345
8345
|
}).filter((f) => !!f);
|
|
8346
8346
|
if (c.length === 0)
|
|
8347
8347
|
return;
|
|
8348
8348
|
const d = c.map((f) => {
|
|
8349
|
-
const
|
|
8350
|
-
return { id: f.id, distance:
|
|
8351
|
-
}).sort((f,
|
|
8349
|
+
const A = vl(l, f.points);
|
|
8350
|
+
return { id: f.id, distance: A.distanceTo(l) };
|
|
8351
|
+
}).sort((f, A) => f.distance - A.distance)[0];
|
|
8352
8352
|
if (d.distance > 20)
|
|
8353
8353
|
return;
|
|
8354
8354
|
const h = this.model.getAllLines().find(({ id: f }) => f === d.id);
|
|
@@ -8498,8 +8498,8 @@ void main() {
|
|
|
8498
8498
|
}
|
|
8499
8499
|
`;
|
|
8500
8500
|
function yl(i) {
|
|
8501
|
-
var
|
|
8502
|
-
const t = (
|
|
8501
|
+
var v, b;
|
|
8502
|
+
const t = (v = i.isMobile) != null ? v : !0, e = (b = i.useNormalVector) != null ? b : !0;
|
|
8503
8503
|
let n = 10349931;
|
|
8504
8504
|
e && i.ballColor >= 0 && (n = i.ballColor);
|
|
8505
8505
|
const o = new Gt(), s = new gc(0.3, 0.3), r = t ? em : tm, a = new Ea().load(r);
|
|
@@ -8515,12 +8515,12 @@ function yl(i) {
|
|
|
8515
8515
|
fragmentShader: im,
|
|
8516
8516
|
depthTest: !1,
|
|
8517
8517
|
transparent: !0
|
|
8518
|
-
}), f = new An(d, h),
|
|
8518
|
+
}), f = new An(d, h), A = new wc(0.01, 20, 20), g = new Cn({
|
|
8519
8519
|
color: n,
|
|
8520
8520
|
depthTest: !1,
|
|
8521
8521
|
transparent: !0,
|
|
8522
8522
|
side: Pa
|
|
8523
|
-
}), p = new An(
|
|
8523
|
+
}), p = new An(A, g);
|
|
8524
8524
|
return p.position.set(0, 0, 0.1), o.name = "mouse-current", o.add(c), e && o.add(f, p), o;
|
|
8525
8525
|
}
|
|
8526
8526
|
class om {
|
|
@@ -8652,18 +8652,18 @@ class un extends ki {
|
|
|
8652
8652
|
if (!n)
|
|
8653
8653
|
return;
|
|
8654
8654
|
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new _e(s.x * r, s.y * a), c = this.polyline.lines.map((f) => {
|
|
8655
|
-
const [
|
|
8656
|
-
if (!Dn(p) && !Dn(
|
|
8655
|
+
const [A, g] = f.points, p = A.position.clone().project(o), v = g.position.clone().project(o);
|
|
8656
|
+
if (!Dn(p) && !Dn(v))
|
|
8657
8657
|
return null;
|
|
8658
|
-
const b = new _e(p.x * r, p.y * a), w = new _e(
|
|
8658
|
+
const b = new _e(p.x * r, p.y * a), w = new _e(v.x * r, v.y * a);
|
|
8659
8659
|
return { id: f.id, points: [b, w] };
|
|
8660
8660
|
}).filter((f) => !!f);
|
|
8661
8661
|
if (c.length === 0)
|
|
8662
8662
|
return;
|
|
8663
8663
|
const d = c.map((f) => {
|
|
8664
|
-
const
|
|
8665
|
-
return { id: f.id, distance:
|
|
8666
|
-
}).sort((f,
|
|
8664
|
+
const A = vl(l, f.points);
|
|
8665
|
+
return { id: f.id, distance: A.distanceTo(l) };
|
|
8666
|
+
}).sort((f, A) => f.distance - A.distance)[0];
|
|
8667
8667
|
if (d.distance > 20)
|
|
8668
8668
|
return;
|
|
8669
8669
|
const h = this.polyline.lines.find(({ id: f }) => f === d.id);
|
|
@@ -9484,28 +9484,28 @@ function km(i) {
|
|
|
9484
9484
|
le(i, "svelte-1i5h9zh", ".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
9485
9485
|
}
|
|
9486
9486
|
function xm(i) {
|
|
9487
|
-
let t, e, n, o, s, r, a, l, c, u, d, h, f,
|
|
9487
|
+
let t, e, n, o, s, r, a, l, c, u, d, h, f, A, g;
|
|
9488
9488
|
return {
|
|
9489
9489
|
c() {
|
|
9490
9490
|
t = z("div"), e = z("div"), n = $(), o = z("div"), s = z("i"), r = $(), a = z("i"), l = $(), c = z("i"), u = $(), d = z("div"), h = z("div"), y(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), T(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), y(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), T(s, "width", i[4] + "rem"), y(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), y(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), y(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), y(h, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), y(d, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), T(d, "transform", "scale(" + i[3] * 3 + ")"), y(t, "id", f = "PanoSpatialTagPlugin__" + i[0]), T(t, "height", 20 * i[5] + "rem"), y(t, "class", "svelte-1i5h9zh"), q(t, "PanoSpatialTagPlugin__tag-x", !0), q(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), q(t, "PanoSpatialTagPlugin__tag-show", i[10]), q(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
|
|
9491
9491
|
},
|
|
9492
|
-
m(p,
|
|
9493
|
-
M(p, t,
|
|
9492
|
+
m(p, v) {
|
|
9493
|
+
M(p, t, v), j(t, e), j(t, n), j(t, o), j(o, s), j(o, r), j(o, a), j(o, l), j(o, c), j(t, u), j(t, d), j(d, h), h.innerHTML = i[2], i[16](h), A || (g = ge(h, "click", i[11]), A = !0);
|
|
9494
9494
|
},
|
|
9495
|
-
p(p, [
|
|
9496
|
-
|
|
9495
|
+
p(p, [v]) {
|
|
9496
|
+
v & 394 && T(e, "transform", "translate(" + p[7] / 2 * p[3] * 3 + "px, " + p[8] / 2 * (p[1] ? -1 : 1) * p[3] * 3 + "px) scale(" + 1 / p[3] + ")"), v & 16 && T(s, "width", p[4] + "rem"), v & 4 && (h.innerHTML = p[2]), v & 8 && T(d, "transform", "scale(" + p[3] * 3 + ")"), v & 1 && f !== (f = "PanoSpatialTagPlugin__" + p[0]) && y(t, "id", f), v & 32 && T(t, "height", 20 * p[5] + "rem"), v & 2 && q(t, "PanoSpatialTagPlugin__tag-upside-down", p[1]), v & 1024 && q(t, "PanoSpatialTagPlugin__tag-show", p[10]), v & 1088 && q(t, "PanoSpatialTagPlugin__tag-hide", p[10] === !1 || p[6]);
|
|
9497
9497
|
},
|
|
9498
9498
|
i: N,
|
|
9499
9499
|
o: N,
|
|
9500
9500
|
d(p) {
|
|
9501
|
-
p && S(t), i[16](null),
|
|
9501
|
+
p && S(t), i[16](null), A = !1, g();
|
|
9502
9502
|
}
|
|
9503
9503
|
};
|
|
9504
9504
|
}
|
|
9505
9505
|
function Dm(i, t, e) {
|
|
9506
|
-
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: d } = t, { events: h } = t, { hooks: f } = t,
|
|
9506
|
+
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: d } = t, { events: h } = t, { hooks: f } = t, A = 0, g = 0, p, v, b = setTimeout(
|
|
9507
9507
|
() => {
|
|
9508
|
-
u || e(10,
|
|
9508
|
+
u || e(10, v = !0), b = void 0;
|
|
9509
9509
|
},
|
|
9510
9510
|
100
|
|
9511
9511
|
);
|
|
@@ -9534,7 +9534,7 @@ function Dm(i, t, e) {
|
|
|
9534
9534
|
if (I === null)
|
|
9535
9535
|
return;
|
|
9536
9536
|
const [D, k] = I.split("-PanoSpatialTagPlugin-");
|
|
9537
|
-
n === D && (f.emit("clickOrigin", { id: n, show:
|
|
9537
|
+
n === D && (f.emit("clickOrigin", { id: n, show: v }), b || (e(10, v = u), e(12, u = !u), b = setTimeout(
|
|
9538
9538
|
() => {
|
|
9539
9539
|
b = void 0;
|
|
9540
9540
|
},
|
|
@@ -9542,7 +9542,7 @@ function Dm(i, t, e) {
|
|
|
9542
9542
|
)));
|
|
9543
9543
|
});
|
|
9544
9544
|
_a(() => {
|
|
9545
|
-
e(7,
|
|
9545
|
+
e(7, A = p.offsetWidth), e(8, g = p.offsetHeight), !b && e(10, v = !u);
|
|
9546
9546
|
}), Pt(() => {
|
|
9547
9547
|
f.emit("destroyTag", { id: n }), E(), d();
|
|
9548
9548
|
});
|
|
@@ -9561,10 +9561,10 @@ function Dm(i, t, e) {
|
|
|
9561
9561
|
a,
|
|
9562
9562
|
l,
|
|
9563
9563
|
c,
|
|
9564
|
-
|
|
9564
|
+
A,
|
|
9565
9565
|
g,
|
|
9566
9566
|
p,
|
|
9567
|
-
|
|
9567
|
+
v,
|
|
9568
9568
|
w,
|
|
9569
9569
|
u,
|
|
9570
9570
|
d,
|
|
@@ -9745,8 +9745,8 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9745
9745
|
const o = (Y = t == null ? void 0 : t.wait) != null ? Y : 200, s = (ae = t == null ? void 0 : t.maxNumberOnScreen) != null ? ae : 3, r = (he = t == null ? void 0 : t.minRad) != null ? he : Math.PI / 4, a = (de = t == null ? void 0 : t.nearTolerance) != null ? de : 100, l = (pe = t == null ? void 0 : t.upsideHeight) != null ? pe : 1.6, c = (Ce = t == null ? void 0 : t.minDistance) != null ? Ce : 1.2, u = (Pe = t == null ? void 0 : t.maxDistance) != null ? Pe : 3.5, d = Tn(i), h = document.createElement("div");
|
|
9746
9746
|
h.classList.add("PanoSpatialTagPlugin"), Object.assign(h.style, Sm);
|
|
9747
9747
|
const f = new Ye();
|
|
9748
|
-
let
|
|
9749
|
-
|
|
9748
|
+
let A = new Image();
|
|
9749
|
+
A.src = jm;
|
|
9750
9750
|
const g = {
|
|
9751
9751
|
points: [],
|
|
9752
9752
|
origins: [],
|
|
@@ -9760,7 +9760,7 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9760
9760
|
}, p = new Im({
|
|
9761
9761
|
target: h,
|
|
9762
9762
|
props: { origins: g.origins }
|
|
9763
|
-
}),
|
|
9763
|
+
}), v = (ce, Ae) => {
|
|
9764
9764
|
L(), Ae && I();
|
|
9765
9765
|
}, b = () => {
|
|
9766
9766
|
g.forbidden && (g.forbidden = !1, I());
|
|
@@ -9956,11 +9956,11 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9956
9956
|
}, X = () => {
|
|
9957
9957
|
i.once("renderFrame", L);
|
|
9958
9958
|
}, G = () => {
|
|
9959
|
-
e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new C.Vector3()).y, I(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", E), i.on("cameraUpdate",
|
|
9959
|
+
e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new C.Vector3()).y, I(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", E), i.on("cameraUpdate", v);
|
|
9960
9960
|
}, ee = () => {
|
|
9961
|
-
|
|
9961
|
+
A = null, d.disposeAll(), p.$destroy(), g.tags.forEach((ce) => {
|
|
9962
9962
|
ce.app.$destroy(), ce = null;
|
|
9963
|
-
}), g.origins = [], g.tags = [], i.off("modelLoaded", G), i.off("renderFrame", L), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", E), i.off("cameraUpdate",
|
|
9963
|
+
}), g.origins = [], g.tags = [], i.off("modelLoaded", G), i.off("renderFrame", L), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", E), i.off("cameraUpdate", v), i.off("dispose", ee), window.removeEventListener("resize", X, !1);
|
|
9964
9964
|
};
|
|
9965
9965
|
return window.addEventListener("resize", X, !1), (Se = i == null ? void 0 : i.model) != null && Se.loaded ? G() : i.once("modelLoaded", G), i.on("dispose", ee), {
|
|
9966
9966
|
load: k,
|
|
@@ -10107,16 +10107,16 @@ function Hm(i) {
|
|
|
10107
10107
|
let Zs = 26, Gm = 11;
|
|
10108
10108
|
function Wm(i, t, e) {
|
|
10109
10109
|
const { Raycaster: n, Vector3: o } = C;
|
|
10110
|
-
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, d = null, h, f,
|
|
10110
|
+
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, d = null, h, f, A = [], g = !0;
|
|
10111
10111
|
const p = (B, R) => {
|
|
10112
10112
|
const W = new n(), X = B.camera.position.clone(), G = new o().fromArray(R.modelPosition), ee = G.distanceTo(X);
|
|
10113
10113
|
W.set(X.clone(), G.clone().sub(X).normalize());
|
|
10114
10114
|
const [Y] = B.model.intersectRaycaster(W);
|
|
10115
10115
|
return !(Y && Y.distance + 1 < ee);
|
|
10116
|
-
},
|
|
10116
|
+
}, v = (B, R) => {
|
|
10117
10117
|
const W = new o(R.modelPosition[0], R.modelPosition[1], R.modelPosition[2]), X = B.project2d(W), G = X == null ? void 0 : X.x, ee = X == null ? void 0 : X.y;
|
|
10118
10118
|
return [G, ee];
|
|
10119
|
-
}, b = (B) => `translate(${B[0]}px, ${B[1]}px)`, w = (B, R) =>
|
|
10119
|
+
}, b = (B) => `translate(${B[0]}px, ${B[1]}px)`, w = (B, R) => A.length === 0 ? !1 : !!A.find((X) => B[0] >= X[0] - R && B[0] <= X[0] + R || B[1] >= X[1] - Zs && B[1] <= X[1] + Zs);
|
|
10120
10120
|
function E(B, R) {
|
|
10121
10121
|
switch (R) {
|
|
10122
10122
|
case Rt.SMALL:
|
|
@@ -10131,10 +10131,10 @@ function Wm(i, t, e) {
|
|
|
10131
10131
|
}
|
|
10132
10132
|
const L = (B, R) => {
|
|
10133
10133
|
const W = R.map((G) => {
|
|
10134
|
-
const ee =
|
|
10134
|
+
const ee = v(B, G), Y = G.name.length * Gm, ae = E(G.modelPosition[1], c), de = (r ? p(B, G) : !0) && !w([ee[0], ee[1] + ae], Y);
|
|
10135
10135
|
if (!de)
|
|
10136
10136
|
return fe(Q({}, G), { visible: de });
|
|
10137
|
-
|
|
10137
|
+
A.push(ee);
|
|
10138
10138
|
const pe = b(ee);
|
|
10139
10139
|
return fe(Q({}, G), {
|
|
10140
10140
|
visible: de,
|
|
@@ -10150,7 +10150,7 @@ function Wm(i, t, e) {
|
|
|
10150
10150
|
return ee !== void 0 ? fe(Q({}, G), { zIndex: ee * 10 }) : G;
|
|
10151
10151
|
});
|
|
10152
10152
|
}, I = () => {
|
|
10153
|
-
|
|
10153
|
+
A = [], e(1, d = L(s, d));
|
|
10154
10154
|
};
|
|
10155
10155
|
Wa(() => {
|
|
10156
10156
|
_();
|
|
@@ -10240,15 +10240,15 @@ const jb = (i, t) => {
|
|
|
10240
10240
|
height: 100%;
|
|
10241
10241
|
z-index: 5;
|
|
10242
10242
|
`, e.container.style.pointerEvents = "none";
|
|
10243
|
-
const n = (
|
|
10244
|
-
e.itemLabels = Nm(
|
|
10243
|
+
const n = (A) => (e.wrapper = A, A.appendChild(e.container), l(), !0), o = (A) => {
|
|
10244
|
+
e.itemLabels = Nm(A), l();
|
|
10245
10245
|
}, s = () => (e.enabled || (e.enabled = !0, l()), !0), r = () => (e.enabled && (e.enabled = !1, l()), !0), a = () => {
|
|
10246
10246
|
u(), e.container.remove();
|
|
10247
10247
|
}, l = () => {
|
|
10248
|
-
var
|
|
10248
|
+
var A;
|
|
10249
10249
|
if (!!e.wrapper) {
|
|
10250
10250
|
if (!e.enabled || !e.fiveModeEnabled) {
|
|
10251
|
-
(
|
|
10251
|
+
(A = e.app) == null || A.$destroy(), e.app = void 0;
|
|
10252
10252
|
return;
|
|
10253
10253
|
}
|
|
10254
10254
|
e.app ? e.app.$set({
|
|
@@ -10270,9 +10270,9 @@ const jb = (i, t) => {
|
|
|
10270
10270
|
i.on("modeChange", d), i.once("dispose", a);
|
|
10271
10271
|
}, u = () => {
|
|
10272
10272
|
i.off("modeChange", d);
|
|
10273
|
-
}, d = (
|
|
10273
|
+
}, d = (A) => {
|
|
10274
10274
|
if (!!e.enabled) {
|
|
10275
|
-
if (
|
|
10275
|
+
if (A !== je.Mode.Floorplan) {
|
|
10276
10276
|
e.fiveModeEnabled = !1, l();
|
|
10277
10277
|
return;
|
|
10278
10278
|
}
|
|
@@ -10318,13 +10318,13 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10318
10318
|
rectPoints: [],
|
|
10319
10319
|
enabled: !1,
|
|
10320
10320
|
videoElement: t
|
|
10321
|
-
}, n = Tn(i), o = /* @__PURE__ */ new Map(), s = (
|
|
10322
|
-
e.videoTexture && (e.videoTexture.image.muted =
|
|
10321
|
+
}, n = Tn(i), o = /* @__PURE__ */ new Map(), s = (v) => {
|
|
10322
|
+
e.videoTexture && (e.videoTexture.image.muted = v);
|
|
10323
10323
|
}, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
|
|
10324
10324
|
if (e.enabled || !e.videoTexture)
|
|
10325
10325
|
return;
|
|
10326
10326
|
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((b) => i.scene.add(b));
|
|
10327
|
-
const
|
|
10327
|
+
const v = () => {
|
|
10328
10328
|
if (!e.videoTexture)
|
|
10329
10329
|
return;
|
|
10330
10330
|
const b = () => {
|
|
@@ -10342,30 +10342,30 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10342
10342
|
});
|
|
10343
10343
|
};
|
|
10344
10344
|
if (i.model.loaded)
|
|
10345
|
-
|
|
10345
|
+
v();
|
|
10346
10346
|
else
|
|
10347
|
-
return i.once("modelLoaded", () =>
|
|
10347
|
+
return i.once("modelLoaded", () => v());
|
|
10348
10348
|
}, l = () => {
|
|
10349
|
-
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((
|
|
10350
|
-
|
|
10349
|
+
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((v) => {
|
|
10350
|
+
v.geometry.dispose(), v.material.dispose(), i.scene.remove(v), e.videoTexture && e.videoTexture.image.pause();
|
|
10351
10351
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
10352
|
-
}, c = () => e.rectPoints.map((
|
|
10352
|
+
}, c = () => e.rectPoints.map((v, b) => {
|
|
10353
10353
|
const w = new C.BufferGeometry(), E = 128, L = [];
|
|
10354
|
-
L.push(...
|
|
10354
|
+
L.push(...v[0].toArray());
|
|
10355
10355
|
for (let B = 1; B < E; B++)
|
|
10356
10356
|
L.push(
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10357
|
+
v[0].x + (v[1].x - v[0].x) * B / E,
|
|
10358
|
+
v[0].y + (v[1].y - v[0].y) * B / E,
|
|
10359
|
+
v[0].z + (v[1].z - v[0].z) * B / E
|
|
10360
10360
|
);
|
|
10361
|
-
L.push(...
|
|
10361
|
+
L.push(...v[1].toArray()), L.push(...v[2].toArray());
|
|
10362
10362
|
for (let B = 1; B < E; B++)
|
|
10363
10363
|
L.push(
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10364
|
+
v[2].x + (v[3].x - v[2].x) * B / E,
|
|
10365
|
+
v[2].y + (v[3].y - v[2].y) * B / E,
|
|
10366
|
+
v[2].z + (v[3].z - v[2].z) * B / E
|
|
10367
10367
|
);
|
|
10368
|
-
L.push(...
|
|
10368
|
+
L.push(...v[3].toArray());
|
|
10369
10369
|
const I = [];
|
|
10370
10370
|
I.push(0, 1);
|
|
10371
10371
|
for (let B = 1; B < E; B++)
|
|
@@ -10385,7 +10385,7 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10385
10385
|
side: C.DoubleSide
|
|
10386
10386
|
}), _ = new C.Mesh(w, V);
|
|
10387
10387
|
_.renderOrder = 1, _.name = `ModelTVVideoPlugin-${b}-${performance.now()}`;
|
|
10388
|
-
const O = [
|
|
10388
|
+
const O = [v[1], v[2], v[3], v[0]], F = n.create3DDomContainer(O);
|
|
10389
10389
|
if (F != null && F.container) {
|
|
10390
10390
|
const B = document.createElement("div");
|
|
10391
10391
|
B.classList.add("play-icon"), B.style.width = "100%", B.style.height = "100%", B.style.display = "flex", B.style.justifyContent = "center", B.style.alignItems = "center", B.style.pointerEvents = "none", F.container.appendChild(B);
|
|
@@ -10395,10 +10395,10 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10395
10395
|
}, B.appendChild(R), o.set(_, F);
|
|
10396
10396
|
}
|
|
10397
10397
|
return _;
|
|
10398
|
-
}), u = (
|
|
10399
|
-
const b = new C.TextureLoader().load(
|
|
10398
|
+
}), u = (v) => {
|
|
10399
|
+
const b = new C.TextureLoader().load(v);
|
|
10400
10400
|
return b.minFilter = C.LinearFilter, b.magFilter = C.LinearFilter, b.format = C.RGBFormat, b;
|
|
10401
|
-
}, d = (
|
|
10401
|
+
}, d = (v, b) => new Promise((w, E) => {
|
|
10402
10402
|
const L = new XMLHttpRequest();
|
|
10403
10403
|
L.onreadystatechange = () => {
|
|
10404
10404
|
if (L.readyState == 4)
|
|
@@ -10406,48 +10406,48 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10406
10406
|
const I = window.URL || window.webkitURL;
|
|
10407
10407
|
b = b || document.createElement("video"), b.crossOrigin = "anonymous", b.muted = !0, b.loop = !0, b.playsInline = !0, b.src = I.createObjectURL(L.response);
|
|
10408
10408
|
const D = new C.VideoTexture(b);
|
|
10409
|
-
D.minFilter = C.LinearFilter, D.magFilter = C.LinearFilter, D.format = C.RGBFormat, w(Object.assign(D, { videoSource:
|
|
10409
|
+
D.minFilter = C.LinearFilter, D.magFilter = C.LinearFilter, D.format = C.RGBFormat, w(Object.assign(D, { videoSource: v }));
|
|
10410
10410
|
} else
|
|
10411
10411
|
E(new Error("Video download Error: " + L.status));
|
|
10412
|
-
}, L.onerror = (I) => E(I), L.open("GET",
|
|
10413
|
-
}), h = (
|
|
10414
|
-
const { video_src: w, video_poster_src: E, points: L } =
|
|
10415
|
-
e.videoSource = w, e.rectPoints = Xm(L).map((I) => I.map(({ x: D, y: k, z: V }) => new C.Vector3(D, k, V))), e.imageTexture = u(E), b && (e.videoElement = b), e.videoTexture = yield d(e.videoSource, e.videoElement), e.enabled = !!
|
|
10416
|
-
}), f = (
|
|
10412
|
+
}, L.onerror = (I) => E(I), L.open("GET", v), L.responseType = "blob", L.send();
|
|
10413
|
+
}), h = (v, b) => H(void 0, null, function* () {
|
|
10414
|
+
const { video_src: w, video_poster_src: E, points: L } = v;
|
|
10415
|
+
e.videoSource = w, e.rectPoints = Xm(L).map((I) => I.map(({ x: D, y: k, z: V }) => new C.Vector3(D, k, V))), e.imageTexture = u(E), b && (e.videoElement = b), e.videoTexture = yield d(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
|
|
10416
|
+
}), f = (v) => {
|
|
10417
10417
|
if (!e.enabled)
|
|
10418
10418
|
return;
|
|
10419
10419
|
const b = e.videoMeshes;
|
|
10420
|
-
if (!(!b ||
|
|
10420
|
+
if (!(!b || v.intersectObjects(b).length === 0))
|
|
10421
10421
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
10422
|
-
},
|
|
10423
|
-
|
|
10422
|
+
}, A = (v) => {
|
|
10423
|
+
v === "Floorplan" ? n.hide() : n.show();
|
|
10424
10424
|
}, g = () => {
|
|
10425
10425
|
if (!e.enabled)
|
|
10426
10426
|
return;
|
|
10427
|
-
const
|
|
10427
|
+
const v = i.camera.position;
|
|
10428
10428
|
if (o.forEach((b, w) => {
|
|
10429
|
-
const E = b.css3DObject.position.clone(), L = E.clone().sub(
|
|
10429
|
+
const E = b.css3DObject.position.clone(), L = E.clone().sub(v).normalize(), I = new C.Raycaster(v, L), D = i.model.intersectRaycaster(I)[0], k = E.distanceTo(v), V = 0.01;
|
|
10430
10430
|
D && D.distance + V < k ? b.hide() : b.show();
|
|
10431
10431
|
}), !r()) {
|
|
10432
10432
|
const b = e.rectPoints.find((w) => {
|
|
10433
10433
|
const E = w[0].clone().add(w[1]).add(w[2]).add(w[3]).divideScalar(4);
|
|
10434
10434
|
return w.map((L) => L.clone().add(E).divideScalar(2)).filter((L) => {
|
|
10435
|
-
const I = L.distanceTo(
|
|
10435
|
+
const I = L.distanceTo(v), D = new C.Raycaster(v, L.clone().sub(v).normalize()), k = i.model.intersectRaycaster(D)[0], V = 0.01;
|
|
10436
10436
|
return !(k && k.distance + V < I);
|
|
10437
10437
|
}).length >= 2;
|
|
10438
10438
|
});
|
|
10439
10439
|
(!b || b.length === 0) && s(!0);
|
|
10440
10440
|
}
|
|
10441
10441
|
}, p = () => {
|
|
10442
|
-
l(), e.videoTexture = void 0, i.off("modeChange",
|
|
10443
|
-
e.videoMeshes.forEach((
|
|
10444
|
-
|
|
10442
|
+
l(), e.videoTexture = void 0, i.off("modeChange", A), i.off("wantsTapGesture", f), i.off("panoArrived", g), i.off("renderFrame", () => {
|
|
10443
|
+
e.videoMeshes.forEach((v) => {
|
|
10444
|
+
v && (v.needsRender = !0);
|
|
10445
10445
|
});
|
|
10446
10446
|
});
|
|
10447
10447
|
};
|
|
10448
|
-
return i.on("modeChange",
|
|
10449
|
-
e.videoMeshes.forEach((
|
|
10450
|
-
|
|
10448
|
+
return i.on("modeChange", A), i.on("wantsTapGesture", f), i.on("panoArrived", g), i.on("renderFrame", () => {
|
|
10449
|
+
e.videoMeshes.forEach((v) => {
|
|
10450
|
+
v && (v.needsRender = !0);
|
|
10451
10451
|
});
|
|
10452
10452
|
}), { enable: a, disable: l, load: h, dispose: p, state: e, css3DRenderPlugin: n };
|
|
10453
10453
|
};
|
|
@@ -10507,8 +10507,8 @@ function Ks(i) {
|
|
|
10507
10507
|
}
|
|
10508
10508
|
function Jm(i) {
|
|
10509
10509
|
let t, e, n, o, s, r, a, l, c, u;
|
|
10510
|
-
function d(
|
|
10511
|
-
return g & 1 && (n = null), n == null && (n = !!Boolean(typeof
|
|
10510
|
+
function d(A, g) {
|
|
10511
|
+
return g & 1 && (n = null), n == null && (n = !!Boolean(typeof A[0].render == "function")), n ? qm : Um;
|
|
10512
10512
|
}
|
|
10513
10513
|
let h = d(i, -1), f = h(i);
|
|
10514
10514
|
return {
|
|
@@ -10517,18 +10517,18 @@ function Jm(i) {
|
|
|
10517
10517
|
"item-label-item__custom": Boolean(typeof i[0].render == "function")
|
|
10518
10518
|
})) + " svelte-gduhqw"), T(e, "bottom", `${i[0].strokeLength}px`), y(r, "class", a = Me(tt("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), T(r, "height", `${i[0].strokeLength}px`), y(t, "class", l = Me(tt("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform);
|
|
10519
10519
|
},
|
|
10520
|
-
m(
|
|
10521
|
-
M(
|
|
10520
|
+
m(A, g) {
|
|
10521
|
+
M(A, t, g), j(t, e), f.m(e, null), j(t, s), j(t, r), c || (u = ge(e, "click", i[4]), c = !0);
|
|
10522
10522
|
},
|
|
10523
|
-
p(
|
|
10524
|
-
h === (h = d(
|
|
10525
|
-
"item-label-item__custom": Boolean(typeof
|
|
10526
|
-
})) + " svelte-gduhqw") && y(e, "class", o), g & 1 && T(e, "bottom", `${
|
|
10523
|
+
p(A, [g]) {
|
|
10524
|
+
h === (h = d(A, g)) && f ? f.p(A, g) : (f.d(1), f = h(A), f && (f.c(), f.m(e, null))), g & 1 && o !== (o = Me(tt("item-label-item__text-wrap", {
|
|
10525
|
+
"item-label-item__custom": Boolean(typeof A[0].render == "function")
|
|
10526
|
+
})) + " svelte-gduhqw") && y(e, "class", o), g & 1 && T(e, "bottom", `${A[0].strokeLength}px`), g & 2 && a !== (a = Me(tt("item-label-item__bar", { anchor: A[1] })) + " svelte-gduhqw") && y(r, "class", a), g & 1 && T(r, "height", `${A[0].strokeLength}px`), g & 1 && l !== (l = Me(tt("item-label-item", { fold: A[0].isFold })) + " svelte-gduhqw") && y(t, "class", l), g & 1 && T(t, "z-index", A[0].zIndex), g & 1 && T(t, "transform", A[0].transform);
|
|
10527
10527
|
},
|
|
10528
10528
|
i: N,
|
|
10529
10529
|
o: N,
|
|
10530
|
-
d(
|
|
10531
|
-
|
|
10530
|
+
d(A) {
|
|
10531
|
+
A && S(t), f.d(), c = !1, u();
|
|
10532
10532
|
}
|
|
10533
10533
|
};
|
|
10534
10534
|
}
|
|
@@ -10717,7 +10717,7 @@ function ip(i) {
|
|
|
10717
10717
|
let op = 11;
|
|
10718
10718
|
function sp(i, t, e) {
|
|
10719
10719
|
const { Raycaster: n, Vector3: o } = C;
|
|
10720
|
-
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, d = null, h = null, f = (s == null ? void 0 : s.currentMode) === je.Mode.Panorama,
|
|
10720
|
+
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, d = null, h = null, f = (s == null ? void 0 : s.currentMode) === je.Mode.Panorama, A, g, p = [], v = !0;
|
|
10721
10721
|
const b = (W, X) => {
|
|
10722
10722
|
const G = W.camera.position.clone(), ee = new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]), Y = ee.distanceTo(G);
|
|
10723
10723
|
return u !== void 0 && W.state.mode === je.Mode.Panorama && Y > u ? !1 : $s(W, ee.clone().sub(G).normalize(), G, Y);
|
|
@@ -10754,10 +10754,10 @@ function sp(i, t, e) {
|
|
|
10754
10754
|
}, I = () => {
|
|
10755
10755
|
p = [], e(1, h = L(s, h));
|
|
10756
10756
|
}, D = () => {
|
|
10757
|
-
e(5,
|
|
10757
|
+
e(5, v = !1), k();
|
|
10758
10758
|
}, k = kl(
|
|
10759
10759
|
() => {
|
|
10760
|
-
e(5,
|
|
10760
|
+
e(5, v = !0), I();
|
|
10761
10761
|
},
|
|
10762
10762
|
300
|
|
10763
10763
|
), V = () => {
|
|
@@ -10811,7 +10811,7 @@ function sp(i, t, e) {
|
|
|
10811
10811
|
s.off("cameraUpdate", D), window.removeEventListener("resize", V, !1);
|
|
10812
10812
|
});
|
|
10813
10813
|
function R() {
|
|
10814
|
-
|
|
10814
|
+
A = this.clientWidth, g = this.clientHeight, e(3, A), e(4, g);
|
|
10815
10815
|
}
|
|
10816
10816
|
return i.$$set = (W) => {
|
|
10817
10817
|
"five" in W && e(7, s = W.five), "modelOcclusionEnable" in W && e(8, r = W.modelOcclusionEnable), "itemLabels" in W && e(9, a = W.itemLabels), "hooks" in W && e(0, l = W.hooks), "displayStrategyType" in W && e(10, c = W.displayStrategyType), "maxVisibleDistance" in W && e(11, u = W.maxVisibleDistance);
|
|
@@ -10819,9 +10819,9 @@ function sp(i, t, e) {
|
|
|
10819
10819
|
l,
|
|
10820
10820
|
h,
|
|
10821
10821
|
f,
|
|
10822
|
-
v,
|
|
10823
|
-
g,
|
|
10824
10822
|
A,
|
|
10823
|
+
g,
|
|
10824
|
+
v,
|
|
10825
10825
|
B,
|
|
10826
10826
|
s,
|
|
10827
10827
|
r,
|
|
@@ -10859,7 +10859,7 @@ function ap(i) {
|
|
|
10859
10859
|
}));
|
|
10860
10860
|
}
|
|
10861
10861
|
const lp = void 0, Rb = (i, t) => {
|
|
10862
|
-
var h, f,
|
|
10862
|
+
var h, f, A, g;
|
|
10863
10863
|
const e = {
|
|
10864
10864
|
container: document.createElement("div"),
|
|
10865
10865
|
data: null,
|
|
@@ -10871,7 +10871,7 @@ const lp = void 0, Rb = (i, t) => {
|
|
|
10871
10871
|
hooks: new Ye(),
|
|
10872
10872
|
modelOcclusionEnable: (h = t == null ? void 0 : t.modelOcclusionEnable) != null ? h : !0,
|
|
10873
10873
|
onlyVisibleInPanorama: (f = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? f : !0,
|
|
10874
|
-
displayStrategyType: (
|
|
10874
|
+
displayStrategyType: (A = t == null ? void 0 : t.displayStrategyType) != null ? A : Ft.SMALL,
|
|
10875
10875
|
maxVisibleDistance: (g = t == null ? void 0 : t.maxVisibleDistance) != null ? g : lp
|
|
10876
10876
|
};
|
|
10877
10877
|
e.container.setAttribute("class", "item-label-plugin-container"), e.container.style.cssText = `
|
|
@@ -11003,9 +11003,9 @@ function hp(i, t, e) {
|
|
|
11003
11003
|
const f = () => {
|
|
11004
11004
|
if (!r || !a || !l || !s)
|
|
11005
11005
|
return;
|
|
11006
|
-
const p = s.current.clientWidth / window.innerWidth * 100,
|
|
11007
|
-
r <= p / 2 || r >= 100 - p / 2 || a <=
|
|
11008
|
-
},
|
|
11006
|
+
const p = s.current.clientWidth / window.innerWidth * 100, v = s.current.clientHeight / window.innerHeight * 100;
|
|
11007
|
+
r <= p / 2 || r >= 100 - p / 2 || a <= v / 2 || a >= 100 - v / 2;
|
|
11008
|
+
}, A = (p) => {
|
|
11009
11009
|
o && o();
|
|
11010
11010
|
};
|
|
11011
11011
|
function g(p) {
|
|
@@ -11025,7 +11025,7 @@ function hp(i, t, e) {
|
|
|
11025
11025
|
c,
|
|
11026
11026
|
d,
|
|
11027
11027
|
h,
|
|
11028
|
-
|
|
11028
|
+
A,
|
|
11029
11029
|
g
|
|
11030
11030
|
];
|
|
11031
11031
|
}
|
|
@@ -11106,8 +11106,8 @@ class bp extends cp {
|
|
|
11106
11106
|
return;
|
|
11107
11107
|
const h = new Mt(), f = u.clone().sub(s).normalize();
|
|
11108
11108
|
h.set(s, f);
|
|
11109
|
-
const [
|
|
11110
|
-
|
|
11109
|
+
const [A] = this.five.model.intersectRaycaster(h);
|
|
11110
|
+
A && A.distance + 0.1 < d || a.push(c);
|
|
11111
11111
|
}), this.visibleLabelMap.set(e, a), a;
|
|
11112
11112
|
}
|
|
11113
11113
|
})();
|
|
@@ -11116,7 +11116,7 @@ class bp extends cp {
|
|
|
11116
11116
|
}), this.fixDoorPosition();
|
|
11117
11117
|
});
|
|
11118
11118
|
m(this, "fixDoorPosition", () => {
|
|
11119
|
-
var u, d, h, f,
|
|
11119
|
+
var u, d, h, f, A, g, p, v, b, w, E, L;
|
|
11120
11120
|
const { panoIndex: e, camera: n } = this.five;
|
|
11121
11121
|
if (e === null)
|
|
11122
11122
|
return;
|
|
@@ -11140,11 +11140,11 @@ class bp extends cp {
|
|
|
11140
11140
|
left: s * V / 100,
|
|
11141
11141
|
top: r * _ / 100,
|
|
11142
11142
|
width: (h = (d = (u = R.children) == null ? void 0 : u[0]) == null ? void 0 : d.clientWidth) != null ? h : 0,
|
|
11143
|
-
height: (g = (
|
|
11143
|
+
height: (g = (A = (f = R.children) == null ? void 0 : f[0]) == null ? void 0 : A.clientHeight) != null ? g : 0
|
|
11144
11144
|
}, G = {
|
|
11145
11145
|
left: s * F / 100,
|
|
11146
11146
|
top: r * B / 100,
|
|
11147
|
-
width: (b = (
|
|
11147
|
+
width: (b = (v = (p = W.children) == null ? void 0 : p[0]) == null ? void 0 : v.clientWidth) != null ? b : 0,
|
|
11148
11148
|
height: (L = (E = (w = W.children) == null ? void 0 : w[0]) == null ? void 0 : E.clientHeight) != null ? L : 0
|
|
11149
11149
|
};
|
|
11150
11150
|
mp(X, G) && (I++, c[k].transform = `translate(-50%, ${(I - 1) * 100 - 50}%)`, c[O].transform = `translate(-50%, ${I * 100 - 50}%)`);
|
|
@@ -11184,18 +11184,18 @@ class bp extends cp {
|
|
|
11184
11184
|
const d = u.position;
|
|
11185
11185
|
let h = 1 / 0, f;
|
|
11186
11186
|
l.forEach((g) => {
|
|
11187
|
-
const p = g.standingPosition,
|
|
11187
|
+
const p = g.standingPosition, v = {
|
|
11188
11188
|
x: p.x,
|
|
11189
11189
|
y: p.y,
|
|
11190
11190
|
z: p.z
|
|
11191
|
-
}, b = gp(d,
|
|
11192
|
-
b < h && (h = b, f =
|
|
11191
|
+
}, b = gp(d, v);
|
|
11192
|
+
b < h && (h = b, f = v);
|
|
11193
11193
|
}), f && (d.y = f.y + 0.01);
|
|
11194
|
-
const
|
|
11195
|
-
|
|
11194
|
+
const A = new U(d.x, d.y, d.z);
|
|
11195
|
+
A.add(new U(-0.2, 1.8, 0).applyEuler(new Ro(0, u.rad, 0))), this.doorLabels.push({
|
|
11196
11196
|
roomName: r.name,
|
|
11197
11197
|
name: u.name,
|
|
11198
|
-
position:
|
|
11198
|
+
position: A,
|
|
11199
11199
|
toward: Ap(u.rad)
|
|
11200
11200
|
});
|
|
11201
11201
|
});
|
|
@@ -11259,18 +11259,18 @@ function Pp(i, t) {
|
|
|
11259
11259
|
const c = Math.ceil(s.getLength() / n * 1.5), u = s.getPoints(c), d = [];
|
|
11260
11260
|
let h = 0;
|
|
11261
11261
|
const f = i;
|
|
11262
|
-
return f.forEach((
|
|
11263
|
-
let p = 0,
|
|
11262
|
+
return f.forEach((A, g) => {
|
|
11263
|
+
let p = 0, v = 99999999;
|
|
11264
11264
|
u.forEach((I, D) => {
|
|
11265
|
-
const k = I.distanceTo(
|
|
11266
|
-
k <
|
|
11265
|
+
const k = I.distanceTo(A);
|
|
11266
|
+
k < v && (p = D, v = k);
|
|
11267
11267
|
});
|
|
11268
|
-
const b = u[p + 1], w = b == null ? void 0 : b.distanceTo(
|
|
11268
|
+
const b = u[p + 1], w = b == null ? void 0 : b.distanceTo(A), E = u[p - 1], L = E == null ? void 0 : E.distanceTo(A);
|
|
11269
11269
|
if (p > h && p - h > 1) {
|
|
11270
11270
|
let I = p;
|
|
11271
|
-
E !== void 0 && L > 0.8 && (I = p + 1), E !== void 0 && L > 0.2 && L < 0.3 ? I = p :
|
|
11271
|
+
E !== void 0 && L > 0.8 && (I = p + 1), E !== void 0 && L > 0.2 && L < 0.3 ? I = p : v > 0.2 && v < 0.3 && (I = p + 1);
|
|
11272
11272
|
let D = h;
|
|
11273
|
-
if (b !== void 0 && w > 0.2 && w < 0.3 ? D = h + 1 :
|
|
11273
|
+
if (b !== void 0 && w > 0.2 && w < 0.3 ? D = h + 1 : v > 0.2 && v < 0.3 && (D = h), u[D] && u[D + 1]) {
|
|
11274
11274
|
const _ = f[g - 1];
|
|
11275
11275
|
if (_)
|
|
11276
11276
|
if (_.equals(u[D]))
|
|
@@ -11292,20 +11292,20 @@ function Pp(i, t) {
|
|
|
11292
11292
|
}
|
|
11293
11293
|
}
|
|
11294
11294
|
function or(i, t, e) {
|
|
11295
|
-
const n = t / 2, o = e / t, s = i.length, r = Dc(i.map((
|
|
11296
|
-
i.forEach((
|
|
11295
|
+
const n = t / 2, o = e / t, s = i.length, r = Dc(i.map((v) => [v.x, v.z])), l = (i.length - 1) * yp * wp, c = 2 * s, u = c * Ep, d = c * Cp, h = new Uint32Array(l), f = new Float32Array(u), A = new Float32Array(d);
|
|
11296
|
+
i.forEach((v, b) => {
|
|
11297
11297
|
});
|
|
11298
11298
|
let g = 0;
|
|
11299
|
-
for (let
|
|
11300
|
-
const [b, w] = r[
|
|
11301
|
-
f[
|
|
11299
|
+
for (let v = 0; v < i.length; v++) {
|
|
11300
|
+
const [b, w] = r[v][0], E = i[v], { x: L, y: I, z: D } = E, k = new U(L + b * n, I + 0.05, D + w * n);
|
|
11301
|
+
f[v * 6 + 0] = k.x, f[v * 6 + 1] = k.y, f[v * 6 + 2] = k.z;
|
|
11302
11302
|
const V = new U(L - b * n, I + 0.05, D - w * n);
|
|
11303
|
-
f[
|
|
11303
|
+
f[v * 6 + 3] = V.x, f[v * 6 + 4] = V.y, f[v * 6 + 5] = V.z, g += v > 0 ? i[v - 1].clone().sub(i[v]).length() : 0;
|
|
11304
11304
|
const _ = g / t / o;
|
|
11305
|
-
v
|
|
11305
|
+
A[v * 4 + 0] = 0, A[v * 4 + 1] = _, A[v * 4 + 2] = 1, A[v * 4 + 3] = _, v !== i.length - 1 && (h[v * 6 + 0] = v * 2 + 0, h[v * 6 + 1] = v * 2 + 2, h[v * 6 + 2] = v * 2 + 1, h[v * 6 + 3] = v * 2 + 2, h[v * 6 + 4] = v * 2 + 3, h[v * 6 + 5] = v * 2 + 1);
|
|
11306
11306
|
}
|
|
11307
11307
|
const p = new C.BufferGeometry();
|
|
11308
|
-
return p.setAttribute("position", new C.BufferAttribute(f, 3)), p.setAttribute("uv", new C.BufferAttribute(
|
|
11308
|
+
return p.setAttribute("position", new C.BufferAttribute(f, 3)), p.setAttribute("uv", new C.BufferAttribute(A, 2)), p.setIndex(new C.BufferAttribute(h, 1)), p;
|
|
11309
11309
|
}
|
|
11310
11310
|
function Ip(i) {
|
|
11311
11311
|
const t = new C.TextureLoader().load(i.textureUrl);
|
|
@@ -11396,10 +11396,10 @@ class Ll extends zt {
|
|
|
11396
11396
|
return s.add(...o), s;
|
|
11397
11397
|
}
|
|
11398
11398
|
getLine(e, n) {
|
|
11399
|
-
var l, c, u, d, h, f,
|
|
11399
|
+
var l, c, u, d, h, f, A, g;
|
|
11400
11400
|
const o = new C.Group(), s = e.panoIndexList.map((p) => {
|
|
11401
|
-
var
|
|
11402
|
-
return (
|
|
11401
|
+
var v;
|
|
11402
|
+
return (v = this.five.work.observers[p]) == null ? void 0 : v.standingPosition;
|
|
11403
11403
|
}).filter(wt), r = Pp(s, {
|
|
11404
11404
|
skipPanoIndexMesh: (c = (l = e.skipPanoIndexMesh) != null ? l : n == null ? void 0 : n.skipPanoIndexMesh) != null ? c : !0,
|
|
11405
11405
|
unitWidth: (d = (u = e.unitWidth) != null ? u : n == null ? void 0 : n.unitWidth) != null ? d : 0.6,
|
|
@@ -11408,11 +11408,11 @@ class Ll extends zt {
|
|
|
11408
11408
|
if (!r)
|
|
11409
11409
|
return;
|
|
11410
11410
|
const a = Ip({
|
|
11411
|
-
textureUrl: (g = (
|
|
11411
|
+
textureUrl: (g = (A = e.arrowTextureUrl) != null ? A : n == null ? void 0 : n.arrowTextureUrl) != null ? g : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png"
|
|
11412
11412
|
});
|
|
11413
11413
|
return r.forEach((p) => {
|
|
11414
|
-
const
|
|
11415
|
-
|
|
11414
|
+
const v = new C.Mesh(p, a);
|
|
11415
|
+
v.name = sr("route-line-mesh"), o.add(v);
|
|
11416
11416
|
}), o;
|
|
11417
11417
|
}
|
|
11418
11418
|
waitFiveModelLoaded() {
|
|
@@ -11516,7 +11516,7 @@ class Tl extends zt {
|
|
|
11516
11516
|
}
|
|
11517
11517
|
load(e, n, o) {
|
|
11518
11518
|
return H(this, null, function* () {
|
|
11519
|
-
var u, d, h, f,
|
|
11519
|
+
var u, d, h, f, A;
|
|
11520
11520
|
if (this.state.disposed)
|
|
11521
11521
|
return ar();
|
|
11522
11522
|
this.privateState.fiveOriginGetProgress || (d = (u = this.five.controller) == null ? void 0 : u.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (f = (h = this.five.controller) == null ? void 0 : h.cameraMotion) == null ? void 0 : f.getProgress), this.clear();
|
|
@@ -11525,11 +11525,11 @@ class Tl extends zt {
|
|
|
11525
11525
|
let a = [], l;
|
|
11526
11526
|
const c = this.data.keyframes.filter((g) => g.data.panoIndex !== void 0);
|
|
11527
11527
|
c.filter((g, p) => {
|
|
11528
|
-
var
|
|
11529
|
-
return g.data.panoIndex !== ((
|
|
11528
|
+
var v;
|
|
11529
|
+
return g.data.panoIndex !== ((v = c[p - 1]) == null ? void 0 : v.data.panoIndex);
|
|
11530
11530
|
}).map((g) => g.data.panoIndex).forEach((g) => {
|
|
11531
|
-
var
|
|
11532
|
-
const p = (
|
|
11531
|
+
var v, b;
|
|
11532
|
+
const p = (v = this.five.work.observers[g]) == null ? void 0 : v.floorIndex;
|
|
11533
11533
|
if (p !== void 0)
|
|
11534
11534
|
if (l === p) {
|
|
11535
11535
|
const w = a.length - 1;
|
|
@@ -11539,7 +11539,7 @@ class Tl extends zt {
|
|
|
11539
11539
|
const w = a.length;
|
|
11540
11540
|
a[w] = [g];
|
|
11541
11541
|
}
|
|
11542
|
-
}), this.GuideLine || (this.GuideLine = xp(this.five, this.config)), (
|
|
11542
|
+
}), this.GuideLine || (this.GuideLine = xp(this.five, this.config)), (A = this.GuideLine) == null || A.load({ routes: a.map((g) => ({ panoIndexList: g })), 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(`${xi} loaded`, r), this.hooks.emit("dataLoaded", r);
|
|
11543
11543
|
});
|
|
11544
11544
|
}
|
|
11545
11545
|
play(e) {
|
|
@@ -11604,14 +11604,14 @@ class Tl extends zt {
|
|
|
11604
11604
|
const { moveEffect: r, moveToFirstPanoEffect: a, moveToFirstPanoDuration: l } = o;
|
|
11605
11605
|
return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, o.panoIndexList.forEach((c, u) => {
|
|
11606
11606
|
const d = (() => {
|
|
11607
|
-
var p,
|
|
11607
|
+
var p, v, b, w;
|
|
11608
11608
|
const h = o.panoIndexList.slice(u).find((E) => E !== c);
|
|
11609
11609
|
if (h === void 0)
|
|
11610
11610
|
return;
|
|
11611
|
-
const f = (p = n[c]) == null ? void 0 : p.position,
|
|
11612
|
-
if (!
|
|
11611
|
+
const f = (p = n[c]) == null ? void 0 : p.position, A = (v = n[h]) == null ? void 0 : v.position;
|
|
11612
|
+
if (!A || !f || ((b = n[c]) == null ? void 0 : b.floorIndex) !== ((w = n[h]) == null ? void 0 : w.floorIndex))
|
|
11613
11613
|
return;
|
|
11614
|
-
const g = new C.Vector3().subVectors(
|
|
11614
|
+
const g = new C.Vector3().subVectors(A, f);
|
|
11615
11615
|
return Mp(g);
|
|
11616
11616
|
})();
|
|
11617
11617
|
o.moveType === void 0 || o.moveType === "justMove" ? s.push({
|
|
@@ -11656,13 +11656,13 @@ class Tl extends zt {
|
|
|
11656
11656
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (f = e == null ? void 0 : e.userAction) != null ? f : !0 });
|
|
11657
11657
|
let u = !1;
|
|
11658
11658
|
const h = yield (() => H(this, null, function* () {
|
|
11659
|
-
var
|
|
11659
|
+
var A, g;
|
|
11660
11660
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
11661
11661
|
return e.playFromIndex;
|
|
11662
11662
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
11663
|
-
return (
|
|
11663
|
+
return (A = this.data) == null ? void 0 : A.keyframes.findIndex((p) => p.id === e.playFromId);
|
|
11664
11664
|
if (c != null && c.keyframeId) {
|
|
11665
|
-
const p = (g = this.data) == null ? void 0 : g.keyframes.find((
|
|
11665
|
+
const p = (g = this.data) == null ? void 0 : g.keyframes.find((v) => v.id === c.keyframeId);
|
|
11666
11666
|
if (c != null && c.fiveState && (yield this.move(c.fiveState, {
|
|
11667
11667
|
moveEffect: s.moveToFirstPanoEffect,
|
|
11668
11668
|
duration: s.moveToFirstPanoDuration
|
|
@@ -11670,22 +11670,22 @@ class Tl extends zt {
|
|
|
11670
11670
|
if (p.data.effect === "Move")
|
|
11671
11671
|
return p.index;
|
|
11672
11672
|
if (p.data.effect === "Rotate") {
|
|
11673
|
-
const
|
|
11674
|
-
return yield this.playKeyframe(p, { duration:
|
|
11673
|
+
const v = c.duration !== void 0 ? c.duration * (1 - c.playedProgress) : void 0;
|
|
11674
|
+
return yield this.playKeyframe(p, { duration: v }), u = !0, p.index + 1;
|
|
11675
11675
|
}
|
|
11676
11676
|
}
|
|
11677
11677
|
}
|
|
11678
11678
|
}))();
|
|
11679
11679
|
this.clearPauseData();
|
|
11680
|
-
for (const
|
|
11680
|
+
for (const A of l) {
|
|
11681
11681
|
if (s.broke || !o.playing || !s.playing || a !== s.playId)
|
|
11682
11682
|
return;
|
|
11683
|
-
if (!(h !== void 0 &&
|
|
11683
|
+
if (!(h !== void 0 && A.index < h))
|
|
11684
11684
|
try {
|
|
11685
|
-
r.emit("playIndexChange",
|
|
11685
|
+
r.emit("playIndexChange", A.index, A), yield this.playKeyframe(A, {
|
|
11686
11686
|
moveEffect: u === !1 ? s.moveToFirstPanoEffect : void 0,
|
|
11687
11687
|
duration: u === !1 && typeof s.moveToFirstPanoDuration == "number" ? s.moveToFirstPanoDuration : void 0
|
|
11688
|
-
}),
|
|
11688
|
+
}), A.stay && (yield zp(A.stay)), u === !1 && (u = !0);
|
|
11689
11689
|
} catch (g) {
|
|
11690
11690
|
return Promise.resolve("broke");
|
|
11691
11691
|
}
|
|
@@ -11784,8 +11784,8 @@ class Tl extends zt {
|
|
|
11784
11784
|
updateCamera(o) {
|
|
11785
11785
|
return H(this, arguments, function* (e, n = {}) {
|
|
11786
11786
|
const { five: s, privateState: r, state: a } = this, l = (() => {
|
|
11787
|
-
var f,
|
|
11788
|
-
const d = (f = a.config) == null ? void 0 : f.speedConfig, h = (
|
|
11787
|
+
var f, A;
|
|
11788
|
+
const d = (f = a.config) == null ? void 0 : f.speedConfig, h = (A = e.rotateSpeed) != null ? A : d == null ? void 0 : d.rotateSpeed;
|
|
11789
11789
|
if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
|
|
11790
11790
|
return h;
|
|
11791
11791
|
if (h !== void 0)
|
|
@@ -12250,9 +12250,9 @@ class Bl {
|
|
|
12250
12250
|
render() {
|
|
12251
12251
|
if (!this.five.renderer || !this.containerDom)
|
|
12252
12252
|
return;
|
|
12253
|
-
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new C.Vector2()), a = 1, l = n / t, c = o / t, u = a * t, d = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, f = this.five.getPixels(d - l / 2, h - l / 2, l, c, u),
|
|
12254
|
-
Kp(f,
|
|
12255
|
-
const p = new ImageData(
|
|
12253
|
+
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new C.Vector2()), a = 1, l = n / t, c = o / t, u = a * t, d = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, f = this.five.getPixels(d - l / 2, h - l / 2, l, c, u), A = Math.floor(n * a), g = Math.floor(o * a);
|
|
12254
|
+
Kp(f, A, g);
|
|
12255
|
+
const p = new ImageData(A, g);
|
|
12256
12256
|
p.data.set(f), e.putImageData(p, 0, 0);
|
|
12257
12257
|
}
|
|
12258
12258
|
initStyle() {
|
|
@@ -12825,14 +12825,23 @@ class hg extends ug {
|
|
|
12825
12825
|
if (e === "fold" && s.unfoldedConfig.keep === "unfolded" || e === "unfold" && s.unfoldedConfig.keep === "folded")
|
|
12826
12826
|
return !1;
|
|
12827
12827
|
}
|
|
12828
|
-
if (e === "renderByMesh")
|
|
12829
|
-
if (Hp(o) || Ve(o)) {
|
|
12830
|
-
const r = o.data.mediaData;
|
|
12831
|
-
return r.length === 1 && r[0].type === "Image" && s.renderType === "Mesh";
|
|
12832
|
-
} else
|
|
12833
|
-
return !1;
|
|
12834
12828
|
return !0;
|
|
12835
12829
|
}
|
|
12830
|
+
getRenderType(e) {
|
|
12831
|
+
const n = this.getTagConfig(e);
|
|
12832
|
+
if (!n || typeof n != "object" || !n.renderType)
|
|
12833
|
+
return "Dom";
|
|
12834
|
+
const o = e.data.mediaData;
|
|
12835
|
+
if (!o || o.length === 0)
|
|
12836
|
+
return "Dom";
|
|
12837
|
+
if (n.renderType === "Mesh") {
|
|
12838
|
+
if (Hp(e))
|
|
12839
|
+
return o.length === 1 && o[0].type === "Image" ? "Mesh" : "Dom";
|
|
12840
|
+
if (Ve(e))
|
|
12841
|
+
return o.length === 1 && o[0].type === "Image" ? "Mesh" : "BehindDom";
|
|
12842
|
+
} else
|
|
12843
|
+
return "Dom";
|
|
12844
|
+
}
|
|
12836
12845
|
getAngle(e, n) {
|
|
12837
12846
|
var r, a, l;
|
|
12838
12847
|
const o = (r = this.five.panoIndex) != null ? r : n;
|
|
@@ -12952,7 +12961,7 @@ class hg extends ug {
|
|
|
12952
12961
|
}
|
|
12953
12962
|
get filterImagePlane() {
|
|
12954
12963
|
return this.tags.filter(
|
|
12955
|
-
(e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.
|
|
12964
|
+
(e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.getRenderType(e) === "Mesh"
|
|
12956
12965
|
);
|
|
12957
12966
|
}
|
|
12958
12967
|
get filterMediaModel() {
|
|
@@ -12961,8 +12970,11 @@ class hg extends ug {
|
|
|
12961
12970
|
get filterModelTag() {
|
|
12962
12971
|
return this.tags.filter((e) => e.stickType === "Model");
|
|
12963
12972
|
}
|
|
12964
|
-
get
|
|
12965
|
-
return this.tags.filter((
|
|
12973
|
+
get filterCSS3DTag() {
|
|
12974
|
+
return this.tags.filter((n) => n.stickType === "3DPoint" || n.stickType === "Plane" || n.stickType === "Model").filter((n) => {
|
|
12975
|
+
const o = this.getRenderType(n);
|
|
12976
|
+
return o === "BehindDom" || o === "Dom";
|
|
12977
|
+
});
|
|
12966
12978
|
}
|
|
12967
12979
|
checkDisposed() {
|
|
12968
12980
|
return this.store.disposed ? (console.error("PanoTagPluginController has been disposed"), !0) : !1;
|
|
@@ -13016,9 +13028,9 @@ class fg extends hg {
|
|
|
13016
13028
|
const f = this.getRaycasterFromPanoIndex(e, s);
|
|
13017
13029
|
if (!f)
|
|
13018
13030
|
return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${f}` };
|
|
13019
|
-
const
|
|
13020
|
-
if (
|
|
13021
|
-
return
|
|
13031
|
+
const A = this.getTagEnableByIntersect(e, f);
|
|
13032
|
+
if (A.value === !1)
|
|
13033
|
+
return A;
|
|
13022
13034
|
}
|
|
13023
13035
|
if (l.angleRange && Fp(e)) {
|
|
13024
13036
|
const f = this.getAngle(e);
|
|
@@ -13118,14 +13130,14 @@ class fg extends hg {
|
|
|
13118
13130
|
const f = this.getTagProject(h);
|
|
13119
13131
|
if (!f)
|
|
13120
13132
|
return !1;
|
|
13121
|
-
const { x:
|
|
13122
|
-
return !(Math.abs(p) > 1 || Math.abs(
|
|
13133
|
+
const { x: A, y: g, z: p } = f;
|
|
13134
|
+
return !(Math.abs(p) > 1 || Math.abs(A) > 1 || Math.abs(g) > 1);
|
|
13123
13135
|
}).map((h) => ({ tag: h, id: h.id, tagConfig: this.getTagConfig(h).unfoldedConfig })).filter(({ tag: h, tagConfig: f }) => {
|
|
13124
|
-
var
|
|
13125
|
-
return !(typeof f != "object" || f.keep || f.autoUnfold === !1 || ((
|
|
13136
|
+
var A, g;
|
|
13137
|
+
return !(typeof f != "object" || f.keep || f.autoUnfold === !1 || ((A = f.autoUnfold) == null ? void 0 : A.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
|
|
13126
13138
|
}).map((h) => fe(Q({}, h), { distance: this.getDistance(h.tag) })).filter(({ distance: h, tagConfig: f }) => {
|
|
13127
|
-
var
|
|
13128
|
-
return !(h === void 0 || typeof f != "object" || f.autoUnfold === !1 || ((
|
|
13139
|
+
var A, g;
|
|
13140
|
+
return !(h === void 0 || typeof f != "object" || f.autoUnfold === !1 || ((A = f.autoUnfold) == null ? void 0 : A.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || f.autoUnfold.distance && dn(h, f.autoUnfold.distance) === !1);
|
|
13129
13141
|
}).sort((h, f) => h.distance - f.distance).findIndex((h) => h.id === e.id);
|
|
13130
13142
|
if (u === -1 || u <= ((a = r.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
|
|
13131
13143
|
return !1;
|
|
@@ -13302,10 +13314,10 @@ function pg(i) {
|
|
|
13302
13314
|
};
|
|
13303
13315
|
}
|
|
13304
13316
|
function gg(i, t, e) {
|
|
13305
|
-
let n, o, s, r, { inDelay: a = 0 } = t, { outDelay: l = 0 } = t, { duration: c = 1e3 } = t, { unfolded: u } = t, { length: d } = t, { direction: h = "horizontal" } = t, { useLinearColor: f = !1 } = t, { color:
|
|
13317
|
+
let n, o, s, r, { inDelay: a = 0 } = t, { outDelay: l = 0 } = t, { duration: c = 1e3 } = t, { unfolded: u } = t, { length: d } = t, { direction: h = "horizontal" } = t, { useLinearColor: f = !1 } = t, { color: A = "white" } = t;
|
|
13306
13318
|
const g = Ge();
|
|
13307
13319
|
return i.$$set = (p) => {
|
|
13308
|
-
"inDelay" in p && e(0, a = p.inDelay), "outDelay" in p && e(1, l = p.outDelay), "duration" in p && e(2, c = p.duration), "unfolded" in p && e(3, u = p.unfolded), "length" in p && e(11, d = p.length), "direction" in p && e(12, h = p.direction), "useLinearColor" in p && e(4, f = p.useLinearColor), "color" in p && e(5,
|
|
13320
|
+
"inDelay" in p && e(0, a = p.inDelay), "outDelay" in p && e(1, l = p.outDelay), "duration" in p && e(2, c = p.duration), "unfolded" in p && e(3, u = p.unfolded), "length" in p && e(11, d = p.length), "direction" in p && e(12, h = p.direction), "useLinearColor" in p && e(4, f = p.useLinearColor), "color" in p && e(5, A = p.color);
|
|
13309
13321
|
}, i.$$.update = () => {
|
|
13310
13322
|
i.$$.dirty & 4096 && e(9, n = h === "vertical"), i.$$.dirty & 2048 && e(8, o = d), i.$$.dirty & 2048 && e(6, r = `M0.5 0.5 H ${d}`);
|
|
13311
13323
|
}, e(7, s = 1), [
|
|
@@ -13314,7 +13326,7 @@ function gg(i, t, e) {
|
|
|
13314
13326
|
c,
|
|
13315
13327
|
u,
|
|
13316
13328
|
f,
|
|
13317
|
-
|
|
13329
|
+
A,
|
|
13318
13330
|
r,
|
|
13319
13331
|
s,
|
|
13320
13332
|
o,
|
|
@@ -13417,9 +13429,9 @@ function Ne(i) {
|
|
|
13417
13429
|
return typeof i == "number" ? i / 16 + "rem" : i;
|
|
13418
13430
|
}
|
|
13419
13431
|
function bg(i, t, e) {
|
|
13420
|
-
let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: u = !1 } = t, { horizontalCenter: d = !1 } = t, { verticalCenter: h = !1 } = t, { blurRadius: f } = t, { spreadRadius:
|
|
13421
|
-
return i.$$set = (
|
|
13422
|
-
"inDelay" in
|
|
13432
|
+
let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: u = !1 } = t, { horizontalCenter: d = !1 } = t, { verticalCenter: h = !1 } = t, { blurRadius: f } = t, { spreadRadius: A } = t, { opacity: g = 0.15 } = t, { zIndex: p = -1 } = t;
|
|
13433
|
+
return i.$$set = (v) => {
|
|
13434
|
+
"inDelay" in v && e(0, n = v.inDelay), "outDelay" in v && e(1, o = v.outDelay), "visible" in v && e(2, s = v.visible), "width" in v && e(3, r = v.width), "height" in v && e(4, a = v.height), "left" in v && e(5, l = v.left), "bottom" in v && e(6, c = v.bottom), "center" in v && e(7, u = v.center), "horizontalCenter" in v && e(8, d = v.horizontalCenter), "verticalCenter" in v && e(9, h = v.verticalCenter), "blurRadius" in v && e(10, f = v.blurRadius), "spreadRadius" in v && e(11, A = v.spreadRadius), "opacity" in v && e(12, g = v.opacity), "zIndex" in v && e(13, p = v.zIndex);
|
|
13423
13435
|
}, [
|
|
13424
13436
|
n,
|
|
13425
13437
|
o,
|
|
@@ -13432,7 +13444,7 @@ function bg(i, t, e) {
|
|
|
13432
13444
|
d,
|
|
13433
13445
|
h,
|
|
13434
13446
|
f,
|
|
13435
|
-
|
|
13447
|
+
A,
|
|
13436
13448
|
g,
|
|
13437
13449
|
p
|
|
13438
13450
|
];
|
|
@@ -13568,7 +13580,7 @@ function Pg(i) {
|
|
|
13568
13580
|
function Ig(i, t, e) {
|
|
13569
13581
|
let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
13570
13582
|
const c = `__EMOJI_SPLIT_${Wi}__`, u = `__EMOJI_${Wi}__`, d = `__SPACE_${Wi}__`;
|
|
13571
|
-
let h, f,
|
|
13583
|
+
let h, f, A = [];
|
|
13572
13584
|
function g(L) {
|
|
13573
13585
|
const I = [], D = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
|
|
13574
13586
|
return L.slice().replace(D, (k) => `${c}${u}${k}${c}`).split(c).forEach((k) => k.startsWith(u) ? I.push({
|
|
@@ -13582,7 +13594,7 @@ function Ig(i, t, e) {
|
|
|
13582
13594
|
const L = !a;
|
|
13583
13595
|
f.reversed !== L && f.reverse(), f.play();
|
|
13584
13596
|
}
|
|
13585
|
-
function
|
|
13597
|
+
function v(L) {
|
|
13586
13598
|
if (l) {
|
|
13587
13599
|
e(4, l = !1);
|
|
13588
13600
|
return;
|
|
@@ -13610,21 +13622,21 @@ function Ig(i, t, e) {
|
|
|
13610
13622
|
}
|
|
13611
13623
|
function w(L, I) {
|
|
13612
13624
|
Oe[L ? "unshift" : "push"](() => {
|
|
13613
|
-
|
|
13625
|
+
A[I] = L, e(1, A);
|
|
13614
13626
|
});
|
|
13615
13627
|
}
|
|
13616
13628
|
function E(L, I) {
|
|
13617
13629
|
Oe[L ? "unshift" : "push"](() => {
|
|
13618
|
-
|
|
13630
|
+
A[I] = L, e(1, A);
|
|
13619
13631
|
});
|
|
13620
13632
|
}
|
|
13621
13633
|
return i.$$set = (L) => {
|
|
13622
13634
|
"inDelay" in L && e(5, o = L.inDelay), "outDelay" in L && e(6, s = L.outDelay), "content" in L && e(0, r = L.content), "unfolded" in L && e(7, a = L.unfolded), "isFistUnfoldedUpdate" in L && e(4, l = L.isFistUnfoldedUpdate);
|
|
13623
13635
|
}, i.$$.update = () => {
|
|
13624
|
-
i.$$.dirty & 1 && e(2, n = g(r)), i.$$.dirty & 128 &&
|
|
13636
|
+
i.$$.dirty & 1 && e(2, n = g(r)), i.$$.dirty & 128 && v(a), i.$$.dirty & 2 && b(A.filter((L) => !!L));
|
|
13625
13637
|
}, [
|
|
13626
13638
|
r,
|
|
13627
|
-
|
|
13639
|
+
A,
|
|
13628
13640
|
n,
|
|
13629
13641
|
d,
|
|
13630
13642
|
l,
|
|
@@ -13853,19 +13865,19 @@ function Vg(i) {
|
|
|
13853
13865
|
}
|
|
13854
13866
|
function Og(i, t, e) {
|
|
13855
13867
|
let n, o, s, { visible: r = !1 } = t, { textUnfolded: a = !1 } = t, { content: l } = t, c, u = 0, d = 0, h = 0;
|
|
13856
|
-
function f(
|
|
13857
|
-
Oe[
|
|
13858
|
-
c =
|
|
13868
|
+
function f(A) {
|
|
13869
|
+
Oe[A ? "unshift" : "push"](() => {
|
|
13870
|
+
c = A, e(2, c);
|
|
13859
13871
|
});
|
|
13860
13872
|
}
|
|
13861
|
-
return i.$$set = (
|
|
13862
|
-
"visible" in
|
|
13873
|
+
return i.$$set = (A) => {
|
|
13874
|
+
"visible" in A && e(0, r = A.visible), "textUnfolded" in A && e(8, a = A.textUnfolded), "content" in A && e(1, l = A.content);
|
|
13863
13875
|
}, i.$$.update = () => {
|
|
13864
13876
|
if (i.$$.dirty & 7 && c && r && l) {
|
|
13865
|
-
const { lineHeight:
|
|
13877
|
+
const { lineHeight: A } = getComputedStyle(c);
|
|
13866
13878
|
e(4, h = c.offsetHeight), Bg(() => c == null ? void 0 : c.offsetHeight, Boolean).then(() => {
|
|
13867
13879
|
e(4, h = c.offsetHeight);
|
|
13868
|
-
}), e(3, d = Number(
|
|
13880
|
+
}), e(3, d = Number(A.replace("px", "")));
|
|
13869
13881
|
}
|
|
13870
13882
|
i.$$.dirty & 280 && e(9, u = a ? d - h : 0), i.$$.dirty & 512 && e(7, n = `translateY(${u}px)`), i.$$.dirty & 256 && e(6, o = a ? "left" : "right"), i.$$.dirty & 256 && e(5, s = a ? 450 : 0);
|
|
13871
13883
|
}, [
|
|
@@ -13927,11 +13939,11 @@ function br(i) {
|
|
|
13927
13939
|
], l = !0);
|
|
13928
13940
|
},
|
|
13929
13941
|
p(h, f) {
|
|
13930
|
-
var
|
|
13931
|
-
const
|
|
13932
|
-
f & 4 && (
|
|
13942
|
+
var v, b;
|
|
13943
|
+
const A = {};
|
|
13944
|
+
f & 4 && (A.visible = h[2]), f & 8 && (A.left = h[3] / 2 + "px"), t.$set(A);
|
|
13933
13945
|
const g = {};
|
|
13934
|
-
f & 4 && (g.unfolded = h[2]), f & 8 && (g.length = h[3]), f & 16 && (g.outDelay = h[4] + 40 * Math.min((b = (
|
|
13946
|
+
f & 4 && (g.unfolded = h[2]), f & 8 && (g.length = h[3]), f & 16 && (g.outDelay = h[4] + 40 * Math.min((b = (v = h[6][0]) == null ? void 0 : v.content.length) != null ? b : 10, 15)), n.$set(g);
|
|
13935
13947
|
const p = {};
|
|
13936
13948
|
f & 4 && (p.visible = h[2]), f & 2 && (p.textUnfolded = h[1]), f & 32 && (p.content = h[5]), r.$set(p);
|
|
13937
13949
|
},
|
|
@@ -13982,8 +13994,8 @@ function Fg(i, t, e) {
|
|
|
13982
13994
|
return i.$$set = (h) => {
|
|
13983
13995
|
"tag" in h && e(0, r = h.tag);
|
|
13984
13996
|
}, i.$$.update = () => {
|
|
13985
|
-
var h, f,
|
|
13986
|
-
i.$$.dirty & 1 && e(2, n = !!((h = r.state) != null && h.unfolded)), i.$$.dirty & 1 && e(5, o = (
|
|
13997
|
+
var h, f, A;
|
|
13998
|
+
i.$$.dirty & 1 && e(2, n = !!((h = r.state) != null && h.unfolded)), i.$$.dirty & 1 && e(5, o = (A = (f = r.data.title) != null ? f : r.data.text) != null ? A : ""), i.$$.dirty & 4 && (n || setTimeout(
|
|
13987
13999
|
() => {
|
|
13988
14000
|
e(1, l = !1);
|
|
13989
14001
|
},
|
|
@@ -14196,17 +14208,17 @@ function Er(i) {
|
|
|
14196
14208
|
c() {
|
|
14197
14209
|
K(t.$$.fragment), e = $(), n = z("div"), o = z("div"), s = z("div"), r = z("div"), K(a.$$.fragment), l = $(), u && u.c(), y(r, "class", "title svelte-1oxrkr1"), y(s, "class", "plane svelte-1oxrkr1"), y(o, "class", "plane__wrapper svelte-1oxrkr1"), T(o, "transform", i[1] ? "translateY(-15px)" : "translateY(0)"), y(n, "class", "plane__container svelte-1oxrkr1"), q(n, "unfolded", i[1]), q(n, "folded", i[3]);
|
|
14198
14210
|
},
|
|
14199
|
-
m(f,
|
|
14200
|
-
J(t, f,
|
|
14211
|
+
m(f, A) {
|
|
14212
|
+
J(t, f, A), M(f, e, A), M(f, n, A), j(n, o), j(o, s), j(s, r), J(a, r, null), j(s, l), u && u.m(s, null), c = !0;
|
|
14201
14213
|
},
|
|
14202
|
-
p(f,
|
|
14203
|
-
var
|
|
14214
|
+
p(f, A) {
|
|
14215
|
+
var v, b;
|
|
14204
14216
|
const g = {};
|
|
14205
|
-
|
|
14217
|
+
A & 2 && (g.unfolded = f[1]), t.$set(g);
|
|
14206
14218
|
const p = {};
|
|
14207
|
-
|
|
14219
|
+
A & 4 && (p.text = f[2]), A & 1 && (p.edit = (v = f[0].data.edit) == null ? void 0 : v.title), a.$set(p), f[0].data.description || ((b = f[0].data.edit) == null ? void 0 : b.description) ? u ? (u.p(f, A), A & 1 && P(u, 1)) : (u = Cr(f), u.c(), P(u, 1), u.m(s, null)) : u && (se(), x(u, 1, 1, () => {
|
|
14208
14220
|
u = null;
|
|
14209
|
-
}), re()),
|
|
14221
|
+
}), re()), A & 2 && T(o, "transform", f[1] ? "translateY(-15px)" : "translateY(0)"), (!c || A & 2) && q(n, "unfolded", f[1]), (!c || A & 8) && q(n, "folded", f[3]);
|
|
14210
14222
|
},
|
|
14211
14223
|
i(f) {
|
|
14212
14224
|
c || (P(t.$$.fragment, f), P(a.$$.fragment, f), P(u), c = !0);
|
|
@@ -14733,8 +14745,8 @@ function S0(i, { thresholdProvider: t }) {
|
|
|
14733
14745
|
function u(h) {
|
|
14734
14746
|
if (!a)
|
|
14735
14747
|
return;
|
|
14736
|
-
const f = _i(h),
|
|
14737
|
-
n = f.x, o = f.y, e("swipeMove", { x: n, y: o, dx:
|
|
14748
|
+
const f = _i(h), A = f.x - n, g = f.y - o;
|
|
14749
|
+
n = f.x, o = f.y, e("swipeMove", { x: n, y: o, dx: A, dy: g }), A !== 0 && Math.sign(A) !== Math.sign(s) && (s = 0), s += A, Math.abs(s) > t() && (e("swipeThresholdReached", { direction: s > 0 ? Jt : Et }), Dr(window, d), Lr(window, u));
|
|
14738
14750
|
}
|
|
14739
14751
|
function d(h) {
|
|
14740
14752
|
if (Dr(window, d), Lr(window, u), a = !1, !l()) {
|
|
@@ -15069,25 +15081,25 @@ function iA(i, t) {
|
|
|
15069
15081
|
data: d,
|
|
15070
15082
|
methods: h
|
|
15071
15083
|
});
|
|
15072
|
-
let
|
|
15073
|
-
const g = (
|
|
15074
|
-
|
|
15075
|
-
const w =
|
|
15076
|
-
return
|
|
15077
|
-
};
|
|
15078
|
-
Object.entries(o).forEach(([
|
|
15079
|
-
h[
|
|
15084
|
+
let A = !1;
|
|
15085
|
+
const g = (v) => (...b) => {
|
|
15086
|
+
A = !0;
|
|
15087
|
+
const w = v(...b);
|
|
15088
|
+
return A = !1, w;
|
|
15089
|
+
};
|
|
15090
|
+
Object.entries(o).forEach(([v, b]) => {
|
|
15091
|
+
h[v] = g(
|
|
15080
15092
|
(...w) => b(f(), ...w)
|
|
15081
|
-
), Object.defineProperty(h[
|
|
15093
|
+
), Object.defineProperty(h[v], "name", { value: v });
|
|
15082
15094
|
}), d = new Proxy(Sc(e), {
|
|
15083
|
-
get(
|
|
15084
|
-
return u() && !
|
|
15095
|
+
get(v, b) {
|
|
15096
|
+
return u() && !A && r(u(), { prop: b, value: v[b] }), Reflect.get(...arguments);
|
|
15085
15097
|
},
|
|
15086
|
-
set(
|
|
15087
|
-
return
|
|
15098
|
+
set(v, b, w) {
|
|
15099
|
+
return v[b] === w || (Reflect.set(...arguments), u() || (s && s(b, w), a(d, b))), !0;
|
|
15088
15100
|
}
|
|
15089
|
-
}), Object.entries(n).forEach(([
|
|
15090
|
-
c(
|
|
15101
|
+
}), Object.entries(n).forEach(([v, b]) => {
|
|
15102
|
+
c(v, () => {
|
|
15091
15103
|
b(f());
|
|
15092
15104
|
});
|
|
15093
15105
|
});
|
|
@@ -15640,14 +15652,14 @@ function AA(i) {
|
|
|
15640
15652
|
}
|
|
15641
15653
|
function vA(i) {
|
|
15642
15654
|
let t, e, n, o, s, r, a, l, c, u, d, h, f = i[1] && Or(i);
|
|
15643
|
-
const
|
|
15644
|
-
let p = i[3] && Qr(i),
|
|
15655
|
+
const A = i[37].default, g = $t(A, i, i[36], jr);
|
|
15656
|
+
let p = i[3] && Qr(i), v = i[1] && Rr(i), b = i[4] && Fr(i);
|
|
15645
15657
|
return {
|
|
15646
15658
|
c() {
|
|
15647
|
-
t = z("div"), e = z("div"), f && f.c(), n = $(), o = z("div"), s = z("div"), g && g.c(), a = $(), p && p.c(), l = $(),
|
|
15659
|
+
t = z("div"), e = z("div"), f && f.c(), n = $(), o = z("div"), s = z("div"), g && g.c(), a = $(), p && p.c(), l = $(), v && v.c(), c = $(), b && b.c(), y(s, "class", "sc-carousel__pages-container svelte-sme1z4"), T(s, "transform", "translateX(" + i[8] + "px)"), T(s, "transition-duration", i[9] + "ms"), T(s, "transition-timing-function", i[0]), y(o, "class", "sc-carousel__pages-window svelte-sme1z4"), y(e, "class", "sc-carousel__content-container svelte-sme1z4"), y(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
15648
15660
|
},
|
|
15649
15661
|
m(w, E) {
|
|
15650
|
-
M(w, t, E), j(t, e), f && f.m(e, null), j(e, n), j(e, o), j(o, s), g && g.m(s, null), i[39](s), j(o, a), p && p.m(o, null), i[40](o), j(e, l),
|
|
15662
|
+
M(w, t, E), j(t, e), f && f.m(e, null), j(e, n), j(e, o), j(o, s), g && g.m(s, null), i[39](s), j(o, a), p && p.m(o, null), i[40](o), j(e, l), v && v.m(e, null), j(t, c), b && b.m(t, null), u = !0, d || (h = [
|
|
15651
15663
|
ct(r = S0.call(null, s, {
|
|
15652
15664
|
thresholdProvider: i[38]
|
|
15653
15665
|
})),
|
|
@@ -15667,35 +15679,35 @@ function vA(i) {
|
|
|
15667
15679
|
f = null;
|
|
15668
15680
|
}), re()), g && g.p && (!u || E[0] & 96 | E[1] & 32) && tn(
|
|
15669
15681
|
g,
|
|
15670
|
-
|
|
15682
|
+
A,
|
|
15671
15683
|
w,
|
|
15672
15684
|
w[36],
|
|
15673
|
-
u ? en(
|
|
15685
|
+
u ? en(A, w[36], E, fA) : nn(w[36]),
|
|
15674
15686
|
jr
|
|
15675
15687
|
), (!u || E[0] & 256) && T(s, "transform", "translateX(" + w[8] + "px)"), (!u || E[0] & 512) && T(s, "transition-duration", w[9] + "ms"), (!u || E[0] & 1) && T(s, "transition-timing-function", w[0]), r && Kt(r.update) && E[0] & 2048 && r.update.call(null, {
|
|
15676
15688
|
thresholdProvider: w[38]
|
|
15677
15689
|
}), w[3] ? p ? (p.p(w, E), E[0] & 8 && P(p, 1)) : (p = Qr(w), p.c(), P(p, 1), p.m(o, null)) : p && (se(), x(p, 1, 1, () => {
|
|
15678
15690
|
p = null;
|
|
15679
|
-
}), re()), w[1] ?
|
|
15680
|
-
|
|
15691
|
+
}), re()), w[1] ? v ? (v.p(w, E), E[0] & 2 && P(v, 1)) : (v = Rr(w), v.c(), P(v, 1), v.m(e, null)) : v && (se(), x(v, 1, 1, () => {
|
|
15692
|
+
v = null;
|
|
15681
15693
|
}), re()), w[4] ? b ? (b.p(w, E), E[0] & 16 && P(b, 1)) : (b = Fr(w), b.c(), P(b, 1), b.m(t, null)) : b && (se(), x(b, 1, 1, () => {
|
|
15682
15694
|
b = null;
|
|
15683
15695
|
}), re());
|
|
15684
15696
|
},
|
|
15685
15697
|
i(w) {
|
|
15686
|
-
u || (P(f), P(g, w), P(p), P(
|
|
15698
|
+
u || (P(f), P(g, w), P(p), P(v), P(b), u = !0);
|
|
15687
15699
|
},
|
|
15688
15700
|
o(w) {
|
|
15689
|
-
x(f), x(g, w), x(p), x(
|
|
15701
|
+
x(f), x(g, w), x(p), x(v), x(b), u = !1;
|
|
15690
15702
|
},
|
|
15691
15703
|
d(w) {
|
|
15692
|
-
w && S(t), f && f.d(), g && g.d(w), i[39](null), p && p.d(), i[40](null),
|
|
15704
|
+
w && S(t), f && f.d(), g && g.d(w), i[39](null), p && p.d(), i[40](null), v && v.d(), b && b.d(), d = !1, He(h);
|
|
15693
15705
|
}
|
|
15694
15706
|
};
|
|
15695
15707
|
}
|
|
15696
15708
|
function bA(i, t, e) {
|
|
15697
15709
|
let { $$slots: n = {}, $$scope: o } = t, s = [], r, a, l = 0, c = 0, u = 1;
|
|
15698
|
-
const [{ data: d, progressManager: h }, f,
|
|
15710
|
+
const [{ data: d, progressManager: h }, f, A] = cA((te, ve) => {
|
|
15699
15711
|
ho({
|
|
15700
15712
|
currentPageIndex: () => e(5, r = ve),
|
|
15701
15713
|
progressValue: () => e(7, a = ve),
|
|
@@ -15705,7 +15717,7 @@ function bA(i, t, e) {
|
|
|
15705
15717
|
loaded: () => e(6, s = ve)
|
|
15706
15718
|
})(te);
|
|
15707
15719
|
}), g = yi();
|
|
15708
|
-
let { timingFunction: p = "ease-in-out" } = t, { arrows:
|
|
15720
|
+
let { timingFunction: p = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: E = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: D = Et } = t, { pauseOnFocus: k = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: _ = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: F = 1 } = t, { particlesToScroll: B = 1 } = t;
|
|
15709
15721
|
function R(te, ve) {
|
|
15710
15722
|
return H(this, null, function* () {
|
|
15711
15723
|
const Be = wn(ve, "animated", !0);
|
|
@@ -15801,12 +15813,12 @@ function bA(i, t, e) {
|
|
|
15801
15813
|
}
|
|
15802
15814
|
const $e = (te) => de(te.detail);
|
|
15803
15815
|
return i.$$set = (te) => {
|
|
15804
|
-
"timingFunction" in te && e(0, p = te.timingFunction), "arrows" in te && e(1,
|
|
15816
|
+
"timingFunction" in te && e(0, p = te.timingFunction), "arrows" in te && e(1, v = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, E = te.duration), "autoplay" in te && e(26, L = te.autoplay), "autoplayDuration" in te && e(27, I = te.autoplayDuration), "autoplayDirection" in te && e(28, D = te.autoplayDirection), "pauseOnFocus" in te && e(29, k = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, V = te.autoplayProgressVisible), "dots" in te && e(4, _ = te.dots), "swiping" in te && e(30, O = te.swiping), "particlesToShow" in te && e(31, F = te.particlesToShow), "particlesToScroll" in te && e(32, B = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
|
|
15805
15817
|
}, i.$$.update = () => {
|
|
15806
15818
|
i.$$.dirty[0] & 32 && g("pageChange", r), i.$$.dirty[0] & 4 && (d.infinite = b), i.$$.dirty[0] & 33554432 && (d.durationMsInit = E), i.$$.dirty[0] & 67108864 && (d.autoplay = L), i.$$.dirty[0] & 134217728 && (d.autoplayDuration = I), i.$$.dirty[0] & 268435456 && (d.autoplayDirection = D), i.$$.dirty[0] & 536870912 && (d.pauseOnFocus = k), i.$$.dirty[1] & 1 && (d.particlesToShowInit = F), i.$$.dirty[1] & 2 && (d.particlesToScrollInit = B);
|
|
15807
15819
|
}, [
|
|
15808
15820
|
p,
|
|
15809
|
-
|
|
15821
|
+
v,
|
|
15810
15822
|
b,
|
|
15811
15823
|
V,
|
|
15812
15824
|
_,
|
|
@@ -16013,27 +16025,27 @@ function kA(i) {
|
|
|
16013
16025
|
};
|
|
16014
16026
|
}
|
|
16015
16027
|
function xA(i, t, e) {
|
|
16016
|
-
let n, o, { mediaInstance: s = { videoInstance: void 0, paused: !0 } } = t, { tag: r } = t, { media: a } = t, { playButtonIfNeed: l = "withoutText" } = t, { playButtonSizeIfNeed: c = "small" } = t, { canPlay: u = !0 } = t, { objectFit: d = "fill" } = t, { disableVideoIfHavePoster: h = !1 } = t, f = !0,
|
|
16028
|
+
let n, o, { mediaInstance: s = { videoInstance: void 0, paused: !0 } } = t, { tag: r } = t, { media: a } = t, { playButtonIfNeed: l = "withoutText" } = t, { playButtonSizeIfNeed: c = "small" } = t, { canPlay: u = !0 } = t, { objectFit: d = "fill" } = t, { disableVideoIfHavePoster: h = !1 } = t, f = !0, A = !1;
|
|
16017
16029
|
function g() {
|
|
16018
|
-
e(12,
|
|
16030
|
+
e(12, A = (a == null ? void 0 : a.type) === "Video" && Boolean(a.videoCoverUrl));
|
|
16019
16031
|
}
|
|
16020
|
-
const p = vt("mediaStore"),
|
|
16021
|
-
|
|
16032
|
+
const p = vt("mediaStore"), v = vt("hooks"), b = () => {
|
|
16033
|
+
A || !n || (n.play(), n.pause(), e(12, A = !0));
|
|
16022
16034
|
};
|
|
16023
|
-
|
|
16035
|
+
v.on("loadVideoFirstFrame", b), Ze(() => {
|
|
16024
16036
|
p.subscribe(({ currentMediaElement: V }) => {
|
|
16025
16037
|
V !== n && (n == null || n.pause());
|
|
16026
16038
|
});
|
|
16027
16039
|
});
|
|
16028
16040
|
const w = (V) => {
|
|
16029
|
-
e(9, f = !1), e(0, s.paused = !1, s), n && p.set({ currentMediaElement: n }),
|
|
16041
|
+
e(9, f = !1), e(0, s.paused = !1, s), n && p.set({ currentMediaElement: n }), v.emit("playStateChange", {
|
|
16030
16042
|
event: V,
|
|
16031
16043
|
state: "playing",
|
|
16032
16044
|
tag: r,
|
|
16033
16045
|
mediaInstance: n
|
|
16034
16046
|
});
|
|
16035
16047
|
}, E = (V) => {
|
|
16036
|
-
e(9, f = !0), e(0, s.paused = !0, s),
|
|
16048
|
+
e(9, f = !0), e(0, s.paused = !0, s), v.emit("playStateChange", {
|
|
16037
16049
|
event: V,
|
|
16038
16050
|
state: "paused",
|
|
16039
16051
|
tag: r,
|
|
@@ -16053,7 +16065,7 @@ function xA(i, t, e) {
|
|
|
16053
16065
|
return i.$$set = (V) => {
|
|
16054
16066
|
"mediaInstance" in V && e(0, s = V.mediaInstance), "tag" in V && e(1, r = V.tag), "media" in V && e(2, a = V.media), "playButtonIfNeed" in V && e(3, l = V.playButtonIfNeed), "playButtonSizeIfNeed" in V && e(4, c = V.playButtonSizeIfNeed), "canPlay" in V && e(5, u = V.canPlay), "objectFit" in V && e(6, d = V.objectFit), "disableVideoIfHavePoster" in V && e(7, h = V.disableVideoIfHavePoster);
|
|
16055
16067
|
}, i.$$.update = () => {
|
|
16056
|
-
if (i.$$.dirty & 1 && e(8, n = s.videoInstance), i.$$.dirty & 4 && e(13, o = a == null ? void 0 : a.url), i.$$.dirty & 8192 && Boolean(o) && g(), i.$$.dirty & 256 && n && e(9, f = n.paused), i.$$.dirty & 4356 && (a == null ? void 0 : a.type) === "Video" && !
|
|
16068
|
+
if (i.$$.dirty & 1 && e(8, n = s.videoInstance), i.$$.dirty & 4 && e(13, o = a == null ? void 0 : a.url), i.$$.dirty & 8192 && Boolean(o) && g(), i.$$.dirty & 256 && n && e(9, f = n.paused), i.$$.dirty & 4356 && (a == null ? void 0 : a.type) === "Video" && !A) {
|
|
16057
16069
|
const V = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, O = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && V;
|
|
16058
16070
|
n && O && n.paused && (document.removeEventListener("WeixinJSBridgeReady", b), document.removeEventListener("touchstart", b), document.removeEventListener("click", b), document.addEventListener("WeixinJSBridgeReady", b), document.addEventListener("touchstart", b), document.addEventListener("click", b));
|
|
16059
16071
|
}
|
|
@@ -16069,8 +16081,8 @@ function xA(i, t, e) {
|
|
|
16069
16081
|
n,
|
|
16070
16082
|
f,
|
|
16071
16083
|
p,
|
|
16072
|
-
A,
|
|
16073
16084
|
v,
|
|
16085
|
+
A,
|
|
16074
16086
|
o,
|
|
16075
16087
|
w,
|
|
16076
16088
|
E,
|
|
@@ -16332,15 +16344,17 @@ function TA(i) {
|
|
|
16332
16344
|
};
|
|
16333
16345
|
}
|
|
16334
16346
|
function zA(i, t, e) {
|
|
16335
|
-
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: d = 0 } = t, { unfolded: h = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig:
|
|
16347
|
+
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: d = 0 } = t, { unfolded: h = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig: A } = t, { enableCarousel: g = !0 } = t, { autoplayConfig: p = { autoplay: !0, autoplayVideo: !1 } } = t, v = [], b = 0, w, E = null;
|
|
16336
16348
|
const L = vt("hooks"), I = vt("mediaStore");
|
|
16337
16349
|
function D() {
|
|
16338
16350
|
var F, B;
|
|
16339
|
-
const O =
|
|
16351
|
+
const O = v[b];
|
|
16340
16352
|
!O || (O.paused ? (F = O.videoInstance) == null || F.play() : (B = O.videoInstance) == null || B.pause());
|
|
16341
16353
|
}
|
|
16342
16354
|
Ze(() => {
|
|
16343
|
-
L.on("click",
|
|
16355
|
+
L.on("click", (O) => {
|
|
16356
|
+
O.tag.id === a.id && D();
|
|
16357
|
+
}), E = setInterval(
|
|
16344
16358
|
() => {
|
|
16345
16359
|
r && (w == null || w.goToNext());
|
|
16346
16360
|
},
|
|
@@ -16350,7 +16364,7 @@ function zA(i, t, e) {
|
|
|
16350
16364
|
clearInterval(E), L.off("click", D);
|
|
16351
16365
|
});
|
|
16352
16366
|
function k(O, F) {
|
|
16353
|
-
i.$$.not_equal(
|
|
16367
|
+
i.$$.not_equal(v[F], O) && (v[F] = O, e(8, v));
|
|
16354
16368
|
}
|
|
16355
16369
|
function V(O) {
|
|
16356
16370
|
Oe[O ? "unshift" : "push"](() => {
|
|
@@ -16361,9 +16375,9 @@ function zA(i, t, e) {
|
|
|
16361
16375
|
n || I.set({ currentMediaElement: null }), e(11, b = O.detail);
|
|
16362
16376
|
};
|
|
16363
16377
|
return i.$$set = (O) => {
|
|
16364
|
-
"tag" in O && e(0, a = O.tag), "mediaData" in O && e(1, l = O.mediaData), "inDelay" in O && e(2, c = O.inDelay), "outDelay" in O && e(3, u = O.outDelay), "duration" in O && e(4, d = O.duration), "unfolded" in O && e(5, h = O.unfolded), "animation" in O && e(6, f = O.animation), "mediaItemConfig" in O && e(7,
|
|
16378
|
+
"tag" in O && e(0, a = O.tag), "mediaData" in O && e(1, l = O.mediaData), "inDelay" in O && e(2, c = O.inDelay), "outDelay" in O && e(3, u = O.outDelay), "duration" in O && e(4, d = O.duration), "unfolded" in O && e(5, h = O.unfolded), "animation" in O && e(6, f = O.animation), "mediaItemConfig" in O && e(7, A = O.mediaItemConfig), "enableCarousel" in O && e(15, g = O.enableCarousel), "autoplayConfig" in O && e(16, p = O.autoplayConfig);
|
|
16365
16379
|
}, i.$$.update = () => {
|
|
16366
|
-
i.$$.dirty & 256 && e(9, n =
|
|
16380
|
+
i.$$.dirty & 256 && e(9, n = v.every((O) => O.paused)), i.$$.dirty & 32770 && e(13, o = g && (l == null ? void 0 : l.length) > 1), i.$$.dirty & 2 && e(10, s = l), i.$$.dirty & 67072 && (r = s.length > 1 && p.autoplay && n);
|
|
16367
16381
|
}, [
|
|
16368
16382
|
a,
|
|
16369
16383
|
l,
|
|
@@ -16372,8 +16386,8 @@ function zA(i, t, e) {
|
|
|
16372
16386
|
d,
|
|
16373
16387
|
h,
|
|
16374
16388
|
f,
|
|
16375
|
-
v,
|
|
16376
16389
|
A,
|
|
16390
|
+
v,
|
|
16377
16391
|
n,
|
|
16378
16392
|
s,
|
|
16379
16393
|
b,
|
|
@@ -16442,8 +16456,8 @@ function Nr(i) {
|
|
|
16442
16456
|
p(d, h) {
|
|
16443
16457
|
const f = {};
|
|
16444
16458
|
h & 8 && (f.visible = d[3]), t.$set(f);
|
|
16445
|
-
const
|
|
16446
|
-
h & 8 && (
|
|
16459
|
+
const A = {};
|
|
16460
|
+
h & 8 && (A.unfolded = d[3]), o.$set(A), d[2] ? c ? (c.p(d, h), h & 4 && P(c, 1)) : (c = Xr(d), c.c(), P(c, 1), c.m(r.parentNode, r)) : c && (se(), x(c, 1, 1, () => {
|
|
16447
16461
|
c = null;
|
|
16448
16462
|
}), re()), d[1] ? u ? (u.p(d, h), h & 2 && P(u, 1)) : (u = Yr(d), u.c(), P(u, 1), u.m(a.parentNode, a)) : u && (se(), x(u, 1, 1, () => {
|
|
16449
16463
|
u = null;
|
|
@@ -16755,7 +16769,7 @@ function ia(i) {
|
|
|
16755
16769
|
}
|
|
16756
16770
|
function RA(i) {
|
|
16757
16771
|
var E, L;
|
|
16758
|
-
let t, e, n, o, s, r, a, l, c, u, d = i[3].title + "", h, f,
|
|
16772
|
+
let t, e, n, o, s, r, a, l, c, u, d = i[3].title + "", h, f, A, g, p;
|
|
16759
16773
|
e = new st({
|
|
16760
16774
|
props: {
|
|
16761
16775
|
visible: i[4],
|
|
@@ -16766,18 +16780,18 @@ function RA(i) {
|
|
|
16766
16780
|
spreadRadius: 75
|
|
16767
16781
|
}
|
|
16768
16782
|
});
|
|
16769
|
-
let
|
|
16783
|
+
let v = i[3].headerPictureUrl && Jr(i), b = ((E = i[2].length) != null ? E : 0) + ((L = i[5].length) != null ? L : 0) > 0 && Zr(i), w = (i[7] || i[3].highlightText) && ea(i);
|
|
16770
16784
|
return {
|
|
16771
16785
|
c() {
|
|
16772
|
-
t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = $(), r = z("div"),
|
|
16786
|
+
t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = $(), r = z("div"), v && v.c(), a = $(), l = z("div"), c = z("div"), u = z("div"), h = Ie(d), f = $(), b && b.c(), A = $(), w && w.c(), y(o, "class", "line svelte-sezqcq"), T(o, "transition-delay", i[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), y(u, "class", "text svelte-sezqcq"), y(c, "class", "title svelte-sezqcq"), y(l, "class", "title-wrapper svelte-sezqcq"), y(r, "class", "content svelte-sezqcq"), T(r, "max-width", it(i[9])), T(r, "transition-delay", i[4] ? $n + ei + "ms" : "0ms"), y(t, "class", g = Me(`marketing ${i[6]}`) + " svelte-sezqcq"), q(t, "unfolded", i[4]), q(t, "folded", i[8]);
|
|
16773
16787
|
},
|
|
16774
16788
|
m(I, D) {
|
|
16775
|
-
M(I, t, D), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r),
|
|
16789
|
+
M(I, t, D), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r), v && v.m(r, null), j(r, a), j(r, l), j(l, c), j(c, u), j(u, h), j(r, f), b && b.m(r, null), j(r, A), w && w.m(r, null), p = !0;
|
|
16776
16790
|
},
|
|
16777
16791
|
p(I, [D]) {
|
|
16778
16792
|
var V, _;
|
|
16779
16793
|
const k = {};
|
|
16780
|
-
D & 16 && (k.visible = I[4]), e.$set(k), D & 16 && T(o, "transition-delay", I[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), I[3].headerPictureUrl ?
|
|
16794
|
+
D & 16 && (k.visible = I[4]), e.$set(k), D & 16 && T(o, "transition-delay", I[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), I[3].headerPictureUrl ? v ? v.p(I, D) : (v = Jr(I), v.c(), v.m(r, a)) : v && (v.d(1), v = null), (!p || D & 8) && d !== (d = I[3].title + "") && Le(h, d), ((V = I[2].length) != null ? V : 0) + ((_ = I[5].length) != null ? _ : 0) > 0 ? b ? b.p(I, D) : (b = Zr(I), b.c(), b.m(r, A)) : b && (b.d(1), b = null), I[7] || I[3].highlightText ? w ? w.p(I, D) : (w = ea(I), w.c(), w.m(r, null)) : w && (w.d(1), w = null), D & 16 && T(r, "transition-delay", I[4] ? $n + ei + "ms" : "0ms"), (!p || D & 64 && g !== (g = Me(`marketing ${I[6]}`) + " svelte-sezqcq")) && y(t, "class", g), (!p || D & 80) && q(t, "unfolded", I[4]), (!p || D & 320) && q(t, "folded", I[8]);
|
|
16781
16795
|
},
|
|
16782
16796
|
i(I) {
|
|
16783
16797
|
p || (P(e.$$.fragment, I), p = !0);
|
|
@@ -16786,7 +16800,7 @@ function RA(i) {
|
|
|
16786
16800
|
x(e.$$.fragment, I), p = !1;
|
|
16787
16801
|
},
|
|
16788
16802
|
d(I) {
|
|
16789
|
-
I && S(t), Z(e),
|
|
16803
|
+
I && S(t), Z(e), v && v.d(), b && b.d(), w && w.d();
|
|
16790
16804
|
}
|
|
16791
16805
|
};
|
|
16792
16806
|
}
|
|
@@ -16800,14 +16814,14 @@ function FA(i, t, e) {
|
|
|
16800
16814
|
if (g === !0)
|
|
16801
16815
|
return 172;
|
|
16802
16816
|
})();
|
|
16803
|
-
function
|
|
16817
|
+
function A() {
|
|
16804
16818
|
h = this.offsetHeight, e(1, h);
|
|
16805
16819
|
}
|
|
16806
16820
|
return i.$$set = (g) => {
|
|
16807
16821
|
"tag" in g && e(0, d = g.tag);
|
|
16808
16822
|
}, i.$$.update = () => {
|
|
16809
|
-
var g, p,
|
|
16810
|
-
i.$$.dirty & 1 && e(4, n = (p = (g = d.state) == null ? void 0 : g.unfolded) != null ? p : !1), i.$$.dirty & 16 && e(8, o = !n), i.$$.dirty & 1 && e(3, s = d.data), i.$$.dirty & 8 && e(7, r = wt((
|
|
16823
|
+
var g, p, v, b, w, E;
|
|
16824
|
+
i.$$.dirty & 1 && e(4, n = (p = (g = d.state) == null ? void 0 : g.unfolded) != null ? p : !1), i.$$.dirty & 16 && e(8, o = !n), i.$$.dirty & 1 && e(3, s = d.data), i.$$.dirty & 8 && e(7, r = wt((v = s.price) == null ? void 0 : v.value) && ((b = s.price) == null ? void 0 : b.value) !== ""), i.$$.dirty & 1 && e(6, a = d.data.theme || "light"), i.$$.dirty & 1026 && h > 40 && e(10, l = l - 1), i.$$.dirty & 1032 && e(2, c = ((w = s.brandTags) == null ? void 0 : w.slice(0, l).filter(Boolean)) || []), i.$$.dirty & 1036 && e(5, u = ((E = s.tags) == null ? void 0 : E.slice(0, l - c.length).filter(Boolean)) || []);
|
|
16811
16825
|
}, e(10, l = (f - 20) / zo), [
|
|
16812
16826
|
d,
|
|
16813
16827
|
h,
|
|
@@ -16820,7 +16834,7 @@ function FA(i, t, e) {
|
|
|
16820
16834
|
o,
|
|
16821
16835
|
f,
|
|
16822
16836
|
l,
|
|
16823
|
-
|
|
16837
|
+
A
|
|
16824
16838
|
];
|
|
16825
16839
|
}
|
|
16826
16840
|
class HA extends oe {
|
|
@@ -16959,7 +16973,7 @@ function NA(i, t, e) {
|
|
|
16959
16973
|
let { $$slots: n = {}, $$scope: o } = t, { url: s } = t, { enable: r = !0 } = t, { style: a = "" } = t, { hooksInfo: l } = t;
|
|
16960
16974
|
const c = yi(), u = vt("hooks"), d = vt("mediaStore");
|
|
16961
16975
|
let h, f = !0;
|
|
16962
|
-
function
|
|
16976
|
+
function A() {
|
|
16963
16977
|
e(
|
|
16964
16978
|
5,
|
|
16965
16979
|
h.onplay = (p) => {
|
|
@@ -17027,7 +17041,7 @@ function NA(i, t, e) {
|
|
|
17027
17041
|
return i.$$set = (p) => {
|
|
17028
17042
|
"url" in p && e(2, s = p.url), "enable" in p && e(3, r = p.enable), "style" in p && e(0, a = p.style), "hooksInfo" in p && e(4, l = p.hooksInfo), "$$scope" in p && e(7, o = p.$$scope);
|
|
17029
17043
|
}, i.$$.update = () => {
|
|
17030
|
-
i.$$.dirty & 4 && (s || c("duration", 0)), i.$$.dirty & 36 && (h == null || h.dispose(), e(5, h = new GA(s)), c("audioRef", h), setTimeout(() => c("audioRef", h), 200),
|
|
17044
|
+
i.$$.dirty & 4 && (s || c("duration", 0)), i.$$.dirty & 36 && (h == null || h.dispose(), e(5, h = new GA(s)), c("audioRef", h), setTimeout(() => c("audioRef", h), 200), A()), i.$$.dirty & 40 && (r || h == null || h.pause()), i.$$.dirty & 72 && c(r && !f ? "play" : "pause");
|
|
17031
17045
|
}, [a, g, s, r, l, h, f, o, n];
|
|
17032
17046
|
}
|
|
17033
17047
|
class Nl extends oe {
|
|
@@ -17152,8 +17166,8 @@ function qA(i) {
|
|
|
17152
17166
|
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%}");
|
|
17153
17167
|
}
|
|
17154
17168
|
function aa(i) {
|
|
17155
|
-
var p,
|
|
17156
|
-
let t, e, n, o, s, r, a, l, c, u, d, h, f,
|
|
17169
|
+
var p, v;
|
|
17170
|
+
let t, e, n, o, s, r, a, l, c, u, d, h, f, A;
|
|
17157
17171
|
e = new st({
|
|
17158
17172
|
props: {
|
|
17159
17173
|
visible: i[6],
|
|
@@ -17175,7 +17189,7 @@ function aa(i) {
|
|
|
17175
17189
|
props: {
|
|
17176
17190
|
unfolded: i[6],
|
|
17177
17191
|
length: i[3],
|
|
17178
|
-
outDelay: i[4] + 20 * Math.min((
|
|
17192
|
+
outDelay: i[4] + 20 * Math.min((v = (p = i[5]) == null ? void 0 : p.length) != null ? v : 10, 15),
|
|
17179
17193
|
useLinearColor: !0
|
|
17180
17194
|
}
|
|
17181
17195
|
}), {
|
|
@@ -17183,7 +17197,7 @@ function aa(i) {
|
|
|
17183
17197
|
t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = z("div"), r = z("div"), g && g.c(), a = $(), l = z("div"), K(c.$$.fragment), u = $(), K(d.$$.fragment), y(r, "class", "audio-icon svelte-1s6gk4a"), T(l, "display", "inline-block"), y(s, "class", "wrapper svelte-1s6gk4a"), y(o, "class", "content svelte-1s6gk4a"), y(t, "class", "audio-tag svelte-1s6gk4a"), q(t, "unfolded", i[6]);
|
|
17184
17198
|
},
|
|
17185
17199
|
m(b, w) {
|
|
17186
|
-
M(b, t, w), J(e, t, null), j(t, n), j(t, o), j(o, s), j(s, r), g && g.m(r, null), j(s, a), j(s, l), J(c, l, null), j(t, u), J(d, t, null), h = !0, f || (
|
|
17200
|
+
M(b, t, w), J(e, t, null), j(t, n), j(t, o), j(o, s), j(s, r), g && g.m(r, null), j(s, a), j(s, l), J(c, l, null), j(t, u), J(d, t, null), h = !0, f || (A = [
|
|
17187
17201
|
ge(l, "click", i[7]),
|
|
17188
17202
|
ct(rn.call(null, l)),
|
|
17189
17203
|
ge(l, "clientWidth", i[12])
|
|
@@ -17207,7 +17221,7 @@ function aa(i) {
|
|
|
17207
17221
|
x(e.$$.fragment, b), x(g), x(c.$$.fragment, b), x(d.$$.fragment, b), h = !1;
|
|
17208
17222
|
},
|
|
17209
17223
|
d(b) {
|
|
17210
|
-
b && S(t), Z(e), g && g.d(), Z(c), Z(d), f = !1, He(
|
|
17224
|
+
b && S(t), Z(e), g && g.d(), Z(c), Z(d), f = !1, He(A);
|
|
17211
17225
|
}
|
|
17212
17226
|
};
|
|
17213
17227
|
}
|
|
@@ -17322,7 +17336,7 @@ function KA(i, t, e) {
|
|
|
17322
17336
|
}, f = () => {
|
|
17323
17337
|
e(2, l = !1);
|
|
17324
17338
|
};
|
|
17325
|
-
function
|
|
17339
|
+
function A(p) {
|
|
17326
17340
|
on.call(this, i, p);
|
|
17327
17341
|
}
|
|
17328
17342
|
const g = (p) => {
|
|
@@ -17331,8 +17345,8 @@ function KA(i, t, e) {
|
|
|
17331
17345
|
return i.$$set = (p) => {
|
|
17332
17346
|
"tag" in p && e(0, r = p.tag);
|
|
17333
17347
|
}, i.$$.update = () => {
|
|
17334
|
-
var p,
|
|
17335
|
-
i.$$.dirty & 1 && e(6, n = !!((p = r.state) != null && p.unfolded)), i.$$.dirty & 1 && e(5, o = (b = (
|
|
17348
|
+
var p, v, b;
|
|
17349
|
+
i.$$.dirty & 1 && e(6, n = !!((p = r.state) != null && p.unfolded)), i.$$.dirty & 1 && e(5, o = (b = (v = r.data.title) != null ? v : r.data.text) != null ? b : ""), i.$$.dirty & 2 && e(4, s = a ? 450 : 0);
|
|
17336
17350
|
}, [
|
|
17337
17351
|
r,
|
|
17338
17352
|
a,
|
|
@@ -17345,7 +17359,7 @@ function KA(i, t, e) {
|
|
|
17345
17359
|
d,
|
|
17346
17360
|
h,
|
|
17347
17361
|
f,
|
|
17348
|
-
|
|
17362
|
+
A,
|
|
17349
17363
|
g
|
|
17350
17364
|
];
|
|
17351
17365
|
}
|
|
@@ -17485,7 +17499,7 @@ function ov(i, t, e) {
|
|
|
17485
17499
|
e(3, c = !1);
|
|
17486
17500
|
}, f = (p) => {
|
|
17487
17501
|
e(1, a = p.detail);
|
|
17488
|
-
},
|
|
17502
|
+
}, A = (p) => {
|
|
17489
17503
|
e(2, l = p.detail);
|
|
17490
17504
|
};
|
|
17491
17505
|
function g(p) {
|
|
@@ -17494,8 +17508,8 @@ function ov(i, t, e) {
|
|
|
17494
17508
|
return i.$$set = (p) => {
|
|
17495
17509
|
"tag" in p && e(0, s = p.tag);
|
|
17496
17510
|
}, i.$$.update = () => {
|
|
17497
|
-
var p,
|
|
17498
|
-
i.$$.dirty & 1 && e(5, n = (
|
|
17511
|
+
var p, v, b;
|
|
17512
|
+
i.$$.dirty & 1 && e(5, n = (v = (p = s.data.title) != null ? p : s.data.text) != null ? v : ""), i.$$.dirty & 1 && e(4, o = (b = r[s.data.theme || "light"]) != null ? b : r.light);
|
|
17499
17513
|
}, [
|
|
17500
17514
|
s,
|
|
17501
17515
|
a,
|
|
@@ -17507,7 +17521,7 @@ function ov(i, t, e) {
|
|
|
17507
17521
|
d,
|
|
17508
17522
|
h,
|
|
17509
17523
|
f,
|
|
17510
|
-
|
|
17524
|
+
A,
|
|
17511
17525
|
g
|
|
17512
17526
|
];
|
|
17513
17527
|
}
|
|
@@ -17985,7 +17999,7 @@ function Ht(i) {
|
|
|
17985
17999
|
return fe(Q({}, i), { width: s, height: r });
|
|
17986
18000
|
}
|
|
17987
18001
|
function xv(i, t, e) {
|
|
17988
|
-
let n, o, s, r, a, l, c, u, d, { width: h = null } = t, { icon: f = null } = t, { shadow:
|
|
18002
|
+
let n, o, s, r, a, l, c, u, d, { width: h = null } = t, { icon: f = null } = t, { shadow: A = !1 } = t;
|
|
17989
18003
|
const g = yi();
|
|
17990
18004
|
function p(w) {
|
|
17991
18005
|
return H(this, null, function* () {
|
|
@@ -17993,7 +18007,7 @@ function xv(i, t, e) {
|
|
|
17993
18007
|
return g("iconLoaded", E), E;
|
|
17994
18008
|
});
|
|
17995
18009
|
}
|
|
17996
|
-
function
|
|
18010
|
+
function v(w) {
|
|
17997
18011
|
return H(this, null, function* () {
|
|
17998
18012
|
if (typeof d == "number")
|
|
17999
18013
|
return fe(Q({}, w), { width: d });
|
|
@@ -18007,7 +18021,7 @@ function xv(i, t, e) {
|
|
|
18007
18021
|
return Ze(() => {
|
|
18008
18022
|
b();
|
|
18009
18023
|
}), i.$$set = (w) => {
|
|
18010
|
-
"width" in w && e(1, h = w.width), "icon" in w && e(12, f = w.icon), "shadow" in w && e(0,
|
|
18024
|
+
"width" in w && e(1, h = w.width), "icon" in w && e(12, f = w.icon), "shadow" in w && e(0, A = w.shadow);
|
|
18011
18025
|
}, i.$$.update = () => {
|
|
18012
18026
|
var w, E;
|
|
18013
18027
|
i.$$.dirty & 4096 && e(7, n = f == null ? void 0 : f.url), i.$$.dirty & 4096 && e(2, o = (w = f == null ? void 0 : f.steps) != null ? w : 1), i.$$.dirty & 4096 && e(6, s = f == null ? void 0 : f.fps), i.$$.dirty & 4096 && e(5, r = f == null ? void 0 : f.ratio), i.$$.dirty & 4096 && e(4, a = (E = f == null ? void 0 : f.scale) != null ? E : 1), i.$$.dirty & 4096 && e(3, l = f == null ? void 0 : f.width), i.$$.dirty & 252 && e(9, c = xe({
|
|
@@ -18019,7 +18033,7 @@ function xv(i, t, e) {
|
|
|
18019
18033
|
width: l
|
|
18020
18034
|
})), i.$$.dirty & 4 && e(8, u = o > 1), i.$$.dirty & 2 && (d = h);
|
|
18021
18035
|
}, b(), [
|
|
18022
|
-
|
|
18036
|
+
A,
|
|
18023
18037
|
h,
|
|
18024
18038
|
o,
|
|
18025
18039
|
l,
|
|
@@ -18030,7 +18044,7 @@ function xv(i, t, e) {
|
|
|
18030
18044
|
u,
|
|
18031
18045
|
c,
|
|
18032
18046
|
p,
|
|
18033
|
-
|
|
18047
|
+
v,
|
|
18034
18048
|
f
|
|
18035
18049
|
];
|
|
18036
18050
|
}
|
|
@@ -18223,7 +18237,7 @@ function Qv(i) {
|
|
|
18223
18237
|
Fv,
|
|
18224
18238
|
Rv
|
|
18225
18239
|
], d = [];
|
|
18226
|
-
function h(f,
|
|
18240
|
+
function h(f, A) {
|
|
18227
18241
|
return f[1].element ? 0 : f[1].contentType === "Text" ? 1 : f[1].contentType === "ImageText" || f[1].contentType === "Image" || f[1].contentType === "Video" ? 2 : f[1].contentType === "Audio" ? 3 : f[1].contentType === "Marketing" ? 4 : f[1].contentType === "Link" || f[1].contentType === "VRLink" || f[1].contentType === "PanoLink" || f[1].contentType === "Sticker" ? 5 : f[1].contentType === "MediaPlane" || f[1].contentType === "MediaModel" ? 6 : -1;
|
|
18228
18242
|
}
|
|
18229
18243
|
return ~(o = h(i)) && (s = d[o] = u[o](i)), {
|
|
@@ -18231,15 +18245,15 @@ function Qv(i) {
|
|
|
18231
18245
|
var f;
|
|
18232
18246
|
t = z("div"), e = z("div"), n = z("div"), s && s.c(), y(n, "class", "content svelte-1r4fqvg"), q(n, "unfolded", (f = i[1].state) == null ? void 0 : f.unfolded), y(e, "class", "content__wrapper svelte-1r4fqvg"), y(t, "class", "content__container svelte-1r4fqvg"), y(t, "data-id", r = i[1].id), q(t, "disable", i[1].enabled === !1), q(t, "hide", i[4]), q(t, "withAnimation", i[0]), q(t, "unClickable", i[1].mergedConfig.clickable === !1), T(t, "width", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0), T(t, "height", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0);
|
|
18233
18247
|
},
|
|
18234
|
-
m(f,
|
|
18235
|
-
M(f, t,
|
|
18248
|
+
m(f, A) {
|
|
18249
|
+
M(f, t, A), j(t, e), j(e, n), ~o && d[o].m(n, null), a = !0, l || (c = ge(t, "click", Fa(i[13])), l = !0);
|
|
18236
18250
|
},
|
|
18237
|
-
p(f,
|
|
18251
|
+
p(f, A) {
|
|
18238
18252
|
var p;
|
|
18239
18253
|
let g = o;
|
|
18240
|
-
o = h(f), o === g ? ~o && d[o].p(f,
|
|
18254
|
+
o = h(f), o === g ? ~o && d[o].p(f, A) : (s && (se(), x(d[g], 1, 1, () => {
|
|
18241
18255
|
d[g] = null;
|
|
18242
|
-
}), re()), ~o ? (s = d[o], s ? s.p(f,
|
|
18256
|
+
}), re()), ~o ? (s = d[o], s ? s.p(f, A) : (s = d[o] = u[o](f), s.c()), P(s, 1), s.m(n, null)) : s = null), (!a || A & 2) && q(n, "unfolded", (p = f[1].state) == null ? void 0 : p.unfolded), (!a || A & 2 && r !== (r = f[1].id)) && y(t, "data-id", r), (!a || A & 2) && q(t, "disable", f[1].enabled === !1), (!a || A & 16) && q(t, "hide", f[4]), (!a || A & 1) && q(t, "withAnimation", f[0]), (!a || A & 2) && q(t, "unClickable", f[1].mergedConfig.clickable === !1), A & 2 && T(t, "width", f[1].stickType === "Plane" || f[1].contentType === "MediaModel" ? "100%" : 0), A & 2 && T(t, "height", f[1].stickType === "Plane" || f[1].contentType === "MediaModel" ? "100%" : 0);
|
|
18243
18257
|
},
|
|
18244
18258
|
i(f) {
|
|
18245
18259
|
a || (P(s), a = !0);
|
|
@@ -18465,10 +18479,10 @@ function Xv(i) {
|
|
|
18465
18479
|
};
|
|
18466
18480
|
}
|
|
18467
18481
|
function Yv(i, t, e) {
|
|
18468
|
-
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: d } = t, { state: h } = t, { mediaStore: f } = t, { temporaryState:
|
|
18482
|
+
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: d } = t, { state: h } = t, { mediaStore: f } = t, { temporaryState: A } = t;
|
|
18469
18483
|
eo("hooks", d), eo("mediaStore", f);
|
|
18470
18484
|
let g, p;
|
|
18471
|
-
function
|
|
18485
|
+
function v(E) {
|
|
18472
18486
|
E ? d.emit("exposure", { id: r, type: "start" }) : d.emit("exposure", { id: r, type: "end" });
|
|
18473
18487
|
}
|
|
18474
18488
|
function b(E, L, I) {
|
|
@@ -18477,10 +18491,10 @@ function Yv(i, t, e) {
|
|
|
18477
18491
|
}
|
|
18478
18492
|
const w = (E) => d.emit("click", { event: E, target: "TagContent", tag: u });
|
|
18479
18493
|
return i.$$set = (E) => {
|
|
18480
|
-
"withAnimation" in E && e(0, c = E.withAnimation), "tag" in E && e(1, u = E.tag), "hooks" in E && e(2, d = E.hooks), "state" in E && e(5, h = E.state), "mediaStore" in E && e(6, f = E.mediaStore), "temporaryState" in E && e(7,
|
|
18494
|
+
"withAnimation" in E && e(0, c = E.withAnimation), "tag" in E && e(1, u = E.tag), "hooks" in E && e(2, d = E.hooks), "state" in E && e(5, h = E.state), "mediaStore" in E && e(6, f = E.mediaStore), "temporaryState" in E && e(7, A = E.temporaryState);
|
|
18481
18495
|
}, i.$$.update = () => {
|
|
18482
18496
|
var E, L, I, D, k, V, _, O, F, B, R;
|
|
18483
|
-
i.$$.dirty & 2 && e(11, n = (E = u.state) == null ? void 0 : E.unfolded), i.$$.dirty & 2 && e(10, o = (L = u.state) == null ? void 0 : L.visible), i.$$.dirty & 162 && e(12, s = h.visible &&
|
|
18497
|
+
i.$$.dirty & 2 && e(11, n = (E = u.state) == null ? void 0 : E.unfolded), i.$$.dirty & 2 && e(10, o = (L = u.state) == null ? void 0 : L.visible), i.$$.dirty & 162 && e(12, s = h.visible && A.visible && ((I = u.state) == null ? void 0 : I.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, h, A)), i.$$.dirty & 4096 && v(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== p && (e(9, p = n), n ? (k = (D = u.hooks).emit) == null || k.call(D, "unfolded") : (_ = u == null ? void 0 : (V = u.hooks).emit) == null || _.call(V, "folded")), o !== void 0 && o !== g && (e(8, g = o), o ? (F = (O = u.hooks).emit) == null || F.call(O, "show") : (R = (B = u.hooks).emit) == null || R.call(B, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
|
|
18484
18498
|
}, [
|
|
18485
18499
|
c,
|
|
18486
18500
|
u,
|
|
@@ -18489,7 +18503,7 @@ function Yv(i, t, e) {
|
|
|
18489
18503
|
a,
|
|
18490
18504
|
h,
|
|
18491
18505
|
f,
|
|
18492
|
-
|
|
18506
|
+
A,
|
|
18493
18507
|
g,
|
|
18494
18508
|
p,
|
|
18495
18509
|
o,
|
|
@@ -18539,13 +18553,13 @@ function qv(i) {
|
|
|
18539
18553
|
c() {
|
|
18540
18554
|
t = z("div"), e = z("div"), n = $(), K(o.$$.fragment), s = $(), r = z("div"), a = $(), l = z("div"), K(c.$$.fragment), y(e, "class", "tag-point-click-helper svelte-1jkrwn7"), y(r, "class", "tag-unfolded-point svelte-1jkrwn7"), T(r, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(l, "class", "tag-folded-point svelte-1jkrwn7"), T(l, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(t, "class", "tag-point-wrapper svelte-1jkrwn7"), q(t, "unfolded", i[0]), q(t, "folded", i[3]);
|
|
18541
18555
|
},
|
|
18542
|
-
m(f,
|
|
18543
|
-
M(f, t,
|
|
18556
|
+
m(f, A) {
|
|
18557
|
+
M(f, t, A), j(t, e), j(t, n), J(o, t, null), j(t, s), j(t, r), j(t, a), j(t, l), J(c, l, null), u = !0, d || (h = ge(e, "click", i[4]), d = !0);
|
|
18544
18558
|
},
|
|
18545
|
-
p(f, [
|
|
18546
|
-
|
|
18559
|
+
p(f, [A]) {
|
|
18560
|
+
A & 8 && T(r, "transition-delay", (f[3] ? f[5] : 0) + "ms");
|
|
18547
18561
|
const g = {};
|
|
18548
|
-
|
|
18562
|
+
A & 4 && (g.icon = f[2]), A & 2 && (g.width = f[1]), c.$set(g), A & 8 && T(l, "transition-delay", (f[3] ? f[5] : 0) + "ms"), (!u || A & 1) && q(t, "unfolded", f[0]), (!u || A & 8) && q(t, "folded", f[3]);
|
|
18549
18563
|
},
|
|
18550
18564
|
i(f) {
|
|
18551
18565
|
u || (P(o.$$.fragment, f), P(c.$$.fragment, f), u = !0);
|
|
@@ -18572,14 +18586,14 @@ function Jv(i, t, e) {
|
|
|
18572
18586
|
}, h = (g) => {
|
|
18573
18587
|
u || a.emit("click", { event: g, target: "TagPoint", tag: l });
|
|
18574
18588
|
}, f = (() => l.contentType === "Text" && l.data.appearance === "plane" ? 500 : 800)();
|
|
18575
|
-
function
|
|
18589
|
+
function A(g) {
|
|
18576
18590
|
on.call(this, i, g);
|
|
18577
18591
|
}
|
|
18578
18592
|
return i.$$set = (g) => {
|
|
18579
18593
|
"tag" in g && e(6, l = g.tag);
|
|
18580
18594
|
}, i.$$.update = () => {
|
|
18581
|
-
var g, p,
|
|
18582
|
-
i.$$.dirty & 64 && e(0, n = (g = l.state) == null ? void 0 : g.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (
|
|
18595
|
+
var g, p, v, b;
|
|
18596
|
+
i.$$.dirty & 64 && e(0, n = (g = l.state) == null ? void 0 : g.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (v = (p = l.style) == null ? void 0 : p.point) != null && v.url ? (b = l.style) == null ? void 0 : b.point : { url: Lg }), i.$$.dirty & 64 && e(1, r = (() => {
|
|
18583
18597
|
var L, I, D, k;
|
|
18584
18598
|
const w = (I = (L = l.style) == null ? void 0 : L.point) == null ? void 0 : I.width;
|
|
18585
18599
|
if (typeof w == "number")
|
|
@@ -18604,7 +18618,7 @@ function Jv(i, t, e) {
|
|
|
18604
18618
|
h,
|
|
18605
18619
|
f,
|
|
18606
18620
|
l,
|
|
18607
|
-
|
|
18621
|
+
A
|
|
18608
18622
|
];
|
|
18609
18623
|
}
|
|
18610
18624
|
class Zv extends oe {
|
|
@@ -18709,30 +18723,30 @@ function n1(i) {
|
|
|
18709
18723
|
function i1(i) {
|
|
18710
18724
|
let t, e, n, o, s, r, a, l, c;
|
|
18711
18725
|
const u = [e1, $v], d = [];
|
|
18712
|
-
function h(p,
|
|
18726
|
+
function h(p, v) {
|
|
18713
18727
|
return p[12] ? 0 : 1;
|
|
18714
18728
|
}
|
|
18715
18729
|
n = h(i), o = d[n] = u[n](i);
|
|
18716
|
-
const f = [n1, t1],
|
|
18717
|
-
function g(p,
|
|
18730
|
+
const f = [n1, t1], A = [];
|
|
18731
|
+
function g(p, v) {
|
|
18718
18732
|
return p[13] ? 0 : 1;
|
|
18719
18733
|
}
|
|
18720
|
-
return r = g(i), a =
|
|
18734
|
+
return r = g(i), a = A[r] = f[r](i), {
|
|
18721
18735
|
c() {
|
|
18722
18736
|
t = z("div"), e = z("div"), o.c(), s = $(), a.c(), y(e, "class", "wrapper svelte-pzwdws"), y(e, "data-tag-unfolded", i[8]), y(e, "data-tag-id", i[11]), y(e, "data-content-type", l = i[1].contentType), T(e, "left", i[7]), T(e, "top", i[6]), T(e, "z-index", i[5]), y(t, "class", "tag svelte-pzwdws"), y(t, "data-tag-id", i[11]), q(t, "unClickable", i[1].mergedConfig.clickable === !1), q(t, "disable", i[10]), q(t, "hide", i[9]), q(t, "withAnimation", i[0]);
|
|
18723
18737
|
},
|
|
18724
|
-
m(p,
|
|
18725
|
-
M(p, t,
|
|
18738
|
+
m(p, v) {
|
|
18739
|
+
M(p, t, v), j(t, e), d[n].m(e, null), j(e, s), A[r].m(e, null), c = !0;
|
|
18726
18740
|
},
|
|
18727
|
-
p(p, [
|
|
18741
|
+
p(p, [v]) {
|
|
18728
18742
|
let b = n;
|
|
18729
|
-
n = h(p), n === b ? d[n].p(p,
|
|
18743
|
+
n = h(p), n === b ? d[n].p(p, v) : (se(), x(d[b], 1, 1, () => {
|
|
18730
18744
|
d[b] = null;
|
|
18731
|
-
}), re(), o = d[n], o ? o.p(p,
|
|
18745
|
+
}), re(), o = d[n], o ? o.p(p, v) : (o = d[n] = u[n](p), o.c()), P(o, 1), o.m(e, s));
|
|
18732
18746
|
let w = r;
|
|
18733
|
-
r = g(p), r === w ?
|
|
18734
|
-
|
|
18735
|
-
}), re(), a =
|
|
18747
|
+
r = g(p), r === w ? A[r].p(p, v) : (se(), x(A[w], 1, 1, () => {
|
|
18748
|
+
A[w] = null;
|
|
18749
|
+
}), re(), a = A[r], a ? a.p(p, v) : (a = A[r] = f[r](p), a.c()), P(a, 1), a.m(e, null)), (!c || v & 256) && y(e, "data-tag-unfolded", p[8]), (!c || v & 2048) && y(e, "data-tag-id", p[11]), (!c || v & 2 && l !== (l = p[1].contentType)) && y(e, "data-content-type", l), v & 128 && T(e, "left", p[7]), v & 64 && T(e, "top", p[6]), v & 32 && T(e, "z-index", p[5]), (!c || v & 2048) && y(t, "data-tag-id", p[11]), (!c || v & 2) && q(t, "unClickable", p[1].mergedConfig.clickable === !1), (!c || v & 1024) && q(t, "disable", p[10]), (!c || v & 512) && q(t, "hide", p[9]), (!c || v & 1) && q(t, "withAnimation", p[0]);
|
|
18736
18750
|
},
|
|
18737
18751
|
i(p) {
|
|
18738
18752
|
c || (P(o), P(a), c = !0);
|
|
@@ -18741,22 +18755,22 @@ function i1(i) {
|
|
|
18741
18755
|
x(o), x(a), c = !1;
|
|
18742
18756
|
},
|
|
18743
18757
|
d(p) {
|
|
18744
|
-
p && S(t), d[n].d(),
|
|
18758
|
+
p && S(t), d[n].d(), A[r].d();
|
|
18745
18759
|
}
|
|
18746
18760
|
};
|
|
18747
18761
|
}
|
|
18748
18762
|
function o1(i, t, e) {
|
|
18749
|
-
let n, o, s, r, a, l, c, u, d, { withAnimation: h = !1 } = t, { tag: f } = t, { mediaStore:
|
|
18750
|
-
const
|
|
18763
|
+
let n, o, s, r, a, l, c, u, d, { withAnimation: h = !1 } = t, { tag: f } = t, { mediaStore: A } = t, { state: g } = t, { temporaryState: p } = t;
|
|
18764
|
+
const v = vt("hooks");
|
|
18751
18765
|
return i.$$set = (b) => {
|
|
18752
|
-
"withAnimation" in b && e(0, h = b.withAnimation), "tag" in b && e(1, f = b.tag), "mediaStore" in b && e(2,
|
|
18766
|
+
"withAnimation" in b && e(0, h = b.withAnimation), "tag" in b && e(1, f = b.tag), "mediaStore" in b && e(2, A = b.mediaStore), "state" in b && e(3, g = b.state), "temporaryState" in b && e(4, p = b.temporaryState);
|
|
18753
18767
|
}, i.$$.update = () => {
|
|
18754
18768
|
var b, w, E, L, I, D, k, V;
|
|
18755
18769
|
i.$$.dirty & 2 && e(13, n = (() => !(f.contentType === "Sticker" || 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 = !((b = f.pointTagStyle) != null && b.leftPercent) || !((w = f.pointTagStyle) != null && w.topPercent) || f.enabled === !1 || !f.state), i.$$.dirty & 2 && e(9, a = !((E = f.state) != null && E.visible) || ((L = f.temporaryState) == null ? void 0 : L.visible) === !1), i.$$.dirty & 2 && e(8, l = (I = f.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(7, c = ((D = f.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((k = f.pointTagStyle) == null ? void 0 : k.topPercent) + "%"), i.$$.dirty & 2 && e(5, d = (V = f.state) != null && V.unfolded ? 1 : 0);
|
|
18756
18770
|
}, [
|
|
18757
18771
|
h,
|
|
18758
18772
|
f,
|
|
18759
|
-
|
|
18773
|
+
A,
|
|
18760
18774
|
g,
|
|
18761
18775
|
p,
|
|
18762
18776
|
d,
|
|
@@ -18768,7 +18782,7 @@ function o1(i, t, e) {
|
|
|
18768
18782
|
s,
|
|
18769
18783
|
o,
|
|
18770
18784
|
n,
|
|
18771
|
-
|
|
18785
|
+
v
|
|
18772
18786
|
];
|
|
18773
18787
|
}
|
|
18774
18788
|
class s1 extends oe {
|
|
@@ -18958,7 +18972,7 @@ class h1 extends fg {
|
|
|
18958
18972
|
return;
|
|
18959
18973
|
s.visible = this.getCurrentVisibleState(e), new fn().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFloorIndex(e);
|
|
18960
18974
|
const a = this.gltfObjectGroup.children.find((c) => c.customID === e.id);
|
|
18961
|
-
if (a && this.gltfObjectGroup.remove(a), this.
|
|
18975
|
+
if (a && this.gltfObjectGroup.remove(a), this.getRenderType(e) === "Mesh") {
|
|
18962
18976
|
if (!e.imagePlane) {
|
|
18963
18977
|
const c = e.data.mediaPosition.map(Je);
|
|
18964
18978
|
e.imagePlane = new lr(e.data.mediaData[0].url, e.data.mediaPosition.map(Je));
|
|
@@ -18991,13 +19005,13 @@ class h1 extends fg {
|
|
|
18991
19005
|
});
|
|
18992
19006
|
}
|
|
18993
19007
|
updateRender3DDomTag() {
|
|
18994
|
-
this.sort([...this.
|
|
18995
|
-
var o;
|
|
19008
|
+
this.sort([...this.filterCSS3DTag]).forEach((n) => {
|
|
19009
|
+
var o, s;
|
|
18996
19010
|
if (n.tag3DContentSvelte) {
|
|
18997
|
-
const { svelteApp:
|
|
18998
|
-
if (
|
|
18999
|
-
const
|
|
19000
|
-
|
|
19011
|
+
const { svelteApp: r, domContainer: a, initialNormal: l, currentNormal: c } = n.tag3DContentSvelte;
|
|
19012
|
+
if (r.$set({ tag: n, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !l.equals(c)) {
|
|
19013
|
+
const u = new mo().setFromUnitVectors(l, c);
|
|
19014
|
+
a.css3DObject.setRotationFromQuaternion(u);
|
|
19001
19015
|
}
|
|
19002
19016
|
return;
|
|
19003
19017
|
} else {
|
|
@@ -19005,32 +19019,32 @@ class h1 extends fg {
|
|
|
19005
19019
|
return;
|
|
19006
19020
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Tn(this.five)), n.stickType === "3DPoint" && !n.normal)
|
|
19007
19021
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
19008
|
-
const
|
|
19009
|
-
if (!s)
|
|
19010
|
-
return;
|
|
19011
|
-
const r = this.getTagNormal(n);
|
|
19022
|
+
const r = this.getPositions(n);
|
|
19012
19023
|
if (!r)
|
|
19013
19024
|
return;
|
|
19014
|
-
const a = this.
|
|
19015
|
-
if (a
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
|
|
19025
|
+
const a = this.getTagNormal(n);
|
|
19026
|
+
if (!a)
|
|
19027
|
+
return;
|
|
19028
|
+
const c = (s = this.getTagConfig(n).tag3DConfig) != null ? s : {};
|
|
19029
|
+
if (this.getRenderType(n) === "BehindDom") {
|
|
19030
|
+
c.mode = "behind", c.container = document.createElement("div");
|
|
19031
|
+
const d = "black";
|
|
19032
|
+
c.container.style.backgroundColor = d, c.container.style.border = `3px solid ${d}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
19033
|
+
var h;
|
|
19034
|
+
if (u.css3DObject.opacityMesh) {
|
|
19035
|
+
const f = this.addObjectClickHandler(n, u.css3DObject.opacityMesh, (A) => {
|
|
19036
|
+
console.log(n), this.hooks.emit("click", { event: A, target: "TagContent", tag: n });
|
|
19037
|
+
});
|
|
19038
|
+
(h = this.store.css3DRenderDisposer.get(n.id)) == null || h.push(f);
|
|
19039
|
+
}
|
|
19040
|
+
});
|
|
19019
19041
|
}
|
|
19020
|
-
const
|
|
19021
|
-
if (!
|
|
19042
|
+
const u = this.css3DRenderPlugin.create3DDomContainer(r, c);
|
|
19043
|
+
if (!u)
|
|
19022
19044
|
return;
|
|
19023
|
-
this.store.css3DRenderDisposer.set(n.id, [
|
|
19024
|
-
var u;
|
|
19025
|
-
if (c.css3DObject.opacityMesh) {
|
|
19026
|
-
const d = this.addObjectClickHandler(n, c.css3DObject.opacityMesh, (h) => {
|
|
19027
|
-
this.hooks.emit("click", { event: h, target: "TagContent", tag: n });
|
|
19028
|
-
});
|
|
19029
|
-
(u = this.store.css3DRenderDisposer.get(n.id)) == null || u.push(d);
|
|
19030
|
-
}
|
|
19031
|
-
}), n.tag3DContentSvelte = {
|
|
19045
|
+
this.store.css3DRenderDisposer.set(n.id, [u.dispose]), n.tag3DContentSvelte = {
|
|
19032
19046
|
svelteApp: new ql({
|
|
19033
|
-
target:
|
|
19047
|
+
target: u.container,
|
|
19034
19048
|
props: {
|
|
19035
19049
|
tag: n,
|
|
19036
19050
|
hooks: this.hooks,
|
|
@@ -19039,9 +19053,9 @@ class h1 extends fg {
|
|
|
19039
19053
|
temporaryState: this.temporaryState
|
|
19040
19054
|
}
|
|
19041
19055
|
}),
|
|
19042
|
-
domContainer:
|
|
19043
|
-
initialNormal:
|
|
19044
|
-
currentNormal:
|
|
19056
|
+
domContainer: u,
|
|
19057
|
+
initialNormal: a,
|
|
19058
|
+
currentNormal: a
|
|
19045
19059
|
};
|
|
19046
19060
|
}
|
|
19047
19061
|
}), this.clearUnusedPanelTag();
|
|
@@ -19062,16 +19076,16 @@ class h1 extends fg {
|
|
|
19062
19076
|
});
|
|
19063
19077
|
}
|
|
19064
19078
|
updateTagCss3DObjectMatrix(e, n) {
|
|
19065
|
-
var g, p,
|
|
19066
|
-
const o = (
|
|
19079
|
+
var g, p, v, b;
|
|
19080
|
+
const o = (v = (p = (g = e.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : p.ratio) != null ? v : 216e-5, s = (b = e.tag3DContentSvelte) == null ? void 0 : b.domContainer.css3DObject;
|
|
19067
19081
|
if (!s)
|
|
19068
19082
|
return;
|
|
19069
19083
|
const r = Ve(e) ? e.data.mediaPosition : e.position;
|
|
19070
19084
|
n.updateWorldMatrix(!1, !1);
|
|
19071
19085
|
const a = n.matrixWorld, l = new U().fromArray(r[0]), c = new U().fromArray(r[2]), u = Mn(l, c).add(new U(0, 0, 5e-4)), d = new fn().setPosition(u), h = new fn().makeScale(o, o, o), f = new fn().multiply(a).multiply(d).multiply(h);
|
|
19072
19086
|
f.decompose(s.position, s.quaternion, s.scale);
|
|
19073
|
-
const
|
|
19074
|
-
|
|
19087
|
+
const A = s.opacityMesh;
|
|
19088
|
+
A && f.decompose(A.position, A.quaternion, A.scale);
|
|
19075
19089
|
}
|
|
19076
19090
|
addMediaModelTag(e) {
|
|
19077
19091
|
return H(this, null, function* () {
|
|
@@ -19100,7 +19114,7 @@ class h1 extends fg {
|
|
|
19100
19114
|
state: this.state,
|
|
19101
19115
|
temporaryState: this.temporaryState,
|
|
19102
19116
|
withAnimation: this.store.visibleWithAnimation
|
|
19103
|
-
}), this.
|
|
19117
|
+
}), this.filterCSS3DTag.forEach((n) => {
|
|
19104
19118
|
var o, s, r, a, l;
|
|
19105
19119
|
(a = (s = (o = n.tag3DContentSvelte) == null ? void 0 : o.domContainer) == null ? void 0 : s.css3DObject) == null || a.setVisible((this.state.visible && ((r = n.state) == null ? void 0 : r.visible)) !== !1), (l = n.tag3DContentSvelte) == null || l.svelteApp.$set({
|
|
19106
19120
|
state: this.state,
|
|
@@ -19239,7 +19253,7 @@ class f1 extends h1 {
|
|
|
19239
19253
|
}
|
|
19240
19254
|
dispose() {
|
|
19241
19255
|
var e, n, o, s, r, a;
|
|
19242
|
-
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.
|
|
19256
|
+
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((l) => {
|
|
19243
19257
|
var c;
|
|
19244
19258
|
return (c = l.tag3DContentSvelte) == null ? void 0 : c.svelteApp.$destroy();
|
|
19245
19259
|
}), this.tags = [], (n = this.store.disposers) == null || n.forEach((l) => l == null ? void 0 : l()), this.store.disposers = [], (s = (o = this.store).eventListenerDisposer) == null || s.call(o), this.store.eventListenerDisposer = void 0, (a = (r = this.store).resizeObserverDisposer) == null || a.call(r), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
@@ -19303,7 +19317,7 @@ class f1 extends h1 {
|
|
|
19303
19317
|
}
|
|
19304
19318
|
handleDisable() {
|
|
19305
19319
|
var e, n, o;
|
|
19306
|
-
this.pauseCurrentMedia(), this.state.enabled = !1, (n = (e = this.store).eventListenerDisposer) == null || n.call(e), this.five.scene.remove(this.group), (o = this.TagContainerSvelte) == null || o.$set({ tags: [] }), this.
|
|
19320
|
+
this.pauseCurrentMedia(), this.state.enabled = !1, (n = (e = this.store).eventListenerDisposer) == null || n.call(e), this.five.scene.remove(this.group), (o = this.TagContainerSvelte) == null || o.$set({ tags: [] }), this.filterCSS3DTag.forEach((s) => {
|
|
19307
19321
|
var r;
|
|
19308
19322
|
(r = s.tag3DContentSvelte) == null || r.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
|
|
19309
19323
|
}), this.five.needsRender = !0;
|
|
@@ -20473,17 +20487,17 @@ class F1 extends jn {
|
|
|
20473
20487
|
const u = this.rotateCenter.clone(), h = o.projectPoint(c.clone(), new C.Vector3()).clone().sub(u);
|
|
20474
20488
|
if (n.angleTo(h) === 0)
|
|
20475
20489
|
return;
|
|
20476
|
-
const f = new C.Quaternion().setFromUnitVectors(n.clone().normalize(), h.clone().normalize()),
|
|
20477
|
-
if (this.hooks.emit("wantToRotate",
|
|
20490
|
+
const f = new C.Quaternion().setFromUnitVectors(n.clone().normalize(), h.clone().normalize()), A = l.quaternion.clone().premultiply(f);
|
|
20491
|
+
if (this.hooks.emit("wantToRotate", A))
|
|
20478
20492
|
return;
|
|
20479
|
-
const
|
|
20493
|
+
const v = new C.Euler().setFromQuaternion(
|
|
20480
20494
|
new C.Quaternion().setFromUnitVectors(
|
|
20481
20495
|
n.clone().normalize().applyQuaternion(a.clone().inverse()),
|
|
20482
20496
|
h.clone().normalize().applyQuaternion(a.clone().inverse())
|
|
20483
20497
|
),
|
|
20484
20498
|
`${r.toUpperCase()}${"XZY".replace(r.toUpperCase(), "")}`
|
|
20485
20499
|
)[r] * s.angleDirection;
|
|
20486
|
-
if (this.startInfo.angle +=
|
|
20500
|
+
if (this.startInfo.angle += v, this.setAngleHelperLength(r, this.startInfo.angle), this.setTipsAngle(il(this.startInfo.angle)), u) {
|
|
20487
20501
|
const b = new C.Vector3().subVectors(l.position, u).applyQuaternion(f).add(u);
|
|
20488
20502
|
l.position.copy(b);
|
|
20489
20503
|
}
|
|
@@ -20611,13 +20625,13 @@ class H1 extends jn {
|
|
|
20611
20625
|
}
|
|
20612
20626
|
const G = new U().subVectors(W, R), ee = G.length();
|
|
20613
20627
|
return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), F) : G;
|
|
20614
|
-
},
|
|
20615
|
-
const O =
|
|
20628
|
+
}, A = f("ew"), g = f("ns"), p = () => {
|
|
20629
|
+
const O = A;
|
|
20616
20630
|
this.helperObject3D.cornerPositions.forEach((F, B) => {
|
|
20617
20631
|
var R;
|
|
20618
20632
|
(R = this.startInfo) != null && R.dragPointInCenterLeft ? (B === 0 || B === 3) && F.add(O) : (B === 1 || B === 2) && F.add(O);
|
|
20619
20633
|
});
|
|
20620
|
-
},
|
|
20634
|
+
}, v = () => {
|
|
20621
20635
|
const O = g;
|
|
20622
20636
|
this.helperObject3D.cornerPositions.forEach((F, B) => {
|
|
20623
20637
|
var R;
|
|
@@ -20629,11 +20643,11 @@ class H1 extends jn {
|
|
|
20629
20643
|
p();
|
|
20630
20644
|
break;
|
|
20631
20645
|
case "ns":
|
|
20632
|
-
|
|
20646
|
+
v();
|
|
20633
20647
|
break;
|
|
20634
20648
|
case "nesw":
|
|
20635
20649
|
case "nwse":
|
|
20636
|
-
p(),
|
|
20650
|
+
p(), v();
|
|
20637
20651
|
}
|
|
20638
20652
|
const b = new U().subVectors(r[1], r[0]).length() / d.length(), w = new U().subVectors(r[3], r[0]).length() / h.length(), E = new U(b, w, 1), L = new C.Matrix4().scale(E);
|
|
20639
20653
|
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(L) : n.scale.applyMatrix4(L), o.position.copy(a);
|
|
@@ -20731,32 +20745,32 @@ class U1 extends zn {
|
|
|
20731
20745
|
}
|
|
20732
20746
|
const o = new R1(), s = [], r = (f = this.five.getElement()) == null ? void 0 : f.parentElement, a = this.five.camera, { moveHelper: l = !0, rotateHelper: c = !0, scaleHelper: u = !0, boundingBoxHelper: d = !1 } = n, h = new Ye();
|
|
20733
20747
|
if (l) {
|
|
20734
|
-
const
|
|
20748
|
+
const A = new C1(e), g = this.getConfig(n.moveHelper), p = new hn(this.five, z1, e, A, g, h);
|
|
20735
20749
|
o.addControllers({ moveController: p.helperController }), s.push(() => p.dispose());
|
|
20736
20750
|
}
|
|
20737
20751
|
if (c) {
|
|
20738
|
-
const
|
|
20752
|
+
const A = this.getConfig(n.rotateHelper), g = new k1(e, Q({ container: r }, A)), p = new hn(this.five, F1, e, g, A, h);
|
|
20739
20753
|
o.addControllers({ rotateController: p.helperController }), s.push(() => p.dispose());
|
|
20740
20754
|
}
|
|
20741
20755
|
if (d) {
|
|
20742
|
-
const
|
|
20756
|
+
const A = new T1(e), g = new hn(this.five, W1, e, A, void 0, h);
|
|
20743
20757
|
o.addControllers({ boundingBoxController: g.helperController });
|
|
20744
20758
|
}
|
|
20745
20759
|
if (u)
|
|
20746
20760
|
if (e.isCSS3DObjectPlus && r) {
|
|
20747
|
-
const
|
|
20761
|
+
const A = new M1(e, r, a, this.five.scene), g = new hn(this.five, G1, e, A, void 0, h);
|
|
20748
20762
|
o.addControllers({ scaleController: g.helperController }), s.push(() => g.dispose()), Sa(this.five).then(() => {
|
|
20749
|
-
var p,
|
|
20763
|
+
var p, v;
|
|
20750
20764
|
if (e.isCSS3DObjectPlus) {
|
|
20751
20765
|
const b = e;
|
|
20752
20766
|
if (!b || b.mode !== "front")
|
|
20753
20767
|
return;
|
|
20754
20768
|
const w = (p = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? p : Ma(this.five);
|
|
20755
|
-
w && (this.css3DObjectParentMap.set(b, b.parent), b.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(w), (
|
|
20769
|
+
w && (this.css3DObjectParentMap.set(b, b.parent), b.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(w), (v = this.css3DRender.getBehindCSS3DObjectGroup()) == null || v.add(b), this.css3DRender.render(this.five.camera));
|
|
20756
20770
|
}
|
|
20757
20771
|
});
|
|
20758
20772
|
} else {
|
|
20759
|
-
const
|
|
20773
|
+
const A = new _1(e), g = new hn(this.five, m1, e, A, void 0, h);
|
|
20760
20774
|
o.addControllers({ scaleController: g.helperController }), s.push(() => g.dispose());
|
|
20761
20775
|
}
|
|
20762
20776
|
return this.objectHelperMap.set(e, { helper: o, disposers: s }), o.controllers;
|