@realsee/dnalogel 2.3.9-alpha.0 → 2.3.9-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/controller/index.d.ts +2 -2
- package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
- package/dist/index.cjs.js +13 -13
- package/dist/index.js +233 -221
- package/dist/index.umd.js +14 -14
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +45 -45
- 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 +16 -16
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/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/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +10 -10
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/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/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.js +36 -26
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +7 -1
- package/libs/PanoTagPlugin/utils/index.js +10 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var hi = (i, t, e) => t in i ? wl(i, t, { enumerable: !0, configurable: !0, writ
|
|
|
11
11
|
return i;
|
|
12
12
|
}, he = (i, t) => Cl(i, El(t));
|
|
13
13
|
var m = (i, t, e) => (hi(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
var
|
|
14
|
+
var Y = (i, t, e) => new Promise((n, o) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(e.next(l));
|
|
@@ -605,14 +605,14 @@ const qA = (i, t) => {
|
|
|
605
605
|
}
|
|
606
606
|
function H(O) {
|
|
607
607
|
if (O instanceof k.Mesh) {
|
|
608
|
-
const F = O.geometry,
|
|
609
|
-
return new k.Mesh(F,
|
|
608
|
+
const F = O.geometry, J = Array.isArray(O.material) ? O.material.map(x) : x(O.material);
|
|
609
|
+
return new k.Mesh(F, J);
|
|
610
610
|
} else if (O instanceof k.Group) {
|
|
611
611
|
const F = new k.Group();
|
|
612
|
-
return O.children.forEach((
|
|
612
|
+
return O.children.forEach((J) => F.add(H(J))), F;
|
|
613
613
|
} else {
|
|
614
614
|
const F = new k.Object3D();
|
|
615
|
-
return O.children.forEach((
|
|
615
|
+
return O.children.forEach((J) => F.add(H(J))), F;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
}, p = () => {
|
|
@@ -640,18 +640,18 @@ const qA = (i, t) => {
|
|
|
640
640
|
return;
|
|
641
641
|
const O = s.domElement.parentNode;
|
|
642
642
|
if (O != null && O.nodeName) {
|
|
643
|
-
const { width: F = O.offsetWidth, height:
|
|
644
|
-
s.setSize(F,
|
|
643
|
+
const { width: F = O.offsetWidth, height: J = O.offsetHeight } = x;
|
|
644
|
+
s.setSize(F, J), c.aspect = F / J, c.updateProjectionMatrix();
|
|
645
645
|
}
|
|
646
646
|
T();
|
|
647
647
|
};
|
|
648
648
|
function P(x, H, O) {
|
|
649
|
-
const F = x.bounding,
|
|
649
|
+
const F = x.bounding, J = Math.pow(
|
|
650
650
|
Math.pow(F.max.x - F.min.x + 1, 2) + Math.pow(F.max.y - F.min.y + 1, 2) + Math.pow(F.max.z - F.min.z + 1, 2),
|
|
651
651
|
1 / 2
|
|
652
652
|
);
|
|
653
|
-
let _ =
|
|
654
|
-
return O < 1 && (_ = _ / O), isNaN(_) ?
|
|
653
|
+
let _ = J / 2 / Math.tan(Math.PI * H / 360);
|
|
654
|
+
return O < 1 && (_ = _ / O), isNaN(_) ? J : _;
|
|
655
655
|
}
|
|
656
656
|
function C(x) {
|
|
657
657
|
return i.work.observers[x].standingPosition.clone();
|
|
@@ -1096,14 +1096,14 @@ class hn {
|
|
|
1096
1096
|
this.setState({ disposed: !0 }), this.hooks.emit("dispose");
|
|
1097
1097
|
}
|
|
1098
1098
|
show() {
|
|
1099
|
-
return
|
|
1099
|
+
return Y(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
1100
1100
|
if (this.state.disposed)
|
|
1101
1101
|
return Nt();
|
|
1102
1102
|
this.setState({ visible: !0 }, { userAction: t }), this.hooks.emit("show", { userAction: t });
|
|
1103
1103
|
});
|
|
1104
1104
|
}
|
|
1105
1105
|
hide() {
|
|
1106
|
-
return
|
|
1106
|
+
return Y(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
1107
1107
|
if (this.state.disposed)
|
|
1108
1108
|
return Nt();
|
|
1109
1109
|
this.setState({ visible: !1 }, { userAction: t }), this.hooks.emit("hide", { userAction: t });
|
|
@@ -1175,13 +1175,13 @@ class hn {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
handleShow() {
|
|
1178
|
-
return
|
|
1178
|
+
return Y(this, null, function* () {
|
|
1179
1179
|
var t;
|
|
1180
1180
|
this.store.frontModeGroup.setVisible(!0), (t = this.store.behindModeGroup) == null || t.setVisible(!0);
|
|
1181
1181
|
});
|
|
1182
1182
|
}
|
|
1183
1183
|
handleHide() {
|
|
1184
|
-
return
|
|
1184
|
+
return Y(this, null, function* () {
|
|
1185
1185
|
var t;
|
|
1186
1186
|
this.store.frontModeGroup.setVisible(!1), (t = this.store.behindModeGroup) == null || t.setVisible(!1);
|
|
1187
1187
|
});
|
|
@@ -1204,7 +1204,7 @@ class hn {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
m(hn, "setFrontModeContainer", uc), m(hn, "setBehindModeContainer", dc);
|
|
1206
1206
|
function ra(i) {
|
|
1207
|
-
return
|
|
1207
|
+
return Y(this, null, function* () {
|
|
1208
1208
|
return new Promise((t) => {
|
|
1209
1209
|
var e;
|
|
1210
1210
|
if ((e = i.model) != null && e.loaded) {
|
|
@@ -1355,7 +1355,7 @@ const KA = (i) => {
|
|
|
1355
1355
|
};
|
|
1356
1356
|
return { intersection: r, pointAxesHelper: o, movePointTowardsCamera: c, destroy: a, dispose: l, canSeePoint: s };
|
|
1357
1357
|
};
|
|
1358
|
-
function
|
|
1358
|
+
function U() {
|
|
1359
1359
|
}
|
|
1360
1360
|
const yt = (i) => i;
|
|
1361
1361
|
function we(i, t) {
|
|
@@ -1444,7 +1444,7 @@ function Qe(i) {
|
|
|
1444
1444
|
return i == null ? "" : i;
|
|
1445
1445
|
}
|
|
1446
1446
|
const da = typeof window != "undefined";
|
|
1447
|
-
let fa = da ? () => window.performance.now() : () => Date.now(), Zi = da ? (i) => requestAnimationFrame(i) :
|
|
1447
|
+
let fa = da ? () => window.performance.now() : () => Date.now(), Zi = da ? (i) => requestAnimationFrame(i) : U;
|
|
1448
1448
|
const Jt = /* @__PURE__ */ new Set();
|
|
1449
1449
|
function ha(i) {
|
|
1450
1450
|
Jt.forEach((t) => {
|
|
@@ -1757,7 +1757,7 @@ function Ht(i, t, e) {
|
|
|
1757
1757
|
s && ji(i, s);
|
|
1758
1758
|
}
|
|
1759
1759
|
function c() {
|
|
1760
|
-
const { delay: d = 0, duration: f = 300, easing: h = yt, tick: p =
|
|
1760
|
+
const { delay: d = 0, duration: f = 300, easing: h = yt, tick: p = U, css: A } = n || Ca;
|
|
1761
1761
|
A && (s = va(i, 0, 1, f, d, h, A, a++)), p(0, 1);
|
|
1762
1762
|
const g = fa() + d, v = g + f;
|
|
1763
1763
|
r && r.abort(), o = !0, Se(() => Zn(i, !0, "start")), r = ma((y) => {
|
|
@@ -1790,7 +1790,7 @@ function Kt(i, t, e) {
|
|
|
1790
1790
|
const r = gt;
|
|
1791
1791
|
r.r += 1;
|
|
1792
1792
|
function a() {
|
|
1793
|
-
const { delay: l = 0, duration: c = 300, easing: u = yt, tick: d =
|
|
1793
|
+
const { delay: l = 0, duration: c = 300, easing: u = yt, tick: d = U, css: f } = n || Ca;
|
|
1794
1794
|
f && (s = va(i, 1, 0, c, l, u, f));
|
|
1795
1795
|
const h = fa() + l, p = h + c;
|
|
1796
1796
|
Se(() => Zn(i, !1, "start")), ma((A) => {
|
|
@@ -1930,7 +1930,7 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
|
|
|
1930
1930
|
fragment: null,
|
|
1931
1931
|
ctx: [],
|
|
1932
1932
|
props: s,
|
|
1933
|
-
update:
|
|
1933
|
+
update: U,
|
|
1934
1934
|
not_equal: o,
|
|
1935
1935
|
bound: Lo(),
|
|
1936
1936
|
on_mount: [],
|
|
@@ -1961,11 +1961,11 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
class oe {
|
|
1963
1963
|
$destroy() {
|
|
1964
|
-
K(this, 1), this.$destroy =
|
|
1964
|
+
K(this, 1), this.$destroy = U;
|
|
1965
1965
|
}
|
|
1966
1966
|
$on(t, e) {
|
|
1967
1967
|
if (!oi(e))
|
|
1968
|
-
return
|
|
1968
|
+
return U;
|
|
1969
1969
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
1970
1970
|
return n.push(e), () => {
|
|
1971
1971
|
const o = n.indexOf(e);
|
|
@@ -1992,8 +1992,8 @@ function zc(i) {
|
|
|
1992
1992
|
p(c, [u]) {
|
|
1993
1993
|
u & 1 && n !== (n = c[0].name + "") && ke(o, n), u & 1 && te(e, "wide", c[0].name.length > 3), u & 1 && M(t, "z-index", c[0].zIndex), u & 1 && M(t, "transform", c[0].transform), u & 1 && M(t, "opacity", c[0].visible ? 1 : 0);
|
|
1994
1994
|
},
|
|
1995
|
-
i:
|
|
1996
|
-
o:
|
|
1995
|
+
i: U,
|
|
1996
|
+
o: U,
|
|
1997
1997
|
d(c) {
|
|
1998
1998
|
c && B(t), a = !1, l();
|
|
1999
1999
|
}
|
|
@@ -2231,7 +2231,7 @@ const $A = (i) => new Gc(i), ev = {
|
|
|
2231
2231
|
};
|
|
2232
2232
|
var Tt = /* @__PURE__ */ ((i) => (i[i.FLOOR = 1] = "FLOOR", i[i.CEILING = 2] = "CEILING", i[i.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", i))(Tt || {});
|
|
2233
2233
|
function qn(i) {
|
|
2234
|
-
return
|
|
2234
|
+
return Y(this, null, function* () {
|
|
2235
2235
|
try {
|
|
2236
2236
|
return [null, yield i];
|
|
2237
2237
|
} catch (t) {
|
|
@@ -2348,8 +2348,8 @@ function Jc(i) {
|
|
|
2348
2348
|
p(n, [o]) {
|
|
2349
2349
|
o & 1 && M(e, "background-image", `url(${n[0] || wt})`);
|
|
2350
2350
|
},
|
|
2351
|
-
i:
|
|
2352
|
-
o:
|
|
2351
|
+
i: U,
|
|
2352
|
+
o: U,
|
|
2353
2353
|
d(n) {
|
|
2354
2354
|
n && B(t);
|
|
2355
2355
|
}
|
|
@@ -2422,8 +2422,8 @@ function eu(i) {
|
|
|
2422
2422
|
p(n, [o]) {
|
|
2423
2423
|
n[1] && e.p(n, o);
|
|
2424
2424
|
},
|
|
2425
|
-
i:
|
|
2426
|
-
o:
|
|
2425
|
+
i: U,
|
|
2426
|
+
o: U,
|
|
2427
2427
|
d(n) {
|
|
2428
2428
|
e && e.d(n), n && B(t);
|
|
2429
2429
|
}
|
|
@@ -2446,7 +2446,7 @@ class iu extends oe {
|
|
|
2446
2446
|
}
|
|
2447
2447
|
}
|
|
2448
2448
|
const Wt = [];
|
|
2449
|
-
function io(i, t =
|
|
2449
|
+
function io(i, t = U) {
|
|
2450
2450
|
let e;
|
|
2451
2451
|
const n = /* @__PURE__ */ new Set();
|
|
2452
2452
|
function o(a) {
|
|
@@ -2464,9 +2464,9 @@ function io(i, t = Y) {
|
|
|
2464
2464
|
function s(a) {
|
|
2465
2465
|
o(a(i));
|
|
2466
2466
|
}
|
|
2467
|
-
function r(a, l =
|
|
2467
|
+
function r(a, l = U) {
|
|
2468
2468
|
const c = [a, l];
|
|
2469
|
-
return n.add(c), n.size === 1 && (e = t(o) ||
|
|
2469
|
+
return n.add(c), n.size === 1 && (e = t(o) || U), a(i), () => {
|
|
2470
2470
|
n.delete(c), n.size === 0 && (e(), e = null);
|
|
2471
2471
|
};
|
|
2472
2472
|
}
|
|
@@ -2487,8 +2487,8 @@ function su(i) {
|
|
|
2487
2487
|
p(n, [o]) {
|
|
2488
2488
|
o & 1 && !Fe(t.src, e = n[0]) && b(t, "src", e);
|
|
2489
2489
|
},
|
|
2490
|
-
i:
|
|
2491
|
-
o:
|
|
2490
|
+
i: U,
|
|
2491
|
+
o: U,
|
|
2492
2492
|
d(n) {
|
|
2493
2493
|
n && B(t);
|
|
2494
2494
|
}
|
|
@@ -2520,8 +2520,8 @@ function cu(i) {
|
|
|
2520
2520
|
p(s, [r]) {
|
|
2521
2521
|
r & 1 && o.p(s[0]);
|
|
2522
2522
|
},
|
|
2523
|
-
i:
|
|
2524
|
-
o:
|
|
2523
|
+
i: U,
|
|
2524
|
+
o: U,
|
|
2525
2525
|
d(s) {
|
|
2526
2526
|
s && B(t);
|
|
2527
2527
|
}
|
|
@@ -2701,8 +2701,8 @@ function yu(i) {
|
|
|
2701
2701
|
p(s, [r]) {
|
|
2702
2702
|
n === (n = e(s)) && o ? o.p(s, r) : (o && o.d(1), o = n && n(s), o && (o.c(), o.m(t, null))), r & 8 && M(t, "opacity", s[3] ? "1" : "0");
|
|
2703
2703
|
},
|
|
2704
|
-
i:
|
|
2705
|
-
o:
|
|
2704
|
+
i: U,
|
|
2705
|
+
o: U,
|
|
2706
2706
|
d(s) {
|
|
2707
2707
|
s && B(t), o && o.d(), i[16](null);
|
|
2708
2708
|
}
|
|
@@ -2722,7 +2722,7 @@ function Cu(i, t, e) {
|
|
|
2722
2722
|
function h(D, S) {
|
|
2723
2723
|
if (S.width === 0 || S.height === 0)
|
|
2724
2724
|
return () => !1;
|
|
2725
|
-
const N = D.path.map(({ x:
|
|
2725
|
+
const N = D.path.map(({ x: J, y: _ }) => [J, _]), W = D.roomLabel.position, { x: X, y: L } = W, { width: x, height: H } = S, O = x / 2, F = H / 2;
|
|
2726
2726
|
return function(_) {
|
|
2727
2727
|
const V = X * _, ue = L * _, de = N.map(([Pe, ze]) => [Pe * _, ze * _]);
|
|
2728
2728
|
return [
|
|
@@ -2982,7 +2982,7 @@ function Go(i) {
|
|
|
2982
2982
|
m(e, n) {
|
|
2983
2983
|
j(e, t, n);
|
|
2984
2984
|
},
|
|
2985
|
-
p:
|
|
2985
|
+
p: U,
|
|
2986
2986
|
d(e) {
|
|
2987
2987
|
e && B(t);
|
|
2988
2988
|
}
|
|
@@ -3049,8 +3049,8 @@ function Lu(i) {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
A & 22 && (f = p[4], a = nt(a, A, h, 1, p, f, l, r, to, Fo, null, Ho)), A & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + p[0] + " svelte-djlmk4") && b(t, "class", c), A & 5 && te(t, "is-row", p[2]);
|
|
3051
3051
|
},
|
|
3052
|
-
i:
|
|
3053
|
-
o:
|
|
3052
|
+
i: U,
|
|
3053
|
+
o: U,
|
|
3054
3054
|
d(p) {
|
|
3055
3055
|
p && B(t), ct(d, p);
|
|
3056
3056
|
for (let A = 0; A < a.length; A += 1)
|
|
@@ -3266,8 +3266,8 @@ function Ou(i) {
|
|
|
3266
3266
|
p(e, [n]) {
|
|
3267
3267
|
n & 1 && b(t, "d", e[0]);
|
|
3268
3268
|
},
|
|
3269
|
-
i:
|
|
3270
|
-
o:
|
|
3269
|
+
i: U,
|
|
3270
|
+
o: U,
|
|
3271
3271
|
d(e) {
|
|
3272
3272
|
e && B(t);
|
|
3273
3273
|
}
|
|
@@ -3298,8 +3298,8 @@ function Nu(i) {
|
|
|
3298
3298
|
p(a, [l]) {
|
|
3299
3299
|
l & 1 && b(r, "d", a[0]);
|
|
3300
3300
|
},
|
|
3301
|
-
i:
|
|
3302
|
-
o:
|
|
3301
|
+
i: U,
|
|
3302
|
+
o: U,
|
|
3303
3303
|
d(a) {
|
|
3304
3304
|
a && B(t), a && B(s), a && B(r);
|
|
3305
3305
|
}
|
|
@@ -3332,8 +3332,8 @@ function Xu(i) {
|
|
|
3332
3332
|
p(f, [h]) {
|
|
3333
3333
|
h & 1 && b(a, "d", f[0]), h & 1 && b(c, "d", f[0]), h & 1 && b(d, "d", f[0]);
|
|
3334
3334
|
},
|
|
3335
|
-
i:
|
|
3336
|
-
o:
|
|
3335
|
+
i: U,
|
|
3336
|
+
o: U,
|
|
3337
3337
|
d(f) {
|
|
3338
3338
|
f && B(t), f && B(r), f && B(a), f && B(l), f && B(c), f && B(u), f && B(d);
|
|
3339
3339
|
}
|
|
@@ -3543,9 +3543,9 @@ function nd(i) {
|
|
|
3543
3543
|
be(t, "mouseleave", i[1])
|
|
3544
3544
|
], e = !0);
|
|
3545
3545
|
},
|
|
3546
|
-
p:
|
|
3547
|
-
i:
|
|
3548
|
-
o:
|
|
3546
|
+
p: U,
|
|
3547
|
+
i: U,
|
|
3548
|
+
o: U,
|
|
3549
3549
|
d(o) {
|
|
3550
3550
|
o && B(t), e = !1, Et(n);
|
|
3551
3551
|
}
|
|
@@ -4193,9 +4193,9 @@ class oo extends oe {
|
|
|
4193
4193
|
}
|
|
4194
4194
|
const pd = "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";
|
|
4195
4195
|
function gd(i) {
|
|
4196
|
-
return
|
|
4196
|
+
return Y(this, null, function* () {
|
|
4197
4197
|
const t = new Headers({ "Content-Type": "text/plain" }), e = function(o) {
|
|
4198
|
-
return
|
|
4198
|
+
return Y(this, null, function* () {
|
|
4199
4199
|
const s = {
|
|
4200
4200
|
index: o.index,
|
|
4201
4201
|
url: o.url,
|
|
@@ -4253,7 +4253,7 @@ function yd(i) {
|
|
|
4253
4253
|
};
|
|
4254
4254
|
}
|
|
4255
4255
|
function Ct(i) {
|
|
4256
|
-
return
|
|
4256
|
+
return Y(this, null, function* () {
|
|
4257
4257
|
const t = yield gd(i.outlines), e = i.computed_data.bounding, n = i.computed_data.floor_datas.map(vd), o = i.computed_data.entrance ? yd(i.computed_data.entrance) : null;
|
|
4258
4258
|
return {
|
|
4259
4259
|
outlines: t,
|
|
@@ -4316,7 +4316,7 @@ function Ri(i, t, e = 4) {
|
|
|
4316
4316
|
return Math.floor(i * Math.pow(10, e)) === Math.floor(t * Math.pow(10, e));
|
|
4317
4317
|
}
|
|
4318
4318
|
function La(i, t) {
|
|
4319
|
-
return
|
|
4319
|
+
return Y(this, null, function* () {
|
|
4320
4320
|
yield new Promise((e, n) => {
|
|
4321
4321
|
i.changeMode(...t).catch((o) => n(o)), i.once("initAnimationEnded", () => {
|
|
4322
4322
|
const o = i.getCurrentState(), s = t[0];
|
|
@@ -4341,7 +4341,7 @@ function ao(i, t) {
|
|
|
4341
4341
|
return !(!Ri(e, s, 2) || !Ri(n, r, 2) || o !== a);
|
|
4342
4342
|
}
|
|
4343
4343
|
function Sa(i, t, e = !0) {
|
|
4344
|
-
return
|
|
4344
|
+
return Y(this, null, function* () {
|
|
4345
4345
|
if (ao(i, t) === !0)
|
|
4346
4346
|
return;
|
|
4347
4347
|
const o = i.getCurrentState();
|
|
@@ -4405,13 +4405,13 @@ class kd extends Gt {
|
|
|
4405
4405
|
var e, n;
|
|
4406
4406
|
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");
|
|
4407
4407
|
});
|
|
4408
|
-
m(this, "show", (...n) =>
|
|
4408
|
+
m(this, "show", (...n) => Y(this, [...n], function* (e = {}) {
|
|
4409
4409
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
4410
4410
|
return;
|
|
4411
4411
|
const o = e.userAction !== void 0 ? e.userAction : !0;
|
|
4412
4412
|
this.updateState({ visible: !0 }, o), this._show(e);
|
|
4413
4413
|
}));
|
|
4414
|
-
m(this, "hide", (...n) =>
|
|
4414
|
+
m(this, "hide", (...n) => Y(this, [...n], function* (e = {}) {
|
|
4415
4415
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
4416
4416
|
}));
|
|
4417
4417
|
m(this, "updateSize", () => {
|
|
@@ -4429,7 +4429,7 @@ class kd extends Gt {
|
|
|
4429
4429
|
const { userAction: n } = e;
|
|
4430
4430
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n }));
|
|
4431
4431
|
});
|
|
4432
|
-
m(this, "_show", (e) =>
|
|
4432
|
+
m(this, "_show", (e) => Y(this, null, function* () {
|
|
4433
4433
|
var r;
|
|
4434
4434
|
if (!this.state.enabled)
|
|
4435
4435
|
return;
|
|
@@ -4444,7 +4444,7 @@ class kd extends Gt {
|
|
|
4444
4444
|
immediately: !1,
|
|
4445
4445
|
isAutoShow: !1,
|
|
4446
4446
|
userAction: !0
|
|
4447
|
-
}, o = G(G({}, n), e), s = () =>
|
|
4447
|
+
}, o = G(G({}, n), e), s = () => Y(this, null, function* () {
|
|
4448
4448
|
this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
|
|
4449
4449
|
let a = !1, l;
|
|
4450
4450
|
this.showRejection = (f) => {
|
|
@@ -4563,7 +4563,7 @@ class kd extends Gt {
|
|
|
4563
4563
|
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
4564
4564
|
}
|
|
4565
4565
|
load(e, n, o = !0) {
|
|
4566
|
-
return
|
|
4566
|
+
return Y(this, null, function* () {
|
|
4567
4567
|
function s(u) {
|
|
4568
4568
|
return Object.prototype.hasOwnProperty.apply(u, ["version"]);
|
|
4569
4569
|
}
|
|
@@ -4601,7 +4601,7 @@ class kd extends Gt {
|
|
|
4601
4601
|
this.updateState({ config: e }, n), this.render();
|
|
4602
4602
|
}
|
|
4603
4603
|
formatData(e) {
|
|
4604
|
-
return
|
|
4604
|
+
return Y(this, null, function* () {
|
|
4605
4605
|
return yield Ct(e.data);
|
|
4606
4606
|
});
|
|
4607
4607
|
}
|
|
@@ -4677,13 +4677,13 @@ class Ld extends Gt {
|
|
|
4677
4677
|
var e, n;
|
|
4678
4678
|
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");
|
|
4679
4679
|
});
|
|
4680
|
-
m(this, "show", (...n) =>
|
|
4680
|
+
m(this, "show", (...n) => Y(this, [...n], function* (e = {}) {
|
|
4681
4681
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
4682
4682
|
return;
|
|
4683
4683
|
const o = e.userAction !== void 0 ? e.userAction : !0;
|
|
4684
4684
|
this.updateState({ visible: !0 }, o), this._show(e);
|
|
4685
4685
|
}));
|
|
4686
|
-
m(this, "hide", (...n) =>
|
|
4686
|
+
m(this, "hide", (...n) => Y(this, [...n], function* (e = {}) {
|
|
4687
4687
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
4688
4688
|
}));
|
|
4689
4689
|
m(this, "updateSize", () => {
|
|
@@ -4701,7 +4701,7 @@ class Ld extends Gt {
|
|
|
4701
4701
|
const { userAction: n } = e;
|
|
4702
4702
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n }));
|
|
4703
4703
|
});
|
|
4704
|
-
m(this, "_show", (e) =>
|
|
4704
|
+
m(this, "_show", (e) => Y(this, null, function* () {
|
|
4705
4705
|
var r;
|
|
4706
4706
|
if (!this.state.enabled)
|
|
4707
4707
|
return;
|
|
@@ -4716,7 +4716,7 @@ class Ld extends Gt {
|
|
|
4716
4716
|
immediately: !1,
|
|
4717
4717
|
isAutoShow: !1,
|
|
4718
4718
|
userAction: !0
|
|
4719
|
-
}, o = G(G({}, n), e), s = () =>
|
|
4719
|
+
}, o = G(G({}, n), e), s = () => Y(this, null, function* () {
|
|
4720
4720
|
this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
|
|
4721
4721
|
let a = !1, l;
|
|
4722
4722
|
this.showRejection = (f) => {
|
|
@@ -4833,7 +4833,7 @@ class Ld extends Gt {
|
|
|
4833
4833
|
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
4834
4834
|
}
|
|
4835
4835
|
load(e, n, o = !0) {
|
|
4836
|
-
return
|
|
4836
|
+
return Y(this, null, function* () {
|
|
4837
4837
|
function s(u) {
|
|
4838
4838
|
return Object.prototype.hasOwnProperty.apply(u, ["version"]);
|
|
4839
4839
|
}
|
|
@@ -4878,7 +4878,7 @@ class Ld extends Gt {
|
|
|
4878
4878
|
this.container.style.left = s * 100 + "%", this.container.style.top = r * 100 + "%";
|
|
4879
4879
|
}
|
|
4880
4880
|
formatData(e) {
|
|
4881
|
-
return
|
|
4881
|
+
return Y(this, null, function* () {
|
|
4882
4882
|
return yield Ct(e.data);
|
|
4883
4883
|
});
|
|
4884
4884
|
}
|
|
@@ -5018,7 +5018,7 @@ class Sd extends Gt {
|
|
|
5018
5018
|
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
5019
5019
|
}
|
|
5020
5020
|
load(e, n, o = !0) {
|
|
5021
|
-
return
|
|
5021
|
+
return Y(this, null, function* () {
|
|
5022
5022
|
function s(u) {
|
|
5023
5023
|
return Object.prototype.hasOwnProperty.apply(u, ["version"]);
|
|
5024
5024
|
}
|
|
@@ -5041,7 +5041,7 @@ class Sd extends Gt {
|
|
|
5041
5041
|
return e.appendChild(this.container), this.render(), this;
|
|
5042
5042
|
}
|
|
5043
5043
|
show() {
|
|
5044
|
-
return
|
|
5044
|
+
return Y(this, arguments, function* (e = {}) {
|
|
5045
5045
|
if (this.state.visible)
|
|
5046
5046
|
return;
|
|
5047
5047
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5049,7 +5049,7 @@ class Sd extends Gt {
|
|
|
5049
5049
|
});
|
|
5050
5050
|
}
|
|
5051
5051
|
hide() {
|
|
5052
|
-
return
|
|
5052
|
+
return Y(this, arguments, function* (e = {}) {
|
|
5053
5053
|
if (this.isHiddenByHideFunc = !0, !this.state.visible)
|
|
5054
5054
|
return;
|
|
5055
5055
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5083,12 +5083,12 @@ class Sd extends Gt {
|
|
|
5083
5083
|
this.updateState({ config: e }, n), this.render();
|
|
5084
5084
|
}
|
|
5085
5085
|
formatData(e) {
|
|
5086
|
-
return
|
|
5086
|
+
return Y(this, null, function* () {
|
|
5087
5087
|
return yield Ct(e.data);
|
|
5088
5088
|
});
|
|
5089
5089
|
}
|
|
5090
5090
|
_show(e) {
|
|
5091
|
-
return
|
|
5091
|
+
return Y(this, null, function* () {
|
|
5092
5092
|
if (!this.state.enabled)
|
|
5093
5093
|
return;
|
|
5094
5094
|
this.isHiddenByHideFunc = !1;
|
|
@@ -5099,7 +5099,7 @@ class Sd extends Gt {
|
|
|
5099
5099
|
});
|
|
5100
5100
|
}
|
|
5101
5101
|
_hide(e) {
|
|
5102
|
-
return
|
|
5102
|
+
return Y(this, null, function* () {
|
|
5103
5103
|
if (!this.state.enabled)
|
|
5104
5104
|
return;
|
|
5105
5105
|
const { userAction: n } = e;
|
|
@@ -5177,8 +5177,8 @@ function Td(i) {
|
|
|
5177
5177
|
p(o, [s]) {
|
|
5178
5178
|
s & 1 && M(n, "background-image", "url(" + (o[0] || wt) + ")"), s & 2 && M(n, "transform", o[1]), s & 4 && M(e, "transform", o[2]);
|
|
5179
5179
|
},
|
|
5180
|
-
i:
|
|
5181
|
-
o:
|
|
5180
|
+
i: U,
|
|
5181
|
+
o: U,
|
|
5182
5182
|
d(o) {
|
|
5183
5183
|
o && B(t);
|
|
5184
5184
|
}
|
|
@@ -5288,8 +5288,8 @@ function Rd(i) {
|
|
|
5288
5288
|
p(r, [a]) {
|
|
5289
5289
|
a & 1 && (o = r[0], e = nt(e, a, s, 1, r, o, n, t, to, ss, null, os));
|
|
5290
5290
|
},
|
|
5291
|
-
i:
|
|
5292
|
-
o:
|
|
5291
|
+
i: U,
|
|
5292
|
+
o: U,
|
|
5293
5293
|
d(r) {
|
|
5294
5294
|
r && B(t);
|
|
5295
5295
|
for (let a = 0; a < e.length; a += 1)
|
|
@@ -5635,7 +5635,7 @@ class Ud extends Gt {
|
|
|
5635
5635
|
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);
|
|
5636
5636
|
}
|
|
5637
5637
|
load(e, n, o = !0) {
|
|
5638
|
-
return
|
|
5638
|
+
return Y(this, null, function* () {
|
|
5639
5639
|
function s(c) {
|
|
5640
5640
|
return Object.prototype.hasOwnProperty.apply(c, ["version"]);
|
|
5641
5641
|
}
|
|
@@ -5644,7 +5644,7 @@ class Ud extends Gt {
|
|
|
5644
5644
|
});
|
|
5645
5645
|
}
|
|
5646
5646
|
show() {
|
|
5647
|
-
return
|
|
5647
|
+
return Y(this, arguments, function* (e = {}) {
|
|
5648
5648
|
if (this.state.visible)
|
|
5649
5649
|
return;
|
|
5650
5650
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5652,7 +5652,7 @@ class Ud extends Gt {
|
|
|
5652
5652
|
});
|
|
5653
5653
|
}
|
|
5654
5654
|
hide() {
|
|
5655
|
-
return
|
|
5655
|
+
return Y(this, arguments, function* (e = {}) {
|
|
5656
5656
|
if (!this.state.visible)
|
|
5657
5657
|
return;
|
|
5658
5658
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5692,7 +5692,7 @@ class Ud extends Gt {
|
|
|
5692
5692
|
!this.data || (this.extraObjects = wd(e, this.five, this.data), this.render());
|
|
5693
5693
|
}
|
|
5694
5694
|
formatData(e) {
|
|
5695
|
-
return
|
|
5695
|
+
return Y(this, null, function* () {
|
|
5696
5696
|
return yield Ct(e.data);
|
|
5697
5697
|
});
|
|
5698
5698
|
}
|
|
@@ -5854,7 +5854,7 @@ function za(i, t) {
|
|
|
5854
5854
|
}
|
|
5855
5855
|
const lv = (i, t) => {
|
|
5856
5856
|
var u;
|
|
5857
|
-
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 = (d) =>
|
|
5857
|
+
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 = (d) => Y(void 0, null, function* () {
|
|
5858
5858
|
var X;
|
|
5859
5859
|
const f = (d == null ? void 0 : d.fbx_url) || e, h = (X = d == null ? void 0 : d.north_rad) != null ? X : n;
|
|
5860
5860
|
if (typeof h != "number")
|
|
@@ -5908,7 +5908,7 @@ function Vd(i, t) {
|
|
|
5908
5908
|
}
|
|
5909
5909
|
const Zd = ({ x: i, y: t, z: e }) => new ee(i, t, e), cv = (i, t) => {
|
|
5910
5910
|
var A, g, v;
|
|
5911
|
-
const e = {}, n = (A = t.animationEnabled) != null ? A : !0, o = (g = t.position) != null ? g : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (y) =>
|
|
5911
|
+
const e = {}, n = (A = t.animationEnabled) != null ? A : !0, o = (g = t.position) != null ? g : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (y) => Y(void 0, null, function* () {
|
|
5912
5912
|
var N, W, X, L, x, H, O, F;
|
|
5913
5913
|
const w = (N = y == null ? void 0 : y.position) != null ? N : o;
|
|
5914
5914
|
if (!w)
|
|
@@ -6038,7 +6038,7 @@ const Hi = (i, t, e) => {
|
|
|
6038
6038
|
const n = Math.PI, o = n * 2;
|
|
6039
6039
|
return i = cs(i), t = cs(t), e === st.Anticlockwise && i < t && (i += o), e === st.Clockwise && t < i && (t += o), e === st.Loop && t - i > n ? Hi(i, t, st.Anticlockwise) : e === st.Loop && i - t > n ? Hi(i, t, st.Clockwise) : { from: i, to: t };
|
|
6040
6040
|
}, uv = (i) => {
|
|
6041
|
-
const t = {}, e = (l, c, ...u) =>
|
|
6041
|
+
const t = {}, e = (l, c, ...u) => Y(void 0, [l, c, ...u], function* (s, r, a = { preload: !0 }) {
|
|
6042
6042
|
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((d, f) => {
|
|
6043
6043
|
const h = s.panoIndex !== void 0 ? s.panoIndex : i.panoIndex;
|
|
6044
6044
|
h !== void 0 ? i.moveToPano(
|
|
@@ -6066,7 +6066,7 @@ const Hi = (i, t, e) => {
|
|
|
6066
6066
|
};
|
|
6067
6067
|
return {
|
|
6068
6068
|
move: e,
|
|
6069
|
-
rotate: (l, c, ...u) =>
|
|
6069
|
+
rotate: (l, c, ...u) => Y(void 0, [l, c, ...u], function* (s, r, a = {}) {
|
|
6070
6070
|
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== je.Mode.Panorama && (yield i.changeMode(je.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((h, p) => {
|
|
6071
6071
|
if (!s.panoIndex) {
|
|
6072
6072
|
h(!0);
|
|
@@ -6320,7 +6320,7 @@ const sf = `<style type="text/css">
|
|
|
6320
6320
|
}
|
|
6321
6321
|
}
|
|
6322
6322
|
return e.loaded = !0, !0;
|
|
6323
|
-
}, l = (A, g, v) =>
|
|
6323
|
+
}, l = (A, g, v) => Y(void 0, null, function* () {
|
|
6324
6324
|
const y = A || t.roomInfo, w = g || t.roomRules;
|
|
6325
6325
|
if (!y || !w)
|
|
6326
6326
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
@@ -6412,8 +6412,8 @@ const sf = `<style type="text/css">
|
|
|
6412
6412
|
X.style.display = "none";
|
|
6413
6413
|
continue;
|
|
6414
6414
|
}
|
|
6415
|
-
const
|
|
6416
|
-
if (x.clone().sub(x.clone().sub(L).divide(new ee(2, 2, 2))).distanceTo(E) /
|
|
6415
|
+
const J = L.distanceTo(x);
|
|
6416
|
+
if (x.clone().sub(x.clone().sub(L).divide(new ee(2, 2, 2))).distanceTo(E) / J > 8) {
|
|
6417
6417
|
X.style.display = "none";
|
|
6418
6418
|
continue;
|
|
6419
6419
|
}
|
|
@@ -6549,8 +6549,8 @@ function df(i) {
|
|
|
6549
6549
|
p(g, [v]) {
|
|
6550
6550
|
p === (p = h(g)) && A ? A.p(g, v) : (A.d(1), A = p(g), A && (A.c(), A.m(t, e))), v & 1 && s !== (s = g[0].labelElement + "") && ke(r, s), v & 1 && l !== (l = `${g[0].labelOffset}%`) && M(n, "left", l), v & 1 && c !== (c = `${g[0].width}px`) && M(t, "width", c), v & 1 && u !== (u = `${g[0].left}px`) && M(t, "left", u), v & 1 && d !== (d = `${g[0].top}px`) && M(t, "top", d), v & 1 && f !== (f = `rotate(${g[0].rotateDeg}deg)`) && M(t, "transform", f), v & 5 && M(t, "display", g[0].visible && g[2] ? "block" : "none");
|
|
6551
6551
|
},
|
|
6552
|
-
i:
|
|
6553
|
-
o:
|
|
6552
|
+
i: U,
|
|
6553
|
+
o: U,
|
|
6554
6554
|
d(g) {
|
|
6555
6555
|
g && B(t), A.d(), a();
|
|
6556
6556
|
}
|
|
@@ -6709,7 +6709,7 @@ function pf(i, t, e) {
|
|
|
6709
6709
|
return L - x;
|
|
6710
6710
|
}), N = E.lines.map((W) => {
|
|
6711
6711
|
var de, me;
|
|
6712
|
-
const X = W.start, L = W.end, { startLeft: x, startTop: H, distance: O, deg: F, visible:
|
|
6712
|
+
const X = W.start, L = W.end, { startLeft: x, startTop: H, distance: O, deg: F, visible: J, labelOffset: _, ruleLength: V } = d(new ee(X[0], -X[1], -X[2]), new ee(L[0], -L[1], -L[2]), S), ue = [];
|
|
6713
6713
|
return W.children && ((de = W.children) == null ? void 0 : de.length) > 0 && ((me = W.children) == null || me.forEach((Pe) => {
|
|
6714
6714
|
const ze = Pe.start, Oe = Pe.end, { distance: ae } = u(new ee(ze[0], -ze[1], -ze[2]), new ee(Oe[0], -Oe[1], -Oe[2]));
|
|
6715
6715
|
ue.push({ width: ae, state: Pe.state });
|
|
@@ -6721,7 +6721,7 @@ function pf(i, t, e) {
|
|
|
6721
6721
|
state: W.state,
|
|
6722
6722
|
children: ue,
|
|
6723
6723
|
labelOffset: _,
|
|
6724
|
-
visible:
|
|
6724
|
+
visible: J,
|
|
6725
6725
|
labelElement: s.distanceText(V)
|
|
6726
6726
|
};
|
|
6727
6727
|
});
|
|
@@ -6758,13 +6758,13 @@ class Af {
|
|
|
6758
6758
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
6759
6759
|
"style",
|
|
6760
6760
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
6761
|
-
), e && (e.data && this.load(e.data), this.state.options = G(G({}, 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", () =>
|
|
6761
|
+
), e && (e.data && this.load(e.data), this.state.options = G(G({}, 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", () => Y(this, null, function* () {
|
|
6762
6762
|
var s, r;
|
|
6763
6763
|
(r = (s = this.five.getElement()) == null ? void 0 : s.parentNode) == null || r.append(this.container);
|
|
6764
6764
|
})), this.five.once("dispose", () => this.dispose());
|
|
6765
6765
|
}
|
|
6766
6766
|
load(t) {
|
|
6767
|
-
return
|
|
6767
|
+
return Y(this, null, function* () {
|
|
6768
6768
|
if (!this.five.work)
|
|
6769
6769
|
return;
|
|
6770
6770
|
const e = t.data;
|
|
@@ -6780,7 +6780,7 @@ class Af {
|
|
|
6780
6780
|
return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
|
|
6781
6781
|
}
|
|
6782
6782
|
render() {
|
|
6783
|
-
return
|
|
6783
|
+
return Y(this, null, function* () {
|
|
6784
6784
|
var t;
|
|
6785
6785
|
if (this.state.enabled) {
|
|
6786
6786
|
if (!this.panoRulerProData || !this.container)
|
|
@@ -6824,7 +6824,7 @@ function bf() {
|
|
|
6824
6824
|
}
|
|
6825
6825
|
const yf = new k.TextureLoader();
|
|
6826
6826
|
function gs(i) {
|
|
6827
|
-
return
|
|
6827
|
+
return Y(this, null, function* () {
|
|
6828
6828
|
return new Promise((t, e) => {
|
|
6829
6829
|
yf.load(i, t, void 0, e);
|
|
6830
6830
|
}).then((t) => (t.encoding = k.sRGBEncoding, t));
|
|
@@ -6967,7 +6967,7 @@ class wf extends Gt {
|
|
|
6967
6967
|
}), 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();
|
|
6968
6968
|
}
|
|
6969
6969
|
load(e, n, o = !0) {
|
|
6970
|
-
return
|
|
6970
|
+
return Y(this, null, function* () {
|
|
6971
6971
|
const s = yield this.formatData(e);
|
|
6972
6972
|
JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = G({}, s), this.init(), n && this.setState(n, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
|
|
6973
6973
|
});
|
|
@@ -6976,7 +6976,7 @@ class wf extends Gt {
|
|
|
6976
6976
|
return e.version && e.data ? Promise.resolve(e.data) : Promise.resolve(e);
|
|
6977
6977
|
}
|
|
6978
6978
|
init() {
|
|
6979
|
-
return
|
|
6979
|
+
return Y(this, null, function* () {
|
|
6980
6980
|
var o, s, r, a;
|
|
6981
6981
|
const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
|
|
6982
6982
|
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));
|
|
@@ -6985,7 +6985,7 @@ class wf extends Gt {
|
|
|
6985
6985
|
});
|
|
6986
6986
|
}
|
|
6987
6987
|
loadCompassMesh() {
|
|
6988
|
-
return
|
|
6988
|
+
return Y(this, null, function* () {
|
|
6989
6989
|
const e = this.state.config.compassImageUrl, n = yield gs(e), o = new k.CircleGeometry(0.7, 32), s = new k.MeshBasicMaterial({
|
|
6990
6990
|
map: n,
|
|
6991
6991
|
transparent: !0,
|
|
@@ -6996,7 +6996,7 @@ class wf extends Gt {
|
|
|
6996
6996
|
});
|
|
6997
6997
|
}
|
|
6998
6998
|
loadEntryDoorMesh() {
|
|
6999
|
-
return
|
|
6999
|
+
return Y(this, null, function* () {
|
|
7000
7000
|
const e = this.state.config.entryDoorImageUrl, n = yield gs(e), o = new k.PlaneGeometry(0.2, 0.16), s = new k.MeshBasicMaterial({
|
|
7001
7001
|
map: n,
|
|
7002
7002
|
transparent: !0,
|
|
@@ -8897,8 +8897,8 @@ function bh(i) {
|
|
|
8897
8897
|
n.length = e.length;
|
|
8898
8898
|
}
|
|
8899
8899
|
},
|
|
8900
|
-
i:
|
|
8901
|
-
o:
|
|
8900
|
+
i: U,
|
|
8901
|
+
o: U,
|
|
8902
8902
|
d(o) {
|
|
8903
8903
|
ct(n, o), o && B(t);
|
|
8904
8904
|
}
|
|
@@ -8933,8 +8933,8 @@ function Eh(i) {
|
|
|
8933
8933
|
p(g, [v]) {
|
|
8934
8934
|
v & 394 && M(e, "transform", "translate(" + g[7] / 2 * g[3] * 3 + "px, " + g[8] / 2 * (g[1] ? -1 : 1) * g[3] * 3 + "px) scale(" + 1 / g[3] + ")"), v & 16 && M(s, "width", g[4] + "rem"), v & 4 && (f.innerHTML = g[2]), v & 8 && M(d, "transform", "scale(" + g[3] * 3 + ")"), v & 1 && h !== (h = "PanoSpatialTagPlugin__" + g[0]) && b(t, "id", h), v & 32 && M(t, "height", 20 * g[5] + "rem"), v & 2 && te(t, "PanoSpatialTagPlugin__tag-upside-down", g[1]), v & 1024 && te(t, "PanoSpatialTagPlugin__tag-show", g[10]), v & 1088 && te(t, "PanoSpatialTagPlugin__tag-hide", g[10] === !1 || g[6]);
|
|
8935
8935
|
},
|
|
8936
|
-
i:
|
|
8937
|
-
o:
|
|
8936
|
+
i: U,
|
|
8937
|
+
o: U,
|
|
8938
8938
|
d(g) {
|
|
8939
8939
|
g && B(t), i[16](null), p = !1, A();
|
|
8940
8940
|
}
|
|
@@ -9395,12 +9395,12 @@ const Ei = 1e-3, Ds = 0.01, zh = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9395
9395
|
i.once("renderFrame", P);
|
|
9396
9396
|
}, F = () => {
|
|
9397
9397
|
e || (e = i.getElement().parentElement), e && e.appendChild(f), A.forbidden = !1, n = i.model.bounding.getCenter(new k.Vector3()).y, C(), i.on("panoWillArrive", w), i.on("panoArrived", y), i.on("modeChange", E), i.on("cameraUpdate", v);
|
|
9398
|
-
},
|
|
9398
|
+
}, J = () => {
|
|
9399
9399
|
p = null, d.disposeAll(), g.$destroy(), A.tags.forEach((ae) => {
|
|
9400
9400
|
ae.app.$destroy(), ae = null;
|
|
9401
|
-
}), A.origins = [], A.tags = [], i.off("modelLoaded", F), i.off("renderFrame", P), i.off("panoWillArrive", w), i.off("panoArrived", y), i.off("modeChange", E), i.off("cameraUpdate", v), i.off("dispose",
|
|
9401
|
+
}), A.origins = [], A.tags = [], i.off("modelLoaded", F), i.off("renderFrame", P), i.off("panoWillArrive", w), i.off("panoArrived", y), i.off("modeChange", E), i.off("cameraUpdate", v), i.off("dispose", J), window.removeEventListener("resize", O, !1);
|
|
9402
9402
|
};
|
|
9403
|
-
return window.addEventListener("resize", O, !1), (Oe = i == null ? void 0 : i.model) != null && Oe.loaded ? F() : i.once("modelLoaded", F), i.on("dispose",
|
|
9403
|
+
return window.addEventListener("resize", O, !1), (Oe = i == null ? void 0 : i.model) != null && Oe.loaded ? F() : i.once("modelLoaded", F), i.on("dispose", J), {
|
|
9404
9404
|
load: D,
|
|
9405
9405
|
setIntersectObjects: S,
|
|
9406
9406
|
unfoldAll: X,
|
|
@@ -9410,7 +9410,7 @@ const Ei = 1e-3, Ds = 0.01, zh = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9410
9410
|
enable: N,
|
|
9411
9411
|
disable: W,
|
|
9412
9412
|
hooks: h,
|
|
9413
|
-
dispose:
|
|
9413
|
+
dispose: J
|
|
9414
9414
|
};
|
|
9415
9415
|
};
|
|
9416
9416
|
var Yt = /* @__PURE__ */ ((i) => (i.SMALL = "small", i.MIDLLE = "middle", i.LARGE = "large", i.EXTRA_LARGE = "x-large", i))(Yt || {});
|
|
@@ -9431,8 +9431,8 @@ function Mh(i) {
|
|
|
9431
9431
|
p(d, [f]) {
|
|
9432
9432
|
f & 1 && o !== (o = (d[0].name.length > 6 ? `${d[0].name.slice(0, 6)}...` : d[0].name) + "") && ke(s, o), f & 1 && M(e, "top", `-${d[0].strokeLength + 26}px`), f & 1 && M(a, "height", `${d[0].strokeLength}px`), f & 1 && l !== (l = Qe(Ze("item-label-item", { visible: d[0].visible })) + " svelte-1ir3cyd") && b(t, "class", l), f & 1 && M(t, "z-index", d[0].zIndex), f & 1 && M(t, "transform", d[0].transform);
|
|
9433
9433
|
},
|
|
9434
|
-
i:
|
|
9435
|
-
o:
|
|
9434
|
+
i: U,
|
|
9435
|
+
o: U,
|
|
9436
9436
|
d(d) {
|
|
9437
9437
|
d && B(t), c = !1, u();
|
|
9438
9438
|
}
|
|
@@ -9547,13 +9547,13 @@ function Oh(i, t, e) {
|
|
|
9547
9547
|
const { Raycaster: n, Vector3: o } = k;
|
|
9548
9548
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, d = null, f, h, p = [], A = !0;
|
|
9549
9549
|
const g = (L, x) => {
|
|
9550
|
-
const H = new n(), O = L.camera.position.clone(), F = new o().fromArray(x.modelPosition),
|
|
9550
|
+
const H = new n(), O = L.camera.position.clone(), F = new o().fromArray(x.modelPosition), J = F.distanceTo(O);
|
|
9551
9551
|
H.set(O.clone(), F.clone().sub(O).normalize());
|
|
9552
9552
|
const [_] = L.model.intersectRaycaster(H);
|
|
9553
|
-
return !(_ && _.distance + 1 <
|
|
9553
|
+
return !(_ && _.distance + 1 < J);
|
|
9554
9554
|
}, v = (L, x) => {
|
|
9555
|
-
const H = new o(x.modelPosition[0], x.modelPosition[1], x.modelPosition[2]), O = L.project2d(H), F = O == null ? void 0 : O.x,
|
|
9556
|
-
return [F,
|
|
9555
|
+
const H = new o(x.modelPosition[0], x.modelPosition[1], x.modelPosition[2]), O = L.project2d(H), F = O == null ? void 0 : O.x, J = O == null ? void 0 : O.y;
|
|
9556
|
+
return [F, J];
|
|
9557
9557
|
}, y = (L) => `translate(${L[0]}px, ${L[1]}px)`, w = (L, x) => p.length === 0 ? !1 : !!p.find((O) => L[0] >= O[0] - x && L[0] <= O[0] + x || L[1] >= O[1] - zs && L[1] <= O[1] + zs);
|
|
9558
9558
|
function E(L, x) {
|
|
9559
9559
|
switch (x) {
|
|
@@ -9569,11 +9569,11 @@ function Oh(i, t, e) {
|
|
|
9569
9569
|
}
|
|
9570
9570
|
const P = (L, x) => {
|
|
9571
9571
|
const H = x.map((F) => {
|
|
9572
|
-
const
|
|
9572
|
+
const J = v(L, F), _ = F.name.length * Hh, V = E(F.modelPosition[1], c), de = (r ? g(L, F) : !0) && !w([J[0], J[1] + V], _);
|
|
9573
9573
|
if (!de)
|
|
9574
9574
|
return he(G({}, F), { visible: de });
|
|
9575
|
-
p.push(
|
|
9576
|
-
const me = y(
|
|
9575
|
+
p.push(J);
|
|
9576
|
+
const me = y(J);
|
|
9577
9577
|
return he(G({}, F), {
|
|
9578
9578
|
visible: de,
|
|
9579
9579
|
transform: me,
|
|
@@ -9582,10 +9582,10 @@ function Oh(i, t, e) {
|
|
|
9582
9582
|
}), O = H.filter(({ visible: F }) => F).map((F) => ({
|
|
9583
9583
|
itemLabelItem: F,
|
|
9584
9584
|
distance: new o(F.modelPosition[0], F.modelPosition[1], F.modelPosition[2]).clone().distanceTo(L.camera.position)
|
|
9585
|
-
})).sort((F,
|
|
9585
|
+
})).sort((F, J) => F.distance - J.distance);
|
|
9586
9586
|
return H.map((F) => {
|
|
9587
|
-
const
|
|
9588
|
-
return
|
|
9587
|
+
const J = O.findIndex((_) => _.itemLabelItem.id === F.id);
|
|
9588
|
+
return J !== void 0 ? he(G({}, F), { zIndex: J * 10 }) : F;
|
|
9589
9589
|
});
|
|
9590
9590
|
}, C = () => {
|
|
9591
9591
|
p = [], e(1, d = P(s, d));
|
|
@@ -9848,7 +9848,7 @@ const vv = (i, { videoElement: t }) => {
|
|
|
9848
9848
|
} else
|
|
9849
9849
|
E(new Error("Video download Error: " + P.status));
|
|
9850
9850
|
}, P.onerror = (C) => E(C), P.open("GET", v), P.responseType = "blob", P.send();
|
|
9851
|
-
}), f = (v, y) =>
|
|
9851
|
+
}), f = (v, y) => Y(void 0, null, function* () {
|
|
9852
9852
|
const { video_src: w, video_poster_src: E, points: P } = v;
|
|
9853
9853
|
e.videoSource = w, e.rectPoints = Nh(P).map((C) => C.map(({ x: T, y: D, z: S }) => new k.Vector3(T, D, S))), e.imageTexture = u(E), y && (e.videoElement = y), e.videoTexture = yield d(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
|
|
9854
9854
|
}), h = (v) => {
|
|
@@ -9920,7 +9920,7 @@ function Xh(i) {
|
|
|
9920
9920
|
m(e, n) {
|
|
9921
9921
|
j(e, t, n), i[6](t);
|
|
9922
9922
|
},
|
|
9923
|
-
p:
|
|
9923
|
+
p: U,
|
|
9924
9924
|
d(e) {
|
|
9925
9925
|
e && B(t), i[6](null);
|
|
9926
9926
|
}
|
|
@@ -9963,8 +9963,8 @@ function Yh(i) {
|
|
|
9963
9963
|
"item-label-item__custom": Boolean(typeof p[0].render == "function")
|
|
9964
9964
|
})) + " svelte-gduhqw") && b(e, "class", o), A & 1 && M(e, "bottom", `${p[0].strokeLength}px`), A & 2 && a !== (a = Qe(Ze("item-label-item__bar", { anchor: p[1] })) + " svelte-gduhqw") && b(r, "class", a), A & 1 && M(r, "height", `${p[0].strokeLength}px`), A & 1 && l !== (l = Qe(Ze("item-label-item", { fold: p[0].isFold })) + " svelte-gduhqw") && b(t, "class", l), A & 1 && M(t, "z-index", p[0].zIndex), A & 1 && M(t, "transform", p[0].transform);
|
|
9965
9965
|
},
|
|
9966
|
-
i:
|
|
9967
|
-
o:
|
|
9966
|
+
i: U,
|
|
9967
|
+
o: U,
|
|
9968
9968
|
d(p) {
|
|
9969
9969
|
p && B(t), h.d(), c = !1, u();
|
|
9970
9970
|
}
|
|
@@ -10157,13 +10157,13 @@ function tm(i, t, e) {
|
|
|
10157
10157
|
const { Raycaster: n, Vector3: o } = k;
|
|
10158
10158
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, d = null, f = null, h = (s == null ? void 0 : s.currentMode) === je.Mode.Panorama, p, A, g = [], v = !0;
|
|
10159
10159
|
const y = (H, O) => {
|
|
10160
|
-
const F = H.camera.position.clone(),
|
|
10161
|
-
return u !== void 0 && H.state.mode === je.Mode.Panorama && _ > u ? !1 : Ms(H,
|
|
10160
|
+
const F = H.camera.position.clone(), J = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), _ = J.distanceTo(F);
|
|
10161
|
+
return u !== void 0 && H.state.mode === je.Mode.Panorama && _ > u ? !1 : Ms(H, J.clone().sub(F).normalize(), F, _);
|
|
10162
10162
|
}, w = (H) => {
|
|
10163
|
-
const { camera: O, model: F } = s, { x:
|
|
10163
|
+
const { camera: O, model: F } = s, { x: J, y: _, z: V } = H.clone().project(O), ue = (J + 1) / 2, de = (2 - (_ + 1)) / 2, ze = Math.abs(V) < 1 && [ue, de].every((Oe) => Oe < 1 && Oe >= 0);
|
|
10164
10164
|
return Boolean(ze);
|
|
10165
10165
|
}, E = (H, O) => {
|
|
10166
|
-
const F = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]),
|
|
10166
|
+
const F = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), J = H.project2d(F), _ = J == null ? void 0 : J.x, V = J == null ? void 0 : J.y;
|
|
10167
10167
|
return [_, V];
|
|
10168
10168
|
}, P = (H, O) => {
|
|
10169
10169
|
const F = O.map((_) => {
|
|
@@ -10181,12 +10181,12 @@ function tm(i, t, e) {
|
|
|
10181
10181
|
transform: ze,
|
|
10182
10182
|
strokeLength: ue
|
|
10183
10183
|
});
|
|
10184
|
-
}),
|
|
10184
|
+
}), J = F.filter(({ visible: _ }) => _).map((_) => ({
|
|
10185
10185
|
itemLabelItem: _,
|
|
10186
10186
|
distance: new o(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]).clone().distanceTo(H.camera.position)
|
|
10187
10187
|
})).sort((_, V) => _.distance - V.distance);
|
|
10188
10188
|
return F.map((_) => {
|
|
10189
|
-
const V =
|
|
10189
|
+
const V = J.findIndex((ue) => ue.itemLabelItem.id === _.id);
|
|
10190
10190
|
return V !== void 0 ? he(G({}, _), { zIndex: V * 10 }) : _;
|
|
10191
10191
|
});
|
|
10192
10192
|
}, C = () => {
|
|
@@ -10211,20 +10211,20 @@ function tm(i, t, e) {
|
|
|
10211
10211
|
(u === void 0 || de <= u || s.state.mode !== je.Mode.Panorama) && F.push({ panoIndex: ue, obVector: V, distance: de });
|
|
10212
10212
|
}
|
|
10213
10213
|
F = F.sort((_, V) => _.distance - V.distance);
|
|
10214
|
-
let
|
|
10214
|
+
let J;
|
|
10215
10215
|
for (let _ = 0; _ < F.length; _++) {
|
|
10216
10216
|
const { obVector: V, distance: ue, panoIndex: de } = F[_];
|
|
10217
10217
|
if (!Ms(s, H, V, ue)) {
|
|
10218
|
-
|
|
10218
|
+
J = de;
|
|
10219
10219
|
break;
|
|
10220
10220
|
}
|
|
10221
10221
|
}
|
|
10222
|
-
return typeof
|
|
10222
|
+
return typeof J == "number" ? O[J] : void 0;
|
|
10223
10223
|
}, L = (H) => {
|
|
10224
10224
|
if (s.state.mode === je.Mode.Panorama)
|
|
10225
10225
|
return;
|
|
10226
|
-
const O = s.work.observers, F = new o().fromArray(H.position),
|
|
10227
|
-
if (
|
|
10226
|
+
const O = s.work.observers, F = new o().fromArray(H.position), J = X(F, O);
|
|
10227
|
+
if (J && (H.observerIndex = J.panoIndex), typeof H.observerIndex == "number") {
|
|
10228
10228
|
const _ = O[H.observerIndex], V = F.clone().sub(_.position).normalize(), ue = {
|
|
10229
10229
|
longitude: Math.PI + Math.atan2(V.x, V.z),
|
|
10230
10230
|
latitude: Math.acos(V.y / V.length()) - Math.PI / 2
|
|
@@ -10429,8 +10429,8 @@ function am(i) {
|
|
|
10429
10429
|
p(c, [u]) {
|
|
10430
10430
|
u & 1 && r !== (r = Qe(Ze("plugin-DoorLabelPlugin-cnt", c[0].toward)) + " svelte-wpy7pz") && b(e, "class", r);
|
|
10431
10431
|
},
|
|
10432
|
-
i:
|
|
10433
|
-
o:
|
|
10432
|
+
i: U,
|
|
10433
|
+
o: U,
|
|
10434
10434
|
d(c) {
|
|
10435
10435
|
c && B(t), i[10](null), a = !1, l();
|
|
10436
10436
|
}
|
|
@@ -10783,7 +10783,7 @@ class Va extends Gt {
|
|
|
10783
10783
|
Object.assign(window, { [`__${Ja}_DEBUG__`]: this });
|
|
10784
10784
|
}
|
|
10785
10785
|
load(e, n, o = !0) {
|
|
10786
|
-
return
|
|
10786
|
+
return Y(this, null, function* () {
|
|
10787
10787
|
const s = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
10788
10788
|
this.hooks.emit("dataChange", r, s), this.data = r, this.linesGroup && this.five.scene.remove(this.linesGroup);
|
|
10789
10789
|
const a = this.getLinesGroup(r.routes);
|
|
@@ -10791,17 +10791,17 @@ class Va extends Gt {
|
|
|
10791
10791
|
});
|
|
10792
10792
|
}
|
|
10793
10793
|
formatData(e) {
|
|
10794
|
-
return
|
|
10794
|
+
return Y(this, null, function* () {
|
|
10795
10795
|
return typeof e == "object" && e !== null && e.version && e.data ? e.data : e;
|
|
10796
10796
|
});
|
|
10797
10797
|
}
|
|
10798
10798
|
show(e) {
|
|
10799
|
-
return
|
|
10799
|
+
return Y(this, null, function* () {
|
|
10800
10800
|
this.setState({ visible: !0 }, e);
|
|
10801
10801
|
});
|
|
10802
10802
|
}
|
|
10803
10803
|
hide(e) {
|
|
10804
|
-
return
|
|
10804
|
+
return Y(this, null, function* () {
|
|
10805
10805
|
this.setState({ visible: !1 }, e);
|
|
10806
10806
|
});
|
|
10807
10807
|
}
|
|
@@ -10854,7 +10854,7 @@ class Va extends Gt {
|
|
|
10854
10854
|
}), n;
|
|
10855
10855
|
}
|
|
10856
10856
|
waitFiveModelLoaded() {
|
|
10857
|
-
return
|
|
10857
|
+
return Y(this, null, function* () {
|
|
10858
10858
|
return new Promise((e) => {
|
|
10859
10859
|
if (this.five.model.loaded) {
|
|
10860
10860
|
e();
|
|
@@ -10881,7 +10881,7 @@ function Pm(i, t) {
|
|
|
10881
10881
|
const e = Gs(i), n = Gs(t);
|
|
10882
10882
|
return e.angleTo(n);
|
|
10883
10883
|
}
|
|
10884
|
-
const Im = (i) =>
|
|
10884
|
+
const Im = (i) => Y(void 0, null, function* () {
|
|
10885
10885
|
try {
|
|
10886
10886
|
i().then(() => {
|
|
10887
10887
|
}, () => {
|
|
@@ -10953,7 +10953,7 @@ class Ka extends Gt {
|
|
|
10953
10953
|
});
|
|
10954
10954
|
}
|
|
10955
10955
|
load(e, n, o) {
|
|
10956
|
-
return
|
|
10956
|
+
return Y(this, null, function* () {
|
|
10957
10957
|
var u, d, f, h, p;
|
|
10958
10958
|
if (this.state.disposed)
|
|
10959
10959
|
return Fs();
|
|
@@ -10994,12 +10994,12 @@ class Ka extends Gt {
|
|
|
10994
10994
|
this.setState({ playing: !1 }, e);
|
|
10995
10995
|
}
|
|
10996
10996
|
show(e) {
|
|
10997
|
-
return
|
|
10997
|
+
return Y(this, null, function* () {
|
|
10998
10998
|
this.setState({ visible: !0 }, e);
|
|
10999
10999
|
});
|
|
11000
11000
|
}
|
|
11001
11001
|
hide(e) {
|
|
11002
|
-
return
|
|
11002
|
+
return Y(this, null, function* () {
|
|
11003
11003
|
this.setState({ visible: !1 }, e);
|
|
11004
11004
|
});
|
|
11005
11005
|
}
|
|
@@ -11022,7 +11022,7 @@ class Ka extends Gt {
|
|
|
11022
11022
|
this.state = G(G({}, 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), qe(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 });
|
|
11023
11023
|
}
|
|
11024
11024
|
formatData(e) {
|
|
11025
|
-
return
|
|
11025
|
+
return Y(this, null, function* () {
|
|
11026
11026
|
this.five.work || (yield this.waitFiveLoaded());
|
|
11027
11027
|
const n = this.five.work.observers, o = (() => {
|
|
11028
11028
|
const s = e;
|
|
@@ -11079,7 +11079,7 @@ class Ka extends Gt {
|
|
|
11079
11079
|
), e ? this.handlePlay(n) : this.handlePause(n), this.state.playing = e;
|
|
11080
11080
|
}
|
|
11081
11081
|
handlePlay(e) {
|
|
11082
|
-
return
|
|
11082
|
+
return Y(this, null, function* () {
|
|
11083
11083
|
var h;
|
|
11084
11084
|
const { data: n, state: o, privateState: s, hooks: r } = this;
|
|
11085
11085
|
if (s.playing || !(n != null && n.keyframes) || (n == null ? void 0 : n.keyframes.length) === 0)
|
|
@@ -11089,7 +11089,7 @@ class Ka extends Gt {
|
|
|
11089
11089
|
const l = n.keyframes, c = this.getPauseData();
|
|
11090
11090
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (h = e == null ? void 0 : e.userAction) != null ? h : !0 });
|
|
11091
11091
|
let u = !1;
|
|
11092
|
-
const f = yield (() =>
|
|
11092
|
+
const f = yield (() => Y(this, null, function* () {
|
|
11093
11093
|
var p, A;
|
|
11094
11094
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
11095
11095
|
return e.playFromIndex;
|
|
@@ -11133,7 +11133,7 @@ class Ka extends Gt {
|
|
|
11133
11133
|
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 }));
|
|
11134
11134
|
}
|
|
11135
11135
|
playKeyframe(e, n) {
|
|
11136
|
-
return
|
|
11136
|
+
return Y(this, null, function* () {
|
|
11137
11137
|
var s;
|
|
11138
11138
|
const { privateState: o } = this;
|
|
11139
11139
|
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();
|
|
@@ -11148,7 +11148,7 @@ class Ka extends Gt {
|
|
|
11148
11148
|
};
|
|
11149
11149
|
}
|
|
11150
11150
|
getPlayPromise(e, n) {
|
|
11151
|
-
return
|
|
11151
|
+
return Y(this, null, function* () {
|
|
11152
11152
|
var s;
|
|
11153
11153
|
const o = e.data;
|
|
11154
11154
|
if (n.duration = (s = n == null ? void 0 : n.duration) != null ? s : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!o)
|
|
@@ -11180,7 +11180,7 @@ class Ka extends Gt {
|
|
|
11180
11180
|
});
|
|
11181
11181
|
}
|
|
11182
11182
|
actionPromiseQueue() {
|
|
11183
|
-
return
|
|
11183
|
+
return Y(this, null, function* () {
|
|
11184
11184
|
const { privateState: e } = this;
|
|
11185
11185
|
return new Promise((n, o) => {
|
|
11186
11186
|
if (e.currentPlayQueue.length === 0) {
|
|
@@ -11197,7 +11197,7 @@ class Ka extends Gt {
|
|
|
11197
11197
|
});
|
|
11198
11198
|
}
|
|
11199
11199
|
move(e, n) {
|
|
11200
|
-
return
|
|
11200
|
+
return Y(this, null, function* () {
|
|
11201
11201
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
11202
11202
|
yield this.changeMode(e);
|
|
11203
11203
|
else if (e.panoIndex !== this.five.panoIndex)
|
|
@@ -11207,7 +11207,7 @@ class Ka extends Gt {
|
|
|
11207
11207
|
});
|
|
11208
11208
|
}
|
|
11209
11209
|
rotate(e, n) {
|
|
11210
|
-
return
|
|
11210
|
+
return Y(this, null, function* () {
|
|
11211
11211
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
11212
11212
|
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
11213
11213
|
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
@@ -11216,7 +11216,7 @@ class Ka extends Gt {
|
|
|
11216
11216
|
});
|
|
11217
11217
|
}
|
|
11218
11218
|
updateCamera(e, n) {
|
|
11219
|
-
return
|
|
11219
|
+
return Y(this, null, function* () {
|
|
11220
11220
|
const { five: o, privateState: s, state: r } = this, a = (() => {
|
|
11221
11221
|
var f, h;
|
|
11222
11222
|
const u = (f = r.config) == null ? void 0 : f.speedConfig, d = (h = e.rotateSpeed) != null ? h : u == null ? void 0 : u.rotateSpeed;
|
|
@@ -11241,7 +11241,7 @@ class Ka extends Gt {
|
|
|
11241
11241
|
});
|
|
11242
11242
|
}
|
|
11243
11243
|
changePano(e, n) {
|
|
11244
|
-
return
|
|
11244
|
+
return Y(this, null, function* () {
|
|
11245
11245
|
const { five: o, privateState: s, state: r } = this;
|
|
11246
11246
|
if (typeof e.panoIndex != "number" || e.panoIndex === o.panoIndex)
|
|
11247
11247
|
return;
|
|
@@ -11293,7 +11293,7 @@ class Ka extends Gt {
|
|
|
11293
11293
|
return this.five.controller.cameraMotion.progress;
|
|
11294
11294
|
}
|
|
11295
11295
|
changeMode(e, n) {
|
|
11296
|
-
return
|
|
11296
|
+
return Y(this, null, function* () {
|
|
11297
11297
|
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, n), this.privateState.modeChanging = !1);
|
|
11298
11298
|
});
|
|
11299
11299
|
}
|
|
@@ -11333,7 +11333,7 @@ class Ka extends Gt {
|
|
|
11333
11333
|
n != null && n.warnLog && Sm();
|
|
11334
11334
|
}
|
|
11335
11335
|
waitFiveLoaded() {
|
|
11336
|
-
return
|
|
11336
|
+
return Y(this, null, function* () {
|
|
11337
11337
|
return new Promise((e) => {
|
|
11338
11338
|
if (this.five.work) {
|
|
11339
11339
|
e();
|
|
@@ -11424,8 +11424,8 @@ function Mm(i) {
|
|
|
11424
11424
|
p(n, [o]) {
|
|
11425
11425
|
n[8] ? e ? e.p(n, o) : (e = Ns(n), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
11426
11426
|
},
|
|
11427
|
-
i:
|
|
11428
|
-
o:
|
|
11427
|
+
i: U,
|
|
11428
|
+
o: U,
|
|
11429
11429
|
d(n) {
|
|
11430
11430
|
e && e.d(n), n && B(t);
|
|
11431
11431
|
}
|
|
@@ -11638,8 +11638,10 @@ function nn(i, t) {
|
|
|
11638
11638
|
if (!(e === void 0 && n === void 0))
|
|
11639
11639
|
return !(typeof n == "number" && n < i || typeof e == "number" && e > i);
|
|
11640
11640
|
}
|
|
11641
|
-
function Om(i
|
|
11642
|
-
|
|
11641
|
+
function Om(i) {
|
|
11642
|
+
return new Promise((t) => {
|
|
11643
|
+
i.model.loaded ? t() : i.once("modelLoaded", () => t());
|
|
11644
|
+
});
|
|
11643
11645
|
}
|
|
11644
11646
|
function Gm(i, t, e) {
|
|
11645
11647
|
const o = new k.Plane().setFromNormalAndCoplanarPoint(e, t), s = t.clone().sub(i).cross(new k.Vector3(0, 1, 0)).setLength(0.01), r = new k.Vector3(0, 0.01, 0);
|
|
@@ -11784,8 +11786,8 @@ function Um(i) {
|
|
|
11784
11786
|
p(r, [a]) {
|
|
11785
11787
|
a & 14 && (o = r[2], t = nt(t, a, s, 1, r, o, e, n.parentNode, to, Js, n, Us));
|
|
11786
11788
|
},
|
|
11787
|
-
i:
|
|
11788
|
-
o:
|
|
11789
|
+
i: U,
|
|
11790
|
+
o: U,
|
|
11789
11791
|
d(r) {
|
|
11790
11792
|
for (let a = 0; a < t.length; a += 1)
|
|
11791
11793
|
t[a].d(r);
|
|
@@ -12281,8 +12283,8 @@ function hp(i) {
|
|
|
12281
12283
|
var c, u;
|
|
12282
12284
|
(c = a[3]) != null && c.inputting ? n || (n = $s(), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null), (u = a[3]) != null && u.placeholder ? o ? o.p(a, l) : (o = er(a), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null);
|
|
12283
12285
|
},
|
|
12284
|
-
i:
|
|
12285
|
-
o:
|
|
12286
|
+
i: U,
|
|
12287
|
+
o: U,
|
|
12286
12288
|
d(a) {
|
|
12287
12289
|
n && n.d(a), a && B(t), o && o.d(a), a && B(e);
|
|
12288
12290
|
}
|
|
@@ -12300,8 +12302,8 @@ function mp(i) {
|
|
|
12300
12302
|
p(e, n) {
|
|
12301
12303
|
n & 4 && ke(t, e[2]);
|
|
12302
12304
|
},
|
|
12303
|
-
i:
|
|
12304
|
-
o:
|
|
12305
|
+
i: U,
|
|
12306
|
+
o: U,
|
|
12305
12307
|
d(e) {
|
|
12306
12308
|
e && B(t);
|
|
12307
12309
|
}
|
|
@@ -12898,7 +12900,7 @@ function lr(i) {
|
|
|
12898
12900
|
m(o, s) {
|
|
12899
12901
|
j(o, t, s), i[13](t), j(o, e, s), j(o, n, s), i[14](n);
|
|
12900
12902
|
},
|
|
12901
|
-
p:
|
|
12903
|
+
p: U,
|
|
12902
12904
|
d(o) {
|
|
12903
12905
|
o && B(t), i[13](null), o && B(e), o && B(n), i[14](null);
|
|
12904
12906
|
}
|
|
@@ -12913,7 +12915,7 @@ function cr(i) {
|
|
|
12913
12915
|
m(e, n) {
|
|
12914
12916
|
j(e, t, n), i[15](t);
|
|
12915
12917
|
},
|
|
12916
|
-
p:
|
|
12918
|
+
p: U,
|
|
12917
12919
|
d(e) {
|
|
12918
12920
|
e && B(t), i[15](null);
|
|
12919
12921
|
}
|
|
@@ -12928,7 +12930,7 @@ function ur(i) {
|
|
|
12928
12930
|
m(e, n) {
|
|
12929
12931
|
j(e, t, n), i[16](t);
|
|
12930
12932
|
},
|
|
12931
|
-
p:
|
|
12933
|
+
p: U,
|
|
12932
12934
|
d(e) {
|
|
12933
12935
|
e && B(t), i[16](null);
|
|
12934
12936
|
}
|
|
@@ -13418,8 +13420,8 @@ function eg(i) {
|
|
|
13418
13420
|
p(n, [o]) {
|
|
13419
13421
|
n[1] ? e ? e.p(n, o) : (e = hr(n), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
13420
13422
|
},
|
|
13421
|
-
i:
|
|
13422
|
-
o:
|
|
13423
|
+
i: U,
|
|
13424
|
+
o: U,
|
|
13423
13425
|
d(n) {
|
|
13424
13426
|
e && e.d(n), n && B(t);
|
|
13425
13427
|
}
|
|
@@ -13797,7 +13799,7 @@ function lg(i, t, e) {
|
|
|
13797
13799
|
let C = null;
|
|
13798
13800
|
const T = (S) => {
|
|
13799
13801
|
e(9, w = S.detail[0]);
|
|
13800
|
-
}, D = (S) =>
|
|
13802
|
+
}, D = (S) => Y(this, null, function* () {
|
|
13801
13803
|
var H, O, F;
|
|
13802
13804
|
if (!s || !g.autoplayVideo)
|
|
13803
13805
|
return;
|
|
@@ -13811,12 +13813,12 @@ function lg(i, t, e) {
|
|
|
13811
13813
|
const X = o[W];
|
|
13812
13814
|
if (!X || X.type !== "Video")
|
|
13813
13815
|
return;
|
|
13814
|
-
N.autoplay.stop(), N.slides.map((
|
|
13816
|
+
N.autoplay.stop(), N.slides.map((J) => J.querySelector("video")).filter(jt).forEach((J) => J.pause());
|
|
13815
13817
|
const x = (H = N.slides[N.activeIndex]) == null ? void 0 : H.querySelector("video");
|
|
13816
13818
|
if (x && (x.removeEventListener("play", E), x.removeEventListener("pause", P), x.addEventListener("play", E), x.addEventListener("pause", P)), x) {
|
|
13817
13819
|
x.addEventListener("click", () => x.pause());
|
|
13818
|
-
const
|
|
13819
|
-
x.addEventListener("play", () =>
|
|
13820
|
+
const J = (F = (O = x.parentElement) == null ? void 0 : O.getElementsByClassName("video-play-button-container")) == null ? void 0 : F[0];
|
|
13821
|
+
x.addEventListener("play", () => J == null ? void 0 : J.classList.remove("showPlayButton")), x.addEventListener("pause", () => J == null ? void 0 : J.classList.add("showPlayButton")), J && (x.paused ? J.classList.add("showPlayButton") : J.classList.remove("showPlayButton"), J.addEventListener("click", (_) => {
|
|
13820
13822
|
x.muted = !1, x.play(), v.set({ currentMediaElement: x }), y.emit("playStateChange", {
|
|
13821
13823
|
event: _,
|
|
13822
13824
|
state: "playing",
|
|
@@ -14212,7 +14214,7 @@ function mg(i) {
|
|
|
14212
14214
|
R(r, f), R(r, h), R(h, p), R(p, g), R(r, v), R(r, y), S && S.m(y, null), R(y, w), N && N.m(y, null), E = !0;
|
|
14213
14215
|
},
|
|
14214
14216
|
p(L, [x]) {
|
|
14215
|
-
var O, F,
|
|
14217
|
+
var O, F, J, _;
|
|
14216
14218
|
const H = {};
|
|
14217
14219
|
if (x & 2 && (H.visible = L[1]), e.$set(H), x & 2 && M(o, "transition-delay", L[1] ? jn + "ms" : Qn + Sr - Lr - 40 + "ms"), (!E || x & 4 && !Fe(a.src, l = L[2].headerPictureUrl)) && b(a, "src", l), x & 4) {
|
|
14218
14220
|
P = L[2].brandTags || [];
|
|
@@ -14236,7 +14238,7 @@ function mg(i) {
|
|
|
14236
14238
|
D[V].d(1);
|
|
14237
14239
|
D.length = T.length;
|
|
14238
14240
|
}
|
|
14239
|
-
(!E || x & 4) && A !== (A = L[2].title + "") && ke(g, A), ((O = L[2].price) == null ? void 0 : O.value) !== void 0 && ((F = L[2].price) == null ? void 0 : F.value) !== null ? S ? S.p(L, x) : (S = kr(L), S.c(), S.m(y, w)) : S && (S.d(1), S = null), L[2].highlightText ? N ? N.p(L, x) : (N = Dr(L), N.c(), N.m(y, null)) : N && (N.d(1), N = null), x & 4 && M(y, "height", ((
|
|
14241
|
+
(!E || x & 4) && A !== (A = L[2].title + "") && ke(g, A), ((O = L[2].price) == null ? void 0 : O.value) !== void 0 && ((F = L[2].price) == null ? void 0 : F.value) !== null ? S ? S.p(L, x) : (S = kr(L), S.c(), S.m(y, w)) : S && (S.d(1), S = null), L[2].highlightText ? N ? N.p(L, x) : (N = Dr(L), N.c(), N.m(y, null)) : N && (N.d(1), N = null), x & 4 && M(y, "height", ((J = L[2].price) == null ? void 0 : J.value) !== void 0 && ((_ = L[2].price) == null ? void 0 : _.value) !== null && L[2].highlightText ? void 0 : "1rem"), x & 2 && M(r, "transition-delay", L[1] ? jn + Qn + "ms" : "0ms"), (!E || x & 2) && te(t, "unfolded", L[1]), (!E || x & 8) && te(t, "folded", L[3]);
|
|
14240
14242
|
},
|
|
14241
14243
|
i(L) {
|
|
14242
14244
|
E || (I(e.$$.fragment, L), E = !0);
|
|
@@ -15115,7 +15117,7 @@ class Ug extends oe {
|
|
|
15115
15117
|
}
|
|
15116
15118
|
}
|
|
15117
15119
|
function Jg(i) {
|
|
15118
|
-
return
|
|
15120
|
+
return Y(this, null, function* () {
|
|
15119
15121
|
return new Promise((t, e) => {
|
|
15120
15122
|
if (!i) {
|
|
15121
15123
|
e(Error("url is empty"));
|
|
@@ -15127,7 +15129,7 @@ function Jg(i) {
|
|
|
15127
15129
|
});
|
|
15128
15130
|
}
|
|
15129
15131
|
function Gr(i) {
|
|
15130
|
-
return
|
|
15132
|
+
return Y(this, null, function* () {
|
|
15131
15133
|
const { steps: t, url: e, ratio: n = 3, fps: o = 24 } = i;
|
|
15132
15134
|
if (!t)
|
|
15133
15135
|
throw new Error("KeyframeIcon requires steps");
|
|
@@ -15250,7 +15252,7 @@ function qg(i) {
|
|
|
15250
15252
|
};
|
|
15251
15253
|
}
|
|
15252
15254
|
function Kg(i) {
|
|
15253
|
-
return { c:
|
|
15255
|
+
return { c: U, m: U, p: U, d: U };
|
|
15254
15256
|
}
|
|
15255
15257
|
function $g(i) {
|
|
15256
15258
|
Fr(i);
|
|
@@ -15271,7 +15273,7 @@ function $g(i) {
|
|
|
15271
15273
|
};
|
|
15272
15274
|
}
|
|
15273
15275
|
function e0(i) {
|
|
15274
|
-
return { c:
|
|
15276
|
+
return { c: U, m: U, p: U, d: U };
|
|
15275
15277
|
}
|
|
15276
15278
|
function t0(i) {
|
|
15277
15279
|
let t, e, n = i[1] && Nr(i);
|
|
@@ -15421,8 +15423,8 @@ function l0(i) {
|
|
|
15421
15423
|
p(n, [o]) {
|
|
15422
15424
|
typeof n[0].element == "string" ? e ? e.p(n, o) : (e = Xr(n), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
15423
15425
|
},
|
|
15424
|
-
i:
|
|
15425
|
-
o:
|
|
15426
|
+
i: U,
|
|
15427
|
+
o: U,
|
|
15426
15428
|
d(n) {
|
|
15427
15429
|
n && B(t), e && e.d(), i[2](null);
|
|
15428
15430
|
}
|
|
@@ -15472,8 +15474,8 @@ function f0(i) {
|
|
|
15472
15474
|
p(n, o) {
|
|
15473
15475
|
o & 2 && e !== (e = n[1].id) && b(t, "data-id", e);
|
|
15474
15476
|
},
|
|
15475
|
-
i:
|
|
15476
|
-
o:
|
|
15477
|
+
i: U,
|
|
15478
|
+
o: U,
|
|
15477
15479
|
d(n) {
|
|
15478
15480
|
n && B(t);
|
|
15479
15481
|
}
|
|
@@ -15861,9 +15863,9 @@ function D0(i) {
|
|
|
15861
15863
|
m(e, n) {
|
|
15862
15864
|
j(e, t, n);
|
|
15863
15865
|
},
|
|
15864
|
-
p:
|
|
15865
|
-
i:
|
|
15866
|
-
o:
|
|
15866
|
+
p: U,
|
|
15867
|
+
i: U,
|
|
15868
|
+
o: U,
|
|
15867
15869
|
d(e) {
|
|
15868
15870
|
e && B(t);
|
|
15869
15871
|
}
|
|
@@ -15911,9 +15913,9 @@ function S0(i) {
|
|
|
15911
15913
|
m(e, n) {
|
|
15912
15914
|
j(e, t, n);
|
|
15913
15915
|
},
|
|
15914
|
-
p:
|
|
15915
|
-
i:
|
|
15916
|
-
o:
|
|
15916
|
+
p: U,
|
|
15917
|
+
i: U,
|
|
15918
|
+
o: U,
|
|
15917
15919
|
d(e) {
|
|
15918
15920
|
e && B(t);
|
|
15919
15921
|
}
|
|
@@ -16533,7 +16535,7 @@ function _0(i) {
|
|
|
16533
16535
|
}
|
|
16534
16536
|
return i;
|
|
16535
16537
|
}
|
|
16536
|
-
const cl = "2.0.0
|
|
16538
|
+
const cl = "2.0.0", Yi = `DnalogelPlugin-PanoTagPlugin@${cl}`, X0 = !1, Pv = (i) => `${Yi}--${i}`;
|
|
16537
16539
|
class Y0 extends W0 {
|
|
16538
16540
|
constructor(e, n) {
|
|
16539
16541
|
super(e);
|
|
@@ -16560,25 +16562,35 @@ class Y0 extends W0 {
|
|
|
16560
16562
|
this.params = G({ debug: !1, config: this.config }, n), this.debug = this.params.debug, this.config = this.params.config, Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
16561
16563
|
}
|
|
16562
16564
|
load(e, n) {
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16567
|
-
|
|
16565
|
+
return Y(this, null, function* () {
|
|
16566
|
+
var o, s;
|
|
16567
|
+
if (this.clearTags(), console.log(Yi, " load:", { data: e }), this.config = zt({}, this.config, {
|
|
16568
|
+
globalConfig: (o = e.globalConfig) != null ? o : {},
|
|
16569
|
+
contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
|
|
16570
|
+
}), this.debug)
|
|
16571
|
+
try {
|
|
16572
|
+
Hm(this.five, this.tags);
|
|
16573
|
+
} catch (r) {
|
|
16574
|
+
console.error(r);
|
|
16575
|
+
}
|
|
16576
|
+
return this.addTag(e.tagList, n);
|
|
16577
|
+
});
|
|
16568
16578
|
}
|
|
16569
16579
|
addTag(e, n) {
|
|
16570
|
-
|
|
16571
|
-
const
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16580
|
+
return Y(this, null, function* () {
|
|
16581
|
+
const s = (Array.isArray(e) ? e : [e]).map((r) => {
|
|
16582
|
+
const a = this.getTagConfig(r);
|
|
16583
|
+
return he(G({}, r), {
|
|
16584
|
+
state: G({ visible: void 0, unfolded: X0 }, a.initialState),
|
|
16585
|
+
hooks: new et(),
|
|
16586
|
+
clickable: a.clickable,
|
|
16587
|
+
mergedConfig: a
|
|
16588
|
+
});
|
|
16589
|
+
}).filter((r) => r.position);
|
|
16590
|
+
return s.forEach(_0), this.tags.push(...s), Om(this.five).then(() => {
|
|
16591
|
+
var r, a, l;
|
|
16592
|
+
return this.store.eventListenerDisposer && ((a = (r = this.store).eventListenerDisposer) == null || a.call(r)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (l = n == null ? void 0 : n.withAnimation) != null ? l : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), !0;
|
|
16577
16593
|
});
|
|
16578
|
-
}).filter((r) => r.position);
|
|
16579
|
-
s.forEach(_0), this.tags.push(...s), Om(this.five, () => {
|
|
16580
|
-
var r, a, l;
|
|
16581
|
-
this.store.eventListenerDisposer && ((a = (r = this.store).eventListenerDisposer) == null || a.call(r)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (l = n == null ? void 0 : n.withAnimation) != null ? l : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
|
|
16582
16594
|
});
|
|
16583
16595
|
}
|
|
16584
16596
|
changeConfig(e, n = !0) {
|
|
@@ -16591,7 +16603,7 @@ class Y0 extends W0 {
|
|
|
16591
16603
|
this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
16592
16604
|
}
|
|
16593
16605
|
show(e) {
|
|
16594
|
-
return
|
|
16606
|
+
return Y(this, null, function* () {
|
|
16595
16607
|
const { userAction: n = !0, withAnimation: o = !1 } = e != null ? e : {};
|
|
16596
16608
|
if (this.store.disposed)
|
|
16597
16609
|
return this.disposedErrorLog();
|
|
@@ -16599,7 +16611,7 @@ class Y0 extends W0 {
|
|
|
16599
16611
|
});
|
|
16600
16612
|
}
|
|
16601
16613
|
hide(e) {
|
|
16602
|
-
return
|
|
16614
|
+
return Y(this, null, function* () {
|
|
16603
16615
|
const { userAction: n = !0, withAnimation: o = !1 } = e != null ? e : {};
|
|
16604
16616
|
if (this.store.disposed)
|
|
16605
16617
|
return this.disposedErrorLog();
|
|
@@ -16665,7 +16677,7 @@ class Y0 extends W0 {
|
|
|
16665
16677
|
this.mediaStore.set({ currentMediaElement: null });
|
|
16666
16678
|
}
|
|
16667
16679
|
setVisibleAndUnfolded() {
|
|
16668
|
-
return
|
|
16680
|
+
return Y(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
16669
16681
|
if (!!this.isPanorama)
|
|
16670
16682
|
return this.setVisibleByPanoIndex(), e ? new Promise((n, o) => {
|
|
16671
16683
|
setTimeout(() => {
|
|
@@ -16779,7 +16791,7 @@ class Y0 extends W0 {
|
|
|
16779
16791
|
this.updateRenderPointTag();
|
|
16780
16792
|
}
|
|
16781
16793
|
handleFivePanoArrived() {
|
|
16782
|
-
return
|
|
16794
|
+
return Y(this, null, function* () {
|
|
16783
16795
|
yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
16784
16796
|
e.temporaryState = he(G({}, e.temporaryState), { visible: !0 });
|
|
16785
16797
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
|
|
@@ -17801,12 +17813,12 @@ class pA {
|
|
|
17801
17813
|
t && this.addControllers(t), this.helpers = e != null ? e : {}, this.setState(this.state);
|
|
17802
17814
|
}
|
|
17803
17815
|
show(t) {
|
|
17804
|
-
return
|
|
17816
|
+
return Y(this, null, function* () {
|
|
17805
17817
|
this.setState({ visible: !0 }, t);
|
|
17806
17818
|
});
|
|
17807
17819
|
}
|
|
17808
17820
|
hide(t) {
|
|
17809
|
-
return
|
|
17821
|
+
return Y(this, null, function* () {
|
|
17810
17822
|
this.setState({ visible: !1 }, t);
|
|
17811
17823
|
});
|
|
17812
17824
|
}
|
|
@@ -18087,8 +18099,8 @@ class AA extends go {
|
|
|
18087
18099
|
const _ = new ee().subVectors(H, O), V = _.x < 0 && L.x >= 0, ue = _.y < 0 && L.y >= 0, de = _.z < 0 && L.z >= 0;
|
|
18088
18100
|
this.startInfo.dragPointInCenterLeft = V || ue || de;
|
|
18089
18101
|
}
|
|
18090
|
-
const F = new ee().subVectors(H, x),
|
|
18091
|
-
return
|
|
18102
|
+
const F = new ee().subVectors(H, x), J = F.length();
|
|
18103
|
+
return J > 0.3 ? (console.warn("offset.length() > 0.3, skipped", J), X) : F;
|
|
18092
18104
|
}, p = h("ew"), A = h("ns"), g = () => {
|
|
18093
18105
|
const W = p;
|
|
18094
18106
|
this.helperObject3D.cornerPositions.forEach((X, L) => {
|
|
@@ -18158,12 +18170,12 @@ class CA extends li {
|
|
|
18158
18170
|
this.five = e, this.css3DRender = new hn(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${Ui.toUpperCase()}_DEBUG__`]: this });
|
|
18159
18171
|
}
|
|
18160
18172
|
show(e) {
|
|
18161
|
-
return
|
|
18173
|
+
return Y(this, null, function* () {
|
|
18162
18174
|
this.setState({ visible: !0 }, e);
|
|
18163
18175
|
});
|
|
18164
18176
|
}
|
|
18165
18177
|
hide(e) {
|
|
18166
|
-
return
|
|
18178
|
+
return Y(this, null, function* () {
|
|
18167
18179
|
this.setState({ visible: !1 }, e);
|
|
18168
18180
|
});
|
|
18169
18181
|
}
|