@realsee/dnalogel 2.16.0-1 → 2.16.0-3
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/GuideLinePlugin/GuideLineModeItem.d.ts +2 -0
- package/dist/GuideLinePlugin/index.d.ts +2 -1
- package/dist/GuideLinePlugin/typing.d.ts +4 -0
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +1 -0
- package/dist/index.cjs.js +19 -18
- package/dist/index.js +552 -529
- package/dist/index.umd.js +20 -19
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +32 -31
- package/docs/classes/CruisePluginController.html +29 -28
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -20
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +47 -31
- package/docs/classes/Magnifier.html +21 -20
- package/docs/classes/ModelRoomLabelController.html +12 -11
- package/docs/classes/Object3DHelperController.html +26 -25
- package/docs/classes/PaintBrush.html +16 -15
- package/docs/classes/PanoMeasurePluginLine.html +24 -23
- package/docs/classes/PanoMeasurePluginModel.html +23 -22
- package/docs/classes/PanoMeasurePluginPoint.html +15 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
- package/docs/classes/PanoTagPluginController.html +48 -47
- package/docs/classes/Util.BetterTween.html +9 -8
- package/docs/classes/Util.FivePointSelector.html +13 -12
- package/docs/classes/Util.Interval.html +13 -12
- package/docs/classes/Util.Magnifier.html +18 -17
- package/docs/classes/Util.PointDomHelper.html +12 -11
- package/docs/classes/Util.PointHelper.html +12 -11
- package/docs/classes/Util.Rectangle.html +14 -13
- package/docs/enums/CameraMovementEffect.html +8 -7
- package/docs/enums/ContentType.html +20 -19
- package/docs/enums/DIRECTION.html +10 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/DimensionType.html +8 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/PaintBrushTypeEnum.html +9 -8
- package/docs/enums/Rotation.html +9 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.getCoordsFromClient.html +6 -5
- package/docs/functions/Util.getCoordsFromElement.html +6 -5
- package/docs/functions/Util.getFrameTime.html +6 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
- package/docs/functions/Util.isAbsoluteURL.html +6 -5
- package/docs/functions/Util.isModelLike.html +6 -5
- package/docs/functions/Util.isNil.html +6 -5
- package/docs/functions/Util.isPanoramaLike.html +6 -5
- package/docs/functions/Util.nextFrame.html +6 -5
- package/docs/functions/Util.notNil.html +6 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
- package/docs/functions/Util.tweenProgress.html +6 -5
- package/docs/functions/Util.uuid.html +6 -5
- package/docs/functions/pluginFlag.html +6 -5
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +7 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
- package/docs/interfaces/EventMap.html +16 -15
- package/docs/interfaces/FloorplanBounding.html +9 -8
- package/docs/interfaces/FloorplanData.html +11 -10
- package/docs/interfaces/FloorplanEntrance.html +12 -11
- package/docs/interfaces/FloorplanExtraObject.html +11 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
- package/docs/interfaces/FloorplanFloorData.html +10 -9
- package/docs/interfaces/FloorplanImagePosition.html +8 -7
- package/docs/interfaces/FloorplanObserver.html +10 -9
- package/docs/interfaces/FloorplanOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanPosition.html +8 -7
- package/docs/interfaces/FloorplanRoomItem.html +14 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
- package/docs/interfaces/FloorplanServerBounding.html +9 -8
- package/docs/interfaces/FloorplanServerComputedData.html +11 -10
- package/docs/interfaces/FloorplanServerData.html +8 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
- package/docs/interfaces/FloorplanServerEntrance.html +12 -11
- package/docs/interfaces/FloorplanServerFloorData.html +10 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
- package/docs/interfaces/FloorplanServerObserver.html +10 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanServerPosition.html +8 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +97 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +258 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +92 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +87 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +126 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +85 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +76 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +71 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +82 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +99 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +103 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +92 -0
- package/docs/interfaces/HelperOffset.html +9 -8
- package/docs/interfaces/ImagePlaneGroup.html +7 -6
- package/docs/interfaces/ItemLabelPluginData.html +7 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
- package/docs/interfaces/MinMax.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
- package/docs/interfaces/ModelViewPluginExportType.html +12 -11
- package/docs/interfaces/Object3DHelperState.html +9 -8
- package/docs/interfaces/ObjectHelperControllers.html +10 -9
- package/docs/interfaces/PaintBrushAction.html +13 -12
- package/docs/interfaces/PaintBrushConfigs.html +13 -12
- package/docs/interfaces/PaintBrushState.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +15 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
- package/docs/interfaces/PanoRulerProPluginState.html +9 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +16 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
- package/docs/interfaces/Point.html +9 -8
- package/docs/interfaces/Room.html +10 -9
- package/docs/interfaces/RoomInfo.html +8 -7
- package/docs/interfaces/RoomLabel.html +15 -14
- package/docs/interfaces/RoomRules.html +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +10 -9
- package/docs/interfaces/State.html +9 -8
- package/docs/interfaces/TagCacheInterface.html +13 -12
- package/docs/interfaces/TagConfig.html +12 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
- package/docs/interfaces/TagIconUrl.html +12 -11
- package/docs/interfaces/TagObjectGroup.html +7 -6
- package/docs/interfaces/TagStyle.html +7 -6
- package/docs/interfaces/Tags.html +10 -9
- package/docs/interfaces/TemporaryState.html +7 -6
- package/docs/interfaces/Util.MagnifierParameter.html +12 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
- package/docs/modules/GuideLineItem.html +6 -5
- package/docs/modules/GuideLineModeItem.html +6 -5
- package/docs/modules/GuideLinePluginType.html +99 -0
- package/docs/modules/PanoVideoPluginType.html +6 -5
- package/docs/modules/Util.html +6 -5
- package/docs/modules.html +6 -4
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +6 -5
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +67 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +65 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +67 -0
- package/docs/types/GuideLinePluginType.PathItem.html +67 -0
- package/docs/types/GuideLinePluginType.PluginData.html +65 -0
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelElement.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +6 -5
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/GuideLinePlugin/GuideLineItem/index.js +8 -8
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +50 -34
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -0
- package/libs/GuideLinePlugin/index.d.ts +2 -1
- package/libs/GuideLinePlugin/typing.d.ts +4 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +1 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +31 -24
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var Si = (i, t, e) => t in i ? uc(i, t, { enumerable: !0, configurable: !0, writ
|
|
|
11
11
|
return i;
|
|
12
12
|
}, fe = (i, t) => dc(i, hc(t));
|
|
13
13
|
var f = (i, t, e) => (Si(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
var
|
|
14
|
+
var G = (i, t, e) => new Promise((n, o) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(e.next(l));
|
|
@@ -40,17 +40,17 @@ import Oe from "classnames";
|
|
|
40
40
|
import at from "object-assign-deep";
|
|
41
41
|
import Tc from "polyline-normals";
|
|
42
42
|
import { GLTFLoader as zc } from "@realsee/five/gltf-loader";
|
|
43
|
-
import
|
|
43
|
+
import _o from "animejs";
|
|
44
44
|
import On from "lodash.get";
|
|
45
45
|
import Bc from "lodash.clonedeep";
|
|
46
46
|
import jc from "lodash.isequal";
|
|
47
47
|
function La() {
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const Wo = () => Promise.resolve(), No = {
|
|
50
50
|
__queue: Promise.resolve()
|
|
51
51
|
};
|
|
52
|
-
function Vc(i =
|
|
53
|
-
No.__queue = No.__queue.then(i).catch(
|
|
52
|
+
function Vc(i = Wo) {
|
|
53
|
+
No.__queue = No.__queue.then(i).catch(Wo);
|
|
54
54
|
}
|
|
55
55
|
function Rn(i, t, e) {
|
|
56
56
|
const n = i.x, o = i.y, s = Math.floor(n / t * 1e4) / 1e4, r = Math.floor(o / e * 1e4) / 1e4;
|
|
@@ -239,7 +239,7 @@ transition: all 500ms;
|
|
|
239
239
|
|
|
240
240
|
</style>
|
|
241
241
|
`;
|
|
242
|
-
class
|
|
242
|
+
class _c extends Hc {
|
|
243
243
|
constructor(e) {
|
|
244
244
|
super();
|
|
245
245
|
f(this, "configs");
|
|
@@ -543,7 +543,7 @@ class P1 {
|
|
|
543
543
|
onUndoText: "\u56DE\u9000",
|
|
544
544
|
onExitText: "\u5173\u95ED"
|
|
545
545
|
}, t);
|
|
546
|
-
this.controller = new
|
|
546
|
+
this.controller = new _c(e);
|
|
547
547
|
}
|
|
548
548
|
on(t, e) {
|
|
549
549
|
this.controller.on(t, e);
|
|
@@ -599,21 +599,21 @@ const I1 = (i, t) => {
|
|
|
599
599
|
const m = () => {
|
|
600
600
|
if (n)
|
|
601
601
|
return;
|
|
602
|
-
h = C(i.model, c.fov, c.aspect), d = i.model.bounding.getCenter(new E.Vector3()), l.remove(u), u =
|
|
603
|
-
function Q(
|
|
604
|
-
const
|
|
605
|
-
return
|
|
606
|
-
}
|
|
607
|
-
function
|
|
608
|
-
if (
|
|
609
|
-
const
|
|
610
|
-
return new E.Mesh(
|
|
611
|
-
} else if (
|
|
612
|
-
const
|
|
613
|
-
return
|
|
602
|
+
h = C(i.model, c.fov, c.aspect), d = i.model.bounding.getCenter(new E.Vector3()), l.remove(u), u = H(i.model), l.add(u), n = !0, B();
|
|
603
|
+
function Q(N) {
|
|
604
|
+
const _ = N.clone();
|
|
605
|
+
return _.uniforms.modelAlpha.value = 1, _.uniforms.map.value && (_.uniforms.map.value.needsUpdate = !0), _;
|
|
606
|
+
}
|
|
607
|
+
function H(N) {
|
|
608
|
+
if (N instanceof E.Mesh) {
|
|
609
|
+
const _ = N.geometry, ee = Array.isArray(N.material) ? N.material.map(Q) : Q(N.material);
|
|
610
|
+
return new E.Mesh(_, ee);
|
|
611
|
+
} else if (N instanceof E.Group) {
|
|
612
|
+
const _ = new E.Group();
|
|
613
|
+
return N.children.forEach((ee) => _.add(H(ee))), _;
|
|
614
614
|
} else {
|
|
615
|
-
const
|
|
616
|
-
return
|
|
615
|
+
const _ = new E.Object3D();
|
|
616
|
+
return N.children.forEach((ee) => _.add(H(ee))), _;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
}, g = () => {
|
|
@@ -621,7 +621,7 @@ const I1 = (i, t) => {
|
|
|
621
621
|
return s || (s = new E.WebGLRenderer({ antialias: !1, alpha: !0 }), s.setPixelRatio(i.renderer.getPixelRatio()), s.outputEncoding = E.sRGBEncoding, s.setClearColor(1579548, 0), s.autoClear = !0), s;
|
|
622
622
|
}, p = () => {
|
|
623
623
|
u.traverse((Q) => {
|
|
624
|
-
Q instanceof E.Mesh && [].concat(Q.material).forEach((
|
|
624
|
+
Q instanceof E.Mesh && [].concat(Q.material).forEach((N) => N.dispose());
|
|
625
625
|
}), l.remove(u), u = new E.Object3D(), l.add(u), n = !1, B();
|
|
626
626
|
}, A = () => {
|
|
627
627
|
!e || n || m();
|
|
@@ -629,30 +629,30 @@ const I1 = (i, t) => {
|
|
|
629
629
|
e || (e = !0, l.add(u), !n && i.model.loaded && m(), B());
|
|
630
630
|
}, b = () => {
|
|
631
631
|
!e || (l.remove(u), o = !0, x(), e = !1);
|
|
632
|
-
}, w = (Q,
|
|
633
|
-
const
|
|
634
|
-
if (!
|
|
632
|
+
}, w = (Q, H = {}) => {
|
|
633
|
+
const N = g();
|
|
634
|
+
if (!N)
|
|
635
635
|
return;
|
|
636
|
-
Q.appendChild(
|
|
637
|
-
const
|
|
638
|
-
|
|
636
|
+
Q.appendChild(N.domElement), k(H);
|
|
637
|
+
const _ = window.getComputedStyle(Q).position;
|
|
638
|
+
_ !== "relative" && _ !== "absolute" && _ !== "fixed" && _ !== "sticky" && (Q.style.position = "relative");
|
|
639
639
|
}, k = (Q = {}) => {
|
|
640
640
|
if (!s)
|
|
641
641
|
return;
|
|
642
|
-
const
|
|
643
|
-
if (
|
|
644
|
-
const { width:
|
|
645
|
-
s.setSize(
|
|
642
|
+
const N = s.domElement.parentNode;
|
|
643
|
+
if (N != null && N.nodeName) {
|
|
644
|
+
const { width: _ = N.offsetWidth, height: ee = N.offsetHeight } = Q;
|
|
645
|
+
s.setSize(_, ee), c.aspect = _ / ee, c.updateProjectionMatrix();
|
|
646
646
|
}
|
|
647
647
|
B();
|
|
648
648
|
};
|
|
649
|
-
function C(Q,
|
|
650
|
-
const
|
|
651
|
-
Math.pow(
|
|
649
|
+
function C(Q, H, N) {
|
|
650
|
+
const _ = Q.bounding, ee = Math.pow(
|
|
651
|
+
Math.pow(_.max.x - _.min.x + 1, 2) + Math.pow(_.max.y - _.min.y + 1, 2) + Math.pow(_.max.z - _.min.z + 1, 2),
|
|
652
652
|
1 / 2
|
|
653
653
|
);
|
|
654
|
-
let Y = ee / 2 / Math.tan(Math.PI *
|
|
655
|
-
return
|
|
654
|
+
let Y = ee / 2 / Math.tan(Math.PI * H / 360);
|
|
655
|
+
return N < 1 && (Y = Y / N), isNaN(Y) ? ee : Y;
|
|
656
656
|
}
|
|
657
657
|
function I(Q) {
|
|
658
658
|
return i.work.observers[Q].standingPosition.clone();
|
|
@@ -666,12 +666,12 @@ const I1 = (i, t) => {
|
|
|
666
666
|
!e || o !== !0 || !s || !s.domElement.parentNode || s.domElement.parentNode.offsetWidth === 0 || (s.render(l, c), o = !1);
|
|
667
667
|
}, F = () => {
|
|
668
668
|
s && s.dispose(), s = null;
|
|
669
|
-
},
|
|
669
|
+
}, W = (Q) => {
|
|
670
670
|
Object.assign(a, Q), B();
|
|
671
671
|
}, O = () => ({
|
|
672
672
|
enabled: e
|
|
673
673
|
});
|
|
674
|
-
return Object.assign(window, { camera: c }), i.on("modelLoaded", A), i.on("modelWillLoad", p), i.on("cameraDirectionUpdate", B), i.on("dispose", F), i.on("renderFrame", x), i.on("cameraPositionUpdate", B), { appendTo: w, refresh: k, changeConfigs:
|
|
674
|
+
return Object.assign(window, { camera: c }), i.on("modelLoaded", A), i.on("modelWillLoad", p), i.on("cameraDirectionUpdate", B), i.on("dispose", F), i.on("renderFrame", x), i.on("cameraPositionUpdate", B), { appendTo: w, refresh: k, changeConfigs: W, enable: v, disable: b, getCurrentState: O };
|
|
675
675
|
};
|
|
676
676
|
function pt(...i) {
|
|
677
677
|
const t = [];
|
|
@@ -683,7 +683,7 @@ function si(i, t) {
|
|
|
683
683
|
const e = Math.round(i);
|
|
684
684
|
return e % 2 === 0 ? e : e + Number(t != null && t.floor ? -1 : 1);
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function Wc(i, t, e = !0) {
|
|
687
687
|
if (!i)
|
|
688
688
|
return console.error("createResizeObserver: element is undefined"), { observe: () => {
|
|
689
689
|
}, unobserve: () => {
|
|
@@ -719,7 +719,7 @@ class Yo extends Mc {
|
|
|
719
719
|
}
|
|
720
720
|
appendToElement(e) {
|
|
721
721
|
e.appendChild(this.domElement);
|
|
722
|
-
const n = (r, a) => this.setSize(r, a), { observe: o, unobserve: s } =
|
|
722
|
+
const n = (r, a) => this.setSize(r, a), { observe: o, unobserve: s } = Wc(e, n, !0);
|
|
723
723
|
o(), this.resizeDisoper = s, this.wrapper = e;
|
|
724
724
|
}
|
|
725
725
|
renderEveryFrame(e, n) {
|
|
@@ -1101,14 +1101,14 @@ class In {
|
|
|
1101
1101
|
this.setState({ disposed: !0 }), this.hooks.emit("dispose");
|
|
1102
1102
|
}
|
|
1103
1103
|
show() {
|
|
1104
|
-
return
|
|
1104
|
+
return G(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
1105
1105
|
if (this.state.disposed)
|
|
1106
1106
|
return Bt();
|
|
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 G(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
1112
1112
|
if (this.state.disposed)
|
|
1113
1113
|
return Bt();
|
|
1114
1114
|
this.setState({ visible: !1 }, { userAction: t }), this.hooks.emit("hide", { userAction: t });
|
|
@@ -1180,13 +1180,13 @@ class In {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
1182
|
handleShow() {
|
|
1183
|
-
return
|
|
1183
|
+
return G(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 G(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 In {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
f(In, "setFrontModeContainer", ou), f(In, "setBehindModeContainer", su);
|
|
1211
1211
|
function Ta(i) {
|
|
1212
|
-
return
|
|
1212
|
+
return G(this, null, function* () {
|
|
1213
1213
|
return new Promise((t) => {
|
|
1214
1214
|
var e;
|
|
1215
1215
|
if ((e = i.model) != null && e.loaded) {
|
|
@@ -1799,7 +1799,7 @@ const x1 = (i) => {
|
|
|
1799
1799
|
};
|
|
1800
1800
|
return { intersection: r, pointAxesHelper: o, movePointTowardsCamera: c, destroy: a, dispose: l, canSeePoint: s };
|
|
1801
1801
|
};
|
|
1802
|
-
function
|
|
1802
|
+
function X() {
|
|
1803
1803
|
}
|
|
1804
1804
|
const At = (i) => i;
|
|
1805
1805
|
function ze(i, t) {
|
|
@@ -1816,7 +1816,7 @@ function Ga(i) {
|
|
|
1816
1816
|
function qo() {
|
|
1817
1817
|
return /* @__PURE__ */ Object.create(null);
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function _e(i) {
|
|
1820
1820
|
i.forEach(Ga);
|
|
1821
1821
|
}
|
|
1822
1822
|
function Kt(i) {
|
|
@@ -1825,20 +1825,20 @@ function Kt(i) {
|
|
|
1825
1825
|
function ne(i, t) {
|
|
1826
1826
|
return i != i ? t == t : i !== t || i && typeof i == "object" || typeof i == "function";
|
|
1827
1827
|
}
|
|
1828
|
-
let
|
|
1828
|
+
let _n;
|
|
1829
1829
|
function Ye(i, t) {
|
|
1830
|
-
return
|
|
1830
|
+
return _n || (_n = document.createElement("a")), _n.href = t, i === _n.href;
|
|
1831
1831
|
}
|
|
1832
1832
|
function Iu(i) {
|
|
1833
1833
|
return Object.keys(i).length === 0;
|
|
1834
1834
|
}
|
|
1835
1835
|
function $t(i, t, e, n) {
|
|
1836
1836
|
if (i) {
|
|
1837
|
-
const o =
|
|
1837
|
+
const o = _a(i, t, e, n);
|
|
1838
1838
|
return i[0](o);
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function _a(i, t, e, n) {
|
|
1842
1842
|
return i[1] && n ? ze(e.ctx.slice(), i[1](n(t))) : e.ctx;
|
|
1843
1843
|
}
|
|
1844
1844
|
function en(i, t, e, n) {
|
|
@@ -1858,7 +1858,7 @@ function en(i, t, e, n) {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
function tn(i, t, e, n, o, s) {
|
|
1860
1860
|
if (o) {
|
|
1861
|
-
const r =
|
|
1861
|
+
const r = _a(t, e, n, s);
|
|
1862
1862
|
i.p(r, o);
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
@@ -1875,10 +1875,10 @@ function Pe(i) {
|
|
|
1875
1875
|
return i == null ? "" : i;
|
|
1876
1876
|
}
|
|
1877
1877
|
function ut(i) {
|
|
1878
|
-
return i && Kt(i.destroy) ? i.destroy :
|
|
1878
|
+
return i && Kt(i.destroy) ? i.destroy : X;
|
|
1879
1879
|
}
|
|
1880
|
-
const
|
|
1881
|
-
let Na =
|
|
1880
|
+
const Wa = typeof window != "undefined";
|
|
1881
|
+
let Na = Wa ? () => window.performance.now() : () => Date.now(), bo = Wa ? (i) => requestAnimationFrame(i) : X;
|
|
1882
1882
|
const Gt = /* @__PURE__ */ new Set();
|
|
1883
1883
|
function Xa(i) {
|
|
1884
1884
|
Gt.forEach((t) => {
|
|
@@ -1964,17 +1964,17 @@ function Se(i, t) {
|
|
|
1964
1964
|
function T(i, t, e, n) {
|
|
1965
1965
|
e === null ? i.style.removeProperty(t) : i.style.setProperty(t, e, n ? "important" : "");
|
|
1966
1966
|
}
|
|
1967
|
-
let
|
|
1967
|
+
let Wn;
|
|
1968
1968
|
function Du() {
|
|
1969
|
-
if (
|
|
1970
|
-
|
|
1969
|
+
if (Wn === void 0) {
|
|
1970
|
+
Wn = !1;
|
|
1971
1971
|
try {
|
|
1972
1972
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
1973
1973
|
} catch (i) {
|
|
1974
|
-
|
|
1974
|
+
Wn = !0;
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
|
-
return
|
|
1977
|
+
return Wn;
|
|
1978
1978
|
}
|
|
1979
1979
|
function wi(i, t) {
|
|
1980
1980
|
getComputedStyle(i).position === "static" && (i.style.position = "relative");
|
|
@@ -2143,7 +2143,7 @@ function wo() {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
function Tu(i) {
|
|
2145
2145
|
if (i.fragment !== null) {
|
|
2146
|
-
i.update(),
|
|
2146
|
+
i.update(), _e(i.before_update);
|
|
2147
2147
|
const t = i.dirty;
|
|
2148
2148
|
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, t), i.after_update.forEach(Qe);
|
|
2149
2149
|
}
|
|
@@ -2167,7 +2167,7 @@ function se() {
|
|
|
2167
2167
|
};
|
|
2168
2168
|
}
|
|
2169
2169
|
function re() {
|
|
2170
|
-
gt.r ||
|
|
2170
|
+
gt.r || _e(gt.c), gt = gt.p;
|
|
2171
2171
|
}
|
|
2172
2172
|
function P(i, t) {
|
|
2173
2173
|
i && i.i && (ii.delete(i), i.i(t));
|
|
@@ -2189,7 +2189,7 @@ function Mt(i, t, e) {
|
|
|
2189
2189
|
s && to(i, s);
|
|
2190
2190
|
}
|
|
2191
2191
|
function c() {
|
|
2192
|
-
const { delay: h = 0, duration: d = 300, easing: m = At, tick: g =
|
|
2192
|
+
const { delay: h = 0, duration: d = 300, easing: m = At, tick: g = X, css: p } = n || ol;
|
|
2193
2193
|
p && (s = Za(i, 0, 1, d, h, m, p, a++)), g(0, 1);
|
|
2194
2194
|
const A = Na() + h, v = A + d;
|
|
2195
2195
|
r && r.abort(), o = !0, Qe(() => ci(i, !0, "start")), r = Ya((b) => {
|
|
@@ -2222,13 +2222,13 @@ function sn(i, t, e) {
|
|
|
2222
2222
|
const r = gt;
|
|
2223
2223
|
r.r += 1;
|
|
2224
2224
|
function a() {
|
|
2225
|
-
const { delay: l = 0, duration: c = 300, easing: u = At, tick: h =
|
|
2225
|
+
const { delay: l = 0, duration: c = 300, easing: u = At, tick: h = X, css: d } = n || ol;
|
|
2226
2226
|
d && (s = Za(i, 1, 0, c, l, u, d));
|
|
2227
2227
|
const m = Na() + l, g = m + c;
|
|
2228
2228
|
Qe(() => ci(i, !1, "start")), Ya((p) => {
|
|
2229
2229
|
if (o) {
|
|
2230
2230
|
if (p >= g)
|
|
2231
|
-
return h(0, 1), ci(i, !1, "end"), --r.r ||
|
|
2231
|
+
return h(0, 1), ci(i, !1, "end"), --r.r || _e(r.c), !1;
|
|
2232
2232
|
if (p >= m) {
|
|
2233
2233
|
const A = u((p - m) / c);
|
|
2234
2234
|
h(1 - A, A);
|
|
@@ -2349,12 +2349,12 @@ function J(i, t, e, n) {
|
|
|
2349
2349
|
const { fragment: o, after_update: s } = i.$$;
|
|
2350
2350
|
o && o.m(t, e), n || Qe(() => {
|
|
2351
2351
|
const r = i.$$.on_mount.map(Ga).filter(Kt);
|
|
2352
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...r) :
|
|
2352
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...r) : _e(r), i.$$.on_mount = [];
|
|
2353
2353
|
}), s.forEach(Qe);
|
|
2354
2354
|
}
|
|
2355
2355
|
function Z(i, t) {
|
|
2356
2356
|
const e = i.$$;
|
|
2357
|
-
e.fragment !== null && (
|
|
2357
|
+
e.fragment !== null && (_e(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
2358
2358
|
}
|
|
2359
2359
|
function Bu(i, t) {
|
|
2360
2360
|
i.$$.dirty[0] === -1 && (gn.push(i), tl(), i.$$.dirty.fill(0)), i.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
@@ -2366,7 +2366,7 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
|
|
|
2366
2366
|
fragment: null,
|
|
2367
2367
|
ctx: [],
|
|
2368
2368
|
props: s,
|
|
2369
|
-
update:
|
|
2369
|
+
update: X,
|
|
2370
2370
|
not_equal: o,
|
|
2371
2371
|
bound: qo(),
|
|
2372
2372
|
on_mount: [],
|
|
@@ -2385,7 +2385,7 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
|
|
|
2385
2385
|
if (c.ctx = e ? e(i, t.props || {}, (h, d, ...m) => {
|
|
2386
2386
|
const g = m.length ? m[0] : d;
|
|
2387
2387
|
return c.ctx && o(c.ctx[h], c.ctx[h] = g) && (!c.skip_bound && c.bound[h] && c.bound[h](g), u && Bu(i, h)), d;
|
|
2388
|
-
}) : [], c.update(), u = !0,
|
|
2388
|
+
}) : [], c.update(), u = !0, _e(c.before_update), c.fragment = n ? n(c.ctx) : !1, t.target) {
|
|
2389
2389
|
if (t.hydrate) {
|
|
2390
2390
|
const h = xu(t.target);
|
|
2391
2391
|
c.fragment && c.fragment.l(h), h.forEach(L);
|
|
@@ -2397,11 +2397,11 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
|
|
|
2397
2397
|
}
|
|
2398
2398
|
class oe {
|
|
2399
2399
|
$destroy() {
|
|
2400
|
-
Z(this, 1), this.$destroy =
|
|
2400
|
+
Z(this, 1), this.$destroy = X;
|
|
2401
2401
|
}
|
|
2402
2402
|
$on(t, e) {
|
|
2403
2403
|
if (!Kt(e))
|
|
2404
|
-
return
|
|
2404
|
+
return X;
|
|
2405
2405
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
2406
2406
|
return n.push(e), () => {
|
|
2407
2407
|
const o = n.indexOf(e);
|
|
@@ -2428,8 +2428,8 @@ function Ou(i) {
|
|
|
2428
2428
|
p(c, [u]) {
|
|
2429
2429
|
u & 1 && n !== (n = c[0].name + "") && Se(o, n), u & 1 && U(e, "wide", c[0].name.length > 3), u & 1 && T(t, "z-index", c[0].zIndex), u & 1 && T(t, "transform", c[0].transform), u & 1 && T(t, "opacity", c[0].visible ? 1 : 0);
|
|
2430
2430
|
},
|
|
2431
|
-
i:
|
|
2432
|
-
o:
|
|
2431
|
+
i: X,
|
|
2432
|
+
o: X,
|
|
2433
2433
|
d(c) {
|
|
2434
2434
|
c && L(t), a = !1, l();
|
|
2435
2435
|
}
|
|
@@ -2522,9 +2522,9 @@ function Gu(i, t) {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
return a;
|
|
2524
2524
|
}
|
|
2525
|
-
var
|
|
2525
|
+
var _u = 20, Wu = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Nu = typeof MutationObserver != "undefined", Xu = function() {
|
|
2526
2526
|
function i() {
|
|
2527
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Gu(this.refresh.bind(this),
|
|
2527
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Gu(this.refresh.bind(this), _u);
|
|
2528
2528
|
}
|
|
2529
2529
|
return i.prototype.addObserver = function(t) {
|
|
2530
2530
|
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
@@ -2551,7 +2551,7 @@ var Wu = 20, _u = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
2551
2551
|
}, i.prototype.disconnect_ = function() {
|
|
2552
2552
|
!so || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
2553
2553
|
}, i.prototype.onTransitionEnd_ = function(t) {
|
|
2554
|
-
var e = t.propertyName, n = e === void 0 ? "" : e, o =
|
|
2554
|
+
var e = t.propertyName, n = e === void 0 ? "" : e, o = Wu.some(function(s) {
|
|
2555
2555
|
return !!~n.indexOf(s);
|
|
2556
2556
|
});
|
|
2557
2557
|
o && this.refresh();
|
|
@@ -2811,7 +2811,7 @@ function rd(i) {
|
|
|
2811
2811
|
c && L(t);
|
|
2812
2812
|
for (let u = 0; u < e.length; u += 1)
|
|
2813
2813
|
e[u].d();
|
|
2814
|
-
s = !1,
|
|
2814
|
+
s = !1, _e(r);
|
|
2815
2815
|
}
|
|
2816
2816
|
};
|
|
2817
2817
|
}
|
|
@@ -2836,11 +2836,11 @@ function ad(i, t, e) {
|
|
|
2836
2836
|
const x = k.get(B.id);
|
|
2837
2837
|
if (x)
|
|
2838
2838
|
return x;
|
|
2839
|
-
const { x: F, y:
|
|
2839
|
+
const { x: F, y: W, z: O } = B.position, V = new q(F, W, O).clone().distanceTo(o.camera.position);
|
|
2840
2840
|
return k.set(B.id, V), V;
|
|
2841
2841
|
}
|
|
2842
2842
|
return s.map((B) => {
|
|
2843
|
-
const x = c(B), F = x ? u(B, b) : B.transform,
|
|
2843
|
+
const x = c(B), F = x ? u(B, b) : B.transform, W = C(B), V = s.filter((S) => S.visible && C(S) < W).length * 10;
|
|
2844
2844
|
return fe(R({}, B), { visible: x, transform: F, zIndex: V });
|
|
2845
2845
|
});
|
|
2846
2846
|
}
|
|
@@ -2954,7 +2954,7 @@ const D1 = (i) => new ud(i), L1 = {
|
|
|
2954
2954
|
};
|
|
2955
2955
|
var xt = /* @__PURE__ */ ((i) => (i[i.FLOOR = 1] = "FLOOR", i[i.CEILING = 2] = "CEILING", i[i.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", i))(xt || {});
|
|
2956
2956
|
function fi(i) {
|
|
2957
|
-
return
|
|
2957
|
+
return G(this, null, function* () {
|
|
2958
2958
|
try {
|
|
2959
2959
|
return [null, yield i];
|
|
2960
2960
|
} catch (t) {
|
|
@@ -3071,8 +3071,8 @@ function Ad(i) {
|
|
|
3071
3071
|
p(n, [o]) {
|
|
3072
3072
|
o & 1 && T(e, "background-image", `url(${n[0] || bt})`);
|
|
3073
3073
|
},
|
|
3074
|
-
i:
|
|
3075
|
-
o:
|
|
3074
|
+
i: X,
|
|
3075
|
+
o: X,
|
|
3076
3076
|
d(n) {
|
|
3077
3077
|
n && L(t);
|
|
3078
3078
|
}
|
|
@@ -3145,8 +3145,8 @@ function Ed(i) {
|
|
|
3145
3145
|
p(n, [o]) {
|
|
3146
3146
|
n[1] && e.p(n, o);
|
|
3147
3147
|
},
|
|
3148
|
-
i:
|
|
3149
|
-
o:
|
|
3148
|
+
i: X,
|
|
3149
|
+
o: X,
|
|
3150
3150
|
d(n) {
|
|
3151
3151
|
e && e.d(n), n && L(t);
|
|
3152
3152
|
}
|
|
@@ -3169,7 +3169,7 @@ class kd extends oe {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
}
|
|
3171
3171
|
const jt = [];
|
|
3172
|
-
function Po(i, t =
|
|
3172
|
+
function Po(i, t = X) {
|
|
3173
3173
|
let e;
|
|
3174
3174
|
const n = /* @__PURE__ */ new Set();
|
|
3175
3175
|
function o(a) {
|
|
@@ -3187,9 +3187,9 @@ function Po(i, t = N) {
|
|
|
3187
3187
|
function s(a) {
|
|
3188
3188
|
o(a(i));
|
|
3189
3189
|
}
|
|
3190
|
-
function r(a, l =
|
|
3190
|
+
function r(a, l = X) {
|
|
3191
3191
|
const c = [a, l];
|
|
3192
|
-
return n.add(c), n.size === 1 && (e = t(o) ||
|
|
3192
|
+
return n.add(c), n.size === 1 && (e = t(o) || X), a(i), () => {
|
|
3193
3193
|
n.delete(c), n.size === 0 && (e(), e = null);
|
|
3194
3194
|
};
|
|
3195
3195
|
}
|
|
@@ -3210,8 +3210,8 @@ function Dd(i) {
|
|
|
3210
3210
|
p(n, [o]) {
|
|
3211
3211
|
o & 1 && !Ye(t.src, e = n[0]) && y(t, "src", e);
|
|
3212
3212
|
},
|
|
3213
|
-
i:
|
|
3214
|
-
o:
|
|
3213
|
+
i: X,
|
|
3214
|
+
o: X,
|
|
3215
3215
|
d(n) {
|
|
3216
3216
|
n && L(t);
|
|
3217
3217
|
}
|
|
@@ -3243,8 +3243,8 @@ function Td(i) {
|
|
|
3243
3243
|
p(s, [r]) {
|
|
3244
3244
|
r & 1 && o.p(s[0]);
|
|
3245
3245
|
},
|
|
3246
|
-
i:
|
|
3247
|
-
o:
|
|
3246
|
+
i: X,
|
|
3247
|
+
o: X,
|
|
3248
3248
|
d(s) {
|
|
3249
3249
|
s && L(t);
|
|
3250
3250
|
}
|
|
@@ -3439,7 +3439,7 @@ function ns(i) {
|
|
|
3439
3439
|
}
|
|
3440
3440
|
};
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3442
|
+
function _d(i) {
|
|
3443
3443
|
let t, e, n;
|
|
3444
3444
|
function o(a, l) {
|
|
3445
3445
|
if (a[3] === void 0)
|
|
@@ -3462,14 +3462,14 @@ function Wd(i) {
|
|
|
3462
3462
|
p(a, [l]) {
|
|
3463
3463
|
s === (s = o(a)) && r ? r.p(a, l) : (r && r.d(1), r = s && s(a), r && (r.c(), r.m(t, null))), l & 64 && T(t, "opacity", a[6] ? "1" : "0");
|
|
3464
3464
|
},
|
|
3465
|
-
i:
|
|
3466
|
-
o:
|
|
3465
|
+
i: X,
|
|
3466
|
+
o: X,
|
|
3467
3467
|
d(a) {
|
|
3468
|
-
a && L(t), r && r.d(), e = !1,
|
|
3468
|
+
a && L(t), r && r.d(), e = !1, _e(n);
|
|
3469
3469
|
}
|
|
3470
3470
|
};
|
|
3471
3471
|
}
|
|
3472
|
-
function
|
|
3472
|
+
function Wd(i, t) {
|
|
3473
3473
|
const e = i[0], n = i[1];
|
|
3474
3474
|
let o = !1;
|
|
3475
3475
|
for (let s = 0, r = t.length - 1; s < t.length; r = s++) {
|
|
@@ -3483,15 +3483,15 @@ function Nd(i, t, e) {
|
|
|
3483
3483
|
function A(V, S) {
|
|
3484
3484
|
if (S.width === 0 || S.height === 0)
|
|
3485
3485
|
return () => !1;
|
|
3486
|
-
const Q = V.path.map(({ x: de, y: pe }) => [de, pe]),
|
|
3486
|
+
const Q = V.path.map(({ x: de, y: pe }) => [de, pe]), H = V.roomLabel.position, { x: N, y: _ } = H, { width: ee, height: Y } = S, ae = ee / 2, he = Y / 2;
|
|
3487
3487
|
return function(pe) {
|
|
3488
|
-
const Ee =
|
|
3488
|
+
const Ee = N * pe, Ie = _ * pe, Me = Q.map(([Ae, Ce]) => [Ae * pe, Ce * pe]);
|
|
3489
3489
|
return [
|
|
3490
3490
|
[Ee + ae, Ie - he],
|
|
3491
3491
|
[Ee - ae, Ie - he],
|
|
3492
3492
|
[Ee - ae, Ie + he],
|
|
3493
3493
|
[Ee + ae, Ie + he]
|
|
3494
|
-
].every((Ae) =>
|
|
3494
|
+
].every((Ae) => Wd(Ae, Me));
|
|
3495
3495
|
};
|
|
3496
3496
|
}
|
|
3497
3497
|
const v = document.body.clientWidth, b = document.body.clientHeight, w = h.roomLabel, k = w.positionInImage.x * 100 + "%", C = w.positionInImage.y * 100 + "%", I = (v < 500 || b < 500 ? 10 : 14) + "px";
|
|
@@ -3499,7 +3499,7 @@ function Nd(i, t, e) {
|
|
|
3499
3499
|
d.subscribe(function(S) {
|
|
3500
3500
|
e(16, F = !!S && S.id === h.id);
|
|
3501
3501
|
});
|
|
3502
|
-
const
|
|
3502
|
+
const W = (V) => {
|
|
3503
3503
|
e(4, B = V.detail);
|
|
3504
3504
|
}, O = (V) => {
|
|
3505
3505
|
e(5, x = V.detail);
|
|
@@ -3528,7 +3528,7 @@ function Nd(i, t, e) {
|
|
|
3528
3528
|
F,
|
|
3529
3529
|
r,
|
|
3530
3530
|
s,
|
|
3531
|
-
|
|
3531
|
+
W,
|
|
3532
3532
|
O
|
|
3533
3533
|
];
|
|
3534
3534
|
}
|
|
@@ -3538,7 +3538,7 @@ class Xd extends oe {
|
|
|
3538
3538
|
this,
|
|
3539
3539
|
t,
|
|
3540
3540
|
Nd,
|
|
3541
|
-
|
|
3541
|
+
_d,
|
|
3542
3542
|
ne,
|
|
3543
3543
|
{
|
|
3544
3544
|
pxmm: 12,
|
|
@@ -3603,7 +3603,7 @@ function os(i) {
|
|
|
3603
3603
|
c && L(t);
|
|
3604
3604
|
for (let u = 0; u < e.length; u += 1)
|
|
3605
3605
|
e[u].d();
|
|
3606
|
-
s = !1,
|
|
3606
|
+
s = !1, _e(r);
|
|
3607
3607
|
}
|
|
3608
3608
|
};
|
|
3609
3609
|
}
|
|
@@ -3754,7 +3754,7 @@ function ls(i) {
|
|
|
3754
3754
|
m(e, n) {
|
|
3755
3755
|
M(e, t, n);
|
|
3756
3756
|
},
|
|
3757
|
-
p:
|
|
3757
|
+
p: X,
|
|
3758
3758
|
d(e) {
|
|
3759
3759
|
e && L(t);
|
|
3760
3760
|
}
|
|
@@ -3821,8 +3821,8 @@ function Kd(i) {
|
|
|
3821
3821
|
}
|
|
3822
3822
|
p & 22 && (d = g[4], a = $e(a, p, m, 1, g, d, l, r, Co, cs, null, rs)), p & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + g[0] + " svelte-djlmk4") && y(t, "class", c), p & 5 && U(t, "is-row", g[2]);
|
|
3823
3823
|
},
|
|
3824
|
-
i:
|
|
3825
|
-
o:
|
|
3824
|
+
i: X,
|
|
3825
|
+
o: X,
|
|
3826
3826
|
d(g) {
|
|
3827
3827
|
g && L(t), dt(h, g);
|
|
3828
3828
|
for (let p = 0; p < a.length; p += 1)
|
|
@@ -4038,8 +4038,8 @@ function lh(i) {
|
|
|
4038
4038
|
p(e, [n]) {
|
|
4039
4039
|
n & 1 && y(t, "d", e[0]);
|
|
4040
4040
|
},
|
|
4041
|
-
i:
|
|
4042
|
-
o:
|
|
4041
|
+
i: X,
|
|
4042
|
+
o: X,
|
|
4043
4043
|
d(e) {
|
|
4044
4044
|
e && L(t);
|
|
4045
4045
|
}
|
|
@@ -4070,8 +4070,8 @@ function dh(i) {
|
|
|
4070
4070
|
p(a, [l]) {
|
|
4071
4071
|
l & 1 && y(r, "d", a[0]);
|
|
4072
4072
|
},
|
|
4073
|
-
i:
|
|
4074
|
-
o:
|
|
4073
|
+
i: X,
|
|
4074
|
+
o: X,
|
|
4075
4075
|
d(a) {
|
|
4076
4076
|
a && L(t), a && L(s), a && L(r);
|
|
4077
4077
|
}
|
|
@@ -4104,8 +4104,8 @@ function mh(i) {
|
|
|
4104
4104
|
p(d, [m]) {
|
|
4105
4105
|
m & 1 && y(a, "d", d[0]), m & 1 && y(c, "d", d[0]), m & 1 && y(h, "d", d[0]);
|
|
4106
4106
|
},
|
|
4107
|
-
i:
|
|
4108
|
-
o:
|
|
4107
|
+
i: X,
|
|
4108
|
+
o: X,
|
|
4109
4109
|
d(d) {
|
|
4110
4110
|
d && L(t), d && L(r), d && L(a), d && L(l), d && L(c), d && L(u), d && L(h);
|
|
4111
4111
|
}
|
|
@@ -4318,10 +4318,10 @@ function Ih(i) {
|
|
|
4318
4318
|
p(s, [r]) {
|
|
4319
4319
|
r & 4 && y(t, "style", s[2]), r & 3 && e !== (e = `${s[1]}_${s[0].id}`) && y(t, "id", e);
|
|
4320
4320
|
},
|
|
4321
|
-
i:
|
|
4322
|
-
o:
|
|
4321
|
+
i: X,
|
|
4322
|
+
o: X,
|
|
4323
4323
|
d(s) {
|
|
4324
|
-
s && L(t), n = !1,
|
|
4324
|
+
s && L(t), n = !1, _e(o);
|
|
4325
4325
|
}
|
|
4326
4326
|
};
|
|
4327
4327
|
}
|
|
@@ -5051,9 +5051,9 @@ class Io extends oe {
|
|
|
5051
5051
|
}
|
|
5052
5052
|
const Rh = "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";
|
|
5053
5053
|
function Qh(i) {
|
|
5054
|
-
return
|
|
5054
|
+
return G(this, null, function* () {
|
|
5055
5055
|
const t = new Headers({ "Content-Type": "text/plain" }), e = function(o) {
|
|
5056
|
-
return
|
|
5056
|
+
return G(this, null, function* () {
|
|
5057
5057
|
const s = {
|
|
5058
5058
|
index: o.index,
|
|
5059
5059
|
url: o.url,
|
|
@@ -5100,7 +5100,7 @@ function Gh(i) {
|
|
|
5100
5100
|
positionInImage: i.position_in_image
|
|
5101
5101
|
};
|
|
5102
5102
|
}
|
|
5103
|
-
function
|
|
5103
|
+
function _h(i) {
|
|
5104
5104
|
return {
|
|
5105
5105
|
rad: i.rad,
|
|
5106
5106
|
position: i.position,
|
|
@@ -5111,8 +5111,8 @@ function Wh(i) {
|
|
|
5111
5111
|
};
|
|
5112
5112
|
}
|
|
5113
5113
|
function yt(i) {
|
|
5114
|
-
return
|
|
5115
|
-
const t = yield Qh(i.outlines), e = i.computed_data.bounding, n = i.computed_data.floor_datas.map(Hh), o = i.computed_data.entrance ?
|
|
5114
|
+
return G(this, null, function* () {
|
|
5115
|
+
const t = yield Qh(i.outlines), e = i.computed_data.bounding, n = i.computed_data.floor_datas.map(Hh), o = i.computed_data.entrance ? _h(i.computed_data.entrance) : null;
|
|
5116
5116
|
return {
|
|
5117
5117
|
outlines: t,
|
|
5118
5118
|
entrance: o,
|
|
@@ -5122,7 +5122,7 @@ function yt(i) {
|
|
|
5122
5122
|
};
|
|
5123
5123
|
});
|
|
5124
5124
|
}
|
|
5125
|
-
function
|
|
5125
|
+
function Wh(i, t, e) {
|
|
5126
5126
|
return i.map((o) => {
|
|
5127
5127
|
const s = o.position, r = o.icon ? o.icon : {
|
|
5128
5128
|
url: Rh,
|
|
@@ -5157,7 +5157,7 @@ function xo(i, t, e, n) {
|
|
|
5157
5157
|
}
|
|
5158
5158
|
class Bn {
|
|
5159
5159
|
constructor(t, e) {
|
|
5160
|
-
f(this, "VERSION", "2.16.0-
|
|
5160
|
+
f(this, "VERSION", "2.16.0-3");
|
|
5161
5161
|
f(this, "five");
|
|
5162
5162
|
f(this, "hooks", new Jt());
|
|
5163
5163
|
f(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|
|
@@ -5172,13 +5172,13 @@ class Bn {
|
|
|
5172
5172
|
}
|
|
5173
5173
|
class Tt extends Bn {
|
|
5174
5174
|
}
|
|
5175
|
-
var
|
|
5175
|
+
var We = /* @__PURE__ */ ((i) => (i.UnknownError = "UnknownError", i.DataNotLoaded = "DataNotLoaded", i.BreakOffByHide = "BreakOffByHide", i.BreakOffByDisable = "BreakOffByDisable", i.ModelNotLoaded = "ModelNotLoaded", i.ChangeModeError = "ChangeModeError", i.UpdateCameraError = "UpdateCameraError", i))(We || {});
|
|
5176
5176
|
const vl = 500, Xh = 80;
|
|
5177
5177
|
function ro(i, t, e = 4) {
|
|
5178
5178
|
return Math.floor(i * Math.pow(10, e)) === Math.floor(t * Math.pow(10, e));
|
|
5179
5179
|
}
|
|
5180
5180
|
function bl(i, t) {
|
|
5181
|
-
return
|
|
5181
|
+
return G(this, null, function* () {
|
|
5182
5182
|
yield new Promise((e, n) => {
|
|
5183
5183
|
i.changeMode(...t).catch((o) => n(o)), i.once("initAnimationEnded", () => {
|
|
5184
5184
|
const o = i.getCurrentState(), s = t[0];
|
|
@@ -5203,14 +5203,14 @@ function Do(i, t) {
|
|
|
5203
5203
|
return !(!ro(e, s, 2) || !ro(n, r, 2) || o !== a);
|
|
5204
5204
|
}
|
|
5205
5205
|
function yl(i, t, e = !0) {
|
|
5206
|
-
return
|
|
5206
|
+
return G(this, null, function* () {
|
|
5207
5207
|
if (Do(i, t) === !0)
|
|
5208
5208
|
return;
|
|
5209
5209
|
const o = i.getCurrentState();
|
|
5210
5210
|
if (o.mode !== t.mode) {
|
|
5211
5211
|
const [u] = yield fi(bl(i, [t.mode, t, void 0, e]));
|
|
5212
5212
|
if (u)
|
|
5213
|
-
throw new Error(
|
|
5213
|
+
throw new Error(We.ChangeModeError);
|
|
5214
5214
|
return;
|
|
5215
5215
|
}
|
|
5216
5216
|
const { latitude: s, longitude: r, fov: a } = o, l = Math.min(
|
|
@@ -5223,7 +5223,7 @@ function yl(i, t, e = !0) {
|
|
|
5223
5223
|
)
|
|
5224
5224
|
), [c] = yield fi(i.updateCamera(t, l, e));
|
|
5225
5225
|
if (c)
|
|
5226
|
-
throw new Error(
|
|
5226
|
+
throw new Error(We.UpdateCameraError);
|
|
5227
5227
|
});
|
|
5228
5228
|
}
|
|
5229
5229
|
function Yt(i, t, e = 300) {
|
|
@@ -5268,13 +5268,13 @@ class qh extends Tt {
|
|
|
5268
5268
|
var e, n;
|
|
5269
5269
|
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");
|
|
5270
5270
|
});
|
|
5271
|
-
f(this, "show", (...n) =>
|
|
5271
|
+
f(this, "show", (...n) => G(this, [...n], function* (e = {}) {
|
|
5272
5272
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
5273
5273
|
return;
|
|
5274
5274
|
const o = e.userAction !== void 0 ? e.userAction : !0;
|
|
5275
5275
|
this.updateState({ visible: !0 }, o), this._show(e);
|
|
5276
5276
|
}));
|
|
5277
|
-
f(this, "hide", (...n) =>
|
|
5277
|
+
f(this, "hide", (...n) => G(this, [...n], function* (e = {}) {
|
|
5278
5278
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
5279
5279
|
}));
|
|
5280
5280
|
f(this, "updateSize", () => {
|
|
@@ -5292,20 +5292,20 @@ class qh extends Tt {
|
|
|
5292
5292
|
f(this, "_disable", (e) => {
|
|
5293
5293
|
var o, s, r;
|
|
5294
5294
|
const { userAction: n } = e;
|
|
5295
|
-
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this,
|
|
5295
|
+
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, We.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
|
|
5296
5296
|
});
|
|
5297
5297
|
f(this, "_enable", (e) => {
|
|
5298
5298
|
const { userAction: n } = e;
|
|
5299
5299
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n }));
|
|
5300
5300
|
});
|
|
5301
|
-
f(this, "_show", (e) =>
|
|
5301
|
+
f(this, "_show", (e) => G(this, null, function* () {
|
|
5302
5302
|
var r;
|
|
5303
5303
|
if (!this.state.enabled)
|
|
5304
5304
|
return;
|
|
5305
5305
|
if (!((r = this.five.model) != null && r.loaded))
|
|
5306
|
-
throw new Error(
|
|
5306
|
+
throw new Error(We.ModelNotLoaded);
|
|
5307
5307
|
if (!this.data)
|
|
5308
|
-
throw new Error(
|
|
5308
|
+
throw new Error(We.DataNotLoaded);
|
|
5309
5309
|
this.isHiddenByHideFunc = !1;
|
|
5310
5310
|
const n = {
|
|
5311
5311
|
floorIndex: this.floorIndex,
|
|
@@ -5313,7 +5313,7 @@ class qh extends Tt {
|
|
|
5313
5313
|
immediately: !1,
|
|
5314
5314
|
isAutoShow: !1,
|
|
5315
5315
|
userAction: !0
|
|
5316
|
-
}, o = R(R({}, n), e), s = () =>
|
|
5316
|
+
}, o = R(R({}, n), e), s = () => G(this, null, function* () {
|
|
5317
5317
|
this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
|
|
5318
5318
|
let a = !1, l;
|
|
5319
5319
|
this.showRejection = (d) => {
|
|
@@ -5323,7 +5323,7 @@ class qh extends Tt {
|
|
|
5323
5323
|
if (c)
|
|
5324
5324
|
throw c;
|
|
5325
5325
|
if (a)
|
|
5326
|
-
throw l ? new Error(l) : new Error(
|
|
5326
|
+
throw l ? new Error(l) : new Error(We.UnknownError);
|
|
5327
5327
|
this.updateSize(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
|
|
5328
5328
|
const u = o.modelOpacity, h = o.immediately ? 0 : vl;
|
|
5329
5329
|
Yt(this.five, u, h), this.render(h);
|
|
@@ -5342,7 +5342,7 @@ class qh extends Tt {
|
|
|
5342
5342
|
}));
|
|
5343
5343
|
f(this, "_hide", (e) => {
|
|
5344
5344
|
var s;
|
|
5345
|
-
(s = this.showRejection) == null || s.call(this,
|
|
5345
|
+
(s = this.showRejection) == null || s.call(this, We.BreakOffByHide), this.showPromise = void 0;
|
|
5346
5346
|
const o = R(R({}, {
|
|
5347
5347
|
userAction: !0,
|
|
5348
5348
|
isAutoHide: !1
|
|
@@ -5436,7 +5436,7 @@ class qh extends Tt {
|
|
|
5436
5436
|
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
5437
5437
|
}
|
|
5438
5438
|
load(e, n, o = !0) {
|
|
5439
|
-
return
|
|
5439
|
+
return G(this, null, function* () {
|
|
5440
5440
|
function s(u) {
|
|
5441
5441
|
return Object.prototype.hasOwnProperty.apply(u, ["version"]);
|
|
5442
5442
|
}
|
|
@@ -5474,7 +5474,7 @@ class qh extends Tt {
|
|
|
5474
5474
|
this.updateState({ config: e }, n), this.render();
|
|
5475
5475
|
}
|
|
5476
5476
|
formatData(e) {
|
|
5477
|
-
return
|
|
5477
|
+
return G(this, null, function* () {
|
|
5478
5478
|
return yield yt(e.data);
|
|
5479
5479
|
});
|
|
5480
5480
|
}
|
|
@@ -5552,13 +5552,13 @@ class Kh extends Tt {
|
|
|
5552
5552
|
var e, n;
|
|
5553
5553
|
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");
|
|
5554
5554
|
});
|
|
5555
|
-
f(this, "show", (...n) =>
|
|
5555
|
+
f(this, "show", (...n) => G(this, [...n], function* (e = {}) {
|
|
5556
5556
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
5557
5557
|
return;
|
|
5558
5558
|
const o = e.userAction !== void 0 ? e.userAction : !0;
|
|
5559
5559
|
this.updateState({ visible: !0 }, o), this._show(e);
|
|
5560
5560
|
}));
|
|
5561
|
-
f(this, "hide", (...n) =>
|
|
5561
|
+
f(this, "hide", (...n) => G(this, [...n], function* (e = {}) {
|
|
5562
5562
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
5563
5563
|
}));
|
|
5564
5564
|
f(this, "updateSize", () => {
|
|
@@ -5576,20 +5576,20 @@ class Kh extends Tt {
|
|
|
5576
5576
|
f(this, "_disable", (e) => {
|
|
5577
5577
|
var o, s, r;
|
|
5578
5578
|
const { userAction: n } = e;
|
|
5579
|
-
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this,
|
|
5579
|
+
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, We.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
|
|
5580
5580
|
});
|
|
5581
5581
|
f(this, "_enable", (e) => {
|
|
5582
5582
|
const { userAction: n } = e;
|
|
5583
5583
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n }));
|
|
5584
5584
|
});
|
|
5585
|
-
f(this, "_show", (e) =>
|
|
5585
|
+
f(this, "_show", (e) => G(this, null, function* () {
|
|
5586
5586
|
var r;
|
|
5587
5587
|
if (!this.state.enabled)
|
|
5588
5588
|
return;
|
|
5589
5589
|
if (!((r = this.five.model) != null && r.loaded))
|
|
5590
|
-
throw new Error(
|
|
5590
|
+
throw new Error(We.ModelNotLoaded);
|
|
5591
5591
|
if (!this.data)
|
|
5592
|
-
throw new Error(
|
|
5592
|
+
throw new Error(We.DataNotLoaded);
|
|
5593
5593
|
this.isHiddenByHideFunc = !1;
|
|
5594
5594
|
const n = {
|
|
5595
5595
|
floorIndex: this.floorIndex,
|
|
@@ -5597,7 +5597,7 @@ class Kh extends Tt {
|
|
|
5597
5597
|
immediately: !1,
|
|
5598
5598
|
isAutoShow: !1,
|
|
5599
5599
|
userAction: !0
|
|
5600
|
-
}, o = R(R({}, n), e), s = () =>
|
|
5600
|
+
}, o = R(R({}, n), e), s = () => G(this, null, function* () {
|
|
5601
5601
|
this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
|
|
5602
5602
|
let a = !1, l;
|
|
5603
5603
|
this.showRejection = (d) => {
|
|
@@ -5607,7 +5607,7 @@ class Kh extends Tt {
|
|
|
5607
5607
|
if (c)
|
|
5608
5608
|
throw c;
|
|
5609
5609
|
if (a)
|
|
5610
|
-
throw l ? new Error(l) : new Error(
|
|
5610
|
+
throw l ? new Error(l) : new Error(We.UnknownError);
|
|
5611
5611
|
this.updateSize(), this.updatePosition(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
|
|
5612
5612
|
const u = o.modelOpacity, h = o.immediately ? 0 : vl;
|
|
5613
5613
|
Yt(this.five, u, h), this.render(h);
|
|
@@ -5626,7 +5626,7 @@ class Kh extends Tt {
|
|
|
5626
5626
|
}));
|
|
5627
5627
|
f(this, "_hide", (e) => {
|
|
5628
5628
|
var s;
|
|
5629
|
-
(s = this.showRejection) == null || s.call(this,
|
|
5629
|
+
(s = this.showRejection) == null || s.call(this, We.BreakOffByHide), this.showPromise = void 0;
|
|
5630
5630
|
const o = R(R({}, {
|
|
5631
5631
|
userAction: !0,
|
|
5632
5632
|
isAutoHide: !1
|
|
@@ -5718,7 +5718,7 @@ class Kh extends Tt {
|
|
|
5718
5718
|
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
5719
5719
|
}
|
|
5720
5720
|
load(e, n, o = !0) {
|
|
5721
|
-
return
|
|
5721
|
+
return G(this, null, function* () {
|
|
5722
5722
|
function s(u) {
|
|
5723
5723
|
return Object.prototype.hasOwnProperty.apply(u, ["version"]);
|
|
5724
5724
|
}
|
|
@@ -5763,7 +5763,7 @@ class Kh extends Tt {
|
|
|
5763
5763
|
this.container.style.left = s * 100 + "%", this.container.style.top = r * 100 + "%";
|
|
5764
5764
|
}
|
|
5765
5765
|
formatData(e) {
|
|
5766
|
-
return
|
|
5766
|
+
return G(this, null, function* () {
|
|
5767
5767
|
return yield yt(e.data);
|
|
5768
5768
|
});
|
|
5769
5769
|
}
|
|
@@ -5915,7 +5915,7 @@ class $h extends Tt {
|
|
|
5915
5915
|
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
5916
5916
|
}
|
|
5917
5917
|
load(e, n, o = !0) {
|
|
5918
|
-
return
|
|
5918
|
+
return G(this, null, function* () {
|
|
5919
5919
|
function s(u) {
|
|
5920
5920
|
return Object.prototype.hasOwnProperty.apply(u, ["version"]);
|
|
5921
5921
|
}
|
|
@@ -5938,7 +5938,7 @@ class $h extends Tt {
|
|
|
5938
5938
|
return e.appendChild(this.container), this.render(), this;
|
|
5939
5939
|
}
|
|
5940
5940
|
show() {
|
|
5941
|
-
return
|
|
5941
|
+
return G(this, arguments, function* (e = {}) {
|
|
5942
5942
|
if (this.state.visible)
|
|
5943
5943
|
return;
|
|
5944
5944
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5946,7 +5946,7 @@ class $h extends Tt {
|
|
|
5946
5946
|
});
|
|
5947
5947
|
}
|
|
5948
5948
|
hide() {
|
|
5949
|
-
return
|
|
5949
|
+
return G(this, arguments, function* (e = {}) {
|
|
5950
5950
|
if (this.isHiddenByHideFunc = !0, !this.state.visible)
|
|
5951
5951
|
return;
|
|
5952
5952
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -5980,12 +5980,12 @@ class $h extends Tt {
|
|
|
5980
5980
|
this.updateState({ config: e }, n), this.render();
|
|
5981
5981
|
}
|
|
5982
5982
|
formatData(e) {
|
|
5983
|
-
return
|
|
5983
|
+
return G(this, null, function* () {
|
|
5984
5984
|
return yield yt(e.data);
|
|
5985
5985
|
});
|
|
5986
5986
|
}
|
|
5987
5987
|
_show(e) {
|
|
5988
|
-
return
|
|
5988
|
+
return G(this, null, function* () {
|
|
5989
5989
|
if (!this.state.enabled)
|
|
5990
5990
|
return;
|
|
5991
5991
|
this.isHiddenByHideFunc = !1;
|
|
@@ -5996,7 +5996,7 @@ class $h extends Tt {
|
|
|
5996
5996
|
});
|
|
5997
5997
|
}
|
|
5998
5998
|
_hide(e) {
|
|
5999
|
-
return
|
|
5999
|
+
return G(this, null, function* () {
|
|
6000
6000
|
if (!this.state.enabled)
|
|
6001
6001
|
return;
|
|
6002
6002
|
const { userAction: n } = e;
|
|
@@ -6075,8 +6075,8 @@ function tf(i) {
|
|
|
6075
6075
|
p(o, [s]) {
|
|
6076
6076
|
s & 1 && T(n, "background-image", "url(" + (o[0] || bt) + ")"), s & 2 && T(n, "transform", o[1]), s & 4 && T(e, "transform", o[2]);
|
|
6077
6077
|
},
|
|
6078
|
-
i:
|
|
6079
|
-
o:
|
|
6078
|
+
i: X,
|
|
6079
|
+
o: X,
|
|
6080
6080
|
d(o) {
|
|
6081
6081
|
o && L(t);
|
|
6082
6082
|
}
|
|
@@ -6186,8 +6186,8 @@ function af(i) {
|
|
|
6186
6186
|
p(r, [a]) {
|
|
6187
6187
|
a & 1 && (o = r[0], e = $e(e, a, s, 1, r, o, n, t, Co, Ds, null, xs));
|
|
6188
6188
|
},
|
|
6189
|
-
i:
|
|
6190
|
-
o:
|
|
6189
|
+
i: X,
|
|
6190
|
+
o: X,
|
|
6191
6191
|
d(r) {
|
|
6192
6192
|
r && L(t);
|
|
6193
6193
|
for (let a = 0; a < e.length; a += 1)
|
|
@@ -6360,7 +6360,7 @@ function Ss(i) {
|
|
|
6360
6360
|
D(s), e = !1;
|
|
6361
6361
|
},
|
|
6362
6362
|
d(r) {
|
|
6363
|
-
r && L(t), s && s.d(), n = !1,
|
|
6363
|
+
r && L(t), s && s.d(), n = !1, _e(o);
|
|
6364
6364
|
}
|
|
6365
6365
|
};
|
|
6366
6366
|
}
|
|
@@ -6476,10 +6476,10 @@ function gf(i, t, e) {
|
|
|
6476
6476
|
"five" in C && e(0, n = C.five), "visible" in C && e(1, o = C.visible), "hoverEnable" in C && e(2, s = C.hoverEnable), "floorplanData" in C && e(3, r = C.floorplanData), "cameraImageUrl" in C && e(4, a = C.cameraImageUrl), "extraObjects" in C && e(5, l = C.extraObjects), "highlightData" in C && e(6, c = C.highlightData);
|
|
6477
6477
|
}, i.$$.update = () => {
|
|
6478
6478
|
if (i.$$.dirty & 904) {
|
|
6479
|
-
const C = Math.min(d, m), { max: I, min: B } = r.bounding, x = I.x - B.x, F = I.y - B.y,
|
|
6479
|
+
const C = Math.min(d, m), { max: I, min: B } = r.bounding, x = I.x - B.x, F = I.y - B.y, W = function() {
|
|
6480
6480
|
return x > F ? [C, C / x * F] : [C / F * x, C];
|
|
6481
6481
|
}();
|
|
6482
|
-
e(9, g =
|
|
6482
|
+
e(9, g = W[0]), e(12, p = W[1]), e(10, u = g / x);
|
|
6483
6483
|
}
|
|
6484
6484
|
}, [
|
|
6485
6485
|
n,
|
|
@@ -6556,7 +6556,7 @@ class Af extends Tt {
|
|
|
6556
6556
|
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);
|
|
6557
6557
|
}
|
|
6558
6558
|
load(e, n, o = !0) {
|
|
6559
|
-
return
|
|
6559
|
+
return G(this, null, function* () {
|
|
6560
6560
|
function s(c) {
|
|
6561
6561
|
return Object.prototype.hasOwnProperty.apply(c, ["version"]);
|
|
6562
6562
|
}
|
|
@@ -6565,7 +6565,7 @@ class Af extends Tt {
|
|
|
6565
6565
|
});
|
|
6566
6566
|
}
|
|
6567
6567
|
show() {
|
|
6568
|
-
return
|
|
6568
|
+
return G(this, arguments, function* (e = {}) {
|
|
6569
6569
|
if (this.state.visible)
|
|
6570
6570
|
return;
|
|
6571
6571
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -6573,7 +6573,7 @@ class Af extends Tt {
|
|
|
6573
6573
|
});
|
|
6574
6574
|
}
|
|
6575
6575
|
hide() {
|
|
6576
|
-
return
|
|
6576
|
+
return G(this, arguments, function* (e = {}) {
|
|
6577
6577
|
if (!this.state.visible)
|
|
6578
6578
|
return;
|
|
6579
6579
|
const n = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -6610,10 +6610,10 @@ class Af extends Tt {
|
|
|
6610
6610
|
this.setState({ config: e }, { userAction: n }), this.render();
|
|
6611
6611
|
}
|
|
6612
6612
|
setExtraObjectsWith3DPositions(e) {
|
|
6613
|
-
!this.data || (this.extraObjects =
|
|
6613
|
+
!this.data || (this.extraObjects = Wh(e, this.five, this.data), this.render());
|
|
6614
6614
|
}
|
|
6615
6615
|
formatData(e) {
|
|
6616
|
-
return
|
|
6616
|
+
return G(this, null, function* () {
|
|
6617
6617
|
return yield yt(e.data);
|
|
6618
6618
|
});
|
|
6619
6619
|
}
|
|
@@ -6776,7 +6776,7 @@ function wl(i, t) {
|
|
|
6776
6776
|
}
|
|
6777
6777
|
const O1 = (i, t) => {
|
|
6778
6778
|
var u;
|
|
6779
|
-
const e = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", n = (u = t.north_rad) != null ? u : void 0, o = {}, s = (h) =>
|
|
6779
|
+
const e = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", n = (u = t.north_rad) != null ? u : void 0, o = {}, s = (h) => G(void 0, null, function* () {
|
|
6780
6780
|
var V;
|
|
6781
6781
|
const d = (h == null ? void 0 : h.fbx_url) || e, m = (V = h == null ? void 0 : h.north_rad) != null ? V : n;
|
|
6782
6782
|
if (typeof m != "number")
|
|
@@ -6796,8 +6796,8 @@ const O1 = (i, t) => {
|
|
|
6796
6796
|
}
|
|
6797
6797
|
} = i;
|
|
6798
6798
|
o.yBase = x;
|
|
6799
|
-
const
|
|
6800
|
-
return vf(w, { position:
|
|
6799
|
+
const W = { x: (C + B) / 2, y: x - 1.6, z: (I + F) / 2 }, O = 45e-4 * v;
|
|
6800
|
+
return vf(w, { position: W, rotation: k, scale: O }), o.object = w, !0;
|
|
6801
6801
|
}), r = ({ latitude: h }) => {
|
|
6802
6802
|
if (!o.object)
|
|
6803
6803
|
return;
|
|
@@ -6830,9 +6830,9 @@ function bf(i, t) {
|
|
|
6830
6830
|
}
|
|
6831
6831
|
const yf = ({ x: i, y: t, z: e }) => new q(i, t, e), R1 = (i, t) => {
|
|
6832
6832
|
var p, A, v;
|
|
6833
|
-
const e = {}, n = (p = t.animationEnabled) != null ? p : !0, o = (A = t.position) != null ? A : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (b) =>
|
|
6834
|
-
var
|
|
6835
|
-
const w = (
|
|
6833
|
+
const e = {}, n = (p = t.animationEnabled) != null ? p : !0, o = (A = t.position) != null ? A : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (b) => G(void 0, null, function* () {
|
|
6834
|
+
var W, O, V, S, Q, H, N, _;
|
|
6835
|
+
const w = (W = b == null ? void 0 : b.position) != null ? W : o;
|
|
6836
6836
|
if (!w)
|
|
6837
6837
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
6838
6838
|
const k = yf(w), C = (O = b == null ? void 0 : b.rad) != null ? O : s, I = (V = b == null ? void 0 : b.fbx_url) != null ? V : r;
|
|
@@ -6840,10 +6840,10 @@ const yf = ({ x: i, y: t, z: e }) => new q(i, t, e), R1 = (i, t) => {
|
|
|
6840
6840
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${C}`));
|
|
6841
6841
|
const B = yield new Da().loadAsync(I);
|
|
6842
6842
|
B.position.copy(k), B.rotation.z = C, B.scale.set(0.8, 0.8, 0.8), wl(B, { transparent: !0, side: E.DoubleSide });
|
|
6843
|
-
const x = (
|
|
6843
|
+
const x = (N = (H = (Q = (S = B.children) == null ? void 0 : S[0]) == null ? void 0 : Q.children) == null ? void 0 : H[3]) == null ? void 0 : N.clone();
|
|
6844
6844
|
if (!x)
|
|
6845
6845
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${x}`));
|
|
6846
|
-
const F = (
|
|
6846
|
+
const F = (_ = t.name) != null ? _ : "\u5165\u6237\u95E8";
|
|
6847
6847
|
return x.material = new En({ transparent: !0, map: bf(F) }), x.renderOrder = 3, B.children[0].add(x), e.object = B, !0;
|
|
6848
6848
|
}), c = () => {
|
|
6849
6849
|
if (e.animation)
|
|
@@ -6856,14 +6856,14 @@ const yf = ({ x: i, y: t, z: e }) => new q(i, t, e), R1 = (i, t) => {
|
|
|
6856
6856
|
k.timeScale = b;
|
|
6857
6857
|
let C;
|
|
6858
6858
|
const I = () => {
|
|
6859
|
-
let
|
|
6859
|
+
let W = 0, O = 0;
|
|
6860
6860
|
const V = 1e3 / 30, S = (Q) => {
|
|
6861
|
-
|
|
6862
|
-
const
|
|
6863
|
-
|
|
6861
|
+
W = requestAnimationFrame(S);
|
|
6862
|
+
const H = Q - O;
|
|
6863
|
+
H < V || (O = Q, a.forEach((N) => N.update(H / 1e3)), i.needsRender = !0);
|
|
6864
6864
|
};
|
|
6865
|
-
return
|
|
6866
|
-
cancelAnimationFrame(
|
|
6865
|
+
return W = requestAnimationFrame(S), () => {
|
|
6866
|
+
cancelAnimationFrame(W);
|
|
6867
6867
|
};
|
|
6868
6868
|
}, F = { play: () => {
|
|
6869
6869
|
C || (k.play(), C = I(), requestAnimationFrame(() => {
|
|
@@ -6920,7 +6920,7 @@ const ao = (i, t, e) => {
|
|
|
6920
6920
|
const n = Math.PI, o = n * 2;
|
|
6921
6921
|
return i = Ts(i), t = Ts(t), e === lt.Anticlockwise && i < t && (i += o), e === lt.Clockwise && t < i && (t += o), e === lt.Loop && t - i > n ? ao(i, t, lt.Anticlockwise) : e === lt.Loop && i - t > n ? ao(i, t, lt.Clockwise) : { from: i, to: t };
|
|
6922
6922
|
}, Q1 = (i) => {
|
|
6923
|
-
const t = {}, e = (l, c, ...u) =>
|
|
6923
|
+
const t = {}, e = (l, c, ...u) => G(void 0, [l, c, ...u], function* (s, r, a = { preload: !0 }) {
|
|
6924
6924
|
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) => {
|
|
6925
6925
|
const m = s.panoIndex !== void 0 ? s.panoIndex : i.panoIndex;
|
|
6926
6926
|
m !== void 0 ? i.moveToPano(
|
|
@@ -6948,7 +6948,7 @@ const ao = (i, t, e) => {
|
|
|
6948
6948
|
};
|
|
6949
6949
|
return {
|
|
6950
6950
|
move: e,
|
|
6951
|
-
rotate: (l, c, ...u) =>
|
|
6951
|
+
rotate: (l, c, ...u) => G(void 0, [l, c, ...u], function* (s, r, a = {}) {
|
|
6952
6952
|
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== Ve.Mode.Panorama && (yield i.changeMode(Ve.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((m, g) => {
|
|
6953
6953
|
if (!s.panoIndex) {
|
|
6954
6954
|
m(!0);
|
|
@@ -7161,7 +7161,7 @@ const kf = `<style type="text/css">
|
|
|
7161
7161
|
return !1;
|
|
7162
7162
|
for (const w in A) {
|
|
7163
7163
|
const k = A[w], { standingPosition: C } = b.observers[0], I = k.map(({ x: B, z: x, observers: F }) => {
|
|
7164
|
-
const
|
|
7164
|
+
const W = F.length > 0 ? p.rooms[p.observers[F[0]]].name : "", O = v[W] ? v[W].floor : null;
|
|
7165
7165
|
let V = 1 / 0, S = {
|
|
7166
7166
|
index: 0,
|
|
7167
7167
|
x: C.x,
|
|
@@ -7181,8 +7181,8 @@ const kf = `<style type="text/css">
|
|
|
7181
7181
|
});
|
|
7182
7182
|
const Q = new q(B, S.y, x);
|
|
7183
7183
|
Object.assign(Q, { observers: F });
|
|
7184
|
-
const
|
|
7185
|
-
return
|
|
7184
|
+
const H = v[W] ? v[W].roof : null, N = H ? new q(B, H, x) : null;
|
|
7185
|
+
return N && Object.assign(N, { observers: F }), { origin: Q, vertical: N };
|
|
7186
7186
|
});
|
|
7187
7187
|
r[w] = {
|
|
7188
7188
|
origins: I.map((B) => B.origin),
|
|
@@ -7197,12 +7197,12 @@ const kf = `<style type="text/css">
|
|
|
7197
7197
|
for (let B = 0; B < I.length; B++) {
|
|
7198
7198
|
let x = B + 1;
|
|
7199
7199
|
x >= I.length && (x = 0);
|
|
7200
|
-
const { origin: F } = I[B], { origin:
|
|
7201
|
-
o.append(O), r[w].rules.push({ vertical: !1, rule: [F,
|
|
7200
|
+
const { origin: F } = I[B], { origin: W } = I[x], O = n(w, F.distanceTo(W));
|
|
7201
|
+
o.append(O), r[w].rules.push({ vertical: !1, rule: [F, W], $element: O });
|
|
7202
7202
|
}
|
|
7203
7203
|
}
|
|
7204
7204
|
return e.loaded = !0, !0;
|
|
7205
|
-
}, l = (p, A, v) =>
|
|
7205
|
+
}, l = (p, A, v) => G(void 0, null, function* () {
|
|
7206
7206
|
const b = p || t.roomInfo, w = A || t.roomRules;
|
|
7207
7207
|
if (!b || !w)
|
|
7208
7208
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
@@ -7244,31 +7244,31 @@ const kf = `<style type="text/css">
|
|
|
7244
7244
|
if (A === void 0)
|
|
7245
7245
|
return;
|
|
7246
7246
|
let w;
|
|
7247
|
-
for (const
|
|
7248
|
-
|
|
7247
|
+
for (const W in r)
|
|
7248
|
+
W.split(",").indexOf(A.toString()) >= 0 && (w = W);
|
|
7249
7249
|
if (!w) {
|
|
7250
|
-
for (const
|
|
7251
|
-
for (const { $element: O } of r[
|
|
7250
|
+
for (const W in r)
|
|
7251
|
+
for (const { $element: O } of r[W].rules)
|
|
7252
7252
|
O.style.display = "none";
|
|
7253
7253
|
return;
|
|
7254
7254
|
}
|
|
7255
7255
|
const k = v.position, C = v.getWorldDirection(new q()), I = p.clientWidth, B = p.clientHeight;
|
|
7256
7256
|
if (b !== Ve.Mode.Panorama) {
|
|
7257
|
-
for (const
|
|
7258
|
-
for (const { $element: O } of r[
|
|
7257
|
+
for (const W in r)
|
|
7258
|
+
for (const { $element: O } of r[W].rules)
|
|
7259
7259
|
O.style.display = "none";
|
|
7260
7260
|
return;
|
|
7261
7261
|
}
|
|
7262
|
-
for (const
|
|
7263
|
-
for (const { $element: O } of r[
|
|
7264
|
-
O.style.display =
|
|
7265
|
-
const [x] = r[w].origins.slice().filter((
|
|
7266
|
-
const V =
|
|
7262
|
+
for (const W in r)
|
|
7263
|
+
for (const { $element: O } of r[W].rules)
|
|
7264
|
+
O.style.display = W === w ? "block" : "none";
|
|
7265
|
+
const [x] = r[w].origins.slice().filter((W) => W.observers.indexOf(A) >= 0).sort((W, O) => {
|
|
7266
|
+
const V = W.clone().setY(0).sub(k).normalize().angleTo(C.clone().setY(0)), S = O.clone().setY(0).sub(k).normalize().angleTo(C.clone().setY(0));
|
|
7267
7267
|
return V - S;
|
|
7268
7268
|
});
|
|
7269
|
-
for (const { rule:
|
|
7270
|
-
const [S, Q] =
|
|
7271
|
-
if (!
|
|
7269
|
+
for (const { rule: W, vertical: O, $element: V } of r[w].rules) {
|
|
7270
|
+
const [S, Q] = W, H = V.querySelector(".PanoRulerPlugin-rule-line");
|
|
7271
|
+
if (!H)
|
|
7272
7272
|
return;
|
|
7273
7273
|
if (!x) {
|
|
7274
7274
|
V.style.display = "none";
|
|
@@ -7314,8 +7314,8 @@ const kf = `<style type="text/css">
|
|
|
7314
7314
|
Math.pow(te.x - de, 2) + Math.pow(te.y - pe, 2)
|
|
7315
7315
|
) / ce * 100;
|
|
7316
7316
|
}
|
|
7317
|
-
const rt = (Math.PI / 2 - Math.atan2(Ie - de, pe - Me)) / Math.PI * 180, ye =
|
|
7318
|
-
et >= ce || et / 2 >= Ce / 100 * ce || et / 2 >= (1 - Ce / 100) * ce ?
|
|
7317
|
+
const rt = (Math.PI / 2 - Math.atan2(Ie - de, pe - Me)) / Math.PI * 180, ye = H.querySelector(".PanoRulerPlugin-rule-label"), et = ye.children[0].clientWidth;
|
|
7318
|
+
et >= ce || et / 2 >= Ce / 100 * ce || et / 2 >= (1 - Ce / 100) * ce ? H.style.display = "none" : (H.style.display = "block", H.style.width = ce + "px", H.style.left = de + "px", H.style.top = pe + "px", H.style.transform = `rotate(${-rt}deg)`, ye.style.left = `${Ce}%`);
|
|
7319
7319
|
}
|
|
7320
7320
|
}, h = () => Pl(u), d = () => {
|
|
7321
7321
|
var p, A;
|
|
@@ -7431,8 +7431,8 @@ function Tf(i) {
|
|
|
7431
7431
|
p(A, [v]) {
|
|
7432
7432
|
g === (g = m(A)) && p ? p.p(A, v) : (p.d(1), p = g(A), p && (p.c(), p.m(t, e))), v & 1 && s !== (s = A[0].labelElement + "") && Se(r, s), v & 1 && l !== (l = `${A[0].labelOffset}%`) && T(n, "left", l), v & 1 && c !== (c = `${A[0].width}px`) && T(t, "width", c), v & 1 && u !== (u = `${A[0].left}px`) && T(t, "left", u), v & 1 && h !== (h = `${A[0].top}px`) && T(t, "top", h), v & 1 && d !== (d = `rotate(${A[0].rotateDeg}deg)`) && T(t, "transform", d), v & 5 && T(t, "display", A[0].visible && A[2] ? "block" : "none");
|
|
7433
7433
|
},
|
|
7434
|
-
i:
|
|
7435
|
-
o:
|
|
7434
|
+
i: X,
|
|
7435
|
+
o: X,
|
|
7436
7436
|
d(A) {
|
|
7437
7437
|
A && L(t), p.d(), a();
|
|
7438
7438
|
}
|
|
@@ -7550,35 +7550,35 @@ function Vf(i, t, e) {
|
|
|
7550
7550
|
}
|
|
7551
7551
|
return I.length === 0 ? !1 : I;
|
|
7552
7552
|
}, u = (w, k) => {
|
|
7553
|
-
const C = w.clone().project(n.camera), I = (C.x + 1) / 2 * a, B = (-C.y + 1) / 2 * l, x = k.clone().project(n.camera), F = (x.x + 1) / 2 * a,
|
|
7553
|
+
const C = w.clone().project(n.camera), I = (C.x + 1) / 2 * a, B = (-C.y + 1) / 2 * l, x = k.clone().project(n.camera), F = (x.x + 1) / 2 * a, W = (-x.y + 1) / 2 * l, O = Math.sqrt(Math.pow(F - I, 2) + Math.pow(W - B, 2));
|
|
7554
7554
|
return {
|
|
7555
7555
|
startLeft: I,
|
|
7556
7556
|
startTop: B,
|
|
7557
7557
|
endLeft: F,
|
|
7558
|
-
endTop:
|
|
7558
|
+
endTop: W,
|
|
7559
7559
|
distance: O
|
|
7560
7560
|
};
|
|
7561
7561
|
}, h = (w, k, C) => {
|
|
7562
|
-
const I = n.camera.position, B = n.camera.getWorldDirection(new q()), x = w.clone().sub(I).normalize().angleTo(B), F = k.clone().sub(I).normalize().angleTo(B),
|
|
7562
|
+
const I = n.camera.position, B = n.camera.getWorldDirection(new q()), x = w.clone().sub(I).normalize().angleTo(B), F = k.clone().sub(I).normalize().angleTo(B), W = w.distanceTo(k), V = k.clone().sub(k.clone().sub(w).divide(new q(2, 2, 2))).distanceTo(I), { startLeft: S, startTop: Q, endLeft: H, endTop: N, distance: _ } = u(w, k), Y = -((Math.PI / 2 - Math.atan2(H - S, Q - N)) / Math.PI) * 180;
|
|
7563
7563
|
let ae = !0;
|
|
7564
|
-
C || (ae = !1), !nt(w, C) && !nt(k, C) && (ae = !1),
|
|
7565
|
-
let he = 50, de =
|
|
7566
|
-
const pe = c({ x: ~~S, y: ~~Q }, { x: ~~
|
|
7567
|
-
if (pe && pe.length === 1 && (nt(w, C) ? (de = Math.sqrt(Math.pow(pe[0].x - S, 2) + Math.pow(pe[0].y - Q, 2)), he = de /
|
|
7564
|
+
C || (ae = !1), !nt(w, C) && !nt(k, C) && (ae = !1), W < 0.3 && (ae = !1), x > Math.PI / 2 && (ae = !1), F > Math.PI / 2 && (ae = !1), V / W > 8 && (ae = !1);
|
|
7565
|
+
let he = 50, de = _;
|
|
7566
|
+
const pe = c({ x: ~~S, y: ~~Q }, { x: ~~H, y: ~~N });
|
|
7567
|
+
if (pe && pe.length === 1 && (nt(w, C) ? (de = Math.sqrt(Math.pow(pe[0].x - S, 2) + Math.pow(pe[0].y - Q, 2)), he = de / _ * 50) : nt(k, C) && (de = Math.sqrt(Math.pow(pe[0].x - H, 2) + Math.pow(pe[0].y - N, 2)), he = 100 - de / _ * 50)), pe && pe.length === 2) {
|
|
7568
7568
|
const Ee = {
|
|
7569
7569
|
x: (pe[0].x + pe[1].x) / 2,
|
|
7570
7570
|
y: (pe[0].y + pe[1].y) / 2
|
|
7571
7571
|
};
|
|
7572
|
-
he = Math.sqrt(Math.pow(Ee.x - S, 2) + Math.pow(Ee.y - Q, 2)) /
|
|
7572
|
+
he = Math.sqrt(Math.pow(Ee.x - S, 2) + Math.pow(Ee.y - Q, 2)) / _ * 100;
|
|
7573
7573
|
}
|
|
7574
7574
|
return {
|
|
7575
7575
|
startLeft: S,
|
|
7576
7576
|
startTop: Q,
|
|
7577
|
-
distance:
|
|
7577
|
+
distance: _,
|
|
7578
7578
|
deg: Y,
|
|
7579
7579
|
visible: ae,
|
|
7580
7580
|
labelOffset: he,
|
|
7581
|
-
ruleLength:
|
|
7581
|
+
ruleLength: W
|
|
7582
7582
|
};
|
|
7583
7583
|
}, d = () => {
|
|
7584
7584
|
const w = n.panoIndex, k = o.find((O) => O.panoIndex === w);
|
|
@@ -7589,17 +7589,17 @@ function Vf(i, t, e) {
|
|
|
7589
7589
|
const C = n.camera.position, I = n.camera.getWorldDirection(new q()), B = k.lines.map((O) => new q(O.start[0], -O.start[1], -O.start[2])), x = k.lines.map((O) => new q(O.end[0], -O.end[1], -O.end[2])), [F] = B.concat(x).sort((O, V) => {
|
|
7590
7590
|
const S = O.clone().setY(0).sub(C).normalize().angleTo(I.clone().setY(0)), Q = V.clone().setY(0).sub(C).normalize().angleTo(I.clone().setY(0));
|
|
7591
7591
|
return S - Q;
|
|
7592
|
-
}),
|
|
7592
|
+
}), W = k.lines.map((O) => {
|
|
7593
7593
|
var de, pe;
|
|
7594
|
-
const V = O.start, S = O.end, { startLeft: Q, startTop:
|
|
7594
|
+
const V = O.start, S = O.end, { startLeft: Q, startTop: H, distance: N, deg: _, visible: ee, labelOffset: Y, ruleLength: ae } = h(new q(V[0], -V[1], -V[2]), new q(S[0], -S[1], -S[2]), F), he = [];
|
|
7595
7595
|
return O.children && ((de = O.children) == null ? void 0 : de.length) > 0 && ((pe = O.children) == null || pe.forEach((Ee) => {
|
|
7596
7596
|
const Ie = Ee.start, Me = Ee.end, { distance: ce } = u(new q(Ie[0], -Ie[1], -Ie[2]), new q(Me[0], -Me[1], -Me[2]));
|
|
7597
7597
|
he.push({ width: ce, state: Ee.state });
|
|
7598
7598
|
})), {
|
|
7599
|
-
width:
|
|
7599
|
+
width: N,
|
|
7600
7600
|
left: Q,
|
|
7601
|
-
top:
|
|
7602
|
-
rotateDeg:
|
|
7601
|
+
top: H,
|
|
7602
|
+
rotateDeg: _,
|
|
7603
7603
|
state: O.state,
|
|
7604
7604
|
children: he,
|
|
7605
7605
|
labelOffset: Y,
|
|
@@ -7607,7 +7607,7 @@ function Vf(i, t, e) {
|
|
|
7607
7607
|
labelElement: s.distanceText(ae)
|
|
7608
7608
|
};
|
|
7609
7609
|
});
|
|
7610
|
-
e(0, r =
|
|
7610
|
+
e(0, r = W);
|
|
7611
7611
|
}, m = () => yi(d), g = Lo(d, 80);
|
|
7612
7612
|
return Ke(() => {
|
|
7613
7613
|
d(), n.on("panoArrived", d), n.on("modeChange", d), n.on("cameraDirectionUpdate", m), n.on("movingToPano", m), n.on("mouseWheel", () => g()), n.on("pinchGesture", () => g());
|
|
@@ -7640,13 +7640,13 @@ class Rf {
|
|
|
7640
7640
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
7641
7641
|
"style",
|
|
7642
7642
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
7643
|
-
), e && (e.data && this.load(e.data), this.state.options = R(R({}, 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", () =>
|
|
7643
|
+
), e && (e.data && this.load(e.data), this.state.options = R(R({}, 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", () => G(this, null, function* () {
|
|
7644
7644
|
var s, r;
|
|
7645
7645
|
(r = (s = this.five.getElement()) == null ? void 0 : s.parentNode) == null || r.append(this.container);
|
|
7646
7646
|
})), this.five.once("dispose", () => this.dispose());
|
|
7647
7647
|
}
|
|
7648
7648
|
load(t) {
|
|
7649
|
-
return
|
|
7649
|
+
return G(this, null, function* () {
|
|
7650
7650
|
if (!this.five.work)
|
|
7651
7651
|
return;
|
|
7652
7652
|
const e = t.data;
|
|
@@ -7662,7 +7662,7 @@ class Rf {
|
|
|
7662
7662
|
return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
|
|
7663
7663
|
}
|
|
7664
7664
|
render() {
|
|
7665
|
-
return
|
|
7665
|
+
return G(this, null, function* () {
|
|
7666
7666
|
var t;
|
|
7667
7667
|
if (this.state.enabled) {
|
|
7668
7668
|
if (!this.panoRulerProData || !this.container)
|
|
@@ -7706,7 +7706,7 @@ function Ff() {
|
|
|
7706
7706
|
}
|
|
7707
7707
|
const Hf = new E.TextureLoader();
|
|
7708
7708
|
function Ai(i) {
|
|
7709
|
-
return
|
|
7709
|
+
return G(this, null, function* () {
|
|
7710
7710
|
return new Promise((t, e) => {
|
|
7711
7711
|
Hf.load(i, t, void 0, e);
|
|
7712
7712
|
}).then((t) => (t.encoding = E.sRGBEncoding, t.minFilter = E.LinearFilter, t.wrapS = E.ClampToEdgeWrapping, t.wrapT = E.ClampToEdgeWrapping, setTimeout(() => {
|
|
@@ -7846,7 +7846,7 @@ class Gf extends Tt {
|
|
|
7846
7846
|
}), 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();
|
|
7847
7847
|
}
|
|
7848
7848
|
load(e, n, o = !0) {
|
|
7849
|
-
return
|
|
7849
|
+
return G(this, null, function* () {
|
|
7850
7850
|
const s = yield this.formatData(e);
|
|
7851
7851
|
JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = R({}, s), this.init(), n && this.setState(n, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
|
|
7852
7852
|
});
|
|
@@ -7855,7 +7855,7 @@ class Gf extends Tt {
|
|
|
7855
7855
|
return e.version && e.data ? Promise.resolve(e.data) : Promise.resolve(e);
|
|
7856
7856
|
}
|
|
7857
7857
|
init() {
|
|
7858
|
-
return
|
|
7858
|
+
return G(this, null, function* () {
|
|
7859
7859
|
var o, s, r, a;
|
|
7860
7860
|
const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
|
|
7861
7861
|
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));
|
|
@@ -7864,7 +7864,7 @@ class Gf extends Tt {
|
|
|
7864
7864
|
});
|
|
7865
7865
|
}
|
|
7866
7866
|
loadCompassMesh() {
|
|
7867
|
-
return
|
|
7867
|
+
return G(this, null, function* () {
|
|
7868
7868
|
const e = this.state.config.compassImageUrl, n = yield Ai(e), o = new E.CircleGeometry(0.7, 32), s = new E.MeshBasicMaterial({
|
|
7869
7869
|
map: n,
|
|
7870
7870
|
transparent: !0,
|
|
@@ -7875,7 +7875,7 @@ class Gf extends Tt {
|
|
|
7875
7875
|
});
|
|
7876
7876
|
}
|
|
7877
7877
|
loadEntryDoorMesh() {
|
|
7878
|
-
return
|
|
7878
|
+
return G(this, null, function* () {
|
|
7879
7879
|
const e = this.state.config.entryDoorImageUrl, n = yield Ai(e), o = new E.PlaneGeometry(0.2, 0.16), s = new E.MeshBasicMaterial({
|
|
7880
7880
|
map: n,
|
|
7881
7881
|
transparent: !0,
|
|
@@ -7900,7 +7900,7 @@ function qn(i, t, e) {
|
|
|
7900
7900
|
const n = i[t], o = i[e];
|
|
7901
7901
|
n === void 0 || o === void 0 || (i[t] = o, i[e] = n);
|
|
7902
7902
|
}
|
|
7903
|
-
function
|
|
7903
|
+
function _f(i, t, e) {
|
|
7904
7904
|
const n = e / 2;
|
|
7905
7905
|
for (let o = 1; o <= n; o++) {
|
|
7906
7906
|
const s = e - (o - 1);
|
|
@@ -7910,7 +7910,7 @@ function Wf(i, t, e) {
|
|
|
7910
7910
|
}
|
|
7911
7911
|
}
|
|
7912
7912
|
}
|
|
7913
|
-
class
|
|
7913
|
+
class Wf {
|
|
7914
7914
|
constructor(t, e) {
|
|
7915
7915
|
f(this, "width");
|
|
7916
7916
|
f(this, "height");
|
|
@@ -8023,7 +8023,7 @@ class _f {
|
|
|
8023
8023
|
} else
|
|
8024
8024
|
return [this.renderCenter.x, s.y - this.renderCenter.y];
|
|
8025
8025
|
})(), l = 1, c = n / t, u = o / t, h = l * t, d = this.five.getPixels(r - c / 2, a - c / 2, c, u, h), m = Math.floor(n * l), g = Math.floor(o * l);
|
|
8026
|
-
|
|
8026
|
+
_f(d, m, g);
|
|
8027
8027
|
const p = new ImageData(m, g);
|
|
8028
8028
|
p.data.set(d), e.putImageData(p, 0, 0);
|
|
8029
8029
|
}
|
|
@@ -8266,13 +8266,13 @@ function rm(i) {
|
|
|
8266
8266
|
const w = b.clientWidth, k = b.clientHeight, C = w / 2, I = k / 2;
|
|
8267
8267
|
if (e.points.length < 2)
|
|
8268
8268
|
return;
|
|
8269
|
-
const [B, x] = e.points, F = B.position.clone().project(v.camera),
|
|
8270
|
-
if ((() => !(Math.abs(F.z) > 1 || Math.abs(
|
|
8269
|
+
const [B, x] = e.points, F = B.position.clone().project(v.camera), W = x.position.clone().project(v.camera), O = F.clone().lerp(W, 0.5), V = new Ne(F.x * C, F.y * I), S = new Ne(W.x * C, W.y * I), Q = V.distanceTo(S);
|
|
8270
|
+
if ((() => !(Math.abs(F.z) > 1 || Math.abs(W.z) > 1 || !Qi(F) && !Qi(W) || !Qi(O) || Q === 0))() === !1) {
|
|
8271
8271
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
8272
8272
|
return;
|
|
8273
8273
|
}
|
|
8274
|
-
const
|
|
8275
|
-
s.style.transform = `translate(${
|
|
8274
|
+
const N = (O.x + 1) / 2 * w, _ = -(O.y - 1) / 2 * k, Y = -(Math.atan((V.y - S.y) / (V.x - S.x)) * 180) / Math.PI, ae = s.parentElement && o.clientWidth > Q ? -20 : 0;
|
|
8275
|
+
s.style.transform = `translate(${N}px, ${_}px) rotate(${Y}deg) translateY(${ae}px)`, s.style.opacity = "1", s.style.pointerEvents = t ? "all" : "none", r && r.update({ line: e, polyline: e.getPolyline() });
|
|
8276
8276
|
const he = p();
|
|
8277
8277
|
o.innerText = he;
|
|
8278
8278
|
}
|
|
@@ -9492,7 +9492,7 @@ class zm {
|
|
|
9492
9492
|
this.revokeItem.removeEventListener("click", this.onClick), this.measureController.hook.off("modeChange", this.onModeChange);
|
|
9493
9493
|
}
|
|
9494
9494
|
}
|
|
9495
|
-
class
|
|
9495
|
+
class _s {
|
|
9496
9496
|
constructor(t, e) {
|
|
9497
9497
|
f(this, "revoke");
|
|
9498
9498
|
f(this, "container");
|
|
@@ -9640,14 +9640,14 @@ class Vm {
|
|
|
9640
9640
|
this.controller = new e[t](n), this.hook.emit("modeChange", t);
|
|
9641
9641
|
});
|
|
9642
9642
|
var o, s, r, a;
|
|
9643
|
-
this.five = t, this.params = e, this.config = ki(e, ["openParams", "magnifierParams"]), this.model = new Mo(this.config), this.fiveHelper = new Nf(t), this.isMobile = (s = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? s : !1, this.magnifier = new
|
|
9643
|
+
this.five = t, this.params = e, this.config = ki(e, ["openParams", "magnifierParams"]), this.model = new Mo(this.config), this.fiveHelper = new Nf(t), this.isMobile = (s = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? s : !1, this.magnifier = new Wf(t, (r = e.magnifierParams) != null ? r : { width: 190, height: 190, scale: 2 }), this.group = new Ht(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
9644
9644
|
const n = (a = this.params.openParams) != null ? a : {};
|
|
9645
9645
|
if (this.params.useUIController !== !1) {
|
|
9646
9646
|
const l = R({
|
|
9647
9647
|
container: this.container,
|
|
9648
9648
|
openParams: n
|
|
9649
9649
|
}, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
|
|
9650
|
-
this.useUIController = new
|
|
9650
|
+
this.useUIController = new _s(this, l);
|
|
9651
9651
|
}
|
|
9652
9652
|
if (this.params.useGuideController !== !1) {
|
|
9653
9653
|
const l = R({
|
|
@@ -9726,7 +9726,7 @@ class Vm {
|
|
|
9726
9726
|
container: this.container,
|
|
9727
9727
|
mode: this.isMobile ? "mobile" : "pc"
|
|
9728
9728
|
}, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
|
|
9729
|
-
this.useUIController = new
|
|
9729
|
+
this.useUIController = new _s(this, n);
|
|
9730
9730
|
}
|
|
9731
9731
|
}
|
|
9732
9732
|
changeConfigs(t) {
|
|
@@ -9758,13 +9758,13 @@ class Vm {
|
|
|
9758
9758
|
};
|
|
9759
9759
|
}
|
|
9760
9760
|
}
|
|
9761
|
-
const
|
|
9761
|
+
const _1 = function(t, e) {
|
|
9762
9762
|
return new Vm(t, e);
|
|
9763
9763
|
}, Bl = Po(null);
|
|
9764
9764
|
function Om(i) {
|
|
9765
9765
|
le(i, "svelte-19zi46m", ".PanoSpatialTagPlugin__tag-origin.svelte-19zi46m{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-19zi46m:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-19zi46m{transform:translate(-50%, -50%) scale(0.6);animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
|
|
9766
9766
|
}
|
|
9767
|
-
function
|
|
9767
|
+
function Ws(i, t, e) {
|
|
9768
9768
|
const n = i.slice();
|
|
9769
9769
|
return n[3] = t[e], n;
|
|
9770
9770
|
}
|
|
@@ -9791,7 +9791,7 @@ function Ns(i) {
|
|
|
9791
9791
|
function Rm(i) {
|
|
9792
9792
|
let t, e = i[0], n = [];
|
|
9793
9793
|
for (let o = 0; o < e.length; o += 1)
|
|
9794
|
-
n[o] = Ns(
|
|
9794
|
+
n[o] = Ns(Ws(i, e, o));
|
|
9795
9795
|
return {
|
|
9796
9796
|
c() {
|
|
9797
9797
|
for (let o = 0; o < n.length; o += 1)
|
|
@@ -9808,7 +9808,7 @@ function Rm(i) {
|
|
|
9808
9808
|
e = o[0];
|
|
9809
9809
|
let r;
|
|
9810
9810
|
for (r = 0; r < e.length; r += 1) {
|
|
9811
|
-
const a =
|
|
9811
|
+
const a = Ws(o, e, r);
|
|
9812
9812
|
n[r] ? n[r].p(a, s) : (n[r] = Ns(a), n[r].c(), n[r].m(t.parentNode, t));
|
|
9813
9813
|
}
|
|
9814
9814
|
for (; r < n.length; r += 1)
|
|
@@ -9816,8 +9816,8 @@ function Rm(i) {
|
|
|
9816
9816
|
n.length = e.length;
|
|
9817
9817
|
}
|
|
9818
9818
|
},
|
|
9819
|
-
i:
|
|
9820
|
-
o:
|
|
9819
|
+
i: X,
|
|
9820
|
+
o: X,
|
|
9821
9821
|
d(o) {
|
|
9822
9822
|
dt(n, o), o && L(t);
|
|
9823
9823
|
}
|
|
@@ -9852,14 +9852,14 @@ function Gm(i) {
|
|
|
9852
9852
|
p(A, [v]) {
|
|
9853
9853
|
v & 394 && T(e, "transform", "translate(" + A[7] / 2 * A[3] * 3 + "px, " + A[8] / 2 * (A[1] ? -1 : 1) * A[3] * 3 + "px) scale(" + 1 / A[3] + ")"), v & 16 && T(s, "width", A[4] + "rem"), v & 4 && (d.innerHTML = A[2]), v & 8 && T(h, "transform", "scale(" + A[3] * 3 + ")"), v & 1 && m !== (m = "PanoSpatialTagPlugin__" + A[0]) && y(t, "id", m), v & 32 && T(t, "height", 20 * A[5] + "rem"), v & 2 && U(t, "PanoSpatialTagPlugin__tag-upside-down", A[1]), v & 1024 && U(t, "PanoSpatialTagPlugin__tag-show", A[10]), v & 1088 && U(t, "PanoSpatialTagPlugin__tag-hide", A[10] === !1 || A[6]);
|
|
9854
9854
|
},
|
|
9855
|
-
i:
|
|
9856
|
-
o:
|
|
9855
|
+
i: X,
|
|
9856
|
+
o: X,
|
|
9857
9857
|
d(A) {
|
|
9858
9858
|
A && L(t), i[16](null), g = !1, p();
|
|
9859
9859
|
}
|
|
9860
9860
|
};
|
|
9861
9861
|
}
|
|
9862
|
-
function
|
|
9862
|
+
function _m(i, t, e) {
|
|
9863
9863
|
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: h } = t, { events: d } = t, { hooks: m } = t, g = 0, p = 0, A, v, b = setTimeout(
|
|
9864
9864
|
() => {
|
|
9865
9865
|
u || e(10, v = !0), b = void 0;
|
|
@@ -9879,8 +9879,8 @@ function Wm(i, t, e) {
|
|
|
9879
9879
|
x = null;
|
|
9880
9880
|
break;
|
|
9881
9881
|
}
|
|
9882
|
-
B.forEach((
|
|
9883
|
-
F.includes(
|
|
9882
|
+
B.forEach((W) => {
|
|
9883
|
+
F.includes(W) && d[W](n);
|
|
9884
9884
|
}), x = x.parentNode;
|
|
9885
9885
|
}
|
|
9886
9886
|
};
|
|
@@ -9930,12 +9930,12 @@ function Wm(i, t, e) {
|
|
|
9930
9930
|
C
|
|
9931
9931
|
];
|
|
9932
9932
|
}
|
|
9933
|
-
class
|
|
9933
|
+
class Wm extends oe {
|
|
9934
9934
|
constructor(t) {
|
|
9935
9935
|
super(), ie(
|
|
9936
9936
|
this,
|
|
9937
9937
|
t,
|
|
9938
|
-
|
|
9938
|
+
_m,
|
|
9939
9939
|
Gm,
|
|
9940
9940
|
ne,
|
|
9941
9941
|
{
|
|
@@ -10096,7 +10096,7 @@ class qm {
|
|
|
10096
10096
|
}
|
|
10097
10097
|
}
|
|
10098
10098
|
}
|
|
10099
|
-
const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",
|
|
10099
|
+
const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", W1 = (i, t) => {
|
|
10100
10100
|
var Y, ae, he, de, pe, Ee, Ie, Me;
|
|
10101
10101
|
let e = t == null ? void 0 : t.container, n = 1.4;
|
|
10102
10102
|
const o = (Y = t == null ? void 0 : t.wait) != null ? Y : 200, s = (ae = t == null ? void 0 : t.maxNumberOnScreen) != null ? ae : 3, r = (he = t == null ? void 0 : t.minRad) != null ? he : Math.PI / 4, a = (de = t == null ? void 0 : t.nearTolerance) != null ? de : 100, l = (pe = t == null ? void 0 : t.upsideHeight) != null ? pe : 1.6, c = (Ee = t == null ? void 0 : t.minDistance) != null ? Ee : 1.2, u = (Ie = t == null ? void 0 : t.maxDistance) != null ? Ie : 3.5, h = zn(i), d = document.createElement("div");
|
|
@@ -10251,7 +10251,7 @@ const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
10251
10251
|
xe.clone().add(Fo),
|
|
10252
10252
|
xe.clone().add(new E.Vector3(0, Hi, 0)).add(Fo),
|
|
10253
10253
|
xe.clone().add(new E.Vector3(0, Hi, 0))
|
|
10254
|
-
].map((cc) => oc.projectPoint(cc, new E.Vector3())), { container: rc, dispose: ac } = h.create3DDomContainer(sc) || {}, lc = new
|
|
10254
|
+
].map((cc) => oc.projectPoint(cc, new E.Vector3())), { container: rc, dispose: ac } = h.create3DDomContainer(sc) || {}, lc = new Wm({
|
|
10255
10255
|
target: rc,
|
|
10256
10256
|
props: {
|
|
10257
10257
|
id: kt,
|
|
@@ -10288,7 +10288,7 @@ const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
10288
10288
|
}), ce.render && (p.render = ce.render), ce.template && (p.template = ce.template), ce.events && (p.events = ce.events), ce.enabled === !1 && (p.enabled = ce.enabled), ce.folded === !0 && (p.folded = ce.folded);
|
|
10289
10289
|
}, F = (ce) => {
|
|
10290
10290
|
p.intersectObjects = ce, I();
|
|
10291
|
-
},
|
|
10291
|
+
}, W = () => {
|
|
10292
10292
|
p.enabled = !0, I();
|
|
10293
10293
|
}, O = () => {
|
|
10294
10294
|
p.enabled = !1, A.$set({ origins: [] }), p.tags.forEach((ce) => {
|
|
@@ -10306,27 +10306,27 @@ const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
10306
10306
|
p.tags.forEach((Ae) => {
|
|
10307
10307
|
Ae.id === ce && Ae.app.$set({ folded: !1 });
|
|
10308
10308
|
});
|
|
10309
|
-
},
|
|
10309
|
+
}, H = (ce) => {
|
|
10310
10310
|
p.tags.forEach((Ae) => {
|
|
10311
10311
|
Ae.id === ce && Ae.app.$set({ folded: !0 });
|
|
10312
10312
|
});
|
|
10313
|
-
},
|
|
10313
|
+
}, N = () => {
|
|
10314
10314
|
i.once("renderFrame", C);
|
|
10315
|
-
},
|
|
10315
|
+
}, _ = () => {
|
|
10316
10316
|
e || (e = i.getElement().parentElement), e && e.appendChild(d), p.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, I(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", k), i.on("cameraUpdate", v);
|
|
10317
10317
|
}, ee = () => {
|
|
10318
10318
|
g = null, h.disposeAll(), A.$destroy(), p.tags.forEach((ce) => {
|
|
10319
10319
|
ce.app.$destroy(), ce = null;
|
|
10320
|
-
}), p.origins = [], p.tags = [], i.off("modelLoaded",
|
|
10320
|
+
}), p.origins = [], p.tags = [], i.off("modelLoaded", _), i.off("renderFrame", C), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", k), i.off("cameraUpdate", v), i.off("dispose", ee), window.removeEventListener("resize", N, !1);
|
|
10321
10321
|
};
|
|
10322
|
-
return window.addEventListener("resize",
|
|
10322
|
+
return window.addEventListener("resize", N, !1), (Me = i == null ? void 0 : i.model) != null && Me.loaded ? _() : i.once("modelLoaded", _), i.on("dispose", ee), {
|
|
10323
10323
|
load: x,
|
|
10324
10324
|
setIntersectObjects: F,
|
|
10325
10325
|
unfoldAll: V,
|
|
10326
10326
|
foldAll: S,
|
|
10327
10327
|
unfold: Q,
|
|
10328
|
-
fold:
|
|
10329
|
-
enable:
|
|
10328
|
+
fold: H,
|
|
10329
|
+
enable: W,
|
|
10330
10330
|
disable: O,
|
|
10331
10331
|
hooks: m,
|
|
10332
10332
|
dispose: ee
|
|
@@ -10350,8 +10350,8 @@ function Km(i) {
|
|
|
10350
10350
|
p(h, [d]) {
|
|
10351
10351
|
d & 1 && o !== (o = (h[0].name.length > 6 ? `${h[0].name.slice(0, 6)}...` : h[0].name) + "") && Se(s, o), d & 1 && T(e, "top", `-${h[0].strokeLength + 26}px`), d & 1 && T(a, "height", `${h[0].strokeLength}px`), d & 1 && l !== (l = Pe(Oe("item-label-item", { visible: h[0].visible })) + " svelte-1ir3cyd") && y(t, "class", l), d & 1 && T(t, "z-index", h[0].zIndex), d & 1 && T(t, "transform", h[0].transform);
|
|
10352
10352
|
},
|
|
10353
|
-
i:
|
|
10354
|
-
o:
|
|
10353
|
+
i: X,
|
|
10354
|
+
o: X,
|
|
10355
10355
|
d(h) {
|
|
10356
10356
|
h && L(t), c = !1, u();
|
|
10357
10357
|
}
|
|
@@ -10466,14 +10466,14 @@ function og(i, t, e) {
|
|
|
10466
10466
|
const { Raycaster: n, Vector3: o } = E;
|
|
10467
10467
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, h = null, d, m, g = [], p = !0;
|
|
10468
10468
|
const A = (S, Q) => {
|
|
10469
|
-
const
|
|
10470
|
-
|
|
10471
|
-
const [Y] = S.model.intersectRaycaster(
|
|
10469
|
+
const H = new n(), N = S.camera.position.clone(), _ = new o().fromArray(Q.modelPosition), ee = _.distanceTo(N);
|
|
10470
|
+
H.set(N.clone(), _.clone().sub(N).normalize());
|
|
10471
|
+
const [Y] = S.model.intersectRaycaster(H);
|
|
10472
10472
|
return !(Y && Y.distance + 1 < ee);
|
|
10473
10473
|
}, v = (S, Q) => {
|
|
10474
|
-
const
|
|
10475
|
-
return [
|
|
10476
|
-
}, b = (S) => `translate(${S[0]}px, ${S[1]}px)`, w = (S, Q) => g.length === 0 ? !1 : !!g.find((
|
|
10474
|
+
const H = new o(Q.modelPosition[0], Q.modelPosition[1], Q.modelPosition[2]), N = S.project2d(H), _ = N == null ? void 0 : N.x, ee = N == null ? void 0 : N.y;
|
|
10475
|
+
return [_, ee];
|
|
10476
|
+
}, b = (S) => `translate(${S[0]}px, ${S[1]}px)`, w = (S, Q) => g.length === 0 ? !1 : !!g.find((N) => S[0] >= N[0] - Q && S[0] <= N[0] + Q || S[1] >= N[1] - er && S[1] <= N[1] + er);
|
|
10477
10477
|
function k(S, Q) {
|
|
10478
10478
|
switch (Q) {
|
|
10479
10479
|
case Rt.SMALL:
|
|
@@ -10487,30 +10487,30 @@ function og(i, t, e) {
|
|
|
10487
10487
|
}
|
|
10488
10488
|
}
|
|
10489
10489
|
const C = (S, Q) => {
|
|
10490
|
-
const
|
|
10491
|
-
const ee = v(S,
|
|
10490
|
+
const H = Q.map((_) => {
|
|
10491
|
+
const ee = v(S, _), Y = _.name.length * ig, ae = k(_.modelPosition[1], c), de = (r ? A(S, _) : !0) && !w([ee[0], ee[1] + ae], Y);
|
|
10492
10492
|
if (!de)
|
|
10493
|
-
return fe(R({},
|
|
10493
|
+
return fe(R({}, _), { visible: de });
|
|
10494
10494
|
g.push(ee);
|
|
10495
10495
|
const pe = b(ee);
|
|
10496
|
-
return fe(R({},
|
|
10496
|
+
return fe(R({}, _), {
|
|
10497
10497
|
visible: de,
|
|
10498
10498
|
transform: pe,
|
|
10499
10499
|
strokeLength: ae
|
|
10500
10500
|
});
|
|
10501
|
-
}),
|
|
10502
|
-
itemLabelItem:
|
|
10503
|
-
distance: new o(
|
|
10504
|
-
})).sort((
|
|
10505
|
-
return
|
|
10506
|
-
const ee =
|
|
10507
|
-
return ee !== void 0 ? fe(R({},
|
|
10501
|
+
}), N = H.filter(({ visible: _ }) => _).map((_) => ({
|
|
10502
|
+
itemLabelItem: _,
|
|
10503
|
+
distance: new o(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]).clone().distanceTo(S.camera.position)
|
|
10504
|
+
})).sort((_, ee) => _.distance - ee.distance);
|
|
10505
|
+
return H.map((_) => {
|
|
10506
|
+
const ee = N.findIndex((Y) => Y.itemLabelItem.id === _.id);
|
|
10507
|
+
return ee !== void 0 ? fe(R({}, _), { zIndex: ee * 10 }) : _;
|
|
10508
10508
|
});
|
|
10509
10509
|
}, I = () => {
|
|
10510
10510
|
g = [], e(1, h = C(s, h));
|
|
10511
10511
|
};
|
|
10512
10512
|
Ka(() => {
|
|
10513
|
-
|
|
10513
|
+
W();
|
|
10514
10514
|
});
|
|
10515
10515
|
const B = () => {
|
|
10516
10516
|
e(4, p = !1), x();
|
|
@@ -10525,7 +10525,7 @@ function og(i, t, e) {
|
|
|
10525
10525
|
300
|
|
10526
10526
|
), F = () => {
|
|
10527
10527
|
window.addEventListener("resize", O, !1);
|
|
10528
|
-
},
|
|
10528
|
+
}, W = () => {
|
|
10529
10529
|
u !== a && (e(1, h = a), u = a, I());
|
|
10530
10530
|
}, O = () => {
|
|
10531
10531
|
s.once("renderFrame", I);
|
|
@@ -10740,8 +10740,8 @@ const Y1 = (i, { videoElement: t }) => {
|
|
|
10740
10740
|
const F = new E.MeshBasicMaterial({
|
|
10741
10741
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
10742
10742
|
side: E.DoubleSide
|
|
10743
|
-
}),
|
|
10744
|
-
|
|
10743
|
+
}), W = new E.Mesh(w, F);
|
|
10744
|
+
W.renderOrder = 1, W.name = `ModelTVVideoPlugin-${b}-${performance.now()}`;
|
|
10745
10745
|
const O = [v[1], v[2], v[3], v[0]], V = n.create3DDomContainer(O);
|
|
10746
10746
|
if (V != null && V.container) {
|
|
10747
10747
|
const S = document.createElement("div");
|
|
@@ -10749,9 +10749,9 @@ const Y1 = (i, { videoElement: t }) => {
|
|
|
10749
10749
|
const Q = document.createElement("img");
|
|
10750
10750
|
Q.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", Q.style.width = "200px", Q.style.pointerEvents = "auto", Q.onclick = () => {
|
|
10751
10751
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
10752
|
-
}, S.appendChild(Q), o.set(
|
|
10752
|
+
}, S.appendChild(Q), o.set(W, V);
|
|
10753
10753
|
}
|
|
10754
|
-
return
|
|
10754
|
+
return W;
|
|
10755
10755
|
}), u = (v) => {
|
|
10756
10756
|
const b = new E.TextureLoader().load(v);
|
|
10757
10757
|
return b.minFilter = E.LinearFilter, b.magFilter = E.LinearFilter, b.format = E.RGBFormat, b;
|
|
@@ -10767,7 +10767,7 @@ const Y1 = (i, { videoElement: t }) => {
|
|
|
10767
10767
|
} else
|
|
10768
10768
|
k(new Error("Video download Error: " + C.status));
|
|
10769
10769
|
}, C.onerror = (I) => k(I), C.open("GET", v), C.responseType = "blob", C.send();
|
|
10770
|
-
}), d = (v, b) =>
|
|
10770
|
+
}), d = (v, b) => G(void 0, null, function* () {
|
|
10771
10771
|
const { video_src: w, video_poster_src: k, points: C } = v;
|
|
10772
10772
|
e.videoSource = w, e.rectPoints = ag(C).map((I) => I.map(({ x: B, y: x, z: F }) => new E.Vector3(B, x, F))), e.imageTexture = u(k), b && (e.videoElement = b), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
|
|
10773
10773
|
}), m = (v) => {
|
|
@@ -10839,7 +10839,7 @@ function ug(i) {
|
|
|
10839
10839
|
m(e, n) {
|
|
10840
10840
|
M(e, t, n), i[6](t);
|
|
10841
10841
|
},
|
|
10842
|
-
p:
|
|
10842
|
+
p: X,
|
|
10843
10843
|
d(e) {
|
|
10844
10844
|
e && L(t), i[6](null);
|
|
10845
10845
|
}
|
|
@@ -10882,8 +10882,8 @@ function dg(i) {
|
|
|
10882
10882
|
"item-label-item__custom": Boolean(typeof g[0].render == "function")
|
|
10883
10883
|
})) + " svelte-gduhqw") && y(e, "class", o), p & 1 && T(e, "bottom", `${g[0].strokeLength}px`), p & 2 && a !== (a = Pe(Oe("item-label-item__bar", { anchor: g[1] })) + " svelte-gduhqw") && y(r, "class", a), p & 1 && T(r, "height", `${g[0].strokeLength}px`), p & 1 && l !== (l = Pe(Oe("item-label-item", { fold: g[0].isFold })) + " svelte-gduhqw") && y(t, "class", l), p & 1 && T(t, "z-index", g[0].zIndex), p & 1 && T(t, "transform", g[0].transform);
|
|
10884
10884
|
},
|
|
10885
|
-
i:
|
|
10886
|
-
o:
|
|
10885
|
+
i: X,
|
|
10886
|
+
o: X,
|
|
10887
10887
|
d(g) {
|
|
10888
10888
|
g && L(t), m.d(), c = !1, u();
|
|
10889
10889
|
}
|
|
@@ -11075,22 +11075,22 @@ let bg = 11;
|
|
|
11075
11075
|
function yg(i, t, e) {
|
|
11076
11076
|
const { Raycaster: n, Vector3: o } = E;
|
|
11077
11077
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, m = (s == null ? void 0 : s.currentMode) === Ve.Mode.Panorama, g, p, A = [], v = !0;
|
|
11078
|
-
const b = (
|
|
11079
|
-
const
|
|
11080
|
-
return u !== void 0 &&
|
|
11081
|
-
}, w = (
|
|
11082
|
-
const { camera:
|
|
11078
|
+
const b = (H, N) => {
|
|
11079
|
+
const _ = H.camera.position.clone(), ee = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), Y = ee.distanceTo(_);
|
|
11080
|
+
return u !== void 0 && H.state.mode === Ve.Mode.Panorama && Y > u ? !1 : nr(H, ee.clone().sub(_).normalize(), _, Y);
|
|
11081
|
+
}, w = (H) => {
|
|
11082
|
+
const { camera: N, model: _ } = s, { x: ee, y: Y, z: ae } = H.clone().project(N), he = (ee + 1) / 2, de = (2 - (Y + 1)) / 2, Ie = Math.abs(ae) < 1 && [he, de].every((Me) => Me < 1 && Me >= 0);
|
|
11083
11083
|
return Boolean(Ie);
|
|
11084
|
-
}, k = (
|
|
11085
|
-
const
|
|
11084
|
+
}, k = (H, N) => {
|
|
11085
|
+
const _ = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), ee = H.project2d(_), Y = ee == null ? void 0 : ee.x, ae = ee == null ? void 0 : ee.y;
|
|
11086
11086
|
return [Y, ae];
|
|
11087
|
-
}, C = (
|
|
11088
|
-
const
|
|
11089
|
-
if (
|
|
11087
|
+
}, C = (H, N) => {
|
|
11088
|
+
const _ = N.map((Y) => {
|
|
11089
|
+
if (H.state.panoIndex !== Y.panoIndex)
|
|
11090
11090
|
return fe(R({}, Y), { visible: !1 });
|
|
11091
|
-
const ae = k(
|
|
11091
|
+
const ae = k(H, Y);
|
|
11092
11092
|
Y.name.length * bg;
|
|
11093
|
-
const he = gg(Y.modelPosition[1], c), de =
|
|
11093
|
+
const he = gg(Y.modelPosition[1], c), de = H.currentMode === Ve.Mode.Panorama ? w(new o(Y.position[0], Y.position[1], Y.position[2])) : !0, pe = r ? b(H, Y) : !1, Ee = de && !pe;
|
|
11094
11094
|
if (!Ee)
|
|
11095
11095
|
return fe(R({}, Y), { visible: Ee });
|
|
11096
11096
|
A.push(ae);
|
|
@@ -11100,11 +11100,11 @@ function yg(i, t, e) {
|
|
|
11100
11100
|
transform: Ie,
|
|
11101
11101
|
strokeLength: he
|
|
11102
11102
|
});
|
|
11103
|
-
}), ee =
|
|
11103
|
+
}), ee = _.filter(({ visible: Y }) => Y).map((Y) => ({
|
|
11104
11104
|
itemLabelItem: Y,
|
|
11105
|
-
distance: new o(Y.modelPosition[0], Y.modelPosition[1], Y.modelPosition[2]).clone().distanceTo(
|
|
11105
|
+
distance: new o(Y.modelPosition[0], Y.modelPosition[1], Y.modelPosition[2]).clone().distanceTo(H.camera.position)
|
|
11106
11106
|
})).sort((Y, ae) => Y.distance - ae.distance);
|
|
11107
|
-
return
|
|
11107
|
+
return _.map((Y) => {
|
|
11108
11108
|
const ae = ee.findIndex((he) => he.itemLabelItem.id === Y.id);
|
|
11109
11109
|
return ae !== void 0 ? fe(R({}, Y), { zIndex: ae * 10 }) : Y;
|
|
11110
11110
|
});
|
|
@@ -11119,41 +11119,41 @@ function yg(i, t, e) {
|
|
|
11119
11119
|
300
|
|
11120
11120
|
), F = () => {
|
|
11121
11121
|
s.once("renderFrame", I);
|
|
11122
|
-
},
|
|
11122
|
+
}, W = () => {
|
|
11123
11123
|
window.addEventListener("resize", F, !1);
|
|
11124
11124
|
}, O = () => {
|
|
11125
11125
|
h !== a && (e(1, d = ir(a)), h = a, I());
|
|
11126
|
-
}, V = (
|
|
11127
|
-
let
|
|
11128
|
-
for (let Y = 0; Y <
|
|
11129
|
-
const { position: ae, panoIndex: he } =
|
|
11130
|
-
(u === void 0 || de <= u || s.state.mode !== Ve.Mode.Panorama) &&
|
|
11126
|
+
}, V = (H, N) => {
|
|
11127
|
+
let _ = [];
|
|
11128
|
+
for (let Y = 0; Y < N.length; Y++) {
|
|
11129
|
+
const { position: ae, panoIndex: he } = N[Y], de = H.distanceTo(ae);
|
|
11130
|
+
(u === void 0 || de <= u || s.state.mode !== Ve.Mode.Panorama) && _.push({ panoIndex: he, obVector: ae, distance: de });
|
|
11131
11131
|
}
|
|
11132
|
-
|
|
11132
|
+
_ = _.sort((Y, ae) => Y.distance - ae.distance);
|
|
11133
11133
|
let ee;
|
|
11134
|
-
for (let Y = 0; Y <
|
|
11135
|
-
const { obVector: ae, distance: he, panoIndex: de } =
|
|
11136
|
-
if (!nr(s,
|
|
11134
|
+
for (let Y = 0; Y < _.length; Y++) {
|
|
11135
|
+
const { obVector: ae, distance: he, panoIndex: de } = _[Y];
|
|
11136
|
+
if (!nr(s, H, ae, he)) {
|
|
11137
11137
|
ee = de;
|
|
11138
11138
|
break;
|
|
11139
11139
|
}
|
|
11140
11140
|
}
|
|
11141
|
-
return typeof ee == "number" ?
|
|
11142
|
-
}, S = (
|
|
11141
|
+
return typeof ee == "number" ? N[ee] : void 0;
|
|
11142
|
+
}, S = (H) => {
|
|
11143
11143
|
if (s.state.mode === Ve.Mode.Panorama)
|
|
11144
11144
|
return;
|
|
11145
|
-
const
|
|
11146
|
-
if (ee && (
|
|
11147
|
-
const Y =
|
|
11145
|
+
const N = s.work.observers, _ = new o().fromArray(H.position), ee = V(_, N);
|
|
11146
|
+
if (ee && (H.observerIndex = ee.panoIndex), typeof H.observerIndex == "number") {
|
|
11147
|
+
const Y = N[H.observerIndex], ae = _.clone().sub(Y.position).normalize(), he = {
|
|
11148
11148
|
longitude: Math.PI + Math.atan2(ae.x, ae.z),
|
|
11149
11149
|
latitude: Math.acos(ae.y / ae.length()) - Math.PI / 2
|
|
11150
11150
|
};
|
|
11151
11151
|
s.setState(fe(R({}, he), {
|
|
11152
11152
|
mode: Ve.Mode.Panorama,
|
|
11153
|
-
panoIndex:
|
|
11153
|
+
panoIndex: H.observerIndex
|
|
11154
11154
|
})), s.once("initAnimationEnded", () => {
|
|
11155
11155
|
e(1, d = d.map((de) => fe(R({}, de), {
|
|
11156
|
-
isFold: de.id !==
|
|
11156
|
+
isFold: de.id !== H.id
|
|
11157
11157
|
}))), s.once("cameraUpdate", () => {
|
|
11158
11158
|
e(1, d = d.map((de) => fe(R({}, de), { isFold: !1 })));
|
|
11159
11159
|
});
|
|
@@ -11163,15 +11163,15 @@ function yg(i, t, e) {
|
|
|
11163
11163
|
Ka(() => {
|
|
11164
11164
|
O();
|
|
11165
11165
|
}), Ke(() => {
|
|
11166
|
-
e(1, d = ir(a)), h = a, I(),
|
|
11166
|
+
e(1, d = ir(a)), h = a, I(), W(), s.on("cameraUpdate", B);
|
|
11167
11167
|
}), Et(() => {
|
|
11168
11168
|
s.off("cameraUpdate", B), window.removeEventListener("resize", F, !1);
|
|
11169
11169
|
});
|
|
11170
11170
|
function Q() {
|
|
11171
11171
|
g = this.clientWidth, p = this.clientHeight, e(3, g), e(4, p);
|
|
11172
11172
|
}
|
|
11173
|
-
return i.$$set = (
|
|
11174
|
-
"five" in
|
|
11173
|
+
return i.$$set = (H) => {
|
|
11174
|
+
"five" in H && e(7, s = H.five), "modelOcclusionEnable" in H && e(8, r = H.modelOcclusionEnable), "itemLabels" in H && e(9, a = H.itemLabels), "hooks" in H && e(0, l = H.hooks), "displayStrategyType" in H && e(10, c = H.displayStrategyType), "maxVisibleDistance" in H && e(11, u = H.maxVisibleDistance);
|
|
11175
11175
|
}, [
|
|
11176
11176
|
l,
|
|
11177
11177
|
d,
|
|
@@ -11348,8 +11348,8 @@ function kg(i) {
|
|
|
11348
11348
|
p(c, [u]) {
|
|
11349
11349
|
u & 1 && r !== (r = Pe(Oe("plugin-DoorLabelPlugin-cnt", c[0].toward)) + " svelte-wpy7pz") && y(e, "class", r);
|
|
11350
11350
|
},
|
|
11351
|
-
i:
|
|
11352
|
-
o:
|
|
11351
|
+
i: X,
|
|
11352
|
+
o: X,
|
|
11353
11353
|
d(c) {
|
|
11354
11354
|
c && L(t), i[10](null), a = !1, l();
|
|
11355
11355
|
}
|
|
@@ -11482,29 +11482,29 @@ class Bg extends Pg {
|
|
|
11482
11482
|
const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new q()), l = [], c = [...this.labelItems];
|
|
11483
11483
|
if (c.forEach((I, B) => {
|
|
11484
11484
|
if (I.visible) {
|
|
11485
|
-
const x = n.position.distanceTo(I.position), F = I.position.clone().add(new q(0, this.OffsetHeight, 0)), O = F.clone().sub(n.position).normalize().angleTo(a), V = F.clone().project(n), S = (V.x + 1) / 2.2 * 100, Q = (-V.y + 1) / 2.2 * 100,
|
|
11486
|
-
I.left = S, I.top = Q, I.inSight =
|
|
11485
|
+
const x = n.position.distanceTo(I.position), F = I.position.clone().add(new q(0, this.OffsetHeight, 0)), O = F.clone().sub(n.position).normalize().angleTo(a), V = F.clone().project(n), S = (V.x + 1) / 2.2 * 100, Q = (-V.y + 1) / 2.2 * 100, H = S >= 0 && S <= 100 && Q >= 0 && Q <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
|
|
11486
|
+
I.left = S, I.top = Q, I.inSight = H && O < Math.PI / 2, I.cameraToward = Sg(this.five), H ? l.push({ disFromCameraToLabel: x, left: S, top: Q, index: B }) : I.transform = "translate(-50%, -50%)";
|
|
11487
11487
|
} else
|
|
11488
11488
|
I.inSight = !1;
|
|
11489
11489
|
}), l.length > 1) {
|
|
11490
11490
|
let I = 0;
|
|
11491
11491
|
l.sort((B, x) => x.disFromCameraToLabel - B.disFromCameraToLabel);
|
|
11492
11492
|
for (let B = 1; B < l.length; B++) {
|
|
11493
|
-
const { index: x, left: F, top:
|
|
11494
|
-
if (!Q || !
|
|
11493
|
+
const { index: x, left: F, top: W } = l[B - 1], { index: O, left: V, top: S } = l[B], Q = this.container.children[x], H = this.container.children[O];
|
|
11494
|
+
if (!Q || !H)
|
|
11495
11495
|
return;
|
|
11496
|
-
const
|
|
11496
|
+
const N = {
|
|
11497
11497
|
left: s * F / 100,
|
|
11498
|
-
top: r *
|
|
11498
|
+
top: r * W / 100,
|
|
11499
11499
|
width: (d = (h = (u = Q.children) == null ? void 0 : u[0]) == null ? void 0 : h.clientWidth) != null ? d : 0,
|
|
11500
11500
|
height: (p = (g = (m = Q.children) == null ? void 0 : m[0]) == null ? void 0 : g.clientHeight) != null ? p : 0
|
|
11501
|
-
},
|
|
11501
|
+
}, _ = {
|
|
11502
11502
|
left: s * V / 100,
|
|
11503
11503
|
top: r * S / 100,
|
|
11504
|
-
width: (b = (v = (A =
|
|
11505
|
-
height: (C = (k = (w =
|
|
11504
|
+
width: (b = (v = (A = H.children) == null ? void 0 : A[0]) == null ? void 0 : v.clientWidth) != null ? b : 0,
|
|
11505
|
+
height: (C = (k = (w = H.children) == null ? void 0 : w[0]) == null ? void 0 : k.clientHeight) != null ? C : 0
|
|
11506
11506
|
};
|
|
11507
|
-
Lg(
|
|
11507
|
+
Lg(N, _) && (I++, c[x].transform = `translate(-50%, ${(I - 1) * 100 - 50}%)`, c[O].transform = `translate(-50%, ${I * 100 - 50}%)`);
|
|
11508
11508
|
}
|
|
11509
11509
|
}
|
|
11510
11510
|
this.labelItems = c, this.render();
|
|
@@ -11620,30 +11620,38 @@ function Hg(i) {
|
|
|
11620
11620
|
const I = Gg(C);
|
|
11621
11621
|
I && r.add(I);
|
|
11622
11622
|
});
|
|
11623
|
-
const a = Math.ceil(r.getLength() * 100), l = r.getPoints(a), c = l.length, u = Tc(l.map((C) => [C.x, C.z])), d = (
|
|
11623
|
+
const a = Math.ceil(r.getLength() * 100), l = r.getPoints(a), c = l.length, u = Tc(l.map((C) => [C.x, C.z])), d = (c - 1) * Og * Rg, m = 2 * c, g = m * Qg, p = m * Fg, A = new Uint32Array(d), v = new Float32Array(g), b = new Float32Array(p);
|
|
11624
11624
|
let w = 0;
|
|
11625
11625
|
for (let C = 0; C < l.length; C++) {
|
|
11626
|
-
const [I, B] = u[C][0], x = l[C], { x: F, y:
|
|
11626
|
+
const [I, B] = u[C][0], x = l[C], { x: F, y: W, z: O } = x;
|
|
11627
|
+
w += C > 0 ? l[C - 1].clone().sub(l[C]).length() : 0;
|
|
11628
|
+
const V = new q(F + I * o, W + 0.05, O + B * o);
|
|
11627
11629
|
v[C * 6 + 0] = V.x, v[C * 6 + 1] = V.y, v[C * 6 + 2] = V.z;
|
|
11628
|
-
const S = new q(F - I * o,
|
|
11629
|
-
v[C * 6 + 3] = S.x, v[C * 6 + 4] = S.y, v[C * 6 + 5] = S.z
|
|
11630
|
+
const S = new q(F - I * o, W + 0.05, O - B * o);
|
|
11631
|
+
v[C * 6 + 3] = S.x, v[C * 6 + 4] = S.y, v[C * 6 + 5] = S.z;
|
|
11630
11632
|
const Q = w / t / n;
|
|
11631
|
-
b[C * 4 + 0] = 0, b[C * 4 + 1] = Q, b[C * 4 + 2] = 1, b[C * 4 + 3] = Q,
|
|
11633
|
+
if (b[C * 4 + 0] = 0, b[C * 4 + 1] = Q, b[C * 4 + 2] = 1, b[C * 4 + 3] = Q, i.skipPositions) {
|
|
11634
|
+
const H = new E.Vector3().lerpVectors(V, S, 0.5);
|
|
11635
|
+
if (i.skipPositions.some((_) => _.distanceTo(H) < 0.26))
|
|
11636
|
+
continue;
|
|
11637
|
+
}
|
|
11638
|
+
C !== l.length - 1 && (A[C * 6 + 0] = C * 2 + 0, A[C * 6 + 1] = C * 2 + 2, A[C * 6 + 2] = C * 2 + 1, A[C * 6 + 3] = C * 2 + 2, A[C * 6 + 4] = C * 2 + 3, A[C * 6 + 5] = C * 2 + 1);
|
|
11632
11639
|
}
|
|
11633
11640
|
const k = new E.BufferGeometry();
|
|
11634
11641
|
return k.setAttribute("position", new E.BufferAttribute(v, 3)), k.setAttribute("uv", new E.BufferAttribute(b, 2)), k.setIndex(new E.BufferAttribute(A, 1)), k;
|
|
11635
11642
|
}
|
|
11636
11643
|
function Gg(i) {
|
|
11637
|
-
if (
|
|
11644
|
+
if (_g(i)) {
|
|
11638
11645
|
const t = [i.closed, i.curve_type, i.tension], e = i.points.map((o) => new E.Vector3().fromArray(o));
|
|
11639
11646
|
return new E.CatmullRomCurve3(e, ...t);
|
|
11640
11647
|
}
|
|
11641
11648
|
}
|
|
11642
|
-
function
|
|
11649
|
+
function _g(i) {
|
|
11643
11650
|
return i.type === "CatmullRomCurve3";
|
|
11644
11651
|
}
|
|
11645
|
-
const
|
|
11652
|
+
const Wg = `
|
|
11646
11653
|
varying vec2 vUv;
|
|
11654
|
+
|
|
11647
11655
|
void main() {
|
|
11648
11656
|
vUv = uv;
|
|
11649
11657
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
@@ -11695,6 +11703,7 @@ class uo {
|
|
|
11695
11703
|
f(this, "five");
|
|
11696
11704
|
f(this, "mode");
|
|
11697
11705
|
f(this, "path", []);
|
|
11706
|
+
f(this, "skippedPositions", null);
|
|
11698
11707
|
f(this, "textureUrl", "");
|
|
11699
11708
|
f(this, "scale", 1);
|
|
11700
11709
|
f(this, "width", 0.5);
|
|
@@ -11724,7 +11733,7 @@ class uo {
|
|
|
11724
11733
|
f(this, "logError", (t) => Vg("GuideLineModeItem: ", t));
|
|
11725
11734
|
this.five = t, this.mode = e.mode, this.plugin = e.plugin;
|
|
11726
11735
|
const n = new E.BufferGeometry(), o = new E.ShaderMaterial({
|
|
11727
|
-
vertexShader:
|
|
11736
|
+
vertexShader: Wg,
|
|
11728
11737
|
fragmentShader: Ng,
|
|
11729
11738
|
transparent: !0,
|
|
11730
11739
|
uniforms: {
|
|
@@ -11771,18 +11780,32 @@ class uo {
|
|
|
11771
11780
|
this.path = n, this.setGeometryByPath(n, e);
|
|
11772
11781
|
}
|
|
11773
11782
|
setGeometryByPath(t, e) {
|
|
11774
|
-
var a;
|
|
11783
|
+
var a, l, c;
|
|
11775
11784
|
if (this.disposed)
|
|
11776
11785
|
return this.logError("disposed");
|
|
11777
|
-
this.
|
|
11778
|
-
|
|
11786
|
+
const n = (a = e == null ? void 0 : e.scale) != null ? a : this.scale, o = (l = e == null ? void 0 : e.width) != null ? l : this.width, s = (c = e == null ? void 0 : e.unit_length) != null ? c : this.unitLength;
|
|
11787
|
+
this.path = t, this.scale = n, this.width = o, this.unitLength = s;
|
|
11788
|
+
const r = Hg({
|
|
11789
|
+
path: t,
|
|
11790
|
+
width: o * n,
|
|
11791
|
+
unitLength: s * n,
|
|
11792
|
+
skipPositions: this.skippedPositions
|
|
11793
|
+
});
|
|
11779
11794
|
this.mesh.geometry = r;
|
|
11780
11795
|
}
|
|
11796
|
+
setSkippedPanoGroup(t) {
|
|
11797
|
+
if (this.disposed)
|
|
11798
|
+
return this.logError("disposed");
|
|
11799
|
+
if (!this.five.work)
|
|
11800
|
+
return this.logError("setSkippedPanoGroup: work is not ready");
|
|
11801
|
+
const e = t ? t.map((n) => this.five.work.observers[n]).map((n) => n.standingPosition.clone()) : null;
|
|
11802
|
+
this.skippedPositions = e;
|
|
11803
|
+
}
|
|
11781
11804
|
setMartial(t) {
|
|
11782
11805
|
var e;
|
|
11783
11806
|
if (this.disposed)
|
|
11784
11807
|
return this.logError("disposed");
|
|
11785
|
-
t != null && t.color && this.setColor(t.color), t != null && t.opacity && this.setOpacity(t.opacity), (e = t == null ? void 0 : t.texture) != null && e.url && this.setTextureUrl(t.texture.url);
|
|
11808
|
+
t != null && t.color && this.setColor(t.color), t != null && t.opacity && this.setOpacity(t.opacity), (e = t == null ? void 0 : t.texture) != null && e.url && this.setTextureUrl(t.texture.url), t != null && t.background_color && this.setBackgroundColor(t.background_color), t != null && t.background_opacity && this.setBackgroundOpacity(t.background_opacity);
|
|
11786
11809
|
}
|
|
11787
11810
|
setColor(t) {
|
|
11788
11811
|
if (this.disposed)
|
|
@@ -11854,7 +11877,7 @@ class Vl {
|
|
|
11854
11877
|
if (!o)
|
|
11855
11878
|
return;
|
|
11856
11879
|
const s = e.path, r = { url: this.plugin.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }, a = o, l = at({ texture: r }, o);
|
|
11857
|
-
e.path ? n.setGeometryByPath(s, a) : e.pano_group && n.setGeometryByPanoGroup(e.pano_group, a), n.setMartial(l);
|
|
11880
|
+
e.pano_group && t === "panorama" && n.setSkippedPanoGroup(e.pano_group), e.path ? n.setGeometryByPath(s, a) : e.pano_group && n.setGeometryByPanoGroup(e.pano_group, a), n.setMartial(l);
|
|
11858
11881
|
}
|
|
11859
11882
|
}
|
|
11860
11883
|
const $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -11883,7 +11906,7 @@ class Yg extends Tt {
|
|
|
11883
11906
|
Object.assign(window, { [`__${ho}_DEBUG__`]: this });
|
|
11884
11907
|
}
|
|
11885
11908
|
load(e, n, o = !0) {
|
|
11886
|
-
return
|
|
11909
|
+
return G(this, null, function* () {
|
|
11887
11910
|
if (this.state.disposed)
|
|
11888
11911
|
return;
|
|
11889
11912
|
this.clear();
|
|
@@ -11894,7 +11917,7 @@ class Yg extends Tt {
|
|
|
11894
11917
|
});
|
|
11895
11918
|
}
|
|
11896
11919
|
formatData(e) {
|
|
11897
|
-
return
|
|
11920
|
+
return G(this, null, function* () {
|
|
11898
11921
|
const n = this.getDataWithoutVersion(e);
|
|
11899
11922
|
if (Xg(n)) {
|
|
11900
11923
|
const { routes: o } = n;
|
|
@@ -11915,12 +11938,12 @@ class Yg extends Tt {
|
|
|
11915
11938
|
});
|
|
11916
11939
|
}
|
|
11917
11940
|
show(e) {
|
|
11918
|
-
return
|
|
11941
|
+
return G(this, null, function* () {
|
|
11919
11942
|
this.setState({ visible: !0 }, e);
|
|
11920
11943
|
});
|
|
11921
11944
|
}
|
|
11922
11945
|
hide(e) {
|
|
11923
|
-
return
|
|
11946
|
+
return G(this, null, function* () {
|
|
11924
11947
|
this.setState({ visible: !1 }, e);
|
|
11925
11948
|
});
|
|
11926
11949
|
}
|
|
@@ -11965,7 +11988,7 @@ class Yg extends Tt {
|
|
|
11965
11988
|
this.linesGroup && this.five.scene.remove(this.linesGroup), this.hooks.emit("dispose");
|
|
11966
11989
|
}
|
|
11967
11990
|
waitFiveLoaded() {
|
|
11968
|
-
return
|
|
11991
|
+
return G(this, null, function* () {
|
|
11969
11992
|
return new Promise((e) => {
|
|
11970
11993
|
if (this.five.work) {
|
|
11971
11994
|
e();
|
|
@@ -11994,7 +12017,7 @@ function qg(i, t) {
|
|
|
11994
12017
|
const e = lr(i), n = lr(t);
|
|
11995
12018
|
return e.angleTo(n);
|
|
11996
12019
|
}
|
|
11997
|
-
const Jg = (i) =>
|
|
12020
|
+
const Jg = (i) => G(void 0, null, function* () {
|
|
11998
12021
|
try {
|
|
11999
12022
|
i().then(() => {
|
|
12000
12023
|
}, () => {
|
|
@@ -12066,7 +12089,7 @@ class Fl extends Tt {
|
|
|
12066
12089
|
});
|
|
12067
12090
|
}
|
|
12068
12091
|
load(e, n, o) {
|
|
12069
|
-
return
|
|
12092
|
+
return G(this, null, function* () {
|
|
12070
12093
|
var u, h, d, m, g, p;
|
|
12071
12094
|
if (this.state.disposed)
|
|
12072
12095
|
return cr();
|
|
@@ -12107,12 +12130,12 @@ class Fl extends Tt {
|
|
|
12107
12130
|
this.setState({ playing: !1 }, e);
|
|
12108
12131
|
}
|
|
12109
12132
|
show(e) {
|
|
12110
|
-
return
|
|
12133
|
+
return G(this, null, function* () {
|
|
12111
12134
|
this.setState({ visible: !0 }, e);
|
|
12112
12135
|
});
|
|
12113
12136
|
}
|
|
12114
12137
|
hide(e) {
|
|
12115
|
-
return
|
|
12138
|
+
return G(this, null, function* () {
|
|
12116
12139
|
this.setState({ visible: !1 }, e);
|
|
12117
12140
|
});
|
|
12118
12141
|
}
|
|
@@ -12135,7 +12158,7 @@ class Fl extends Tt {
|
|
|
12135
12158
|
this.state = R(R({}, 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), nt(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 });
|
|
12136
12159
|
}
|
|
12137
12160
|
formatData(e) {
|
|
12138
|
-
return
|
|
12161
|
+
return G(this, null, function* () {
|
|
12139
12162
|
this.five.work || (yield this.waitFiveLoaded());
|
|
12140
12163
|
const n = this.five.work.observers, o = (() => {
|
|
12141
12164
|
const s = e;
|
|
@@ -12196,7 +12219,7 @@ class Fl extends Tt {
|
|
|
12196
12219
|
), e ? this.handlePlay(n) : this.handlePause(n), this.state.playing = e;
|
|
12197
12220
|
}
|
|
12198
12221
|
handlePlay(e) {
|
|
12199
|
-
return
|
|
12222
|
+
return G(this, null, function* () {
|
|
12200
12223
|
var m;
|
|
12201
12224
|
const { data: n, state: o, privateState: s, hooks: r } = this;
|
|
12202
12225
|
if (s.playing || !(n != null && n.keyframes) || (n == null ? void 0 : n.keyframes.length) === 0)
|
|
@@ -12206,7 +12229,7 @@ class Fl extends Tt {
|
|
|
12206
12229
|
const l = n.keyframes, c = this.getPauseData();
|
|
12207
12230
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (m = e == null ? void 0 : e.userAction) != null ? m : !0 });
|
|
12208
12231
|
let u = !1;
|
|
12209
|
-
const d = yield (() =>
|
|
12232
|
+
const d = yield (() => G(this, null, function* () {
|
|
12210
12233
|
var g, p;
|
|
12211
12234
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
12212
12235
|
return e.playFromIndex;
|
|
@@ -12250,7 +12273,7 @@ class Fl extends Tt {
|
|
|
12250
12273
|
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 }));
|
|
12251
12274
|
}
|
|
12252
12275
|
playKeyframe(e, n) {
|
|
12253
|
-
return
|
|
12276
|
+
return G(this, null, function* () {
|
|
12254
12277
|
var s;
|
|
12255
12278
|
const { privateState: o } = this;
|
|
12256
12279
|
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();
|
|
@@ -12265,7 +12288,7 @@ class Fl extends Tt {
|
|
|
12265
12288
|
};
|
|
12266
12289
|
}
|
|
12267
12290
|
getPlayPromise(o) {
|
|
12268
|
-
return
|
|
12291
|
+
return G(this, arguments, function* (e, n = {}) {
|
|
12269
12292
|
var r;
|
|
12270
12293
|
const s = e.data;
|
|
12271
12294
|
if (n.duration = (r = n.duration) != null ? r : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!s)
|
|
@@ -12297,7 +12320,7 @@ class Fl extends Tt {
|
|
|
12297
12320
|
});
|
|
12298
12321
|
}
|
|
12299
12322
|
actionPromiseQueue() {
|
|
12300
|
-
return
|
|
12323
|
+
return G(this, null, function* () {
|
|
12301
12324
|
const { privateState: e } = this;
|
|
12302
12325
|
return new Promise((n, o) => {
|
|
12303
12326
|
if (e.currentPlayQueue.length === 0) {
|
|
@@ -12314,7 +12337,7 @@ class Fl extends Tt {
|
|
|
12314
12337
|
});
|
|
12315
12338
|
}
|
|
12316
12339
|
move(e, n) {
|
|
12317
|
-
return
|
|
12340
|
+
return G(this, null, function* () {
|
|
12318
12341
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
12319
12342
|
yield this.changeMode(e);
|
|
12320
12343
|
else if (e.panoIndex !== this.five.panoIndex)
|
|
@@ -12324,7 +12347,7 @@ class Fl extends Tt {
|
|
|
12324
12347
|
});
|
|
12325
12348
|
}
|
|
12326
12349
|
rotate(e, n) {
|
|
12327
|
-
return
|
|
12350
|
+
return G(this, null, function* () {
|
|
12328
12351
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
12329
12352
|
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
12330
12353
|
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
@@ -12333,7 +12356,7 @@ class Fl extends Tt {
|
|
|
12333
12356
|
});
|
|
12334
12357
|
}
|
|
12335
12358
|
updateCamera(o) {
|
|
12336
|
-
return
|
|
12359
|
+
return G(this, arguments, function* (e, n = {}) {
|
|
12337
12360
|
const { five: s, privateState: r, state: a } = this, l = (() => {
|
|
12338
12361
|
var m, g;
|
|
12339
12362
|
const h = (m = a.config) == null ? void 0 : m.speedConfig, d = (g = e.rotateSpeed) != null ? g : h == null ? void 0 : h.rotateSpeed;
|
|
@@ -12358,7 +12381,7 @@ class Fl extends Tt {
|
|
|
12358
12381
|
});
|
|
12359
12382
|
}
|
|
12360
12383
|
changePano(e, n) {
|
|
12361
|
-
return
|
|
12384
|
+
return G(this, null, function* () {
|
|
12362
12385
|
const { five: o, privateState: s, state: r } = this;
|
|
12363
12386
|
if (typeof e.panoIndex != "number" || e.panoIndex === o.panoIndex)
|
|
12364
12387
|
return;
|
|
@@ -12410,7 +12433,7 @@ class Fl extends Tt {
|
|
|
12410
12433
|
return this.five.controller.cameraMotion.progress;
|
|
12411
12434
|
}
|
|
12412
12435
|
changeMode(e, n) {
|
|
12413
|
-
return
|
|
12436
|
+
return G(this, null, function* () {
|
|
12414
12437
|
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, n), this.privateState.modeChanging = !1);
|
|
12415
12438
|
});
|
|
12416
12439
|
}
|
|
@@ -12450,7 +12473,7 @@ class Fl extends Tt {
|
|
|
12450
12473
|
n != null && n.warnLog && tp();
|
|
12451
12474
|
}
|
|
12452
12475
|
waitFiveLoaded() {
|
|
12453
|
-
return
|
|
12476
|
+
return G(this, null, function* () {
|
|
12454
12477
|
return new Promise((e) => {
|
|
12455
12478
|
if (this.five.work) {
|
|
12456
12479
|
e();
|
|
@@ -12497,7 +12520,7 @@ function ip(i, t) {
|
|
|
12497
12520
|
});
|
|
12498
12521
|
}
|
|
12499
12522
|
const De = (i) => i;
|
|
12500
|
-
function
|
|
12523
|
+
function _i(i) {
|
|
12501
12524
|
if (i.length < 3)
|
|
12502
12525
|
return;
|
|
12503
12526
|
const t = i.map(Pn), e = t[1].clone().sub(t[0]), n = t[2].clone().sub(t[1]);
|
|
@@ -13093,7 +13116,7 @@ class wp extends bp {
|
|
|
13093
13116
|
const c = (l = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : l.position;
|
|
13094
13117
|
if (c === void 0)
|
|
13095
13118
|
throw new Error(`getAngleRange(): observerPosition is ${c}`);
|
|
13096
|
-
const u = (() => e.stickType === "3DPoint" ? Pn(e.normal) :
|
|
13119
|
+
const u = (() => e.stickType === "3DPoint" ? Pn(e.normal) : _i(e.position))();
|
|
13097
13120
|
if (!u)
|
|
13098
13121
|
return;
|
|
13099
13122
|
const h = vi(e.position);
|
|
@@ -13185,9 +13208,9 @@ class wp extends bp {
|
|
|
13185
13208
|
if (e.normal)
|
|
13186
13209
|
return Ze(e.normal);
|
|
13187
13210
|
if (e.stickType === "Plane")
|
|
13188
|
-
return
|
|
13211
|
+
return _i(e.position);
|
|
13189
13212
|
if (e.stickType === "Model")
|
|
13190
|
-
return
|
|
13213
|
+
return _i(this.getPositions(e));
|
|
13191
13214
|
}
|
|
13192
13215
|
get filterPointTag() {
|
|
13193
13216
|
return this.tags.filter((e) => e.stickType === "2DPoint" || e.stickType === "3DPoint").filter((e) => e.position);
|
|
@@ -13545,8 +13568,8 @@ function Pp(i) {
|
|
|
13545
13568
|
p(n, [o]) {
|
|
13546
13569
|
n[8] ? e ? e.p(n, o) : (e = fr(n), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
13547
13570
|
},
|
|
13548
|
-
i:
|
|
13549
|
-
o:
|
|
13571
|
+
i: X,
|
|
13572
|
+
o: X,
|
|
13550
13573
|
d(n) {
|
|
13551
13574
|
e && e.d(n), n && L(t);
|
|
13552
13575
|
}
|
|
@@ -13719,7 +13742,7 @@ class st extends oe {
|
|
|
13719
13742
|
function Lp() {
|
|
13720
13743
|
return Math.random().toString(36).slice(-6);
|
|
13721
13744
|
}
|
|
13722
|
-
const
|
|
13745
|
+
const Wi = Lp();
|
|
13723
13746
|
function Sp(i) {
|
|
13724
13747
|
le(i, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
13725
13748
|
}
|
|
@@ -13807,8 +13830,8 @@ function zp(i) {
|
|
|
13807
13830
|
p(r, [a]) {
|
|
13808
13831
|
a & 14 && (o = r[2], t = $e(t, a, s, 1, r, o, e, n.parentNode, Co, Ar, n, pr));
|
|
13809
13832
|
},
|
|
13810
|
-
i:
|
|
13811
|
-
o:
|
|
13833
|
+
i: X,
|
|
13834
|
+
o: X,
|
|
13812
13835
|
d(r) {
|
|
13813
13836
|
for (let a = 0; a < t.length; a += 1)
|
|
13814
13837
|
t[a].d(r);
|
|
@@ -13818,7 +13841,7 @@ function zp(i) {
|
|
|
13818
13841
|
}
|
|
13819
13842
|
function Bp(i, t, e) {
|
|
13820
13843
|
let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
13821
|
-
const c = `__EMOJI_SPLIT_${
|
|
13844
|
+
const c = `__EMOJI_SPLIT_${Wi}__`, u = `__EMOJI_${Wi}__`, h = `__SPACE_${Wi}__`;
|
|
13822
13845
|
let d, m, g = [];
|
|
13823
13846
|
function p(C) {
|
|
13824
13847
|
const I = [], B = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
|
|
@@ -13846,7 +13869,7 @@ function Bp(i, t, e) {
|
|
|
13846
13869
|
if (B > 0)
|
|
13847
13870
|
return B;
|
|
13848
13871
|
}();
|
|
13849
|
-
m =
|
|
13872
|
+
m = _o({
|
|
13850
13873
|
targets: C.slice(0, I).filter(Zt),
|
|
13851
13874
|
autoplay: !1,
|
|
13852
13875
|
duration: 400,
|
|
@@ -13855,7 +13878,7 @@ function Bp(i, t, e) {
|
|
|
13855
13878
|
opacity: [0, 1],
|
|
13856
13879
|
translateX: [4, 0],
|
|
13857
13880
|
translateY: [10, 0],
|
|
13858
|
-
delay:
|
|
13881
|
+
delay: _o.stagger(50),
|
|
13859
13882
|
easing: "easeInOutCubic"
|
|
13860
13883
|
}), a && m.seek(m.duration);
|
|
13861
13884
|
}
|
|
@@ -14001,7 +14024,7 @@ class Gp extends oe {
|
|
|
14001
14024
|
);
|
|
14002
14025
|
}
|
|
14003
14026
|
}
|
|
14004
|
-
function
|
|
14027
|
+
function _p(i, t, e = 20, n = 5) {
|
|
14005
14028
|
return new Promise((o, s) => {
|
|
14006
14029
|
let r = 0;
|
|
14007
14030
|
const a = setInterval(() => {
|
|
@@ -14010,7 +14033,7 @@ function Wp(i, t, e = 20, n = 5) {
|
|
|
14010
14033
|
}, e);
|
|
14011
14034
|
});
|
|
14012
14035
|
}
|
|
14013
|
-
function
|
|
14036
|
+
function Wp(i) {
|
|
14014
14037
|
le(i, "svelte-1fuzm7v", ".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}");
|
|
14015
14038
|
}
|
|
14016
14039
|
function br(i) {
|
|
@@ -14114,7 +14137,7 @@ function Xp(i, t, e) {
|
|
|
14114
14137
|
}, i.$$.update = () => {
|
|
14115
14138
|
if (i.$$.dirty & 7 && c && r && l) {
|
|
14116
14139
|
const { lineHeight: g } = getComputedStyle(c);
|
|
14117
|
-
e(4, d = c.offsetHeight),
|
|
14140
|
+
e(4, d = c.offsetHeight), _p(() => c == null ? void 0 : c.offsetHeight, Boolean).then(() => {
|
|
14118
14141
|
e(4, d = c.offsetHeight);
|
|
14119
14142
|
}), e(3, h = Number(g.replace("px", "")));
|
|
14120
14143
|
}
|
|
@@ -14133,9 +14156,9 @@ function Xp(i, t, e) {
|
|
|
14133
14156
|
m
|
|
14134
14157
|
];
|
|
14135
14158
|
}
|
|
14136
|
-
class
|
|
14159
|
+
class _l extends oe {
|
|
14137
14160
|
constructor(t) {
|
|
14138
|
-
super(), ie(this, t, Xp, Np, ne, { visible: 0, textUnfolded: 8, content: 1 },
|
|
14161
|
+
super(), ie(this, t, Xp, Np, ne, { visible: 0, textUnfolded: 8, content: 1 }, Wp);
|
|
14139
14162
|
}
|
|
14140
14163
|
}
|
|
14141
14164
|
function Yp(i) {
|
|
@@ -14160,7 +14183,7 @@ function wr(i) {
|
|
|
14160
14183
|
outDelay: i[4] + 40 * Math.min((h = (u = i[6][0]) == null ? void 0 : u.content.length) != null ? h : 10, 15),
|
|
14161
14184
|
useLinearColor: !0
|
|
14162
14185
|
}
|
|
14163
|
-
}), r = new
|
|
14186
|
+
}), r = new _l({
|
|
14164
14187
|
props: {
|
|
14165
14188
|
visible: i[2],
|
|
14166
14189
|
textUnfolded: i[1],
|
|
@@ -14193,7 +14216,7 @@ function wr(i) {
|
|
|
14193
14216
|
D(t.$$.fragment, d), D(n.$$.fragment, d), D(r.$$.fragment, d), a = !1;
|
|
14194
14217
|
},
|
|
14195
14218
|
d(d) {
|
|
14196
|
-
Z(t, d), d && L(e), Z(n, d), d && L(o), d && L(s), Z(r), l = !1,
|
|
14219
|
+
Z(t, d), d && L(e), Z(n, d), d && L(o), d && L(s), Z(r), l = !1, _e(c);
|
|
14197
14220
|
}
|
|
14198
14221
|
};
|
|
14199
14222
|
}
|
|
@@ -14308,8 +14331,8 @@ function $p(i) {
|
|
|
14308
14331
|
var c, u;
|
|
14309
14332
|
(c = a[3]) != null && c.inputting ? n || (n = Cr(), 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);
|
|
14310
14333
|
},
|
|
14311
|
-
i:
|
|
14312
|
-
o:
|
|
14334
|
+
i: X,
|
|
14335
|
+
o: X,
|
|
14313
14336
|
d(a) {
|
|
14314
14337
|
n && n.d(a), a && L(t), o && o.d(a), a && L(e);
|
|
14315
14338
|
}
|
|
@@ -14327,8 +14350,8 @@ function e0(i) {
|
|
|
14327
14350
|
p(e, n) {
|
|
14328
14351
|
n & 4 && Se(t, e[2]);
|
|
14329
14352
|
},
|
|
14330
|
-
i:
|
|
14331
|
-
o:
|
|
14353
|
+
i: X,
|
|
14354
|
+
o: X,
|
|
14332
14355
|
d(e) {
|
|
14333
14356
|
e && L(t);
|
|
14334
14357
|
}
|
|
@@ -14736,8 +14759,8 @@ function A0(i) {
|
|
|
14736
14759
|
p(o, [s]) {
|
|
14737
14760
|
s & 1 && U(t, "sc-carousel-dot__dot_active", o[0]);
|
|
14738
14761
|
},
|
|
14739
|
-
i:
|
|
14740
|
-
o:
|
|
14762
|
+
i: X,
|
|
14763
|
+
o: X,
|
|
14741
14764
|
d(o) {
|
|
14742
14765
|
o && L(t), e = !1, n();
|
|
14743
14766
|
}
|
|
@@ -14872,8 +14895,8 @@ function I0(i) {
|
|
|
14872
14895
|
p(s, [r]) {
|
|
14873
14896
|
r & 1 && U(e, "sc-carousel-arrow__arrow-next", s[0] === wt), r & 1 && U(e, "sc-carousel-arrow__arrow-prev", s[0] === qt), r & 2 && U(t, "sc-carousel-arrow__circle_disabled", s[1]);
|
|
14874
14897
|
},
|
|
14875
|
-
i:
|
|
14876
|
-
o:
|
|
14898
|
+
i: X,
|
|
14899
|
+
o: X,
|
|
14877
14900
|
d(s) {
|
|
14878
14901
|
s && L(t), n = !1, o();
|
|
14879
14902
|
}
|
|
@@ -14888,7 +14911,7 @@ function k0(i, t, e) {
|
|
|
14888
14911
|
"direction" in r && e(0, n = r.direction), "disabled" in r && e(1, o = r.disabled);
|
|
14889
14912
|
}, [n, o, s];
|
|
14890
14913
|
}
|
|
14891
|
-
class
|
|
14914
|
+
class Wl extends oe {
|
|
14892
14915
|
constructor(t) {
|
|
14893
14916
|
super(), ie(this, t, k0, I0, ne, { direction: 0, disabled: 1 }, P0);
|
|
14894
14917
|
}
|
|
@@ -14908,8 +14931,8 @@ function D0(i) {
|
|
|
14908
14931
|
p(e, [n]) {
|
|
14909
14932
|
n & 1 && T(t, "width", e[0] + "%");
|
|
14910
14933
|
},
|
|
14911
|
-
i:
|
|
14912
|
-
o:
|
|
14934
|
+
i: X,
|
|
14935
|
+
o: X,
|
|
14913
14936
|
d(e) {
|
|
14914
14937
|
e && L(t);
|
|
14915
14938
|
}
|
|
@@ -15013,7 +15036,7 @@ function G0(i, t) {
|
|
|
15013
15036
|
function Tr(i, t) {
|
|
15014
15037
|
i.removeEventListener("mouseleave", t);
|
|
15015
15038
|
}
|
|
15016
|
-
function
|
|
15039
|
+
function _0(i) {
|
|
15017
15040
|
const t = jo(i);
|
|
15018
15041
|
function e() {
|
|
15019
15042
|
G0(i, n), t("hovered", { value: !0 });
|
|
@@ -15027,11 +15050,11 @@ function W0(i) {
|
|
|
15027
15050
|
}
|
|
15028
15051
|
};
|
|
15029
15052
|
}
|
|
15030
|
-
const
|
|
15053
|
+
const W0 = (i, t) => {
|
|
15031
15054
|
const e = t.x - i.x, n = t.y - i.y;
|
|
15032
15055
|
return Math.sqrt(e * e + n * n);
|
|
15033
15056
|
};
|
|
15034
|
-
function
|
|
15057
|
+
function _t(i, t, e) {
|
|
15035
15058
|
return Math.max(i, Math.min(t, e));
|
|
15036
15059
|
}
|
|
15037
15060
|
function N0(i, t) {
|
|
@@ -15053,7 +15076,7 @@ function U0(i) {
|
|
|
15053
15076
|
tapEndedAt: a,
|
|
15054
15077
|
tapEndedPos: l
|
|
15055
15078
|
}) {
|
|
15056
|
-
const c = a - e, u =
|
|
15079
|
+
const c = a - e, u = W0(n, l);
|
|
15057
15080
|
return c <= j0 && u <= V0;
|
|
15058
15081
|
}
|
|
15059
15082
|
function s(a) {
|
|
@@ -15152,7 +15175,7 @@ function eA({
|
|
|
15152
15175
|
particlesToScroll: n,
|
|
15153
15176
|
particlesCount: o
|
|
15154
15177
|
}) {
|
|
15155
|
-
return
|
|
15178
|
+
return _t(
|
|
15156
15179
|
0,
|
|
15157
15180
|
Math.min(t + i * n, o - e),
|
|
15158
15181
|
o - 1
|
|
@@ -15164,7 +15187,7 @@ function tA({
|
|
|
15164
15187
|
particlesCount: e,
|
|
15165
15188
|
particlesToShow: n
|
|
15166
15189
|
}) {
|
|
15167
|
-
return
|
|
15190
|
+
return _t(
|
|
15168
15191
|
0,
|
|
15169
15192
|
Math.min(i * t, e - n),
|
|
15170
15193
|
e - 1
|
|
@@ -15368,7 +15391,7 @@ function mA({
|
|
|
15368
15391
|
particlesToShow: o,
|
|
15369
15392
|
particlesToScroll: s
|
|
15370
15393
|
}) {
|
|
15371
|
-
const r =
|
|
15394
|
+
const r = _t(0, t, e - 1);
|
|
15372
15395
|
let a = r - 1, l = r + 1;
|
|
15373
15396
|
a = i ? a < 0 ? e - 1 : a : Math.max(0, a), l = i ? l > e - 1 ? 0 : l : Math.min(e - 1, l);
|
|
15374
15397
|
const c = [.../* @__PURE__ */ new Set([
|
|
@@ -15403,7 +15426,7 @@ class AA {
|
|
|
15403
15426
|
this.reset();
|
|
15404
15427
|
const n = Math.min(pA, Math.max(this._autoplayDuration, 1));
|
|
15405
15428
|
let o = -n;
|
|
15406
|
-
this._interval = gA(() =>
|
|
15429
|
+
this._interval = gA(() => G(this, null, function* () {
|
|
15407
15430
|
if (this._paused)
|
|
15408
15431
|
return;
|
|
15409
15432
|
o += n;
|
|
@@ -15513,14 +15536,14 @@ function vA(i) {
|
|
|
15513
15536
|
});
|
|
15514
15537
|
},
|
|
15515
15538
|
setParticlesToShow({ data: r }) {
|
|
15516
|
-
r.particlesToShow =
|
|
15539
|
+
r.particlesToShow = _t(
|
|
15517
15540
|
1,
|
|
15518
15541
|
r.particlesToShowInit,
|
|
15519
15542
|
r.particlesCountWithoutClones
|
|
15520
15543
|
);
|
|
15521
15544
|
},
|
|
15522
15545
|
setParticlesToScroll({ data: r }) {
|
|
15523
|
-
r.particlesToScroll =
|
|
15546
|
+
r.particlesToScroll = _t(
|
|
15524
15547
|
1,
|
|
15525
15548
|
r.particlesToScrollInit,
|
|
15526
15549
|
r.particlesCountWithoutClones
|
|
@@ -15551,7 +15574,7 @@ function vA(i) {
|
|
|
15551
15574
|
});
|
|
15552
15575
|
},
|
|
15553
15576
|
_moveToParticle({ data: r }, a) {
|
|
15554
|
-
r.currentParticleIndex =
|
|
15577
|
+
r.currentParticleIndex = _t(
|
|
15555
15578
|
0,
|
|
15556
15579
|
a,
|
|
15557
15580
|
r.particlesCount - 1
|
|
@@ -15561,17 +15584,17 @@ function vA(i) {
|
|
|
15561
15584
|
r.focused = !r.focused;
|
|
15562
15585
|
},
|
|
15563
15586
|
_applyAutoplayIfNeeded(l) {
|
|
15564
|
-
return
|
|
15587
|
+
return G(this, arguments, function* ({ data: r, methods: a }) {
|
|
15565
15588
|
if (!r.infinite && (r.autoplayDirection === wt && r.currentParticleIndex === r.particlesCount - 1 || r.autoplayDirection === qt && r.currentParticleIndex === 0)) {
|
|
15566
15589
|
t.reset();
|
|
15567
15590
|
return;
|
|
15568
15591
|
}
|
|
15569
15592
|
if (r.autoplay) {
|
|
15570
15593
|
const c = () => fo({
|
|
15571
|
-
[wt]: () =>
|
|
15594
|
+
[wt]: () => G(this, null, function* () {
|
|
15572
15595
|
return a.showNextPage();
|
|
15573
15596
|
}),
|
|
15574
|
-
[qt]: () =>
|
|
15597
|
+
[qt]: () => G(this, null, function* () {
|
|
15575
15598
|
return a.showPrevPage();
|
|
15576
15599
|
})
|
|
15577
15600
|
})(r.autoplayDirection);
|
|
@@ -15580,7 +15603,7 @@ function vA(i) {
|
|
|
15580
15603
|
});
|
|
15581
15604
|
},
|
|
15582
15605
|
_jumpIfNeeded(l) {
|
|
15583
|
-
return
|
|
15606
|
+
return G(this, arguments, function* ({ data: r, methods: a }) {
|
|
15584
15607
|
let c = !1;
|
|
15585
15608
|
return r.infinite && (r.currentParticleIndex === 0 ? (yield a.showParticle(
|
|
15586
15609
|
r.particlesCount - r.clonesCountTotal,
|
|
@@ -15593,24 +15616,24 @@ function vA(i) {
|
|
|
15593
15616
|
});
|
|
15594
15617
|
},
|
|
15595
15618
|
changePage(u, h, d) {
|
|
15596
|
-
return
|
|
15619
|
+
return G(this, arguments, function* ({ data: r, methods: a }, l, c) {
|
|
15597
15620
|
if (t.reset(), r.disabled)
|
|
15598
15621
|
return;
|
|
15599
15622
|
r.disabled = !0, l(), yield a.offsetPage({ animated: wn(c, "animated", !0) }), r.disabled = !1, !(yield a._jumpIfNeeded()) && a._applyAutoplayIfNeeded();
|
|
15600
15623
|
});
|
|
15601
15624
|
},
|
|
15602
15625
|
showNextPage(c, u) {
|
|
15603
|
-
return
|
|
15626
|
+
return G(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
15604
15627
|
r.disabled || (yield a.changePage(a._next, l));
|
|
15605
15628
|
});
|
|
15606
15629
|
},
|
|
15607
15630
|
showPrevPage(c, u) {
|
|
15608
|
-
return
|
|
15631
|
+
return G(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
15609
15632
|
r.disabled || (yield a.changePage(a._prev, l));
|
|
15610
15633
|
});
|
|
15611
15634
|
},
|
|
15612
15635
|
showParticle(c, u, h) {
|
|
15613
|
-
return
|
|
15636
|
+
return G(this, arguments, function* ({ methods: r }, a, l) {
|
|
15614
15637
|
yield r.changePage(
|
|
15615
15638
|
() => r._moveToParticle(a),
|
|
15616
15639
|
l
|
|
@@ -15629,7 +15652,7 @@ function vA(i) {
|
|
|
15629
15652
|
});
|
|
15630
15653
|
},
|
|
15631
15654
|
showPage(c, u, h) {
|
|
15632
|
-
return
|
|
15655
|
+
return G(this, arguments, function* ({ methods: r }, a, l) {
|
|
15633
15656
|
const d = r._getParticleIndexByPageIndex(a);
|
|
15634
15657
|
yield r.showParticle(d, l);
|
|
15635
15658
|
});
|
|
@@ -15716,7 +15739,7 @@ function Qr(i) {
|
|
|
15716
15739
|
}
|
|
15717
15740
|
function PA(i) {
|
|
15718
15741
|
let t, e, n;
|
|
15719
|
-
return e = new
|
|
15742
|
+
return e = new Wl({
|
|
15720
15743
|
props: {
|
|
15721
15744
|
direction: "prev",
|
|
15722
15745
|
disabled: !i[2] && i[5] === 0
|
|
@@ -15802,7 +15825,7 @@ function Hr(i) {
|
|
|
15802
15825
|
}
|
|
15803
15826
|
function IA(i) {
|
|
15804
15827
|
let t, e, n;
|
|
15805
|
-
return e = new
|
|
15828
|
+
return e = new Wl({
|
|
15806
15829
|
props: {
|
|
15807
15830
|
direction: "next",
|
|
15808
15831
|
disabled: !i[2] && i[5] === i[10] - 1
|
|
@@ -15907,7 +15930,7 @@ function xA(i) {
|
|
|
15907
15930
|
me(s, "swipeEnd", i[19]),
|
|
15908
15931
|
me(s, "swipeFailed", i[20]),
|
|
15909
15932
|
me(s, "swipeThresholdReached", i[17]),
|
|
15910
|
-
ut(
|
|
15933
|
+
ut(_0.call(null, o)),
|
|
15911
15934
|
me(o, "hovered", i[21]),
|
|
15912
15935
|
ut(U0.call(null, o)),
|
|
15913
15936
|
me(o, "tapped", i[22])
|
|
@@ -15940,7 +15963,7 @@ function xA(i) {
|
|
|
15940
15963
|
D(m), D(p, w), D(A), D(v), D(b), u = !1;
|
|
15941
15964
|
},
|
|
15942
15965
|
d(w) {
|
|
15943
|
-
w && L(t), m && m.d(), p && p.d(w), i[39](null), A && A.d(), i[40](null), v && v.d(), b && b.d(), h = !1,
|
|
15966
|
+
w && L(t), m && m.d(), p && p.d(w), i[39](null), A && A.d(), i[40](null), v && v.d(), b && b.d(), h = !1, _e(d);
|
|
15944
15967
|
}
|
|
15945
15968
|
};
|
|
15946
15969
|
}
|
|
@@ -15956,30 +15979,30 @@ function DA(i, t, e) {
|
|
|
15956
15979
|
loaded: () => e(6, s = ve)
|
|
15957
15980
|
})(te);
|
|
15958
15981
|
}), p = Ci();
|
|
15959
|
-
let { timingFunction: A = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: k = 500 } = t, { autoplay: C = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: B = wt } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: F = !1 } = t, { dots:
|
|
15982
|
+
let { timingFunction: A = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: k = 500 } = t, { autoplay: C = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: B = wt } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: F = !1 } = t, { dots: W = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: V = 1 } = t, { particlesToScroll: S = 1 } = t;
|
|
15960
15983
|
function Q(te, ve) {
|
|
15961
|
-
return
|
|
15984
|
+
return G(this, null, function* () {
|
|
15962
15985
|
const je = wn(ve, "animated", !0);
|
|
15963
15986
|
if (typeof te != "number")
|
|
15964
15987
|
throw new Error("pageIndex should be a number");
|
|
15965
15988
|
yield m.showPage(te, { animated: je });
|
|
15966
15989
|
});
|
|
15967
15990
|
}
|
|
15968
|
-
function
|
|
15969
|
-
return
|
|
15991
|
+
function H(te) {
|
|
15992
|
+
return G(this, null, function* () {
|
|
15970
15993
|
const ve = wn(te, "animated", !0);
|
|
15971
15994
|
yield m.showPrevPage({ animated: ve });
|
|
15972
15995
|
});
|
|
15973
15996
|
}
|
|
15974
|
-
function
|
|
15975
|
-
return
|
|
15997
|
+
function N(te) {
|
|
15998
|
+
return G(this, null, function* () {
|
|
15976
15999
|
const ve = wn(te, "animated", !0);
|
|
15977
16000
|
yield m.showNextPage({ animated: ve });
|
|
15978
16001
|
});
|
|
15979
16002
|
}
|
|
15980
|
-
let
|
|
16003
|
+
let _ = 0, ee, Y;
|
|
15981
16004
|
const ae = iA(({ width: te }) => {
|
|
15982
|
-
e(11,
|
|
16005
|
+
e(11, _ = te), h.particleWidth = _ / h.particlesToShow, nA({
|
|
15983
16006
|
particlesContainerChildren: Y.children,
|
|
15984
16007
|
particleWidth: h.particleWidth
|
|
15985
16008
|
}), m.offsetPage({ animated: !1 });
|
|
@@ -15997,14 +16020,14 @@ function DA(i, t, e) {
|
|
|
15997
16020
|
});
|
|
15998
16021
|
}
|
|
15999
16022
|
Ke(() => {
|
|
16000
|
-
|
|
16023
|
+
G(this, null, function* () {
|
|
16001
16024
|
yield Jo(), Y && ee && (h.particlesCountWithoutClones = Y.children.length, yield Jo(), h.infinite && he(), h.particlesCount = Y.children.length, m.showPage(w, { animated: !1 }), ae.observe(ee));
|
|
16002
16025
|
});
|
|
16003
16026
|
}), Et(() => {
|
|
16004
16027
|
ae.disconnect(), d.reset();
|
|
16005
16028
|
});
|
|
16006
16029
|
function de(te) {
|
|
16007
|
-
return
|
|
16030
|
+
return G(this, null, function* () {
|
|
16008
16031
|
yield m.showPage(te, { animated: !0 });
|
|
16009
16032
|
});
|
|
16010
16033
|
}
|
|
@@ -16012,7 +16035,7 @@ function DA(i, t, e) {
|
|
|
16012
16035
|
!O || (h.durationMs = 0);
|
|
16013
16036
|
}
|
|
16014
16037
|
function Ee(te) {
|
|
16015
|
-
return
|
|
16038
|
+
return G(this, null, function* () {
|
|
16016
16039
|
!O || (yield fo({
|
|
16017
16040
|
[wt]: m.showNextPage,
|
|
16018
16041
|
[qt]: m.showPrevPage
|
|
@@ -16026,7 +16049,7 @@ function DA(i, t, e) {
|
|
|
16026
16049
|
!O || m.showParticle(h.currentParticleIndex);
|
|
16027
16050
|
}
|
|
16028
16051
|
function ce() {
|
|
16029
|
-
return
|
|
16052
|
+
return G(this, null, function* () {
|
|
16030
16053
|
!O || (yield m.offsetPage({ animated: !0 }));
|
|
16031
16054
|
});
|
|
16032
16055
|
}
|
|
@@ -16039,7 +16062,7 @@ function DA(i, t, e) {
|
|
|
16039
16062
|
function ue() {
|
|
16040
16063
|
m.showPrevPage();
|
|
16041
16064
|
}
|
|
16042
|
-
const qe = () =>
|
|
16065
|
+
const qe = () => _ / 3;
|
|
16043
16066
|
function rt(te) {
|
|
16044
16067
|
Be[te ? "unshift" : "push"](() => {
|
|
16045
16068
|
Y = te, e(13, Y);
|
|
@@ -16052,7 +16075,7 @@ function DA(i, t, e) {
|
|
|
16052
16075
|
}
|
|
16053
16076
|
const et = (te) => de(te.detail);
|
|
16054
16077
|
return i.$$set = (te) => {
|
|
16055
|
-
"timingFunction" in te && e(0, A = te.timingFunction), "arrows" in te && e(1, v = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, k = te.duration), "autoplay" in te && e(26, C = te.autoplay), "autoplayDuration" in te && e(27, I = te.autoplayDuration), "autoplayDirection" in te && e(28, B = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, F = te.autoplayProgressVisible), "dots" in te && e(4,
|
|
16078
|
+
"timingFunction" in te && e(0, A = te.timingFunction), "arrows" in te && e(1, v = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, k = te.duration), "autoplay" in te && e(26, C = te.autoplay), "autoplayDuration" in te && e(27, I = te.autoplayDuration), "autoplayDirection" in te && e(28, B = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, F = te.autoplayProgressVisible), "dots" in te && e(4, W = te.dots), "swiping" in te && e(30, O = te.swiping), "particlesToShow" in te && e(31, V = te.particlesToShow), "particlesToScroll" in te && e(32, S = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
|
|
16056
16079
|
}, i.$$.update = () => {
|
|
16057
16080
|
i.$$.dirty[0] & 32 && p("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite = b), i.$$.dirty[0] & 33554432 && (h.durationMsInit = k), i.$$.dirty[0] & 67108864 && (h.autoplay = C), i.$$.dirty[0] & 134217728 && (h.autoplayDuration = I), i.$$.dirty[0] & 268435456 && (h.autoplayDirection = B), i.$$.dirty[0] & 536870912 && (h.pauseOnFocus = x), i.$$.dirty[1] & 1 && (h.particlesToShowInit = V), i.$$.dirty[1] & 2 && (h.particlesToScrollInit = S);
|
|
16058
16081
|
}, [
|
|
@@ -16060,14 +16083,14 @@ function DA(i, t, e) {
|
|
|
16060
16083
|
v,
|
|
16061
16084
|
b,
|
|
16062
16085
|
F,
|
|
16063
|
-
|
|
16086
|
+
W,
|
|
16064
16087
|
r,
|
|
16065
16088
|
s,
|
|
16066
16089
|
a,
|
|
16067
16090
|
l,
|
|
16068
16091
|
c,
|
|
16069
16092
|
u,
|
|
16070
|
-
|
|
16093
|
+
_,
|
|
16071
16094
|
ee,
|
|
16072
16095
|
Y,
|
|
16073
16096
|
m,
|
|
@@ -16090,8 +16113,8 @@ function DA(i, t, e) {
|
|
|
16090
16113
|
V,
|
|
16091
16114
|
S,
|
|
16092
16115
|
Q,
|
|
16093
|
-
|
|
16094
|
-
|
|
16116
|
+
H,
|
|
16117
|
+
N,
|
|
16095
16118
|
o,
|
|
16096
16119
|
n,
|
|
16097
16120
|
qe,
|
|
@@ -16144,7 +16167,7 @@ class LA extends oe {
|
|
|
16144
16167
|
function SA(i) {
|
|
16145
16168
|
le(i, "svelte-159ski6", ".media-item.svelte-159ski6.svelte-159ski6{position:relative;height:100%}.media-content.svelte-159ski6.svelte-159ski6{position:relative;pointer-events:auto;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.media-content.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none}.video-icon.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-159ski6.svelte-159ski6{display:none;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none;display:block}.video-icon.svelte-159ski6.svelte-159ski6{pointer-events:auto}.video-icon.large.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem}.video-icon.small.svelte-159ski6.svelte-159ski6{width:1.75rem;height:1.75rem}.video-icon.svelte-159ski6 .video-icon-img.svelte-159ski6{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-159ski6 .video-icon-img.canPlay.svelte-159ski6{cursor:pointer}");
|
|
16146
16169
|
}
|
|
16147
|
-
function
|
|
16170
|
+
function _r(i) {
|
|
16148
16171
|
let t;
|
|
16149
16172
|
function e(s, r) {
|
|
16150
16173
|
if (s[2].type === "Image")
|
|
@@ -16225,7 +16248,7 @@ function zA(i) {
|
|
|
16225
16248
|
c & 64 && e !== (e = `object-fit: ${l[6]};`) && y(t, "style", e), c & 4 && !Ye(t.src, n = l[2].videoCoverUrl ? l[2].url : l[2].url + "#t=0.1") && y(t, "src", n), c & 4 && o !== (o = l[2].videoCoverUrl) && y(t, "poster", o), c & 4 && s !== (s = l[2].videoCoverUrl ? "none" : "auto") && y(t, "preload", s), c & 1024 && U(t, "showPlayButton", l[10]);
|
|
16226
16249
|
},
|
|
16227
16250
|
d(l) {
|
|
16228
|
-
l && L(t), i[19](null), r = !1,
|
|
16251
|
+
l && L(t), i[19](null), r = !1, _e(a);
|
|
16229
16252
|
}
|
|
16230
16253
|
};
|
|
16231
16254
|
}
|
|
@@ -16247,7 +16270,7 @@ function BA(i) {
|
|
|
16247
16270
|
};
|
|
16248
16271
|
}
|
|
16249
16272
|
function jA(i) {
|
|
16250
|
-
let t, e = i[2] &&
|
|
16273
|
+
let t, e = i[2] && _r(i);
|
|
16251
16274
|
return {
|
|
16252
16275
|
c() {
|
|
16253
16276
|
e && e.c(), t = ge();
|
|
@@ -16256,10 +16279,10 @@ function jA(i) {
|
|
|
16256
16279
|
e && e.m(n, o), M(n, t, o);
|
|
16257
16280
|
},
|
|
16258
16281
|
p(n, [o]) {
|
|
16259
|
-
n[2] ? e ? e.p(n, o) : (e =
|
|
16282
|
+
n[2] ? e ? e.p(n, o) : (e = _r(n), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
16260
16283
|
},
|
|
16261
|
-
i:
|
|
16262
|
-
o:
|
|
16284
|
+
i: X,
|
|
16285
|
+
o: X,
|
|
16263
16286
|
d(n) {
|
|
16264
16287
|
e && e.d(n), n && L(t);
|
|
16265
16288
|
}
|
|
@@ -16314,7 +16337,7 @@ function VA(i, t, e) {
|
|
|
16314
16337
|
s.videoInstance = O, e(0, s);
|
|
16315
16338
|
});
|
|
16316
16339
|
}
|
|
16317
|
-
const F = () => l === "withText" ? Vp : l === "withoutText" ? Op : l,
|
|
16340
|
+
const F = () => l === "withText" ? Vp : l === "withoutText" ? Op : l, W = (O) => {
|
|
16318
16341
|
!u || n && (e(9, n.muted = !1, n), n.play());
|
|
16319
16342
|
};
|
|
16320
16343
|
return i.$$set = (O) => {
|
|
@@ -16346,7 +16369,7 @@ function VA(i, t, e) {
|
|
|
16346
16369
|
B,
|
|
16347
16370
|
x,
|
|
16348
16371
|
F,
|
|
16349
|
-
|
|
16372
|
+
W
|
|
16350
16373
|
];
|
|
16351
16374
|
}
|
|
16352
16375
|
class Yl extends oe {
|
|
@@ -16374,7 +16397,7 @@ class Yl extends oe {
|
|
|
16374
16397
|
function OA(i) {
|
|
16375
16398
|
le(i, "svelte-1mrbqlg", ".media-list-wrapper.svelte-1mrbqlg.svelte-1mrbqlg{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}.media-list-wrapper.svelte-1mrbqlg .media-list.svelte-1mrbqlg{position:relative;pointer-events:auto;height:100%;left:50%;top:50%;transform:translate(-50%, -50%)}.media-list-wrapper.svelte-1mrbqlg .media-list.svelte-1mrbqlg .sc-carousel__carousel-container,.media-list-wrapper.svelte-1mrbqlg .media-list.svelte-1mrbqlg .sc-carousel__content-container{height:100%}");
|
|
16376
16399
|
}
|
|
16377
|
-
function
|
|
16400
|
+
function Wr(i, t, e) {
|
|
16378
16401
|
const n = i.slice();
|
|
16379
16402
|
return n[25] = t[e], n[26] = t, n[27] = e, n;
|
|
16380
16403
|
}
|
|
@@ -16532,7 +16555,7 @@ function Xr(i) {
|
|
|
16532
16555
|
function FA(i) {
|
|
16533
16556
|
let t, e, n = i[10], o = [];
|
|
16534
16557
|
for (let r = 0; r < n.length; r += 1)
|
|
16535
|
-
o[r] = Xr(
|
|
16558
|
+
o[r] = Xr(Wr(i, n, r));
|
|
16536
16559
|
const s = (r) => D(o[r], 1, 1, () => {
|
|
16537
16560
|
o[r] = null;
|
|
16538
16561
|
});
|
|
@@ -16552,7 +16575,7 @@ function FA(i) {
|
|
|
16552
16575
|
n = r[10];
|
|
16553
16576
|
let l;
|
|
16554
16577
|
for (l = 0; l < n.length; l += 1) {
|
|
16555
|
-
const c =
|
|
16578
|
+
const c = Wr(r, n, l);
|
|
16556
16579
|
o[l] ? (o[l].p(c, a), P(o[l], 1)) : (o[l] = Xr(c), o[l].c(), P(o[l], 1), o[l].m(t.parentNode, t));
|
|
16557
16580
|
}
|
|
16558
16581
|
for (se(), l = n.length; l < o.length; l += 1)
|
|
@@ -16612,8 +16635,8 @@ function GA(i, t, e) {
|
|
|
16612
16635
|
}
|
|
16613
16636
|
Ke(() => {
|
|
16614
16637
|
C.on("click", (V) => {
|
|
16615
|
-
var S, Q,
|
|
16616
|
-
!((
|
|
16638
|
+
var S, Q, H;
|
|
16639
|
+
!((H = (Q = (S = a.tag3DContentSvelte) == null ? void 0 : S.domContainer) == null ? void 0 : Q.css3DObject) != null && H.opacityMesh) || V.tag.id === a.id && B();
|
|
16617
16640
|
}), k = setInterval(
|
|
16618
16641
|
() => {
|
|
16619
16642
|
r && (w == null || w.goToNext());
|
|
@@ -16631,7 +16654,7 @@ function GA(i, t, e) {
|
|
|
16631
16654
|
w = V, e(12, w);
|
|
16632
16655
|
});
|
|
16633
16656
|
}
|
|
16634
|
-
const
|
|
16657
|
+
const W = (V) => {
|
|
16635
16658
|
n || I.set({ currentMediaElement: null }), e(11, b = V.detail);
|
|
16636
16659
|
};
|
|
16637
16660
|
function O(V) {
|
|
@@ -16661,7 +16684,7 @@ function GA(i, t, e) {
|
|
|
16661
16684
|
A,
|
|
16662
16685
|
x,
|
|
16663
16686
|
F,
|
|
16664
|
-
|
|
16687
|
+
W,
|
|
16665
16688
|
O
|
|
16666
16689
|
];
|
|
16667
16690
|
}
|
|
@@ -16689,7 +16712,7 @@ class Ul extends oe {
|
|
|
16689
16712
|
);
|
|
16690
16713
|
}
|
|
16691
16714
|
}
|
|
16692
|
-
function
|
|
16715
|
+
function _A(i) {
|
|
16693
16716
|
le(i, "svelte-1f7m1lj", ".line.svelte-1f7m1lj{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%)}.text.svelte-1f7m1lj{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;font-weight:600}.media-wrapper.svelte-1f7m1lj{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;font-weight:600}");
|
|
16694
16717
|
}
|
|
16695
16718
|
function Yr(i) {
|
|
@@ -16807,7 +16830,7 @@ function qr(i) {
|
|
|
16807
16830
|
}
|
|
16808
16831
|
};
|
|
16809
16832
|
}
|
|
16810
|
-
function
|
|
16833
|
+
function WA(i) {
|
|
16811
16834
|
let t, e, n = i[0].state && Yr(i);
|
|
16812
16835
|
return {
|
|
16813
16836
|
c() {
|
|
@@ -16843,7 +16866,7 @@ function NA(i, t, e) {
|
|
|
16843
16866
|
}
|
|
16844
16867
|
class XA extends oe {
|
|
16845
16868
|
constructor(t) {
|
|
16846
|
-
super(), ie(this, t, NA,
|
|
16869
|
+
super(), ie(this, t, NA, WA, ne, { tag: 0 }, _A);
|
|
16847
16870
|
}
|
|
16848
16871
|
}
|
|
16849
16872
|
function YA(i) {
|
|
@@ -17053,9 +17076,9 @@ function UA(i) {
|
|
|
17053
17076
|
M(I, t, B), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r), v && v.m(r, null), j(r, a), j(r, l), j(l, c), j(c, u), j(u, d), j(r, m), b && b.m(r, null), j(r, g), w && w.m(r, null), A = !0;
|
|
17054
17077
|
},
|
|
17055
17078
|
p(I, [B]) {
|
|
17056
|
-
var F,
|
|
17079
|
+
var F, W;
|
|
17057
17080
|
const x = {};
|
|
17058
|
-
B & 16 && (x.visible = I[4]), e.$set(x), B & 16 && T(o, "transition-delay", I[4] ? $n + "ms" : ei + aa - ra - 40 + "ms"), I[3].headerPictureUrl ? v ? v.p(I, B) : (v = Kr(I), v.c(), v.m(r, a)) : v && (v.d(1), v = null), (!A || B & 8) && h !== (h = I[3].title + "") && Se(d, h), ((F = I[2].length) != null ? F : 0) + ((
|
|
17081
|
+
B & 16 && (x.visible = I[4]), e.$set(x), B & 16 && T(o, "transition-delay", I[4] ? $n + "ms" : ei + aa - ra - 40 + "ms"), I[3].headerPictureUrl ? v ? v.p(I, B) : (v = Kr(I), v.c(), v.m(r, a)) : v && (v.d(1), v = null), (!A || B & 8) && h !== (h = I[3].title + "") && Se(d, h), ((F = I[2].length) != null ? F : 0) + ((W = I[5].length) != null ? W : 0) > 0 ? b ? b.p(I, B) : (b = $r(I), b.c(), b.m(r, g)) : b && (b.d(1), b = null), I[7] || I[3].highlightText ? w ? w.p(I, B) : (w = na(I), w.c(), w.m(r, null)) : w && (w.d(1), w = null), B & 16 && T(r, "transition-delay", I[4] ? $n + ei + "ms" : "0ms"), (!A || B & 64 && p !== (p = Pe(`marketing ${I[6]}`) + " svelte-sezqcq")) && y(t, "class", p), (!A || B & 80) && U(t, "unfolded", I[4]), (!A || B & 320) && U(t, "folded", I[8]);
|
|
17059
17082
|
},
|
|
17060
17083
|
i(I) {
|
|
17061
17084
|
A || (P(e.$$.fragment, I), A = !0);
|
|
@@ -17125,7 +17148,7 @@ class ZA extends Audio {
|
|
|
17125
17148
|
return this.sharedAudioCurrentTime;
|
|
17126
17149
|
}
|
|
17127
17150
|
play() {
|
|
17128
|
-
return
|
|
17151
|
+
return G(this, null, function* () {
|
|
17129
17152
|
var n, o, s;
|
|
17130
17153
|
if (this.tryplaying)
|
|
17131
17154
|
return;
|
|
@@ -17443,7 +17466,7 @@ function ca(i) {
|
|
|
17443
17466
|
}
|
|
17444
17467
|
});
|
|
17445
17468
|
let p = i[6] && ua(i);
|
|
17446
|
-
return c = new
|
|
17469
|
+
return c = new _l({
|
|
17447
17470
|
props: {
|
|
17448
17471
|
visible: i[6],
|
|
17449
17472
|
textUnfolded: i[1],
|
|
@@ -17485,7 +17508,7 @@ function ca(i) {
|
|
|
17485
17508
|
D(e.$$.fragment, b), D(p), D(c.$$.fragment, b), D(h.$$.fragment, b), d = !1;
|
|
17486
17509
|
},
|
|
17487
17510
|
d(b) {
|
|
17488
|
-
b && L(t), Z(e), p && p.d(), Z(c), Z(h), m = !1,
|
|
17511
|
+
b && L(t), Z(e), p && p.d(), Z(c), Z(h), m = !1, _e(g);
|
|
17489
17512
|
}
|
|
17490
17513
|
};
|
|
17491
17514
|
}
|
|
@@ -17984,7 +18007,7 @@ class Ev extends oe {
|
|
|
17984
18007
|
}
|
|
17985
18008
|
}
|
|
17986
18009
|
function Zl(i) {
|
|
17987
|
-
return
|
|
18010
|
+
return G(this, null, function* () {
|
|
17988
18011
|
return new Promise((t, e) => {
|
|
17989
18012
|
if (!i) {
|
|
17990
18013
|
e(Error("url is empty"));
|
|
@@ -17996,7 +18019,7 @@ function Zl(i) {
|
|
|
17996
18019
|
});
|
|
17997
18020
|
}
|
|
17998
18021
|
function Pv(i) {
|
|
17999
|
-
return
|
|
18022
|
+
return G(this, null, function* () {
|
|
18000
18023
|
const { url: t, ratio: e = 3 } = i;
|
|
18001
18024
|
i.ratio || console.warn("Tag icon ratio is not set, default is 3");
|
|
18002
18025
|
const { width: n, height: o } = yield Zl(t);
|
|
@@ -18007,7 +18030,7 @@ function Pv(i) {
|
|
|
18007
18030
|
});
|
|
18008
18031
|
}
|
|
18009
18032
|
function Iv(i) {
|
|
18010
|
-
return
|
|
18033
|
+
return G(this, null, function* () {
|
|
18011
18034
|
const { steps: t, url: e, ratio: n = 3, fps: o = 24 } = i;
|
|
18012
18035
|
if (!t)
|
|
18013
18036
|
throw new Error("KeyframeIcon requires steps");
|
|
@@ -18158,7 +18181,7 @@ function Dv(i) {
|
|
|
18158
18181
|
};
|
|
18159
18182
|
}
|
|
18160
18183
|
function Lv(i) {
|
|
18161
|
-
return { c:
|
|
18184
|
+
return { c: X, m: X, p: X, d: X };
|
|
18162
18185
|
}
|
|
18163
18186
|
function Sv(i) {
|
|
18164
18187
|
fa(i);
|
|
@@ -18187,10 +18210,10 @@ function Sv(i) {
|
|
|
18187
18210
|
};
|
|
18188
18211
|
}
|
|
18189
18212
|
function Mv(i) {
|
|
18190
|
-
return { c:
|
|
18213
|
+
return { c: X, m: X, p: X, d: X };
|
|
18191
18214
|
}
|
|
18192
18215
|
function Tv(i) {
|
|
18193
|
-
return { c:
|
|
18216
|
+
return { c: X, m: X, p: X, d: X };
|
|
18194
18217
|
}
|
|
18195
18218
|
function zv(i) {
|
|
18196
18219
|
ma(i);
|
|
@@ -18231,7 +18254,7 @@ function zv(i) {
|
|
|
18231
18254
|
};
|
|
18232
18255
|
}
|
|
18233
18256
|
function Bv(i) {
|
|
18234
|
-
return { c:
|
|
18257
|
+
return { c: X, m: X, p: X, d: X };
|
|
18235
18258
|
}
|
|
18236
18259
|
function jv(i) {
|
|
18237
18260
|
let t, e, n = i[9] && ga(i);
|
|
@@ -18266,13 +18289,13 @@ function Vv(i, t, e) {
|
|
|
18266
18289
|
let n, o, s, r, a, l, c, u, h, { width: d = null } = t, { icon: m = null } = t, { shadow: g = !1 } = t;
|
|
18267
18290
|
const p = Ci();
|
|
18268
18291
|
function A(w) {
|
|
18269
|
-
return
|
|
18292
|
+
return G(this, null, function* () {
|
|
18270
18293
|
const k = yield Iv(w);
|
|
18271
18294
|
return p("iconLoaded", k), k;
|
|
18272
18295
|
});
|
|
18273
18296
|
}
|
|
18274
18297
|
function v(w) {
|
|
18275
|
-
return
|
|
18298
|
+
return G(this, null, function* () {
|
|
18276
18299
|
if (typeof h == "number")
|
|
18277
18300
|
return fe(R({}, w), { width: h });
|
|
18278
18301
|
const k = yield Pv(w);
|
|
@@ -18432,14 +18455,14 @@ function Gv(i) {
|
|
|
18432
18455
|
p(n, [o]) {
|
|
18433
18456
|
typeof n[0].element == "string" ? e ? e.p(n, o) : (e = va(n), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
18434
18457
|
},
|
|
18435
|
-
i:
|
|
18436
|
-
o:
|
|
18458
|
+
i: X,
|
|
18459
|
+
o: X,
|
|
18437
18460
|
d(n) {
|
|
18438
18461
|
n && L(t), e && e.d(), i[2](null);
|
|
18439
18462
|
}
|
|
18440
18463
|
};
|
|
18441
18464
|
}
|
|
18442
|
-
function
|
|
18465
|
+
function _v(i, t, e) {
|
|
18443
18466
|
let { tag: n } = t, o, s;
|
|
18444
18467
|
Ke(() => {
|
|
18445
18468
|
if (o) {
|
|
@@ -18463,9 +18486,9 @@ function Wv(i, t, e) {
|
|
|
18463
18486
|
"tag" in a && e(0, n = a.tag);
|
|
18464
18487
|
}, [n, o, r];
|
|
18465
18488
|
}
|
|
18466
|
-
class
|
|
18489
|
+
class Wv extends oe {
|
|
18467
18490
|
constructor(t) {
|
|
18468
|
-
super(), ie(this, t,
|
|
18491
|
+
super(), ie(this, t, _v, Gv, ne, { tag: 0 }, Hv);
|
|
18469
18492
|
}
|
|
18470
18493
|
}
|
|
18471
18494
|
function Nv(i) {
|
|
@@ -18483,8 +18506,8 @@ function Xv(i) {
|
|
|
18483
18506
|
p(n, o) {
|
|
18484
18507
|
o & 2 && e !== (e = n[1].id) && y(t, "data-id", e);
|
|
18485
18508
|
},
|
|
18486
|
-
i:
|
|
18487
|
-
o:
|
|
18509
|
+
i: X,
|
|
18510
|
+
o: X,
|
|
18488
18511
|
d(n) {
|
|
18489
18512
|
n && L(t);
|
|
18490
18513
|
}
|
|
@@ -18531,7 +18554,7 @@ function Yv(i) {
|
|
|
18531
18554
|
}
|
|
18532
18555
|
function Uv(i) {
|
|
18533
18556
|
let t, e, n, o, s, r, a;
|
|
18534
|
-
return e = new
|
|
18557
|
+
return e = new Wv({
|
|
18535
18558
|
props: { tag: De(i[1]) }
|
|
18536
18559
|
}), {
|
|
18537
18560
|
c() {
|
|
@@ -18756,8 +18779,8 @@ function nb(i, t, e) {
|
|
|
18756
18779
|
return i.$$set = (C) => {
|
|
18757
18780
|
"withAnimation" in C && e(0, c = C.withAnimation), "tag" in C && e(1, u = C.tag), "hooks" in C && e(2, h = C.hooks), "state" in C && e(5, d = C.state), "mediaStore" in C && e(6, m = C.mediaStore), "temporaryState" in C && e(7, g = C.temporaryState);
|
|
18758
18781
|
}, i.$$.update = () => {
|
|
18759
|
-
var C, I, B, x, F,
|
|
18760
|
-
i.$$.dirty & 2 && e(11, n = (C = u.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(10, o = (I = u.state) == null ? void 0 : I.visible), i.$$.dirty & 162 && e(12, s = d.visible && g.visible && ((B = u.state) == null ? void 0 : B.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, d, g)), i.$$.dirty & 4096 && v(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== A && (e(9, A = n), n ? (F = (x = u.hooks).emit) == null || F.call(x, "unfolded") : (O = u == null ? void 0 : (
|
|
18782
|
+
var C, I, B, x, F, W, O, V, S, Q, H;
|
|
18783
|
+
i.$$.dirty & 2 && e(11, n = (C = u.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(10, o = (I = u.state) == null ? void 0 : I.visible), i.$$.dirty & 162 && e(12, s = d.visible && g.visible && ((B = u.state) == null ? void 0 : B.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, d, g)), i.$$.dirty & 4096 && v(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== A && (e(9, A = n), n ? (F = (x = u.hooks).emit) == null || F.call(x, "unfolded") : (O = u == null ? void 0 : (W = u.hooks).emit) == null || O.call(W, "folded")), o !== void 0 && o !== p && (e(8, p = o), o ? (S = (V = u.hooks).emit) == null || S.call(V, "show") : (H = (Q = u.hooks).emit) == null || H.call(Q, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
|
|
18761
18784
|
}, [
|
|
18762
18785
|
c,
|
|
18763
18786
|
u,
|
|
@@ -18902,9 +18925,9 @@ function lb(i) {
|
|
|
18902
18925
|
m(e, n) {
|
|
18903
18926
|
M(e, t, n);
|
|
18904
18927
|
},
|
|
18905
|
-
p:
|
|
18906
|
-
i:
|
|
18907
|
-
o:
|
|
18928
|
+
p: X,
|
|
18929
|
+
i: X,
|
|
18930
|
+
o: X,
|
|
18908
18931
|
d(e) {
|
|
18909
18932
|
e && L(t);
|
|
18910
18933
|
}
|
|
@@ -18952,9 +18975,9 @@ function ub(i) {
|
|
|
18952
18975
|
m(e, n) {
|
|
18953
18976
|
M(e, t, n);
|
|
18954
18977
|
},
|
|
18955
|
-
p:
|
|
18956
|
-
i:
|
|
18957
|
-
o:
|
|
18978
|
+
p: X,
|
|
18979
|
+
i: X,
|
|
18980
|
+
o: X,
|
|
18958
18981
|
d(e) {
|
|
18959
18982
|
e && L(t);
|
|
18960
18983
|
}
|
|
@@ -19224,7 +19247,7 @@ class wb extends Cp {
|
|
|
19224
19247
|
f(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
19225
19248
|
f(this, "temporaryState", { visible: !0 });
|
|
19226
19249
|
f(this, "TagContainerSvelte");
|
|
19227
|
-
f(this, "loadModel", (e) =>
|
|
19250
|
+
f(this, "loadModel", (e) => G(this, null, function* () {
|
|
19228
19251
|
var l;
|
|
19229
19252
|
const n = e.data.modelUrl;
|
|
19230
19253
|
if (!n)
|
|
@@ -19352,7 +19375,7 @@ class wb extends Cp {
|
|
|
19352
19375
|
g && m.decompose(g.position, g.quaternion, g.scale);
|
|
19353
19376
|
}
|
|
19354
19377
|
addMediaModelTag(e) {
|
|
19355
|
-
return
|
|
19378
|
+
return G(this, null, function* () {
|
|
19356
19379
|
const n = e.filter(Re).map((o) => this.loadModel(o));
|
|
19357
19380
|
yield Promise.all(n), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
19358
19381
|
});
|
|
@@ -19410,7 +19433,7 @@ class Cb extends wb {
|
|
|
19410
19433
|
f(this, "state", { enabled: !0, visible: !0 });
|
|
19411
19434
|
f(this, "params");
|
|
19412
19435
|
f(this, "debug");
|
|
19413
|
-
f(this, "changeTagModel", (e, n) =>
|
|
19436
|
+
f(this, "changeTagModel", (e, n) => G(this, null, function* () {
|
|
19414
19437
|
e.data = at({}, e.data, n), yield this.loadModel(e), this.updateRenderAllTags();
|
|
19415
19438
|
}));
|
|
19416
19439
|
f(this, "handleFiveInitAnimationEnded", () => {
|
|
@@ -19432,7 +19455,7 @@ class Cb extends wb {
|
|
|
19432
19455
|
}
|
|
19433
19456
|
}
|
|
19434
19457
|
load(e, n) {
|
|
19435
|
-
return
|
|
19458
|
+
return G(this, null, function* () {
|
|
19436
19459
|
var s, r;
|
|
19437
19460
|
this.clearTags(), console.info(ec, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = at({}, this.config, {
|
|
19438
19461
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
@@ -19449,7 +19472,7 @@ class Cb extends wb {
|
|
|
19449
19472
|
});
|
|
19450
19473
|
}
|
|
19451
19474
|
addTag(e, n) {
|
|
19452
|
-
return
|
|
19475
|
+
return G(this, null, function* () {
|
|
19453
19476
|
const s = (Array.isArray(e) ? e : [e]).map((r) => {
|
|
19454
19477
|
const a = this.getTagConfig(r);
|
|
19455
19478
|
return fe(R({}, r), {
|
|
@@ -19466,7 +19489,7 @@ class Cb extends wb {
|
|
|
19466
19489
|
destroy: () => this.destroyTagById(r.id)
|
|
19467
19490
|
});
|
|
19468
19491
|
}).filter((r) => r.position);
|
|
19469
|
-
return s.forEach(mp), this.tags.push(...s), up(this.five).then(() =>
|
|
19492
|
+
return s.forEach(mp), this.tags.push(...s), up(this.five).then(() => G(this, null, function* () {
|
|
19470
19493
|
var r, a, l;
|
|
19471
19494
|
this.store.eventListenerDisposer && ((a = (r = this.store).eventListenerDisposer) == null || a.call(r)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (l = n == null ? void 0 : n.withAnimation) != null ? l : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
|
|
19472
19495
|
}));
|
|
@@ -19482,7 +19505,7 @@ class Cb extends wb {
|
|
|
19482
19505
|
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), o ? this.config.contentTypeConfig[e] = at({}, this.config.contentTypeConfig[e], n) : this.config.contentTypeConfig[e] = n, this.clearCache(), this.updateRenderAllTags();
|
|
19483
19506
|
}
|
|
19484
19507
|
show(e) {
|
|
19485
|
-
return
|
|
19508
|
+
return G(this, null, function* () {
|
|
19486
19509
|
if (this.checkDisposed())
|
|
19487
19510
|
return;
|
|
19488
19511
|
const { userAction: n = !0, withAnimation: o = !1 } = e != null ? e : {};
|
|
@@ -19490,7 +19513,7 @@ class Cb extends wb {
|
|
|
19490
19513
|
});
|
|
19491
19514
|
}
|
|
19492
19515
|
hide(e) {
|
|
19493
|
-
return
|
|
19516
|
+
return G(this, null, function* () {
|
|
19494
19517
|
if (this.checkDisposed())
|
|
19495
19518
|
return;
|
|
19496
19519
|
const { userAction: n = !0, withAnimation: o = !1 } = e != null ? e : {};
|
|
@@ -19561,7 +19584,7 @@ class Cb extends wb {
|
|
|
19561
19584
|
}), this.updateRenderAllTags();
|
|
19562
19585
|
}
|
|
19563
19586
|
setVisibleAndUnfolded() {
|
|
19564
|
-
return
|
|
19587
|
+
return G(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
19565
19588
|
if (!!this.isPanorama)
|
|
19566
19589
|
return this.setVisibleByPanoIndex(), e ? new Promise((n) => {
|
|
19567
19590
|
setTimeout(() => {
|
|
@@ -19650,7 +19673,7 @@ class Cb extends wb {
|
|
|
19650
19673
|
this.updateRenderPointTag();
|
|
19651
19674
|
}
|
|
19652
19675
|
handleFivePanoArrived() {
|
|
19653
|
-
return
|
|
19676
|
+
return G(this, null, function* () {
|
|
19654
19677
|
this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
19655
19678
|
e.temporaryState = fe(R({}, e.temporaryState), { visible: !0 });
|
|
19656
19679
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
@@ -20023,7 +20046,7 @@ const Ui = {
|
|
|
20023
20046
|
Y: 4765519,
|
|
20024
20047
|
Z: 4227839
|
|
20025
20048
|
};
|
|
20026
|
-
class
|
|
20049
|
+
class Wt {
|
|
20027
20050
|
static get X() {
|
|
20028
20051
|
return new E.Color(Ui.X).convertSRGBToLinear().clone();
|
|
20029
20052
|
}
|
|
@@ -20037,9 +20060,9 @@ class _t {
|
|
|
20037
20060
|
class Tb extends Ib {
|
|
20038
20061
|
constructor(e) {
|
|
20039
20062
|
super(e);
|
|
20040
|
-
f(this, "xArrow", new Yi({ direction: "x", color:
|
|
20041
|
-
f(this, "yArrow", new Yi({ direction: "y", color:
|
|
20042
|
-
f(this, "zArrow", new Yi({ direction: "z", color:
|
|
20063
|
+
f(this, "xArrow", new Yi({ direction: "x", color: Wt.X }));
|
|
20064
|
+
f(this, "yArrow", new Yi({ direction: "y", color: Wt.Y }));
|
|
20065
|
+
f(this, "zArrow", new Yi({ direction: "z", color: Wt.Z }));
|
|
20043
20066
|
this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow);
|
|
20044
20067
|
}
|
|
20045
20068
|
show() {
|
|
@@ -20097,7 +20120,7 @@ class jb extends xb {
|
|
|
20097
20120
|
f(this, "children", []);
|
|
20098
20121
|
f(this, "angleTips");
|
|
20099
20122
|
f(this, "container");
|
|
20100
|
-
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new qi({ direction: "x", color:
|
|
20123
|
+
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new qi({ direction: "x", color: Wt.X })), (n == null ? void 0 : n.xzCircleEnable) !== !1 && (this.yCircle = new qi({ direction: "y", color: Wt.Y })), (n == null ? void 0 : n.xyCircleEnable) !== !1 && (this.zCircle = new qi({ direction: "z", color: Wt.Z })), (n == null ? void 0 : n.container) && (n == null ? void 0 : n.angleTipsEnable) !== !1 && (this.container = n == null ? void 0 : n.container, this.angleTips = Bb({ display: "none" }), this.container.appendChild(this.angleTips.element)), this.add(...[this.xCircle, this.yCircle, this.zCircle].filter(Boolean)), this.show();
|
|
20101
20124
|
}
|
|
20102
20125
|
hide() {
|
|
20103
20126
|
this.children.forEach((e) => e.hide());
|
|
@@ -20586,7 +20609,7 @@ class hn {
|
|
|
20586
20609
|
this.five.off("wantsTapGesture", this.onFiveWantsTapGesture), this.five.off("wantsGesture", this.onFiveWantsGesture), this.five.off("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), (t = this.helperController) == null || t.dispose();
|
|
20587
20610
|
}
|
|
20588
20611
|
}
|
|
20589
|
-
const
|
|
20612
|
+
const _b = "v1.0.1", Wb = "Object3DHelper", Ro = `${Wb}@${_b}`, Nb = () => {
|
|
20590
20613
|
console.error(`${Ro} is disposed`);
|
|
20591
20614
|
}, Xb = () => {
|
|
20592
20615
|
console.warn(`${Ro} is disabled`);
|
|
@@ -20606,12 +20629,12 @@ class Ub {
|
|
|
20606
20629
|
t && this.addControllers(t), this.setState(this.state);
|
|
20607
20630
|
}
|
|
20608
20631
|
show(t) {
|
|
20609
|
-
return
|
|
20632
|
+
return G(this, null, function* () {
|
|
20610
20633
|
this.setState({ visible: !0 }, t);
|
|
20611
20634
|
});
|
|
20612
20635
|
}
|
|
20613
20636
|
hide(t) {
|
|
20614
|
-
return
|
|
20637
|
+
return G(this, null, function* () {
|
|
20615
20638
|
this.setState({ visible: !1 }, t);
|
|
20616
20639
|
});
|
|
20617
20640
|
}
|
|
@@ -20863,7 +20886,7 @@ class Jb extends jn {
|
|
|
20863
20886
|
this.scale(n);
|
|
20864
20887
|
}
|
|
20865
20888
|
scale(e) {
|
|
20866
|
-
var F,
|
|
20889
|
+
var F, W;
|
|
20867
20890
|
if (!this.startInfo)
|
|
20868
20891
|
return;
|
|
20869
20892
|
const n = this.originObject3D, { startPoint: o, plane: s } = this.startInfo, r = this.helperObject3D.cornerPositions;
|
|
@@ -20876,19 +20899,19 @@ class Jb extends jn {
|
|
|
20876
20899
|
const V = new q(0, 0, 0);
|
|
20877
20900
|
if (!this.startInfo)
|
|
20878
20901
|
return V;
|
|
20879
|
-
const S = (O === "ew" ? h : d).clone(), Q = c.clone().projectOnVector(S),
|
|
20880
|
-
if (
|
|
20902
|
+
const S = (O === "ew" ? h : d).clone(), Q = c.clone().projectOnVector(S), H = a.clone().projectOnVector(S), N = l.clone().projectOnVector(S);
|
|
20903
|
+
if (H.equals(Q))
|
|
20881
20904
|
return V;
|
|
20882
20905
|
if (O === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
20883
|
-
const Y = new q().subVectors(
|
|
20906
|
+
const Y = new q().subVectors(H, N), ae = Y.x < 0 && S.x >= 0, he = Y.y < 0 && S.y >= 0, de = Y.z < 0 && S.z >= 0;
|
|
20884
20907
|
this.startInfo.dragPointInCenterBottom = ae || he || de;
|
|
20885
20908
|
}
|
|
20886
20909
|
if (O === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
20887
|
-
const Y = new q().subVectors(
|
|
20910
|
+
const Y = new q().subVectors(H, N), ae = Y.x < 0 && S.x >= 0, he = Y.y < 0 && S.y >= 0, de = Y.z < 0 && S.z >= 0;
|
|
20888
20911
|
this.startInfo.dragPointInCenterLeft = ae || he || de;
|
|
20889
20912
|
}
|
|
20890
|
-
const
|
|
20891
|
-
return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), V) :
|
|
20913
|
+
const _ = new q().subVectors(H, Q), ee = _.length();
|
|
20914
|
+
return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), V) : _;
|
|
20892
20915
|
}, g = m("ew"), p = m("ns"), A = () => {
|
|
20893
20916
|
const O = g;
|
|
20894
20917
|
this.helperObject3D.cornerPositions.forEach((V, S) => {
|
|
@@ -20916,7 +20939,7 @@ class Jb extends jn {
|
|
|
20916
20939
|
const b = new q().subVectors(r[1], r[0]).length() / h.length(), w = new q().subVectors(r[3], r[0]).length() / d.length(), k = new q(b, w, 1), C = new E.Matrix4().scale(k);
|
|
20917
20940
|
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(C) : n.scale.applyMatrix4(C), o.position.copy(a);
|
|
20918
20941
|
const I = new q().addVectors(r[0], r[2]).divideScalar(2), B = new q().subVectors(I, l), x = new E.Matrix4().setPosition(B);
|
|
20919
|
-
n.applyMatrix4(x), (F = this.helperObject3D.css3DInstance) == null || F.css3DObject.applyMatrix4(x), (
|
|
20942
|
+
n.applyMatrix4(x), (F = this.helperObject3D.css3DInstance) == null || F.css3DObject.applyMatrix4(x), (W = this.helperObject3D.plane) == null || W.applyMatrix4(x), this.hooks.emit("applyObjectScale", { matrix: C }), this.hooks.emit("applyObjectPosition", { matrix: x }), this.render();
|
|
20920
20943
|
}
|
|
20921
20944
|
dragEnd() {
|
|
20922
20945
|
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
|
|
@@ -20970,12 +20993,12 @@ class i1 extends Bn {
|
|
|
20970
20993
|
this.five = e, this.css3DRender = new In(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, { [`__${mo.toUpperCase()}_DEBUG__`]: this });
|
|
20971
20994
|
}
|
|
20972
20995
|
show(e) {
|
|
20973
|
-
return
|
|
20996
|
+
return G(this, null, function* () {
|
|
20974
20997
|
this.setState({ visible: !0 }, e);
|
|
20975
20998
|
});
|
|
20976
20999
|
}
|
|
20977
21000
|
hide(e) {
|
|
20978
|
-
return
|
|
21001
|
+
return G(this, null, function* () {
|
|
20979
21002
|
this.setState({ visible: !1 }, e);
|
|
20980
21003
|
});
|
|
20981
21004
|
}
|
|
@@ -21404,7 +21427,7 @@ class a1 extends Bn {
|
|
|
21404
21427
|
const oy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21405
21428
|
__proto__: null
|
|
21406
21429
|
}, Symbol.toStringTag, { value: "Module" })), sy = (i) => new a1(i);
|
|
21407
|
-
console.info("@realsee/dnalogel %cv2.16.0-
|
|
21430
|
+
console.info("@realsee/dnalogel %cv2.16.0-3", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
|
|
21408
21431
|
export {
|
|
21409
21432
|
In as CSS3DRender,
|
|
21410
21433
|
zn as CSS3DRenderPlugin,
|
|
@@ -21423,7 +21446,7 @@ export {
|
|
|
21423
21446
|
Ug as GuideLinePlugin,
|
|
21424
21447
|
Qt as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
21425
21448
|
q1 as ItemLabelPlugin,
|
|
21426
|
-
|
|
21449
|
+
Wf as Magnifier,
|
|
21427
21450
|
M1 as MapviewFloorplanPlugin,
|
|
21428
21451
|
O1 as ModelChassisCompassPlugin,
|
|
21429
21452
|
R1 as ModelEntryDoorGuidePlugin,
|
|
@@ -21441,14 +21464,14 @@ export {
|
|
|
21441
21464
|
x1 as PanoCursorRaycasterPlugin,
|
|
21442
21465
|
Z1 as PanoDoorLabelPlugin,
|
|
21443
21466
|
z1 as PanoFloorplanRadarPlugin,
|
|
21444
|
-
|
|
21467
|
+
_1 as PanoMeasurePlugin,
|
|
21445
21468
|
an as PanoMeasurePluginLine,
|
|
21446
21469
|
Mo as PanoMeasurePluginModel,
|
|
21447
21470
|
ot as PanoMeasurePluginPoint,
|
|
21448
21471
|
So as PanoMeasurePluginPolyline,
|
|
21449
21472
|
F1 as PanoRulerPlugin,
|
|
21450
21473
|
H1 as PanoRulerProPlugin,
|
|
21451
|
-
|
|
21474
|
+
W1 as PanoSpatialTagPlugin,
|
|
21452
21475
|
ny as PanoTagPlugin,
|
|
21453
21476
|
Cb as PanoTagPluginController,
|
|
21454
21477
|
sy as PanoVideoPlugin,
|