@realsee/dnalogel 2.10.5-alpha.0 → 2.10.5-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +4 -3
- package/dist/index.cjs.js +14 -14
- package/dist/index.js +220 -196
- package/dist/index.umd.js +14 -14
- package/dist/shared-utils/audio.d.ts +1 -0
- package/docs/classes/CSS3DRender.html +4 -4
- package/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoMeasurePluginLine.html +4 -4
- package/docs/classes/PanoMeasurePluginModel.html +4 -4
- package/docs/classes/PanoMeasurePluginPoint.html +4 -4
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +4 -4
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +4 -4
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +4 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/PointType.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- 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 +4 -4
- 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 +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/EventMap.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/HelperOffset.html +4 -4
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/MinMax.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/ObjectHelperControllers.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCache.html +4 -4
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/TagIconUrl.html +4 -4
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/TemporaryState.html +4 -4
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelElement.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/VERSION.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +10 -10
- package/libs/PanoTagPlugin/Components/Common/Audio.js +48 -38
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +4 -3
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +72 -43
- package/libs/PanoVideoPlugin/VideoMeshController.js +7 -7
- package/libs/shared-utils/audio.d.ts +1 -0
- package/libs/shared-utils/audio.js +14 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var bi = (i, t, e) => t in i ? Wl(i, t, { enumerable: !0, configurable: !0, writ
|
|
|
11
11
|
return i;
|
|
12
12
|
}, me = (i, t) => Nl(i, _l(t));
|
|
13
13
|
var m = (i, t, e) => (bi(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
var
|
|
14
|
+
var F = (i, t, e) => new Promise((n, o) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(e.next(l));
|
|
@@ -601,19 +601,19 @@ const M1 = (i, t) => {
|
|
|
601
601
|
return;
|
|
602
602
|
h = k(i.model, c.fov, c.aspect), d = i.model.bounding.getCenter(new I.Vector3()), l.remove(u), u = G(i.model), l.add(u), n = !0, S();
|
|
603
603
|
function R(_) {
|
|
604
|
-
const
|
|
605
|
-
return
|
|
604
|
+
const H = _.clone();
|
|
605
|
+
return H.uniforms.modelAlpha.value = 1, H.uniforms.map.value && (H.uniforms.map.value.needsUpdate = !0), H;
|
|
606
606
|
}
|
|
607
607
|
function G(_) {
|
|
608
608
|
if (_ instanceof I.Mesh) {
|
|
609
|
-
const
|
|
610
|
-
return new I.Mesh(
|
|
609
|
+
const H = _.geometry, ee = Array.isArray(_.material) ? _.material.map(R) : R(_.material);
|
|
610
|
+
return new I.Mesh(H, ee);
|
|
611
611
|
} else if (_ instanceof I.Group) {
|
|
612
|
-
const
|
|
613
|
-
return _.children.forEach((ee) =>
|
|
612
|
+
const H = new I.Group();
|
|
613
|
+
return _.children.forEach((ee) => H.add(G(ee))), H;
|
|
614
614
|
} else {
|
|
615
|
-
const
|
|
616
|
-
return _.children.forEach((ee) =>
|
|
615
|
+
const H = new I.Object3D();
|
|
616
|
+
return _.children.forEach((ee) => H.add(G(ee))), H;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
}, g = () => {
|
|
@@ -634,21 +634,21 @@ const M1 = (i, t) => {
|
|
|
634
634
|
if (!_)
|
|
635
635
|
return;
|
|
636
636
|
R.appendChild(_.domElement), P(G);
|
|
637
|
-
const
|
|
638
|
-
|
|
637
|
+
const H = window.getComputedStyle(R).position;
|
|
638
|
+
H !== "relative" && H !== "absolute" && H !== "fixed" && H !== "sticky" && (R.style.position = "relative");
|
|
639
639
|
}, P = (R = {}) => {
|
|
640
640
|
if (!s)
|
|
641
641
|
return;
|
|
642
642
|
const _ = s.domElement.parentNode;
|
|
643
643
|
if (_ != null && _.nodeName) {
|
|
644
|
-
const { width:
|
|
645
|
-
s.setSize(
|
|
644
|
+
const { width: H = _.offsetWidth, height: ee = _.offsetHeight } = R;
|
|
645
|
+
s.setSize(H, ee), c.aspect = H / ee, c.updateProjectionMatrix();
|
|
646
646
|
}
|
|
647
647
|
S();
|
|
648
648
|
};
|
|
649
649
|
function k(R, G, _) {
|
|
650
|
-
const
|
|
651
|
-
Math.pow(
|
|
650
|
+
const H = R.bounding, ee = Math.pow(
|
|
651
|
+
Math.pow(H.max.x - H.min.x + 1, 2) + Math.pow(H.max.y - H.min.y + 1, 2) + Math.pow(H.max.z - H.min.z + 1, 2),
|
|
652
652
|
1 / 2
|
|
653
653
|
);
|
|
654
654
|
let W = ee / 2 / Math.tan(Math.PI * G / 360);
|
|
@@ -724,7 +724,7 @@ class Vo extends uc {
|
|
|
724
724
|
}
|
|
725
725
|
renderEveryFrame(e, n) {
|
|
726
726
|
if (this.wrapper || console.warn("wrapper is not find, creating a html element and call setWrapper(wrapper)", this, e), this.requestAnimationFrameId)
|
|
727
|
-
return
|
|
727
|
+
return;
|
|
728
728
|
const o = () => {
|
|
729
729
|
this.requestAnimationFrameId = requestAnimationFrame(o), !!e.visible && gt(e).length !== 0 && this.render(e, n);
|
|
730
730
|
};
|
|
@@ -1101,14 +1101,14 @@ class wn {
|
|
|
1101
1101
|
this.setState({ disposed: !0 }), this.hooks.emit("dispose");
|
|
1102
1102
|
}
|
|
1103
1103
|
show() {
|
|
1104
|
-
return
|
|
1104
|
+
return F(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
1105
1105
|
if (this.state.disposed)
|
|
1106
1106
|
return jt();
|
|
1107
1107
|
this.setState({ visible: !0 }, { userAction: t }), this.hooks.emit("show", { userAction: t });
|
|
1108
1108
|
});
|
|
1109
1109
|
}
|
|
1110
1110
|
hide() {
|
|
1111
|
-
return
|
|
1111
|
+
return F(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
1112
1112
|
if (this.state.disposed)
|
|
1113
1113
|
return jt();
|
|
1114
1114
|
this.setState({ visible: !1 }, { userAction: t }), this.hooks.emit("hide", { userAction: t });
|
|
@@ -1180,13 +1180,13 @@ class wn {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
1182
|
handleShow() {
|
|
1183
|
-
return
|
|
1183
|
+
return F(this, null, function* () {
|
|
1184
1184
|
var t;
|
|
1185
1185
|
this.store.frontModeGroup.setVisible(!0), (t = this.store.behindModeGroup) == null || t.setVisible(!0);
|
|
1186
1186
|
});
|
|
1187
1187
|
}
|
|
1188
1188
|
handleHide() {
|
|
1189
|
-
return
|
|
1189
|
+
return F(this, null, function* () {
|
|
1190
1190
|
var t;
|
|
1191
1191
|
this.store.frontModeGroup.setVisible(!1), (t = this.store.behindModeGroup) == null || t.setVisible(!1);
|
|
1192
1192
|
});
|
|
@@ -1209,7 +1209,7 @@ class wn {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
m(wn, "setFrontModeContainer", Qc), m(wn, "setBehindModeContainer", Oc);
|
|
1211
1211
|
function wa(i) {
|
|
1212
|
-
return
|
|
1212
|
+
return F(this, null, function* () {
|
|
1213
1213
|
return new Promise((t) => {
|
|
1214
1214
|
var e;
|
|
1215
1215
|
if ((e = i.model) != null && e.loaded) {
|
|
@@ -2229,7 +2229,7 @@ const z1 = (i) => new fu(i), B1 = {
|
|
|
2229
2229
|
};
|
|
2230
2230
|
var xt = /* @__PURE__ */ ((i) => (i[i.FLOOR = 1] = "FLOOR", i[i.CEILING = 2] = "CEILING", i[i.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", i))(xt || {});
|
|
2231
2231
|
function ri(i) {
|
|
2232
|
-
return
|
|
2232
|
+
return F(this, null, function* () {
|
|
2233
2233
|
try {
|
|
2234
2234
|
return [null, yield i];
|
|
2235
2235
|
} catch (t) {
|
|
@@ -2754,7 +2754,7 @@ function Uu(i, t, e) {
|
|
|
2754
2754
|
function p(O, Y) {
|
|
2755
2755
|
if (Y.width === 0 || Y.height === 0)
|
|
2756
2756
|
return () => !1;
|
|
2757
|
-
const j = O.path.map(({ x: he, y: ue }) => [he, ue]), R = O.roomLabel.position, { x: G, y: _ } = R, { width:
|
|
2757
|
+
const j = O.path.map(({ x: he, y: ue }) => [he, ue]), R = O.roomLabel.position, { x: G, y: _ } = R, { width: H, height: ee } = Y, W = H / 2, ae = ee / 2;
|
|
2758
2758
|
return function(ue) {
|
|
2759
2759
|
const pe = G * ue, Ce = _ * ue, De = j.map(([le, ge]) => [le * ue, ge * ue]);
|
|
2760
2760
|
return [
|
|
@@ -4246,9 +4246,9 @@ class ho extends oe {
|
|
|
4246
4246
|
}
|
|
4247
4247
|
const Hd = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";
|
|
4248
4248
|
function Gd(i) {
|
|
4249
|
-
return
|
|
4249
|
+
return F(this, null, function* () {
|
|
4250
4250
|
const t = new Headers({ "Content-Type": "text/plain" }), e = function(o) {
|
|
4251
|
-
return
|
|
4251
|
+
return F(this, null, function* () {
|
|
4252
4252
|
const s = {
|
|
4253
4253
|
index: o.index,
|
|
4254
4254
|
url: o.url,
|
|
@@ -4306,7 +4306,7 @@ function Xd(i) {
|
|
|
4306
4306
|
};
|
|
4307
4307
|
}
|
|
4308
4308
|
function bt(i) {
|
|
4309
|
-
return
|
|
4309
|
+
return F(this, null, function* () {
|
|
4310
4310
|
const t = yield Gd(i.outlines), e = i.computed_data.bounding, n = i.computed_data.floor_datas.map(Nd), o = i.computed_data.entrance ? Xd(i.computed_data.entrance) : null;
|
|
4311
4311
|
return {
|
|
4312
4312
|
outlines: t,
|
|
@@ -4369,7 +4369,7 @@ function Xi(i, t, e = 4) {
|
|
|
4369
4369
|
return Math.floor(i * Math.pow(10, e)) === Math.floor(t * Math.pow(10, e));
|
|
4370
4370
|
}
|
|
4371
4371
|
function _a(i, t) {
|
|
4372
|
-
return
|
|
4372
|
+
return F(this, null, function* () {
|
|
4373
4373
|
yield new Promise((e, n) => {
|
|
4374
4374
|
i.changeMode(...t).catch((o) => n(o)), i.once("initAnimationEnded", () => {
|
|
4375
4375
|
const o = i.getCurrentState(), s = t[0];
|
|
@@ -4394,7 +4394,7 @@ function po(i, t) {
|
|
|
4394
4394
|
return !(!Xi(e, s, 2) || !Xi(n, r, 2) || o !== a);
|
|
4395
4395
|
}
|
|
4396
4396
|
function Xa(i, t, e = !0) {
|
|
4397
|
-
return
|
|
4397
|
+
return F(this, null, function* () {
|
|
4398
4398
|
if (po(i, t) === !0)
|
|
4399
4399
|
return;
|
|
4400
4400
|
const o = i.getCurrentState();
|
|
@@ -4458,13 +4458,13 @@ class Kd extends zt {
|
|
|
4458
4458
|
var e, n;
|
|
4459
4459
|
this.removeEventListener(), (e = this.app) == null || e.$destroy(), this.app = void 0, (n = this.container) == null || n.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
|
|
4460
4460
|
});
|
|
4461
|
-
m(this, "show", (...n) =>
|
|
4461
|
+
m(this, "show", (...n) => F(this, [...n], function* (e = {}) {
|
|
4462
4462
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
4463
4463
|
return;
|
|
4464
4464
|
const o = e.userAction !== void 0 ? e.userAction : !0;
|
|
4465
4465
|
this.updateState({ visible: !0 }, o), this._show(e);
|
|
4466
4466
|
}));
|
|
4467
|
-
m(this, "hide", (...n) =>
|
|
4467
|
+
m(this, "hide", (...n) => F(this, [...n], function* (e = {}) {
|
|
4468
4468
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
4469
4469
|
}));
|
|
4470
4470
|
m(this, "updateSize", () => {
|
|
@@ -4482,7 +4482,7 @@ class Kd extends zt {
|
|
|
4482
4482
|
const { userAction: n } = e;
|
|
4483
4483
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n }));
|
|
4484
4484
|
});
|
|
4485
|
-
m(this, "_show", (e) =>
|
|
4485
|
+
m(this, "_show", (e) => F(this, null, function* () {
|
|
4486
4486
|
var r;
|
|
4487
4487
|
if (!this.state.enabled)
|
|
4488
4488
|
return;
|
|
@@ -4497,7 +4497,7 @@ class Kd extends zt {
|
|
|
4497
4497
|
immediately: !1,
|
|
4498
4498
|
isAutoShow: !1,
|
|
4499
4499
|
userAction: !0
|
|
4500
|
-
}, o = Q(Q({}, n), e), s = () =>
|
|
4500
|
+
}, o = Q(Q({}, n), e), s = () => F(this, null, function* () {
|
|
4501
4501
|
this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
|
|
4502
4502
|
let a = !1, l;
|
|
4503
4503
|
this.showRejection = (d) => {
|
|
@@ -4618,7 +4618,7 @@ class Kd extends zt {
|
|
|
4618
4618
|
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
4619
4619
|
}
|
|
4620
4620
|
load(e, n, o = !0) {
|
|
4621
|
-
return
|
|
4621
|
+
return F(this, null, function* () {
|
|
4622
4622
|
function s(u) {
|
|
4623
4623
|
return Object.prototype.hasOwnProperty.apply(u, ["version"]);
|
|
4624
4624
|
}
|
|
@@ -4656,7 +4656,7 @@ class Kd extends zt {
|
|
|
4656
4656
|
this.updateState({ config: e }, n), this.render();
|
|
4657
4657
|
}
|
|
4658
4658
|
formatData(e) {
|
|
4659
|
-
return
|
|
4659
|
+
return F(this, null, function* () {
|
|
4660
4660
|
return yield bt(e.data);
|
|
4661
4661
|
});
|
|
4662
4662
|
}
|
|
@@ -4732,13 +4732,13 @@ class th extends zt {
|
|
|
4732
4732
|
var e, n;
|
|
4733
4733
|
this.removeEventListener(), (e = this.app) == null || e.$destroy(), this.app = void 0, (n = this.container) == null || n.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
|
|
4734
4734
|
});
|
|
4735
|
-
m(this, "show", (...n) =>
|
|
4735
|
+
m(this, "show", (...n) => F(this, [...n], function* (e = {}) {
|
|
4736
4736
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
4737
4737
|
return;
|
|
4738
4738
|
const o = e.userAction !== void 0 ? e.userAction : !0;
|
|
4739
4739
|
this.updateState({ visible: !0 }, o), this._show(e);
|
|
4740
4740
|
}));
|
|
4741
|
-
m(this, "hide", (...n) =>
|
|
4741
|
+
m(this, "hide", (...n) => F(this, [...n], function* (e = {}) {
|
|
4742
4742
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
4743
4743
|
}));
|
|
4744
4744
|
m(this, "updateSize", () => {
|
|
@@ -4756,7 +4756,7 @@ class th extends zt {
|
|
|
4756
4756
|
const { userAction: n } = e;
|
|
4757
4757
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n }));
|
|
4758
4758
|
});
|
|
4759
|
-
m(this, "_show", (e) =>
|
|
4759
|
+
m(this, "_show", (e) => F(this, null, function* () {
|
|
4760
4760
|
var r;
|
|
4761
4761
|
if (!this.state.enabled)
|
|
4762
4762
|
return;
|
|
@@ -4771,7 +4771,7 @@ class th extends zt {
|
|
|
4771
4771
|
immediately: !1,
|
|
4772
4772
|
isAutoShow: !1,
|
|
4773
4773
|
userAction: !0
|
|
4774
|
-
}, o = Q(Q({}, n), e), s = () =>
|
|
4774
|
+
}, o = Q(Q({}, n), e), s = () => F(this, null, function* () {
|
|
4775
4775
|
this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
|
|
4776
4776
|
let a = !1, l;
|
|
4777
4777
|
this.showRejection = (d) => {
|
|
@@ -4890,7 +4890,7 @@ class th extends zt {
|
|
|
4890
4890
|
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
4891
4891
|
}
|
|
4892
4892
|
load(e, n, o = !0) {
|
|
4893
|
-
return
|
|
4893
|
+
return F(this, null, function* () {
|
|
4894
4894
|
function s(u) {
|
|
4895
4895
|
return Object.prototype.hasOwnProperty.apply(u, ["version"]);
|
|
4896
4896
|
}
|
|
@@ -4935,7 +4935,7 @@ class th extends zt {
|
|
|
4935
4935
|
this.container.style.left = s * 100 + "%", this.container.style.top = r * 100 + "%";
|
|
4936
4936
|
}
|
|
4937
4937
|
formatData(e) {
|
|
4938
|
-
return
|
|
4938
|
+
return F(this, null, function* () {
|
|
4939
4939
|
return yield bt(e.data);
|
|
4940
4940
|
});
|
|
4941
4941
|
}
|
|
@@ -5077,7 +5077,7 @@ class nh extends zt {
|
|
|
5077
5077
|
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
5078
5078
|
}
|
|
5079
5079
|
load(e, n, o = !0) {
|
|
5080
|
-
return
|
|
5080
|
+
return F(this, null, function* () {
|
|
5081
5081
|
function s(u) {
|
|
5082
5082
|
return Object.prototype.hasOwnProperty.apply(u, ["version"]);
|
|
5083
5083
|
}
|
|
@@ -5100,7 +5100,7 @@ class nh extends zt {
|
|
|
5100
5100
|
return e.appendChild(this.container), this.render(), this;
|
|
5101
5101
|
}
|
|
5102
5102
|
show() {
|
|
5103
|
-
return
|
|
5103
|
+
return F(this, arguments, function* (e = {}) {
|
|
5104
5104
|
if (this.state.visible)
|
|
5105
5105
|
return;
|
|
5106
5106
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5108,7 +5108,7 @@ class nh extends zt {
|
|
|
5108
5108
|
});
|
|
5109
5109
|
}
|
|
5110
5110
|
hide() {
|
|
5111
|
-
return
|
|
5111
|
+
return F(this, arguments, function* (e = {}) {
|
|
5112
5112
|
if (this.isHiddenByHideFunc = !0, !this.state.visible)
|
|
5113
5113
|
return;
|
|
5114
5114
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5142,12 +5142,12 @@ class nh extends zt {
|
|
|
5142
5142
|
this.updateState({ config: e }, n), this.render();
|
|
5143
5143
|
}
|
|
5144
5144
|
formatData(e) {
|
|
5145
|
-
return
|
|
5145
|
+
return F(this, null, function* () {
|
|
5146
5146
|
return yield bt(e.data);
|
|
5147
5147
|
});
|
|
5148
5148
|
}
|
|
5149
5149
|
_show(e) {
|
|
5150
|
-
return
|
|
5150
|
+
return F(this, null, function* () {
|
|
5151
5151
|
if (!this.state.enabled)
|
|
5152
5152
|
return;
|
|
5153
5153
|
this.isHiddenByHideFunc = !1;
|
|
@@ -5158,7 +5158,7 @@ class nh extends zt {
|
|
|
5158
5158
|
});
|
|
5159
5159
|
}
|
|
5160
5160
|
_hide(e) {
|
|
5161
|
-
return
|
|
5161
|
+
return F(this, null, function* () {
|
|
5162
5162
|
if (!this.state.enabled)
|
|
5163
5163
|
return;
|
|
5164
5164
|
const { userAction: n } = e;
|
|
@@ -5694,7 +5694,7 @@ class bh extends zt {
|
|
|
5694
5694
|
this.state = { enabled: !0, visible: !0, config: r }, n != null && n.wrapper && console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"), typeof (n == null ? void 0 : n.wrapper) == "string" ? this.wrapperSelector = n.wrapper : (n == null ? void 0 : n.wrapper) instanceof Element && (this.wrapper = n.wrapper), e.once("dispose", this.dispose);
|
|
5695
5695
|
}
|
|
5696
5696
|
load(e, n, o = !0) {
|
|
5697
|
-
return
|
|
5697
|
+
return F(this, null, function* () {
|
|
5698
5698
|
function s(c) {
|
|
5699
5699
|
return Object.prototype.hasOwnProperty.apply(c, ["version"]);
|
|
5700
5700
|
}
|
|
@@ -5703,7 +5703,7 @@ class bh extends zt {
|
|
|
5703
5703
|
});
|
|
5704
5704
|
}
|
|
5705
5705
|
show() {
|
|
5706
|
-
return
|
|
5706
|
+
return F(this, arguments, function* (e = {}) {
|
|
5707
5707
|
if (this.state.visible)
|
|
5708
5708
|
return;
|
|
5709
5709
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5711,7 +5711,7 @@ class bh extends zt {
|
|
|
5711
5711
|
});
|
|
5712
5712
|
}
|
|
5713
5713
|
hide() {
|
|
5714
|
-
return
|
|
5714
|
+
return F(this, arguments, function* (e = {}) {
|
|
5715
5715
|
if (!this.state.visible)
|
|
5716
5716
|
return;
|
|
5717
5717
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5751,7 +5751,7 @@ class bh extends zt {
|
|
|
5751
5751
|
!this.data || (this.extraObjects = Yd(e, this.five, this.data), this.render());
|
|
5752
5752
|
}
|
|
5753
5753
|
formatData(e) {
|
|
5754
|
-
return
|
|
5754
|
+
return F(this, null, function* () {
|
|
5755
5755
|
return yield bt(e.data);
|
|
5756
5756
|
});
|
|
5757
5757
|
}
|
|
@@ -5913,7 +5913,7 @@ function Ya(i, t) {
|
|
|
5913
5913
|
}
|
|
5914
5914
|
const G1 = (i, t) => {
|
|
5915
5915
|
var u;
|
|
5916
|
-
const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (u = t.north_rad) != null ? u : void 0, o = {}, s = (h) =>
|
|
5916
|
+
const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (u = t.north_rad) != null ? u : void 0, o = {}, s = (h) => F(void 0, null, function* () {
|
|
5917
5917
|
var Y;
|
|
5918
5918
|
const d = (h == null ? void 0 : h.fbx_url) || e, f = (Y = h == null ? void 0 : h.north_rad) != null ? Y : n;
|
|
5919
5919
|
if (typeof f != "number")
|
|
@@ -5967,8 +5967,8 @@ function wh(i, t) {
|
|
|
5967
5967
|
}
|
|
5968
5968
|
const Ch = ({ x: i, y: t, z: e }) => new q(i, t, e), W1 = (i, t) => {
|
|
5969
5969
|
var v, p, A;
|
|
5970
|
-
const e = {}, n = (v = t.animationEnabled) != null ? v : !0, o = (p = t.position) != null ? p : 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 = (y) =>
|
|
5971
|
-
var N, O, Y, j, R, G, _,
|
|
5970
|
+
const e = {}, n = (v = t.animationEnabled) != null ? v : !0, o = (p = t.position) != null ? p : 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 = (y) => F(void 0, null, function* () {
|
|
5971
|
+
var N, O, Y, j, R, G, _, H;
|
|
5972
5972
|
const w = (N = y == null ? void 0 : y.position) != null ? N : o;
|
|
5973
5973
|
if (!w)
|
|
5974
5974
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
@@ -5980,7 +5980,7 @@ const Ch = ({ x: i, y: t, z: e }) => new q(i, t, e), W1 = (i, t) => {
|
|
|
5980
5980
|
const x = (_ = (G = (R = (j = S.children) == null ? void 0 : j[0]) == null ? void 0 : R.children) == null ? void 0 : G[3]) == null ? void 0 : _.clone();
|
|
5981
5981
|
if (!x)
|
|
5982
5982
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${x}`));
|
|
5983
|
-
const V = (
|
|
5983
|
+
const V = (H = t.name) != null ? H : "\u5165\u6237\u95E8";
|
|
5984
5984
|
return x.material = new bn({ transparent: !0, map: wh(V) }), x.renderOrder = 3, S.children[0].add(x), e.object = S, !0;
|
|
5985
5985
|
}), c = () => {
|
|
5986
5986
|
if (e.animation)
|
|
@@ -6097,7 +6097,7 @@ const Yi = (i, t, e) => {
|
|
|
6097
6097
|
const n = Math.PI, o = n * 2;
|
|
6098
6098
|
return i = ys(i), t = ys(t), e === st.Anticlockwise && i < t && (i += o), e === st.Clockwise && t < i && (t += o), e === st.Loop && t - i > n ? Yi(i, t, st.Anticlockwise) : e === st.Loop && i - t > n ? Yi(i, t, st.Clockwise) : { from: i, to: t };
|
|
6099
6099
|
}, N1 = (i) => {
|
|
6100
|
-
const t = {}, e = (l, c, ...u) =>
|
|
6100
|
+
const t = {}, e = (l, c, ...u) => F(void 0, [l, c, ...u], function* (s, r, a = { preload: !0 }) {
|
|
6101
6101
|
return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), s.mode && s.mode !== i.currentMode && (yield i.changeMode(s.mode)), a.preload && s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (yield i.preloadPano(s.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), s.panoIndex === void 0 && s.fov === void 0 && s.latitude === void 0 && s.longitude === void 0 ? !0 : yield new Promise((h, d) => {
|
|
6102
6102
|
const f = s.panoIndex !== void 0 ? s.panoIndex : i.panoIndex;
|
|
6103
6103
|
f !== void 0 ? i.moveToPano(
|
|
@@ -6125,7 +6125,7 @@ const Yi = (i, t, e) => {
|
|
|
6125
6125
|
};
|
|
6126
6126
|
return {
|
|
6127
6127
|
move: e,
|
|
6128
|
-
rotate: (l, c, ...u) =>
|
|
6128
|
+
rotate: (l, c, ...u) => F(void 0, [l, c, ...u], function* (s, r, a = {}) {
|
|
6129
6129
|
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((f, g) => {
|
|
6130
6130
|
if (!s.panoIndex) {
|
|
6131
6131
|
f(!0);
|
|
@@ -6379,7 +6379,7 @@ const Sh = `<style type="text/css">
|
|
|
6379
6379
|
}
|
|
6380
6380
|
}
|
|
6381
6381
|
return e.loaded = !0, !0;
|
|
6382
|
-
}, l = (v, p, A) =>
|
|
6382
|
+
}, l = (v, p, A) => F(void 0, null, function* () {
|
|
6383
6383
|
const y = v || t.roomInfo, w = p || t.roomRules;
|
|
6384
6384
|
if (!y || !w)
|
|
6385
6385
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
@@ -6736,22 +6736,22 @@ function Fh(i, t, e) {
|
|
|
6736
6736
|
distance: O
|
|
6737
6737
|
};
|
|
6738
6738
|
}, h = (w, P, k) => {
|
|
6739
|
-
const C = n.camera.position, S = n.camera.getWorldDirection(new q()), x = w.clone().sub(C).normalize().angleTo(S), V = P.clone().sub(C).normalize().angleTo(S), N = w.distanceTo(P), Y = P.clone().sub(P.clone().sub(w).divide(new q(2, 2, 2))).distanceTo(C), { startLeft: j, startTop: R, endLeft: G, endTop: _, distance:
|
|
6739
|
+
const C = n.camera.position, S = n.camera.getWorldDirection(new q()), x = w.clone().sub(C).normalize().angleTo(S), V = P.clone().sub(C).normalize().angleTo(S), N = w.distanceTo(P), Y = P.clone().sub(P.clone().sub(w).divide(new q(2, 2, 2))).distanceTo(C), { startLeft: j, startTop: R, endLeft: G, endTop: _, distance: H } = u(w, P), W = -((Math.PI / 2 - Math.atan2(G - j, R - _)) / Math.PI) * 180;
|
|
6740
6740
|
let ae = !0;
|
|
6741
6741
|
k || (ae = !1), !et(w, k) && !et(P, k) && (ae = !1), N < 0.3 && (ae = !1), x > Math.PI / 2 && (ae = !1), V > Math.PI / 2 && (ae = !1), Y / N > 8 && (ae = !1);
|
|
6742
|
-
let he = 50, ue =
|
|
6742
|
+
let he = 50, ue = H;
|
|
6743
6743
|
const pe = c({ x: ~~j, y: ~~R }, { x: ~~G, y: ~~_ });
|
|
6744
|
-
if (pe && pe.length === 1 && (et(w, k) ? (ue = Math.sqrt(Math.pow(pe[0].x - j, 2) + Math.pow(pe[0].y - R, 2)), he = ue /
|
|
6744
|
+
if (pe && pe.length === 1 && (et(w, k) ? (ue = Math.sqrt(Math.pow(pe[0].x - j, 2) + Math.pow(pe[0].y - R, 2)), he = ue / H * 50) : et(P, k) && (ue = Math.sqrt(Math.pow(pe[0].x - G, 2) + Math.pow(pe[0].y - _, 2)), he = 100 - ue / H * 50)), pe && pe.length === 2) {
|
|
6745
6745
|
const Ce = {
|
|
6746
6746
|
x: (pe[0].x + pe[1].x) / 2,
|
|
6747
6747
|
y: (pe[0].y + pe[1].y) / 2
|
|
6748
6748
|
};
|
|
6749
|
-
he = Math.sqrt(Math.pow(Ce.x - j, 2) + Math.pow(Ce.y - R, 2)) /
|
|
6749
|
+
he = Math.sqrt(Math.pow(Ce.x - j, 2) + Math.pow(Ce.y - R, 2)) / H * 100;
|
|
6750
6750
|
}
|
|
6751
6751
|
return {
|
|
6752
6752
|
startLeft: j,
|
|
6753
6753
|
startTop: R,
|
|
6754
|
-
distance:
|
|
6754
|
+
distance: H,
|
|
6755
6755
|
deg: W,
|
|
6756
6756
|
visible: ae,
|
|
6757
6757
|
labelOffset: he,
|
|
@@ -6768,7 +6768,7 @@ function Fh(i, t, e) {
|
|
|
6768
6768
|
return j - R;
|
|
6769
6769
|
}), N = P.lines.map((O) => {
|
|
6770
6770
|
var ue, pe;
|
|
6771
|
-
const Y = O.start, j = O.end, { startLeft: R, startTop: G, distance: _, deg:
|
|
6771
|
+
const Y = O.start, j = O.end, { startLeft: R, startTop: G, distance: _, deg: H, visible: ee, labelOffset: W, ruleLength: ae } = h(new q(Y[0], -Y[1], -Y[2]), new q(j[0], -j[1], -j[2]), V), he = [];
|
|
6772
6772
|
return O.children && ((ue = O.children) == null ? void 0 : ue.length) > 0 && ((pe = O.children) == null || pe.forEach((Ce) => {
|
|
6773
6773
|
const De = Ce.start, Te = Ce.end, { distance: le } = u(new q(De[0], -De[1], -De[2]), new q(Te[0], -Te[1], -Te[2]));
|
|
6774
6774
|
he.push({ width: le, state: Ce.state });
|
|
@@ -6776,7 +6776,7 @@ function Fh(i, t, e) {
|
|
|
6776
6776
|
width: _,
|
|
6777
6777
|
left: R,
|
|
6778
6778
|
top: G,
|
|
6779
|
-
rotateDeg:
|
|
6779
|
+
rotateDeg: H,
|
|
6780
6780
|
state: O.state,
|
|
6781
6781
|
children: he,
|
|
6782
6782
|
labelOffset: W,
|
|
@@ -6817,13 +6817,13 @@ class Gh {
|
|
|
6817
6817
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
6818
6818
|
"style",
|
|
6819
6819
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
6820
|
-
), e && (e.data && this.load(e.data), this.state.options = Q(Q({}, this.state.options), e.options || {}), (n = e.options) != null && n.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () =>
|
|
6820
|
+
), e && (e.data && this.load(e.data), this.state.options = Q(Q({}, this.state.options), e.options || {}), (n = e.options) != null && n.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => F(this, null, function* () {
|
|
6821
6821
|
var s, r;
|
|
6822
6822
|
(r = (s = this.five.getElement()) == null ? void 0 : s.parentNode) == null || r.append(this.container);
|
|
6823
6823
|
})), this.five.once("dispose", () => this.dispose());
|
|
6824
6824
|
}
|
|
6825
6825
|
load(t) {
|
|
6826
|
-
return
|
|
6826
|
+
return F(this, null, function* () {
|
|
6827
6827
|
if (!this.five.work)
|
|
6828
6828
|
return;
|
|
6829
6829
|
const e = t.data;
|
|
@@ -6839,7 +6839,7 @@ class Gh {
|
|
|
6839
6839
|
return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
|
|
6840
6840
|
}
|
|
6841
6841
|
render() {
|
|
6842
|
-
return
|
|
6842
|
+
return F(this, null, function* () {
|
|
6843
6843
|
var t;
|
|
6844
6844
|
if (this.state.enabled) {
|
|
6845
6845
|
if (!this.panoRulerProData || !this.container)
|
|
@@ -6883,7 +6883,7 @@ function Nh() {
|
|
|
6883
6883
|
}
|
|
6884
6884
|
const _h = new I.TextureLoader();
|
|
6885
6885
|
function xs(i) {
|
|
6886
|
-
return
|
|
6886
|
+
return F(this, null, function* () {
|
|
6887
6887
|
return new Promise((t, e) => {
|
|
6888
6888
|
_h.load(i, t, void 0, e);
|
|
6889
6889
|
}).then((t) => (t.encoding = I.sRGBEncoding, t));
|
|
@@ -7021,7 +7021,7 @@ class Xh extends zt {
|
|
|
7021
7021
|
}), e.enabled === !0 && (this._enable(), this.hooks.emit("enable", n)), e.enabled === !1 && (this._disable(), this.hooks.emit("disable", n)), e.visible === !1 && (this._toggleVisible(), this.hooks.emit("hide", n)), e.visible === !0 && (this._toggleVisible(), this.hooks.emit("show", n)), e.config && this.init();
|
|
7022
7022
|
}
|
|
7023
7023
|
load(e, n, o = !0) {
|
|
7024
|
-
return
|
|
7024
|
+
return F(this, null, function* () {
|
|
7025
7025
|
const s = yield this.formatData(e);
|
|
7026
7026
|
JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = Q({}, s), this.init(), n && this.setState(n, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
|
|
7027
7027
|
});
|
|
@@ -7030,7 +7030,7 @@ class Xh extends zt {
|
|
|
7030
7030
|
return e.version && e.data ? Promise.resolve(e.data) : Promise.resolve(e);
|
|
7031
7031
|
}
|
|
7032
7032
|
init() {
|
|
7033
|
-
return
|
|
7033
|
+
return F(this, null, function* () {
|
|
7034
7034
|
var o, s, r, a;
|
|
7035
7035
|
const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
|
|
7036
7036
|
this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh));
|
|
@@ -7039,7 +7039,7 @@ class Xh extends zt {
|
|
|
7039
7039
|
});
|
|
7040
7040
|
}
|
|
7041
7041
|
loadCompassMesh() {
|
|
7042
|
-
return
|
|
7042
|
+
return F(this, null, function* () {
|
|
7043
7043
|
const e = this.state.config.compassImageUrl, n = yield xs(e), o = new I.CircleGeometry(0.7, 32), s = new I.MeshBasicMaterial({
|
|
7044
7044
|
map: n,
|
|
7045
7045
|
transparent: !0,
|
|
@@ -7050,7 +7050,7 @@ class Xh extends zt {
|
|
|
7050
7050
|
});
|
|
7051
7051
|
}
|
|
7052
7052
|
loadEntryDoorMesh() {
|
|
7053
|
-
return
|
|
7053
|
+
return F(this, null, function* () {
|
|
7054
7054
|
const e = this.state.config.entryDoorImageUrl, n = yield xs(e), o = new I.PlaneGeometry(0.2, 0.16), s = new I.MeshBasicMaterial({
|
|
7055
7055
|
map: n,
|
|
7056
7056
|
transparent: !0,
|
|
@@ -7446,8 +7446,8 @@ function df(i) {
|
|
|
7446
7446
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7447
7447
|
return;
|
|
7448
7448
|
}
|
|
7449
|
-
const _ = (O.x + 1) / 2 * w,
|
|
7450
|
-
s.style.transform = `translate(${_}px, ${
|
|
7449
|
+
const _ = (O.x + 1) / 2 * w, H = -(O.y - 1) / 2 * P, W = -(Math.atan((Y.y - j.y) / (Y.x - j.x)) * 180) / Math.PI, ae = s.parentElement && o.clientWidth > R ? -20 : 0;
|
|
7450
|
+
s.style.transform = `translate(${_}px, ${H}px) rotate(${W}deg) translateY(${ae}px)`, s.style.opacity = "1", s.style.pointerEvents = t ? "all" : "none", r && r.update({ line: e, polyline: e.getPolyline() });
|
|
7451
7451
|
const he = v();
|
|
7452
7452
|
o.innerText = he;
|
|
7453
7453
|
}
|
|
@@ -9546,14 +9546,14 @@ const Mi = 1e-3, Fs = 0.01, im = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9546
9546
|
});
|
|
9547
9547
|
}, _ = () => {
|
|
9548
9548
|
i.once("renderFrame", k);
|
|
9549
|
-
},
|
|
9549
|
+
}, H = () => {
|
|
9550
9550
|
e || (e = i.getElement().parentElement), e && e.appendChild(d), v.forbidden = !1, n = i.model.bounding.getCenter(new I.Vector3()).y, C(), i.on("panoWillArrive", w), i.on("panoArrived", y), i.on("modeChange", P), i.on("cameraUpdate", A);
|
|
9551
9551
|
}, ee = () => {
|
|
9552
9552
|
g = null, h.disposeAll(), p.$destroy(), v.tags.forEach((le) => {
|
|
9553
9553
|
le.app.$destroy(), le = null;
|
|
9554
|
-
}), v.origins = [], v.tags = [], i.off("modelLoaded",
|
|
9554
|
+
}), v.origins = [], v.tags = [], i.off("modelLoaded", H), i.off("renderFrame", k), i.off("panoWillArrive", w), i.off("panoArrived", y), i.off("modeChange", P), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", _, !1);
|
|
9555
9555
|
};
|
|
9556
|
-
return window.addEventListener("resize", _, !1), (Te = i == null ? void 0 : i.model) != null && Te.loaded ?
|
|
9556
|
+
return window.addEventListener("resize", _, !1), (Te = i == null ? void 0 : i.model) != null && Te.loaded ? H() : i.once("modelLoaded", H), i.on("dispose", ee), {
|
|
9557
9557
|
load: x,
|
|
9558
9558
|
setIntersectObjects: V,
|
|
9559
9559
|
unfoldAll: Y,
|
|
@@ -9700,13 +9700,13 @@ function dm(i, t, e) {
|
|
|
9700
9700
|
const { Raycaster: n, Vector3: o } = I;
|
|
9701
9701
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, h = null, d, f, g = [], v = !0;
|
|
9702
9702
|
const p = (j, R) => {
|
|
9703
|
-
const G = new n(), _ = j.camera.position.clone(),
|
|
9704
|
-
G.set(_.clone(),
|
|
9703
|
+
const G = new n(), _ = j.camera.position.clone(), H = new o().fromArray(R.modelPosition), ee = H.distanceTo(_);
|
|
9704
|
+
G.set(_.clone(), H.clone().sub(_).normalize());
|
|
9705
9705
|
const [W] = j.model.intersectRaycaster(G);
|
|
9706
9706
|
return !(W && W.distance + 1 < ee);
|
|
9707
9707
|
}, A = (j, R) => {
|
|
9708
|
-
const G = new o(R.modelPosition[0], R.modelPosition[1], R.modelPosition[2]), _ = j.project2d(G),
|
|
9709
|
-
return [
|
|
9708
|
+
const G = new o(R.modelPosition[0], R.modelPosition[1], R.modelPosition[2]), _ = j.project2d(G), H = _ == null ? void 0 : _.x, ee = _ == null ? void 0 : _.y;
|
|
9709
|
+
return [H, ee];
|
|
9710
9710
|
}, y = (j) => `translate(${j[0]}px, ${j[1]}px)`, w = (j, R) => g.length === 0 ? !1 : !!g.find((_) => j[0] >= _[0] - R && j[0] <= _[0] + R || j[1] >= _[1] - Ws && j[1] <= _[1] + Ws);
|
|
9711
9711
|
function P(j, R) {
|
|
9712
9712
|
switch (R) {
|
|
@@ -9721,24 +9721,24 @@ function dm(i, t, e) {
|
|
|
9721
9721
|
}
|
|
9722
9722
|
}
|
|
9723
9723
|
const k = (j, R) => {
|
|
9724
|
-
const G = R.map((
|
|
9725
|
-
const ee = A(j,
|
|
9724
|
+
const G = R.map((H) => {
|
|
9725
|
+
const ee = A(j, H), W = H.name.length * um, ae = P(H.modelPosition[1], c), ue = (r ? p(j, H) : !0) && !w([ee[0], ee[1] + ae], W);
|
|
9726
9726
|
if (!ue)
|
|
9727
|
-
return me(Q({},
|
|
9727
|
+
return me(Q({}, H), { visible: ue });
|
|
9728
9728
|
g.push(ee);
|
|
9729
9729
|
const pe = y(ee);
|
|
9730
|
-
return me(Q({},
|
|
9730
|
+
return me(Q({}, H), {
|
|
9731
9731
|
visible: ue,
|
|
9732
9732
|
transform: pe,
|
|
9733
9733
|
strokeLength: ae
|
|
9734
9734
|
});
|
|
9735
|
-
}), _ = G.filter(({ visible:
|
|
9736
|
-
itemLabelItem:
|
|
9737
|
-
distance: new o(
|
|
9738
|
-
})).sort((
|
|
9739
|
-
return G.map((
|
|
9740
|
-
const ee = _.findIndex((W) => W.itemLabelItem.id ===
|
|
9741
|
-
return ee !== void 0 ? me(Q({},
|
|
9735
|
+
}), _ = G.filter(({ visible: H }) => H).map((H) => ({
|
|
9736
|
+
itemLabelItem: H,
|
|
9737
|
+
distance: new o(H.modelPosition[0], H.modelPosition[1], H.modelPosition[2]).clone().distanceTo(j.camera.position)
|
|
9738
|
+
})).sort((H, ee) => H.distance - ee.distance);
|
|
9739
|
+
return G.map((H) => {
|
|
9740
|
+
const ee = _.findIndex((W) => W.itemLabelItem.id === H.id);
|
|
9741
|
+
return ee !== void 0 ? me(Q({}, H), { zIndex: ee * 10 }) : H;
|
|
9742
9742
|
});
|
|
9743
9743
|
}, C = () => {
|
|
9744
9744
|
g = [], e(1, h = k(s, h));
|
|
@@ -10001,7 +10001,7 @@ const K1 = (i, { videoElement: t }) => {
|
|
|
10001
10001
|
} else
|
|
10002
10002
|
P(new Error("Video download Error: " + k.status));
|
|
10003
10003
|
}, k.onerror = (C) => P(C), k.open("GET", A), k.responseType = "blob", k.send();
|
|
10004
|
-
}), d = (A, y) =>
|
|
10004
|
+
}), d = (A, y) => F(void 0, null, function* () {
|
|
10005
10005
|
const { video_src: w, video_poster_src: P, points: k } = A;
|
|
10006
10006
|
e.videoSource = w, e.rectPoints = mm(k).map((C) => C.map(({ x: S, y: x, z: V }) => new I.Vector3(S, x, V))), e.imageTexture = u(P), y && (e.videoElement = y), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
10007
10007
|
}), f = (A) => {
|
|
@@ -10310,16 +10310,16 @@ function xm(i, t, e) {
|
|
|
10310
10310
|
const { Raycaster: n, Vector3: o } = I;
|
|
10311
10311
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, f = (s == null ? void 0 : s.currentMode) === Ve.Mode.Panorama, g, v, p = [], A = !0;
|
|
10312
10312
|
const y = (G, _) => {
|
|
10313
|
-
const
|
|
10314
|
-
return u !== void 0 && G.state.mode === Ve.Mode.Panorama && W > u ? !1 : _s(G, ee.clone().sub(
|
|
10313
|
+
const H = G.camera.position.clone(), ee = new o(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]), W = ee.distanceTo(H);
|
|
10314
|
+
return u !== void 0 && G.state.mode === Ve.Mode.Panorama && W > u ? !1 : _s(G, ee.clone().sub(H).normalize(), H, W);
|
|
10315
10315
|
}, w = (G) => {
|
|
10316
|
-
const { camera: _, model:
|
|
10316
|
+
const { camera: _, model: H } = s, { x: ee, y: W, z: ae } = G.clone().project(_), he = (ee + 1) / 2, ue = (2 - (W + 1)) / 2, De = Math.abs(ae) < 1 && [he, ue].every((Te) => Te < 1 && Te >= 0);
|
|
10317
10317
|
return Boolean(De);
|
|
10318
10318
|
}, P = (G, _) => {
|
|
10319
|
-
const
|
|
10319
|
+
const H = new o(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]), ee = G.project2d(H), W = ee == null ? void 0 : ee.x, ae = ee == null ? void 0 : ee.y;
|
|
10320
10320
|
return [W, ae];
|
|
10321
10321
|
}, k = (G, _) => {
|
|
10322
|
-
const
|
|
10322
|
+
const H = _.map((W) => {
|
|
10323
10323
|
if (G.state.panoIndex !== W.panoIndex)
|
|
10324
10324
|
return me(Q({}, W), { visible: !1 });
|
|
10325
10325
|
const ae = P(G, W);
|
|
@@ -10334,11 +10334,11 @@ function xm(i, t, e) {
|
|
|
10334
10334
|
transform: De,
|
|
10335
10335
|
strokeLength: he
|
|
10336
10336
|
});
|
|
10337
|
-
}), ee =
|
|
10337
|
+
}), ee = H.filter(({ visible: W }) => W).map((W) => ({
|
|
10338
10338
|
itemLabelItem: W,
|
|
10339
10339
|
distance: new o(W.modelPosition[0], W.modelPosition[1], W.modelPosition[2]).clone().distanceTo(G.camera.position)
|
|
10340
10340
|
})).sort((W, ae) => W.distance - ae.distance);
|
|
10341
|
-
return
|
|
10341
|
+
return H.map((W) => {
|
|
10342
10342
|
const ae = ee.findIndex((he) => he.itemLabelItem.id === W.id);
|
|
10343
10343
|
return ae !== void 0 ? me(Q({}, W), { zIndex: ae * 10 }) : W;
|
|
10344
10344
|
});
|
|
@@ -10358,15 +10358,15 @@ function xm(i, t, e) {
|
|
|
10358
10358
|
}, O = () => {
|
|
10359
10359
|
h !== a && (e(1, d = Xs(a)), h = a, C());
|
|
10360
10360
|
}, Y = (G, _) => {
|
|
10361
|
-
let
|
|
10361
|
+
let H = [];
|
|
10362
10362
|
for (let W = 0; W < _.length; W++) {
|
|
10363
10363
|
const { position: ae, panoIndex: he } = _[W], ue = G.distanceTo(ae);
|
|
10364
|
-
(u === void 0 || ue <= u || s.state.mode !== Ve.Mode.Panorama) &&
|
|
10364
|
+
(u === void 0 || ue <= u || s.state.mode !== Ve.Mode.Panorama) && H.push({ panoIndex: he, obVector: ae, distance: ue });
|
|
10365
10365
|
}
|
|
10366
|
-
|
|
10366
|
+
H = H.sort((W, ae) => W.distance - ae.distance);
|
|
10367
10367
|
let ee;
|
|
10368
|
-
for (let W = 0; W <
|
|
10369
|
-
const { obVector: ae, distance: he, panoIndex: ue } =
|
|
10368
|
+
for (let W = 0; W < H.length; W++) {
|
|
10369
|
+
const { obVector: ae, distance: he, panoIndex: ue } = H[W];
|
|
10370
10370
|
if (!_s(s, G, ae, he)) {
|
|
10371
10371
|
ee = ue;
|
|
10372
10372
|
break;
|
|
@@ -10376,9 +10376,9 @@ function xm(i, t, e) {
|
|
|
10376
10376
|
}, j = (G) => {
|
|
10377
10377
|
if (s.state.mode === Ve.Mode.Panorama)
|
|
10378
10378
|
return;
|
|
10379
|
-
const _ = s.work.observers,
|
|
10379
|
+
const _ = s.work.observers, H = new o().fromArray(G.position), ee = Y(H, _);
|
|
10380
10380
|
if (ee && (G.observerIndex = ee.panoIndex), typeof G.observerIndex == "number") {
|
|
10381
|
-
const W = _[G.observerIndex], ae =
|
|
10381
|
+
const W = _[G.observerIndex], ae = H.clone().sub(W.position).normalize(), he = {
|
|
10382
10382
|
longitude: Math.PI + Math.atan2(ae.x, ae.z),
|
|
10383
10383
|
latitude: Math.acos(ae.y / ae.length()) - Math.PI / 2
|
|
10384
10384
|
};
|
|
@@ -10732,13 +10732,13 @@ class Hm extends Mm {
|
|
|
10732
10732
|
top: r * N / 100,
|
|
10733
10733
|
width: (d = (h = (u = R.children) == null ? void 0 : u[0]) == null ? void 0 : h.clientWidth) != null ? d : 0,
|
|
10734
10734
|
height: (v = (g = (f = R.children) == null ? void 0 : f[0]) == null ? void 0 : g.clientHeight) != null ? v : 0
|
|
10735
|
-
},
|
|
10735
|
+
}, H = {
|
|
10736
10736
|
left: s * Y / 100,
|
|
10737
10737
|
top: r * j / 100,
|
|
10738
10738
|
width: (y = (A = (p = G.children) == null ? void 0 : p[0]) == null ? void 0 : A.clientWidth) != null ? y : 0,
|
|
10739
10739
|
height: (k = (P = (w = G.children) == null ? void 0 : w[0]) == null ? void 0 : P.clientHeight) != null ? k : 0
|
|
10740
10740
|
};
|
|
10741
|
-
Vm(_,
|
|
10741
|
+
Vm(_, H) && (C++, c[x].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[O].transform = `translate(-50%, ${C * 100 - 50}%)`);
|
|
10742
10742
|
}
|
|
10743
10743
|
}
|
|
10744
10744
|
this.labelItems = c, this.render();
|
|
@@ -10934,7 +10934,7 @@ class hl extends zt {
|
|
|
10934
10934
|
Object.assign(window, { [`__${dl}_DEBUG__`]: this });
|
|
10935
10935
|
}
|
|
10936
10936
|
load(e, n, o = !0) {
|
|
10937
|
-
return
|
|
10937
|
+
return F(this, null, function* () {
|
|
10938
10938
|
const s = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
10939
10939
|
this.hooks.emit("dataChange", r, s), this.data = r, this.linesGroup && this.five.scene.remove(this.linesGroup);
|
|
10940
10940
|
const a = this.getLinesGroup(r.routes, r.config);
|
|
@@ -10942,17 +10942,17 @@ class hl extends zt {
|
|
|
10942
10942
|
});
|
|
10943
10943
|
}
|
|
10944
10944
|
formatData(e) {
|
|
10945
|
-
return
|
|
10945
|
+
return F(this, null, function* () {
|
|
10946
10946
|
return typeof e == "object" && e !== null && e.version && e.data ? e.data : e;
|
|
10947
10947
|
});
|
|
10948
10948
|
}
|
|
10949
10949
|
show(e) {
|
|
10950
|
-
return
|
|
10950
|
+
return F(this, null, function* () {
|
|
10951
10951
|
this.setState({ visible: !0 }, e);
|
|
10952
10952
|
});
|
|
10953
10953
|
}
|
|
10954
10954
|
hide(e) {
|
|
10955
|
-
return
|
|
10955
|
+
return F(this, null, function* () {
|
|
10956
10956
|
this.setState({ visible: !1 }, e);
|
|
10957
10957
|
});
|
|
10958
10958
|
}
|
|
@@ -11007,7 +11007,7 @@ class hl extends zt {
|
|
|
11007
11007
|
}), o;
|
|
11008
11008
|
}
|
|
11009
11009
|
waitFiveModelLoaded() {
|
|
11010
|
-
return
|
|
11010
|
+
return F(this, null, function* () {
|
|
11011
11011
|
return new Promise((e) => {
|
|
11012
11012
|
if (this.five.model.loaded) {
|
|
11013
11013
|
e();
|
|
@@ -11034,7 +11034,7 @@ function Jm(i, t) {
|
|
|
11034
11034
|
const e = Ks(i), n = Ks(t);
|
|
11035
11035
|
return e.angleTo(n);
|
|
11036
11036
|
}
|
|
11037
|
-
const Zm = (i) =>
|
|
11037
|
+
const Zm = (i) => F(void 0, null, function* () {
|
|
11038
11038
|
try {
|
|
11039
11039
|
i().then(() => {
|
|
11040
11040
|
}, () => {
|
|
@@ -11106,7 +11106,7 @@ class pl extends zt {
|
|
|
11106
11106
|
});
|
|
11107
11107
|
}
|
|
11108
11108
|
load(e, n, o) {
|
|
11109
|
-
return
|
|
11109
|
+
return F(this, null, function* () {
|
|
11110
11110
|
var u, h, d, f, g;
|
|
11111
11111
|
if (this.state.disposed)
|
|
11112
11112
|
return $s();
|
|
@@ -11147,12 +11147,12 @@ class pl extends zt {
|
|
|
11147
11147
|
this.setState({ playing: !1 }, e);
|
|
11148
11148
|
}
|
|
11149
11149
|
show(e) {
|
|
11150
|
-
return
|
|
11150
|
+
return F(this, null, function* () {
|
|
11151
11151
|
this.setState({ visible: !0 }, e);
|
|
11152
11152
|
});
|
|
11153
11153
|
}
|
|
11154
11154
|
hide(e) {
|
|
11155
|
-
return
|
|
11155
|
+
return F(this, null, function* () {
|
|
11156
11156
|
this.setState({ visible: !1 }, e);
|
|
11157
11157
|
});
|
|
11158
11158
|
}
|
|
@@ -11175,7 +11175,7 @@ class pl extends zt {
|
|
|
11175
11175
|
this.state = Q(Q({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible, n == null ? void 0 : n.userAction), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled, n == null ? void 0 : n.userAction), e.playing !== void 0 && e.playing !== o.playing && this.changePlayState(e.playing, n), e.speed !== void 0 && e.speed !== o.speed && this.changeSpeed(e.speed, n == null ? void 0 : n.userAction), et(o, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (s = n == null ? void 0 : n.userAction) != null ? s : !0 });
|
|
11176
11176
|
}
|
|
11177
11177
|
formatData(e) {
|
|
11178
|
-
return
|
|
11178
|
+
return F(this, null, function* () {
|
|
11179
11179
|
this.five.work || (yield this.waitFiveLoaded());
|
|
11180
11180
|
const n = this.five.work.observers, o = (() => {
|
|
11181
11181
|
const s = e;
|
|
@@ -11236,7 +11236,7 @@ class pl extends zt {
|
|
|
11236
11236
|
), e ? this.handlePlay(n) : this.handlePause(n), this.state.playing = e;
|
|
11237
11237
|
}
|
|
11238
11238
|
handlePlay(e) {
|
|
11239
|
-
return
|
|
11239
|
+
return F(this, null, function* () {
|
|
11240
11240
|
var f;
|
|
11241
11241
|
const { data: n, state: o, privateState: s, hooks: r } = this;
|
|
11242
11242
|
if (s.playing || !(n != null && n.keyframes) || (n == null ? void 0 : n.keyframes.length) === 0)
|
|
@@ -11246,7 +11246,7 @@ class pl extends zt {
|
|
|
11246
11246
|
const l = n.keyframes, c = this.getPauseData();
|
|
11247
11247
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (f = e == null ? void 0 : e.userAction) != null ? f : !0 });
|
|
11248
11248
|
let u = !1;
|
|
11249
|
-
const d = yield (() =>
|
|
11249
|
+
const d = yield (() => F(this, null, function* () {
|
|
11250
11250
|
var g, v;
|
|
11251
11251
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
11252
11252
|
return e.playFromIndex;
|
|
@@ -11290,7 +11290,7 @@ class pl extends zt {
|
|
|
11290
11290
|
n.playing = !1, o.playing !== !1 && (o.playing = !1, this.setPauseData(), o.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && s.emit("pause", { userAction: (r = e == null ? void 0 : e.userAction) != null ? r : !0 }));
|
|
11291
11291
|
}
|
|
11292
11292
|
playKeyframe(e, n) {
|
|
11293
|
-
return
|
|
11293
|
+
return F(this, null, function* () {
|
|
11294
11294
|
var s;
|
|
11295
11295
|
const { privateState: o } = this;
|
|
11296
11296
|
return ((s = this.privateState.currentPlayKeyframe) == null ? void 0 : s.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), o.currentPlayQueue.push(this.getPlayPromise(e, n)), this.actionPromiseQueue();
|
|
@@ -11305,7 +11305,7 @@ class pl extends zt {
|
|
|
11305
11305
|
};
|
|
11306
11306
|
}
|
|
11307
11307
|
getPlayPromise(o) {
|
|
11308
|
-
return
|
|
11308
|
+
return F(this, arguments, function* (e, n = {}) {
|
|
11309
11309
|
var r;
|
|
11310
11310
|
const s = e.data;
|
|
11311
11311
|
if (n.duration = (r = n.duration) != null ? r : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!s)
|
|
@@ -11337,7 +11337,7 @@ class pl extends zt {
|
|
|
11337
11337
|
});
|
|
11338
11338
|
}
|
|
11339
11339
|
actionPromiseQueue() {
|
|
11340
|
-
return
|
|
11340
|
+
return F(this, null, function* () {
|
|
11341
11341
|
const { privateState: e } = this;
|
|
11342
11342
|
return new Promise((n, o) => {
|
|
11343
11343
|
if (e.currentPlayQueue.length === 0) {
|
|
@@ -11354,7 +11354,7 @@ class pl extends zt {
|
|
|
11354
11354
|
});
|
|
11355
11355
|
}
|
|
11356
11356
|
move(e, n) {
|
|
11357
|
-
return
|
|
11357
|
+
return F(this, null, function* () {
|
|
11358
11358
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
11359
11359
|
yield this.changeMode(e);
|
|
11360
11360
|
else if (e.panoIndex !== this.five.panoIndex)
|
|
@@ -11364,7 +11364,7 @@ class pl extends zt {
|
|
|
11364
11364
|
});
|
|
11365
11365
|
}
|
|
11366
11366
|
rotate(e, n) {
|
|
11367
|
-
return
|
|
11367
|
+
return F(this, null, function* () {
|
|
11368
11368
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
11369
11369
|
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
11370
11370
|
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
@@ -11373,7 +11373,7 @@ class pl extends zt {
|
|
|
11373
11373
|
});
|
|
11374
11374
|
}
|
|
11375
11375
|
updateCamera(o) {
|
|
11376
|
-
return
|
|
11376
|
+
return F(this, arguments, function* (e, n = {}) {
|
|
11377
11377
|
const { five: s, privateState: r, state: a } = this, l = (() => {
|
|
11378
11378
|
var f, g;
|
|
11379
11379
|
const h = (f = a.config) == null ? void 0 : f.speedConfig, d = (g = e.rotateSpeed) != null ? g : h == null ? void 0 : h.rotateSpeed;
|
|
@@ -11398,7 +11398,7 @@ class pl extends zt {
|
|
|
11398
11398
|
});
|
|
11399
11399
|
}
|
|
11400
11400
|
changePano(e, n) {
|
|
11401
|
-
return
|
|
11401
|
+
return F(this, null, function* () {
|
|
11402
11402
|
const { five: o, privateState: s, state: r } = this;
|
|
11403
11403
|
if (typeof e.panoIndex != "number" || e.panoIndex === o.panoIndex)
|
|
11404
11404
|
return;
|
|
@@ -11450,7 +11450,7 @@ class pl extends zt {
|
|
|
11450
11450
|
return this.five.controller.cameraMotion.progress;
|
|
11451
11451
|
}
|
|
11452
11452
|
changeMode(e, n) {
|
|
11453
|
-
return
|
|
11453
|
+
return F(this, null, function* () {
|
|
11454
11454
|
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, n), this.privateState.modeChanging = !1);
|
|
11455
11455
|
});
|
|
11456
11456
|
}
|
|
@@ -11490,7 +11490,7 @@ class pl extends zt {
|
|
|
11490
11490
|
n != null && n.warnLog && np();
|
|
11491
11491
|
}
|
|
11492
11492
|
waitFiveLoaded() {
|
|
11493
|
-
return
|
|
11493
|
+
return F(this, null, function* () {
|
|
11494
11494
|
return new Promise((e) => {
|
|
11495
11495
|
if (this.five.work) {
|
|
11496
11496
|
e();
|
|
@@ -13550,7 +13550,7 @@ class a0 {
|
|
|
13550
13550
|
this.reset();
|
|
13551
13551
|
const n = Math.min(r0, Math.max(this._autoplayDuration, 1));
|
|
13552
13552
|
let o = -n;
|
|
13553
|
-
this._interval = s0(() =>
|
|
13553
|
+
this._interval = s0(() => F(this, null, function* () {
|
|
13554
13554
|
if (this._paused)
|
|
13555
13555
|
return;
|
|
13556
13556
|
o += n;
|
|
@@ -13708,17 +13708,17 @@ function l0(i) {
|
|
|
13708
13708
|
r.focused = !r.focused;
|
|
13709
13709
|
},
|
|
13710
13710
|
_applyAutoplayIfNeeded(l) {
|
|
13711
|
-
return
|
|
13711
|
+
return F(this, arguments, function* ({ data: r, methods: a }) {
|
|
13712
13712
|
if (!r.infinite && (r.autoplayDirection === wt && r.currentParticleIndex === r.particlesCount - 1 || r.autoplayDirection === Xt && r.currentParticleIndex === 0)) {
|
|
13713
13713
|
t.reset();
|
|
13714
13714
|
return;
|
|
13715
13715
|
}
|
|
13716
13716
|
if (r.autoplay) {
|
|
13717
13717
|
const c = () => $i({
|
|
13718
|
-
[wt]: () =>
|
|
13718
|
+
[wt]: () => F(this, null, function* () {
|
|
13719
13719
|
return a.showNextPage();
|
|
13720
13720
|
}),
|
|
13721
|
-
[Xt]: () =>
|
|
13721
|
+
[Xt]: () => F(this, null, function* () {
|
|
13722
13722
|
return a.showPrevPage();
|
|
13723
13723
|
})
|
|
13724
13724
|
})(r.autoplayDirection);
|
|
@@ -13727,7 +13727,7 @@ function l0(i) {
|
|
|
13727
13727
|
});
|
|
13728
13728
|
},
|
|
13729
13729
|
_jumpIfNeeded(l) {
|
|
13730
|
-
return
|
|
13730
|
+
return F(this, arguments, function* ({ data: r, methods: a }) {
|
|
13731
13731
|
let c = !1;
|
|
13732
13732
|
return r.infinite && (r.currentParticleIndex === 0 ? (yield a.showParticle(
|
|
13733
13733
|
r.particlesCount - r.clonesCountTotal,
|
|
@@ -13740,24 +13740,24 @@ function l0(i) {
|
|
|
13740
13740
|
});
|
|
13741
13741
|
},
|
|
13742
13742
|
changePage(u, h, d) {
|
|
13743
|
-
return
|
|
13743
|
+
return F(this, arguments, function* ({ data: r, methods: a }, l, c) {
|
|
13744
13744
|
if (t.reset(), r.disabled)
|
|
13745
13745
|
return;
|
|
13746
13746
|
r.disabled = !0, l(), yield a.offsetPage({ animated: pn(c, "animated", !0) }), r.disabled = !1, !(yield a._jumpIfNeeded()) && a._applyAutoplayIfNeeded();
|
|
13747
13747
|
});
|
|
13748
13748
|
},
|
|
13749
13749
|
showNextPage(c, u) {
|
|
13750
|
-
return
|
|
13750
|
+
return F(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
13751
13751
|
r.disabled || (yield a.changePage(a._next, l));
|
|
13752
13752
|
});
|
|
13753
13753
|
},
|
|
13754
13754
|
showPrevPage(c, u) {
|
|
13755
|
-
return
|
|
13755
|
+
return F(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
13756
13756
|
r.disabled || (yield a.changePage(a._prev, l));
|
|
13757
13757
|
});
|
|
13758
13758
|
},
|
|
13759
13759
|
showParticle(c, u, h) {
|
|
13760
|
-
return
|
|
13760
|
+
return F(this, arguments, function* ({ methods: r }, a, l) {
|
|
13761
13761
|
yield r.changePage(
|
|
13762
13762
|
() => r._moveToParticle(a),
|
|
13763
13763
|
l
|
|
@@ -13776,7 +13776,7 @@ function l0(i) {
|
|
|
13776
13776
|
});
|
|
13777
13777
|
},
|
|
13778
13778
|
showPage(c, u, h) {
|
|
13779
|
-
return
|
|
13779
|
+
return F(this, arguments, function* ({ methods: r }, a, l) {
|
|
13780
13780
|
const d = r._getParticleIndexByPageIndex(a);
|
|
13781
13781
|
yield r.showParticle(d, l);
|
|
13782
13782
|
});
|
|
@@ -14105,7 +14105,7 @@ function v0(i, t, e) {
|
|
|
14105
14105
|
}), v = di();
|
|
14106
14106
|
let { timingFunction: p = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: P = 500 } = t, { autoplay: k = !1 } = t, { autoplayDuration: C = 3e3 } = t, { autoplayDirection: S = wt } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: N = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: Y = 1 } = t, { particlesToScroll: j = 1 } = t;
|
|
14107
14107
|
function R(te, Ae) {
|
|
14108
|
-
return
|
|
14108
|
+
return F(this, null, function* () {
|
|
14109
14109
|
const je = pn(Ae, "animated", !0);
|
|
14110
14110
|
if (typeof te != "number")
|
|
14111
14111
|
throw new Error("pageIndex should be a number");
|
|
@@ -14113,20 +14113,20 @@ function v0(i, t, e) {
|
|
|
14113
14113
|
});
|
|
14114
14114
|
}
|
|
14115
14115
|
function G(te) {
|
|
14116
|
-
return
|
|
14116
|
+
return F(this, null, function* () {
|
|
14117
14117
|
const Ae = pn(te, "animated", !0);
|
|
14118
14118
|
yield f.showPrevPage({ animated: Ae });
|
|
14119
14119
|
});
|
|
14120
14120
|
}
|
|
14121
14121
|
function _(te) {
|
|
14122
|
-
return
|
|
14122
|
+
return F(this, null, function* () {
|
|
14123
14123
|
const Ae = pn(te, "animated", !0);
|
|
14124
14124
|
yield f.showNextPage({ animated: Ae });
|
|
14125
14125
|
});
|
|
14126
14126
|
}
|
|
14127
|
-
let
|
|
14127
|
+
let H = 0, ee, W;
|
|
14128
14128
|
const ae = Yg(({ width: te }) => {
|
|
14129
|
-
e(11,
|
|
14129
|
+
e(11, H = te), h.particleWidth = H / h.particlesToShow, Xg({
|
|
14130
14130
|
particlesContainerChildren: W.children,
|
|
14131
14131
|
particleWidth: h.particleWidth
|
|
14132
14132
|
}), f.offsetPage({ animated: !1 });
|
|
@@ -14144,14 +14144,14 @@ function v0(i, t, e) {
|
|
|
14144
14144
|
});
|
|
14145
14145
|
}
|
|
14146
14146
|
qe(() => {
|
|
14147
|
-
|
|
14147
|
+
F(this, null, function* () {
|
|
14148
14148
|
yield Ro(), W && ee && (h.particlesCountWithoutClones = W.children.length, yield Ro(), h.infinite && he(), h.particlesCount = W.children.length, f.showPage(w, { animated: !1 }), ae.observe(ee));
|
|
14149
14149
|
});
|
|
14150
14150
|
}), Pt(() => {
|
|
14151
14151
|
ae.disconnect(), d.reset();
|
|
14152
14152
|
});
|
|
14153
14153
|
function ue(te) {
|
|
14154
|
-
return
|
|
14154
|
+
return F(this, null, function* () {
|
|
14155
14155
|
yield f.showPage(te, { animated: !0 });
|
|
14156
14156
|
});
|
|
14157
14157
|
}
|
|
@@ -14159,7 +14159,7 @@ function v0(i, t, e) {
|
|
|
14159
14159
|
!O || (h.durationMs = 0);
|
|
14160
14160
|
}
|
|
14161
14161
|
function Ce(te) {
|
|
14162
|
-
return
|
|
14162
|
+
return F(this, null, function* () {
|
|
14163
14163
|
!O || (yield $i({
|
|
14164
14164
|
[wt]: f.showNextPage,
|
|
14165
14165
|
[Xt]: f.showPrevPage
|
|
@@ -14173,7 +14173,7 @@ function v0(i, t, e) {
|
|
|
14173
14173
|
!O || f.showParticle(h.currentParticleIndex);
|
|
14174
14174
|
}
|
|
14175
14175
|
function le() {
|
|
14176
|
-
return
|
|
14176
|
+
return F(this, null, function* () {
|
|
14177
14177
|
!O || (yield f.offsetPage({ animated: !0 }));
|
|
14178
14178
|
});
|
|
14179
14179
|
}
|
|
@@ -14186,7 +14186,7 @@ function v0(i, t, e) {
|
|
|
14186
14186
|
function de() {
|
|
14187
14187
|
f.showPrevPage();
|
|
14188
14188
|
}
|
|
14189
|
-
const Ue = () =>
|
|
14189
|
+
const Ue = () => H / 3;
|
|
14190
14190
|
function ot(te) {
|
|
14191
14191
|
Qe[te ? "unshift" : "push"](() => {
|
|
14192
14192
|
W = te, e(13, W);
|
|
@@ -14214,7 +14214,7 @@ function v0(i, t, e) {
|
|
|
14214
14214
|
l,
|
|
14215
14215
|
c,
|
|
14216
14216
|
u,
|
|
14217
|
-
|
|
14217
|
+
H,
|
|
14218
14218
|
ee,
|
|
14219
14219
|
W,
|
|
14220
14220
|
f,
|
|
@@ -15554,6 +15554,7 @@ class xl extends Audio {
|
|
|
15554
15554
|
constructor(e) {
|
|
15555
15555
|
super(e);
|
|
15556
15556
|
m(this, "preload", "auto");
|
|
15557
|
+
m(this, "crossOrigin", "anonymous");
|
|
15557
15558
|
m(this, "realSrc", "");
|
|
15558
15559
|
m(this, "inited", !1);
|
|
15559
15560
|
m(this, "removeDocumentEventListener");
|
|
@@ -15581,7 +15582,7 @@ class xl extends Audio {
|
|
|
15581
15582
|
super.muted = e;
|
|
15582
15583
|
}
|
|
15583
15584
|
clear() {
|
|
15584
|
-
this.
|
|
15585
|
+
this.currentTime = 0, this.src = Yt;
|
|
15585
15586
|
}
|
|
15586
15587
|
}
|
|
15587
15588
|
function tA(i) {
|
|
@@ -15599,36 +15600,51 @@ class nA extends Audio {
|
|
|
15599
15600
|
this.sharedAudioSrc = e;
|
|
15600
15601
|
}
|
|
15601
15602
|
get paused() {
|
|
15602
|
-
var e;
|
|
15603
|
-
return (e = this.sharedAudioPaused) != null ? e : !0;
|
|
15603
|
+
var e, n;
|
|
15604
|
+
return console.log("get paused", (e = this.sharedAudioPaused) != null ? e : !0), (n = this.sharedAudioPaused) != null ? n : !0;
|
|
15604
15605
|
}
|
|
15605
15606
|
get currentTime() {
|
|
15606
15607
|
return this.sharedAudioCurrentTime;
|
|
15607
15608
|
}
|
|
15608
15609
|
play() {
|
|
15609
|
-
|
|
15610
|
-
|
|
15611
|
-
|
|
15612
|
-
|
|
15613
|
-
|
|
15614
|
-
|
|
15615
|
-
this.audioInstance.
|
|
15616
|
-
|
|
15617
|
-
|
|
15618
|
-
|
|
15610
|
+
return F(this, null, function* () {
|
|
15611
|
+
var n, o, s;
|
|
15612
|
+
if (this.tryplaying)
|
|
15613
|
+
return;
|
|
15614
|
+
this.tryplaying = !0, (!this.audioInstance || ((n = this.audioInstance) == null ? void 0 : n.realSrc) !== this.sharedAudioSrc) && (this.audioInstance = $0(this.sharedAudioSrc, { namespace: Eo.PlayAudio })), console.log("play audio! ", this.sharedAudioSrc, this.audioInstance.src), (o = this.eventListenerDisposer) == null || o.call(this), this.eventListenerDisposer = this.addEventListeners(), this.audioInstance.currentTime = (s = this.currentTime) != null ? s : 0;
|
|
15615
|
+
const e = this.audioInstance.currentTime !== this.currentTime;
|
|
15616
|
+
this.audioInstance.play().then(() => {
|
|
15617
|
+
var r;
|
|
15618
|
+
this.audioInstance.muted = !1, e && (this.audioInstance.currentTime = (r = this.currentTime) != null ? r : 0), this.sharedAudioPaused = !1;
|
|
15619
|
+
}).catch((r) => {
|
|
15620
|
+
var a;
|
|
15621
|
+
r.message === "The operation is not supported." ? console.error("Error: \u97F3\u9891\u6587\u4EF6\u53EF\u80FD\u635F\u574F\u6216\u4FEE\u6539\u8FC7\u6587\u4EF6\u540E\u7F00", r) : console.error("Error: error playing media in Safari", r), this.endedHandler(), (a = this.onerror) == null || a.call(this, r);
|
|
15622
|
+
}).finally(() => {
|
|
15623
|
+
this.tryplaying = !1;
|
|
15624
|
+
});
|
|
15625
|
+
});
|
|
15619
15626
|
}
|
|
15620
|
-
pause() {
|
|
15621
|
-
|
|
15622
|
-
|
|
15623
|
-
|
|
15624
|
-
|
|
15627
|
+
pause(e) {
|
|
15628
|
+
var n;
|
|
15629
|
+
if (console.log("try pause"), !!this.audioInstance && !this.paused) {
|
|
15630
|
+
if (console.log("pause handle"), this.sharedAudioPaused = !0, (n = this.eventListenerDisposer) == null || n.call(this), this.audioInstance.ended) {
|
|
15631
|
+
this.endedHandler();
|
|
15632
|
+
return;
|
|
15633
|
+
}
|
|
15634
|
+
this.audioInstance.paused || this.audioInstance.pause(), this.onpause(e != null ? e : new Event("pause")), this.clear();
|
|
15635
|
+
}
|
|
15625
15636
|
}
|
|
15626
15637
|
dispose() {
|
|
15627
|
-
|
|
15638
|
+
var e;
|
|
15639
|
+
(e = this.eventListenerDisposer) == null || e.call(this), this.clear(), this.audioInstance = void 0;
|
|
15628
15640
|
}
|
|
15629
15641
|
clear() {
|
|
15630
15642
|
var e;
|
|
15631
|
-
(e = this.audioInstance) == null || e.clear();
|
|
15643
|
+
console.log("clear"), (e = this.audioInstance) == null || e.clear();
|
|
15644
|
+
}
|
|
15645
|
+
endedHandler(e) {
|
|
15646
|
+
var n, o;
|
|
15647
|
+
console.log("ended"), (n = this.onended) == null || n.call(this, e != null ? e : new Event("ended")), (o = this.eventListenerDisposer) == null || o.call(this), this.sharedAudioPaused = !0, this.sharedAudioCurrentTime = 0, this.clear();
|
|
15632
15648
|
}
|
|
15633
15649
|
addEventListeners() {
|
|
15634
15650
|
const e = this.audioInstance;
|
|
@@ -15636,16 +15652,14 @@ class nA extends Audio {
|
|
|
15636
15652
|
return;
|
|
15637
15653
|
const n = (d) => {
|
|
15638
15654
|
var f;
|
|
15639
|
-
|
|
15655
|
+
console.debug("ontimeupdate", e.currentTime, e.paused, e.ended), this.sharedAudioCurrentTime = e.currentTime, (f = this.ontimeupdate) == null || f.call(this, d);
|
|
15640
15656
|
}, o = (d) => {
|
|
15641
15657
|
var f;
|
|
15642
15658
|
e.isBlankAudio || (this.sharedAudioPaused = !1, (f = this.onplay) == null || f.call(this, d));
|
|
15643
15659
|
}, s = (d) => {
|
|
15644
|
-
|
|
15645
|
-
(f = this.onpause) == null || f.call(this, d), !this.sharedAudioPaused && (this.pause(), this.sharedAudioPaused = !0, this.clear());
|
|
15660
|
+
console.log("emit onpause"), this.pause(d);
|
|
15646
15661
|
}, r = (d) => {
|
|
15647
|
-
|
|
15648
|
-
(f = this.onended) == null || f.call(this, d), this.sharedAudioPaused = !0, this.sharedAudioCurrentTime = 0;
|
|
15662
|
+
this.endedHandler(d);
|
|
15649
15663
|
}, a = (d) => {
|
|
15650
15664
|
var f;
|
|
15651
15665
|
this.sharedAudioPaused = !0, (f = this.onerror) == null || f.call(this, d);
|
|
@@ -15726,6 +15740,16 @@ function sA(i, t, e) {
|
|
|
15726
15740
|
}, l)), c("pause"), e(6, f = !0);
|
|
15727
15741
|
},
|
|
15728
15742
|
d
|
|
15743
|
+
), e(
|
|
15744
|
+
5,
|
|
15745
|
+
d.onended = (p) => {
|
|
15746
|
+
u.emit("playStateChange", Q({
|
|
15747
|
+
event: p,
|
|
15748
|
+
state: "paused",
|
|
15749
|
+
mediaInstance: d
|
|
15750
|
+
}, l)), c("pause"), e(6, f = !0);
|
|
15751
|
+
},
|
|
15752
|
+
d
|
|
15729
15753
|
), e(
|
|
15730
15754
|
5,
|
|
15731
15755
|
d.onloadedmetadata = (p) => {
|
|
@@ -15750,7 +15774,7 @@ function sA(i, t, e) {
|
|
|
15750
15774
|
p !== d && (f || d == null || d.pause());
|
|
15751
15775
|
});
|
|
15752
15776
|
function v(p) {
|
|
15753
|
-
!d || (u.emit("click", Q({
|
|
15777
|
+
!d || (console.log("==========click============ audio.paused: ", d.paused), Object.assign(window, { audio: d }), u.emit("click", Q({
|
|
15754
15778
|
event: p,
|
|
15755
15779
|
target: "AudioTagPlayIcon",
|
|
15756
15780
|
audioInstance: d
|
|
@@ -16436,7 +16460,7 @@ class DA extends oe {
|
|
|
16436
16460
|
}
|
|
16437
16461
|
}
|
|
16438
16462
|
function LA(i) {
|
|
16439
|
-
return
|
|
16463
|
+
return F(this, null, function* () {
|
|
16440
16464
|
return new Promise((t, e) => {
|
|
16441
16465
|
if (!i) {
|
|
16442
16466
|
e(Error("url is empty"));
|
|
@@ -16448,7 +16472,7 @@ function LA(i) {
|
|
|
16448
16472
|
});
|
|
16449
16473
|
}
|
|
16450
16474
|
function SA(i) {
|
|
16451
|
-
return
|
|
16475
|
+
return F(this, null, function* () {
|
|
16452
16476
|
const { steps: t, url: e, ratio: n = 3, fps: o = 24 } = i;
|
|
16453
16477
|
if (!t)
|
|
16454
16478
|
throw new Error("KeyframeIcon requires steps");
|
|
@@ -16623,7 +16647,7 @@ function OA(i, t, e) {
|
|
|
16623
16647
|
let n, { width: o = null } = t, { icon: s = null } = t, { shadow: r = !1 } = t;
|
|
16624
16648
|
const a = di();
|
|
16625
16649
|
function l(c) {
|
|
16626
|
-
return
|
|
16650
|
+
return F(this, null, function* () {
|
|
16627
16651
|
const u = yield SA(c);
|
|
16628
16652
|
return a("iconLoaded"), u;
|
|
16629
16653
|
});
|
|
@@ -18023,7 +18047,7 @@ class Dv extends Pv {
|
|
|
18023
18047
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
18024
18048
|
});
|
|
18025
18049
|
m(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
18026
|
-
m(this, "changeTagModel", (e, n) =>
|
|
18050
|
+
m(this, "changeTagModel", (e, n) => F(this, null, function* () {
|
|
18027
18051
|
e.data = ft({}, e.data, n), yield this.loadModel(e), this.updateRenderAllTags();
|
|
18028
18052
|
}));
|
|
18029
18053
|
m(this, "disposedErrorLog", () => {
|
|
@@ -18040,7 +18064,7 @@ class Dv extends Pv {
|
|
|
18040
18064
|
!He(e) || (e.state.visible = this.getVisible(e));
|
|
18041
18065
|
}), this.updateRenderAllTags();
|
|
18042
18066
|
});
|
|
18043
|
-
m(this, "loadModel", (e) =>
|
|
18067
|
+
m(this, "loadModel", (e) => F(this, null, function* () {
|
|
18044
18068
|
var l;
|
|
18045
18069
|
const n = e.data.modelUrl;
|
|
18046
18070
|
if (!n)
|
|
@@ -18057,7 +18081,7 @@ class Dv extends Pv {
|
|
|
18057
18081
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = Q({ debug: !1, config: this.config }, n), this.debug = this.params.debug, this.config = this.params.config, eA(1, { namespace: Eo.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
|
|
18058
18082
|
}
|
|
18059
18083
|
load(e, n) {
|
|
18060
|
-
return
|
|
18084
|
+
return F(this, null, function* () {
|
|
18061
18085
|
var s, r;
|
|
18062
18086
|
this.clearTags(), console.info(to, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = ft({}, this.config, {
|
|
18063
18087
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
@@ -18074,7 +18098,7 @@ class Dv extends Pv {
|
|
|
18074
18098
|
});
|
|
18075
18099
|
}
|
|
18076
18100
|
addTag(e, n) {
|
|
18077
|
-
return
|
|
18101
|
+
return F(this, null, function* () {
|
|
18078
18102
|
const s = (Array.isArray(e) ? e : [e]).map((r) => {
|
|
18079
18103
|
const a = this.getTagConfig(r);
|
|
18080
18104
|
return me(Q({}, r), {
|
|
@@ -18100,7 +18124,7 @@ class Dv extends Pv {
|
|
|
18100
18124
|
this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
18101
18125
|
}
|
|
18102
18126
|
show(e) {
|
|
18103
|
-
return
|
|
18127
|
+
return F(this, null, function* () {
|
|
18104
18128
|
const { userAction: n = !0, withAnimation: o = !1 } = e != null ? e : {};
|
|
18105
18129
|
if (this.store.disposed)
|
|
18106
18130
|
return this.disposedErrorLog();
|
|
@@ -18108,7 +18132,7 @@ class Dv extends Pv {
|
|
|
18108
18132
|
});
|
|
18109
18133
|
}
|
|
18110
18134
|
hide(e) {
|
|
18111
|
-
return
|
|
18135
|
+
return F(this, null, function* () {
|
|
18112
18136
|
const { userAction: n = !0, withAnimation: o = !1 } = e != null ? e : {};
|
|
18113
18137
|
if (this.store.disposed)
|
|
18114
18138
|
return this.disposedErrorLog();
|
|
@@ -18195,7 +18219,7 @@ class Dv extends Pv {
|
|
|
18195
18219
|
!o || (o.visible = (c = (l = e.state) == null ? void 0 : l.visible) != null ? c : !0);
|
|
18196
18220
|
}
|
|
18197
18221
|
setVisibleAndUnfolded() {
|
|
18198
|
-
return
|
|
18222
|
+
return F(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
18199
18223
|
if (!!this.isPanorama)
|
|
18200
18224
|
return this.setVisibleByPanoIndex(), e ? new Promise((n, o) => {
|
|
18201
18225
|
setTimeout(() => {
|
|
@@ -18311,7 +18335,7 @@ class Dv extends Pv {
|
|
|
18311
18335
|
this.updateRenderPointTag();
|
|
18312
18336
|
}
|
|
18313
18337
|
handleFivePanoArrived() {
|
|
18314
|
-
return
|
|
18338
|
+
return F(this, null, function* () {
|
|
18315
18339
|
this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
18316
18340
|
e.temporaryState = me(Q({}, e.temporaryState), { visible: !0 });
|
|
18317
18341
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
@@ -18422,7 +18446,7 @@ class Dv extends Pv {
|
|
|
18422
18446
|
}
|
|
18423
18447
|
}
|
|
18424
18448
|
addMediaModelTag(e) {
|
|
18425
|
-
return
|
|
18449
|
+
return F(this, null, function* () {
|
|
18426
18450
|
const n = e.filter(He).map(this.loadModel);
|
|
18427
18451
|
yield Promise.all(n), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
18428
18452
|
});
|
|
@@ -19554,12 +19578,12 @@ class e1 {
|
|
|
19554
19578
|
t && this.addControllers(t), this.setState(this.state);
|
|
19555
19579
|
}
|
|
19556
19580
|
show(t) {
|
|
19557
|
-
return
|
|
19581
|
+
return F(this, null, function* () {
|
|
19558
19582
|
this.setState({ visible: !0 }, t);
|
|
19559
19583
|
});
|
|
19560
19584
|
}
|
|
19561
19585
|
hide(t) {
|
|
19562
|
-
return
|
|
19586
|
+
return F(this, null, function* () {
|
|
19563
19587
|
this.setState({ visible: !1 }, t);
|
|
19564
19588
|
});
|
|
19565
19589
|
}
|
|
@@ -19835,8 +19859,8 @@ class n1 extends Mn {
|
|
|
19835
19859
|
const W = new q().subVectors(G, _), ae = W.x < 0 && j.x >= 0, he = W.y < 0 && j.y >= 0, ue = W.z < 0 && j.z >= 0;
|
|
19836
19860
|
this.startInfo.dragPointInCenterLeft = ae || he || ue;
|
|
19837
19861
|
}
|
|
19838
|
-
const
|
|
19839
|
-
return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), Y) :
|
|
19862
|
+
const H = new q().subVectors(G, R), ee = H.length();
|
|
19863
|
+
return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), Y) : H;
|
|
19840
19864
|
}, g = f("ew"), v = f("ns"), p = () => {
|
|
19841
19865
|
const O = g;
|
|
19842
19866
|
this.helperObject3D.cornerPositions.forEach((Y, j) => {
|
|
@@ -19919,12 +19943,12 @@ class c1 extends Ln {
|
|
|
19919
19943
|
this.five = e, this.css3DRender = new wn(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\uFF0C\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${no.toUpperCase()}_DEBUG__`]: this });
|
|
19920
19944
|
}
|
|
19921
19945
|
show(e) {
|
|
19922
|
-
return
|
|
19946
|
+
return F(this, null, function* () {
|
|
19923
19947
|
this.setState({ visible: !0 }, e);
|
|
19924
19948
|
});
|
|
19925
19949
|
}
|
|
19926
19950
|
hide(e) {
|
|
19927
|
-
return
|
|
19951
|
+
return F(this, null, function* () {
|
|
19928
19952
|
this.setState({ visible: !1 }, e);
|
|
19929
19953
|
});
|
|
19930
19954
|
}
|
|
@@ -20087,7 +20111,7 @@ class ha {
|
|
|
20087
20111
|
});
|
|
20088
20112
|
m(this, "onFiveWantsMoveToPano", (t) => {
|
|
20089
20113
|
t === this.panoIndex && (this.hasVideoEverPlayed || this.video.play().catch((e) => {
|
|
20090
|
-
console.
|
|
20114
|
+
console.error("\u{1F436} ==> error:", e);
|
|
20091
20115
|
}));
|
|
20092
20116
|
});
|
|
20093
20117
|
m(this, "onFivePanoArrived", (t) => {
|