@realsee/dnalogel 2.15.0-alpha.2 → 2.15.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/index.cjs.js +20 -20
- package/dist/index.js +594 -593
- package/dist/index.umd.js +20 -20
- 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/MediaItem.js +67 -67
- package/libs/base/BasePlugin.js +3 -3
- package/libs/index.js +80 -79
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -355,8 +355,8 @@ class Hc extends Rc {
|
|
|
355
355
|
n.strokeStyle = o;
|
|
356
356
|
let s = null, r = [], a, l = [], c = 0;
|
|
357
357
|
const u = (h, d, m) => {
|
|
358
|
-
const
|
|
359
|
-
n.strokeStyle =
|
|
358
|
+
const g = this.color || "#ff0000";
|
|
359
|
+
n.strokeStyle = g, n.beginPath(), n.moveTo(h.x, h.y), n.quadraticCurveTo(d.x, d.y, m.x, m.y), n.stroke();
|
|
360
360
|
};
|
|
361
361
|
e.onmousedown = (h) => {
|
|
362
362
|
h.preventDefault(), c = Date.now();
|
|
@@ -368,8 +368,8 @@ class Hc extends Rc {
|
|
|
368
368
|
const d = Number(h.clientX), m = Number(h.clientY);
|
|
369
369
|
if (Math.abs(d - s.x) < 5 && Math.abs(m - s.y) < 5 || (r.push({ x: d, y: m }), l.push(Qn({ x: d, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
370
370
|
return;
|
|
371
|
-
const { control:
|
|
372
|
-
!
|
|
371
|
+
const { control: g, end: p } = Rn(r);
|
|
372
|
+
!g || !p || (u(s, g, p), s = p);
|
|
373
373
|
}, e.onmouseup = (h) => {
|
|
374
374
|
if (h.preventDefault(), s = null, r.length < 3)
|
|
375
375
|
return;
|
|
@@ -400,8 +400,8 @@ class Hc extends Rc {
|
|
|
400
400
|
const d = Number(h.touches[0].clientX), m = Number(h.touches[0].clientY);
|
|
401
401
|
if (Math.abs(d - s.x) < 5 && Math.abs(m - s.y) < 5 || (r.push({ x: d, y: m }), l.push(Qn({ x: d, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
402
402
|
return;
|
|
403
|
-
const { control:
|
|
404
|
-
!
|
|
403
|
+
const { control: g, end: p } = Rn(r);
|
|
404
|
+
!g || !p || (u(s, g, p), s = p);
|
|
405
405
|
}, e.ontouchend = e.ontouchcancel = (h) => {
|
|
406
406
|
if (h.preventDefault(), s = null, r.length < 3)
|
|
407
407
|
return;
|
|
@@ -487,15 +487,15 @@ class Hc extends Rc {
|
|
|
487
487
|
const { line: l = [], color: c = "black", duration: u = 0, uuid: h } = n, d = Si(n.move || {}, this.clientWidth, this.clientHeight);
|
|
488
488
|
let m = [d];
|
|
489
489
|
if (a.strokeStyle = c, a.beginPath(), a.moveTo(d.x, d.y), u && !o) {
|
|
490
|
-
let
|
|
490
|
+
let g = [];
|
|
491
491
|
const p = this;
|
|
492
492
|
p.tween = Oc({ step: 0 }, { step: l.length - 1 }, u).onUpdate(({ step: v }) => {
|
|
493
493
|
var b;
|
|
494
494
|
if (p.tweening = !0, !p.ready)
|
|
495
495
|
return a.clearRect(0, 0, p.canvas[h].width, p.canvas[h].height), (b = p.tween) == null ? void 0 : b.stop();
|
|
496
|
-
const
|
|
497
|
-
if (!
|
|
498
|
-
if (
|
|
496
|
+
const A = Math.floor(v);
|
|
497
|
+
if (!g.find((w) => w === A)) {
|
|
498
|
+
if (g.push(A), m.push(Si(l[A], p.clientWidth, p.clientHeight)), m.length < 3)
|
|
499
499
|
return;
|
|
500
500
|
const { control: w, end: k } = Rn(m);
|
|
501
501
|
if (!w || !k)
|
|
@@ -503,11 +503,11 @@ class Hc extends Rc {
|
|
|
503
503
|
a.quadraticCurveTo(w.x, w.y, k.x, k.y), a.stroke();
|
|
504
504
|
}
|
|
505
505
|
}).onComplete((v) => {
|
|
506
|
-
p.tween = void 0, p.tweening = !1,
|
|
506
|
+
p.tween = void 0, p.tweening = !1, g = [], m = [], s && s(), r();
|
|
507
507
|
});
|
|
508
508
|
} else {
|
|
509
|
-
for (let
|
|
510
|
-
if (m.push(Si(l[
|
|
509
|
+
for (let g = 0; g < l.length; g++) {
|
|
510
|
+
if (m.push(Si(l[g], this.clientWidth, this.clientHeight)), m.length < 3)
|
|
511
511
|
continue;
|
|
512
512
|
const { control: p, end: v } = Rn(m);
|
|
513
513
|
!p || !v || a.quadraticCurveTo(p.x, p.y, v.x, v.y);
|
|
@@ -616,7 +616,7 @@ const gb = (i, t) => {
|
|
|
616
616
|
return X.children.forEach((ee) => W.add(G(ee))), W;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
},
|
|
619
|
+
}, g = () => {
|
|
620
620
|
if (!!i.renderer)
|
|
621
621
|
return s || (s = new E.WebGLRenderer({ antialias: !1, alpha: !0 }), s.setPixelRatio(i.renderer.getPixelRatio()), s.outputEncoding = E.sRGBEncoding, s.setClearColor(1579548, 0), s.autoClear = !0), s;
|
|
622
622
|
}, p = () => {
|
|
@@ -625,12 +625,12 @@ const gb = (i, t) => {
|
|
|
625
625
|
}), l.remove(u), u = new E.Object3D(), l.add(u), n = !1, L();
|
|
626
626
|
}, v = () => {
|
|
627
627
|
!e || n || m();
|
|
628
|
-
},
|
|
628
|
+
}, A = () => {
|
|
629
629
|
e || (e = !0, l.add(u), !n && i.model.loaded && m(), L());
|
|
630
630
|
}, b = () => {
|
|
631
631
|
!e || (l.remove(u), o = !0, x(), e = !1);
|
|
632
632
|
}, w = (R, G = {}) => {
|
|
633
|
-
const X =
|
|
633
|
+
const X = g();
|
|
634
634
|
if (!X)
|
|
635
635
|
return;
|
|
636
636
|
R.appendChild(X.domElement), k(G);
|
|
@@ -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", v), i.on("modelWillLoad", p), i.on("cameraDirectionUpdate", L), i.on("dispose", F), i.on("renderFrame", x), i.on("cameraPositionUpdate", L), { appendTo: w, refresh: k, changeConfigs: _, enable:
|
|
674
|
+
return Object.assign(window, { camera: c }), i.on("modelLoaded", v), i.on("modelWillLoad", p), i.on("cameraDirectionUpdate", L), i.on("dispose", F), i.on("renderFrame", x), i.on("cameraPositionUpdate", L), { appendTo: w, refresh: k, changeConfigs: _, enable: A, disable: b, getCurrentState: O };
|
|
675
675
|
};
|
|
676
676
|
function gt(...i) {
|
|
677
677
|
const t = [];
|
|
@@ -808,16 +808,16 @@ class Jc extends Zi {
|
|
|
808
808
|
constructor(e) {
|
|
809
809
|
var I, C, L;
|
|
810
810
|
const n = e.container, o = e.cornerPoints, s = (I = e.ratio) != null ? I : qc, r = (C = e.dpr) != null ? C : 1, a = (L = e.pointerEvents) != null ? L : "auto", l = Math.max(Uc, s), c = o[0].distanceTo(o[1]), u = o[1].distanceTo(o[2]), h = si(c / s * r), d = si(u / s * r), m = Mn(...o);
|
|
811
|
-
let
|
|
811
|
+
let g;
|
|
812
812
|
if (l === s)
|
|
813
|
-
n.style.width = `${h}px`, n.style.height = `${d}px`,
|
|
813
|
+
n.style.width = `${h}px`, n.style.height = `${d}px`, g = n;
|
|
814
814
|
else {
|
|
815
815
|
const x = document.createElement("div");
|
|
816
816
|
x.style.width = `${h}px`, x.style.height = `${d}px`, x.style.pointerEvents = "none";
|
|
817
817
|
const F = s / l;
|
|
818
|
-
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * h}px`, n.style.height = `${F * d}px`, x.appendChild(n),
|
|
818
|
+
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * h}px`, n.style.height = `${F * d}px`, x.appendChild(n), g = x;
|
|
819
819
|
}
|
|
820
|
-
super(
|
|
820
|
+
super(g);
|
|
821
821
|
f(this, "version", Da);
|
|
822
822
|
f(this, "isCSS3DObjectPlus", !0);
|
|
823
823
|
f(this, "container");
|
|
@@ -857,8 +857,8 @@ class Jc extends Zi {
|
|
|
857
857
|
this.width = x * c, this.height = x * u, this.domWidthPx = x * h, this.domHeightPx = x * d, this.centerPosition = new q().subVectors(m, o[0]).multiplyScalar(x).add(o[0]);
|
|
858
858
|
}
|
|
859
859
|
n.classList.add(`${Yc}__container`);
|
|
860
|
-
const p = new q().subVectors(o[1], o[0]), v = new q().subVectors(o[3], o[0]),
|
|
861
|
-
this.lookAt(
|
|
860
|
+
const p = new q().subVectors(o[1], o[0]), v = new q().subVectors(o[3], o[0]), A = new q().crossVectors(p, v).normalize();
|
|
861
|
+
this.lookAt(A);
|
|
862
862
|
const b = this.up.clone().applyQuaternion(this.quaternion), w = v.clone(), k = new q().crossVectors(b, w).normalize();
|
|
863
863
|
this.rotateOnWorldAxis(k, b.angleTo(w)), this.position.copy(m), this.addEventListener("added", () => {
|
|
864
864
|
var x;
|
|
@@ -1030,14 +1030,14 @@ class In {
|
|
|
1030
1030
|
let d = !1;
|
|
1031
1031
|
const m = this.createObject(s, { ratio: r, dpr: a, container: u, mode: l, pointerEvents: h });
|
|
1032
1032
|
Le.css3DObjects.push(m), o.scene && this.setScene(o.scene);
|
|
1033
|
-
const
|
|
1033
|
+
const g = () => {
|
|
1034
1034
|
if (d)
|
|
1035
1035
|
return;
|
|
1036
1036
|
const k = m.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
|
|
1037
1037
|
!k || k.add(m);
|
|
1038
1038
|
}, p = () => {
|
|
1039
|
-
d || (
|
|
1040
|
-
}, v = (k) => this.setVisibleById(m.id, k),
|
|
1039
|
+
d || (g(), this.render(t), this.hooks.emit("render"));
|
|
1040
|
+
}, v = (k) => this.setVisibleById(m.id, k), A = (k) => this.setEnabledById(m.id, k), b = () => (d = !0, m.removeFromParent(), !0), w = l === "front" ? Le.frontModeStore.css3DRenderer : Le.behindModeStore.css3DRenderer;
|
|
1041
1041
|
return c && p(), {
|
|
1042
1042
|
id: m.uuid,
|
|
1043
1043
|
container: u,
|
|
@@ -1046,9 +1046,9 @@ class In {
|
|
|
1046
1046
|
show: () => v(!0),
|
|
1047
1047
|
hide: () => v(!1),
|
|
1048
1048
|
setVisible: v,
|
|
1049
|
-
enable: () =>
|
|
1050
|
-
disable: () =>
|
|
1051
|
-
setEnabled:
|
|
1049
|
+
enable: () => A(!0),
|
|
1050
|
+
disable: () => A(!1),
|
|
1051
|
+
setEnabled: A,
|
|
1052
1052
|
dispose: b,
|
|
1053
1053
|
appendToElement: (k) => w.setWrapper(k)
|
|
1054
1054
|
};
|
|
@@ -1340,16 +1340,16 @@ const Ab = (i) => {
|
|
|
1340
1340
|
new q(0, 0, 1)
|
|
1341
1341
|
)
|
|
1342
1342
|
), i.scene.add(v), i.needsRender = !0;
|
|
1343
|
-
const
|
|
1343
|
+
const A = () => {
|
|
1344
1344
|
i.scene.remove(v);
|
|
1345
1345
|
};
|
|
1346
|
-
return t.disposers.push(
|
|
1346
|
+
return t.disposers.push(A), { clear: A, pointAxesHelperMesh: v };
|
|
1347
1347
|
}, s = (u, h = 0) => {
|
|
1348
|
-
var
|
|
1349
|
-
const d = (
|
|
1348
|
+
var A, b;
|
|
1349
|
+
const d = (A = i == null ? void 0 : i.camera) == null ? void 0 : A.position;
|
|
1350
1350
|
if (!d)
|
|
1351
1351
|
return !1;
|
|
1352
|
-
const m = u.distanceTo(d),
|
|
1352
|
+
const m = u.distanceTo(d), g = u.sub(d).normalize(), p = new Mt(d, g), v = (b = i.model.intersectRaycaster(p)) == null ? void 0 : b[0];
|
|
1353
1353
|
return !(v && v.distance + h < m);
|
|
1354
1354
|
}, r = () => t.intersection, a = () => {
|
|
1355
1355
|
var u, h;
|
|
@@ -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 v = 0; v <= 1; v += l) {
|
|
1602
|
-
const
|
|
1603
|
-
c += v * 100 + `%{${r(
|
|
1602
|
+
const A = t + (e - t) * s(v);
|
|
1603
|
+
c += v * 100 + `%{${r(A, 1 - A)}}
|
|
1604
1604
|
`;
|
|
1605
1605
|
}
|
|
1606
1606
|
const u = c + `100% {${r(e, 1 - e)}}
|
|
1607
|
-
}`, h = `__svelte_${uu(u)}_${a}`, d = go(i), { stylesheet: m, rules:
|
|
1608
|
-
|
|
1607
|
+
}`, h = `__svelte_${uu(u)}_${a}`, d = go(i), { stylesheet: m, rules: g } = ai.get(d) || du(d, i);
|
|
1608
|
+
g[h] || (g[h] = !0, m.insertRule(`@keyframes ${h} ${u}`, m.cssRules.length));
|
|
1609
1609
|
const p = i.style.animation || "";
|
|
1610
1610
|
return i.style.animation = `${p ? `${p}, ` : ""}${h} ${n}ms linear ${o}ms 1 both`, li += 1, h;
|
|
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: h = 0, duration: d = 300, easing: m = At, tick:
|
|
1754
|
-
p && (s = Ga(i, 0, 1, d, h, m, p, a++)),
|
|
1755
|
-
const v = Va() + h,
|
|
1753
|
+
const { delay: h = 0, duration: d = 300, easing: m = At, tick: g = N, css: p } = n || qa;
|
|
1754
|
+
p && (s = Ga(i, 0, 1, d, h, m, p, a++)), g(0, 1);
|
|
1755
|
+
const v = Va() + h, A = v + d;
|
|
1756
1756
|
r && r.abort(), o = !0, Re(() => ci(i, !0, "start")), r = Qa((b) => {
|
|
1757
1757
|
if (o) {
|
|
1758
|
-
if (b >=
|
|
1759
|
-
return
|
|
1758
|
+
if (b >= A)
|
|
1759
|
+
return g(1, 0), ci(i, !0, "end"), l(), o = !1;
|
|
1760
1760
|
if (b >= v) {
|
|
1761
1761
|
const w = m((b - v) / d);
|
|
1762
|
-
|
|
1762
|
+
g(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: h = N, css: d } = n || qa;
|
|
1787
1787
|
d && (s = Ga(i, 1, 0, c, l, u, d));
|
|
1788
|
-
const m = Va() + l,
|
|
1788
|
+
const m = Va() + l, g = m + c;
|
|
1789
1789
|
Re(() => ci(i, !1, "start")), Qa((p) => {
|
|
1790
1790
|
if (o) {
|
|
1791
|
-
if (p >=
|
|
1791
|
+
if (p >= g)
|
|
1792
1792
|
return h(0, 1), ci(i, !1, "end"), --r.r || Ge(r.c), !1;
|
|
1793
1793
|
if (p >= m) {
|
|
1794
1794
|
const v = u((p - m) / c);
|
|
@@ -1851,15 +1851,15 @@ function It(i, t) {
|
|
|
1851
1851
|
});
|
|
1852
1852
|
}
|
|
1853
1853
|
function $e(i, t, e, n, o, s, r, a, l, c, u, h) {
|
|
1854
|
-
let d = i.length, m = s.length,
|
|
1854
|
+
let d = i.length, m = s.length, g = d;
|
|
1855
1855
|
const p = {};
|
|
1856
|
-
for (;
|
|
1857
|
-
p[i[
|
|
1858
|
-
const v = [],
|
|
1859
|
-
for (
|
|
1860
|
-
const C = h(o, s,
|
|
1856
|
+
for (; g--; )
|
|
1857
|
+
p[i[g].key] = g;
|
|
1858
|
+
const v = [], A = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
1859
|
+
for (g = m; g--; ) {
|
|
1860
|
+
const C = h(o, s, g), L = e(C);
|
|
1861
1861
|
let x = r.get(L);
|
|
1862
|
-
x ? n && x.p(C, t) : (x = c(L, C), x.c()),
|
|
1862
|
+
x ? n && x.p(C, t) : (x = c(L, C), x.c()), A.set(L, v[g] = x), L in p && b.set(L, Math.abs(g - p[L]));
|
|
1863
1863
|
}
|
|
1864
1864
|
const w = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Set();
|
|
1865
1865
|
function I(C) {
|
|
@@ -1867,11 +1867,11 @@ function $e(i, t, e, n, o, s, r, a, l, c, u, h) {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
for (; d && m; ) {
|
|
1869
1869
|
const C = v[m - 1], L = i[d - 1], x = C.key, F = L.key;
|
|
1870
|
-
C === L ? (u = C.first, d--, m--) :
|
|
1870
|
+
C === L ? (u = C.first, d--, m--) : A.has(F) ? !r.has(x) || w.has(x) ? I(C) : k.has(F) ? d-- : b.get(x) > b.get(F) ? (k.add(x), I(C)) : (w.add(F), d--) : (l(L, r), d--);
|
|
1871
1871
|
}
|
|
1872
1872
|
for (; d--; ) {
|
|
1873
1873
|
const C = i[d];
|
|
1874
|
-
|
|
1874
|
+
A.has(C.key) || l(C, r);
|
|
1875
1875
|
}
|
|
1876
1876
|
for (; m; )
|
|
1877
1877
|
I(v[m - 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 || {}, (h, d, ...m) => {
|
|
1947
|
-
const
|
|
1948
|
-
return c.ctx && o(c.ctx[h], c.ctx[h] =
|
|
1947
|
+
const g = m.length ? m[0] : d;
|
|
1948
|
+
return c.ctx && o(c.ctx[h], c.ctx[h] = g) && (!c.skip_bound && c.bound[h] && c.bound[h](g), u && pu(i, h)), d;
|
|
1949
1949
|
}) : [], c.update(), u = !0, Ge(c.before_update), c.fragment = n ? n(c.ctx) : !1, t.target) {
|
|
1950
1950
|
if (t.hydrate) {
|
|
1951
1951
|
const h = lu(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: h, contentRect: d } = u, m = (r = (s = (o = h == null ? void 0 : h[0]) == null ? void 0 : o.inlineSize) != null ? s : d.width) != null ? r : i.clientWidth,
|
|
2288
|
-
i.dispatchEvent(new CustomEvent("clientWidth", { detail: m })), i.dispatchEvent(new CustomEvent("clientHeight", { detail:
|
|
2287
|
+
const { borderBoxSize: h, contentRect: d } = u, m = (r = (s = (o = h == null ? void 0 : h[0]) == null ? void 0 : o.inlineSize) != null ? s : d.width) != null ? r : i.clientWidth, g = (c = (l = (a = h == null ? void 0 : h[0]) == null ? void 0 : a.blockSize) != null ? l : d.height) != null ? c : i.clientHeight;
|
|
2288
|
+
i.dispatchEvent(new CustomEvent("clientWidth", { detail: m })), i.dispatchEvent(new CustomEvent("clientHeight", { detail: g }));
|
|
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 v;
|
|
2381
2381
|
let n, { five: o } = t, { roomLabels: s } = t, r, a, l = (v = o.model.shownFloor) != null ? v : null;
|
|
2382
|
-
function c(
|
|
2383
|
-
if (!(l === null ||
|
|
2382
|
+
function c(A) {
|
|
2383
|
+
if (!(l === null || A.floorIndex === l))
|
|
2384
2384
|
return !1;
|
|
2385
|
-
const w = new Mt(), k = o.camera.position.clone(), I = new q(
|
|
2385
|
+
const w = new Mt(), k = o.camera.position.clone(), I = new q(A.position.x, A.position.y, A.position.z), C = I.distanceTo(k);
|
|
2386
2386
|
w.set(k.clone(), I.clone().sub(k).normalize());
|
|
2387
2387
|
const [L] = o.model.intersectRaycaster(w);
|
|
2388
2388
|
return !(L && L.distance + 1 < C);
|
|
2389
2389
|
}
|
|
2390
|
-
function u(
|
|
2391
|
-
const k = new q(
|
|
2390
|
+
function u(A, b) {
|
|
2391
|
+
const k = new q(A.position.x, A.position.y, A.position.z).clone().project(o.camera), I = Math.ceil((k.x + 1) / 2 * b.x), C = Math.ceil((-k.y + 1) / 2 * b.y);
|
|
2392
2392
|
return `translate(${I}px, ${C}px)`;
|
|
2393
2393
|
}
|
|
2394
|
-
function h(
|
|
2395
|
-
const { rendererSize: b, shownFloor: w } =
|
|
2394
|
+
function h(A) {
|
|
2395
|
+
const { rendererSize: b, shownFloor: w } = A, k = /* @__PURE__ */ new Map();
|
|
2396
2396
|
function I(L) {
|
|
2397
2397
|
const x = k.get(L.id);
|
|
2398
2398
|
if (x)
|
|
@@ -2408,21 +2408,21 @@ function Gu(i, t, e) {
|
|
|
2408
2408
|
function d() {
|
|
2409
2409
|
e(0, s = h({ rendererSize: n, shownFloor: l }));
|
|
2410
2410
|
}
|
|
2411
|
-
function m(
|
|
2412
|
-
e(4, l =
|
|
2411
|
+
function m(A) {
|
|
2412
|
+
e(4, l = A);
|
|
2413
2413
|
}
|
|
2414
2414
|
o.on("cameraUpdate", d), o.on("modelShownFloorChange", m), _a(() => {
|
|
2415
2415
|
e(0, s = h({ rendererSize: n, shownFloor: l }));
|
|
2416
2416
|
}), Pt(() => {
|
|
2417
2417
|
o.off("cameraUpdate", d), o.off("modelShownFloorChange", m);
|
|
2418
2418
|
});
|
|
2419
|
-
const
|
|
2420
|
-
e(2, r =
|
|
2421
|
-
}, p = (
|
|
2422
|
-
e(3, a =
|
|
2419
|
+
const g = (A) => {
|
|
2420
|
+
e(2, r = A.detail);
|
|
2421
|
+
}, p = (A) => {
|
|
2422
|
+
e(3, a = A.detail);
|
|
2423
2423
|
};
|
|
2424
|
-
return i.$$set = (
|
|
2425
|
-
"five" in
|
|
2424
|
+
return i.$$set = (A) => {
|
|
2425
|
+
"five" in A && e(1, o = A.five), "roomLabels" in A && e(0, s = A.roomLabels);
|
|
2426
2426
|
}, i.$$.update = () => {
|
|
2427
2427
|
i.$$.dirty & 12 && e(5, n = { x: r, y: a }), i.$$.dirty & 48 && e(0, s = h({ 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
|
+
g,
|
|
2436
2436
|
p
|
|
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, h = c * 100 + "%", d = u * 100 + "%", m = -sl(s) + 45,
|
|
2644
|
+
const { observers: a } = o, l = a[n], c = l.positionInImage.x, u = l.positionInImage.y, h = c * 100 + "%", d = u * 100 + "%", m = -sl(s) + 45, g = document.body.clientWidth, p = document.body.clientHeight, A = `${(g < 500 || p < 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
|
h,
|
|
2650
2650
|
d,
|
|
2651
2651
|
m,
|
|
2652
|
-
|
|
2652
|
+
A,
|
|
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: h } = t, { hoveredRoom: d } = t, { getRoomAreaText: m } = t, { getLabelElement:
|
|
3043
|
+
let n, o, s, r, a, { pxmm: l } = t, { roomAreaEnable: c } = t, { roomNameEnable: u } = t, { room: h } = t, { hoveredRoom: d } = t, { getRoomAreaText: m } = t, { getLabelElement: g } = t, { adaptiveRoomLabelVisibleEnable: p } = t;
|
|
3044
3044
|
function v(V, z) {
|
|
3045
3045
|
if (z.width === 0 || z.height === 0)
|
|
3046
3046
|
return () => !1;
|
|
@@ -3055,7 +3055,7 @@ function kd(i, t, e) {
|
|
|
3055
3055
|
].every((Ae) => Id(Ae, Me));
|
|
3056
3056
|
};
|
|
3057
3057
|
}
|
|
3058
|
-
const
|
|
3058
|
+
const A = document.body.clientWidth, b = document.body.clientHeight, w = h.roomLabel, k = w.positionInImage.x * 100 + "%", I = w.positionInImage.y * 100 + "%", C = (A < 500 || b < 500 ? 10 : 14) + "px";
|
|
3059
3059
|
let L = 0, x = 0, F = !1;
|
|
3060
3060
|
d.subscribe(function(z) {
|
|
3061
3061
|
e(16, F = !!z && z.id === h.id);
|
|
@@ -3066,14 +3066,14 @@ function kd(i, t, e) {
|
|
|
3066
3066
|
e(5, x = V.detail);
|
|
3067
3067
|
};
|
|
3068
3068
|
return i.$$set = (V) => {
|
|
3069
|
-
"pxmm" in V && e(12, l = V.pxmm), "roomAreaEnable" in V && e(0, c = V.roomAreaEnable), "roomNameEnable" in V && e(1, u = V.roomNameEnable), "room" in V && e(2, h = V.room), "hoveredRoom" in V && e(13, d = V.hoveredRoom), "getRoomAreaText" in V && e(14, m = V.getRoomAreaText), "getLabelElement" in V && e(3,
|
|
3069
|
+
"pxmm" in V && e(12, l = V.pxmm), "roomAreaEnable" in V && e(0, c = V.roomAreaEnable), "roomNameEnable" in V && e(1, u = V.roomNameEnable), "room" in V && e(2, h = V.room), "hoveredRoom" in V && e(13, d = V.hoveredRoom), "getRoomAreaText" in V && e(14, m = V.getRoomAreaText), "getLabelElement" in V && e(3, g = V.getLabelElement), "adaptiveRoomLabelVisibleEnable" in V && e(15, p = V.adaptiveRoomLabelVisibleEnable);
|
|
3070
3070
|
}, i.$$.update = () => {
|
|
3071
|
-
i.$$.dirty & 12 && e(8, n =
|
|
3071
|
+
i.$$.dirty & 12 && e(8, n = g == null ? void 0 : g(h)), i.$$.dirty & 16388 && e(7, o = h.size ? m(h.size) : ""), i.$$.dirty & 48 && e(18, s = { width: L, height: x }), i.$$.dirty & 262148 && e(17, r = s ? v(h, s) : void 0), i.$$.dirty & 233472 && e(6, a = p ? F ? !0 : !!(r != null && r(l)) : !0);
|
|
3072
3072
|
}, [
|
|
3073
3073
|
c,
|
|
3074
3074
|
u,
|
|
3075
3075
|
h,
|
|
3076
|
-
|
|
3076
|
+
g,
|
|
3077
3077
|
L,
|
|
3078
3078
|
x,
|
|
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: h } = t, d = 0, m = 0;
|
|
3251
|
-
const
|
|
3251
|
+
const g = (p) => {
|
|
3252
3252
|
e(6, d = p.detail);
|
|
3253
3253
|
};
|
|
3254
3254
|
return i.$$set = (p) => {
|
|
3255
3255
|
"floorIndex" in p && e(9, o = p.floorIndex), "roomAreaEnable" in p && e(0, s = p.roomAreaEnable), "roomNameEnable" in p && e(1, r = p.roomNameEnable), "floorplanData" in p && e(10, a = p.floorplanData), "hoveredRoom" in p && e(2, l = p.hoveredRoom), "getRoomAreaText" in p && e(3, c = p.getRoomAreaText), "getLabelElement" in p && e(4, u = p.getLabelElement), "adaptiveRoomLabelVisibleEnable" in p && e(5, h = p.adaptiveRoomLabelVisibleEnable);
|
|
3256
3256
|
}, i.$$.update = () => {
|
|
3257
3257
|
if (i.$$.dirty & 1536 && e(8, n = a.floorDatas[o].rooms), i.$$.dirty & 1088) {
|
|
3258
|
-
const { max: p, min: v } = a.bounding,
|
|
3259
|
-
e(7, m = d /
|
|
3258
|
+
const { max: p, min: v } = a.bounding, A = p.x - v.x;
|
|
3259
|
+
e(7, m = d / A);
|
|
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
|
+
g
|
|
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], h = [];
|
|
3345
|
-
for (let
|
|
3346
|
-
h[
|
|
3345
|
+
for (let g = 0; g < u.length; g += 1)
|
|
3346
|
+
h[g] = ss(os(i, u, g));
|
|
3347
3347
|
let d = i[4];
|
|
3348
|
-
const m = (
|
|
3349
|
-
for (let
|
|
3350
|
-
let p = is(i, d,
|
|
3351
|
-
l.set(v, a[
|
|
3348
|
+
const m = (g) => g[13];
|
|
3349
|
+
for (let g = 0; g < d.length; g += 1) {
|
|
3350
|
+
let p = is(i, d, g), v = m(p);
|
|
3351
|
+
l.set(v, a[g] = rs(v, p));
|
|
3352
3352
|
}
|
|
3353
3353
|
return {
|
|
3354
3354
|
c() {
|
|
3355
3355
|
t = B("div"), e = B("div"), n = $(), o = B("div");
|
|
3356
|
-
for (let
|
|
3357
|
-
h[
|
|
3356
|
+
for (let g = 0; g < h.length; g += 1)
|
|
3357
|
+
h[g].c();
|
|
3358
3358
|
s = $(), r = B("div");
|
|
3359
|
-
for (let
|
|
3360
|
-
a[
|
|
3359
|
+
for (let g = 0; g < a.length; g += 1)
|
|
3360
|
+
a[g].c();
|
|
3361
3361
|
y(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), y(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), U(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"), U(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(g, p) {
|
|
3364
|
+
M(g, t, p), j(t, e), j(t, n), j(t, o);
|
|
3365
3365
|
for (let v = 0; v < h.length; v += 1)
|
|
3366
3366
|
h[v].m(o, null);
|
|
3367
3367
|
j(t, s), j(t, r);
|
|
3368
3368
|
for (let v = 0; v < a.length; v += 1)
|
|
3369
3369
|
a[v].m(r, null);
|
|
3370
3370
|
},
|
|
3371
|
-
p(
|
|
3371
|
+
p(g, [p]) {
|
|
3372
3372
|
if (p & 8) {
|
|
3373
|
-
u =
|
|
3373
|
+
u = g[3];
|
|
3374
3374
|
let v;
|
|
3375
3375
|
for (v = 0; v < u.length; v += 1) {
|
|
3376
|
-
const
|
|
3377
|
-
h[v] ? h[v].p(
|
|
3376
|
+
const A = os(g, u, v);
|
|
3377
|
+
h[v] ? h[v].p(A, p) : (h[v] = ss(A), h[v].c(), h[v].m(o, null));
|
|
3378
3378
|
}
|
|
3379
3379
|
for (; v < h.length; v += 1)
|
|
3380
3380
|
h[v].d(1);
|
|
3381
3381
|
h.length = u.length;
|
|
3382
3382
|
}
|
|
3383
|
-
p & 22 && (d =
|
|
3383
|
+
p & 22 && (d = g[4], a = $e(a, p, m, 1, g, d, l, r, vo, rs, null, is)), p & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + g[0] + " svelte-djlmk4") && y(t, "class", c), p & 5 && U(t, "is-row", g[2]);
|
|
3384
3384
|
},
|
|
3385
3385
|
i: N,
|
|
3386
3386
|
o: N,
|
|
3387
|
-
d(
|
|
3388
|
-
|
|
3387
|
+
d(g) {
|
|
3388
|
+
g && S(t), ut(h, g);
|
|
3389
3389
|
for (let p = 0; p < a.length; p += 1)
|
|
3390
3390
|
a[p].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 p = 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(([g, p]) => a ? [g.x, p.x] : [g.y, p.y]).flat().sort().filter((g, p, v) => p === 0 ? !0 : g !== v[p - 1]), h = u.map((g) => {
|
|
3398
|
+
const p = a ? (g - s.min.x - Ot + Qt) / l : 0, v = a ? 0 : (g - s.min.y - Ot + Qt) / c;
|
|
3399
3399
|
return { left: p, bottom: v };
|
|
3400
3400
|
});
|
|
3401
3401
|
h.unshift({ left: 0, bottom: 0 }), h.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
3402
|
-
const d = u[u.length - 1] - u[0], m = u.map((
|
|
3403
|
-
const
|
|
3404
|
-
return { left: w, bottom: k, distance:
|
|
3405
|
-
}).filter(({ distance:
|
|
3406
|
-
return i.$$set = (
|
|
3407
|
-
"type" in
|
|
3402
|
+
const d = u[u.length - 1] - u[0], m = u.map((g, p, v) => {
|
|
3403
|
+
const A = p === 0 ? 0 : g - v[p - 1], b = p === 0 ? 0 : (g + v[p - 1]) / 2, w = a ? (b - s.min.x - Ot + Qt) / l : 0, k = a ? 0 : (b - s.min.y - Ot + Qt) / c;
|
|
3404
|
+
return { left: w, bottom: k, distance: A };
|
|
3405
|
+
}).filter(({ distance: g }) => g / d > 0.1);
|
|
3406
|
+
return i.$$set = (g) => {
|
|
3407
|
+
"type" in g && e(0, n = g.type), "data" in g && e(5, o = g.data), "bounding" in g && e(6, s = g.bounding), "getRuleDistanceText" in g && e(1, r = g.getRuleDistanceText);
|
|
3408
3408
|
}, [n, r, a, h, m, 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, h, d, { floorIndex: m } = t, { floorplanData:
|
|
3524
|
+
let n, o, s, r, a, l, c, u, h, d, { floorIndex: m } = t, { floorplanData: g } = t, { getRuleDistanceText: p } = t;
|
|
3525
3525
|
return i.$$set = (v) => {
|
|
3526
|
-
"floorIndex" in v && e(5, m = v.floorIndex), "floorplanData" in v && e(6,
|
|
3526
|
+
"floorIndex" in v && e(5, m = v.floorIndex), "floorplanData" in v && e(6, g = v.floorplanData), "getRuleDistanceText" in v && e(0, p = v.getRuleDistanceText);
|
|
3527
3527
|
}, i.$$.update = () => {
|
|
3528
|
-
i.$$.dirty & 64 && e(1, n =
|
|
3528
|
+
i.$$.dirty & 64 && e(1, n = g.bounding), i.$$.dirty & 96 && e(11, o = g.floorDatas[m].rules), i.$$.dirty & 2048 && e(12, s = Object.keys(o)), i.$$.dirty & 6144 && e(4, r = s.map((v) => [v, o[v]])), 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, h = c / a * 100 + "%"), i.$$.dirty & 384 && e(2, d = u / l * 100 + "%");
|
|
3529
3529
|
}, [
|
|
3530
3530
|
p,
|
|
3531
3531
|
n,
|
|
@@ -3533,7 +3533,7 @@ function Qd(i, t, e) {
|
|
|
3533
3533
|
h,
|
|
3534
3534
|
r,
|
|
3535
3535
|
m,
|
|
3536
|
-
|
|
3536
|
+
g,
|
|
3537
3537
|
l,
|
|
3538
3538
|
u,
|
|
3539
3539
|
a,
|
|
@@ -3896,10 +3896,10 @@ function ah(i, t, e) {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
const { bounding: d } = a, m = Ci(s.path, {
|
|
3898
3898
|
needZ: !0,
|
|
3899
|
-
format: (
|
|
3899
|
+
format: (g) => al(g, d)
|
|
3900
3900
|
});
|
|
3901
|
-
return i.$$set = (
|
|
3902
|
-
"room" in
|
|
3901
|
+
return i.$$set = (g) => {
|
|
3902
|
+
"room" in g && e(0, s = g.room), "floorIndex" in g && e(1, r = g.floorIndex), "floorplanData" in g && e(6, a = g.floorplanData), "hoveredRoom" in g && e(7, l = g.hoveredRoom), "highlightData" in g && e(8, c = g.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 h = {};
|
|
4209
|
-
for (let
|
|
4210
|
-
h = ze(h, u[
|
|
4209
|
+
for (let A = 0; A < u.length; A += 1)
|
|
4210
|
+
h = ze(h, u[A]);
|
|
4211
4211
|
e = new oh({ props: h });
|
|
4212
4212
|
let d = (i[2] || i[3]) && ps(i);
|
|
4213
4213
|
const m = [
|
|
@@ -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 rl({ props:
|
|
4219
|
+
let g = {};
|
|
4220
|
+
for (let A = 0; A < m.length; A += 1)
|
|
4221
|
+
g = ze(g, m[A]);
|
|
4222
|
+
s = new rl({ props: g });
|
|
4223
4223
|
let p = i[4] && gs(i), v = i[7] && As(i);
|
|
4224
4224
|
return {
|
|
4225
4225
|
c() {
|
|
4226
4226
|
t = B("div"), K(e.$$.fragment), n = $(), d && d.c(), o = $(), K(s.$$.fragment), r = $(), p && p.c(), a = $(), v && v.c(), y(t, "class", l = Pe(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
|
|
4227
4227
|
},
|
|
4228
|
-
m(
|
|
4229
|
-
M(
|
|
4228
|
+
m(A, b) {
|
|
4229
|
+
M(A, t, b), J(e, t, null), j(t, n), d && d.m(t, null), j(t, o), J(s, t, null), j(t, r), p && p.m(t, null), j(t, a), v && v.m(t, null), c = !0;
|
|
4230
4230
|
},
|
|
4231
|
-
p(
|
|
4231
|
+
p(A, [b]) {
|
|
4232
4232
|
const w = b & 258 ? Fe(u, [
|
|
4233
4233
|
{
|
|
4234
|
-
floorIndex:
|
|
4235
|
-
floorplanData:
|
|
4234
|
+
floorIndex: A[1],
|
|
4235
|
+
floorplanData: A[8]
|
|
4236
4236
|
}
|
|
4237
4237
|
]) : {};
|
|
4238
|
-
e.$set(w),
|
|
4238
|
+
e.$set(w), A[2] || A[3] ? d ? (d.p(A, b), b & 12 && P(d, 1)) : (d = ps(A), d.c(), P(d, 1), d.m(t, o)) : d && (se(), D(d, 1, 1, () => {
|
|
4239
4239
|
d = null;
|
|
4240
4240
|
}), re());
|
|
4241
4241
|
const k = b & 258 ? Fe(m, [
|
|
4242
4242
|
{
|
|
4243
|
-
floorplanData:
|
|
4244
|
-
floorIndex:
|
|
4243
|
+
floorplanData: A[8],
|
|
4244
|
+
floorIndex: A[1]
|
|
4245
4245
|
}
|
|
4246
4246
|
]) : {};
|
|
4247
|
-
s.$set(k),
|
|
4247
|
+
s.$set(k), A[4] ? p ? (p.p(A, b), b & 16 && P(p, 1)) : (p = gs(A), p.c(), P(p, 1), p.m(t, a)) : p && (se(), D(p, 1, 1, () => {
|
|
4248
4248
|
p = null;
|
|
4249
|
-
}), re()),
|
|
4249
|
+
}), re()), A[7] ? v ? (v.p(A, b), b & 128 && P(v, 1)) : (v = As(A), v.c(), P(v, 1), v.m(t, null)) : v && (se(), D(v, 1, 1, () => {
|
|
4250
4250
|
v = null;
|
|
4251
|
-
}), re()), (!c || b & 1 && l !== (l = Pe(`floorplan-plugin__floor${
|
|
4251
|
+
}), re()), (!c || b & 1 && l !== (l = Pe(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && y(t, "class", l);
|
|
4252
4252
|
},
|
|
4253
|
-
i(
|
|
4254
|
-
c || (P(e.$$.fragment,
|
|
4253
|
+
i(A) {
|
|
4254
|
+
c || (P(e.$$.fragment, A), P(d), P(s.$$.fragment, A), P(p), P(v), c = !0);
|
|
4255
4255
|
},
|
|
4256
|
-
o(
|
|
4257
|
-
D(e.$$.fragment,
|
|
4256
|
+
o(A) {
|
|
4257
|
+
D(e.$$.fragment, A), D(d), D(s.$$.fragment, A), D(p), D(v), c = !1;
|
|
4258
4258
|
},
|
|
4259
|
-
d(
|
|
4260
|
-
|
|
4259
|
+
d(A) {
|
|
4260
|
+
A && S(t), Z(e), d && d.d(), Z(s), p && p.d(), v && v.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: h } = t, { getRoomAreaText: d } = t, { getLabelElement: m } = 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: h } = t, { getRoomAreaText: d } = t, { getLabelElement: m } = t, { getRuleDistanceText: g } = t, { adaptiveRoomLabelVisibleEnable: p } = t, { highlightData: v } = t;
|
|
4266
|
+
const A = 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, h = b.floorplanData), "getRoomAreaText" in b && e(9, d = b.getRoomAreaText), "getLabelElement" in b && e(10, m = 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, h = b.floorplanData), "getRoomAreaText" in b && e(9, d = b.getRoomAreaText), "getLabelElement" in b && e(10, m = b.getLabelElement), "getRuleDistanceText" in b && e(11, g = b.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in b && e(12, p = b.adaptiveRoomLabelVisibleEnable), "highlightData" in b && e(13, v = b.highlightData);
|
|
4269
4269
|
}, [
|
|
4270
4270
|
n,
|
|
4271
4271
|
o,
|
|
@@ -4278,10 +4278,10 @@ function mh(i, t, e) {
|
|
|
4278
4278
|
h,
|
|
4279
4279
|
d,
|
|
4280
4280
|
m,
|
|
4281
|
-
|
|
4281
|
+
g,
|
|
4282
4282
|
p,
|
|
4283
4283
|
v,
|
|
4284
|
-
|
|
4284
|
+
A
|
|
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 m;
|
|
4347
4347
|
for (m = 0; m < r.length; m += 1) {
|
|
4348
|
-
const
|
|
4349
|
-
a[m] ? (a[m].p(
|
|
4348
|
+
const g = vs(i, r, m);
|
|
4349
|
+
a[m] ? (a[m].p(g, d), P(a[m], 1)) : (a[m] = ys(g), a[m].c(), P(a[m], 1), a[m].m(t, e));
|
|
4350
4350
|
}
|
|
4351
4351
|
for (se(), m = r.length; m < a.length; m += 1)
|
|
4352
4352
|
l(m);
|
|
@@ -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: h } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: m } = 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: h } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: m } = t, { roomNameEnable: g } = t, { ruleLabelsEnable: p } = t, { floorplanData: v } = t, { lastPanoramaLongitude: A } = t, { cameraImageUrl: b } = t, { getRoomAreaText: w } = t, { getLabelElement: k } = t, { getRuleDistanceText: I } = t, { adaptiveRoomLabelVisibleEnable: C } = t, { highlightData: L } = t;
|
|
4552
4552
|
return i.$$set = (x) => {
|
|
4553
|
-
"duration" in x && e(0, n = x.duration), "visible" in x && e(1, o = x.visible), "northDesc" in x && e(2, s = x.northDesc), "panoIndex" in x && e(3, r = x.panoIndex), "floorIndex" in x && e(4, a = x.floorIndex), "cameraEnable" in x && e(5, l = x.cameraEnable), "hoverEnable" in x && e(6, c = x.hoverEnable), "highlightEnable" in x && e(7, u = x.highlightEnable), "compassEnable" in x && e(8, h = x.compassEnable), "roomLabelsEnable" in x && e(9, d = x.roomLabelsEnable), "roomAreaEnable" in x && e(10, m = x.roomAreaEnable), "roomNameEnable" in x && e(11,
|
|
4553
|
+
"duration" in x && e(0, n = x.duration), "visible" in x && e(1, o = x.visible), "northDesc" in x && e(2, s = x.northDesc), "panoIndex" in x && e(3, r = x.panoIndex), "floorIndex" in x && e(4, a = x.floorIndex), "cameraEnable" in x && e(5, l = x.cameraEnable), "hoverEnable" in x && e(6, c = x.hoverEnable), "highlightEnable" in x && e(7, u = x.highlightEnable), "compassEnable" in x && e(8, h = x.compassEnable), "roomLabelsEnable" in x && e(9, d = x.roomLabelsEnable), "roomAreaEnable" in x && e(10, m = x.roomAreaEnable), "roomNameEnable" in x && e(11, g = x.roomNameEnable), "ruleLabelsEnable" in x && e(12, p = x.ruleLabelsEnable), "floorplanData" in x && e(13, v = x.floorplanData), "lastPanoramaLongitude" in x && e(14, A = x.lastPanoramaLongitude), "cameraImageUrl" in x && e(15, b = x.cameraImageUrl), "getRoomAreaText" in x && e(16, w = x.getRoomAreaText), "getLabelElement" in x && e(17, k = x.getLabelElement), "getRuleDistanceText" in x && e(18, I = x.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in x && e(19, C = x.adaptiveRoomLabelVisibleEnable), "highlightData" in x && e(20, L = x.highlightData);
|
|
4554
4554
|
}, [
|
|
4555
4555
|
n,
|
|
4556
4556
|
o,
|
|
@@ -4563,10 +4563,10 @@ function vh(i, t, e) {
|
|
|
4563
4563
|
h,
|
|
4564
4564
|
d,
|
|
4565
4565
|
m,
|
|
4566
|
-
|
|
4566
|
+
g,
|
|
4567
4567
|
p,
|
|
4568
4568
|
v,
|
|
4569
|
-
|
|
4569
|
+
A,
|
|
4570
4570
|
b,
|
|
4571
4571
|
w,
|
|
4572
4572
|
k,
|
|
@@ -4718,7 +4718,7 @@ function Co(i, t, e, n) {
|
|
|
4718
4718
|
}
|
|
4719
4719
|
class zn {
|
|
4720
4720
|
constructor(t, e) {
|
|
4721
|
-
f(this, "VERSION", "2.15.0
|
|
4721
|
+
f(this, "VERSION", "2.15.0");
|
|
4722
4722
|
f(this, "five");
|
|
4723
4723
|
f(this, "hooks", new Zt());
|
|
4724
4724
|
f(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 h(
|
|
5649
|
-
const v =
|
|
5650
|
-
if (!
|
|
5648
|
+
function h(g, p) {
|
|
5649
|
+
const v = g.bounding, A = g.observers[p];
|
|
5650
|
+
if (!A)
|
|
5651
5651
|
return "";
|
|
5652
|
-
const b = (v.max.x - v.min.x) * r, w = (v.max.y - v.min.y) * r, k = Math.floor(
|
|
5652
|
+
const b = (v.max.x - v.min.x) * r, w = (v.max.y - v.min.y) * r, k = Math.floor(A.positionInImage.x * b), I = Math.floor(A.positionInImage.y * w);
|
|
5653
5653
|
return `translate(${k}px, ${I}px)`;
|
|
5654
5654
|
}
|
|
5655
|
-
function d(
|
|
5656
|
-
e(6, c =
|
|
5655
|
+
function d(g) {
|
|
5656
|
+
e(6, c = g);
|
|
5657
5657
|
}
|
|
5658
5658
|
const m = Io(
|
|
5659
|
-
(
|
|
5660
|
-
e(7, u =
|
|
5659
|
+
(g) => {
|
|
5660
|
+
e(7, u = g.longitude);
|
|
5661
5661
|
},
|
|
5662
5662
|
1e3 / 60
|
|
5663
5663
|
);
|
|
5664
5664
|
return Ke(() => (s.on("panoWillArrive", d), s.on("cameraDirectionUpdate", m), function() {
|
|
5665
5665
|
s.off("panoWillArrive", d), s.off("cameraDirectionUpdate", m);
|
|
5666
|
-
})), i.$$set = (
|
|
5667
|
-
"five" in
|
|
5666
|
+
})), i.$$set = (g) => {
|
|
5667
|
+
"five" in g && e(3, s = g.five), "pxmm" in g && e(4, r = g.pxmm), "floorplanData" in g && e(5, a = g.floorplanData), "cameraImageUrl" in g && e(0, l = g.cameraImageUrl);
|
|
5668
5668
|
}, i.$$.update = () => {
|
|
5669
5669
|
i.$$.dirty & 96 && e(2, n = h(a, c)), i.$$.dirty & 128 && e(1, o = Oh(u));
|
|
5670
5670
|
}, [
|
|
@@ -5958,7 +5958,7 @@ function Ds(i) {
|
|
|
5958
5958
|
M(d, t, m), J(e, t, null), j(t, n), J(o, t, null), a = !0;
|
|
5959
5959
|
},
|
|
5960
5960
|
p(d, m) {
|
|
5961
|
-
const
|
|
5961
|
+
const g = m & 3181 ? Fe(l, [
|
|
5962
5962
|
{
|
|
5963
5963
|
five: d[0],
|
|
5964
5964
|
pxmm: d[10],
|
|
@@ -5969,7 +5969,7 @@ function Ds(i) {
|
|
|
5969
5969
|
highlightData: d[6]
|
|
5970
5970
|
}
|
|
5971
5971
|
]) : {};
|
|
5972
|
-
e.$set(
|
|
5972
|
+
e.$set(g);
|
|
5973
5973
|
const p = m & 1049 ? Fe(u, [
|
|
5974
5974
|
{
|
|
5975
5975
|
pxmm: d[10],
|
|
@@ -6018,14 +6018,14 @@ function Uh(i) {
|
|
|
6018
6018
|
}
|
|
6019
6019
|
function qh(i, t, e) {
|
|
6020
6020
|
var w, k;
|
|
6021
|
-
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, u = 0, h = (k = (w = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? k : 0, d = 0, m = 0,
|
|
6021
|
+
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, u = 0, h = (k = (w = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? k : 0, d = 0, m = 0, g = 0, p = 0;
|
|
6022
6022
|
function v(I) {
|
|
6023
6023
|
e(11, h = n.work.observers[I].floorIndex);
|
|
6024
6024
|
}
|
|
6025
6025
|
Ke(() => (n.on("panoArrived", v), () => {
|
|
6026
6026
|
n.off("panoArrived", v);
|
|
6027
6027
|
}));
|
|
6028
|
-
const
|
|
6028
|
+
const A = (I) => {
|
|
6029
6029
|
e(7, d = I.detail);
|
|
6030
6030
|
}, b = (I) => {
|
|
6031
6031
|
e(8, m = I.detail);
|
|
@@ -6037,7 +6037,7 @@ function qh(i, t, e) {
|
|
|
6037
6037
|
const I = Math.min(d, m), { max: C, min: L } = r.bounding, x = C.x - L.x, F = C.y - L.y, _ = function() {
|
|
6038
6038
|
return x > F ? [I, I / x * F] : [I / F * x, I];
|
|
6039
6039
|
}();
|
|
6040
|
-
e(9,
|
|
6040
|
+
e(9, g = _[0]), e(12, p = _[1]), e(10, u = g / x);
|
|
6041
6041
|
}
|
|
6042
6042
|
}, [
|
|
6043
6043
|
n,
|
|
@@ -6049,11 +6049,11 @@ function qh(i, t, e) {
|
|
|
6049
6049
|
c,
|
|
6050
6050
|
d,
|
|
6051
6051
|
m,
|
|
6052
|
-
|
|
6052
|
+
g,
|
|
6053
6053
|
u,
|
|
6054
6054
|
h,
|
|
6055
6055
|
p,
|
|
6056
|
-
|
|
6056
|
+
A,
|
|
6057
6057
|
b
|
|
6058
6058
|
];
|
|
6059
6059
|
}
|
|
@@ -6339,7 +6339,7 @@ const xb = (i, t) => {
|
|
|
6339
6339
|
const d = (h == null ? void 0 : h.fbx_url) || e, m = (V = h == null ? void 0 : h.north_rad) != null ? V : n;
|
|
6340
6340
|
if (typeof m != "number")
|
|
6341
6341
|
throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
|
|
6342
|
-
const
|
|
6342
|
+
const g = i.model.bounding, p = g.max.x - g.min.x, v = g.max.z - g.min.z, A = Math.max(p, v), w = yield new ka().loadAsync(d);
|
|
6343
6343
|
hl(w, {
|
|
6344
6344
|
transparent: !0,
|
|
6345
6345
|
side: E.DoubleSide,
|
|
@@ -6354,7 +6354,7 @@ const xb = (i, t) => {
|
|
|
6354
6354
|
}
|
|
6355
6355
|
} = i;
|
|
6356
6356
|
o.yBase = x;
|
|
6357
|
-
const _ = { x: (I + L) / 2, y: x - 1.6, z: (C + F) / 2 }, O = 45e-4 *
|
|
6357
|
+
const _ = { x: (I + L) / 2, y: x - 1.6, z: (C + F) / 2 }, O = 45e-4 * A;
|
|
6358
6358
|
return Kh(w, { position: _, rotation: k, scale: O }), o.object = w, !0;
|
|
6359
6359
|
}), r = ({ latitude: h }) => {
|
|
6360
6360
|
if (!o.object)
|
|
@@ -6387,8 +6387,8 @@ function $h(i, t) {
|
|
|
6387
6387
|
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 gc(a);
|
|
6388
6388
|
}
|
|
6389
6389
|
const ef = ({ x: i, y: t, z: e }) => new q(i, t, e), Db = (i, t) => {
|
|
6390
|
-
var p, v,
|
|
6391
|
-
const e = {}, n = (p = t.animationEnabled) != null ? p : !0, o = (v = t.position) != null ? v : void 0, s = (
|
|
6390
|
+
var p, v, A;
|
|
6391
|
+
const e = {}, n = (p = t.animationEnabled) != null ? p : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (b) => H(void 0, null, function* () {
|
|
6392
6392
|
var _, O, V, z, R, G, X, W;
|
|
6393
6393
|
const w = (_ = b == null ? void 0 : b.position) != null ? _ : o;
|
|
6394
6394
|
if (!w)
|
|
@@ -6547,26 +6547,26 @@ const so = (i, t, e) => {
|
|
|
6547
6547
|
return {
|
|
6548
6548
|
move: e,
|
|
6549
6549
|
rotate: (l, c, ...u) => H(void 0, [l, c, ...u], function* (s, r, a = {}) {
|
|
6550
|
-
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== Ve.Mode.Panorama && (yield i.changeMode(Ve.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((m,
|
|
6550
|
+
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== Ve.Mode.Panorama && (yield i.changeMode(Ve.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((m, g) => {
|
|
6551
6551
|
if (!s.panoIndex) {
|
|
6552
6552
|
m(!0);
|
|
6553
6553
|
return;
|
|
6554
6554
|
}
|
|
6555
6555
|
i.moveToPano(s.panoIndex, {
|
|
6556
6556
|
moveEndCallback: () => m(!0),
|
|
6557
|
-
moveCancelCallback: () =>
|
|
6557
|
+
moveCancelCallback: () => g(!1)
|
|
6558
6558
|
});
|
|
6559
6559
|
})), a.asyncEndCallback && (yield a.asyncEndCallback());
|
|
6560
6560
|
const { from: h, to: d } = n(s);
|
|
6561
6561
|
return yield new Promise((m) => {
|
|
6562
|
-
const
|
|
6562
|
+
const g = ({ progress: w }) => {
|
|
6563
6563
|
const k = {};
|
|
6564
6564
|
k.longitude = Oi(h.longitude, d.longitude, w), k.latitude = Oi(h.latitude, d.latitude, w), k.fov = Oi(h.fov, d.fov, w), i.setState(k, !0);
|
|
6565
6565
|
}, p = () => {
|
|
6566
6566
|
m(!0);
|
|
6567
6567
|
}, v = () => {
|
|
6568
6568
|
m(!1);
|
|
6569
|
-
},
|
|
6569
|
+
}, A = s.rotateSpeed ? Math.ceil(Math.abs(d.longitude - h.longitude) / s.rotateSpeed * 1e3) : r, b = rf(A, vi.Easing.Linear.None).onUpdate(g).onComplete(p).onDestroy(v);
|
|
6570
6570
|
s.rotation === at.Loop && b.repeat(1 / 0).yoyo(!0), t.interruptCallback = (w = !0) => {
|
|
6571
6571
|
b.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(w);
|
|
6572
6572
|
}, t.timeoutId = setTimeout(() => {
|
|
@@ -6735,7 +6735,7 @@ const cf = `<style type="text/css">
|
|
|
6735
6735
|
distanceText: (p) => `${p.toFixed(1)}m`
|
|
6736
6736
|
}
|
|
6737
6737
|
}, n = (p, v) => {
|
|
6738
|
-
const
|
|
6738
|
+
const A = `
|
|
6739
6739
|
<div class="PanoRulerPlugin-rule-line">
|
|
6740
6740
|
<em></em>
|
|
6741
6741
|
<div class="PanoRulerPlugin-rule-label">
|
|
@@ -6743,7 +6743,7 @@ const cf = `<style type="text/css">
|
|
|
6743
6743
|
</div>
|
|
6744
6744
|
</div>
|
|
6745
6745
|
`, b = document.createElement("div");
|
|
6746
|
-
return b.setAttribute("class", "PanoRulerPlugin-rule"), b.setAttribute("data-name", p), b.setAttribute("style", "display: none"), b.innerHTML =
|
|
6746
|
+
return b.setAttribute("class", "PanoRulerPlugin-rule"), b.setAttribute("data-name", p), b.setAttribute("style", "display: none"), b.innerHTML = A, b;
|
|
6747
6747
|
}, o = document.createElement("div");
|
|
6748
6748
|
o.setAttribute(
|
|
6749
6749
|
"style",
|
|
@@ -6754,12 +6754,12 @@ const cf = `<style type="text/css">
|
|
|
6754
6754
|
const r = {}, a = (p, v) => {
|
|
6755
6755
|
if (e.loaded)
|
|
6756
6756
|
throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
|
|
6757
|
-
const
|
|
6757
|
+
const A = df(p, i), b = i.work;
|
|
6758
6758
|
if (!b)
|
|
6759
6759
|
return !1;
|
|
6760
6760
|
for (const w in v) {
|
|
6761
6761
|
const k = v[w], { standingPosition: I } = b.observers[0], C = k.map(({ x: L, z: x, observers: F }) => {
|
|
6762
|
-
const _ = F.length > 0 ? p.rooms[p.observers[F[0]]].name : "", O =
|
|
6762
|
+
const _ = F.length > 0 ? p.rooms[p.observers[F[0]]].name : "", O = A[_] ? A[_].floor : null;
|
|
6763
6763
|
let V = 1 / 0, z = {
|
|
6764
6764
|
index: 0,
|
|
6765
6765
|
x: I.x,
|
|
@@ -6779,7 +6779,7 @@ const cf = `<style type="text/css">
|
|
|
6779
6779
|
});
|
|
6780
6780
|
const R = new q(L, z.y, x);
|
|
6781
6781
|
Object.assign(R, { observers: F });
|
|
6782
|
-
const G =
|
|
6782
|
+
const G = A[_] ? A[_].roof : null, X = G ? new q(L, G, x) : null;
|
|
6783
6783
|
return X && Object.assign(X, { observers: F }), { origin: R, vertical: X };
|
|
6784
6784
|
});
|
|
6785
6785
|
r[w] = {
|
|
@@ -6800,32 +6800,32 @@ const cf = `<style type="text/css">
|
|
|
6800
6800
|
}
|
|
6801
6801
|
}
|
|
6802
6802
|
return e.loaded = !0, !0;
|
|
6803
|
-
}, l = (p, v,
|
|
6803
|
+
}, l = (p, v, A) => H(void 0, null, function* () {
|
|
6804
6804
|
const b = p || t.roomInfo, w = v || t.roomRules;
|
|
6805
6805
|
if (!b || !w)
|
|
6806
6806
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
6807
|
-
return e.loaded = !1, e.options = Q(Q({}, e.options),
|
|
6807
|
+
return e.loaded = !1, e.options = Q(Q({}, e.options), A || {}), i.model.loaded ? a(b, w) : yield new Promise(
|
|
6808
6808
|
(k) => i.once("modelLoaded", () => k(a(b, w)))
|
|
6809
6809
|
);
|
|
6810
6810
|
});
|
|
6811
6811
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
6812
|
-
const c = (p, v,
|
|
6812
|
+
const c = (p, v, A, b) => {
|
|
6813
6813
|
const w = [
|
|
6814
6814
|
[
|
|
6815
6815
|
{ x: 0, y: 0 },
|
|
6816
|
-
{ x:
|
|
6816
|
+
{ x: A, y: 0 }
|
|
6817
6817
|
],
|
|
6818
6818
|
[
|
|
6819
6819
|
{ x: 0, y: 0 },
|
|
6820
6820
|
{ x: 0, y: b }
|
|
6821
6821
|
],
|
|
6822
6822
|
[
|
|
6823
|
-
{ x:
|
|
6824
|
-
{ x:
|
|
6823
|
+
{ x: A, y: 0 },
|
|
6824
|
+
{ x: A, y: b }
|
|
6825
6825
|
],
|
|
6826
6826
|
[
|
|
6827
6827
|
{ x: 0, y: b },
|
|
6828
|
-
{ x:
|
|
6828
|
+
{ x: A, y: b }
|
|
6829
6829
|
]
|
|
6830
6830
|
], k = [];
|
|
6831
6831
|
for (let I = 0; I < w.length; I++) {
|
|
@@ -6838,7 +6838,7 @@ const cf = `<style type="text/css">
|
|
|
6838
6838
|
const p = (F = i.getElement()) == null ? void 0 : F.parentElement;
|
|
6839
6839
|
if (!p || !e.loaded || Object.keys(r).length <= 0)
|
|
6840
6840
|
return;
|
|
6841
|
-
const { panoIndex: v, camera:
|
|
6841
|
+
const { panoIndex: v, camera: A, currentMode: b } = i;
|
|
6842
6842
|
if (v === void 0)
|
|
6843
6843
|
return;
|
|
6844
6844
|
let w;
|
|
@@ -6850,7 +6850,7 @@ const cf = `<style type="text/css">
|
|
|
6850
6850
|
O.style.display = "none";
|
|
6851
6851
|
return;
|
|
6852
6852
|
}
|
|
6853
|
-
const k =
|
|
6853
|
+
const k = A.position, I = A.getWorldDirection(new q()), C = p.clientWidth, L = p.clientHeight;
|
|
6854
6854
|
if (b !== Ve.Mode.Panorama) {
|
|
6855
6855
|
for (const _ in r)
|
|
6856
6856
|
for (const { $element: O } of r[_].rules)
|
|
@@ -6897,7 +6897,7 @@ const cf = `<style type="text/css">
|
|
|
6897
6897
|
V.style.display = "none";
|
|
6898
6898
|
continue;
|
|
6899
6899
|
}
|
|
6900
|
-
const he = z.clone().project(
|
|
6900
|
+
const he = z.clone().project(A), de = (he.x + 1) / 2 * C, ge = (-he.y + 1) / 2 * L, Ce = R.clone().project(A), Ie = (Ce.x + 1) / 2 * C, Me = (-Ce.y + 1) / 2 * L, ce = Math.sqrt(Math.pow(Ie - de, 2) + Math.pow(Me - ge, 2));
|
|
6901
6901
|
let Ae = ce, Ee = 50;
|
|
6902
6902
|
const ue = c({ x: ~~de, y: ~~ge }, {
|
|
6903
6903
|
x: ~~Ie,
|
|
@@ -6919,11 +6919,11 @@ const cf = `<style type="text/css">
|
|
|
6919
6919
|
var p, v;
|
|
6920
6920
|
return e.loaded ? (e.enable || (o.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (v = (p = i.getElement()) == null ? void 0 : p.parentElement) == null || v.append(o), u(), i.on("modeChange", u), i.on("cameraUpdate", h), e.enable = !0), !0) : !1;
|
|
6921
6921
|
}, m = () => (e.enable && (i.off("modeChange", u), i.off("cameraUpdate", h), o && o.remove(), e.enable = !1), !0);
|
|
6922
|
-
function
|
|
6922
|
+
function g(p) {
|
|
6923
6923
|
if (p.distanceText && p.distanceText !== e.options.distanceText) {
|
|
6924
6924
|
const v = p.distanceText;
|
|
6925
|
-
e.options.distanceText = v, Object.values(r).forEach((
|
|
6926
|
-
|
|
6925
|
+
e.options.distanceText = v, Object.values(r).forEach((A) => {
|
|
6926
|
+
A.rules.forEach((b) => {
|
|
6927
6927
|
const [w, k] = b.rule, I = w.distanceTo(k), C = b.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
6928
6928
|
!C || (C.innerText = v(I));
|
|
6929
6929
|
});
|
|
@@ -6935,7 +6935,7 @@ const cf = `<style type="text/css">
|
|
|
6935
6935
|
disable: m,
|
|
6936
6936
|
load: l,
|
|
6937
6937
|
state: e,
|
|
6938
|
-
changeConfigs:
|
|
6938
|
+
changeConfigs: g
|
|
6939
6939
|
};
|
|
6940
6940
|
};
|
|
6941
6941
|
function hf(i) {
|
|
@@ -7015,19 +7015,19 @@ function zs(i) {
|
|
|
7015
7015
|
}
|
|
7016
7016
|
function pf(i) {
|
|
7017
7017
|
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`, h = `${i[0].top}px`, d = `rotate(${i[0].rotateDeg}deg)`;
|
|
7018
|
-
function m(v,
|
|
7018
|
+
function m(v, A) {
|
|
7019
7019
|
return v[0].children.length === 0 ? mf : ff;
|
|
7020
7020
|
}
|
|
7021
|
-
let
|
|
7021
|
+
let g = m(i), p = g(i);
|
|
7022
7022
|
return {
|
|
7023
7023
|
c() {
|
|
7024
7024
|
t = B("div"), p.c(), e = $(), n = B("div"), o = B("div"), r = ke(s), y(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Re(() => 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", h), T(t, "transform", d), T(t, "display", i[0].visible && i[2] ? "block" : "none");
|
|
7025
7025
|
},
|
|
7026
|
-
m(v,
|
|
7027
|
-
M(v, t,
|
|
7026
|
+
m(v, A) {
|
|
7027
|
+
M(v, t, A), p.m(t, null), j(t, e), j(t, n), j(n, o), j(o, r), a = bi(o, i[4].bind(o));
|
|
7028
7028
|
},
|
|
7029
|
-
p(v, [
|
|
7030
|
-
|
|
7029
|
+
p(v, [A]) {
|
|
7030
|
+
g === (g = m(v)) && p ? p.p(v, A) : (p.d(1), p = g(v), p && (p.c(), p.m(t, e))), A & 1 && s !== (s = v[0].labelElement + "") && Se(r, s), A & 1 && l !== (l = `${v[0].labelOffset}%`) && T(n, "left", l), A & 1 && c !== (c = `${v[0].width}px`) && T(t, "width", c), A & 1 && u !== (u = `${v[0].left}px`) && T(t, "left", u), A & 1 && h !== (h = `${v[0].top}px`) && T(t, "top", h), A & 1 && d !== (d = `rotate(${v[0].rotateDeg}deg)`) && T(t, "transform", d), A & 5 && T(t, "display", v[0].visible && v[2] ? "block" : "none");
|
|
7031
7031
|
},
|
|
7032
7032
|
i: N,
|
|
7033
7033
|
o: N,
|
|
@@ -7133,9 +7133,9 @@ function vf(i) {
|
|
|
7133
7133
|
};
|
|
7134
7134
|
}
|
|
7135
7135
|
function bf(i, t, e) {
|
|
7136
|
-
var p, v,
|
|
7136
|
+
var p, v, A, b;
|
|
7137
7137
|
let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
|
|
7138
|
-
const a = ((v = (p = n.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((b = (
|
|
7138
|
+
const a = ((v = (p = n.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((b = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : b.clientHeight) || 0, c = (w, k) => {
|
|
7139
7139
|
const I = [
|
|
7140
7140
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
7141
7141
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
@@ -7206,11 +7206,11 @@ function bf(i, t, e) {
|
|
|
7206
7206
|
};
|
|
7207
7207
|
});
|
|
7208
7208
|
e(0, r = _);
|
|
7209
|
-
}, m = () => Ii(d),
|
|
7209
|
+
}, m = () => Ii(d), g = Io(d, 80);
|
|
7210
7210
|
return Ke(() => {
|
|
7211
|
-
d(), n.on("panoArrived", d), n.on("modeChange", d), n.on("cameraDirectionUpdate", m), n.on("movingToPano", m), n.on("mouseWheel", () =>
|
|
7211
|
+
d(), n.on("panoArrived", d), n.on("modeChange", d), n.on("cameraDirectionUpdate", m), n.on("movingToPano", m), n.on("mouseWheel", () => g()), n.on("pinchGesture", () => g());
|
|
7212
7212
|
}), Pt(() => {
|
|
7213
|
-
n.off("panoArrived", d), n.off("modeChange", d), n.off("cameraDirectionUpdate", m), n.off("movingToPano", m), n.off("mouseWheel", () =>
|
|
7213
|
+
n.off("panoArrived", d), n.off("modeChange", d), n.off("cameraDirectionUpdate", m), n.off("movingToPano", m), n.off("mouseWheel", () => g()), n.off("pinchGesture", () => g());
|
|
7214
7214
|
}), i.$$set = (w) => {
|
|
7215
7215
|
"five" in w && e(1, n = w.five), "rulerDatas" in w && e(2, o = w.rulerDatas), "options" in w && e(3, s = w.options);
|
|
7216
7216
|
}, [r, n, o, s];
|
|
@@ -7620,9 +7620,9 @@ class xf {
|
|
|
7620
7620
|
return [(v.x + 1) / 2 * s.x, (v.y + 1) / 2 * s.y];
|
|
7621
7621
|
} else
|
|
7622
7622
|
return [this.renderCenter.x, s.y - this.renderCenter.y];
|
|
7623
|
-
})(), l = 1, c = n / t, u = o / t, h = l * t, d = this.five.getPixels(r - c / 2, a - c / 2, c, u, h), m = Math.floor(n * l),
|
|
7624
|
-
kf(d, m,
|
|
7625
|
-
const p = new ImageData(m,
|
|
7623
|
+
})(), l = 1, c = n / t, u = o / t, h = l * t, d = this.five.getPixels(r - c / 2, a - c / 2, c, u, h), m = Math.floor(n * l), g = Math.floor(o * l);
|
|
7624
|
+
kf(d, m, g);
|
|
7625
|
+
const p = new ImageData(m, g);
|
|
7626
7626
|
p.data.set(d), e.putImageData(p, 0, 0);
|
|
7627
7627
|
}
|
|
7628
7628
|
initStyle() {
|
|
@@ -7796,8 +7796,8 @@ const Rf = {
|
|
|
7796
7796
|
pointsRenderOrder: 10
|
|
7797
7797
|
};
|
|
7798
7798
|
function Ff(i, t, e) {
|
|
7799
|
-
var u, h, d, m,
|
|
7800
|
-
const n = (u = e == null ? void 0 : e.lineWidth) != null ? u : 2, o = (h = e == null ? void 0 : e.lineColor) != null ? h : new Ln(16777215), s = (d = e == null ? void 0 : e.pointSize) != null ? d : 5, r = (m = e == null ? void 0 : e.lineRenderOrder) != null ? m : 10, a = (
|
|
7799
|
+
var u, h, d, m, g;
|
|
7800
|
+
const n = (u = e == null ? void 0 : e.lineWidth) != null ? u : 2, o = (h = e == null ? void 0 : e.lineColor) != null ? h : new Ln(16777215), s = (d = e == null ? void 0 : e.pointSize) != null ? d : 5, r = (m = e == null ? void 0 : e.lineRenderOrder) != null ? m : 10, a = (g = e == null ? void 0 : e.lineRenderOrder) != null ? g : 20, l = new Ia(i, t);
|
|
7801
7801
|
l.setMaterial({ linewidth: n, color: o }), l.line.material.depthTest = !1, l.line.material.transparent = !0, l.line.renderOrder = r, l.points.renderOrder = a;
|
|
7802
7802
|
const c = l.points.material;
|
|
7803
7803
|
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;
|
|
@@ -7832,7 +7832,7 @@ function Wf(i) {
|
|
|
7832
7832
|
ndcPosition: a,
|
|
7833
7833
|
update: d,
|
|
7834
7834
|
appendTo: m,
|
|
7835
|
-
remove:
|
|
7835
|
+
remove: g,
|
|
7836
7836
|
highlight: u,
|
|
7837
7837
|
unHighlight: h,
|
|
7838
7838
|
getCurrentContent: p,
|
|
@@ -7840,8 +7840,8 @@ function Wf(i) {
|
|
|
7840
7840
|
};
|
|
7841
7841
|
s.style.pointerEvents = t ? "all" : "none", r != null && r.element ? s.appendChild(r.element) : s.appendChild(o);
|
|
7842
7842
|
function c() {
|
|
7843
|
-
var
|
|
7844
|
-
(
|
|
7843
|
+
var A;
|
|
7844
|
+
(A = i.clickCallback) == null || A.call(i, l);
|
|
7845
7845
|
}
|
|
7846
7846
|
function u() {
|
|
7847
7847
|
if (r)
|
|
@@ -7853,18 +7853,18 @@ function Wf(i) {
|
|
|
7853
7853
|
return r.unHighlight();
|
|
7854
7854
|
o.style.border = "0.5px solid rgba(255,255,255,0.6)", o.style.background = "rgba(195,195,195,0.70)";
|
|
7855
7855
|
}
|
|
7856
|
-
function d(
|
|
7856
|
+
function d(A) {
|
|
7857
7857
|
if (e.mesh.visible === !1) {
|
|
7858
7858
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7859
7859
|
return;
|
|
7860
7860
|
}
|
|
7861
|
-
const b =
|
|
7861
|
+
const b = A.getElement();
|
|
7862
7862
|
if (!b)
|
|
7863
7863
|
return;
|
|
7864
7864
|
const w = b.clientWidth, k = b.clientHeight, I = w / 2, C = k / 2;
|
|
7865
7865
|
if (e.points.length < 2)
|
|
7866
7866
|
return;
|
|
7867
|
-
const [L, x] = e.points, F = L.position.clone().project(
|
|
7867
|
+
const [L, x] = e.points, F = L.position.clone().project(A.camera), _ = x.position.clone().project(A.camera), O = F.clone().lerp(_, 0.5), V = new Ne(F.x * I, F.y * C), z = new Ne(_.x * I, _.y * C), R = V.distanceTo(z);
|
|
7868
7868
|
if ((() => !(Math.abs(F.z) > 1 || Math.abs(_.z) > 1 || !Qi(F) && !Qi(_) || !Qi(O) || R === 0))() === !1) {
|
|
7869
7869
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7870
7870
|
return;
|
|
@@ -7874,21 +7874,21 @@ function Wf(i) {
|
|
|
7874
7874
|
const he = p();
|
|
7875
7875
|
o.innerText = he;
|
|
7876
7876
|
}
|
|
7877
|
-
function m(
|
|
7878
|
-
|
|
7877
|
+
function m(A) {
|
|
7878
|
+
A.appendChild(s), s.addEventListener("click", c);
|
|
7879
7879
|
}
|
|
7880
|
-
function
|
|
7880
|
+
function g() {
|
|
7881
7881
|
o.removeEventListener("click", c), s.remove();
|
|
7882
7882
|
}
|
|
7883
7883
|
function p() {
|
|
7884
7884
|
var L, x, F;
|
|
7885
7885
|
if (e.points.length < 2)
|
|
7886
7886
|
return "";
|
|
7887
|
-
const [
|
|
7887
|
+
const [A, b] = e.points, w = A.position.clone().distanceTo(b.position), k = (L = i.line.text) != null ? L : i.line.model.config.defaultText, I = (F = (x = i.line.model.config) == null ? void 0 : x.getDistanceText) == null ? void 0 : F.call(x, w), C = k != null ? k : I;
|
|
7888
7888
|
return C != null ? C : w.toFixed(2) + "m";
|
|
7889
7889
|
}
|
|
7890
|
-
function v(
|
|
7891
|
-
t =
|
|
7890
|
+
function v(A) {
|
|
7891
|
+
t = A;
|
|
7892
7892
|
}
|
|
7893
7893
|
return l;
|
|
7894
7894
|
}
|
|
@@ -8247,8 +8247,8 @@ class bl {
|
|
|
8247
8247
|
const l = (s + 1) / 2 * a.clientWidth, c = -(r - 1) / 2 * a.clientHeight;
|
|
8248
8248
|
let u = l, h = c - 34;
|
|
8249
8249
|
if (this.lines.length === 1 && t.length === 2) {
|
|
8250
|
-
const d = (o[1] - o[0]) / (n[1] - n[0]),
|
|
8251
|
-
Math.abs(d) > 0.4 && (u = l + 57, h =
|
|
8250
|
+
const d = (o[1] - o[0]) / (n[1] - n[0]), g = -((o[1] + o[0]) / 2 - 1) / 2 * a.clientHeight;
|
|
8251
|
+
Math.abs(d) > 0.4 && (u = l + 57, h = g);
|
|
8252
8252
|
}
|
|
8253
8253
|
return this.container.style.transform = `translate3d(${u}px, ${h}px, 10px)`, this.show();
|
|
8254
8254
|
}
|
|
@@ -8354,18 +8354,18 @@ class Rs extends ki {
|
|
|
8354
8354
|
if (!n)
|
|
8355
8355
|
return;
|
|
8356
8356
|
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Ne(s.x * r, s.y * a), c = this.model.getAllLines().map((m) => {
|
|
8357
|
-
const [
|
|
8358
|
-
if (!Dn(v) && !Dn(
|
|
8357
|
+
const [g, p] = m.points, v = g.position.clone().project(o), A = p.position.clone().project(o);
|
|
8358
|
+
if (!Dn(v) && !Dn(A))
|
|
8359
8359
|
return null;
|
|
8360
|
-
const b = new Ne(v.x * r, v.y * a), w = new Ne(
|
|
8360
|
+
const b = new Ne(v.x * r, v.y * a), w = new Ne(A.x * r, A.y * a);
|
|
8361
8361
|
return { id: m.id, points: [b, w] };
|
|
8362
8362
|
}).filter((m) => !!m);
|
|
8363
8363
|
if (c.length === 0)
|
|
8364
8364
|
return;
|
|
8365
8365
|
const h = c.map((m) => {
|
|
8366
|
-
const
|
|
8367
|
-
return { id: m.id, distance:
|
|
8368
|
-
}).sort((m,
|
|
8366
|
+
const g = yl(l, m.points);
|
|
8367
|
+
return { id: m.id, distance: g.distanceTo(l) };
|
|
8368
|
+
}).sort((m, g) => m.distance - g.distance)[0];
|
|
8369
8369
|
if (h.distance > 20)
|
|
8370
8370
|
return;
|
|
8371
8371
|
const d = this.model.getAllLines().find(({ id: m }) => m === h.id);
|
|
@@ -8515,8 +8515,8 @@ void main() {
|
|
|
8515
8515
|
}
|
|
8516
8516
|
`;
|
|
8517
8517
|
function El(i) {
|
|
8518
|
-
var
|
|
8519
|
-
const t = (
|
|
8518
|
+
var A, b;
|
|
8519
|
+
const t = (A = i.isMobile) != null ? A : !0, e = (b = i.useNormalVector) != null ? b : !0;
|
|
8520
8520
|
let n = 10349931;
|
|
8521
8521
|
e && i.ballColor >= 0 && (n = i.ballColor);
|
|
8522
8522
|
const o = new Gt(), s = new vc(0.3, 0.3), r = t ? em : tm, a = new Ea().load(r);
|
|
@@ -8532,12 +8532,12 @@ function El(i) {
|
|
|
8532
8532
|
fragmentShader: im,
|
|
8533
8533
|
depthTest: !1,
|
|
8534
8534
|
transparent: !0
|
|
8535
|
-
}), m = new An(h, d),
|
|
8535
|
+
}), m = new An(h, d), g = new Cc(0.01, 20, 20), p = new Cn({
|
|
8536
8536
|
color: n,
|
|
8537
8537
|
depthTest: !1,
|
|
8538
8538
|
transparent: !0,
|
|
8539
8539
|
side: Pa
|
|
8540
|
-
}), v = new An(
|
|
8540
|
+
}), v = new An(g, p);
|
|
8541
8541
|
return v.position.set(0, 0, 0.1), o.name = "mouse-current", o.add(c), e && o.add(m, v), o;
|
|
8542
8542
|
}
|
|
8543
8543
|
class om {
|
|
@@ -8669,18 +8669,18 @@ class un extends ki {
|
|
|
8669
8669
|
if (!n)
|
|
8670
8670
|
return;
|
|
8671
8671
|
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Ne(s.x * r, s.y * a), c = this.polyline.lines.map((m) => {
|
|
8672
|
-
const [
|
|
8673
|
-
if (!Dn(v) && !Dn(
|
|
8672
|
+
const [g, p] = m.points, v = g.position.clone().project(o), A = p.position.clone().project(o);
|
|
8673
|
+
if (!Dn(v) && !Dn(A))
|
|
8674
8674
|
return null;
|
|
8675
|
-
const b = new Ne(v.x * r, v.y * a), w = new Ne(
|
|
8675
|
+
const b = new Ne(v.x * r, v.y * a), w = new Ne(A.x * r, A.y * a);
|
|
8676
8676
|
return { id: m.id, points: [b, w] };
|
|
8677
8677
|
}).filter((m) => !!m);
|
|
8678
8678
|
if (c.length === 0)
|
|
8679
8679
|
return;
|
|
8680
8680
|
const h = c.map((m) => {
|
|
8681
|
-
const
|
|
8682
|
-
return { id: m.id, distance:
|
|
8683
|
-
}).sort((m,
|
|
8681
|
+
const g = yl(l, m.points);
|
|
8682
|
+
return { id: m.id, distance: g.distanceTo(l) };
|
|
8683
|
+
}).sort((m, g) => m.distance - g.distance)[0];
|
|
8684
8684
|
if (h.distance > 20)
|
|
8685
8685
|
return;
|
|
8686
8686
|
const d = this.polyline.lines.find(({ id: m }) => m === h.id);
|
|
@@ -9501,28 +9501,28 @@ function km(i) {
|
|
|
9501
9501
|
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)}}");
|
|
9502
9502
|
}
|
|
9503
9503
|
function xm(i) {
|
|
9504
|
-
let t, e, n, o, s, r, a, l, c, u, h, d, m,
|
|
9504
|
+
let t, e, n, o, s, r, a, l, c, u, h, d, m, g, p;
|
|
9505
9505
|
return {
|
|
9506
9506
|
c() {
|
|
9507
9507
|
t = B("div"), e = B("div"), n = $(), o = B("div"), s = B("i"), r = $(), a = B("i"), l = $(), c = B("i"), u = $(), h = B("div"), d = B("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(d, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), y(h, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), T(h, "transform", "scale(" + i[3] * 3 + ")"), y(t, "id", m = "PanoSpatialTagPlugin__" + i[0]), T(t, "height", 20 * i[5] + "rem"), y(t, "class", "svelte-1i5h9zh"), U(t, "PanoSpatialTagPlugin__tag-x", !0), U(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), U(t, "PanoSpatialTagPlugin__tag-show", i[10]), U(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
|
|
9508
9508
|
},
|
|
9509
|
-
m(v,
|
|
9510
|
-
M(v, t,
|
|
9509
|
+
m(v, A) {
|
|
9510
|
+
M(v, t, A), 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, h), j(h, d), d.innerHTML = i[2], i[16](d), g || (p = me(d, "click", i[11]), g = !0);
|
|
9511
9511
|
},
|
|
9512
|
-
p(v, [
|
|
9513
|
-
|
|
9512
|
+
p(v, [A]) {
|
|
9513
|
+
A & 394 && T(e, "transform", "translate(" + v[7] / 2 * v[3] * 3 + "px, " + v[8] / 2 * (v[1] ? -1 : 1) * v[3] * 3 + "px) scale(" + 1 / v[3] + ")"), A & 16 && T(s, "width", v[4] + "rem"), A & 4 && (d.innerHTML = v[2]), A & 8 && T(h, "transform", "scale(" + v[3] * 3 + ")"), A & 1 && m !== (m = "PanoSpatialTagPlugin__" + v[0]) && y(t, "id", m), A & 32 && T(t, "height", 20 * v[5] + "rem"), A & 2 && U(t, "PanoSpatialTagPlugin__tag-upside-down", v[1]), A & 1024 && U(t, "PanoSpatialTagPlugin__tag-show", v[10]), A & 1088 && U(t, "PanoSpatialTagPlugin__tag-hide", v[10] === !1 || v[6]);
|
|
9514
9514
|
},
|
|
9515
9515
|
i: N,
|
|
9516
9516
|
o: N,
|
|
9517
9517
|
d(v) {
|
|
9518
|
-
v && S(t), i[16](null),
|
|
9518
|
+
v && S(t), i[16](null), g = !1, p();
|
|
9519
9519
|
}
|
|
9520
9520
|
};
|
|
9521
9521
|
}
|
|
9522
9522
|
function Dm(i, t, e) {
|
|
9523
|
-
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: h } = t, { events: d } = t, { hooks: m } = t,
|
|
9523
|
+
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: h } = t, { events: d } = t, { hooks: m } = t, g = 0, p = 0, v, A, b = setTimeout(
|
|
9524
9524
|
() => {
|
|
9525
|
-
u || e(10,
|
|
9525
|
+
u || e(10, A = !0), b = void 0;
|
|
9526
9526
|
},
|
|
9527
9527
|
100
|
|
9528
9528
|
);
|
|
@@ -9551,7 +9551,7 @@ function Dm(i, t, e) {
|
|
|
9551
9551
|
if (C === null)
|
|
9552
9552
|
return;
|
|
9553
9553
|
const [L, x] = C.split("-PanoSpatialTagPlugin-");
|
|
9554
|
-
n === L && (m.emit("clickOrigin", { id: n, show:
|
|
9554
|
+
n === L && (m.emit("clickOrigin", { id: n, show: A }), b || (e(10, A = u), e(12, u = !u), b = setTimeout(
|
|
9555
9555
|
() => {
|
|
9556
9556
|
b = void 0;
|
|
9557
9557
|
},
|
|
@@ -9559,7 +9559,7 @@ function Dm(i, t, e) {
|
|
|
9559
9559
|
)));
|
|
9560
9560
|
});
|
|
9561
9561
|
_a(() => {
|
|
9562
|
-
e(7,
|
|
9562
|
+
e(7, g = v.offsetWidth), e(8, p = v.offsetHeight), !b && e(10, A = !u);
|
|
9563
9563
|
}), Pt(() => {
|
|
9564
9564
|
m.emit("destroyTag", { id: n }), k(), h();
|
|
9565
9565
|
});
|
|
@@ -9578,10 +9578,10 @@ function Dm(i, t, e) {
|
|
|
9578
9578
|
a,
|
|
9579
9579
|
l,
|
|
9580
9580
|
c,
|
|
9581
|
-
|
|
9581
|
+
g,
|
|
9582
9582
|
p,
|
|
9583
9583
|
v,
|
|
9584
|
-
|
|
9584
|
+
A,
|
|
9585
9585
|
w,
|
|
9586
9586
|
u,
|
|
9587
9587
|
h,
|
|
@@ -9762,8 +9762,8 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9762
9762
|
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 = (ge = t == null ? void 0 : t.upsideHeight) != null ? ge : 1.6, c = (Ce = t == null ? void 0 : t.minDistance) != null ? Ce : 1.2, u = (Ie = t == null ? void 0 : t.maxDistance) != null ? Ie : 3.5, h = Tn(i), d = document.createElement("div");
|
|
9763
9763
|
d.classList.add("PanoSpatialTagPlugin"), Object.assign(d.style, Sm);
|
|
9764
9764
|
const m = new Ue();
|
|
9765
|
-
let
|
|
9766
|
-
|
|
9765
|
+
let g = new Image();
|
|
9766
|
+
g.src = jm;
|
|
9767
9767
|
const p = {
|
|
9768
9768
|
points: [],
|
|
9769
9769
|
origins: [],
|
|
@@ -9777,7 +9777,7 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9777
9777
|
}, v = new Im({
|
|
9778
9778
|
target: d,
|
|
9779
9779
|
props: { origins: p.origins }
|
|
9780
|
-
}),
|
|
9780
|
+
}), A = (ce, Ae) => {
|
|
9781
9781
|
I(), Ae && C();
|
|
9782
9782
|
}, b = () => {
|
|
9783
9783
|
p.forbidden && (p.forbidden = !1, C());
|
|
@@ -9973,11 +9973,11 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9973
9973
|
}, X = () => {
|
|
9974
9974
|
i.once("renderFrame", I);
|
|
9975
9975
|
}, W = () => {
|
|
9976
|
-
e || (e = i.getElement().parentElement), e && e.appendChild(d), p.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", k), i.on("cameraUpdate",
|
|
9976
|
+
e || (e = i.getElement().parentElement), e && e.appendChild(d), p.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", k), i.on("cameraUpdate", A);
|
|
9977
9977
|
}, ee = () => {
|
|
9978
|
-
|
|
9978
|
+
g = null, h.disposeAll(), v.$destroy(), p.tags.forEach((ce) => {
|
|
9979
9979
|
ce.app.$destroy(), ce = null;
|
|
9980
|
-
}), p.origins = [], p.tags = [], i.off("modelLoaded", W), i.off("renderFrame", I), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", k), i.off("cameraUpdate",
|
|
9980
|
+
}), p.origins = [], p.tags = [], i.off("modelLoaded", W), i.off("renderFrame", I), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", k), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", X, !1);
|
|
9981
9981
|
};
|
|
9982
9982
|
return window.addEventListener("resize", X, !1), (Me = i == null ? void 0 : i.model) != null && Me.loaded ? W() : i.once("modelLoaded", W), i.on("dispose", ee), {
|
|
9983
9983
|
load: x,
|
|
@@ -10124,16 +10124,16 @@ function Hm(i) {
|
|
|
10124
10124
|
let Zs = 26, Gm = 11;
|
|
10125
10125
|
function Wm(i, t, e) {
|
|
10126
10126
|
const { Raycaster: n, Vector3: o } = E;
|
|
10127
|
-
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, h = null, d, m,
|
|
10127
|
+
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, h = null, d, m, g = [], p = !0;
|
|
10128
10128
|
const v = (z, R) => {
|
|
10129
10129
|
const G = new n(), X = z.camera.position.clone(), W = new o().fromArray(R.modelPosition), ee = W.distanceTo(X);
|
|
10130
10130
|
G.set(X.clone(), W.clone().sub(X).normalize());
|
|
10131
10131
|
const [Y] = z.model.intersectRaycaster(G);
|
|
10132
10132
|
return !(Y && Y.distance + 1 < ee);
|
|
10133
|
-
},
|
|
10133
|
+
}, A = (z, R) => {
|
|
10134
10134
|
const G = new o(R.modelPosition[0], R.modelPosition[1], R.modelPosition[2]), X = z.project2d(G), W = X == null ? void 0 : X.x, ee = X == null ? void 0 : X.y;
|
|
10135
10135
|
return [W, ee];
|
|
10136
|
-
}, b = (z) => `translate(${z[0]}px, ${z[1]}px)`, w = (z, R) =>
|
|
10136
|
+
}, b = (z) => `translate(${z[0]}px, ${z[1]}px)`, w = (z, R) => g.length === 0 ? !1 : !!g.find((X) => z[0] >= X[0] - R && z[0] <= X[0] + R || z[1] >= X[1] - Zs && z[1] <= X[1] + Zs);
|
|
10137
10137
|
function k(z, R) {
|
|
10138
10138
|
switch (R) {
|
|
10139
10139
|
case Rt.SMALL:
|
|
@@ -10148,10 +10148,10 @@ function Wm(i, t, e) {
|
|
|
10148
10148
|
}
|
|
10149
10149
|
const I = (z, R) => {
|
|
10150
10150
|
const G = R.map((W) => {
|
|
10151
|
-
const ee =
|
|
10151
|
+
const ee = A(z, W), Y = W.name.length * Gm, ae = k(W.modelPosition[1], c), de = (r ? v(z, W) : !0) && !w([ee[0], ee[1] + ae], Y);
|
|
10152
10152
|
if (!de)
|
|
10153
10153
|
return fe(Q({}, W), { visible: de });
|
|
10154
|
-
|
|
10154
|
+
g.push(ee);
|
|
10155
10155
|
const ge = b(ee);
|
|
10156
10156
|
return fe(Q({}, W), {
|
|
10157
10157
|
visible: de,
|
|
@@ -10167,7 +10167,7 @@ function Wm(i, t, e) {
|
|
|
10167
10167
|
return ee !== void 0 ? fe(Q({}, W), { zIndex: ee * 10 }) : W;
|
|
10168
10168
|
});
|
|
10169
10169
|
}, C = () => {
|
|
10170
|
-
|
|
10170
|
+
g = [], e(1, h = I(s, h));
|
|
10171
10171
|
};
|
|
10172
10172
|
Wa(() => {
|
|
10173
10173
|
_();
|
|
@@ -10257,15 +10257,15 @@ const jb = (i, t) => {
|
|
|
10257
10257
|
height: 100%;
|
|
10258
10258
|
z-index: 5;
|
|
10259
10259
|
`, e.container.style.pointerEvents = "none";
|
|
10260
|
-
const n = (
|
|
10261
|
-
e.itemLabels = Nm(
|
|
10260
|
+
const n = (g) => (e.wrapper = g, g.appendChild(e.container), l(), !0), o = (g) => {
|
|
10261
|
+
e.itemLabels = Nm(g), l();
|
|
10262
10262
|
}, s = () => (e.enabled || (e.enabled = !0, l()), !0), r = () => (e.enabled && (e.enabled = !1, l()), !0), a = () => {
|
|
10263
10263
|
u(), e.container.remove();
|
|
10264
10264
|
}, l = () => {
|
|
10265
|
-
var
|
|
10265
|
+
var g;
|
|
10266
10266
|
if (!!e.wrapper) {
|
|
10267
10267
|
if (!e.enabled || !e.fiveModeEnabled) {
|
|
10268
|
-
(
|
|
10268
|
+
(g = e.app) == null || g.$destroy(), e.app = void 0;
|
|
10269
10269
|
return;
|
|
10270
10270
|
}
|
|
10271
10271
|
e.app ? e.app.$set({
|
|
@@ -10287,9 +10287,9 @@ const jb = (i, t) => {
|
|
|
10287
10287
|
i.on("modeChange", h), i.once("dispose", a);
|
|
10288
10288
|
}, u = () => {
|
|
10289
10289
|
i.off("modeChange", h);
|
|
10290
|
-
}, h = (
|
|
10290
|
+
}, h = (g) => {
|
|
10291
10291
|
if (!!e.enabled) {
|
|
10292
|
-
if (
|
|
10292
|
+
if (g !== Ve.Mode.Floorplan) {
|
|
10293
10293
|
e.fiveModeEnabled = !1, l();
|
|
10294
10294
|
return;
|
|
10295
10295
|
}
|
|
@@ -10335,13 +10335,13 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10335
10335
|
rectPoints: [],
|
|
10336
10336
|
enabled: !1,
|
|
10337
10337
|
videoElement: t
|
|
10338
|
-
}, n = Tn(i), o = /* @__PURE__ */ new Map(), s = (
|
|
10339
|
-
e.videoTexture && (e.videoTexture.image.muted =
|
|
10338
|
+
}, n = Tn(i), o = /* @__PURE__ */ new Map(), s = (A) => {
|
|
10339
|
+
e.videoTexture && (e.videoTexture.image.muted = A);
|
|
10340
10340
|
}, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
|
|
10341
10341
|
if (e.enabled || !e.videoTexture)
|
|
10342
10342
|
return;
|
|
10343
10343
|
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((b) => i.scene.add(b));
|
|
10344
|
-
const
|
|
10344
|
+
const A = () => {
|
|
10345
10345
|
if (!e.videoTexture)
|
|
10346
10346
|
return;
|
|
10347
10347
|
const b = () => {
|
|
@@ -10359,30 +10359,30 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10359
10359
|
});
|
|
10360
10360
|
};
|
|
10361
10361
|
if (i.model.loaded)
|
|
10362
|
-
|
|
10362
|
+
A();
|
|
10363
10363
|
else
|
|
10364
|
-
return i.once("modelLoaded", () =>
|
|
10364
|
+
return i.once("modelLoaded", () => A());
|
|
10365
10365
|
}, l = () => {
|
|
10366
|
-
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((
|
|
10367
|
-
|
|
10366
|
+
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((A) => {
|
|
10367
|
+
A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
|
|
10368
10368
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
10369
|
-
}, c = () => e.rectPoints.map((
|
|
10369
|
+
}, c = () => e.rectPoints.map((A, b) => {
|
|
10370
10370
|
const w = new E.BufferGeometry(), k = 128, I = [];
|
|
10371
|
-
I.push(...
|
|
10371
|
+
I.push(...A[0].toArray());
|
|
10372
10372
|
for (let z = 1; z < k; z++)
|
|
10373
10373
|
I.push(
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10374
|
+
A[0].x + (A[1].x - A[0].x) * z / k,
|
|
10375
|
+
A[0].y + (A[1].y - A[0].y) * z / k,
|
|
10376
|
+
A[0].z + (A[1].z - A[0].z) * z / k
|
|
10377
10377
|
);
|
|
10378
|
-
I.push(...
|
|
10378
|
+
I.push(...A[1].toArray()), I.push(...A[2].toArray());
|
|
10379
10379
|
for (let z = 1; z < k; z++)
|
|
10380
10380
|
I.push(
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10381
|
+
A[2].x + (A[3].x - A[2].x) * z / k,
|
|
10382
|
+
A[2].y + (A[3].y - A[2].y) * z / k,
|
|
10383
|
+
A[2].z + (A[3].z - A[2].z) * z / k
|
|
10384
10384
|
);
|
|
10385
|
-
I.push(...
|
|
10385
|
+
I.push(...A[3].toArray());
|
|
10386
10386
|
const C = [];
|
|
10387
10387
|
C.push(0, 1);
|
|
10388
10388
|
for (let z = 1; z < k; z++)
|
|
@@ -10402,7 +10402,7 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10402
10402
|
side: E.DoubleSide
|
|
10403
10403
|
}), _ = new E.Mesh(w, F);
|
|
10404
10404
|
_.renderOrder = 1, _.name = `ModelTVVideoPlugin-${b}-${performance.now()}`;
|
|
10405
|
-
const O = [
|
|
10405
|
+
const O = [A[1], A[2], A[3], A[0]], V = n.create3DDomContainer(O);
|
|
10406
10406
|
if (V != null && V.container) {
|
|
10407
10407
|
const z = document.createElement("div");
|
|
10408
10408
|
z.classList.add("play-icon"), z.style.width = "100%", z.style.height = "100%", z.style.display = "flex", z.style.justifyContent = "center", z.style.alignItems = "center", z.style.pointerEvents = "none", V.container.appendChild(z);
|
|
@@ -10412,10 +10412,10 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10412
10412
|
}, z.appendChild(R), o.set(_, V);
|
|
10413
10413
|
}
|
|
10414
10414
|
return _;
|
|
10415
|
-
}), u = (
|
|
10416
|
-
const b = new E.TextureLoader().load(
|
|
10415
|
+
}), u = (A) => {
|
|
10416
|
+
const b = new E.TextureLoader().load(A);
|
|
10417
10417
|
return b.minFilter = E.LinearFilter, b.magFilter = E.LinearFilter, b.format = E.RGBFormat, b;
|
|
10418
|
-
}, h = (
|
|
10418
|
+
}, h = (A, b) => new Promise((w, k) => {
|
|
10419
10419
|
const I = new XMLHttpRequest();
|
|
10420
10420
|
I.onreadystatechange = () => {
|
|
10421
10421
|
if (I.readyState == 4)
|
|
@@ -10423,48 +10423,48 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10423
10423
|
const C = window.URL || window.webkitURL;
|
|
10424
10424
|
b = b || document.createElement("video"), b.crossOrigin = "anonymous", b.muted = !0, b.loop = !0, b.playsInline = !0, b.src = C.createObjectURL(I.response);
|
|
10425
10425
|
const L = new E.VideoTexture(b);
|
|
10426
|
-
L.minFilter = E.LinearFilter, L.magFilter = E.LinearFilter, L.format = E.RGBFormat, w(Object.assign(L, { videoSource:
|
|
10426
|
+
L.minFilter = E.LinearFilter, L.magFilter = E.LinearFilter, L.format = E.RGBFormat, w(Object.assign(L, { videoSource: A }));
|
|
10427
10427
|
} else
|
|
10428
10428
|
k(new Error("Video download Error: " + I.status));
|
|
10429
|
-
}, I.onerror = (C) => k(C), I.open("GET",
|
|
10430
|
-
}), d = (
|
|
10431
|
-
const { video_src: w, video_poster_src: k, points: I } =
|
|
10432
|
-
e.videoSource = w, e.rectPoints = Xm(I).map((C) => C.map(({ x: L, y: x, z: F }) => new E.Vector3(L, x, F))), e.imageTexture = u(k), b && (e.videoElement = b), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!
|
|
10433
|
-
}), m = (
|
|
10429
|
+
}, I.onerror = (C) => k(C), I.open("GET", A), I.responseType = "blob", I.send();
|
|
10430
|
+
}), d = (A, b) => H(void 0, null, function* () {
|
|
10431
|
+
const { video_src: w, video_poster_src: k, points: I } = A;
|
|
10432
|
+
e.videoSource = w, e.rectPoints = Xm(I).map((C) => C.map(({ x: L, y: x, z: F }) => new E.Vector3(L, x, F))), e.imageTexture = u(k), b && (e.videoElement = b), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
10433
|
+
}), m = (A) => {
|
|
10434
10434
|
if (!e.enabled)
|
|
10435
10435
|
return;
|
|
10436
10436
|
const b = e.videoMeshes;
|
|
10437
|
-
if (!(!b ||
|
|
10437
|
+
if (!(!b || A.intersectObjects(b).length === 0))
|
|
10438
10438
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
10439
|
-
},
|
|
10440
|
-
|
|
10439
|
+
}, g = (A) => {
|
|
10440
|
+
A === "Floorplan" ? n.hide() : n.show();
|
|
10441
10441
|
}, p = () => {
|
|
10442
10442
|
if (!e.enabled)
|
|
10443
10443
|
return;
|
|
10444
|
-
const
|
|
10444
|
+
const A = i.camera.position;
|
|
10445
10445
|
if (o.forEach((b, w) => {
|
|
10446
|
-
const k = b.css3DObject.position.clone(), I = k.clone().sub(
|
|
10446
|
+
const k = b.css3DObject.position.clone(), I = k.clone().sub(A).normalize(), C = new E.Raycaster(A, I), L = i.model.intersectRaycaster(C)[0], x = k.distanceTo(A), F = 0.01;
|
|
10447
10447
|
L && L.distance + F < x ? b.hide() : b.show();
|
|
10448
10448
|
}), !r()) {
|
|
10449
10449
|
const b = e.rectPoints.find((w) => {
|
|
10450
10450
|
const k = w[0].clone().add(w[1]).add(w[2]).add(w[3]).divideScalar(4);
|
|
10451
10451
|
return w.map((I) => I.clone().add(k).divideScalar(2)).filter((I) => {
|
|
10452
|
-
const C = I.distanceTo(
|
|
10452
|
+
const C = I.distanceTo(A), L = new E.Raycaster(A, I.clone().sub(A).normalize()), x = i.model.intersectRaycaster(L)[0], F = 0.01;
|
|
10453
10453
|
return !(x && x.distance + F < C);
|
|
10454
10454
|
}).length >= 2;
|
|
10455
10455
|
});
|
|
10456
10456
|
(!b || b.length === 0) && s(!0);
|
|
10457
10457
|
}
|
|
10458
10458
|
}, v = () => {
|
|
10459
|
-
l(), e.videoTexture = void 0, i.off("modeChange",
|
|
10460
|
-
e.videoMeshes.forEach((
|
|
10461
|
-
|
|
10459
|
+
l(), e.videoTexture = void 0, i.off("modeChange", g), i.off("wantsTapGesture", m), i.off("panoArrived", p), i.off("renderFrame", () => {
|
|
10460
|
+
e.videoMeshes.forEach((A) => {
|
|
10461
|
+
A && (A.needsRender = !0);
|
|
10462
10462
|
});
|
|
10463
10463
|
});
|
|
10464
10464
|
};
|
|
10465
|
-
return i.on("modeChange",
|
|
10466
|
-
e.videoMeshes.forEach((
|
|
10467
|
-
|
|
10465
|
+
return i.on("modeChange", g), i.on("wantsTapGesture", m), i.on("panoArrived", p), i.on("renderFrame", () => {
|
|
10466
|
+
e.videoMeshes.forEach((A) => {
|
|
10467
|
+
A && (A.needsRender = !0);
|
|
10468
10468
|
});
|
|
10469
10469
|
}), { enable: a, disable: l, load: d, dispose: v, state: e, css3DRenderPlugin: n };
|
|
10470
10470
|
};
|
|
@@ -10524,8 +10524,8 @@ function Ks(i) {
|
|
|
10524
10524
|
}
|
|
10525
10525
|
function Jm(i) {
|
|
10526
10526
|
let t, e, n, o, s, r, a, l, c, u;
|
|
10527
|
-
function h(
|
|
10528
|
-
return p & 1 && (n = null), n == null && (n = !!Boolean(typeof
|
|
10527
|
+
function h(g, p) {
|
|
10528
|
+
return p & 1 && (n = null), n == null && (n = !!Boolean(typeof g[0].render == "function")), n ? qm : Um;
|
|
10529
10529
|
}
|
|
10530
10530
|
let d = h(i, -1), m = d(i);
|
|
10531
10531
|
return {
|
|
@@ -10534,18 +10534,18 @@ function Jm(i) {
|
|
|
10534
10534
|
"item-label-item__custom": Boolean(typeof i[0].render == "function")
|
|
10535
10535
|
})) + " svelte-gduhqw"), T(e, "bottom", `${i[0].strokeLength}px`), y(r, "class", a = Pe(Oe("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), T(r, "height", `${i[0].strokeLength}px`), y(t, "class", l = Pe(Oe("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform);
|
|
10536
10536
|
},
|
|
10537
|
-
m(
|
|
10538
|
-
M(
|
|
10537
|
+
m(g, p) {
|
|
10538
|
+
M(g, t, p), j(t, e), m.m(e, null), j(t, s), j(t, r), c || (u = me(e, "click", i[4]), c = !0);
|
|
10539
10539
|
},
|
|
10540
|
-
p(
|
|
10541
|
-
d === (d = h(
|
|
10542
|
-
"item-label-item__custom": Boolean(typeof
|
|
10543
|
-
})) + " svelte-gduhqw") && y(e, "class", o), p & 1 && T(e, "bottom", `${
|
|
10540
|
+
p(g, [p]) {
|
|
10541
|
+
d === (d = h(g, p)) && m ? m.p(g, p) : (m.d(1), m = d(g), m && (m.c(), m.m(e, null))), p & 1 && o !== (o = Pe(Oe("item-label-item__text-wrap", {
|
|
10542
|
+
"item-label-item__custom": Boolean(typeof g[0].render == "function")
|
|
10543
|
+
})) + " svelte-gduhqw") && y(e, "class", o), p & 1 && T(e, "bottom", `${g[0].strokeLength}px`), p & 2 && a !== (a = Pe(Oe("item-label-item__bar", { anchor: g[1] })) + " svelte-gduhqw") && y(r, "class", a), p & 1 && T(r, "height", `${g[0].strokeLength}px`), p & 1 && l !== (l = Pe(Oe("item-label-item", { fold: g[0].isFold })) + " svelte-gduhqw") && y(t, "class", l), p & 1 && T(t, "z-index", g[0].zIndex), p & 1 && T(t, "transform", g[0].transform);
|
|
10544
10544
|
},
|
|
10545
10545
|
i: N,
|
|
10546
10546
|
o: N,
|
|
10547
|
-
d(
|
|
10548
|
-
|
|
10547
|
+
d(g) {
|
|
10548
|
+
g && S(t), m.d(), c = !1, u();
|
|
10549
10549
|
}
|
|
10550
10550
|
};
|
|
10551
10551
|
}
|
|
@@ -10734,7 +10734,7 @@ function ip(i) {
|
|
|
10734
10734
|
let op = 11;
|
|
10735
10735
|
function sp(i, t, e) {
|
|
10736
10736
|
const { Raycaster: n, Vector3: o } = E;
|
|
10737
|
-
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, m = (s == null ? void 0 : s.currentMode) === Ve.Mode.Panorama,
|
|
10737
|
+
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, m = (s == null ? void 0 : s.currentMode) === Ve.Mode.Panorama, g, p, v = [], A = !0;
|
|
10738
10738
|
const b = (G, X) => {
|
|
10739
10739
|
const W = G.camera.position.clone(), ee = new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]), Y = ee.distanceTo(W);
|
|
10740
10740
|
return u !== void 0 && G.state.mode === Ve.Mode.Panorama && Y > u ? !1 : $s(G, ee.clone().sub(W).normalize(), W, Y);
|
|
@@ -10771,10 +10771,10 @@ function sp(i, t, e) {
|
|
|
10771
10771
|
}, C = () => {
|
|
10772
10772
|
v = [], e(1, d = I(s, d));
|
|
10773
10773
|
}, L = () => {
|
|
10774
|
-
e(5,
|
|
10774
|
+
e(5, A = !1), x();
|
|
10775
10775
|
}, x = Dl(
|
|
10776
10776
|
() => {
|
|
10777
|
-
e(5,
|
|
10777
|
+
e(5, A = !0), C();
|
|
10778
10778
|
},
|
|
10779
10779
|
300
|
|
10780
10780
|
), F = () => {
|
|
@@ -10828,7 +10828,7 @@ function sp(i, t, e) {
|
|
|
10828
10828
|
s.off("cameraUpdate", L), window.removeEventListener("resize", F, !1);
|
|
10829
10829
|
});
|
|
10830
10830
|
function R() {
|
|
10831
|
-
|
|
10831
|
+
g = this.clientWidth, p = this.clientHeight, e(3, g), e(4, p);
|
|
10832
10832
|
}
|
|
10833
10833
|
return i.$$set = (G) => {
|
|
10834
10834
|
"five" in G && e(7, s = G.five), "modelOcclusionEnable" in G && e(8, r = G.modelOcclusionEnable), "itemLabels" in G && e(9, a = G.itemLabels), "hooks" in G && e(0, l = G.hooks), "displayStrategyType" in G && e(10, c = G.displayStrategyType), "maxVisibleDistance" in G && e(11, u = G.maxVisibleDistance);
|
|
@@ -10836,9 +10836,9 @@ function sp(i, t, e) {
|
|
|
10836
10836
|
l,
|
|
10837
10837
|
d,
|
|
10838
10838
|
m,
|
|
10839
|
-
A,
|
|
10840
|
-
p,
|
|
10841
10839
|
g,
|
|
10840
|
+
p,
|
|
10841
|
+
A,
|
|
10842
10842
|
z,
|
|
10843
10843
|
s,
|
|
10844
10844
|
r,
|
|
@@ -10876,7 +10876,7 @@ function ap(i) {
|
|
|
10876
10876
|
}));
|
|
10877
10877
|
}
|
|
10878
10878
|
const lp = void 0, Rb = (i, t) => {
|
|
10879
|
-
var d, m,
|
|
10879
|
+
var d, m, g, p;
|
|
10880
10880
|
const e = {
|
|
10881
10881
|
container: document.createElement("div"),
|
|
10882
10882
|
data: null,
|
|
@@ -10888,7 +10888,7 @@ const lp = void 0, Rb = (i, t) => {
|
|
|
10888
10888
|
hooks: new Ue(),
|
|
10889
10889
|
modelOcclusionEnable: (d = t == null ? void 0 : t.modelOcclusionEnable) != null ? d : !0,
|
|
10890
10890
|
onlyVisibleInPanorama: (m = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? m : !0,
|
|
10891
|
-
displayStrategyType: (
|
|
10891
|
+
displayStrategyType: (g = t == null ? void 0 : t.displayStrategyType) != null ? g : Ft.SMALL,
|
|
10892
10892
|
maxVisibleDistance: (p = t == null ? void 0 : t.maxVisibleDistance) != null ? p : lp
|
|
10893
10893
|
};
|
|
10894
10894
|
e.container.setAttribute("class", "item-label-plugin-container"), e.container.style.cssText = `
|
|
@@ -11020,9 +11020,9 @@ function hp(i, t, e) {
|
|
|
11020
11020
|
const m = () => {
|
|
11021
11021
|
if (!r || !a || !l || !s)
|
|
11022
11022
|
return;
|
|
11023
|
-
const v = s.current.clientWidth / window.innerWidth * 100,
|
|
11024
|
-
r <= v / 2 || r >= 100 - v / 2 || a <=
|
|
11025
|
-
},
|
|
11023
|
+
const v = s.current.clientWidth / window.innerWidth * 100, A = s.current.clientHeight / window.innerHeight * 100;
|
|
11024
|
+
r <= v / 2 || r >= 100 - v / 2 || a <= A / 2 || a >= 100 - A / 2;
|
|
11025
|
+
}, g = (v) => {
|
|
11026
11026
|
o && o();
|
|
11027
11027
|
};
|
|
11028
11028
|
function p(v) {
|
|
@@ -11042,7 +11042,7 @@ function hp(i, t, e) {
|
|
|
11042
11042
|
c,
|
|
11043
11043
|
h,
|
|
11044
11044
|
d,
|
|
11045
|
-
|
|
11045
|
+
g,
|
|
11046
11046
|
p
|
|
11047
11047
|
];
|
|
11048
11048
|
}
|
|
@@ -11123,8 +11123,8 @@ class bp extends cp {
|
|
|
11123
11123
|
return;
|
|
11124
11124
|
const d = new Mt(), m = u.clone().sub(s).normalize();
|
|
11125
11125
|
d.set(s, m);
|
|
11126
|
-
const [
|
|
11127
|
-
|
|
11126
|
+
const [g] = this.five.model.intersectRaycaster(d);
|
|
11127
|
+
g && g.distance + 0.1 < h || a.push(c);
|
|
11128
11128
|
}), this.visibleLabelMap.set(e, a), a;
|
|
11129
11129
|
}
|
|
11130
11130
|
})();
|
|
@@ -11133,7 +11133,7 @@ class bp extends cp {
|
|
|
11133
11133
|
}), this.fixDoorPosition();
|
|
11134
11134
|
});
|
|
11135
11135
|
f(this, "fixDoorPosition", () => {
|
|
11136
|
-
var u, h, d, m,
|
|
11136
|
+
var u, h, d, m, g, p, v, A, b, w, k, I;
|
|
11137
11137
|
const { panoIndex: e, camera: n } = this.five;
|
|
11138
11138
|
if (e === null)
|
|
11139
11139
|
return;
|
|
@@ -11157,11 +11157,11 @@ class bp extends cp {
|
|
|
11157
11157
|
left: s * F / 100,
|
|
11158
11158
|
top: r * _ / 100,
|
|
11159
11159
|
width: (d = (h = (u = R.children) == null ? void 0 : u[0]) == null ? void 0 : h.clientWidth) != null ? d : 0,
|
|
11160
|
-
height: (p = (
|
|
11160
|
+
height: (p = (g = (m = R.children) == null ? void 0 : m[0]) == null ? void 0 : g.clientHeight) != null ? p : 0
|
|
11161
11161
|
}, W = {
|
|
11162
11162
|
left: s * V / 100,
|
|
11163
11163
|
top: r * z / 100,
|
|
11164
|
-
width: (b = (
|
|
11164
|
+
width: (b = (A = (v = G.children) == null ? void 0 : v[0]) == null ? void 0 : A.clientWidth) != null ? b : 0,
|
|
11165
11165
|
height: (I = (k = (w = G.children) == null ? void 0 : w[0]) == null ? void 0 : k.clientHeight) != null ? I : 0
|
|
11166
11166
|
};
|
|
11167
11167
|
mp(X, W) && (C++, c[x].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[O].transform = `translate(-50%, ${C * 100 - 50}%)`);
|
|
@@ -11201,18 +11201,18 @@ class bp extends cp {
|
|
|
11201
11201
|
const h = u.position;
|
|
11202
11202
|
let d = 1 / 0, m;
|
|
11203
11203
|
l.forEach((p) => {
|
|
11204
|
-
const v = p.standingPosition,
|
|
11204
|
+
const v = p.standingPosition, A = {
|
|
11205
11205
|
x: v.x,
|
|
11206
11206
|
y: v.y,
|
|
11207
11207
|
z: v.z
|
|
11208
|
-
}, b = gp(h,
|
|
11209
|
-
b < d && (d = b, m =
|
|
11208
|
+
}, b = gp(h, A);
|
|
11209
|
+
b < d && (d = b, m = A);
|
|
11210
11210
|
}), m && (h.y = m.y + 0.01);
|
|
11211
|
-
const
|
|
11212
|
-
|
|
11211
|
+
const g = new q(h.x, h.y, h.z);
|
|
11212
|
+
g.add(new q(-0.2, 1.8, 0).applyEuler(new Ro(0, u.rad, 0))), this.doorLabels.push({
|
|
11213
11213
|
roomName: r.name,
|
|
11214
11214
|
name: u.name,
|
|
11215
|
-
position:
|
|
11215
|
+
position: g,
|
|
11216
11216
|
toward: Ap(u.rad)
|
|
11217
11217
|
});
|
|
11218
11218
|
});
|
|
@@ -11276,18 +11276,18 @@ function Pp(i, t) {
|
|
|
11276
11276
|
const c = Math.ceil(s.getLength() / n * 1.5), u = s.getPoints(c), h = [];
|
|
11277
11277
|
let d = 0;
|
|
11278
11278
|
const m = i;
|
|
11279
|
-
return m.forEach((
|
|
11280
|
-
let v = 0,
|
|
11279
|
+
return m.forEach((g, p) => {
|
|
11280
|
+
let v = 0, A = 99999999;
|
|
11281
11281
|
u.forEach((C, L) => {
|
|
11282
|
-
const x = C.distanceTo(
|
|
11283
|
-
x <
|
|
11282
|
+
const x = C.distanceTo(g);
|
|
11283
|
+
x < A && (v = L, A = x);
|
|
11284
11284
|
});
|
|
11285
|
-
const b = u[v + 1], w = b == null ? void 0 : b.distanceTo(
|
|
11285
|
+
const b = u[v + 1], w = b == null ? void 0 : b.distanceTo(g), k = u[v - 1], I = k == null ? void 0 : k.distanceTo(g);
|
|
11286
11286
|
if (v > d && v - d > 1) {
|
|
11287
11287
|
let C = v;
|
|
11288
|
-
k !== void 0 && I > 0.8 && (C = v + 1), k !== void 0 && I > 0.2 && I < 0.3 ? C = v :
|
|
11288
|
+
k !== void 0 && I > 0.8 && (C = v + 1), k !== void 0 && I > 0.2 && I < 0.3 ? C = v : A > 0.2 && A < 0.3 && (C = v + 1);
|
|
11289
11289
|
let L = d;
|
|
11290
|
-
if (b !== void 0 && w > 0.2 && w < 0.3 ? L = d + 1 :
|
|
11290
|
+
if (b !== void 0 && w > 0.2 && w < 0.3 ? L = d + 1 : A > 0.2 && A < 0.3 && (L = d), u[L] && u[L + 1]) {
|
|
11291
11291
|
const _ = m[p - 1];
|
|
11292
11292
|
if (_)
|
|
11293
11293
|
if (_.equals(u[L]))
|
|
@@ -11309,20 +11309,20 @@ function Pp(i, t) {
|
|
|
11309
11309
|
}
|
|
11310
11310
|
}
|
|
11311
11311
|
function or(i, t, e) {
|
|
11312
|
-
const n = t / 2, o = e / t, s = i.length, r = Sc(i.map((
|
|
11313
|
-
i.forEach((
|
|
11312
|
+
const n = t / 2, o = e / t, s = i.length, r = Sc(i.map((A) => [A.x, A.z])), l = (i.length - 1) * yp * wp, c = 2 * s, u = c * Ep, h = c * Cp, d = new Uint32Array(l), m = new Float32Array(u), g = new Float32Array(h);
|
|
11313
|
+
i.forEach((A, b) => {
|
|
11314
11314
|
});
|
|
11315
11315
|
let p = 0;
|
|
11316
|
-
for (let
|
|
11317
|
-
const [b, w] = r[
|
|
11318
|
-
m[
|
|
11316
|
+
for (let A = 0; A < i.length; A++) {
|
|
11317
|
+
const [b, w] = r[A][0], k = i[A], { x: I, y: C, z: L } = k, x = new q(I + b * n, C + 0.05, L + w * n);
|
|
11318
|
+
m[A * 6 + 0] = x.x, m[A * 6 + 1] = x.y, m[A * 6 + 2] = x.z;
|
|
11319
11319
|
const F = new q(I - b * n, C + 0.05, L - w * n);
|
|
11320
|
-
m[
|
|
11320
|
+
m[A * 6 + 3] = F.x, m[A * 6 + 4] = F.y, m[A * 6 + 5] = F.z, p += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
|
|
11321
11321
|
const _ = p / t / o;
|
|
11322
|
-
A
|
|
11322
|
+
g[A * 4 + 0] = 0, g[A * 4 + 1] = _, g[A * 4 + 2] = 1, g[A * 4 + 3] = _, A !== i.length - 1 && (d[A * 6 + 0] = A * 2 + 0, d[A * 6 + 1] = A * 2 + 2, d[A * 6 + 2] = A * 2 + 1, d[A * 6 + 3] = A * 2 + 2, d[A * 6 + 4] = A * 2 + 3, d[A * 6 + 5] = A * 2 + 1);
|
|
11323
11323
|
}
|
|
11324
11324
|
const v = new E.BufferGeometry();
|
|
11325
|
-
return v.setAttribute("position", new E.BufferAttribute(m, 3)), v.setAttribute("uv", new E.BufferAttribute(
|
|
11325
|
+
return v.setAttribute("position", new E.BufferAttribute(m, 3)), v.setAttribute("uv", new E.BufferAttribute(g, 2)), v.setIndex(new E.BufferAttribute(d, 1)), v;
|
|
11326
11326
|
}
|
|
11327
11327
|
function Ip(i) {
|
|
11328
11328
|
const t = new E.TextureLoader().load(i.textureUrl);
|
|
@@ -11413,10 +11413,10 @@ class Ml extends zt {
|
|
|
11413
11413
|
return s.add(...o), s;
|
|
11414
11414
|
}
|
|
11415
11415
|
getLine(e, n) {
|
|
11416
|
-
var l, c, u, h, d, m,
|
|
11416
|
+
var l, c, u, h, d, m, g, p;
|
|
11417
11417
|
const o = new E.Group(), s = e.panoIndexList.map((v) => {
|
|
11418
|
-
var
|
|
11419
|
-
return (
|
|
11418
|
+
var A;
|
|
11419
|
+
return (A = this.five.work.observers[v]) == null ? void 0 : A.standingPosition;
|
|
11420
11420
|
}).filter(wt), r = Pp(s, {
|
|
11421
11421
|
skipPanoIndexMesh: (c = (l = e.skipPanoIndexMesh) != null ? l : n == null ? void 0 : n.skipPanoIndexMesh) != null ? c : !0,
|
|
11422
11422
|
unitWidth: (h = (u = e.unitWidth) != null ? u : n == null ? void 0 : n.unitWidth) != null ? h : 0.6,
|
|
@@ -11425,11 +11425,11 @@ class Ml extends zt {
|
|
|
11425
11425
|
if (!r)
|
|
11426
11426
|
return;
|
|
11427
11427
|
const a = Ip({
|
|
11428
|
-
textureUrl: (p = (
|
|
11428
|
+
textureUrl: (p = (g = e.arrowTextureUrl) != null ? g : n == null ? void 0 : n.arrowTextureUrl) != null ? p : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png"
|
|
11429
11429
|
});
|
|
11430
11430
|
return r.forEach((v) => {
|
|
11431
|
-
const
|
|
11432
|
-
|
|
11431
|
+
const A = new E.Mesh(v, a);
|
|
11432
|
+
A.name = sr("route-line-mesh"), o.add(A);
|
|
11433
11433
|
}), o;
|
|
11434
11434
|
}
|
|
11435
11435
|
waitFiveModelLoaded() {
|
|
@@ -11533,7 +11533,7 @@ class Bl extends zt {
|
|
|
11533
11533
|
}
|
|
11534
11534
|
load(e, n, o) {
|
|
11535
11535
|
return H(this, null, function* () {
|
|
11536
|
-
var u, h, d, m,
|
|
11536
|
+
var u, h, d, m, g;
|
|
11537
11537
|
if (this.state.disposed)
|
|
11538
11538
|
return ar();
|
|
11539
11539
|
this.privateState.fiveOriginGetProgress || (h = (u = this.five.controller) == null ? void 0 : u.cameraMotion) != null && h.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (m = (d = this.five.controller) == null ? void 0 : d.cameraMotion) == null ? void 0 : m.getProgress), this.clear();
|
|
@@ -11542,11 +11542,11 @@ class Bl extends zt {
|
|
|
11542
11542
|
let a = [], l;
|
|
11543
11543
|
const c = this.data.keyframes.filter((p) => p.data.panoIndex !== void 0);
|
|
11544
11544
|
c.filter((p, v) => {
|
|
11545
|
-
var
|
|
11546
|
-
return p.data.panoIndex !== ((
|
|
11545
|
+
var A;
|
|
11546
|
+
return p.data.panoIndex !== ((A = c[v - 1]) == null ? void 0 : A.data.panoIndex);
|
|
11547
11547
|
}).map((p) => p.data.panoIndex).forEach((p) => {
|
|
11548
|
-
var
|
|
11549
|
-
const v = (
|
|
11548
|
+
var A, b;
|
|
11549
|
+
const v = (A = this.five.work.observers[p]) == null ? void 0 : A.floorIndex;
|
|
11550
11550
|
if (v !== void 0)
|
|
11551
11551
|
if (l === v) {
|
|
11552
11552
|
const w = a.length - 1;
|
|
@@ -11556,7 +11556,7 @@ class Bl extends zt {
|
|
|
11556
11556
|
const w = a.length;
|
|
11557
11557
|
a[w] = [p];
|
|
11558
11558
|
}
|
|
11559
|
-
}), this.GuideLine || (this.GuideLine = xp(this.five, this.config)), (
|
|
11559
|
+
}), this.GuideLine || (this.GuideLine = xp(this.five, this.config)), (g = this.GuideLine) == null || g.load({ routes: a.map((p) => ({ panoIndexList: p })), 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);
|
|
11560
11560
|
});
|
|
11561
11561
|
}
|
|
11562
11562
|
play(e) {
|
|
@@ -11621,14 +11621,14 @@ class Bl extends zt {
|
|
|
11621
11621
|
const { moveEffect: r, moveToFirstPanoEffect: a, moveToFirstPanoDuration: l } = o;
|
|
11622
11622
|
return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, o.panoIndexList.forEach((c, u) => {
|
|
11623
11623
|
const h = (() => {
|
|
11624
|
-
var v,
|
|
11624
|
+
var v, A, b, w;
|
|
11625
11625
|
const d = o.panoIndexList.slice(u).find((k) => k !== c);
|
|
11626
11626
|
if (d === void 0)
|
|
11627
11627
|
return;
|
|
11628
|
-
const m = (v = n[c]) == null ? void 0 : v.position,
|
|
11629
|
-
if (!
|
|
11628
|
+
const m = (v = n[c]) == null ? void 0 : v.position, g = (A = n[d]) == null ? void 0 : A.position;
|
|
11629
|
+
if (!g || !m || ((b = n[c]) == null ? void 0 : b.floorIndex) !== ((w = n[d]) == null ? void 0 : w.floorIndex))
|
|
11630
11630
|
return;
|
|
11631
|
-
const p = new E.Vector3().subVectors(
|
|
11631
|
+
const p = new E.Vector3().subVectors(g, m);
|
|
11632
11632
|
return Mp(p.normalize());
|
|
11633
11633
|
})();
|
|
11634
11634
|
o.moveType === void 0 || o.moveType === "justMove" ? s.push({
|
|
@@ -11673,13 +11673,13 @@ class Bl extends zt {
|
|
|
11673
11673
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (m = e == null ? void 0 : e.userAction) != null ? m : !0 });
|
|
11674
11674
|
let u = !1;
|
|
11675
11675
|
const d = yield (() => H(this, null, function* () {
|
|
11676
|
-
var
|
|
11676
|
+
var g, p;
|
|
11677
11677
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
11678
11678
|
return e.playFromIndex;
|
|
11679
11679
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
11680
|
-
return (
|
|
11680
|
+
return (g = this.data) == null ? void 0 : g.keyframes.findIndex((v) => v.id === e.playFromId);
|
|
11681
11681
|
if (c != null && c.keyframeId) {
|
|
11682
|
-
const v = (p = this.data) == null ? void 0 : p.keyframes.find((
|
|
11682
|
+
const v = (p = this.data) == null ? void 0 : p.keyframes.find((A) => A.id === c.keyframeId);
|
|
11683
11683
|
if (c != null && c.fiveState && (yield this.move(c.fiveState, {
|
|
11684
11684
|
moveEffect: s.moveToFirstPanoEffect,
|
|
11685
11685
|
duration: s.moveToFirstPanoDuration
|
|
@@ -11687,22 +11687,22 @@ class Bl extends zt {
|
|
|
11687
11687
|
if (v.data.effect === "Move")
|
|
11688
11688
|
return v.index;
|
|
11689
11689
|
if (v.data.effect === "Rotate") {
|
|
11690
|
-
const
|
|
11691
|
-
return yield this.playKeyframe(v, { duration:
|
|
11690
|
+
const A = c.duration !== void 0 ? c.duration * (1 - c.playedProgress) : void 0;
|
|
11691
|
+
return yield this.playKeyframe(v, { duration: A }), u = !0, v.index + 1;
|
|
11692
11692
|
}
|
|
11693
11693
|
}
|
|
11694
11694
|
}
|
|
11695
11695
|
}))();
|
|
11696
11696
|
this.clearPauseData();
|
|
11697
|
-
for (const
|
|
11697
|
+
for (const g of l) {
|
|
11698
11698
|
if (s.broke || !o.playing || !s.playing || a !== s.playId)
|
|
11699
11699
|
return;
|
|
11700
|
-
if (!(d !== void 0 &&
|
|
11700
|
+
if (!(d !== void 0 && g.index < d))
|
|
11701
11701
|
try {
|
|
11702
|
-
r.emit("playIndexChange",
|
|
11702
|
+
r.emit("playIndexChange", g.index, g), yield this.playKeyframe(g, {
|
|
11703
11703
|
moveEffect: u === !1 ? s.moveToFirstPanoEffect : void 0,
|
|
11704
11704
|
duration: u === !1 && typeof s.moveToFirstPanoDuration == "number" ? s.moveToFirstPanoDuration : void 0
|
|
11705
|
-
}),
|
|
11705
|
+
}), g.stay && (yield zp(g.stay)), u === !1 && (u = !0);
|
|
11706
11706
|
} catch (p) {
|
|
11707
11707
|
return Promise.resolve("broke");
|
|
11708
11708
|
}
|
|
@@ -11801,8 +11801,8 @@ class Bl extends zt {
|
|
|
11801
11801
|
updateCamera(o) {
|
|
11802
11802
|
return H(this, arguments, function* (e, n = {}) {
|
|
11803
11803
|
const { five: s, privateState: r, state: a } = this, l = (() => {
|
|
11804
|
-
var m,
|
|
11805
|
-
const h = (m = a.config) == null ? void 0 : m.speedConfig, d = (
|
|
11804
|
+
var m, g;
|
|
11805
|
+
const h = (m = a.config) == null ? void 0 : m.speedConfig, d = (g = e.rotateSpeed) != null ? g : h == null ? void 0 : h.rotateSpeed;
|
|
11806
11806
|
if ((h == null ? void 0 : h.rotateSpeedUnit) === void 0)
|
|
11807
11807
|
return d;
|
|
11808
11808
|
if (d !== void 0)
|
|
@@ -12267,9 +12267,9 @@ class Vl {
|
|
|
12267
12267
|
render() {
|
|
12268
12268
|
if (!this.five.renderer || !this.containerDom)
|
|
12269
12269
|
return;
|
|
12270
|
-
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, u = a * t, h = (s.x + 1) / 2 * r.x, d = (s.y + 1) / 2 * r.y, m = this.five.getPixels(h - l / 2, d - l / 2, l, c, u),
|
|
12271
|
-
Kp(m,
|
|
12272
|
-
const v = new ImageData(
|
|
12270
|
+
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, u = a * t, h = (s.x + 1) / 2 * r.x, d = (s.y + 1) / 2 * r.y, m = this.five.getPixels(h - l / 2, d - l / 2, l, c, u), g = Math.floor(n * a), p = Math.floor(o * a);
|
|
12271
|
+
Kp(m, g, p);
|
|
12272
|
+
const v = new ImageData(g, p);
|
|
12273
12273
|
v.data.set(m), e.putImageData(v, 0, 0);
|
|
12274
12274
|
}
|
|
12275
12275
|
initStyle() {
|
|
@@ -13049,9 +13049,9 @@ class fg extends hg {
|
|
|
13049
13049
|
const m = this.getRaycasterFromPanoIndex(e, s);
|
|
13050
13050
|
if (!m)
|
|
13051
13051
|
return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${m}` };
|
|
13052
|
-
const
|
|
13053
|
-
if (
|
|
13054
|
-
return
|
|
13052
|
+
const g = this.getTagEnableByIntersect(e, m);
|
|
13053
|
+
if (g.value === !1)
|
|
13054
|
+
return g;
|
|
13055
13055
|
}
|
|
13056
13056
|
if (l.angleRange && Fp(e)) {
|
|
13057
13057
|
const m = this.getAngle(e);
|
|
@@ -13151,14 +13151,14 @@ class fg extends hg {
|
|
|
13151
13151
|
const m = this.getTagProject(d);
|
|
13152
13152
|
if (!m)
|
|
13153
13153
|
return !1;
|
|
13154
|
-
const { x:
|
|
13155
|
-
return !(Math.abs(v) > 1 || Math.abs(
|
|
13154
|
+
const { x: g, y: p, z: v } = m;
|
|
13155
|
+
return !(Math.abs(v) > 1 || Math.abs(g) > 1 || Math.abs(p) > 1);
|
|
13156
13156
|
}).map((d) => ({ tag: d, id: d.id, tagConfig: this.getTagConfig(d).unfoldedConfig })).filter(({ tag: d, tagConfig: m }) => {
|
|
13157
|
-
var
|
|
13158
|
-
return !(typeof m != "object" || m.keep || m.autoUnfold === !1 || ((
|
|
13157
|
+
var g, p;
|
|
13158
|
+
return !(typeof m != "object" || m.keep || m.autoUnfold === !1 || ((g = m.autoUnfold) == null ? void 0 : g.enable) === !1 || ((p = m.autoUnfold) == null ? void 0 : p.strategy) !== "MinimumDistance");
|
|
13159
13159
|
}).map((d) => fe(Q({}, d), { distance: this.getDistance(d.tag) })).filter(({ distance: d, tagConfig: m }) => {
|
|
13160
|
-
var
|
|
13161
|
-
return !(d === void 0 || typeof m != "object" || m.autoUnfold === !1 || ((
|
|
13160
|
+
var g, p;
|
|
13161
|
+
return !(d === void 0 || typeof m != "object" || m.autoUnfold === !1 || ((g = m.autoUnfold) == null ? void 0 : g.enable) === !1 || ((p = m.autoUnfold) == null ? void 0 : p.strategy) !== "MinimumDistance" || m.autoUnfold.distance && dn(d, m.autoUnfold.distance) === !1);
|
|
13162
13162
|
}).sort((d, m) => d.distance - m.distance).findIndex((d) => d.id === e.id);
|
|
13163
13163
|
if (u === -1 || u <= ((a = r.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
|
|
13164
13164
|
return !1;
|
|
@@ -13335,10 +13335,10 @@ function pg(i) {
|
|
|
13335
13335
|
};
|
|
13336
13336
|
}
|
|
13337
13337
|
function gg(i, t, e) {
|
|
13338
|
-
let n, o, s, r, { inDelay: a = 0 } = t, { outDelay: l = 0 } = t, { duration: c = 1e3 } = t, { unfolded: u } = t, { length: h } = t, { direction: d = "horizontal" } = t, { useLinearColor: m = !1 } = t, { color:
|
|
13338
|
+
let n, o, s, r, { inDelay: a = 0 } = t, { outDelay: l = 0 } = t, { duration: c = 1e3 } = t, { unfolded: u } = t, { length: h } = t, { direction: d = "horizontal" } = t, { useLinearColor: m = !1 } = t, { color: g = "white" } = t;
|
|
13339
13339
|
const p = We();
|
|
13340
13340
|
return i.$$set = (v) => {
|
|
13341
|
-
"inDelay" in v && e(0, a = v.inDelay), "outDelay" in v && e(1, l = v.outDelay), "duration" in v && e(2, c = v.duration), "unfolded" in v && e(3, u = v.unfolded), "length" in v && e(11, h = v.length), "direction" in v && e(12, d = v.direction), "useLinearColor" in v && e(4, m = v.useLinearColor), "color" in v && e(5,
|
|
13341
|
+
"inDelay" in v && e(0, a = v.inDelay), "outDelay" in v && e(1, l = v.outDelay), "duration" in v && e(2, c = v.duration), "unfolded" in v && e(3, u = v.unfolded), "length" in v && e(11, h = v.length), "direction" in v && e(12, d = v.direction), "useLinearColor" in v && e(4, m = v.useLinearColor), "color" in v && e(5, g = v.color);
|
|
13342
13342
|
}, i.$$.update = () => {
|
|
13343
13343
|
i.$$.dirty & 4096 && e(9, n = d === "vertical"), i.$$.dirty & 2048 && e(8, o = h), i.$$.dirty & 2048 && e(6, r = `M0.5 0.5 H ${h}`);
|
|
13344
13344
|
}, e(7, s = 1), [
|
|
@@ -13347,7 +13347,7 @@ function gg(i, t, e) {
|
|
|
13347
13347
|
c,
|
|
13348
13348
|
u,
|
|
13349
13349
|
m,
|
|
13350
|
-
|
|
13350
|
+
g,
|
|
13351
13351
|
r,
|
|
13352
13352
|
s,
|
|
13353
13353
|
o,
|
|
@@ -13450,9 +13450,9 @@ function Xe(i) {
|
|
|
13450
13450
|
return typeof i == "number" ? i / 16 + "rem" : i;
|
|
13451
13451
|
}
|
|
13452
13452
|
function bg(i, t, e) {
|
|
13453
|
-
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: h = !1 } = t, { verticalCenter: d = !1 } = t, { blurRadius: m } = t, { spreadRadius:
|
|
13454
|
-
return i.$$set = (
|
|
13455
|
-
"inDelay" in
|
|
13453
|
+
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: h = !1 } = t, { verticalCenter: d = !1 } = t, { blurRadius: m } = t, { spreadRadius: g } = t, { opacity: p = 0.15 } = t, { zIndex: v = -1 } = t;
|
|
13454
|
+
return i.$$set = (A) => {
|
|
13455
|
+
"inDelay" in A && e(0, n = A.inDelay), "outDelay" in A && e(1, o = A.outDelay), "visible" in A && e(2, s = A.visible), "width" in A && e(3, r = A.width), "height" in A && e(4, a = A.height), "left" in A && e(5, l = A.left), "bottom" in A && e(6, c = A.bottom), "center" in A && e(7, u = A.center), "horizontalCenter" in A && e(8, h = A.horizontalCenter), "verticalCenter" in A && e(9, d = A.verticalCenter), "blurRadius" in A && e(10, m = A.blurRadius), "spreadRadius" in A && e(11, g = A.spreadRadius), "opacity" in A && e(12, p = A.opacity), "zIndex" in A && e(13, v = A.zIndex);
|
|
13456
13456
|
}, [
|
|
13457
13457
|
n,
|
|
13458
13458
|
o,
|
|
@@ -13465,7 +13465,7 @@ function bg(i, t, e) {
|
|
|
13465
13465
|
h,
|
|
13466
13466
|
d,
|
|
13467
13467
|
m,
|
|
13468
|
-
|
|
13468
|
+
g,
|
|
13469
13469
|
p,
|
|
13470
13470
|
v
|
|
13471
13471
|
];
|
|
@@ -13601,7 +13601,7 @@ function Pg(i) {
|
|
|
13601
13601
|
function Ig(i, t, e) {
|
|
13602
13602
|
let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
13603
13603
|
const c = `__EMOJI_SPLIT_${Wi}__`, u = `__EMOJI_${Wi}__`, h = `__SPACE_${Wi}__`;
|
|
13604
|
-
let d, m,
|
|
13604
|
+
let d, m, g = [];
|
|
13605
13605
|
function p(I) {
|
|
13606
13606
|
const C = [], L = 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"));
|
|
13607
13607
|
return I.slice().replace(L, (x) => `${c}${u}${x}${c}`).split(c).forEach((x) => x.startsWith(u) ? C.push({
|
|
@@ -13615,7 +13615,7 @@ function Ig(i, t, e) {
|
|
|
13615
13615
|
const I = !a;
|
|
13616
13616
|
m.reversed !== I && m.reverse(), m.play();
|
|
13617
13617
|
}
|
|
13618
|
-
function
|
|
13618
|
+
function A(I) {
|
|
13619
13619
|
if (l) {
|
|
13620
13620
|
e(4, l = !1);
|
|
13621
13621
|
return;
|
|
@@ -13643,21 +13643,21 @@ function Ig(i, t, e) {
|
|
|
13643
13643
|
}
|
|
13644
13644
|
function w(I, C) {
|
|
13645
13645
|
Be[I ? "unshift" : "push"](() => {
|
|
13646
|
-
|
|
13646
|
+
g[C] = I, e(1, g);
|
|
13647
13647
|
});
|
|
13648
13648
|
}
|
|
13649
13649
|
function k(I, C) {
|
|
13650
13650
|
Be[I ? "unshift" : "push"](() => {
|
|
13651
|
-
|
|
13651
|
+
g[C] = I, e(1, g);
|
|
13652
13652
|
});
|
|
13653
13653
|
}
|
|
13654
13654
|
return i.$$set = (I) => {
|
|
13655
13655
|
"inDelay" in I && e(5, o = I.inDelay), "outDelay" in I && e(6, s = I.outDelay), "content" in I && e(0, r = I.content), "unfolded" in I && e(7, a = I.unfolded), "isFistUnfoldedUpdate" in I && e(4, l = I.isFistUnfoldedUpdate);
|
|
13656
13656
|
}, i.$$.update = () => {
|
|
13657
|
-
i.$$.dirty & 1 && e(2, n = p(r)), i.$$.dirty & 128 &&
|
|
13657
|
+
i.$$.dirty & 1 && e(2, n = p(r)), i.$$.dirty & 128 && A(a), i.$$.dirty & 2 && b(g.filter((I) => !!I));
|
|
13658
13658
|
}, [
|
|
13659
13659
|
r,
|
|
13660
|
-
|
|
13660
|
+
g,
|
|
13661
13661
|
n,
|
|
13662
13662
|
h,
|
|
13663
13663
|
l,
|
|
@@ -13886,19 +13886,19 @@ function Vg(i) {
|
|
|
13886
13886
|
}
|
|
13887
13887
|
function Og(i, t, e) {
|
|
13888
13888
|
let n, o, s, { visible: r = !1 } = t, { textUnfolded: a = !1 } = t, { content: l } = t, c, u = 0, h = 0, d = 0;
|
|
13889
|
-
function m(
|
|
13890
|
-
Be[
|
|
13891
|
-
c =
|
|
13889
|
+
function m(g) {
|
|
13890
|
+
Be[g ? "unshift" : "push"](() => {
|
|
13891
|
+
c = g, e(2, c);
|
|
13892
13892
|
});
|
|
13893
13893
|
}
|
|
13894
|
-
return i.$$set = (
|
|
13895
|
-
"visible" in
|
|
13894
|
+
return i.$$set = (g) => {
|
|
13895
|
+
"visible" in g && e(0, r = g.visible), "textUnfolded" in g && e(8, a = g.textUnfolded), "content" in g && e(1, l = g.content);
|
|
13896
13896
|
}, i.$$.update = () => {
|
|
13897
13897
|
if (i.$$.dirty & 7 && c && r && l) {
|
|
13898
|
-
const { lineHeight:
|
|
13898
|
+
const { lineHeight: g } = getComputedStyle(c);
|
|
13899
13899
|
e(4, d = c.offsetHeight), Bg(() => c == null ? void 0 : c.offsetHeight, Boolean).then(() => {
|
|
13900
13900
|
e(4, d = c.offsetHeight);
|
|
13901
|
-
}), e(3, h = Number(
|
|
13901
|
+
}), e(3, h = Number(g.replace("px", "")));
|
|
13902
13902
|
}
|
|
13903
13903
|
i.$$.dirty & 280 && e(9, u = a ? h - d : 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);
|
|
13904
13904
|
}, [
|
|
@@ -13960,11 +13960,11 @@ function br(i) {
|
|
|
13960
13960
|
], l = !0);
|
|
13961
13961
|
},
|
|
13962
13962
|
p(d, m) {
|
|
13963
|
-
var
|
|
13964
|
-
const
|
|
13965
|
-
m & 4 && (
|
|
13963
|
+
var A, b;
|
|
13964
|
+
const g = {};
|
|
13965
|
+
m & 4 && (g.visible = d[2]), m & 8 && (g.left = d[3] / 2 + "px"), t.$set(g);
|
|
13966
13966
|
const p = {};
|
|
13967
|
-
m & 4 && (p.unfolded = d[2]), m & 8 && (p.length = d[3]), m & 16 && (p.outDelay = d[4] + 40 * Math.min((b = (
|
|
13967
|
+
m & 4 && (p.unfolded = d[2]), m & 8 && (p.length = d[3]), m & 16 && (p.outDelay = d[4] + 40 * Math.min((b = (A = d[6][0]) == null ? void 0 : A.content.length) != null ? b : 10, 15)), n.$set(p);
|
|
13968
13968
|
const v = {};
|
|
13969
13969
|
m & 4 && (v.visible = d[2]), m & 2 && (v.textUnfolded = d[1]), m & 32 && (v.content = d[5]), r.$set(v);
|
|
13970
13970
|
},
|
|
@@ -14015,8 +14015,8 @@ function Fg(i, t, e) {
|
|
|
14015
14015
|
return i.$$set = (d) => {
|
|
14016
14016
|
"tag" in d && e(0, r = d.tag);
|
|
14017
14017
|
}, i.$$.update = () => {
|
|
14018
|
-
var d, m,
|
|
14019
|
-
i.$$.dirty & 1 && e(2, n = !!((d = r.state) != null && d.unfolded)), i.$$.dirty & 1 && e(5, o = (
|
|
14018
|
+
var d, m, g;
|
|
14019
|
+
i.$$.dirty & 1 && e(2, n = !!((d = r.state) != null && d.unfolded)), i.$$.dirty & 1 && e(5, o = (g = (m = r.data.title) != null ? m : r.data.text) != null ? g : ""), i.$$.dirty & 4 && (n || setTimeout(
|
|
14020
14020
|
() => {
|
|
14021
14021
|
e(1, l = !1);
|
|
14022
14022
|
},
|
|
@@ -14229,17 +14229,17 @@ function Er(i) {
|
|
|
14229
14229
|
c() {
|
|
14230
14230
|
K(t.$$.fragment), e = $(), n = B("div"), o = B("div"), s = B("div"), r = B("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"), U(n, "unfolded", i[1]), U(n, "folded", i[3]);
|
|
14231
14231
|
},
|
|
14232
|
-
m(m,
|
|
14233
|
-
J(t, m,
|
|
14232
|
+
m(m, g) {
|
|
14233
|
+
J(t, m, g), M(m, e, g), M(m, n, g), j(n, o), j(o, s), j(s, r), J(a, r, null), j(s, l), u && u.m(s, null), c = !0;
|
|
14234
14234
|
},
|
|
14235
|
-
p(m,
|
|
14236
|
-
var
|
|
14235
|
+
p(m, g) {
|
|
14236
|
+
var A, b;
|
|
14237
14237
|
const p = {};
|
|
14238
|
-
|
|
14238
|
+
g & 2 && (p.unfolded = m[1]), t.$set(p);
|
|
14239
14239
|
const v = {};
|
|
14240
|
-
|
|
14240
|
+
g & 4 && (v.text = m[2]), g & 1 && (v.edit = (A = m[0].data.edit) == null ? void 0 : A.title), a.$set(v), m[0].data.description || ((b = m[0].data.edit) == null ? void 0 : b.description) ? u ? (u.p(m, g), g & 1 && P(u, 1)) : (u = Cr(m), u.c(), P(u, 1), u.m(s, null)) : u && (se(), D(u, 1, 1, () => {
|
|
14241
14241
|
u = null;
|
|
14242
|
-
}), re()),
|
|
14242
|
+
}), re()), g & 2 && T(o, "transform", m[1] ? "translateY(-15px)" : "translateY(0)"), (!c || g & 2) && U(n, "unfolded", m[1]), (!c || g & 8) && U(n, "folded", m[3]);
|
|
14243
14243
|
},
|
|
14244
14244
|
i(m) {
|
|
14245
14245
|
c || (P(t.$$.fragment, m), P(a.$$.fragment, m), P(u), c = !0);
|
|
@@ -14766,8 +14766,8 @@ function S0(i, { thresholdProvider: t }) {
|
|
|
14766
14766
|
function u(d) {
|
|
14767
14767
|
if (!a)
|
|
14768
14768
|
return;
|
|
14769
|
-
const m = _i(d),
|
|
14770
|
-
n = m.x, o = m.y, e("swipeMove", { x: n, y: o, dx:
|
|
14769
|
+
const m = _i(d), g = m.x - n, p = m.y - o;
|
|
14770
|
+
n = m.x, o = m.y, e("swipeMove", { x: n, y: o, dx: g, dy: p }), g !== 0 && Math.sign(g) !== Math.sign(s) && (s = 0), s += g, Math.abs(s) > t() && (e("swipeThresholdReached", { direction: s > 0 ? Jt : Et }), Dr(window, h), Lr(window, u));
|
|
14771
14771
|
}
|
|
14772
14772
|
function h(d) {
|
|
14773
14773
|
if (Dr(window, h), Lr(window, u), a = !1, !l()) {
|
|
@@ -15102,25 +15102,25 @@ function iA(i, t) {
|
|
|
15102
15102
|
data: h,
|
|
15103
15103
|
methods: d
|
|
15104
15104
|
});
|
|
15105
|
-
let
|
|
15106
|
-
const p = (
|
|
15107
|
-
|
|
15108
|
-
const w =
|
|
15109
|
-
return
|
|
15110
|
-
};
|
|
15111
|
-
Object.entries(o).forEach(([
|
|
15112
|
-
d[
|
|
15105
|
+
let g = !1;
|
|
15106
|
+
const p = (A) => (...b) => {
|
|
15107
|
+
g = !0;
|
|
15108
|
+
const w = A(...b);
|
|
15109
|
+
return g = !1, w;
|
|
15110
|
+
};
|
|
15111
|
+
Object.entries(o).forEach(([A, b]) => {
|
|
15112
|
+
d[A] = p(
|
|
15113
15113
|
(...w) => b(m(), ...w)
|
|
15114
|
-
), Object.defineProperty(d[
|
|
15114
|
+
), Object.defineProperty(d[A], "name", { value: A });
|
|
15115
15115
|
}), h = new Proxy(Tc(e), {
|
|
15116
|
-
get(
|
|
15117
|
-
return u() && !
|
|
15116
|
+
get(A, b) {
|
|
15117
|
+
return u() && !g && r(u(), { prop: b, value: A[b] }), Reflect.get(...arguments);
|
|
15118
15118
|
},
|
|
15119
|
-
set(
|
|
15120
|
-
return
|
|
15119
|
+
set(A, b, w) {
|
|
15120
|
+
return A[b] === w || (Reflect.set(...arguments), u() || (s && s(b, w), a(h, b))), !0;
|
|
15121
15121
|
}
|
|
15122
|
-
}), Object.entries(n).forEach(([
|
|
15123
|
-
c(
|
|
15122
|
+
}), Object.entries(n).forEach(([A, b]) => {
|
|
15123
|
+
c(A, () => {
|
|
15124
15124
|
b(m());
|
|
15125
15125
|
});
|
|
15126
15126
|
});
|
|
@@ -15673,14 +15673,14 @@ function AA(i) {
|
|
|
15673
15673
|
}
|
|
15674
15674
|
function vA(i) {
|
|
15675
15675
|
let t, e, n, o, s, r, a, l, c, u, h, d, m = i[1] && Or(i);
|
|
15676
|
-
const
|
|
15677
|
-
let v = i[3] && Qr(i),
|
|
15676
|
+
const g = i[37].default, p = $t(g, i, i[36], jr);
|
|
15677
|
+
let v = i[3] && Qr(i), A = i[1] && Rr(i), b = i[4] && Fr(i);
|
|
15678
15678
|
return {
|
|
15679
15679
|
c() {
|
|
15680
|
-
t = B("div"), e = B("div"), m && m.c(), n = $(), o = B("div"), s = B("div"), p && p.c(), a = $(), v && v.c(), l = $(),
|
|
15680
|
+
t = B("div"), e = B("div"), m && m.c(), n = $(), o = B("div"), s = B("div"), p && p.c(), a = $(), v && v.c(), l = $(), A && A.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");
|
|
15681
15681
|
},
|
|
15682
15682
|
m(w, k) {
|
|
15683
|
-
M(w, t, k), j(t, e), m && m.m(e, null), j(e, n), j(e, o), j(o, s), p && p.m(s, null), i[39](s), j(o, a), v && v.m(o, null), i[40](o), j(e, l),
|
|
15683
|
+
M(w, t, k), j(t, e), m && m.m(e, null), j(e, n), j(e, o), j(o, s), p && p.m(s, null), i[39](s), j(o, a), v && v.m(o, null), i[40](o), j(e, l), A && A.m(e, null), j(t, c), b && b.m(t, null), u = !0, h || (d = [
|
|
15684
15684
|
ct(r = S0.call(null, s, {
|
|
15685
15685
|
thresholdProvider: i[38]
|
|
15686
15686
|
})),
|
|
@@ -15700,35 +15700,35 @@ function vA(i) {
|
|
|
15700
15700
|
m = null;
|
|
15701
15701
|
}), re()), p && p.p && (!u || k[0] & 96 | k[1] & 32) && tn(
|
|
15702
15702
|
p,
|
|
15703
|
-
|
|
15703
|
+
g,
|
|
15704
15704
|
w,
|
|
15705
15705
|
w[36],
|
|
15706
|
-
u ? en(
|
|
15706
|
+
u ? en(g, w[36], k, fA) : nn(w[36]),
|
|
15707
15707
|
jr
|
|
15708
15708
|
), (!u || k[0] & 256) && T(s, "transform", "translateX(" + w[8] + "px)"), (!u || k[0] & 512) && T(s, "transition-duration", w[9] + "ms"), (!u || k[0] & 1) && T(s, "transition-timing-function", w[0]), r && Kt(r.update) && k[0] & 2048 && r.update.call(null, {
|
|
15709
15709
|
thresholdProvider: w[38]
|
|
15710
15710
|
}), w[3] ? v ? (v.p(w, k), k[0] & 8 && P(v, 1)) : (v = Qr(w), v.c(), P(v, 1), v.m(o, null)) : v && (se(), D(v, 1, 1, () => {
|
|
15711
15711
|
v = null;
|
|
15712
|
-
}), re()), w[1] ?
|
|
15713
|
-
|
|
15712
|
+
}), re()), w[1] ? A ? (A.p(w, k), k[0] & 2 && P(A, 1)) : (A = Rr(w), A.c(), P(A, 1), A.m(e, null)) : A && (se(), D(A, 1, 1, () => {
|
|
15713
|
+
A = null;
|
|
15714
15714
|
}), re()), w[4] ? b ? (b.p(w, k), k[0] & 16 && P(b, 1)) : (b = Fr(w), b.c(), P(b, 1), b.m(t, null)) : b && (se(), D(b, 1, 1, () => {
|
|
15715
15715
|
b = null;
|
|
15716
15716
|
}), re());
|
|
15717
15717
|
},
|
|
15718
15718
|
i(w) {
|
|
15719
|
-
u || (P(m), P(p, w), P(v), P(
|
|
15719
|
+
u || (P(m), P(p, w), P(v), P(A), P(b), u = !0);
|
|
15720
15720
|
},
|
|
15721
15721
|
o(w) {
|
|
15722
|
-
D(m), D(p, w), D(v), D(
|
|
15722
|
+
D(m), D(p, w), D(v), D(A), D(b), u = !1;
|
|
15723
15723
|
},
|
|
15724
15724
|
d(w) {
|
|
15725
|
-
w && S(t), m && m.d(), p && p.d(w), i[39](null), v && v.d(), i[40](null),
|
|
15725
|
+
w && S(t), m && m.d(), p && p.d(w), i[39](null), v && v.d(), i[40](null), A && A.d(), b && b.d(), h = !1, Ge(d);
|
|
15726
15726
|
}
|
|
15727
15727
|
};
|
|
15728
15728
|
}
|
|
15729
15729
|
function bA(i, t, e) {
|
|
15730
15730
|
let { $$slots: n = {}, $$scope: o } = t, s = [], r, a, l = 0, c = 0, u = 1;
|
|
15731
|
-
const [{ data: h, progressManager: d }, m,
|
|
15731
|
+
const [{ data: h, progressManager: d }, m, g] = cA((te, ve) => {
|
|
15732
15732
|
ho({
|
|
15733
15733
|
currentPageIndex: () => e(5, r = ve),
|
|
15734
15734
|
progressValue: () => e(7, a = ve),
|
|
@@ -15738,7 +15738,7 @@ function bA(i, t, e) {
|
|
|
15738
15738
|
loaded: () => e(6, s = ve)
|
|
15739
15739
|
})(te);
|
|
15740
15740
|
}), p = yi();
|
|
15741
|
-
let { timingFunction: v = "ease-in-out" } = t, { arrows:
|
|
15741
|
+
let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: k = 500 } = t, { autoplay: I = !1 } = t, { autoplayDuration: C = 3e3 } = t, { autoplayDirection: L = Et } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: F = !1 } = t, { dots: _ = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: V = 1 } = t, { particlesToScroll: z = 1 } = t;
|
|
15742
15742
|
function R(te, ve) {
|
|
15743
15743
|
return H(this, null, function* () {
|
|
15744
15744
|
const je = wn(ve, "animated", !0);
|
|
@@ -15834,12 +15834,12 @@ function bA(i, t, e) {
|
|
|
15834
15834
|
}
|
|
15835
15835
|
const et = (te) => de(te.detail);
|
|
15836
15836
|
return i.$$set = (te) => {
|
|
15837
|
-
"timingFunction" in te && e(0, v = te.timingFunction), "arrows" in te && e(1,
|
|
15837
|
+
"timingFunction" in te && e(0, v = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, k = te.duration), "autoplay" in te && e(26, I = te.autoplay), "autoplayDuration" in te && e(27, C = te.autoplayDuration), "autoplayDirection" in te && e(28, L = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, F = te.autoplayProgressVisible), "dots" in te && e(4, _ = te.dots), "swiping" in te && e(30, O = te.swiping), "particlesToShow" in te && e(31, V = te.particlesToShow), "particlesToScroll" in te && e(32, z = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
|
|
15838
15838
|
}, i.$$.update = () => {
|
|
15839
15839
|
i.$$.dirty[0] & 32 && p("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite = b), i.$$.dirty[0] & 33554432 && (h.durationMsInit = k), i.$$.dirty[0] & 67108864 && (h.autoplay = I), i.$$.dirty[0] & 134217728 && (h.autoplayDuration = C), i.$$.dirty[0] & 268435456 && (h.autoplayDirection = L), i.$$.dirty[0] & 536870912 && (h.pauseOnFocus = x), i.$$.dirty[1] & 1 && (h.particlesToShowInit = V), i.$$.dirty[1] & 2 && (h.particlesToScrollInit = z);
|
|
15840
15840
|
}, [
|
|
15841
15841
|
v,
|
|
15842
|
-
|
|
15842
|
+
A,
|
|
15843
15843
|
b,
|
|
15844
15844
|
F,
|
|
15845
15845
|
_,
|
|
@@ -15958,13 +15958,13 @@ function EA(i) {
|
|
|
15958
15958
|
let l = a(i), c = l(i);
|
|
15959
15959
|
return {
|
|
15960
15960
|
c() {
|
|
15961
|
-
c.c(), t = $(), e = B("div"), n = B("div"), o = B("div"), y(o, "class", "video-icon-img svelte-159ski6"), T(o, "background-image", "url(" + i[20]() + ")"), U(o, "canPlay", i[5]), y(n, "class", "video-icon svelte-159ski6"), U(n, "large", i[4] === "large"), U(n, "small", i[4] === "small"), y(e, "class", "video-play-button-container svelte-159ski6"), U(e, "showPlayButton", i[
|
|
15961
|
+
c.c(), t = $(), e = B("div"), n = B("div"), o = B("div"), y(o, "class", "video-icon-img svelte-159ski6"), T(o, "background-image", "url(" + i[20]() + ")"), U(o, "canPlay", i[5]), y(n, "class", "video-icon svelte-159ski6"), U(n, "large", i[4] === "large"), U(n, "small", i[4] === "small"), y(e, "class", "video-play-button-container svelte-159ski6"), U(e, "showPlayButton", i[10]);
|
|
15962
15962
|
},
|
|
15963
15963
|
m(u, h) {
|
|
15964
15964
|
c.m(u, h), M(u, t, h), M(u, e, h), j(e, n), j(n, o), s || (r = me(o, "click", i[21]), s = !0);
|
|
15965
15965
|
},
|
|
15966
15966
|
p(u, h) {
|
|
15967
|
-
l === (l = a(u)) && c ? c.p(u, h) : (c.d(1), c = l(u), c && (c.c(), c.m(t.parentNode, t))), h & 8 && T(o, "background-image", "url(" + u[20]() + ")"), h & 32 && U(o, "canPlay", u[5]), h & 16 && U(n, "large", u[4] === "large"), h & 16 && U(n, "small", u[4] === "small"), h &
|
|
15967
|
+
l === (l = a(u)) && c ? c.p(u, h) : (c.d(1), c = l(u), c && (c.c(), c.m(t.parentNode, t))), h & 8 && T(o, "background-image", "url(" + u[20]() + ")"), h & 32 && U(o, "canPlay", u[5]), h & 16 && U(n, "large", u[4] === "large"), h & 16 && U(n, "small", u[4] === "small"), h & 1024 && U(e, "showPlayButton", u[10]);
|
|
15968
15968
|
},
|
|
15969
15969
|
d(u) {
|
|
15970
15970
|
c.d(u), u && S(t), u && S(e), s = !1, r();
|
|
@@ -15992,7 +15992,7 @@ function PA(i) {
|
|
|
15992
15992
|
let t, e, n, o, s, r, a;
|
|
15993
15993
|
return {
|
|
15994
15994
|
c() {
|
|
15995
|
-
t = B("video"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl ? i[2].url : i[2].url + "#t=0.1") || y(t, "src", n), y(t, "poster", o = i[2].videoCoverUrl), y(t, "preload", s = i[2].videoCoverUrl ? "none" : "auto"), y(t, "disablepictureinpicture", ""), t.playsInline = !0, y(t, "paused", ""), t.muted = !0, y(t, "draggable", !1), t.loop = !1, y(t, "crossorigin", ""), t.controls = !1, U(t, "showPlayButton", i[
|
|
15995
|
+
t = B("video"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl ? i[2].url : i[2].url + "#t=0.1") || y(t, "src", n), y(t, "poster", o = i[2].videoCoverUrl), y(t, "preload", s = i[2].videoCoverUrl ? "none" : "auto"), y(t, "disablepictureinpicture", ""), t.playsInline = !0, y(t, "paused", ""), t.muted = !0, y(t, "draggable", !1), t.loop = !1, y(t, "crossorigin", ""), t.controls = !1, U(t, "showPlayButton", i[10]);
|
|
15996
15996
|
},
|
|
15997
15997
|
m(l, c) {
|
|
15998
15998
|
M(l, t, c), i[19](t), r || (a = [
|
|
@@ -16004,7 +16004,7 @@ function PA(i) {
|
|
|
16004
16004
|
], r = !0);
|
|
16005
16005
|
},
|
|
16006
16006
|
p(l, c) {
|
|
16007
|
-
c & 64 && e !== (e = `object-fit: ${l[6]};`) && y(t, "style", e), c & 4 && !Ye(t.src, n = l[2].videoCoverUrl ? l[2].url : l[2].url + "#t=0.1") && y(t, "src", n), c & 4 && o !== (o = l[2].videoCoverUrl) && y(t, "poster", o), c & 4 && s !== (s = l[2].videoCoverUrl ? "none" : "auto") && y(t, "preload", s), c &
|
|
16007
|
+
c & 64 && e !== (e = `object-fit: ${l[6]};`) && y(t, "style", e), c & 4 && !Ye(t.src, n = l[2].videoCoverUrl ? l[2].url : l[2].url + "#t=0.1") && y(t, "src", n), c & 4 && o !== (o = l[2].videoCoverUrl) && y(t, "poster", o), c & 4 && s !== (s = l[2].videoCoverUrl ? "none" : "auto") && y(t, "preload", s), c & 1024 && U(t, "showPlayButton", l[10]);
|
|
16008
16008
|
},
|
|
16009
16009
|
d(l) {
|
|
16010
16010
|
l && S(t), i[19](null), r = !1, Ge(a);
|
|
@@ -16048,41 +16048,41 @@ function kA(i) {
|
|
|
16048
16048
|
};
|
|
16049
16049
|
}
|
|
16050
16050
|
function xA(i, t, e) {
|
|
16051
|
-
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: h = "fill" } = t, { disableVideoIfHavePoster: d = !1 } = t, m = !0,
|
|
16051
|
+
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: h = "fill" } = t, { disableVideoIfHavePoster: d = !1 } = t, m = !0, g = !1;
|
|
16052
16052
|
function p() {
|
|
16053
|
-
e(
|
|
16053
|
+
e(8, g = (a == null ? void 0 : a.type) === "Video" && Boolean(a.videoCoverUrl));
|
|
16054
16054
|
}
|
|
16055
|
-
const v = vt("mediaStore"),
|
|
16056
|
-
|
|
16055
|
+
const v = vt("mediaStore"), A = vt("hooks"), b = () => {
|
|
16056
|
+
console.debug("loadPoster"), !g && (!n || (e(9, n.muted = !0, n), n.play(), n.pause(), e(9, n.muted = !1, n), e(8, g = !0), console.debug("loadPoster end")));
|
|
16057
16057
|
};
|
|
16058
|
-
|
|
16058
|
+
A.on("loadVideoFirstFrame", b), Ke(() => {
|
|
16059
16059
|
v.subscribe(({ currentMediaElement: O }) => {
|
|
16060
16060
|
O !== n && (n == null || n.pause());
|
|
16061
16061
|
});
|
|
16062
16062
|
});
|
|
16063
16063
|
const w = (O) => {
|
|
16064
|
-
e(
|
|
16064
|
+
e(10, m = !1), e(0, s.paused = !1, s), e(8, g = !0), n && v.set({ currentMediaElement: n }), A.emit("playStateChange", {
|
|
16065
16065
|
event: O,
|
|
16066
16066
|
state: "playing",
|
|
16067
16067
|
tag: r,
|
|
16068
16068
|
mediaInstance: n
|
|
16069
16069
|
});
|
|
16070
16070
|
}, k = (O) => {
|
|
16071
|
-
e(
|
|
16071
|
+
e(10, m = !0), e(0, s.paused = !0, s), A.emit("playStateChange", {
|
|
16072
16072
|
event: O,
|
|
16073
16073
|
state: "paused",
|
|
16074
16074
|
tag: r,
|
|
16075
16075
|
mediaInstance: n
|
|
16076
16076
|
});
|
|
16077
16077
|
}, I = (O) => {
|
|
16078
|
-
e(
|
|
16078
|
+
e(10, m = !0), e(0, s.paused = !0, s), A.emit("playStateChange", {
|
|
16079
16079
|
event: O,
|
|
16080
16080
|
state: "paused",
|
|
16081
16081
|
tag: r,
|
|
16082
16082
|
mediaInstance: n
|
|
16083
16083
|
});
|
|
16084
16084
|
}, C = (O) => {
|
|
16085
|
-
e(
|
|
16085
|
+
e(10, m = !0), e(0, s.paused = !0, s), A.emit("playStateChange", {
|
|
16086
16086
|
event: O,
|
|
16087
16087
|
state: "paused",
|
|
16088
16088
|
tag: r,
|
|
@@ -16097,12 +16097,12 @@ function xA(i, t, e) {
|
|
|
16097
16097
|
});
|
|
16098
16098
|
}
|
|
16099
16099
|
const F = () => l === "withText" ? xg : l === "withoutText" ? Dg : l, _ = (O) => {
|
|
16100
|
-
!u || n && (e(
|
|
16100
|
+
!u || n && (e(9, n.muted = !1, n), n.play());
|
|
16101
16101
|
};
|
|
16102
16102
|
return i.$$set = (O) => {
|
|
16103
16103
|
"mediaInstance" in O && e(0, s = O.mediaInstance), "tag" in O && e(1, r = O.tag), "media" in O && e(2, a = O.media), "playButtonIfNeed" in O && e(3, l = O.playButtonIfNeed), "playButtonSizeIfNeed" in O && e(4, c = O.playButtonSizeIfNeed), "canPlay" in O && e(5, u = O.canPlay), "objectFit" in O && e(6, h = O.objectFit), "disableVideoIfHavePoster" in O && e(7, d = O.disableVideoIfHavePoster);
|
|
16104
16104
|
}, i.$$.update = () => {
|
|
16105
|
-
if (i.$$.dirty & 1 && e(
|
|
16105
|
+
if (i.$$.dirty & 1 && e(9, n = s.videoInstance), i.$$.dirty & 4 && e(13, o = a == null ? void 0 : a.url), i.$$.dirty & 8192 && Boolean(o) && p(), i.$$.dirty & 512 && n && e(10, m = n.paused), i.$$.dirty & 772 && (a == null ? void 0 : a.type) === "Video" && !g) {
|
|
16106
16106
|
const O = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, z = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && O;
|
|
16107
16107
|
n && z && 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));
|
|
16108
16108
|
}
|
|
@@ -16115,10 +16115,10 @@ function xA(i, t, e) {
|
|
|
16115
16115
|
u,
|
|
16116
16116
|
h,
|
|
16117
16117
|
d,
|
|
16118
|
+
g,
|
|
16118
16119
|
n,
|
|
16119
16120
|
m,
|
|
16120
16121
|
v,
|
|
16121
|
-
g,
|
|
16122
16122
|
A,
|
|
16123
16123
|
o,
|
|
16124
16124
|
w,
|
|
@@ -16386,10 +16386,10 @@ function TA(i) {
|
|
|
16386
16386
|
};
|
|
16387
16387
|
}
|
|
16388
16388
|
function zA(i, t, e) {
|
|
16389
|
-
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: h = 0 } = t, { unfolded: d = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig:
|
|
16389
|
+
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: h = 0 } = t, { unfolded: d = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig: g } = t, { enableCarousel: p = !0 } = t, { autoplayConfig: v = { autoplay: !0, autoplayVideo: !1 } } = t, A = [], b = 0, w, k = null;
|
|
16390
16390
|
const I = vt("hooks"), C = vt("mediaStore");
|
|
16391
16391
|
function L() {
|
|
16392
|
-
const V =
|
|
16392
|
+
const V = A[b], z = V == null ? void 0 : V.videoInstance;
|
|
16393
16393
|
!z || (z.paused ? (z.muted = !1, z.play()) : z.pause());
|
|
16394
16394
|
}
|
|
16395
16395
|
Ke(() => {
|
|
@@ -16406,7 +16406,7 @@ function zA(i, t, e) {
|
|
|
16406
16406
|
clearInterval(k), I.off("click", L);
|
|
16407
16407
|
});
|
|
16408
16408
|
function x(V, z) {
|
|
16409
|
-
i.$$.not_equal(
|
|
16409
|
+
i.$$.not_equal(A[z], V) && (A[z] = V, e(8, A));
|
|
16410
16410
|
}
|
|
16411
16411
|
function F(V) {
|
|
16412
16412
|
Be[V ? "unshift" : "push"](() => {
|
|
@@ -16417,12 +16417,12 @@ function zA(i, t, e) {
|
|
|
16417
16417
|
n || C.set({ currentMediaElement: null }), e(11, b = V.detail);
|
|
16418
16418
|
};
|
|
16419
16419
|
function O(V) {
|
|
16420
|
-
i.$$.not_equal(
|
|
16420
|
+
i.$$.not_equal(A[0], V) && (A[0] = V, e(8, A));
|
|
16421
16421
|
}
|
|
16422
16422
|
return i.$$set = (V) => {
|
|
16423
|
-
"tag" in V && e(0, a = V.tag), "mediaData" in V && e(1, l = V.mediaData), "inDelay" in V && e(2, c = V.inDelay), "outDelay" in V && e(3, u = V.outDelay), "duration" in V && e(4, h = V.duration), "unfolded" in V && e(5, d = V.unfolded), "animation" in V && e(6, m = V.animation), "mediaItemConfig" in V && e(7,
|
|
16423
|
+
"tag" in V && e(0, a = V.tag), "mediaData" in V && e(1, l = V.mediaData), "inDelay" in V && e(2, c = V.inDelay), "outDelay" in V && e(3, u = V.outDelay), "duration" in V && e(4, h = V.duration), "unfolded" in V && e(5, d = V.unfolded), "animation" in V && e(6, m = V.animation), "mediaItemConfig" in V && e(7, g = V.mediaItemConfig), "enableCarousel" in V && e(15, p = V.enableCarousel), "autoplayConfig" in V && e(16, v = V.autoplayConfig);
|
|
16424
16424
|
}, i.$$.update = () => {
|
|
16425
|
-
i.$$.dirty & 256 && e(9, n =
|
|
16425
|
+
i.$$.dirty & 256 && e(9, n = A.every((V) => V.paused)), i.$$.dirty & 32770 && e(13, o = p && (l == null ? void 0 : l.length) > 1), i.$$.dirty & 2 && e(10, s = l), i.$$.dirty & 67072 && (r = s.length > 1 && v.autoplay && n);
|
|
16426
16426
|
}, [
|
|
16427
16427
|
a,
|
|
16428
16428
|
l,
|
|
@@ -16431,8 +16431,8 @@ function zA(i, t, e) {
|
|
|
16431
16431
|
h,
|
|
16432
16432
|
d,
|
|
16433
16433
|
m,
|
|
16434
|
-
A,
|
|
16435
16434
|
g,
|
|
16435
|
+
A,
|
|
16436
16436
|
n,
|
|
16437
16437
|
s,
|
|
16438
16438
|
b,
|
|
@@ -16502,8 +16502,8 @@ function Nr(i) {
|
|
|
16502
16502
|
p(h, d) {
|
|
16503
16503
|
const m = {};
|
|
16504
16504
|
d & 8 && (m.visible = h[3]), t.$set(m);
|
|
16505
|
-
const
|
|
16506
|
-
d & 8 && (
|
|
16505
|
+
const g = {};
|
|
16506
|
+
d & 8 && (g.unfolded = h[3]), o.$set(g), h[2] ? c ? (c.p(h, d), d & 4 && P(c, 1)) : (c = Xr(h), c.c(), P(c, 1), c.m(r.parentNode, r)) : c && (se(), D(c, 1, 1, () => {
|
|
16507
16507
|
c = null;
|
|
16508
16508
|
}), re()), h[1] ? u ? (u.p(h, d), d & 2 && P(u, 1)) : (u = Yr(h), u.c(), P(u, 1), u.m(a.parentNode, a)) : u && (se(), D(u, 1, 1, () => {
|
|
16509
16509
|
u = null;
|
|
@@ -16815,7 +16815,7 @@ function ia(i) {
|
|
|
16815
16815
|
}
|
|
16816
16816
|
function RA(i) {
|
|
16817
16817
|
var k, I;
|
|
16818
|
-
let t, e, n, o, s, r, a, l, c, u, h = i[3].title + "", d, m,
|
|
16818
|
+
let t, e, n, o, s, r, a, l, c, u, h = i[3].title + "", d, m, g, p, v;
|
|
16819
16819
|
e = new st({
|
|
16820
16820
|
props: {
|
|
16821
16821
|
visible: i[4],
|
|
@@ -16826,18 +16826,18 @@ function RA(i) {
|
|
|
16826
16826
|
spreadRadius: 75
|
|
16827
16827
|
}
|
|
16828
16828
|
});
|
|
16829
|
-
let
|
|
16829
|
+
let A = i[3].headerPictureUrl && Jr(i), b = ((k = i[2].length) != null ? k : 0) + ((I = i[5].length) != null ? I : 0) > 0 && Zr(i), w = (i[7] || i[3].highlightText) && ea(i);
|
|
16830
16830
|
return {
|
|
16831
16831
|
c() {
|
|
16832
|
-
t = B("div"), K(e.$$.fragment), n = $(), o = B("div"), s = $(), r = B("div"),
|
|
16832
|
+
t = B("div"), K(e.$$.fragment), n = $(), o = B("div"), s = $(), r = B("div"), A && A.c(), a = $(), l = B("div"), c = B("div"), u = B("div"), d = ke(h), m = $(), b && b.c(), g = $(), 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", p = Pe(`marketing ${i[6]}`) + " svelte-sezqcq"), U(t, "unfolded", i[4]), U(t, "folded", i[8]);
|
|
16833
16833
|
},
|
|
16834
16834
|
m(C, L) {
|
|
16835
|
-
M(C, t, L), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r),
|
|
16835
|
+
M(C, t, L), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r), A && A.m(r, null), j(r, a), j(r, l), j(l, c), j(c, u), j(u, d), j(r, m), b && b.m(r, null), j(r, g), w && w.m(r, null), v = !0;
|
|
16836
16836
|
},
|
|
16837
16837
|
p(C, [L]) {
|
|
16838
16838
|
var F, _;
|
|
16839
16839
|
const x = {};
|
|
16840
|
-
L & 16 && (x.visible = C[4]), e.$set(x), L & 16 && T(o, "transition-delay", C[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), C[3].headerPictureUrl ?
|
|
16840
|
+
L & 16 && (x.visible = C[4]), e.$set(x), L & 16 && T(o, "transition-delay", C[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), C[3].headerPictureUrl ? A ? A.p(C, L) : (A = Jr(C), A.c(), A.m(r, a)) : A && (A.d(1), A = null), (!v || L & 8) && h !== (h = C[3].title + "") && Se(d, h), ((F = C[2].length) != null ? F : 0) + ((_ = C[5].length) != null ? _ : 0) > 0 ? b ? b.p(C, L) : (b = Zr(C), b.c(), b.m(r, g)) : b && (b.d(1), b = null), C[7] || C[3].highlightText ? w ? w.p(C, L) : (w = ea(C), w.c(), w.m(r, null)) : w && (w.d(1), w = null), L & 16 && T(r, "transition-delay", C[4] ? $n + ei + "ms" : "0ms"), (!v || L & 64 && p !== (p = Pe(`marketing ${C[6]}`) + " svelte-sezqcq")) && y(t, "class", p), (!v || L & 80) && U(t, "unfolded", C[4]), (!v || L & 320) && U(t, "folded", C[8]);
|
|
16841
16841
|
},
|
|
16842
16842
|
i(C) {
|
|
16843
16843
|
v || (P(e.$$.fragment, C), v = !0);
|
|
@@ -16846,7 +16846,7 @@ function RA(i) {
|
|
|
16846
16846
|
D(e.$$.fragment, C), v = !1;
|
|
16847
16847
|
},
|
|
16848
16848
|
d(C) {
|
|
16849
|
-
C && S(t), Z(e),
|
|
16849
|
+
C && S(t), Z(e), A && A.d(), b && b.d(), w && w.d();
|
|
16850
16850
|
}
|
|
16851
16851
|
};
|
|
16852
16852
|
}
|
|
@@ -16860,14 +16860,14 @@ function FA(i, t, e) {
|
|
|
16860
16860
|
if (p === !0)
|
|
16861
16861
|
return 172;
|
|
16862
16862
|
})();
|
|
16863
|
-
function
|
|
16863
|
+
function g() {
|
|
16864
16864
|
d = this.offsetHeight, e(1, d);
|
|
16865
16865
|
}
|
|
16866
16866
|
return i.$$set = (p) => {
|
|
16867
16867
|
"tag" in p && e(0, h = p.tag);
|
|
16868
16868
|
}, i.$$.update = () => {
|
|
16869
|
-
var p, v,
|
|
16870
|
-
i.$$.dirty & 1 && e(4, n = (v = (p = h.state) == null ? void 0 : p.unfolded) != null ? v : !1), i.$$.dirty & 16 && e(8, o = !n), i.$$.dirty & 1 && e(3, s = h.data), i.$$.dirty & 8 && e(7, r = wt((
|
|
16869
|
+
var p, v, A, b, w, k;
|
|
16870
|
+
i.$$.dirty & 1 && e(4, n = (v = (p = h.state) == null ? void 0 : p.unfolded) != null ? v : !1), i.$$.dirty & 16 && e(8, o = !n), i.$$.dirty & 1 && e(3, s = h.data), i.$$.dirty & 8 && e(7, r = wt((A = s.price) == null ? void 0 : A.value) && ((b = s.price) == null ? void 0 : b.value) !== ""), i.$$.dirty & 1 && e(6, a = h.data.theme || "light"), i.$$.dirty & 1026 && d > 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 = ((k = s.tags) == null ? void 0 : k.slice(0, l - c.length).filter(Boolean)) || []);
|
|
16871
16871
|
}, e(10, l = (m - 20) / zo), [
|
|
16872
16872
|
h,
|
|
16873
16873
|
d,
|
|
@@ -16880,7 +16880,7 @@ function FA(i, t, e) {
|
|
|
16880
16880
|
o,
|
|
16881
16881
|
m,
|
|
16882
16882
|
l,
|
|
16883
|
-
|
|
16883
|
+
g
|
|
16884
16884
|
];
|
|
16885
16885
|
}
|
|
16886
16886
|
class HA extends oe {
|
|
@@ -17019,7 +17019,7 @@ function NA(i, t, e) {
|
|
|
17019
17019
|
let { $$slots: n = {}, $$scope: o } = t, { url: s } = t, { enable: r = !0 } = t, { style: a = "" } = t, { hooksInfo: l } = t;
|
|
17020
17020
|
const c = yi(), u = vt("hooks"), h = vt("mediaStore");
|
|
17021
17021
|
let d, m = !0;
|
|
17022
|
-
function
|
|
17022
|
+
function g() {
|
|
17023
17023
|
e(
|
|
17024
17024
|
5,
|
|
17025
17025
|
d.onplay = (v) => {
|
|
@@ -17087,7 +17087,7 @@ function NA(i, t, e) {
|
|
|
17087
17087
|
return i.$$set = (v) => {
|
|
17088
17088
|
"url" in v && e(2, s = v.url), "enable" in v && e(3, r = v.enable), "style" in v && e(0, a = v.style), "hooksInfo" in v && e(4, l = v.hooksInfo), "$$scope" in v && e(7, o = v.$$scope);
|
|
17089
17089
|
}, i.$$.update = () => {
|
|
17090
|
-
i.$$.dirty & 4 && (s || c("duration", 0)), i.$$.dirty & 36 && (d == null || d.dispose(), e(5, d = new GA(s)), c("audioRef", d), setTimeout(() => c("audioRef", d), 200),
|
|
17090
|
+
i.$$.dirty & 4 && (s || c("duration", 0)), i.$$.dirty & 36 && (d == null || d.dispose(), e(5, d = new GA(s)), c("audioRef", d), setTimeout(() => c("audioRef", d), 200), g()), i.$$.dirty & 40 && (r || d == null || d.pause()), i.$$.dirty & 72 && c(r && !m ? "play" : "pause");
|
|
17091
17091
|
}, [a, p, s, r, l, d, m, o, n];
|
|
17092
17092
|
}
|
|
17093
17093
|
class Yl extends oe {
|
|
@@ -17212,8 +17212,8 @@ function qA(i) {
|
|
|
17212
17212
|
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%}");
|
|
17213
17213
|
}
|
|
17214
17214
|
function aa(i) {
|
|
17215
|
-
var v,
|
|
17216
|
-
let t, e, n, o, s, r, a, l, c, u, h, d, m,
|
|
17215
|
+
var v, A;
|
|
17216
|
+
let t, e, n, o, s, r, a, l, c, u, h, d, m, g;
|
|
17217
17217
|
e = new st({
|
|
17218
17218
|
props: {
|
|
17219
17219
|
visible: i[6],
|
|
@@ -17235,7 +17235,7 @@ function aa(i) {
|
|
|
17235
17235
|
props: {
|
|
17236
17236
|
unfolded: i[6],
|
|
17237
17237
|
length: i[3],
|
|
17238
|
-
outDelay: i[4] + 20 * Math.min((
|
|
17238
|
+
outDelay: i[4] + 20 * Math.min((A = (v = i[5]) == null ? void 0 : v.length) != null ? A : 10, 15),
|
|
17239
17239
|
useLinearColor: !0
|
|
17240
17240
|
}
|
|
17241
17241
|
}), {
|
|
@@ -17243,7 +17243,7 @@ function aa(i) {
|
|
|
17243
17243
|
t = B("div"), K(e.$$.fragment), n = $(), o = B("div"), s = B("div"), r = B("div"), p && p.c(), a = $(), l = B("div"), K(c.$$.fragment), u = $(), K(h.$$.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"), U(t, "unfolded", i[6]);
|
|
17244
17244
|
},
|
|
17245
17245
|
m(b, w) {
|
|
17246
|
-
M(b, t, w), J(e, t, null), j(t, n), j(t, o), j(o, s), j(s, r), p && p.m(r, null), j(s, a), j(s, l), J(c, l, null), j(t, u), J(h, t, null), d = !0, m || (
|
|
17246
|
+
M(b, t, w), J(e, t, null), j(t, n), j(t, o), j(o, s), j(s, r), p && p.m(r, null), j(s, a), j(s, l), J(c, l, null), j(t, u), J(h, t, null), d = !0, m || (g = [
|
|
17247
17247
|
me(l, "click", i[7]),
|
|
17248
17248
|
ct(rn.call(null, l)),
|
|
17249
17249
|
me(l, "clientWidth", i[12])
|
|
@@ -17267,7 +17267,7 @@ function aa(i) {
|
|
|
17267
17267
|
D(e.$$.fragment, b), D(p), D(c.$$.fragment, b), D(h.$$.fragment, b), d = !1;
|
|
17268
17268
|
},
|
|
17269
17269
|
d(b) {
|
|
17270
|
-
b && S(t), Z(e), p && p.d(), Z(c), Z(h), m = !1, Ge(
|
|
17270
|
+
b && S(t), Z(e), p && p.d(), Z(c), Z(h), m = !1, Ge(g);
|
|
17271
17271
|
}
|
|
17272
17272
|
};
|
|
17273
17273
|
}
|
|
@@ -17382,7 +17382,7 @@ function KA(i, t, e) {
|
|
|
17382
17382
|
}, m = () => {
|
|
17383
17383
|
e(2, l = !1);
|
|
17384
17384
|
};
|
|
17385
|
-
function
|
|
17385
|
+
function g(v) {
|
|
17386
17386
|
on.call(this, i, v);
|
|
17387
17387
|
}
|
|
17388
17388
|
const p = (v) => {
|
|
@@ -17391,8 +17391,8 @@ function KA(i, t, e) {
|
|
|
17391
17391
|
return i.$$set = (v) => {
|
|
17392
17392
|
"tag" in v && e(0, r = v.tag);
|
|
17393
17393
|
}, i.$$.update = () => {
|
|
17394
|
-
var v,
|
|
17395
|
-
i.$$.dirty & 1 && e(6, n = !!((v = r.state) != null && v.unfolded)), i.$$.dirty & 1 && e(5, o = (b = (
|
|
17394
|
+
var v, A, b;
|
|
17395
|
+
i.$$.dirty & 1 && e(6, n = !!((v = r.state) != null && v.unfolded)), i.$$.dirty & 1 && e(5, o = (b = (A = r.data.title) != null ? A : r.data.text) != null ? b : ""), i.$$.dirty & 2 && e(4, s = a ? 450 : 0);
|
|
17396
17396
|
}, [
|
|
17397
17397
|
r,
|
|
17398
17398
|
a,
|
|
@@ -17405,7 +17405,7 @@ function KA(i, t, e) {
|
|
|
17405
17405
|
h,
|
|
17406
17406
|
d,
|
|
17407
17407
|
m,
|
|
17408
|
-
|
|
17408
|
+
g,
|
|
17409
17409
|
p
|
|
17410
17410
|
];
|
|
17411
17411
|
}
|
|
@@ -17545,7 +17545,7 @@ function ov(i, t, e) {
|
|
|
17545
17545
|
e(3, c = !1);
|
|
17546
17546
|
}, m = (v) => {
|
|
17547
17547
|
e(1, a = v.detail);
|
|
17548
|
-
},
|
|
17548
|
+
}, g = (v) => {
|
|
17549
17549
|
e(2, l = v.detail);
|
|
17550
17550
|
};
|
|
17551
17551
|
function p(v) {
|
|
@@ -17554,8 +17554,8 @@ function ov(i, t, e) {
|
|
|
17554
17554
|
return i.$$set = (v) => {
|
|
17555
17555
|
"tag" in v && e(0, s = v.tag);
|
|
17556
17556
|
}, i.$$.update = () => {
|
|
17557
|
-
var v,
|
|
17558
|
-
i.$$.dirty & 1 && e(5, n = (
|
|
17557
|
+
var v, A, b;
|
|
17558
|
+
i.$$.dirty & 1 && e(5, n = (A = (v = s.data.title) != null ? v : s.data.text) != null ? A : ""), i.$$.dirty & 1 && e(4, o = (b = r[s.data.theme || "light"]) != null ? b : r.light);
|
|
17559
17559
|
}, [
|
|
17560
17560
|
s,
|
|
17561
17561
|
a,
|
|
@@ -17567,7 +17567,7 @@ function ov(i, t, e) {
|
|
|
17567
17567
|
h,
|
|
17568
17568
|
d,
|
|
17569
17569
|
m,
|
|
17570
|
-
|
|
17570
|
+
g,
|
|
17571
17571
|
p
|
|
17572
17572
|
];
|
|
17573
17573
|
}
|
|
@@ -18045,7 +18045,7 @@ function Ht(i) {
|
|
|
18045
18045
|
return fe(Q({}, i), { width: s, height: r });
|
|
18046
18046
|
}
|
|
18047
18047
|
function xv(i, t, e) {
|
|
18048
|
-
let n, o, s, r, a, l, c, u, h, { width: d = null } = t, { icon: m = null } = t, { shadow:
|
|
18048
|
+
let n, o, s, r, a, l, c, u, h, { width: d = null } = t, { icon: m = null } = t, { shadow: g = !1 } = t;
|
|
18049
18049
|
const p = yi();
|
|
18050
18050
|
function v(w) {
|
|
18051
18051
|
return H(this, null, function* () {
|
|
@@ -18053,7 +18053,7 @@ function xv(i, t, e) {
|
|
|
18053
18053
|
return p("iconLoaded", k), k;
|
|
18054
18054
|
});
|
|
18055
18055
|
}
|
|
18056
|
-
function
|
|
18056
|
+
function A(w) {
|
|
18057
18057
|
return H(this, null, function* () {
|
|
18058
18058
|
if (typeof h == "number")
|
|
18059
18059
|
return fe(Q({}, w), { width: h });
|
|
@@ -18067,7 +18067,7 @@ function xv(i, t, e) {
|
|
|
18067
18067
|
return Ke(() => {
|
|
18068
18068
|
b();
|
|
18069
18069
|
}), i.$$set = (w) => {
|
|
18070
|
-
"width" in w && e(1, d = w.width), "icon" in w && e(12, m = w.icon), "shadow" in w && e(0,
|
|
18070
|
+
"width" in w && e(1, d = w.width), "icon" in w && e(12, m = w.icon), "shadow" in w && e(0, g = w.shadow);
|
|
18071
18071
|
}, i.$$.update = () => {
|
|
18072
18072
|
var w, k;
|
|
18073
18073
|
i.$$.dirty & 4096 && e(7, n = m == null ? void 0 : m.url), i.$$.dirty & 4096 && e(2, o = (w = m == null ? void 0 : m.steps) != null ? w : 1), i.$$.dirty & 4096 && e(6, s = m == null ? void 0 : m.fps), i.$$.dirty & 4096 && e(5, r = m == null ? void 0 : m.ratio), i.$$.dirty & 4096 && e(4, a = (k = m == null ? void 0 : m.scale) != null ? k : 1), i.$$.dirty & 4096 && e(3, l = m == null ? void 0 : m.width), i.$$.dirty & 252 && e(9, c = De({
|
|
@@ -18079,7 +18079,7 @@ function xv(i, t, e) {
|
|
|
18079
18079
|
width: l
|
|
18080
18080
|
})), i.$$.dirty & 4 && e(8, u = o > 1), i.$$.dirty & 2 && (h = d);
|
|
18081
18081
|
}, b(), [
|
|
18082
|
-
|
|
18082
|
+
g,
|
|
18083
18083
|
d,
|
|
18084
18084
|
o,
|
|
18085
18085
|
l,
|
|
@@ -18090,7 +18090,7 @@ function xv(i, t, e) {
|
|
|
18090
18090
|
u,
|
|
18091
18091
|
c,
|
|
18092
18092
|
v,
|
|
18093
|
-
|
|
18093
|
+
A,
|
|
18094
18094
|
m
|
|
18095
18095
|
];
|
|
18096
18096
|
}
|
|
@@ -18282,32 +18282,32 @@ function Qv(i) {
|
|
|
18282
18282
|
Hv,
|
|
18283
18283
|
Fv
|
|
18284
18284
|
], d = [];
|
|
18285
|
-
function m(
|
|
18286
|
-
return
|
|
18285
|
+
function m(g, p) {
|
|
18286
|
+
return g[1].contentType === "Text" ? 0 : g[1].contentType === "ImageText" || g[1].contentType === "Image" || g[1].contentType === "Video" ? 1 : g[1].contentType === "Audio" ? 2 : g[1].contentType === "Marketing" ? 3 : g[1].contentType === "Link" || g[1].contentType === "VRLink" || g[1].contentType === "PanoLink" || g[1].contentType === "Sticker" ? 4 : g[1].contentType === "MediaPlane" || g[1].contentType === "MediaModel" ? 5 : -1;
|
|
18287
18287
|
}
|
|
18288
18288
|
return ~(o = m(i)) && (s = d[o] = h[o](i)), {
|
|
18289
18289
|
c() {
|
|
18290
|
-
var
|
|
18291
|
-
t = B("div"), e = B("div"), n = B("div"), s && s.c(), y(n, "class", "content svelte-1r4fqvg"), U(n, "unfolded", (
|
|
18290
|
+
var g;
|
|
18291
|
+
t = B("div"), e = B("div"), n = B("div"), s && s.c(), y(n, "class", "content svelte-1r4fqvg"), U(n, "unfolded", (g = i[1].state) == null ? void 0 : g.unfolded), y(e, "class", "content__wrapper svelte-1r4fqvg"), y(t, "class", r = Pe(Oe("content__container", i[1].className)) + " svelte-1r4fqvg"), y(t, "data-id", a = i[1].id), U(t, "disable", i[1].enabled === !1), U(t, "hide", i[4]), U(t, "withAnimation", i[0]), U(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);
|
|
18292
18292
|
},
|
|
18293
|
-
m(
|
|
18294
|
-
M(
|
|
18293
|
+
m(g, p) {
|
|
18294
|
+
M(g, t, p), j(t, e), j(e, n), ~o && d[o].m(n, null), l = !0, c || (u = me(t, "click", Fa(i[14])), c = !0);
|
|
18295
18295
|
},
|
|
18296
|
-
p(
|
|
18297
|
-
var
|
|
18296
|
+
p(g, p) {
|
|
18297
|
+
var A;
|
|
18298
18298
|
let v = o;
|
|
18299
|
-
o = m(
|
|
18299
|
+
o = m(g), o === v ? ~o && d[o].p(g, p) : (s && (se(), D(d[v], 1, 1, () => {
|
|
18300
18300
|
d[v] = null;
|
|
18301
|
-
}), re()), ~o ? (s = d[o], s ? s.p(
|
|
18301
|
+
}), re()), ~o ? (s = d[o], s ? s.p(g, p) : (s = d[o] = h[o](g), s.c()), P(s, 1), s.m(n, null)) : s = null), (!l || p & 2) && U(n, "unfolded", (A = g[1].state) == null ? void 0 : A.unfolded), (!l || p & 2 && r !== (r = Pe(Oe("content__container", g[1].className)) + " svelte-1r4fqvg")) && y(t, "class", r), (!l || p & 2 && a !== (a = g[1].id)) && y(t, "data-id", a), (!l || p & 2) && U(t, "disable", g[1].enabled === !1), (!l || p & 18) && U(t, "hide", g[4]), (!l || p & 3) && U(t, "withAnimation", g[0]), (!l || p & 2) && U(t, "unClickable", g[1].mergedConfig.clickable === !1), p & 2 && T(t, "width", g[1].stickType === "Plane" || g[1].contentType === "MediaModel" ? "100%" : 0), p & 2 && T(t, "height", g[1].stickType === "Plane" || g[1].contentType === "MediaModel" ? "100%" : 0);
|
|
18302
18302
|
},
|
|
18303
|
-
i(
|
|
18303
|
+
i(g) {
|
|
18304
18304
|
l || (P(s), l = !0);
|
|
18305
18305
|
},
|
|
18306
|
-
o(
|
|
18306
|
+
o(g) {
|
|
18307
18307
|
D(s), l = !1;
|
|
18308
18308
|
},
|
|
18309
|
-
d(
|
|
18310
|
-
|
|
18309
|
+
d(g) {
|
|
18310
|
+
g && S(t), ~o && d[o].d(), c = !1, u();
|
|
18311
18311
|
}
|
|
18312
18312
|
};
|
|
18313
18313
|
}
|
|
@@ -18524,10 +18524,10 @@ function Xv(i) {
|
|
|
18524
18524
|
};
|
|
18525
18525
|
}
|
|
18526
18526
|
function Yv(i, t, e) {
|
|
18527
|
-
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: h } = t, { state: d } = t, { mediaStore: m } = t, { temporaryState:
|
|
18527
|
+
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: h } = t, { state: d } = t, { mediaStore: m } = t, { temporaryState: g } = t;
|
|
18528
18528
|
eo("hooks", h), eo("mediaStore", m);
|
|
18529
18529
|
let p, v;
|
|
18530
|
-
function
|
|
18530
|
+
function A(I) {
|
|
18531
18531
|
I ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
|
|
18532
18532
|
}
|
|
18533
18533
|
function b(I, C, L) {
|
|
@@ -18536,10 +18536,10 @@ function Yv(i, t, e) {
|
|
|
18536
18536
|
}
|
|
18537
18537
|
const w = (I) => h.emit("click", { event: I, target: "TagContent", tag: u }), k = (I) => h.emit("click", { event: I, target: "TagContent", tag: u });
|
|
18538
18538
|
return i.$$set = (I) => {
|
|
18539
|
-
"withAnimation" in I && e(0, c = I.withAnimation), "tag" in I && e(1, u = I.tag), "hooks" in I && e(2, h = I.hooks), "state" in I && e(5, d = I.state), "mediaStore" in I && e(6, m = I.mediaStore), "temporaryState" in I && e(7,
|
|
18539
|
+
"withAnimation" in I && e(0, c = I.withAnimation), "tag" in I && e(1, u = I.tag), "hooks" in I && e(2, h = I.hooks), "state" in I && e(5, d = I.state), "mediaStore" in I && e(6, m = I.mediaStore), "temporaryState" in I && e(7, g = I.temporaryState);
|
|
18540
18540
|
}, i.$$.update = () => {
|
|
18541
18541
|
var I, C, L, x, F, _, O, V, z, R, G;
|
|
18542
|
-
i.$$.dirty & 2 && e(11, n = (I = u.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(10, o = (C = u.state) == null ? void 0 : C.visible), i.$$.dirty & 162 && e(12, s = d.visible &&
|
|
18542
|
+
i.$$.dirty & 2 && e(11, n = (I = u.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(10, o = (C = u.state) == null ? void 0 : C.visible), i.$$.dirty & 162 && e(12, s = d.visible && g.visible && ((L = u.state) == null ? void 0 : L.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, d, g)), i.$$.dirty & 4096 && A(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== v && (e(9, v = n), n ? (F = (x = u.hooks).emit) == null || F.call(x, "unfolded") : (O = u == null ? void 0 : (_ = u.hooks).emit) == null || O.call(_, "folded")), o !== void 0 && o !== p && (e(8, p = o), o ? (z = (V = u.hooks).emit) == null || z.call(V, "show") : (G = (R = u.hooks).emit) == null || G.call(R, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
|
|
18543
18543
|
}, [
|
|
18544
18544
|
c,
|
|
18545
18545
|
u,
|
|
@@ -18548,7 +18548,7 @@ function Yv(i, t, e) {
|
|
|
18548
18548
|
a,
|
|
18549
18549
|
d,
|
|
18550
18550
|
m,
|
|
18551
|
-
|
|
18551
|
+
g,
|
|
18552
18552
|
p,
|
|
18553
18553
|
v,
|
|
18554
18554
|
o,
|
|
@@ -18599,13 +18599,13 @@ function qv(i) {
|
|
|
18599
18599
|
c() {
|
|
18600
18600
|
t = B("div"), e = B("div"), n = $(), K(o.$$.fragment), s = $(), r = B("div"), a = $(), l = B("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"), U(t, "unfolded", i[0]), U(t, "folded", i[3]);
|
|
18601
18601
|
},
|
|
18602
|
-
m(m,
|
|
18603
|
-
M(m, t,
|
|
18602
|
+
m(m, g) {
|
|
18603
|
+
M(m, t, g), 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, h || (d = me(e, "click", i[4]), h = !0);
|
|
18604
18604
|
},
|
|
18605
|
-
p(m, [
|
|
18606
|
-
|
|
18605
|
+
p(m, [g]) {
|
|
18606
|
+
g & 8 && T(r, "transition-delay", (m[3] ? m[5] : 0) + "ms");
|
|
18607
18607
|
const p = {};
|
|
18608
|
-
|
|
18608
|
+
g & 4 && (p.icon = m[2]), g & 2 && (p.width = m[1]), c.$set(p), g & 8 && T(l, "transition-delay", (m[3] ? m[5] : 0) + "ms"), (!u || g & 1) && U(t, "unfolded", m[0]), (!u || g & 8) && U(t, "folded", m[3]);
|
|
18609
18609
|
},
|
|
18610
18610
|
i(m) {
|
|
18611
18611
|
u || (P(o.$$.fragment, m), P(c.$$.fragment, m), u = !0);
|
|
@@ -18632,14 +18632,14 @@ function Jv(i, t, e) {
|
|
|
18632
18632
|
}, d = (p) => {
|
|
18633
18633
|
u || a.emit("click", { event: p, target: "TagPoint", tag: l });
|
|
18634
18634
|
}, m = (() => l.contentType === "Text" && l.data.appearance === "plane" ? 500 : 800)();
|
|
18635
|
-
function
|
|
18635
|
+
function g(p) {
|
|
18636
18636
|
on.call(this, i, p);
|
|
18637
18637
|
}
|
|
18638
18638
|
return i.$$set = (p) => {
|
|
18639
18639
|
"tag" in p && e(6, l = p.tag);
|
|
18640
18640
|
}, i.$$.update = () => {
|
|
18641
|
-
var p, v,
|
|
18642
|
-
i.$$.dirty & 64 && e(0, n = (p = l.state) == null ? void 0 : p.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (
|
|
18641
|
+
var p, v, A, b;
|
|
18642
|
+
i.$$.dirty & 64 && e(0, n = (p = l.state) == null ? void 0 : p.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (A = (v = l.style) == null ? void 0 : v.point) != null && A.url ? (b = l.style) == null ? void 0 : b.point : { url: Lg }), i.$$.dirty & 64 && e(1, r = (() => {
|
|
18643
18643
|
var I, C, L, x;
|
|
18644
18644
|
const w = (C = (I = l.style) == null ? void 0 : I.point) == null ? void 0 : C.width;
|
|
18645
18645
|
if (typeof w == "number")
|
|
@@ -18664,7 +18664,7 @@ function Jv(i, t, e) {
|
|
|
18664
18664
|
d,
|
|
18665
18665
|
m,
|
|
18666
18666
|
l,
|
|
18667
|
-
|
|
18667
|
+
g
|
|
18668
18668
|
];
|
|
18669
18669
|
}
|
|
18670
18670
|
class Zv extends oe {
|
|
@@ -18769,54 +18769,54 @@ function n1(i) {
|
|
|
18769
18769
|
function i1(i) {
|
|
18770
18770
|
let t, e, n, o, s, r, a, l, c, u;
|
|
18771
18771
|
const h = [e1, $v], d = [];
|
|
18772
|
-
function m(
|
|
18773
|
-
return
|
|
18772
|
+
function m(A, b) {
|
|
18773
|
+
return A[12] ? 0 : 1;
|
|
18774
18774
|
}
|
|
18775
18775
|
n = m(i), o = d[n] = h[n](i);
|
|
18776
|
-
const
|
|
18777
|
-
function v(
|
|
18778
|
-
return
|
|
18776
|
+
const g = [n1, t1], p = [];
|
|
18777
|
+
function v(A, b) {
|
|
18778
|
+
return A[13] ? 0 : 1;
|
|
18779
18779
|
}
|
|
18780
|
-
return r = v(i), a = p[r] =
|
|
18780
|
+
return r = v(i), a = p[r] = g[r](i), {
|
|
18781
18781
|
c() {
|
|
18782
18782
|
t = B("div"), e = B("div"), o.c(), s = $(), a.c(), y(e, "class", l = Pe(Oe("wrapper", i[1].className ? `${i[1].className}__wrapper` : void 0)) + " svelte-pzwdws"), y(e, "data-tag-unfolded", i[8]), y(e, "data-tag-id", i[11]), y(e, "data-content-type", c = 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]), U(t, "unClickable", i[1].mergedConfig.clickable === !1), U(t, "disable", i[10]), U(t, "hide", i[9]), U(t, "withAnimation", i[0]);
|
|
18783
18783
|
},
|
|
18784
|
-
m(
|
|
18785
|
-
M(
|
|
18784
|
+
m(A, b) {
|
|
18785
|
+
M(A, t, b), j(t, e), d[n].m(e, null), j(e, s), p[r].m(e, null), u = !0;
|
|
18786
18786
|
},
|
|
18787
|
-
p(
|
|
18787
|
+
p(A, [b]) {
|
|
18788
18788
|
let w = n;
|
|
18789
|
-
n = m(
|
|
18789
|
+
n = m(A), n === w ? d[n].p(A, b) : (se(), D(d[w], 1, 1, () => {
|
|
18790
18790
|
d[w] = null;
|
|
18791
|
-
}), re(), o = d[n], o ? o.p(
|
|
18791
|
+
}), re(), o = d[n], o ? o.p(A, b) : (o = d[n] = h[n](A), o.c()), P(o, 1), o.m(e, s));
|
|
18792
18792
|
let k = r;
|
|
18793
|
-
r = v(
|
|
18793
|
+
r = v(A), r === k ? p[r].p(A, b) : (se(), D(p[k], 1, 1, () => {
|
|
18794
18794
|
p[k] = null;
|
|
18795
|
-
}), re(), a = p[r], a ? a.p(
|
|
18795
|
+
}), re(), a = p[r], a ? a.p(A, b) : (a = p[r] = g[r](A), a.c()), P(a, 1), a.m(e, null)), (!u || b & 2 && l !== (l = Pe(Oe("wrapper", A[1].className ? `${A[1].className}__wrapper` : void 0)) + " svelte-pzwdws")) && y(e, "class", l), (!u || b & 256) && y(e, "data-tag-unfolded", A[8]), (!u || b & 2048) && y(e, "data-tag-id", A[11]), (!u || b & 2 && c !== (c = A[1].contentType)) && y(e, "data-content-type", c), b & 128 && T(e, "left", A[7]), b & 64 && T(e, "top", A[6]), b & 32 && T(e, "z-index", A[5]), (!u || b & 2048) && y(t, "data-tag-id", A[11]), (!u || b & 2) && U(t, "unClickable", A[1].mergedConfig.clickable === !1), (!u || b & 1024) && U(t, "disable", A[10]), (!u || b & 512) && U(t, "hide", A[9]), (!u || b & 1) && U(t, "withAnimation", A[0]);
|
|
18796
18796
|
},
|
|
18797
|
-
i(
|
|
18797
|
+
i(A) {
|
|
18798
18798
|
u || (P(o), P(a), u = !0);
|
|
18799
18799
|
},
|
|
18800
|
-
o(
|
|
18800
|
+
o(A) {
|
|
18801
18801
|
D(o), D(a), u = !1;
|
|
18802
18802
|
},
|
|
18803
|
-
d(
|
|
18804
|
-
|
|
18803
|
+
d(A) {
|
|
18804
|
+
A && S(t), d[n].d(), p[r].d();
|
|
18805
18805
|
}
|
|
18806
18806
|
};
|
|
18807
18807
|
}
|
|
18808
18808
|
function o1(i, t, e) {
|
|
18809
|
-
let n, o, s, r, a, l, c, u, h, { withAnimation: d = !1 } = t, { tag: m } = t, { mediaStore:
|
|
18810
|
-
const
|
|
18809
|
+
let n, o, s, r, a, l, c, u, h, { withAnimation: d = !1 } = t, { tag: m } = t, { mediaStore: g } = t, { state: p } = t, { temporaryState: v } = t;
|
|
18810
|
+
const A = vt("hooks");
|
|
18811
18811
|
return i.$$set = (b) => {
|
|
18812
|
-
"withAnimation" in b && e(0, d = b.withAnimation), "tag" in b && e(1, m = b.tag), "mediaStore" in b && e(2,
|
|
18812
|
+
"withAnimation" in b && e(0, d = b.withAnimation), "tag" in b && e(1, m = b.tag), "mediaStore" in b && e(2, g = b.mediaStore), "state" in b && e(3, p = b.state), "temporaryState" in b && e(4, v = b.temporaryState);
|
|
18813
18813
|
}, i.$$.update = () => {
|
|
18814
18814
|
var b, w, k, I, C, L, x, F;
|
|
18815
18815
|
i.$$.dirty & 2 && e(13, n = (() => !(m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Audio" && m.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => m.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = m.id), i.$$.dirty & 2 && e(10, r = !((b = m.pointTagStyle) != null && b.leftPercent) || !((w = m.pointTagStyle) != null && w.topPercent) || m.enabled === !1 || !m.state), i.$$.dirty & 2 && e(9, a = !((k = m.state) != null && k.visible) || ((I = m.temporaryState) == null ? void 0 : I.visible) === !1), i.$$.dirty & 2 && e(8, l = (C = m.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(7, c = ((L = m.pointTagStyle) == null ? void 0 : L.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((x = m.pointTagStyle) == null ? void 0 : x.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (F = m.state) != null && F.unfolded ? 1 : 0);
|
|
18816
18816
|
}, [
|
|
18817
18817
|
d,
|
|
18818
18818
|
m,
|
|
18819
|
-
|
|
18819
|
+
g,
|
|
18820
18820
|
p,
|
|
18821
18821
|
v,
|
|
18822
18822
|
h,
|
|
@@ -18828,7 +18828,7 @@ function o1(i, t, e) {
|
|
|
18828
18828
|
s,
|
|
18829
18829
|
o,
|
|
18830
18830
|
n,
|
|
18831
|
-
|
|
18831
|
+
A
|
|
18832
18832
|
];
|
|
18833
18833
|
}
|
|
18834
18834
|
class s1 extends oe {
|
|
@@ -19078,8 +19078,8 @@ class h1 extends fg {
|
|
|
19078
19078
|
c.container.style.backgroundColor = h, c.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
19079
19079
|
var d;
|
|
19080
19080
|
if (u.css3DObject.opacityMesh) {
|
|
19081
|
-
const m = this.addObjectClickHandler(n, u.css3DObject.opacityMesh, (
|
|
19082
|
-
this.hooks.emit("click", { event:
|
|
19081
|
+
const m = this.addObjectClickHandler(n, u.css3DObject.opacityMesh, (g) => {
|
|
19082
|
+
this.hooks.emit("click", { event: g, target: "TagContent", tag: n });
|
|
19083
19083
|
});
|
|
19084
19084
|
(d = this.store.css3DRenderDisposer.get(n.id)) == null || d.push(m);
|
|
19085
19085
|
}
|
|
@@ -19122,16 +19122,16 @@ class h1 extends fg {
|
|
|
19122
19122
|
});
|
|
19123
19123
|
}
|
|
19124
19124
|
updateTagCss3DObjectMatrix(e, n) {
|
|
19125
|
-
var p, v,
|
|
19126
|
-
const o = (
|
|
19125
|
+
var p, v, A, b;
|
|
19126
|
+
const o = (A = (v = (p = e.mergedConfig) == null ? void 0 : p.tag3DConfig) == null ? void 0 : v.ratio) != null ? A : 216e-5, s = (b = e.tag3DContentSvelte) == null ? void 0 : b.domContainer.css3DObject;
|
|
19127
19127
|
if (!s)
|
|
19128
19128
|
return;
|
|
19129
19129
|
const r = Qe(e) ? e.data.mediaPosition : e.position;
|
|
19130
19130
|
n.updateWorldMatrix(!1, !1);
|
|
19131
19131
|
const a = n.matrixWorld, l = new q().fromArray(r[0]), c = new q().fromArray(r[2]), u = Mn(l, c).add(new q(0, 0, 5e-4)), h = new fn().setPosition(u), d = new fn().makeScale(o, o, o), m = new fn().multiply(a).multiply(h).multiply(d);
|
|
19132
19132
|
m.decompose(s.position, s.quaternion, s.scale);
|
|
19133
|
-
const
|
|
19134
|
-
|
|
19133
|
+
const g = s.opacityMesh;
|
|
19134
|
+
g && m.decompose(g.position, g.quaternion, g.scale);
|
|
19135
19135
|
}
|
|
19136
19136
|
addMediaModelTag(e) {
|
|
19137
19137
|
return H(this, null, function* () {
|
|
@@ -20533,17 +20533,17 @@ class F1 extends jn {
|
|
|
20533
20533
|
const u = this.rotateCenter.clone(), d = o.projectPoint(c.clone(), new E.Vector3()).clone().sub(u);
|
|
20534
20534
|
if (n.angleTo(d) === 0)
|
|
20535
20535
|
return;
|
|
20536
|
-
const m = new E.Quaternion().setFromUnitVectors(n.clone().normalize(), d.clone().normalize()),
|
|
20537
|
-
if (this.hooks.emit("wantToRotate",
|
|
20536
|
+
const m = new E.Quaternion().setFromUnitVectors(n.clone().normalize(), d.clone().normalize()), g = l.quaternion.clone().premultiply(m);
|
|
20537
|
+
if (this.hooks.emit("wantToRotate", g))
|
|
20538
20538
|
return;
|
|
20539
|
-
const
|
|
20539
|
+
const A = new E.Euler().setFromQuaternion(
|
|
20540
20540
|
new E.Quaternion().setFromUnitVectors(
|
|
20541
20541
|
n.clone().normalize().applyQuaternion(a.clone().inverse()),
|
|
20542
20542
|
d.clone().normalize().applyQuaternion(a.clone().inverse())
|
|
20543
20543
|
),
|
|
20544
20544
|
`${r.toUpperCase()}${"XZY".replace(r.toUpperCase(), "")}`
|
|
20545
20545
|
)[r] * s.angleDirection;
|
|
20546
|
-
if (this.startInfo.angle +=
|
|
20546
|
+
if (this.startInfo.angle += A, this.setAngleHelperLength(r, this.startInfo.angle), this.setTipsAngle(sl(this.startInfo.angle)), u) {
|
|
20547
20547
|
const b = new E.Vector3().subVectors(l.position, u).applyQuaternion(m).add(u);
|
|
20548
20548
|
l.position.copy(b);
|
|
20549
20549
|
}
|
|
@@ -20671,13 +20671,13 @@ class H1 extends jn {
|
|
|
20671
20671
|
}
|
|
20672
20672
|
const W = new q().subVectors(G, R), ee = W.length();
|
|
20673
20673
|
return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), V) : W;
|
|
20674
|
-
},
|
|
20675
|
-
const O =
|
|
20674
|
+
}, g = m("ew"), p = m("ns"), v = () => {
|
|
20675
|
+
const O = g;
|
|
20676
20676
|
this.helperObject3D.cornerPositions.forEach((V, z) => {
|
|
20677
20677
|
var R;
|
|
20678
20678
|
(R = this.startInfo) != null && R.dragPointInCenterLeft ? (z === 0 || z === 3) && V.add(O) : (z === 1 || z === 2) && V.add(O);
|
|
20679
20679
|
});
|
|
20680
|
-
},
|
|
20680
|
+
}, A = () => {
|
|
20681
20681
|
const O = p;
|
|
20682
20682
|
this.helperObject3D.cornerPositions.forEach((V, z) => {
|
|
20683
20683
|
var R;
|
|
@@ -20689,11 +20689,11 @@ class H1 extends jn {
|
|
|
20689
20689
|
v();
|
|
20690
20690
|
break;
|
|
20691
20691
|
case "ns":
|
|
20692
|
-
|
|
20692
|
+
A();
|
|
20693
20693
|
break;
|
|
20694
20694
|
case "nesw":
|
|
20695
20695
|
case "nwse":
|
|
20696
|
-
v(),
|
|
20696
|
+
v(), A();
|
|
20697
20697
|
}
|
|
20698
20698
|
const b = new q().subVectors(r[1], r[0]).length() / h.length(), w = new q().subVectors(r[3], r[0]).length() / d.length(), k = new q(b, w, 1), I = new E.Matrix4().scale(k);
|
|
20699
20699
|
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(I) : n.scale.applyMatrix4(I), o.position.copy(a);
|
|
@@ -20791,32 +20791,32 @@ class U1 extends zn {
|
|
|
20791
20791
|
}
|
|
20792
20792
|
const o = new R1(), s = [], r = (m = this.five.getElement()) == null ? void 0 : m.parentElement, a = this.five.camera, { moveHelper: l = !0, rotateHelper: c = !0, scaleHelper: u = !0, boundingBoxHelper: h = !1 } = n, d = new Ue();
|
|
20793
20793
|
if (l) {
|
|
20794
|
-
const
|
|
20794
|
+
const g = new C1(e), p = this.getConfig(n.moveHelper), v = new hn(this.five, z1, e, g, p, d);
|
|
20795
20795
|
o.addControllers({ moveController: v.helperController }), s.push(() => v.dispose());
|
|
20796
20796
|
}
|
|
20797
20797
|
if (c) {
|
|
20798
|
-
const
|
|
20798
|
+
const g = this.getConfig(n.rotateHelper), p = new k1(e, Q({ container: r }, g)), v = new hn(this.five, F1, e, p, g, d);
|
|
20799
20799
|
o.addControllers({ rotateController: v.helperController }), s.push(() => v.dispose());
|
|
20800
20800
|
}
|
|
20801
20801
|
if (h) {
|
|
20802
|
-
const
|
|
20802
|
+
const g = new T1(e), p = new hn(this.five, W1, e, g, void 0, d);
|
|
20803
20803
|
o.addControllers({ boundingBoxController: p.helperController });
|
|
20804
20804
|
}
|
|
20805
20805
|
if (u)
|
|
20806
20806
|
if (e.isCSS3DObjectPlus && r) {
|
|
20807
|
-
const
|
|
20807
|
+
const g = new M1(e, r, a, this.five.scene), p = new hn(this.five, G1, e, g, void 0, d);
|
|
20808
20808
|
o.addControllers({ scaleController: p.helperController }), s.push(() => p.dispose()), Sa(this.five).then(() => {
|
|
20809
|
-
var v,
|
|
20809
|
+
var v, A;
|
|
20810
20810
|
if (e.isCSS3DObjectPlus) {
|
|
20811
20811
|
const b = e;
|
|
20812
20812
|
if (!b || b.mode !== "front")
|
|
20813
20813
|
return;
|
|
20814
20814
|
const w = (v = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? v : Ma(this.five);
|
|
20815
|
-
w && (this.css3DObjectParentMap.set(b, b.parent), b.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(w), (
|
|
20815
|
+
w && (this.css3DObjectParentMap.set(b, b.parent), b.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(w), (A = this.css3DRender.getBehindCSS3DObjectGroup()) == null || A.add(b), this.css3DRender.render(this.five.camera));
|
|
20816
20816
|
}
|
|
20817
20817
|
});
|
|
20818
20818
|
} else {
|
|
20819
|
-
const
|
|
20819
|
+
const g = new _1(e), p = new hn(this.five, m1, e, g, void 0, d);
|
|
20820
20820
|
o.addControllers({ scaleController: p.helperController }), s.push(() => p.dispose());
|
|
20821
20821
|
}
|
|
20822
20822
|
return this.objectHelperMap.set(e, { helper: o, disposers: s }), o.controllers;
|
|
@@ -21186,6 +21186,7 @@ class K1 extends zn {
|
|
|
21186
21186
|
const Yb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21187
21187
|
__proto__: null
|
|
21188
21188
|
}, Symbol.toStringTag, { value: "Module" })), Ub = (i) => new K1(i);
|
|
21189
|
+
console.info("@realsee/dnalogel %cv2.15.0", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
|
|
21189
21190
|
export {
|
|
21190
21191
|
In as CSS3DRender,
|
|
21191
21192
|
Tn as CSS3DRenderPlugin,
|