@realsee/dnalogel 3.5.0-tag-dev.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +2 -2
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +3 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/dist/PanoTagPlugin/utils/tag/adaptConfig.d.ts +1 -1
- package/dist/index.cjs.js +23 -23
- package/dist/index.js +964 -959
- package/dist/index.umd.js +26 -26
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +3 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +62 -58
- package/libs/PanoTagPlugin/controller/index.js +44 -43
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/tag/adaptConfig.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/tag/adaptConfig.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -120
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -726
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -679
- package/docs/classes/CSS3DRender.html +0 -774
- package/docs/classes/CruisePluginController.html +0 -673
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -477
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -857
- package/docs/classes/Magnifier.html +0 -481
- package/docs/classes/ModelRoomLabelController.html +0 -399
- package/docs/classes/Object3DHelperController.html +0 -641
- package/docs/classes/PaintBrush.html +0 -503
- package/docs/classes/PanoMeasurePluginLine.html +0 -523
- package/docs/classes/PanoMeasurePluginModel.html +0 -572
- package/docs/classes/PanoMeasurePluginPoint.html +0 -363
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -568
- package/docs/classes/PanoTagPluginController.html +0 -1096
- package/docs/classes/Util.BetterTween.html +0 -417
- package/docs/classes/Util.Interval.html +0 -433
- package/docs/classes/Util.LineSegments.html +0 -385
- package/docs/classes/Util.Magnifier.html +0 -504
- package/docs/classes/Util.Object3D.html +0 -407
- package/docs/classes/Util.PointDomHelper.html +0 -408
- package/docs/classes/Util.PointHelper.html +0 -399
- package/docs/classes/Util.PointSelectorHelper.html +0 -455
- package/docs/classes/Util.Rectangle.html +0 -456
- package/docs/enums/CameraMovementEffect.html +0 -311
- package/docs/enums/ContentType.html +0 -457
- package/docs/enums/DIRECTION.html +0 -321
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -321
- package/docs/enums/DimensionType.html +0 -311
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -314
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -321
- package/docs/enums/PaintBrushTypeEnum.html +0 -314
- package/docs/enums/PointType.html +0 -311
- package/docs/enums/Rotation.html +0 -318
- package/docs/functions/AreaMakerPlugin.html +0 -291
- package/docs/functions/CSS3DRenderPlugin.html +0 -289
- package/docs/functions/CameraMovementPlugin.html +0 -294
- package/docs/functions/CruisePlugin.html +0 -291
- package/docs/functions/CurrentPanoImagePlugin.html +0 -291
- package/docs/functions/GuideLinePlugin.html +0 -291
- package/docs/functions/ItemLabelPlugin.html +0 -291
- package/docs/functions/MapviewFloorplanPlugin.html +0 -291
- package/docs/functions/ModelChassisCompassPlugin.html +0 -294
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -294
- package/docs/functions/ModelFloorplanPlugin.html +0 -291
- package/docs/functions/ModelItemLabelPlugin.html +0 -291
- package/docs/functions/ModelRoomLabelPlugin.html +0 -289
- package/docs/functions/ModelTVVideoPlugin.html +0 -291
- package/docs/functions/ModelViewPlugin.html +0 -294
- package/docs/functions/Object3DHelperPlugin.html +0 -289
- package/docs/functions/PanoCompassPlugin.html +0 -291
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -295
- package/docs/functions/PanoDoorLabelPlugin.html +0 -291
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -291
- package/docs/functions/PanoMeasurePlugin.html +0 -291
- package/docs/functions/PanoRulerPlugin.html +0 -294
- package/docs/functions/PanoRulerProPlugin.html +0 -294
- package/docs/functions/PanoSpatialTagPlugin.html +0 -294
- package/docs/functions/PanoTagPlugin.html +0 -296
- package/docs/functions/PanoVideoPlugin.html +0 -300
- package/docs/functions/PipelinePlugin.html +0 -289
- package/docs/functions/TopviewFloorplanPlugin.html +0 -291
- package/docs/functions/Util.absoluteUrl.html +0 -327
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -330
- package/docs/functions/Util.equal.html +0 -339
- package/docs/functions/Util.getCoordsFromClient.html +0 -329
- package/docs/functions/Util.getCoordsFromElement.html +0 -329
- package/docs/functions/Util.getFrameTime.html +0 -321
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -329
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -329
- package/docs/functions/Util.isAbsoluteURL.html +0 -322
- package/docs/functions/Util.isModelLike.html +0 -322
- package/docs/functions/Util.isNil.html +0 -330
- package/docs/functions/Util.isPanoramaLike.html +0 -322
- package/docs/functions/Util.nextFrame.html +0 -335
- package/docs/functions/Util.notNil.html +0 -330
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -351
- package/docs/functions/Util.tweenProgress.html +0 -324
- package/docs/functions/Util.uuid.html +0 -320
- package/docs/functions/pluginFlag.html +0 -289
- package/docs/index.html +0 -355
- package/docs/interfaces/AddTagConfig.html +0 -304
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -330
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -335
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -621
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -384
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -369
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -327
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -326
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -355
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -450
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -326
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -359
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -360
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -362
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -697
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -386
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -422
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -412
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -352
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -320
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -409
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -383
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -522
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -324
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -316
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -338
- package/docs/interfaces/EventMap.html +0 -543
- package/docs/interfaces/FloorplanBounding.html +0 -333
- package/docs/interfaces/FloorplanData.html +0 -336
- package/docs/interfaces/FloorplanEntrance.html +0 -361
- package/docs/interfaces/FloorplanExtraObject.html +0 -351
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -340
- package/docs/interfaces/FloorplanFloorData.html +0 -329
- package/docs/interfaces/FloorplanImagePosition.html +0 -315
- package/docs/interfaces/FloorplanObserver.html +0 -333
- package/docs/interfaces/FloorplanOutlineItem.html +0 -329
- package/docs/interfaces/FloorplanPosition.html +0 -315
- package/docs/interfaces/FloorplanRoomItem.html +0 -380
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -321
- package/docs/interfaces/FloorplanServerBounding.html +0 -333
- package/docs/interfaces/FloorplanServerComputedData.html +0 -332
- package/docs/interfaces/FloorplanServerData.html +0 -315
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -332
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -318
- package/docs/interfaces/FloorplanServerEntrance.html +0 -361
- package/docs/interfaces/FloorplanServerFloorData.html +0 -329
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -315
- package/docs/interfaces/FloorplanServerObserver.html +0 -333
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -329
- package/docs/interfaces/FloorplanServerPosition.html +0 -315
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -392
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -321
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -324
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -363
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -527
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -358
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -349
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -416
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -338
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -348
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -484
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -345
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -484
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -310
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -331
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -356
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -372
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -354
- package/docs/interfaces/HelperOffset.html +0 -333
- package/docs/interfaces/ImagePlaneGroup.html +0 -307
- package/docs/interfaces/ItemLabelPluginData.html +0 -304
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -389
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -325
- package/docs/interfaces/MinMax.html +0 -311
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -311
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -347
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -311
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -318
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -355
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -304
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -389
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -311
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -304
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -325
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -349
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -304
- package/docs/interfaces/ModelViewPluginExportType.html +0 -417
- package/docs/interfaces/Object3DHelperState.html +0 -318
- package/docs/interfaces/ObjectHelperControllers.html +0 -325
- package/docs/interfaces/PaintBrushAction.html +0 -364
- package/docs/interfaces/PaintBrushConfigs.html +0 -362
- package/docs/interfaces/PaintBrushState.html +0 -346
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -426
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -283
- package/docs/interfaces/PanoMeasureParameterType.html +0 -450
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -318
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -315
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -311
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -321
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -378
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -327
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -318
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -354
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -324
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -311
- package/docs/interfaces/PanoRulerProPluginState.html +0 -318
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -297
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -286
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -354
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -336
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -432
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -332
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -353
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -339
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -332
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -324
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -342
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -315
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -421
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -315
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -350
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -369
- package/docs/interfaces/Point.html +0 -318
- package/docs/interfaces/Room.html +0 -325
- package/docs/interfaces/RoomInfo.html +0 -311
- package/docs/interfaces/RoomLabel.html +0 -387
- package/docs/interfaces/RoomRules.html +0 -286
- package/docs/interfaces/Rooms.html +0 -286
- package/docs/interfaces/Scissor.html +0 -345
- package/docs/interfaces/State.html +0 -332
- package/docs/interfaces/TagCacheInterface.html +0 -363
- package/docs/interfaces/TagConfig.html +0 -566
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -307
- package/docs/interfaces/TagIconUrl.html +0 -364
- package/docs/interfaces/TagObjectGroup.html +0 -307
- package/docs/interfaces/TagStyle.html +0 -317
- package/docs/interfaces/Tags.html +0 -2821
- package/docs/interfaces/TemporaryState.html +0 -304
- package/docs/interfaces/Util.MagnifierParameter.html +0 -392
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -351
- package/docs/interfaces/Util.PointIntersection.html +0 -366
- package/docs/modules/AreaMakerPluginType.html +0 -324
- package/docs/modules/CruisePluginTypes.html +0 -329
- package/docs/modules/CurrentPanoImagePluginType.html +0 -298
- package/docs/modules/GuideLineItem.html +0 -290
- package/docs/modules/GuideLineModeItem.html +0 -295
- package/docs/modules/GuideLinePluginType.html +0 -351
- package/docs/modules/PanoVideoPluginType.html +0 -302
- package/docs/modules/Util.html +0 -352
- package/docs/modules.html +0 -542
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -332
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -302
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -302
- package/docs/types/ArrayPosition.html +0 -280
- package/docs/types/AudioAppearance.html +0 -280
- package/docs/types/AudioTagTypeConfigKey.html +0 -280
- package/docs/types/CSS3DRenderExportType.html +0 -280
- package/docs/types/CSS3DRenderPluginExportType.html +0 -280
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -280
- package/docs/types/ClassFunctionParameters.html +0 -287
- package/docs/types/Color.html +0 -280
- package/docs/types/ContentTypeConfigKey.html +0 -280
- package/docs/types/ContentTypeConfigKeySplit.html +0 -280
- package/docs/types/ContentTypeMap.html +0 -280
- package/docs/types/Create3DDomContainerReturnType.html +0 -280
- package/docs/types/Create3DElementReturnType.html +0 -280
- package/docs/types/CruisePluginExportType.html +0 -280
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -319
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -296
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -280
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -292
- package/docs/types/DeprecatedTagProperty.html +0 -295
- package/docs/types/Direction-1.html +0 -280
- package/docs/types/Direction4.html +0 -280
- package/docs/types/ElementRenderer.html +0 -304
- package/docs/types/FloorplanRuleLabels.html +0 -283
- package/docs/types/FloorplanServerRuleLabels.html +0 -280
- package/docs/types/GuideLinePluginExportType.html +0 -280
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -353
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -374
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -307
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -310
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -310
- package/docs/types/GuideLinePluginType.PathItem.html +0 -310
- package/docs/types/GuideLinePluginType.PluginData.html +0 -319
- package/docs/types/HelperEventMap.html +0 -518
- package/docs/types/LoadTagConfig.html +0 -280
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -280
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -280
- package/docs/types/MediaData.html +0 -301
- package/docs/types/MediaStore.html +0 -285
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -287
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -280
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -280
- package/docs/types/ModelId.html +0 -280
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -280
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -280
- package/docs/types/MoveArgs.html +0 -290
- package/docs/types/MoveOpts.html +0 -288
- package/docs/types/Object3DHelperEventMap.html +0 -373
- package/docs/types/ObjectFit.html +0 -280
- package/docs/types/PaintBrushEventMap.html +0 -311
- package/docs/types/PanoCompassPluginData.html +0 -280
- package/docs/types/PanoCompassPluginExportType.html +0 -280
- package/docs/types/PanoCompassPluginParameterType.html +0 -280
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -280
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -280
- package/docs/types/PanoIndex.html +0 -280
- package/docs/types/PanoMeasurePluginEvent.html +0 -280
- package/docs/types/PanoMeasureReturnType.html +0 -280
- package/docs/types/PanoSpatialTagPluginId.html +0 -280
- package/docs/types/PanoTagPluginExportInterface.html +0 -280
- package/docs/types/PanoTagPluginParamsInterface.html +0 -280
- package/docs/types/PanoVideoPluginParameterType.html +0 -280
- package/docs/types/PanoVideoPluginReturnType.html +0 -280
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -288
- package/docs/types/PipelinePluginParameterType.html +0 -280
- package/docs/types/PipelinePluginReturnType.html +0 -280
- package/docs/types/PlaneTag.html +0 -288
- package/docs/types/Point2DTag.html +0 -288
- package/docs/types/Point3DTag.html +0 -288
- package/docs/types/PointTag.html +0 -285
- package/docs/types/PointTagInstance.html +0 -285
- package/docs/types/Position.html +0 -280
- package/docs/types/RotateArgs.html +0 -292
- package/docs/types/RotateOpts.html +0 -288
- package/docs/types/RuleLabelsKey.html +0 -280
- package/docs/types/RuleLabelsValue.html +0 -280
- package/docs/types/StickType.html +0 -280
- package/docs/types/Tag.html +0 -346
- package/docs/types/Tag2D.html +0 -288
- package/docs/types/Tag3D.html +0 -288
- package/docs/types/TagConfigByKey.html +0 -285
- package/docs/types/TagContentType.html +0 -280
- package/docs/types/TagContentTypeMapping.html +0 -280
- package/docs/types/TagDimensionType.html +0 -282
- package/docs/types/TagElement.html +0 -290
- package/docs/types/TagEvents.html +0 -333
- package/docs/types/TagGLTFObject.html +0 -303
- package/docs/types/TagHooks.html +0 -280
- package/docs/types/TagId.html +0 -280
- package/docs/types/TagInstance.html +0 -356
- package/docs/types/TagPointType.html +0 -283
- package/docs/types/TagRendererMap.html +0 -285
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -280
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -280
- package/docs/types/WorkCode.html +0 -280
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -290
- package/docs/variables/PLUGIN.html +0 -280
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -283
- package/docs/variables/ROOM_TYPE_MAP.html +0 -290
- package/docs/variables/defaultGlobalConfig.html +0 -280
- package/docs/variables/itemLabelPluginServerParams.html +0 -287
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -287
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -287
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var Mr = (n, t, e) => t in n ? Lf(n, t, { enumerable: !0, configurable: !0, writ
|
|
|
11
11
|
return n;
|
|
12
12
|
}, fe = (n, t) => jf(n, zf(t));
|
|
13
13
|
var u = (n, t, e) => (Mr(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
var
|
|
14
|
+
var _ = (n, t, e) => new Promise((i, s) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(e.next(l));
|
|
@@ -39,7 +39,7 @@ import hl from "animejs";
|
|
|
39
39
|
import { GLTFLoader as em } from "@realsee/five/gltf-loader";
|
|
40
40
|
function tm() {
|
|
41
41
|
console.debug(
|
|
42
|
-
"%c %c@realsee/dnalogel %cv3.5.0
|
|
42
|
+
"%c %c@realsee/dnalogel %cv3.5.0",
|
|
43
43
|
[
|
|
44
44
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
45
45
|
"background-repeat: no-repeat",
|
|
@@ -957,10 +957,10 @@ let pm = class extends mm {
|
|
|
957
957
|
if (!A.find((P) => P === b)) {
|
|
958
958
|
if (A.push(b), m.push(xr(l[b], p.clientWidth, p.clientHeight)), m.length < 3)
|
|
959
959
|
return;
|
|
960
|
-
const { control: P, end:
|
|
961
|
-
if (!P || !
|
|
960
|
+
const { control: P, end: I } = Vs(m);
|
|
961
|
+
if (!P || !I)
|
|
962
962
|
return;
|
|
963
|
-
a.quadraticCurveTo(P.x, P.y,
|
|
963
|
+
a.quadraticCurveTo(P.x, P.y, I.x, I.y), a.stroke();
|
|
964
964
|
}
|
|
965
965
|
}).onComplete((g) => {
|
|
966
966
|
p.tween = void 0, p.tweening = !1, A = [], m = [], o && o(), r();
|
|
@@ -1047,8 +1047,8 @@ class $E {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
const ek = (n, t) => {
|
|
1050
|
-
var H,
|
|
1051
|
-
let e = (
|
|
1050
|
+
var H, F;
|
|
1051
|
+
let e = (F = (H = t == null ? void 0 : t.initialState) == null ? void 0 : H.enabled) != null ? F : !0, i = !1, s = !0, o = null;
|
|
1052
1052
|
const a = R(R({}, {
|
|
1053
1053
|
lookAtCurrentCamera: !1,
|
|
1054
1054
|
lockedPanoIndex: null,
|
|
@@ -1072,21 +1072,21 @@ const ek = (n, t) => {
|
|
|
1072
1072
|
const m = () => {
|
|
1073
1073
|
if (i)
|
|
1074
1074
|
return;
|
|
1075
|
-
h = x(n.model, c.fov, c.aspect), f = n.model.bounding.getCenter(new E.Vector3()), l.remove(d), d =
|
|
1076
|
-
function N(
|
|
1077
|
-
const
|
|
1078
|
-
return
|
|
1079
|
-
}
|
|
1080
|
-
function
|
|
1081
|
-
if (
|
|
1082
|
-
const
|
|
1083
|
-
return new E.Mesh(
|
|
1084
|
-
} else if (
|
|
1085
|
-
const
|
|
1086
|
-
return
|
|
1075
|
+
h = x(n.model, c.fov, c.aspect), f = n.model.bounding.getCenter(new E.Vector3()), l.remove(d), d = Y(n.model), l.add(d), i = !0, B();
|
|
1076
|
+
function N(X) {
|
|
1077
|
+
const Z = X.clone();
|
|
1078
|
+
return Z.uniforms.modelAlpha.value = 1, Z.uniforms.map.value && (Z.uniforms.map.value.needsUpdate = !0), Z;
|
|
1079
|
+
}
|
|
1080
|
+
function Y(X) {
|
|
1081
|
+
if (X instanceof E.Mesh) {
|
|
1082
|
+
const Z = X.geometry, $ = Array.isArray(X.material) ? X.material.map(N) : N(X.material);
|
|
1083
|
+
return new E.Mesh(Z, $);
|
|
1084
|
+
} else if (X instanceof E.Group) {
|
|
1085
|
+
const Z = new E.Group();
|
|
1086
|
+
return X.children.forEach(($) => Z.add(Y($))), Z;
|
|
1087
1087
|
} else {
|
|
1088
|
-
const
|
|
1089
|
-
return
|
|
1088
|
+
const Z = new E.Object3D();
|
|
1089
|
+
return X.children.forEach(($) => Z.add(Y($))), Z;
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
1092
|
}, A = () => {
|
|
@@ -1094,7 +1094,7 @@ const ek = (n, t) => {
|
|
|
1094
1094
|
return o || (o = new E.WebGLRenderer({ antialias: !1, alpha: !0 }), o.setPixelRatio(n.renderer.getPixelRatio()), o.outputEncoding = E.sRGBEncoding, o.setClearColor(1579548, 0), o.autoClear = !0), o;
|
|
1095
1095
|
}, p = () => {
|
|
1096
1096
|
d.traverse((N) => {
|
|
1097
|
-
N instanceof E.Mesh && [].concat(N.material).forEach((
|
|
1097
|
+
N instanceof E.Mesh && [].concat(N.material).forEach((X) => X.dispose());
|
|
1098
1098
|
}), l.remove(d), d = new E.Object3D(), l.add(d), i = !1, B();
|
|
1099
1099
|
}, g = () => {
|
|
1100
1100
|
e && (i || m());
|
|
@@ -1102,49 +1102,49 @@ const ek = (n, t) => {
|
|
|
1102
1102
|
e || (e = !0, l.add(d), !i && n.model.loaded && m(), B());
|
|
1103
1103
|
}, y = () => {
|
|
1104
1104
|
e && (l.remove(d), s = !0, Q(), e = !1);
|
|
1105
|
-
}, P = (N,
|
|
1106
|
-
const
|
|
1107
|
-
if (!
|
|
1105
|
+
}, P = (N, Y = {}) => {
|
|
1106
|
+
const X = A();
|
|
1107
|
+
if (!X)
|
|
1108
1108
|
return;
|
|
1109
|
-
N.appendChild(
|
|
1110
|
-
const
|
|
1111
|
-
|
|
1112
|
-
},
|
|
1109
|
+
N.appendChild(X.domElement), I(Y);
|
|
1110
|
+
const Z = window.getComputedStyle(N).position;
|
|
1111
|
+
Z !== "relative" && Z !== "absolute" && Z !== "fixed" && Z !== "sticky" && (N.style.position = "relative");
|
|
1112
|
+
}, I = (N = {}) => {
|
|
1113
1113
|
if (!o)
|
|
1114
1114
|
return;
|
|
1115
|
-
const
|
|
1116
|
-
if (
|
|
1117
|
-
const { width:
|
|
1118
|
-
o.setSize(
|
|
1115
|
+
const X = o.domElement.parentNode;
|
|
1116
|
+
if (X != null && X.nodeName) {
|
|
1117
|
+
const { width: Z = X.offsetWidth, height: $ = X.offsetHeight } = N;
|
|
1118
|
+
o.setSize(Z, $), c.aspect = Z / $, c.updateProjectionMatrix();
|
|
1119
1119
|
}
|
|
1120
1120
|
B();
|
|
1121
1121
|
};
|
|
1122
|
-
function x(N,
|
|
1123
|
-
const
|
|
1124
|
-
Math.pow(
|
|
1122
|
+
function x(N, Y, X) {
|
|
1123
|
+
const Z = N.bounding, $ = Math.pow(
|
|
1124
|
+
Math.pow(Z.max.x - Z.min.x + 1, 2) + Math.pow(Z.max.y - Z.min.y + 1, 2) + Math.pow(Z.max.z - Z.min.z + 1, 2),
|
|
1125
1125
|
1 / 2
|
|
1126
1126
|
);
|
|
1127
|
-
let he = $ / 2 / Math.tan(Math.PI *
|
|
1128
|
-
return
|
|
1127
|
+
let he = $ / 2 / Math.tan(Math.PI * Y / 360);
|
|
1128
|
+
return X < 1 && (he = he / X), isNaN(he) ? $ : he;
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function C(N) {
|
|
1131
1131
|
return n.work.observers[N].standingPosition.clone();
|
|
1132
1132
|
}
|
|
1133
1133
|
const B = () => {
|
|
1134
1134
|
if (!e || !h || !f)
|
|
1135
1135
|
return;
|
|
1136
1136
|
const N = n.getPose();
|
|
1137
|
-
N.fov = c.fov, N.offset = f, N.distance = h, typeof a.lockedLatitude == "number" && (N.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (N.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (N.offset =
|
|
1137
|
+
N.fov = c.fov, N.offset = f, N.distance = h, typeof a.lockedLatitude == "number" && (N.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (N.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (N.offset = C(a.lockedPanoIndex)), a.lookAtCurrentCamera && (N.offset = n.camera.position.clone().setY(n.camera.position.y + 1)), c.setFromPose(N), s = !0;
|
|
1138
1138
|
}, Q = () => {
|
|
1139
1139
|
!e || s !== !0 || !o || !o.domElement.parentNode || o.domElement.parentNode.offsetWidth === 0 || (o.render(l, c), s = !1);
|
|
1140
1140
|
}, G = () => {
|
|
1141
1141
|
o && o.dispose(), o = null;
|
|
1142
|
-
},
|
|
1142
|
+
}, W = (N) => {
|
|
1143
1143
|
Object.assign(a, N), B();
|
|
1144
1144
|
}, V = () => ({
|
|
1145
1145
|
enabled: e
|
|
1146
1146
|
});
|
|
1147
|
-
return Object.assign(window, { camera: c }), n.on("modelLoaded", g), n.on("modelWillLoad", p), n.on("cameraDirectionUpdate", B), n.on("dispose", G), n.on("renderFrame", Q), n.on("cameraPositionUpdate", B), { appendTo: P, refresh:
|
|
1147
|
+
return Object.assign(window, { camera: c }), n.on("modelLoaded", g), n.on("modelWillLoad", p), n.on("cameraDirectionUpdate", B), n.on("dispose", G), n.on("renderFrame", Q), n.on("cameraPositionUpdate", B), { appendTo: P, refresh: I, changeConfigs: W, enable: b, disable: y, getCurrentState: V };
|
|
1148
1148
|
}, Am = ({ x: n, y: t, z: e }) => new ne(n, t, e), ti = (n) => new ne().fromArray(n), kt = (n) => n instanceof ne ? n : Array.isArray(n) ? ti(n) : Am(n);
|
|
1149
1149
|
function vm(n) {
|
|
1150
1150
|
if (n)
|
|
@@ -1322,8 +1322,8 @@ function yi(...n) {
|
|
|
1322
1322
|
const ka = (n) => n ? n.visible === !1 ? !1 : ka(n.parent) : !0, Gh = 1, Im = `CSS3DObjectPlus@${Gh}`, Pm = 216e-5, Em = 3e-3;
|
|
1323
1323
|
class km extends ta {
|
|
1324
1324
|
constructor(e) {
|
|
1325
|
-
var x,
|
|
1326
|
-
const i = e.container, s = e.cornerPoints, o = (x = e.ratio) != null ? x : Em, r = (
|
|
1325
|
+
var x, C, B;
|
|
1326
|
+
const i = e.container, s = e.cornerPoints, o = (x = e.ratio) != null ? x : Em, r = (C = e.dpr) != null ? C : 1, a = (B = e.pointerEvents) != null ? B : "auto", l = Math.max(Pm, o), c = s[0].distanceTo(s[1]), d = s[1].distanceTo(s[2]), h = co(c / o * r), f = co(d / o * r), m = yi(...s);
|
|
1327
1327
|
let A;
|
|
1328
1328
|
if (l === o)
|
|
1329
1329
|
i.style.width = `${h}px`, i.style.height = `${f}px`, A = i;
|
|
@@ -1370,8 +1370,8 @@ class km extends ta {
|
|
|
1370
1370
|
i.classList.add(`${Im}__container`);
|
|
1371
1371
|
const p = new ne().subVectors(s[1], s[0]), g = new ne().subVectors(s[3], s[0]), b = new ne().crossVectors(p, g).normalize();
|
|
1372
1372
|
this.lookAt(b);
|
|
1373
|
-
const y = this.up.clone().applyQuaternion(this.quaternion), P = g.clone(),
|
|
1374
|
-
this.rotateOnWorldAxis(
|
|
1373
|
+
const y = this.up.clone().applyQuaternion(this.quaternion), P = g.clone(), I = new ne().crossVectors(y, P).normalize();
|
|
1374
|
+
this.rotateOnWorldAxis(I, y.angleTo(P)), this.position.copy(m), this.addEventListener("added", () => {
|
|
1375
1375
|
var Q;
|
|
1376
1376
|
this.mode === "front" && ((Q = this.opacityMesh) == null || Q.removeFromParent());
|
|
1377
1377
|
}), this.addEventListener("removed", () => {
|
|
@@ -1582,7 +1582,7 @@ class As {
|
|
|
1582
1582
|
x && x.add(A);
|
|
1583
1583
|
}, g = () => {
|
|
1584
1584
|
m || (p(), this.render(t), this.hooks.emit("render"));
|
|
1585
|
-
}, b = (x) => this.setVisibleById(A.id, x), y = (x) => this.setEnabledById(A.id, x), P = () => (m = !0, A.removeFromParent(), !0),
|
|
1585
|
+
}, b = (x) => this.setVisibleById(A.id, x), y = (x) => this.setEnabledById(A.id, x), P = () => (m = !0, A.removeFromParent(), !0), I = l === "front" ? Ye.frontModeStore.css3DRenderer : Ye.behindModeStore.css3DRenderer;
|
|
1586
1586
|
return c && g(), {
|
|
1587
1587
|
id: A.uuid,
|
|
1588
1588
|
container: d,
|
|
@@ -1595,7 +1595,7 @@ class As {
|
|
|
1595
1595
|
disable: () => y(!1),
|
|
1596
1596
|
setEnabled: y,
|
|
1597
1597
|
dispose: P,
|
|
1598
|
-
appendToElement: (x) =>
|
|
1598
|
+
appendToElement: (x) => I.setWrapper(x)
|
|
1599
1599
|
};
|
|
1600
1600
|
});
|
|
1601
1601
|
u(this, "setVisibleById", (t, e) => {
|
|
@@ -1646,14 +1646,14 @@ class As {
|
|
|
1646
1646
|
this.setState({ disposed: !0 }), this.hooks.emit("dispose");
|
|
1647
1647
|
}
|
|
1648
1648
|
show() {
|
|
1649
|
-
return
|
|
1649
|
+
return _(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
1650
1650
|
if (this.state.disposed)
|
|
1651
1651
|
return $i();
|
|
1652
1652
|
this.setState({ visible: !0 }, { userAction: t }), this.hooks.emit("show", { userAction: t });
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
1655
1655
|
hide() {
|
|
1656
|
-
return
|
|
1656
|
+
return _(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
1657
1657
|
if (this.state.disposed)
|
|
1658
1658
|
return $i();
|
|
1659
1659
|
this.setState({ visible: !1 }, { userAction: t }), this.hooks.emit("hide", { userAction: t });
|
|
@@ -1725,13 +1725,13 @@ class As {
|
|
|
1725
1725
|
}
|
|
1726
1726
|
}
|
|
1727
1727
|
handleShow() {
|
|
1728
|
-
return
|
|
1728
|
+
return _(this, null, function* () {
|
|
1729
1729
|
var t;
|
|
1730
1730
|
this.store.frontModeGroup.setVisible(!0), (t = this.store.behindModeGroup) == null || t.setVisible(!0);
|
|
1731
1731
|
});
|
|
1732
1732
|
}
|
|
1733
1733
|
handleHide() {
|
|
1734
|
-
return
|
|
1734
|
+
return _(this, null, function* () {
|
|
1735
1735
|
var t;
|
|
1736
1736
|
this.store.frontModeGroup.setVisible(!1), (t = this.store.behindModeGroup) == null || t.setVisible(!1);
|
|
1737
1737
|
});
|
|
@@ -1754,7 +1754,7 @@ class As {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
u(As, "setFrontModeContainer", Lm), u(As, "setBehindModeContainer", jm);
|
|
1756
1756
|
function Hh(n) {
|
|
1757
|
-
return
|
|
1757
|
+
return _(this, null, function* () {
|
|
1758
1758
|
return new Promise((t) => {
|
|
1759
1759
|
var e;
|
|
1760
1760
|
if ((e = n.model) != null && e.loaded) {
|
|
@@ -2492,7 +2492,7 @@ const sk = (n) => {
|
|
|
2492
2492
|
};
|
|
2493
2493
|
return { intersection: r, pointAxesHelper: s, movePointTowardsCamera: c, destroy: a, dispose: l, canSeePoint: o };
|
|
2494
2494
|
};
|
|
2495
|
-
function
|
|
2495
|
+
function J() {
|
|
2496
2496
|
}
|
|
2497
2497
|
const si = (n) => n;
|
|
2498
2498
|
function it(n, t) {
|
|
@@ -2568,14 +2568,14 @@ function Ve(n) {
|
|
|
2568
2568
|
return n == null ? "" : n;
|
|
2569
2569
|
}
|
|
2570
2570
|
function ni(n) {
|
|
2571
|
-
return n && Ut(n.destroy) ? n.destroy :
|
|
2571
|
+
return n && Ut(n.destroy) ? n.destroy : J;
|
|
2572
2572
|
}
|
|
2573
2573
|
function bl(n) {
|
|
2574
2574
|
const t = typeof n == "string" && n.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
|
2575
2575
|
return t ? [parseFloat(t[1]), t[2] || "px"] : [n, "px"];
|
|
2576
2576
|
}
|
|
2577
2577
|
const su = typeof window != "undefined";
|
|
2578
|
-
let Sa = su ? () => window.performance.now() : () => Date.now(), Ta = su ? (n) => requestAnimationFrame(n) :
|
|
2578
|
+
let Sa = su ? () => window.performance.now() : () => Date.now(), Ta = su ? (n) => requestAnimationFrame(n) : J;
|
|
2579
2579
|
const fn = /* @__PURE__ */ new Set();
|
|
2580
2580
|
function ou(n) {
|
|
2581
2581
|
fn.forEach((t) => {
|
|
@@ -2901,7 +2901,7 @@ function Ni(n, t, e) {
|
|
|
2901
2901
|
r && po(n, r);
|
|
2902
2902
|
}
|
|
2903
2903
|
function d() {
|
|
2904
|
-
const { delay: f = 0, duration: m = 300, easing: A = si, tick: p =
|
|
2904
|
+
const { delay: f = 0, duration: m = 300, easing: A = si, tick: p = J, css: g } = s || Ra;
|
|
2905
2905
|
g && (r = go(n, 0, 1, m, f, A, g, l++)), p(0, 1);
|
|
2906
2906
|
const b = Sa() + f, y = b + m;
|
|
2907
2907
|
a && a.abort(), o = !0, He(() => Li(n, !0, "start")), a = La((P) => {
|
|
@@ -2909,8 +2909,8 @@ function Ni(n, t, e) {
|
|
|
2909
2909
|
if (P >= y)
|
|
2910
2910
|
return p(1, 0), Li(n, !0, "end"), c(), o = !1;
|
|
2911
2911
|
if (P >= b) {
|
|
2912
|
-
const
|
|
2913
|
-
p(
|
|
2912
|
+
const I = A((P - b) / m);
|
|
2913
|
+
p(I, 1 - I);
|
|
2914
2914
|
}
|
|
2915
2915
|
}
|
|
2916
2916
|
return o;
|
|
@@ -2935,7 +2935,7 @@ function Bn(n, t, e) {
|
|
|
2935
2935
|
const a = Ht;
|
|
2936
2936
|
a.r += 1;
|
|
2937
2937
|
function l() {
|
|
2938
|
-
const { delay: c = 0, duration: d = 300, easing: h = si, tick: f =
|
|
2938
|
+
const { delay: c = 0, duration: d = 300, easing: h = si, tick: f = J, css: m } = s || Ra;
|
|
2939
2939
|
m && (r = go(n, 1, 0, d, c, h, m));
|
|
2940
2940
|
const A = Sa() + c, p = A + d;
|
|
2941
2941
|
He(() => Li(n, !1, "start")), La((g) => {
|
|
@@ -2977,16 +2977,16 @@ function Yt(n, t, e, i) {
|
|
|
2977
2977
|
};
|
|
2978
2978
|
}
|
|
2979
2979
|
function f(m) {
|
|
2980
|
-
const { delay: A = 0, duration: p = 300, easing: g = si, tick: b =
|
|
2980
|
+
const { delay: A = 0, duration: p = 300, easing: g = si, tick: b = J, css: y } = o || Ra, P = {
|
|
2981
2981
|
start: Sa() + A,
|
|
2982
2982
|
b: m
|
|
2983
2983
|
};
|
|
2984
|
-
m || (P.group = Ht, Ht.r += 1), a || l ? l = P : (y && (d(), c = go(n, r, m, p, A, g, y)), m && b(0, 1), a = h(P, p), He(() => Li(n, m, "start")), La((
|
|
2985
|
-
if (l &&
|
|
2986
|
-
if (
|
|
2984
|
+
m || (P.group = Ht, Ht.r += 1), a || l ? l = P : (y && (d(), c = go(n, r, m, p, A, g, y)), m && b(0, 1), a = h(P, p), He(() => Li(n, m, "start")), La((I) => {
|
|
2985
|
+
if (l && I > l.start && (a = h(l, p), l = null, Li(n, a.b, "start"), y && (d(), c = go(n, r, a.b, a.duration, 0, g, o.css))), a) {
|
|
2986
|
+
if (I >= a.end)
|
|
2987
2987
|
b(r = a.b, 1 - r), Li(n, a.b, "end"), l || (a.b ? d() : --a.group.r || Je(a.group.c)), a = null;
|
|
2988
|
-
else if (
|
|
2989
|
-
const x =
|
|
2988
|
+
else if (I >= a.start) {
|
|
2989
|
+
const x = I - a.start;
|
|
2990
2990
|
r = a.a + a.d * g(x / a.duration), b(r, 1 - r);
|
|
2991
2991
|
}
|
|
2992
2992
|
}
|
|
@@ -3059,20 +3059,20 @@ function Bt(n, t, e, i, s, o, r, a, l, c, d, h) {
|
|
|
3059
3059
|
let G = r.get(Q);
|
|
3060
3060
|
G ? i && P.push(() => G.p(B, t)) : (G = c(Q, B), G.c()), b.set(Q, g[A] = G), Q in p && y.set(Q, Math.abs(A - p[Q]));
|
|
3061
3061
|
}
|
|
3062
|
-
const
|
|
3063
|
-
function
|
|
3062
|
+
const I = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
|
|
3063
|
+
function C(B) {
|
|
3064
3064
|
M(B, 1), B.m(a, d), r.set(B.key, B), d = B.first, m--;
|
|
3065
3065
|
}
|
|
3066
3066
|
for (; f && m; ) {
|
|
3067
|
-
const B = g[m - 1], Q = n[f - 1], G = B.key,
|
|
3068
|
-
B === Q ? (d = B.first, f--, m--) : b.has(
|
|
3067
|
+
const B = g[m - 1], Q = n[f - 1], G = B.key, W = Q.key;
|
|
3068
|
+
B === Q ? (d = B.first, f--, m--) : b.has(W) ? !r.has(G) || I.has(G) ? C(B) : x.has(W) ? f-- : y.get(G) > y.get(W) ? (x.add(G), C(B)) : (I.add(W), f--) : (l(Q, r), f--);
|
|
3069
3069
|
}
|
|
3070
3070
|
for (; f--; ) {
|
|
3071
3071
|
const B = n[f];
|
|
3072
3072
|
b.has(B.key) || l(B, r);
|
|
3073
3073
|
}
|
|
3074
3074
|
for (; m; )
|
|
3075
|
-
|
|
3075
|
+
C(g[m - 1]);
|
|
3076
3076
|
return Je(P), g;
|
|
3077
3077
|
}
|
|
3078
3078
|
function ht(n, t) {
|
|
@@ -3126,7 +3126,7 @@ function oe(n, t, e, i, s, o, r, a = [-1]) {
|
|
|
3126
3126
|
ctx: [],
|
|
3127
3127
|
// state
|
|
3128
3128
|
props: o,
|
|
3129
|
-
update:
|
|
3129
|
+
update: J,
|
|
3130
3130
|
not_equal: s,
|
|
3131
3131
|
bound: vl(),
|
|
3132
3132
|
// lifecycle
|
|
@@ -3159,11 +3159,11 @@ function oe(n, t, e, i, s, o, r, a = [-1]) {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
class re {
|
|
3161
3161
|
$destroy() {
|
|
3162
|
-
te(this, 1), this.$destroy =
|
|
3162
|
+
te(this, 1), this.$destroy = J;
|
|
3163
3163
|
}
|
|
3164
3164
|
$on(t, e) {
|
|
3165
3165
|
if (!Ut(e))
|
|
3166
|
-
return
|
|
3166
|
+
return J;
|
|
3167
3167
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
3168
3168
|
return i.push(e), () => {
|
|
3169
3169
|
const s = i.indexOf(e);
|
|
@@ -3244,8 +3244,8 @@ function gg(n) {
|
|
|
3244
3244
|
c[0].visible ? 1 : 0
|
|
3245
3245
|
);
|
|
3246
3246
|
},
|
|
3247
|
-
i:
|
|
3248
|
-
o:
|
|
3247
|
+
i: J,
|
|
3248
|
+
o: J,
|
|
3249
3249
|
d(c) {
|
|
3250
3250
|
c && j(t), a = !1, l();
|
|
3251
3251
|
}
|
|
@@ -3686,27 +3686,27 @@ function Qg(n, t, e) {
|
|
|
3686
3686
|
function c(b) {
|
|
3687
3687
|
if (!(l === null || b.floorIndex === l))
|
|
3688
3688
|
return !1;
|
|
3689
|
-
const P = new bi(),
|
|
3690
|
-
P.set(
|
|
3689
|
+
const P = new bi(), I = s.camera.position.clone(), x = new ne(b.position.x, b.position.y, b.position.z), C = x.distanceTo(I);
|
|
3690
|
+
P.set(I.clone(), x.clone().sub(I).normalize());
|
|
3691
3691
|
const [B] = s.model.intersectRaycaster(P);
|
|
3692
|
-
return !(B && B.distance + 1 <
|
|
3692
|
+
return !(B && B.distance + 1 < C);
|
|
3693
3693
|
}
|
|
3694
3694
|
function d(b, y) {
|
|
3695
|
-
const
|
|
3696
|
-
return `translate(${x}px, ${
|
|
3695
|
+
const I = new ne(b.position.x, b.position.y, b.position.z).clone().project(s.camera), x = Math.ceil((I.x + 1) / 2 * y.x), C = Math.ceil((-I.y + 1) / 2 * y.y);
|
|
3696
|
+
return `translate(${x}px, ${C}px)`;
|
|
3697
3697
|
}
|
|
3698
3698
|
function h(b) {
|
|
3699
3699
|
const { rendererSize: y } = b, P = /* @__PURE__ */ new Map();
|
|
3700
|
-
function C
|
|
3701
|
-
const B = P.get(
|
|
3700
|
+
function I(C) {
|
|
3701
|
+
const B = P.get(C.id);
|
|
3702
3702
|
if (B)
|
|
3703
3703
|
return B;
|
|
3704
|
-
const { x: Q, y: G, z:
|
|
3705
|
-
return P.set(
|
|
3704
|
+
const { x: Q, y: G, z: W } = C.position, V = new ne(Q, G, W).clone().distanceTo(s.camera.position);
|
|
3705
|
+
return P.set(C.id, V), V;
|
|
3706
3706
|
}
|
|
3707
|
-
return o.map((
|
|
3708
|
-
const B = c(
|
|
3709
|
-
return fe(R({},
|
|
3707
|
+
return o.map((C) => {
|
|
3708
|
+
const B = c(C), Q = B ? d(C, y) : C.transform, G = I(C), V = o.filter((H) => H.visible && I(H) < G).length * 10;
|
|
3709
|
+
return fe(R({}, C), { visible: B, transform: Q, zIndex: V });
|
|
3710
3710
|
});
|
|
3711
3711
|
}
|
|
3712
3712
|
function f() {
|
|
@@ -3838,7 +3838,7 @@ const ok = (n) => new Hg(n), rk = {
|
|
|
3838
3838
|
};
|
|
3839
3839
|
var ji = /* @__PURE__ */ ((n) => (n[n.FLOOR = 1] = "FLOOR", n[n.CEILING = 2] = "CEILING", n[n.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", n))(ji || {});
|
|
3840
3840
|
function yn(n) {
|
|
3841
|
-
return
|
|
3841
|
+
return _(this, null, function* () {
|
|
3842
3842
|
try {
|
|
3843
3843
|
return [null, yield n];
|
|
3844
3844
|
} catch (t) {
|
|
@@ -3887,7 +3887,7 @@ function yo(n, { delay: t = 0, speed: e, duration: i, easing: s = wn } = {}) {
|
|
|
3887
3887
|
};
|
|
3888
3888
|
}
|
|
3889
3889
|
const tn = [];
|
|
3890
|
-
function Ga(n, t =
|
|
3890
|
+
function Ga(n, t = J) {
|
|
3891
3891
|
let e;
|
|
3892
3892
|
const i = /* @__PURE__ */ new Set();
|
|
3893
3893
|
function s(a) {
|
|
@@ -3905,9 +3905,9 @@ function Ga(n, t = Z) {
|
|
|
3905
3905
|
function o(a) {
|
|
3906
3906
|
s(a(n));
|
|
3907
3907
|
}
|
|
3908
|
-
function r(a, l =
|
|
3908
|
+
function r(a, l = J) {
|
|
3909
3909
|
const c = [a, l];
|
|
3910
|
-
return i.add(c), i.size === 1 && (e = t(s) ||
|
|
3910
|
+
return i.add(c), i.size === 1 && (e = t(s) || J), a(n), () => {
|
|
3911
3911
|
i.delete(c), i.size === 0 && e && (e(), e = null);
|
|
3912
3912
|
};
|
|
3913
3913
|
}
|
|
@@ -3931,8 +3931,8 @@ function _g(n) {
|
|
|
3931
3931
|
1 && !Ze(t.src, e = /*url*/
|
|
3932
3932
|
i[0]) && w(t, "src", e);
|
|
3933
3933
|
},
|
|
3934
|
-
i:
|
|
3935
|
-
o:
|
|
3934
|
+
i: J,
|
|
3935
|
+
o: J,
|
|
3936
3936
|
d(i) {
|
|
3937
3937
|
i && j(t);
|
|
3938
3938
|
}
|
|
@@ -3976,8 +3976,8 @@ function Xg(n) {
|
|
|
3976
3976
|
o[0]
|
|
3977
3977
|
);
|
|
3978
3978
|
},
|
|
3979
|
-
i:
|
|
3980
|
-
o:
|
|
3979
|
+
i: J,
|
|
3980
|
+
o: J,
|
|
3981
3981
|
d(o) {
|
|
3982
3982
|
o && j(t);
|
|
3983
3983
|
}
|
|
@@ -4281,8 +4281,8 @@ function op(n) {
|
|
|
4281
4281
|
a[6] ? "1" : "0"
|
|
4282
4282
|
);
|
|
4283
4283
|
},
|
|
4284
|
-
i:
|
|
4285
|
-
o:
|
|
4284
|
+
i: J,
|
|
4285
|
+
o: J,
|
|
4286
4286
|
d(a) {
|
|
4287
4287
|
a && j(t), r && r.d(), e = !1, Je(i);
|
|
4288
4288
|
}
|
|
@@ -4299,12 +4299,12 @@ function rp(n, t) {
|
|
|
4299
4299
|
}
|
|
4300
4300
|
function ap(n, t, e) {
|
|
4301
4301
|
let i, s, o, r, a, { pxmm: l } = t, { roomAreaEnable: c } = t, { roomNameEnable: d } = t, { room: h } = t, { hoveredRoom: f } = t, { getRoomAreaText: m } = t, { getLabelElement: A } = t, { adaptiveRoomLabelVisibleEnable: p } = t;
|
|
4302
|
-
function g(H,
|
|
4303
|
-
if (
|
|
4302
|
+
function g(H, F) {
|
|
4303
|
+
if (F.width === 0 || F.height === 0)
|
|
4304
4304
|
return () => !1;
|
|
4305
|
-
const N = H.path.map(({ x: Ie, y: Ae }) => [Ie, Ae]),
|
|
4305
|
+
const N = H.path.map(({ x: Ie, y: Ae }) => [Ie, Ae]), Y = H.roomLabel.position, { x: X, y: Z } = Y, { width: $, height: he } = F, ae = $ / 2, Ce = he / 2;
|
|
4306
4306
|
return function(Ae) {
|
|
4307
|
-
const Oe =
|
|
4307
|
+
const Oe = X * Ae, ve = Z * Ae, _e = N.map(([ye, Le]) => [ye * Ae, Le * Ae]);
|
|
4308
4308
|
return [
|
|
4309
4309
|
[Oe + ae, ve - Ce],
|
|
4310
4310
|
[Oe - ae, ve - Ce],
|
|
@@ -4313,12 +4313,12 @@ function ap(n, t, e) {
|
|
|
4313
4313
|
].every((ye) => rp(ye, _e));
|
|
4314
4314
|
};
|
|
4315
4315
|
}
|
|
4316
|
-
const b = document.body.clientWidth, y = document.body.clientHeight, P = h.roomLabel,
|
|
4316
|
+
const b = document.body.clientWidth, y = document.body.clientHeight, P = h.roomLabel, I = P.positionInImage.x * 100 + "%", x = P.positionInImage.y * 100 + "%", C = (b < 500 || y < 500 ? 10 : 14) + "px";
|
|
4317
4317
|
let B = 0, Q = 0, G = !1;
|
|
4318
|
-
f.subscribe(function(
|
|
4319
|
-
e(16, G = !!
|
|
4318
|
+
f.subscribe(function(F) {
|
|
4319
|
+
e(16, G = !!F && F.id === h.id);
|
|
4320
4320
|
});
|
|
4321
|
-
const
|
|
4321
|
+
const W = (H) => {
|
|
4322
4322
|
e(4, B = H.detail);
|
|
4323
4323
|
}, V = (H) => {
|
|
4324
4324
|
e(5, Q = H.detail);
|
|
@@ -4342,9 +4342,9 @@ function ap(n, t, e) {
|
|
|
4342
4342
|
a,
|
|
4343
4343
|
s,
|
|
4344
4344
|
i,
|
|
4345
|
-
C,
|
|
4346
|
-
x,
|
|
4347
4345
|
I,
|
|
4346
|
+
x,
|
|
4347
|
+
C,
|
|
4348
4348
|
l,
|
|
4349
4349
|
f,
|
|
4350
4350
|
m,
|
|
@@ -4352,7 +4352,7 @@ function ap(n, t, e) {
|
|
|
4352
4352
|
G,
|
|
4353
4353
|
r,
|
|
4354
4354
|
o,
|
|
4355
|
-
|
|
4355
|
+
W,
|
|
4356
4356
|
V
|
|
4357
4357
|
];
|
|
4358
4358
|
}
|
|
@@ -4657,7 +4657,7 @@ function Ll(n) {
|
|
|
4657
4657
|
m(e, i) {
|
|
4658
4658
|
O(e, t, i);
|
|
4659
4659
|
},
|
|
4660
|
-
p:
|
|
4660
|
+
p: J,
|
|
4661
4661
|
d(e) {
|
|
4662
4662
|
e && j(t);
|
|
4663
4663
|
}
|
|
@@ -4788,8 +4788,8 @@ function mp(n) {
|
|
|
4788
4788
|
A[2]
|
|
4789
4789
|
);
|
|
4790
4790
|
},
|
|
4791
|
-
i:
|
|
4792
|
-
o:
|
|
4791
|
+
i: J,
|
|
4792
|
+
o: J,
|
|
4793
4793
|
d(A) {
|
|
4794
4794
|
A && j(t), zt(h, A);
|
|
4795
4795
|
for (let p = 0; p < a.length; p += 1)
|
|
@@ -4806,8 +4806,8 @@ function gp(n, t, e) {
|
|
|
4806
4806
|
});
|
|
4807
4807
|
h.unshift({ left: 0, bottom: 0 }), h.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
4808
4808
|
const f = d[d.length - 1] - d[0], m = d.map((A, p, g) => {
|
|
4809
|
-
const b = p === 0 ? 0 : A - g[p - 1], y = p === 0 ? 0 : (A + g[p - 1]) / 2, P = a ? (y - o.min.x - nn + sn) / l : 0,
|
|
4810
|
-
return { left: P, bottom:
|
|
4809
|
+
const b = p === 0 ? 0 : A - g[p - 1], y = p === 0 ? 0 : (A + g[p - 1]) / 2, P = a ? (y - o.min.x - nn + sn) / l : 0, I = a ? 0 : (y - o.min.y - nn + sn) / c;
|
|
4810
|
+
return { left: P, bottom: I, distance: b };
|
|
4811
4811
|
}).filter(({ distance: A }) => A / f > 0.1);
|
|
4812
4812
|
return n.$$set = (A) => {
|
|
4813
4813
|
"type" in A && e(0, i = A.type), "data" in A && e(5, s = A.data), "bounding" in A && e(6, o = A.bounding), "getRuleDistanceText" in A && e(1, r = A.getRuleDistanceText);
|
|
@@ -5081,8 +5081,8 @@ function Pp(n) {
|
|
|
5081
5081
|
e[0]
|
|
5082
5082
|
);
|
|
5083
5083
|
},
|
|
5084
|
-
i:
|
|
5085
|
-
o:
|
|
5084
|
+
i: J,
|
|
5085
|
+
o: J,
|
|
5086
5086
|
d(e) {
|
|
5087
5087
|
e && j(t);
|
|
5088
5088
|
}
|
|
@@ -5150,8 +5150,8 @@ function Mp(n) {
|
|
|
5150
5150
|
a[0]
|
|
5151
5151
|
);
|
|
5152
5152
|
},
|
|
5153
|
-
i:
|
|
5154
|
-
o:
|
|
5153
|
+
i: J,
|
|
5154
|
+
o: J,
|
|
5155
5155
|
d(a) {
|
|
5156
5156
|
a && j(t), a && j(o), a && j(r);
|
|
5157
5157
|
}
|
|
@@ -5218,8 +5218,8 @@ function Sp(n) {
|
|
|
5218
5218
|
f[0]
|
|
5219
5219
|
);
|
|
5220
5220
|
},
|
|
5221
|
-
i:
|
|
5222
|
-
o:
|
|
5221
|
+
i: J,
|
|
5222
|
+
o: J,
|
|
5223
5223
|
d(f) {
|
|
5224
5224
|
f && j(t), f && j(r), f && j(a), f && j(l), f && j(c), f && j(d), f && j(h);
|
|
5225
5225
|
}
|
|
@@ -5493,8 +5493,8 @@ function Np(n) {
|
|
|
5493
5493
|
o[1]}_${/*room*/
|
|
5494
5494
|
o[0].id}`) && w(t, "id", e);
|
|
5495
5495
|
},
|
|
5496
|
-
i:
|
|
5497
|
-
o:
|
|
5496
|
+
i: J,
|
|
5497
|
+
o: J,
|
|
5498
5498
|
d(o) {
|
|
5499
5499
|
o && j(t), i = !1, Je(s);
|
|
5500
5500
|
}
|
|
@@ -5802,8 +5802,8 @@ function Xp(n) {
|
|
|
5802
5802
|
), /*missingFloorConfig*/
|
|
5803
5803
|
r[0].text ? o ? o.p(r, a) : (o = Hl(r), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
5804
5804
|
},
|
|
5805
|
-
i:
|
|
5806
|
-
o:
|
|
5805
|
+
i: J,
|
|
5806
|
+
o: J,
|
|
5807
5807
|
d(r) {
|
|
5808
5808
|
r && j(t), o && o.d();
|
|
5809
5809
|
}
|
|
@@ -5885,8 +5885,8 @@ function Kp(n) {
|
|
|
5885
5885
|
i[4]} ${/*domSizeStyle*/
|
|
5886
5886
|
i[4]}`);
|
|
5887
5887
|
},
|
|
5888
|
-
i:
|
|
5889
|
-
o:
|
|
5888
|
+
i: J,
|
|
5889
|
+
o: J,
|
|
5890
5890
|
d(i) {
|
|
5891
5891
|
i && j(t);
|
|
5892
5892
|
}
|
|
@@ -5976,8 +5976,8 @@ function sA(n) {
|
|
|
5976
5976
|
/*canCompassShow*/
|
|
5977
5977
|
i[1] && e.p(i, s);
|
|
5978
5978
|
},
|
|
5979
|
-
i:
|
|
5980
|
-
o:
|
|
5979
|
+
i: J,
|
|
5980
|
+
o: J,
|
|
5981
5981
|
d(i) {
|
|
5982
5982
|
e && e.d(i), i && j(t);
|
|
5983
5983
|
}
|
|
@@ -6017,8 +6017,8 @@ function cA(n) {
|
|
|
6017
6017
|
}
|
|
6018
6018
|
];
|
|
6019
6019
|
let f = {};
|
|
6020
|
-
for (let
|
|
6021
|
-
f = it(f, h[
|
|
6020
|
+
for (let I = 0; I < h.length; I += 1)
|
|
6021
|
+
f = it(f, h[I]);
|
|
6022
6022
|
t = new Qp({ props: f });
|
|
6023
6023
|
let m = (
|
|
6024
6024
|
/*highlightEnable*/
|
|
@@ -6038,8 +6038,8 @@ function cA(n) {
|
|
|
6038
6038
|
}
|
|
6039
6039
|
];
|
|
6040
6040
|
let p = {};
|
|
6041
|
-
for (let
|
|
6042
|
-
p = it(p, A[
|
|
6041
|
+
for (let I = 0; I < A.length; I += 1)
|
|
6042
|
+
p = it(p, A[I]);
|
|
6043
6043
|
s = new wu({ props: p });
|
|
6044
6044
|
let g = (
|
|
6045
6045
|
/*roomLabelsEnable*/
|
|
@@ -6058,27 +6058,27 @@ function cA(n) {
|
|
|
6058
6058
|
c() {
|
|
6059
6059
|
ie(t.$$.fragment), e = q(), m && m.c(), i = q(), ie(s.$$.fragment), o = q(), g && g.c(), r = q(), b && b.c(), a = q(), y && y.c(), l = q(), P && P.c(), c = we();
|
|
6060
6060
|
},
|
|
6061
|
-
m(
|
|
6062
|
-
ee(t,
|
|
6061
|
+
m(I, x) {
|
|
6062
|
+
ee(t, I, x), O(I, e, x), m && m.m(I, x), O(I, i, x), ee(s, I, x), O(I, o, x), g && g.m(I, x), O(I, r, x), b && b.m(I, x), O(I, a, x), y && y.m(I, x), O(I, l, x), P && P.m(I, x), O(I, c, x), d = !0;
|
|
6063
6063
|
},
|
|
6064
|
-
p(
|
|
6065
|
-
const
|
|
6064
|
+
p(I, x) {
|
|
6065
|
+
const C = x & /*floorIndex, floorplanData*/
|
|
6066
6066
|
1028 ? ht(h, [
|
|
6067
6067
|
{
|
|
6068
6068
|
floorIndex: (
|
|
6069
6069
|
/*floorIndex*/
|
|
6070
|
-
|
|
6070
|
+
I[2]
|
|
6071
6071
|
),
|
|
6072
6072
|
floorplanData: (
|
|
6073
6073
|
/*floorplanData*/
|
|
6074
|
-
|
|
6074
|
+
I[10]
|
|
6075
6075
|
)
|
|
6076
6076
|
}
|
|
6077
6077
|
]) : {};
|
|
6078
|
-
t.$set(
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
40 && M(m, 1)) : (m = Fl(
|
|
6078
|
+
t.$set(C), /*highlightEnable*/
|
|
6079
|
+
I[3] || /*hoverEnable*/
|
|
6080
|
+
I[5] ? m ? (m.p(I, x), x & /*highlightEnable, hoverEnable*/
|
|
6081
|
+
40 && M(m, 1)) : (m = Fl(I), m.c(), M(m, 1), m.m(i.parentNode, i)) : m && (ce(), T(m, 1, 1, () => {
|
|
6082
6082
|
m = null;
|
|
6083
6083
|
}), de());
|
|
6084
6084
|
const B = x & /*floorplanData, floorIndex*/
|
|
@@ -6086,40 +6086,40 @@ function cA(n) {
|
|
|
6086
6086
|
{
|
|
6087
6087
|
floorplanData: (
|
|
6088
6088
|
/*floorplanData*/
|
|
6089
|
-
|
|
6089
|
+
I[10]
|
|
6090
6090
|
),
|
|
6091
6091
|
floorIndex: (
|
|
6092
6092
|
/*floorIndex*/
|
|
6093
|
-
|
|
6093
|
+
I[2]
|
|
6094
6094
|
)
|
|
6095
6095
|
}
|
|
6096
6096
|
]) : {};
|
|
6097
6097
|
s.$set(B), /*roomLabelsEnable*/
|
|
6098
|
-
|
|
6099
|
-
64 && M(g, 1)) : (g = _l(
|
|
6098
|
+
I[6] ? g ? (g.p(I, x), x & /*roomLabelsEnable*/
|
|
6099
|
+
64 && M(g, 1)) : (g = _l(I), g.c(), M(g, 1), g.m(r.parentNode, r)) : g && (ce(), T(g, 1, 1, () => {
|
|
6100
6100
|
g = null;
|
|
6101
6101
|
}), de()), /*ruleLabelsEnable*/
|
|
6102
|
-
|
|
6103
|
-
512 && M(b, 1)) : (b = Wl(
|
|
6102
|
+
I[9] ? b ? (b.p(I, x), x & /*ruleLabelsEnable*/
|
|
6103
|
+
512 && M(b, 1)) : (b = Wl(I), b.c(), M(b, 1), b.m(a.parentNode, a)) : b && (ce(), T(b, 1, 1, () => {
|
|
6104
6104
|
b = null;
|
|
6105
6105
|
}), de()), /*cameraEnable*/
|
|
6106
|
-
|
|
6107
|
-
16 && M(y, 1)) : (y = Yl(
|
|
6106
|
+
I[4] ? y ? (y.p(I, x), x & /*cameraEnable*/
|
|
6107
|
+
16 && M(y, 1)) : (y = Yl(I), y.c(), M(y, 1), y.m(l.parentNode, l)) : y && (ce(), T(y, 1, 1, () => {
|
|
6108
6108
|
y = null;
|
|
6109
6109
|
}), de()), /*compassEnable*/
|
|
6110
|
-
|
|
6111
|
-
1048576 && M(P, 1)) : (P = Ul(
|
|
6110
|
+
I[20] ? P ? (P.p(I, x), x & /*compassEnable*/
|
|
6111
|
+
1048576 && M(P, 1)) : (P = Ul(I), P.c(), M(P, 1), P.m(c.parentNode, c)) : P && (ce(), T(P, 1, 1, () => {
|
|
6112
6112
|
P = null;
|
|
6113
6113
|
}), de());
|
|
6114
6114
|
},
|
|
6115
|
-
i(
|
|
6116
|
-
d || (M(t.$$.fragment,
|
|
6115
|
+
i(I) {
|
|
6116
|
+
d || (M(t.$$.fragment, I), M(m), M(s.$$.fragment, I), M(g), M(b), M(y), M(P), d = !0);
|
|
6117
6117
|
},
|
|
6118
|
-
o(
|
|
6119
|
-
T(t.$$.fragment,
|
|
6118
|
+
o(I) {
|
|
6119
|
+
T(t.$$.fragment, I), T(m), T(s.$$.fragment, I), T(g), T(b), T(y), T(P), d = !1;
|
|
6120
6120
|
},
|
|
6121
|
-
d(
|
|
6122
|
-
te(t,
|
|
6121
|
+
d(I) {
|
|
6122
|
+
te(t, I), I && j(e), m && m.d(I), I && j(i), te(s, I), I && j(o), g && g.d(I), I && j(r), b && b.d(I), I && j(a), y && y.d(I), I && j(l), P && P.d(I), I && j(c);
|
|
6123
6123
|
}
|
|
6124
6124
|
};
|
|
6125
6125
|
}
|
|
@@ -6524,10 +6524,10 @@ function hA(n) {
|
|
|
6524
6524
|
};
|
|
6525
6525
|
}
|
|
6526
6526
|
function uA(n, t, e) {
|
|
6527
|
-
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: d } = t, { roomLabelsEnable: h } = t, { roomAreaEnable: f } = t, { roomNameEnable: m } = t, { ruleLabelsEnable: A } = t, { floorplanData: p } = t, { getRoomAreaText: g } = t, { getLabelElement: b } = t, { getRuleDistanceText: y } = t, { adaptiveRoomLabelVisibleEnable: P } = t, { highlightData:
|
|
6528
|
-
const
|
|
6527
|
+
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: d } = t, { roomLabelsEnable: h } = t, { roomAreaEnable: f } = t, { roomNameEnable: m } = t, { ruleLabelsEnable: A } = t, { floorplanData: p } = t, { getRoomAreaText: g } = t, { getLabelElement: b } = t, { getRuleDistanceText: y } = t, { adaptiveRoomLabelVisibleEnable: P } = t, { highlightData: I } = t, { missingFloorConfig: x } = t, { lastPanoramaLongitude: C } = t, { cameraImageUrl: B } = t, { northDesc: Q } = t, { compassEnable: G } = t;
|
|
6528
|
+
const W = Ga(void 0);
|
|
6529
6529
|
return n.$$set = (V) => {
|
|
6530
|
-
"panoIndex" in V && e(0, o = V.panoIndex), "isCurrent" in V && e(1, r = V.isCurrent), "floorIndex" in V && e(2, a = V.floorIndex), "highlightEnable" in V && e(3, l = V.highlightEnable), "cameraEnable" in V && e(4, c = V.cameraEnable), "hoverEnable" in V && e(5, d = V.hoverEnable), "roomLabelsEnable" in V && e(6, h = V.roomLabelsEnable), "roomAreaEnable" in V && e(7, f = V.roomAreaEnable), "roomNameEnable" in V && e(8, m = V.roomNameEnable), "ruleLabelsEnable" in V && e(9, A = V.ruleLabelsEnable), "floorplanData" in V && e(10, p = V.floorplanData), "getRoomAreaText" in V && e(11, g = V.getRoomAreaText), "getLabelElement" in V && e(12, b = V.getLabelElement), "getRuleDistanceText" in V && e(13, y = V.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in V && e(14, P = V.adaptiveRoomLabelVisibleEnable), "highlightData" in V && e(15,
|
|
6530
|
+
"panoIndex" in V && e(0, o = V.panoIndex), "isCurrent" in V && e(1, r = V.isCurrent), "floorIndex" in V && e(2, a = V.floorIndex), "highlightEnable" in V && e(3, l = V.highlightEnable), "cameraEnable" in V && e(4, c = V.cameraEnable), "hoverEnable" in V && e(5, d = V.hoverEnable), "roomLabelsEnable" in V && e(6, h = V.roomLabelsEnable), "roomAreaEnable" in V && e(7, f = V.roomAreaEnable), "roomNameEnable" in V && e(8, m = V.roomNameEnable), "ruleLabelsEnable" in V && e(9, A = V.ruleLabelsEnable), "floorplanData" in V && e(10, p = V.floorplanData), "getRoomAreaText" in V && e(11, g = V.getRoomAreaText), "getLabelElement" in V && e(12, b = V.getLabelElement), "getRuleDistanceText" in V && e(13, y = V.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in V && e(14, P = V.adaptiveRoomLabelVisibleEnable), "highlightData" in V && e(15, I = V.highlightData), "missingFloorConfig" in V && e(16, x = V.missingFloorConfig), "lastPanoramaLongitude" in V && e(17, C = V.lastPanoramaLongitude), "cameraImageUrl" in V && e(18, B = V.cameraImageUrl), "northDesc" in V && e(19, Q = V.northDesc), "compassEnable" in V && e(20, G = V.compassEnable);
|
|
6531
6531
|
}, n.$$.update = () => {
|
|
6532
6532
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
6533
6533
|
1028 && e(23, i = p.floorDatas[a]), n.$$.dirty & /*floorData*/
|
|
@@ -6548,14 +6548,14 @@ function uA(n, t, e) {
|
|
|
6548
6548
|
b,
|
|
6549
6549
|
y,
|
|
6550
6550
|
P,
|
|
6551
|
-
C,
|
|
6552
|
-
x,
|
|
6553
6551
|
I,
|
|
6552
|
+
x,
|
|
6553
|
+
C,
|
|
6554
6554
|
B,
|
|
6555
6555
|
Q,
|
|
6556
6556
|
G,
|
|
6557
6557
|
s,
|
|
6558
|
-
|
|
6558
|
+
W,
|
|
6559
6559
|
i
|
|
6560
6560
|
];
|
|
6561
6561
|
}
|
|
@@ -6912,9 +6912,9 @@ function gA(n) {
|
|
|
6912
6912
|
};
|
|
6913
6913
|
}
|
|
6914
6914
|
function pA(n, t, e) {
|
|
6915
|
-
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: d } = t, { compassEnable: h } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: A } = t, { ruleLabelsEnable: p } = t, { floorplanData: g } = t, { lastPanoramaLongitude: b } = t, { cameraImageUrl: y } = t, { getRoomAreaText: P } = t, { getLabelElement:
|
|
6915
|
+
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: d } = t, { compassEnable: h } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: A } = t, { ruleLabelsEnable: p } = t, { floorplanData: g } = t, { lastPanoramaLongitude: b } = t, { cameraImageUrl: y } = t, { getRoomAreaText: P } = t, { getLabelElement: I } = t, { getRuleDistanceText: x } = t, { adaptiveRoomLabelVisibleEnable: C } = t, { highlightData: B } = t, { missingFloorConfig: Q } = t;
|
|
6916
6916
|
return n.$$set = (G) => {
|
|
6917
|
-
"duration" in G && e(0, i = G.duration), "visible" in G && e(1, s = G.visible), "northDesc" in G && e(2, o = G.northDesc), "panoIndex" in G && e(3, r = G.panoIndex), "floorIndex" in G && e(4, a = G.floorIndex), "cameraEnable" in G && e(5, l = G.cameraEnable), "hoverEnable" in G && e(6, c = G.hoverEnable), "highlightEnable" in G && e(7, d = G.highlightEnable), "compassEnable" in G && e(8, h = G.compassEnable), "roomLabelsEnable" in G && e(9, f = G.roomLabelsEnable), "roomAreaEnable" in G && e(10, m = G.roomAreaEnable), "roomNameEnable" in G && e(11, A = G.roomNameEnable), "ruleLabelsEnable" in G && e(12, p = G.ruleLabelsEnable), "floorplanData" in G && e(13, g = G.floorplanData), "lastPanoramaLongitude" in G && e(14, b = G.lastPanoramaLongitude), "cameraImageUrl" in G && e(15, y = G.cameraImageUrl), "getRoomAreaText" in G && e(16, P = G.getRoomAreaText), "getLabelElement" in G && e(17,
|
|
6917
|
+
"duration" in G && e(0, i = G.duration), "visible" in G && e(1, s = G.visible), "northDesc" in G && e(2, o = G.northDesc), "panoIndex" in G && e(3, r = G.panoIndex), "floorIndex" in G && e(4, a = G.floorIndex), "cameraEnable" in G && e(5, l = G.cameraEnable), "hoverEnable" in G && e(6, c = G.hoverEnable), "highlightEnable" in G && e(7, d = G.highlightEnable), "compassEnable" in G && e(8, h = G.compassEnable), "roomLabelsEnable" in G && e(9, f = G.roomLabelsEnable), "roomAreaEnable" in G && e(10, m = G.roomAreaEnable), "roomNameEnable" in G && e(11, A = G.roomNameEnable), "ruleLabelsEnable" in G && e(12, p = G.ruleLabelsEnable), "floorplanData" in G && e(13, g = G.floorplanData), "lastPanoramaLongitude" in G && e(14, b = G.lastPanoramaLongitude), "cameraImageUrl" in G && e(15, y = G.cameraImageUrl), "getRoomAreaText" in G && e(16, P = G.getRoomAreaText), "getLabelElement" in G && e(17, I = G.getLabelElement), "getRuleDistanceText" in G && e(18, x = G.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in G && e(19, C = G.adaptiveRoomLabelVisibleEnable), "highlightData" in G && e(20, B = G.highlightData), "missingFloorConfig" in G && e(21, Q = G.missingFloorConfig);
|
|
6918
6918
|
}, [
|
|
6919
6919
|
i,
|
|
6920
6920
|
s,
|
|
@@ -6933,9 +6933,9 @@ function pA(n, t, e) {
|
|
|
6933
6933
|
b,
|
|
6934
6934
|
y,
|
|
6935
6935
|
P,
|
|
6936
|
-
C,
|
|
6937
|
-
x,
|
|
6938
6936
|
I,
|
|
6937
|
+
x,
|
|
6938
|
+
C,
|
|
6939
6939
|
B,
|
|
6940
6940
|
Q
|
|
6941
6941
|
];
|
|
@@ -6978,9 +6978,9 @@ let Na = class extends re {
|
|
|
6978
6978
|
};
|
|
6979
6979
|
const AA = "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";
|
|
6980
6980
|
function vA(n) {
|
|
6981
|
-
return
|
|
6981
|
+
return _(this, null, function* () {
|
|
6982
6982
|
const t = new Headers({ "Content-Type": "text/plain" }), e = function(s) {
|
|
6983
|
-
return
|
|
6983
|
+
return _(this, null, function* () {
|
|
6984
6984
|
const o = {
|
|
6985
6985
|
index: s.index,
|
|
6986
6986
|
url: s.url,
|
|
@@ -7038,7 +7038,7 @@ function CA(n) {
|
|
|
7038
7038
|
};
|
|
7039
7039
|
}
|
|
7040
7040
|
function pi(n) {
|
|
7041
|
-
return
|
|
7041
|
+
return _(this, null, function* () {
|
|
7042
7042
|
const t = yield vA(n.outlines), e = n.computed_data.bounding, i = n.computed_data.floor_datas.map(yA), s = n.computed_data.entrance ? CA(n.computed_data.entrance) : null;
|
|
7043
7043
|
return {
|
|
7044
7044
|
outlines: t,
|
|
@@ -7085,7 +7085,7 @@ let Vn = class {
|
|
|
7085
7085
|
/**
|
|
7086
7086
|
* @realsee/dnalogel 版本号
|
|
7087
7087
|
*/
|
|
7088
|
-
u(this, "VERSION", "3.5.0
|
|
7088
|
+
u(this, "VERSION", "3.5.0");
|
|
7089
7089
|
u(this, "five");
|
|
7090
7090
|
/**
|
|
7091
7091
|
* 插件事件钩子
|
|
@@ -7125,7 +7125,7 @@ function Kl(n) {
|
|
|
7125
7125
|
return kA(n) && !!n.isVector3;
|
|
7126
7126
|
}
|
|
7127
7127
|
function _a(n, t) {
|
|
7128
|
-
return
|
|
7128
|
+
return _(this, null, function* () {
|
|
7129
7129
|
const [e] = yield yn(n.changeMode(...t));
|
|
7130
7130
|
if (e)
|
|
7131
7131
|
throw new Error("change mode canceled");
|
|
@@ -7155,7 +7155,7 @@ function xA(n, t) {
|
|
|
7155
7155
|
return !(!zi(e, r, 2) || !zi(i, a, 2) || o !== void 0 && o.distanceTo(l) > 0.01 || !zi(s, c, 2));
|
|
7156
7156
|
}
|
|
7157
7157
|
function Mu(n, t, e = !0) {
|
|
7158
|
-
return
|
|
7158
|
+
return _(this, null, function* () {
|
|
7159
7159
|
if (xA(n, t) === !0)
|
|
7160
7160
|
return;
|
|
7161
7161
|
const s = n.getCurrentState();
|
|
@@ -7246,14 +7246,14 @@ let TA = class extends ri {
|
|
|
7246
7246
|
* @param opts.isAutoShow 是否是自动展示
|
|
7247
7247
|
* @param opts.userAction 是否是用户行为
|
|
7248
7248
|
*/
|
|
7249
|
-
u(this, "show", (...i) =>
|
|
7249
|
+
u(this, "show", (...i) => _(this, [...i], function* (e = {}) {
|
|
7250
7250
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
7251
7251
|
return;
|
|
7252
7252
|
const s = e.userAction !== void 0 ? e.userAction : !0;
|
|
7253
7253
|
this.updateState({ visible: !0 }, s), this._show(e);
|
|
7254
7254
|
}));
|
|
7255
7255
|
/** 隐藏户型图 */
|
|
7256
|
-
u(this, "hide", (...i) =>
|
|
7256
|
+
u(this, "hide", (...i) => _(this, [...i], function* (e = {}) {
|
|
7257
7257
|
this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
7258
7258
|
}));
|
|
7259
7259
|
/** 更新户型图大小 */
|
|
@@ -7278,7 +7278,7 @@ let TA = class extends ri {
|
|
|
7278
7278
|
const { userAction: i } = e;
|
|
7279
7279
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i }));
|
|
7280
7280
|
});
|
|
7281
|
-
u(this, "_show", (e) =>
|
|
7281
|
+
u(this, "_show", (e) => _(this, null, function* () {
|
|
7282
7282
|
var r;
|
|
7283
7283
|
if (!this.state.enabled)
|
|
7284
7284
|
return;
|
|
@@ -7294,7 +7294,7 @@ let TA = class extends ri {
|
|
|
7294
7294
|
immediately: !1,
|
|
7295
7295
|
isAutoShow: !1,
|
|
7296
7296
|
userAction: !0
|
|
7297
|
-
}, s = R(R({}, i), e), o = () =>
|
|
7297
|
+
}, s = R(R({}, i), e), o = () => _(this, null, function* () {
|
|
7298
7298
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
7299
7299
|
let a = !1, l;
|
|
7300
7300
|
this.showRejection = (h) => {
|
|
@@ -7431,7 +7431,7 @@ let TA = class extends ri {
|
|
|
7431
7431
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
7432
7432
|
}
|
|
7433
7433
|
load(e, i, s = !0) {
|
|
7434
|
-
return
|
|
7434
|
+
return _(this, null, function* () {
|
|
7435
7435
|
function o(d) {
|
|
7436
7436
|
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
7437
7437
|
}
|
|
@@ -7473,7 +7473,7 @@ let TA = class extends ri {
|
|
|
7473
7473
|
this.updateState({ config: e }, i), this.render();
|
|
7474
7474
|
}
|
|
7475
7475
|
formatData(e) {
|
|
7476
|
-
return
|
|
7476
|
+
return _(this, null, function* () {
|
|
7477
7477
|
return yield pi(e.data);
|
|
7478
7478
|
});
|
|
7479
7479
|
}
|
|
@@ -7583,14 +7583,14 @@ let zA = class extends ri {
|
|
|
7583
7583
|
* @param opts.isAutoShow 是否是自动展示
|
|
7584
7584
|
* @param opts.userAction 是否是用户行为
|
|
7585
7585
|
*/
|
|
7586
|
-
u(this, "show", (...i) =>
|
|
7586
|
+
u(this, "show", (...i) => _(this, [...i], function* (e = {}) {
|
|
7587
7587
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
7588
7588
|
return;
|
|
7589
7589
|
const s = e.userAction !== void 0 ? e.userAction : !0;
|
|
7590
7590
|
this.updateState({ visible: !0 }, s), this._show(e);
|
|
7591
7591
|
}));
|
|
7592
7592
|
/** 隐藏户型图 */
|
|
7593
|
-
u(this, "hide", (...i) =>
|
|
7593
|
+
u(this, "hide", (...i) => _(this, [...i], function* (e = {}) {
|
|
7594
7594
|
this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
7595
7595
|
}));
|
|
7596
7596
|
/** 更新户型图大小 */
|
|
@@ -7615,7 +7615,7 @@ let zA = class extends ri {
|
|
|
7615
7615
|
const { userAction: i } = e;
|
|
7616
7616
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i }));
|
|
7617
7617
|
});
|
|
7618
|
-
u(this, "_show", (e) =>
|
|
7618
|
+
u(this, "_show", (e) => _(this, null, function* () {
|
|
7619
7619
|
var r;
|
|
7620
7620
|
if (!this.state.enabled)
|
|
7621
7621
|
return;
|
|
@@ -7631,7 +7631,7 @@ let zA = class extends ri {
|
|
|
7631
7631
|
immediately: !1,
|
|
7632
7632
|
isAutoShow: !1,
|
|
7633
7633
|
userAction: !0
|
|
7634
|
-
}, s = R(R({}, i), e), o = () =>
|
|
7634
|
+
}, s = R(R({}, i), e), o = () => _(this, null, function* () {
|
|
7635
7635
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
7636
7636
|
let a = !1, l;
|
|
7637
7637
|
this.showRejection = (h) => {
|
|
@@ -7763,7 +7763,7 @@ let zA = class extends ri {
|
|
|
7763
7763
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
7764
7764
|
}
|
|
7765
7765
|
load(e, i, s = !0) {
|
|
7766
|
-
return
|
|
7766
|
+
return _(this, null, function* () {
|
|
7767
7767
|
function o(d) {
|
|
7768
7768
|
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
7769
7769
|
}
|
|
@@ -7813,7 +7813,7 @@ let zA = class extends ri {
|
|
|
7813
7813
|
this.container.style.left = o * 100 + "%", this.container.style.top = r * 100 + "%";
|
|
7814
7814
|
}
|
|
7815
7815
|
formatData(e) {
|
|
7816
|
-
return
|
|
7816
|
+
return _(this, null, function* () {
|
|
7817
7817
|
return yield pi(e.data);
|
|
7818
7818
|
});
|
|
7819
7819
|
}
|
|
@@ -7990,7 +7990,7 @@ let OA = class extends ri {
|
|
|
7990
7990
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
7991
7991
|
}
|
|
7992
7992
|
load(e, i, s = !0) {
|
|
7993
|
-
return
|
|
7993
|
+
return _(this, null, function* () {
|
|
7994
7994
|
function o(d) {
|
|
7995
7995
|
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
7996
7996
|
}
|
|
@@ -8015,7 +8015,7 @@ let OA = class extends ri {
|
|
|
8015
8015
|
return e.appendChild(this.container), this.render(), this;
|
|
8016
8016
|
}
|
|
8017
8017
|
show() {
|
|
8018
|
-
return
|
|
8018
|
+
return _(this, arguments, function* (e = {}) {
|
|
8019
8019
|
if (this.state.visible)
|
|
8020
8020
|
return;
|
|
8021
8021
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -8023,7 +8023,7 @@ let OA = class extends ri {
|
|
|
8023
8023
|
});
|
|
8024
8024
|
}
|
|
8025
8025
|
hide() {
|
|
8026
|
-
return
|
|
8026
|
+
return _(this, arguments, function* (e = {}) {
|
|
8027
8027
|
if (this.isHiddenByHideFunc = !0, !this.state.visible)
|
|
8028
8028
|
return;
|
|
8029
8029
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -8058,12 +8058,12 @@ let OA = class extends ri {
|
|
|
8058
8058
|
this.updateState({ config: e }, i), this.render();
|
|
8059
8059
|
}
|
|
8060
8060
|
formatData(e) {
|
|
8061
|
-
return
|
|
8061
|
+
return _(this, null, function* () {
|
|
8062
8062
|
return yield pi(e.data);
|
|
8063
8063
|
});
|
|
8064
8064
|
}
|
|
8065
8065
|
_show(e) {
|
|
8066
|
-
return
|
|
8066
|
+
return _(this, null, function* () {
|
|
8067
8067
|
if (!this.state.enabled)
|
|
8068
8068
|
return;
|
|
8069
8069
|
this.isHiddenByHideFunc = !1;
|
|
@@ -8074,7 +8074,7 @@ let OA = class extends ri {
|
|
|
8074
8074
|
});
|
|
8075
8075
|
}
|
|
8076
8076
|
_hide(e) {
|
|
8077
|
-
return
|
|
8077
|
+
return _(this, null, function* () {
|
|
8078
8078
|
if (!this.state.enabled)
|
|
8079
8079
|
return;
|
|
8080
8080
|
const { userAction: i } = e;
|
|
@@ -8195,8 +8195,8 @@ function RA(n) {
|
|
|
8195
8195
|
s[3] ? 1 : 0
|
|
8196
8196
|
);
|
|
8197
8197
|
},
|
|
8198
|
-
i:
|
|
8199
|
-
o:
|
|
8198
|
+
i: J,
|
|
8199
|
+
o: J,
|
|
8200
8200
|
d(s) {
|
|
8201
8201
|
s && j(t);
|
|
8202
8202
|
}
|
|
@@ -8208,29 +8208,29 @@ function VA(n) {
|
|
|
8208
8208
|
function QA(n, t, e) {
|
|
8209
8209
|
var y, P;
|
|
8210
8210
|
let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: d } = t, h = a.getCurrentState().panoIndex, f = a.getCurrentState().longitude, m = (P = (y = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : y.floorIndex) != null ? P : 0;
|
|
8211
|
-
function A(
|
|
8212
|
-
const
|
|
8211
|
+
function A(I, x) {
|
|
8212
|
+
const C = I.bounding, B = I.observers[x];
|
|
8213
8213
|
if (!B)
|
|
8214
8214
|
return "";
|
|
8215
|
-
const Q = (
|
|
8216
|
-
return `translate(${
|
|
8215
|
+
const Q = (C.max.x - C.min.x) * l, G = (C.max.y - C.min.y) * l, W = Math.floor(B.positionInImage.x * Q), V = Math.floor(B.positionInImage.y * G);
|
|
8216
|
+
return `translate(${W}px, ${V}px)`;
|
|
8217
8217
|
}
|
|
8218
|
-
function p(
|
|
8219
|
-
e(7, h =
|
|
8218
|
+
function p(I) {
|
|
8219
|
+
e(7, h = I);
|
|
8220
8220
|
}
|
|
8221
|
-
function g(
|
|
8222
|
-
e(9, m = a.work.observers[
|
|
8221
|
+
function g(I) {
|
|
8222
|
+
e(9, m = a.work.observers[I].floorIndex);
|
|
8223
8223
|
}
|
|
8224
8224
|
const b = Wa(
|
|
8225
|
-
(
|
|
8226
|
-
e(8, f =
|
|
8225
|
+
(I) => {
|
|
8226
|
+
e(8, f = I.longitude);
|
|
8227
8227
|
},
|
|
8228
8228
|
1e3 / 60
|
|
8229
8229
|
);
|
|
8230
8230
|
return Ct(() => (a.on("panoWillArrive", p), a.on("panoArrived", g), a.on("cameraDirectionUpdate", b), function() {
|
|
8231
8231
|
a.off("panoWillArrive", p), a.off("panoArrived", g), a.off("cameraDirectionUpdate", b);
|
|
8232
|
-
})), n.$$set = (
|
|
8233
|
-
"five" in
|
|
8232
|
+
})), n.$$set = (I) => {
|
|
8233
|
+
"five" in I && e(4, a = I.five), "pxmm" in I && e(5, l = I.pxmm), "floorplanData" in I && e(6, c = I.floorplanData), "cameraImageUrl" in I && e(0, d = I.cameraImageUrl);
|
|
8234
8234
|
}, n.$$.update = () => {
|
|
8235
8235
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
8236
8236
|
576 && e(10, i = c.floorDatas[m]), n.$$.dirty & /*floorData*/
|
|
@@ -8339,8 +8339,8 @@ function HA(n) {
|
|
|
8339
8339
|
1 && (s = /*extraObjects*/
|
|
8340
8340
|
r[0], e = Bt(e, a, o, 1, r, s, i, t, Va, ec, null, $l));
|
|
8341
8341
|
},
|
|
8342
|
-
i:
|
|
8343
|
-
o:
|
|
8342
|
+
i: J,
|
|
8343
|
+
o: J,
|
|
8344
8344
|
d(r) {
|
|
8345
8345
|
r && j(t);
|
|
8346
8346
|
for (let a = 0; a < e.length; a += 1)
|
|
@@ -8448,8 +8448,8 @@ function UA(n) {
|
|
|
8448
8448
|
64 && !Ze(e.src, i = /*missingFloorImageUrl*/
|
|
8449
8449
|
s[6]) && w(e, "src", i);
|
|
8450
8450
|
},
|
|
8451
|
-
i:
|
|
8452
|
-
o:
|
|
8451
|
+
i: J,
|
|
8452
|
+
o: J,
|
|
8453
8453
|
d(s) {
|
|
8454
8454
|
s && j(t);
|
|
8455
8455
|
}
|
|
@@ -8849,26 +8849,26 @@ function KA(n) {
|
|
|
8849
8849
|
};
|
|
8850
8850
|
}
|
|
8851
8851
|
function $A(n, t, e) {
|
|
8852
|
-
var
|
|
8853
|
-
let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, { missingFloorImageUrl: d } = t, h = 0, f = (x = (
|
|
8854
|
-
function b(
|
|
8855
|
-
e(12, f = i.work.observers[
|
|
8852
|
+
var I, x;
|
|
8853
|
+
let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, { missingFloorImageUrl: d } = t, h = 0, f = (x = (I = i.work.observers[i.getCurrentState().panoIndex]) == null ? void 0 : I.floorIndex) != null ? x : 0, m = 0, A = 0, p = 0, g = 0;
|
|
8854
|
+
function b(C) {
|
|
8855
|
+
e(12, f = i.work.observers[C].floorIndex);
|
|
8856
8856
|
}
|
|
8857
8857
|
Ct(() => (i.on("panoArrived", b), () => {
|
|
8858
8858
|
i.off("panoArrived", b);
|
|
8859
8859
|
}));
|
|
8860
|
-
const y = (
|
|
8861
|
-
e(8, m =
|
|
8862
|
-
}, P = (
|
|
8863
|
-
e(9, A =
|
|
8860
|
+
const y = (C) => {
|
|
8861
|
+
e(8, m = C.detail);
|
|
8862
|
+
}, P = (C) => {
|
|
8863
|
+
e(9, A = C.detail);
|
|
8864
8864
|
};
|
|
8865
|
-
return n.$$set = (
|
|
8866
|
-
"five" in
|
|
8865
|
+
return n.$$set = (C) => {
|
|
8866
|
+
"five" in C && e(0, i = C.five), "visible" in C && e(1, s = C.visible), "hoverEnable" in C && e(2, o = 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), "missingFloorImageUrl" in C && e(7, d = C.missingFloorImageUrl);
|
|
8867
8867
|
}, n.$$.update = () => {
|
|
8868
8868
|
if (n.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/
|
|
8869
8869
|
1800) {
|
|
8870
|
-
const
|
|
8871
|
-
return G >
|
|
8870
|
+
const C = Math.min(m, A), { max: B, min: Q } = r.bounding, G = B.x - Q.x, W = B.y - Q.y, V = function() {
|
|
8871
|
+
return G > W ? [C, C / G * W] : [C / W * G, C];
|
|
8872
8872
|
}();
|
|
8873
8873
|
e(10, p = V[0]), e(13, g = V[1]), e(11, h = p / G);
|
|
8874
8874
|
}
|
|
@@ -8953,7 +8953,7 @@ let tv = class extends ri {
|
|
|
8953
8953
|
this.state = { enabled: !0, visible: !0, config: o }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), e.once("dispose", this.dispose);
|
|
8954
8954
|
}
|
|
8955
8955
|
load(e, i, s = !0) {
|
|
8956
|
-
return
|
|
8956
|
+
return _(this, null, function* () {
|
|
8957
8957
|
function o(c) {
|
|
8958
8958
|
return Object.prototype.hasOwnProperty.apply(c, ["version"]);
|
|
8959
8959
|
}
|
|
@@ -8962,7 +8962,7 @@ let tv = class extends ri {
|
|
|
8962
8962
|
});
|
|
8963
8963
|
}
|
|
8964
8964
|
show() {
|
|
8965
|
-
return
|
|
8965
|
+
return _(this, arguments, function* (e = {}) {
|
|
8966
8966
|
if (this.state.visible)
|
|
8967
8967
|
return;
|
|
8968
8968
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -8970,7 +8970,7 @@ let tv = class extends ri {
|
|
|
8970
8970
|
});
|
|
8971
8971
|
}
|
|
8972
8972
|
hide() {
|
|
8973
|
-
return
|
|
8973
|
+
return _(this, arguments, function* (e = {}) {
|
|
8974
8974
|
if (!this.state.visible)
|
|
8975
8975
|
return;
|
|
8976
8976
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -9012,7 +9012,7 @@ let tv = class extends ri {
|
|
|
9012
9012
|
this.data && (this.extraObjects = IA(e, this.five, this.data), this.render());
|
|
9013
9013
|
}
|
|
9014
9014
|
formatData(e) {
|
|
9015
|
-
return
|
|
9015
|
+
return _(this, null, function* () {
|
|
9016
9016
|
return yield pi(e.data);
|
|
9017
9017
|
});
|
|
9018
9018
|
}
|
|
@@ -9178,10 +9178,10 @@ const Ik = (n, t) => {
|
|
|
9178
9178
|
const e = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", i = (p = t.north_rad) != null ? p : void 0, s = {};
|
|
9179
9179
|
let o = { x: 0, y: 0, z: 0 }, r = [0, 0, 0], a = 1, l = i;
|
|
9180
9180
|
n.on("modelLoaded", A);
|
|
9181
|
-
const c = (g) =>
|
|
9182
|
-
var
|
|
9181
|
+
const c = (g) => _(void 0, null, function* () {
|
|
9182
|
+
var I;
|
|
9183
9183
|
const b = (g == null ? void 0 : g.fbx_url) || e;
|
|
9184
|
-
if (l = (
|
|
9184
|
+
if (l = (I = g == null ? void 0 : g.north_rad) != null ? I : i, typeof l != "number")
|
|
9185
9185
|
throw new Error('"northRad"配置参数缺失:未配置指南针指向!');
|
|
9186
9186
|
const P = yield new Oh().loadAsync(b);
|
|
9187
9187
|
return xu(P, {
|
|
@@ -9214,11 +9214,11 @@ const Ik = (n, t) => {
|
|
|
9214
9214
|
const g = s.object;
|
|
9215
9215
|
if (!g)
|
|
9216
9216
|
return;
|
|
9217
|
-
const b = n.model.bounding, y = b.max.x - b.min.x, P = b.max.z - b.min.z,
|
|
9218
|
-
max: { x, z:
|
|
9217
|
+
const b = n.model.bounding, y = b.max.x - b.min.x, P = b.max.z - b.min.z, I = Math.max(y, P), {
|
|
9218
|
+
max: { x, z: C },
|
|
9219
9219
|
min: { x: B, y: Q, z: G }
|
|
9220
9220
|
} = b;
|
|
9221
|
-
s.yBase = Q, o = { x: (x + B) / 2, y: Q - 1.6, z: (
|
|
9221
|
+
s.yBase = Q, o = { x: (x + B) / 2, y: Q - 1.6, z: (C + G) / 2 }, r = [0, l - Math.PI / 2, 0], a = 45e-4 * I, iv(g, { position: o, rotation: r, scale: a });
|
|
9222
9222
|
}
|
|
9223
9223
|
return { load: c, disable: m, enable: f };
|
|
9224
9224
|
};
|
|
@@ -9231,20 +9231,20 @@ function nv(n, t) {
|
|
|
9231
9231
|
}
|
|
9232
9232
|
const sv = ({ x: n, y: t, z: e }) => new ne(n, t, e), Pk = (n, t) => {
|
|
9233
9233
|
var p, g, b;
|
|
9234
|
-
const e = {}, i = (p = t.animationEnabled) != null ? p : !0, s = (g = t.position) != null ? g : void 0, o = (b = t.rad) != null ? b : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (y) =>
|
|
9235
|
-
var
|
|
9236
|
-
const P = (
|
|
9234
|
+
const e = {}, i = (p = t.animationEnabled) != null ? p : !0, s = (g = t.position) != null ? g : void 0, o = (b = t.rad) != null ? b : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (y) => _(void 0, null, function* () {
|
|
9235
|
+
var W, V, H, F, N, Y, X, Z;
|
|
9236
|
+
const P = (W = y == null ? void 0 : y.position) != null ? W : s;
|
|
9237
9237
|
if (!P)
|
|
9238
9238
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
9239
|
-
const
|
|
9239
|
+
const I = sv(P), x = (V = y == null ? void 0 : y.rad) != null ? V : o, C = (H = y == null ? void 0 : y.fbx_url) != null ? H : r;
|
|
9240
9240
|
if (e.rad = x, x === void 0)
|
|
9241
9241
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${x}`));
|
|
9242
|
-
const B = yield new Oh().loadAsync(
|
|
9243
|
-
B.position.copy(
|
|
9244
|
-
const Q = (
|
|
9242
|
+
const B = yield new Oh().loadAsync(C);
|
|
9243
|
+
B.position.copy(I), B.rotation.z = x, B.scale.set(0.8, 0.8, 0.8), xu(B, { transparent: !0, side: E.DoubleSide });
|
|
9244
|
+
const Q = (X = (Y = (N = (F = B.children) == null ? void 0 : F[0]) == null ? void 0 : N.children) == null ? void 0 : Y[3]) == null ? void 0 : X.clone();
|
|
9245
9245
|
if (!Q)
|
|
9246
9246
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${Q}`));
|
|
9247
|
-
const G = (
|
|
9247
|
+
const G = (Z = t.name) != null ? Z : "入户门";
|
|
9248
9248
|
return Q.material = new ps({ transparent: !0, map: nv(G) }), Q.renderOrder = 3, B.children[0].add(Q), e.object = B, !0;
|
|
9249
9249
|
}), c = () => {
|
|
9250
9250
|
if (e.animation)
|
|
@@ -9253,32 +9253,32 @@ const sv = ({ x: n, y: t, z: e }) => new ne(n, t, e), Pk = (n, t) => {
|
|
|
9253
9253
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
9254
9254
|
const y = 1, P = new Gf(e.object);
|
|
9255
9255
|
a.push(P);
|
|
9256
|
-
const
|
|
9257
|
-
|
|
9256
|
+
const I = P.clipAction(e.object.animations[0]);
|
|
9257
|
+
I.timeScale = y;
|
|
9258
9258
|
let x;
|
|
9259
|
-
const
|
|
9260
|
-
let
|
|
9261
|
-
const H = 1e3 / 30,
|
|
9262
|
-
|
|
9263
|
-
const
|
|
9264
|
-
|
|
9259
|
+
const C = () => {
|
|
9260
|
+
let W = 0, V = 0;
|
|
9261
|
+
const H = 1e3 / 30, F = (N) => {
|
|
9262
|
+
W = requestAnimationFrame(F);
|
|
9263
|
+
const Y = N - V;
|
|
9264
|
+
Y < H || (V = N, a.forEach((X) => X.update(Y / 1e3)), n.needsRender = !0);
|
|
9265
9265
|
};
|
|
9266
|
-
return
|
|
9267
|
-
cancelAnimationFrame(
|
|
9266
|
+
return W = requestAnimationFrame(F), () => {
|
|
9267
|
+
cancelAnimationFrame(W);
|
|
9268
9268
|
};
|
|
9269
9269
|
}, G = { play: () => {
|
|
9270
|
-
x || (
|
|
9270
|
+
x || (I.play(), x = C(), requestAnimationFrame(() => {
|
|
9271
9271
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
9272
9272
|
}));
|
|
9273
9273
|
}, stop: () => {
|
|
9274
|
-
|
|
9274
|
+
I.stop(), x == null || x(), x = void 0;
|
|
9275
9275
|
} };
|
|
9276
9276
|
e.animation = G;
|
|
9277
9277
|
}, d = (y) => {
|
|
9278
|
-
var
|
|
9278
|
+
var I;
|
|
9279
9279
|
if (!e.object)
|
|
9280
9280
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
9281
|
-
((
|
|
9281
|
+
((I = y == null ? void 0 : y.animationEnable) != null ? I : i) && (e.animation || c(), e.animation.play()), n.scene.add(e.object), n.needsRender = !0;
|
|
9282
9282
|
}, h = () => {
|
|
9283
9283
|
e.object && (e.animation && e.animation.stop(), n.scene.remove(e.object), n.needsRender = !0);
|
|
9284
9284
|
}, f = (y) => y === "Floorplan" ? d() : h();
|
|
@@ -9322,7 +9322,7 @@ const ca = (n, t, e) => {
|
|
|
9322
9322
|
let o = sc(n), r = sc(t);
|
|
9323
9323
|
return e === ei.Anticlockwise && o < r && (o += s), e === ei.Clockwise && r < o && (r += s), e === ei.Loop && r - o > i ? ca(o, r, ei.Anticlockwise) : e === ei.Loop && o - r > i ? ca(o, r, ei.Clockwise) : { from: o, to: r };
|
|
9324
9324
|
}, Ek = (n) => {
|
|
9325
|
-
const t = {}, e = (l, c, ...d) =>
|
|
9325
|
+
const t = {}, e = (l, c, ...d) => _(void 0, [l, c, ...d], function* (o, r, a = { preload: !0 }) {
|
|
9326
9326
|
return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), o.mode && o.mode !== n.currentMode && (yield n.changeMode(o.mode)), a.preload && o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (yield n.preloadPano(o.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), o.panoIndex === void 0 && o.fov === void 0 && o.latitude === void 0 && o.longitude === void 0 ? !0 : yield new Promise((h, f) => {
|
|
9327
9327
|
const m = o.panoIndex !== void 0 ? o.panoIndex : n.panoIndex;
|
|
9328
9328
|
m !== void 0 ? n.moveToPano(m, R({
|
|
@@ -9346,7 +9346,7 @@ const ca = (n, t, e) => {
|
|
|
9346
9346
|
};
|
|
9347
9347
|
return {
|
|
9348
9348
|
move: e,
|
|
9349
|
-
rotate: (l, c, ...d) =>
|
|
9349
|
+
rotate: (l, c, ...d) => _(void 0, [l, c, ...d], function* (o, r, a = {}) {
|
|
9350
9350
|
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), n.currentMode !== et.Mode.Panorama && (yield n.changeMode(et.Mode.Panorama)), o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (a.preload && (yield n.preloadPano(o.panoIndex)), yield new Promise((m, A) => {
|
|
9351
9351
|
if (!o.panoIndex) {
|
|
9352
9352
|
m(!0);
|
|
@@ -9362,8 +9362,8 @@ const ca = (n, t, e) => {
|
|
|
9362
9362
|
const { from: h, to: f } = i(o);
|
|
9363
9363
|
return yield new Promise((m) => {
|
|
9364
9364
|
const A = ({ progress: P }) => {
|
|
9365
|
-
const
|
|
9366
|
-
|
|
9365
|
+
const I = {};
|
|
9366
|
+
I.longitude = Or(h.longitude, f.longitude, P), I.latitude = Or(h.latitude, f.latitude, P), I.fov = Or(h.fov, f.fov, P), n.setState(I, !0);
|
|
9367
9367
|
}, p = () => {
|
|
9368
9368
|
m(!0);
|
|
9369
9369
|
}, g = () => {
|
|
@@ -9566,9 +9566,9 @@ const hv = `<style type="text/css">
|
|
|
9566
9566
|
if (!y)
|
|
9567
9567
|
return !1;
|
|
9568
9568
|
for (const P in g) {
|
|
9569
|
-
const
|
|
9570
|
-
const
|
|
9571
|
-
let H = 1 / 0,
|
|
9569
|
+
const I = g[P], { standingPosition: x } = y.observers[0], C = I.map(({ x: B, z: Q, observers: G }) => {
|
|
9570
|
+
const W = G.length > 0 ? p.rooms[p.observers[G[0]]].name : "", V = b[W] ? b[W].floor : null;
|
|
9571
|
+
let H = 1 / 0, F = {
|
|
9572
9572
|
index: 0,
|
|
9573
9573
|
x: x.x,
|
|
9574
9574
|
y: x.y,
|
|
@@ -9583,37 +9583,37 @@ const hv = `<style type="text/css">
|
|
|
9583
9583
|
y: ae.y,
|
|
9584
9584
|
z: ae.z
|
|
9585
9585
|
}, Ie = uv({ x: B, z: Q }, Ce);
|
|
9586
|
-
V ? Ie < H && Math.abs(Ce.y - V) < 0.3 && (H = Ie,
|
|
9586
|
+
V ? Ie < H && Math.abs(Ce.y - V) < 0.3 && (H = Ie, F = Ce) : Ie < H && (H = Ie, F = Ce);
|
|
9587
9587
|
});
|
|
9588
|
-
const N = new ne(B,
|
|
9588
|
+
const N = new ne(B, F.y, Q);
|
|
9589
9589
|
Object.assign(N, { observers: G });
|
|
9590
|
-
const
|
|
9591
|
-
return
|
|
9590
|
+
const Y = b[W] ? b[W].roof : null, X = Y ? new ne(B, Y, Q) : null;
|
|
9591
|
+
return X && Object.assign(X, { observers: G }), { origin: N, vertical: X };
|
|
9592
9592
|
});
|
|
9593
9593
|
r[P] = {
|
|
9594
|
-
origins:
|
|
9594
|
+
origins: C.map((B) => B.origin),
|
|
9595
9595
|
rules: []
|
|
9596
9596
|
};
|
|
9597
|
-
for (const { origin: B, vertical: Q } of
|
|
9597
|
+
for (const { origin: B, vertical: Q } of C) {
|
|
9598
9598
|
if (!Q)
|
|
9599
9599
|
continue;
|
|
9600
9600
|
const G = i(P, B.distanceTo(Q));
|
|
9601
9601
|
s.append(G), r[P].rules.push({ vertical: !0, rule: [B, Q], $element: G });
|
|
9602
9602
|
}
|
|
9603
|
-
for (let B = 0; B <
|
|
9603
|
+
for (let B = 0; B < C.length; B++) {
|
|
9604
9604
|
let Q = B + 1;
|
|
9605
|
-
Q >=
|
|
9606
|
-
const { origin: G } =
|
|
9607
|
-
s.append(V), r[P].rules.push({ vertical: !1, rule: [G,
|
|
9605
|
+
Q >= C.length && (Q = 0);
|
|
9606
|
+
const { origin: G } = C[B], { origin: W } = C[Q], V = i(P, G.distanceTo(W));
|
|
9607
|
+
s.append(V), r[P].rules.push({ vertical: !1, rule: [G, W], $element: V });
|
|
9608
9608
|
}
|
|
9609
9609
|
}
|
|
9610
9610
|
return e.loaded = !0, !0;
|
|
9611
|
-
}, l = (p, g, b) =>
|
|
9611
|
+
}, l = (p, g, b) => _(void 0, null, function* () {
|
|
9612
9612
|
const y = p || t.roomInfo, P = g || t.roomRules;
|
|
9613
9613
|
if (!y || !P)
|
|
9614
9614
|
throw new Error("标尺数据依赖不齐全!");
|
|
9615
9615
|
return e.loaded = !1, e.options = R(R({}, e.options), b || {}), n.model.loaded ? a(y, P) : yield new Promise(
|
|
9616
|
-
(
|
|
9616
|
+
(I) => n.once("modelLoaded", () => I(a(y, P)))
|
|
9617
9617
|
);
|
|
9618
9618
|
});
|
|
9619
9619
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
@@ -9635,12 +9635,12 @@ const hv = `<style type="text/css">
|
|
|
9635
9635
|
{ x: 0, y },
|
|
9636
9636
|
{ x: b, y }
|
|
9637
9637
|
]
|
|
9638
|
-
],
|
|
9638
|
+
], I = [];
|
|
9639
9639
|
for (let x = 0; x < P.length; x++) {
|
|
9640
|
-
const
|
|
9641
|
-
|
|
9640
|
+
const C = Su([p, g], [P[x][0], P[x][1]], !0);
|
|
9641
|
+
C && I.push(C);
|
|
9642
9642
|
}
|
|
9643
|
-
return
|
|
9643
|
+
return I.length === 0 ? !1 : I;
|
|
9644
9644
|
}, d = () => {
|
|
9645
9645
|
var G;
|
|
9646
9646
|
const p = (G = n.getElement()) == null ? void 0 : G.parentElement;
|
|
@@ -9650,68 +9650,68 @@ const hv = `<style type="text/css">
|
|
|
9650
9650
|
if (g === void 0)
|
|
9651
9651
|
return;
|
|
9652
9652
|
let P;
|
|
9653
|
-
for (const
|
|
9654
|
-
|
|
9653
|
+
for (const W in r)
|
|
9654
|
+
W.split(",").indexOf(g.toString()) >= 0 && (P = W);
|
|
9655
9655
|
if (!P) {
|
|
9656
|
-
for (const
|
|
9657
|
-
for (const { $element: V } of r[
|
|
9656
|
+
for (const W in r)
|
|
9657
|
+
for (const { $element: V } of r[W].rules)
|
|
9658
9658
|
V.style.display = "none";
|
|
9659
9659
|
return;
|
|
9660
9660
|
}
|
|
9661
|
-
const
|
|
9661
|
+
const I = b.position, x = b.getWorldDirection(new ne()), C = p.clientWidth, B = p.clientHeight;
|
|
9662
9662
|
if (y !== et.Mode.Panorama) {
|
|
9663
|
-
for (const
|
|
9664
|
-
for (const { $element: V } of r[
|
|
9663
|
+
for (const W in r)
|
|
9664
|
+
for (const { $element: V } of r[W].rules)
|
|
9665
9665
|
V.style.display = "none";
|
|
9666
9666
|
return;
|
|
9667
9667
|
}
|
|
9668
|
-
for (const
|
|
9669
|
-
for (const { $element: V } of r[
|
|
9670
|
-
V.style.display =
|
|
9671
|
-
const [Q] = r[P].origins.slice().filter((
|
|
9672
|
-
const H =
|
|
9673
|
-
return H -
|
|
9668
|
+
for (const W in r)
|
|
9669
|
+
for (const { $element: V } of r[W].rules)
|
|
9670
|
+
V.style.display = W === P ? "block" : "none";
|
|
9671
|
+
const [Q] = r[P].origins.slice().filter((W) => W.observers.indexOf(g) >= 0).sort((W, V) => {
|
|
9672
|
+
const H = W.clone().setY(0).sub(I).normalize().angleTo(x.clone().setY(0)), F = V.clone().setY(0).sub(I).normalize().angleTo(x.clone().setY(0));
|
|
9673
|
+
return H - F;
|
|
9674
9674
|
});
|
|
9675
|
-
for (const { rule:
|
|
9676
|
-
const [
|
|
9677
|
-
if (!
|
|
9675
|
+
for (const { rule: W, vertical: V, $element: H } of r[P].rules) {
|
|
9676
|
+
const [F, N] = W, Y = H.querySelector(".PanoRulerPlugin-rule-line");
|
|
9677
|
+
if (!Y)
|
|
9678
9678
|
return;
|
|
9679
9679
|
if (!Q) {
|
|
9680
9680
|
H.style.display = "none";
|
|
9681
9681
|
continue;
|
|
9682
9682
|
}
|
|
9683
|
-
if (
|
|
9683
|
+
if (F !== Q && N !== Q) {
|
|
9684
9684
|
H.style.display = "none";
|
|
9685
9685
|
continue;
|
|
9686
9686
|
}
|
|
9687
|
-
if (
|
|
9687
|
+
if (F.distanceTo(N) < 0.3) {
|
|
9688
9688
|
H.style.display = "none";
|
|
9689
9689
|
continue;
|
|
9690
9690
|
}
|
|
9691
|
-
if (
|
|
9691
|
+
if (F.observers.indexOf(g) === -1 || N.observers.indexOf(g) === -1) {
|
|
9692
9692
|
H.style.display = "none";
|
|
9693
9693
|
continue;
|
|
9694
9694
|
}
|
|
9695
|
-
if (
|
|
9695
|
+
if (F.clone().sub(I).normalize().angleTo(x) > Math.PI / 2) {
|
|
9696
9696
|
H.style.display = "none";
|
|
9697
9697
|
continue;
|
|
9698
9698
|
}
|
|
9699
|
-
if (N.clone().sub(
|
|
9699
|
+
if (N.clone().sub(I).normalize().angleTo(x) > Math.PI / 2) {
|
|
9700
9700
|
H.style.display = "none";
|
|
9701
9701
|
continue;
|
|
9702
9702
|
}
|
|
9703
|
-
const $ =
|
|
9704
|
-
if (N.clone().sub(N.clone().sub(
|
|
9703
|
+
const $ = F.distanceTo(N);
|
|
9704
|
+
if (N.clone().sub(N.clone().sub(F).divide(new ne(2, 2, 2))).distanceTo(I) / $ > 8) {
|
|
9705
9705
|
H.style.display = "none";
|
|
9706
9706
|
continue;
|
|
9707
9707
|
}
|
|
9708
|
-
const Ce =
|
|
9708
|
+
const Ce = F.clone().project(b), Ie = (Ce.x + 1) / 2 * C, Ae = (-Ce.y + 1) / 2 * B, Oe = N.clone().project(b), ve = (Oe.x + 1) / 2 * C, _e = (-Oe.y + 1) / 2 * B, me = Math.sqrt(Math.pow(ve - Ie, 2) + Math.pow(_e - Ae, 2));
|
|
9709
9709
|
let ye = me, Le = 50;
|
|
9710
9710
|
const ge = c({ x: ~~Ie, y: ~~Ae }, {
|
|
9711
9711
|
x: ~~ve,
|
|
9712
9712
|
y: ~~_e
|
|
9713
|
-
},
|
|
9714
|
-
if (ge && ge.length === 1 && (Q ===
|
|
9713
|
+
}, C, B);
|
|
9714
|
+
if (ge && ge.length === 1 && (Q === F ? (ye = Math.sqrt(Math.pow(ge[0].x - Ie, 2) + Math.pow(ge[0].y - Ae, 2)), Le = ye / me * 50) : Q === N && (ye = Math.sqrt(Math.pow(ge[0].x - ve, 2) + Math.pow(ge[0].y - _e, 2)), Le = 100 - ye / me * 50)), ge && ge.length === 2) {
|
|
9715
9715
|
const le = {
|
|
9716
9716
|
x: (ge[0].x + ge[1].x) / 2,
|
|
9717
9717
|
y: (ge[0].y + ge[1].y) / 2
|
|
@@ -9720,8 +9720,8 @@ const hv = `<style type="text/css">
|
|
|
9720
9720
|
Math.pow(le.x - Ie, 2) + Math.pow(le.y - Ae, 2)
|
|
9721
9721
|
) / me * 100;
|
|
9722
9722
|
}
|
|
9723
|
-
const ut = (Math.PI / 2 - Math.atan2(ve - Ie, Ae - _e)) / Math.PI * 180, Me =
|
|
9724
|
-
st >= me || st / 2 >= Le / 100 * me || st / 2 >= (1 - Le / 100) * me ?
|
|
9723
|
+
const ut = (Math.PI / 2 - Math.atan2(ve - Ie, Ae - _e)) / Math.PI * 180, Me = Y.querySelector(".PanoRulerPlugin-rule-label"), st = Me.children[0].clientWidth;
|
|
9724
|
+
st >= me || st / 2 >= Le / 100 * me || st / 2 >= (1 - Le / 100) * me ? Y.style.display = "none" : (Y.style.display = "block", Y.style.width = me + "px", Y.style.left = Ie + "px", Y.style.top = Ae + "px", Y.style.transform = `rotate(${-ut}deg)`, Me.style.left = `${Le}%`);
|
|
9725
9725
|
}
|
|
9726
9726
|
}, h = () => Tu(d), f = () => {
|
|
9727
9727
|
var p, g;
|
|
@@ -9732,8 +9732,8 @@ const hv = `<style type="text/css">
|
|
|
9732
9732
|
const g = p.distanceText;
|
|
9733
9733
|
e.options.distanceText = g, Object.values(r).forEach((b) => {
|
|
9734
9734
|
b.rules.forEach((y) => {
|
|
9735
|
-
const [P,
|
|
9736
|
-
|
|
9735
|
+
const [P, I] = y.rule, x = P.distanceTo(I), C = y.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
9736
|
+
C && (C.innerText = g(x));
|
|
9737
9737
|
});
|
|
9738
9738
|
});
|
|
9739
9739
|
}
|
|
@@ -9925,8 +9925,8 @@ function Av(n) {
|
|
|
9925
9925
|
g[2] ? "block" : "none"
|
|
9926
9926
|
);
|
|
9927
9927
|
},
|
|
9928
|
-
i:
|
|
9929
|
-
o:
|
|
9928
|
+
i: J,
|
|
9929
|
+
o: J,
|
|
9930
9930
|
d(g) {
|
|
9931
9931
|
g && j(t), p.d(), a();
|
|
9932
9932
|
}
|
|
@@ -10042,69 +10042,69 @@ function yv(n) {
|
|
|
10042
10042
|
function wv(n, t, e) {
|
|
10043
10043
|
var p, g, b, y;
|
|
10044
10044
|
let { five: i } = t, { rulerDatas: s } = t, { options: o } = t, r = [];
|
|
10045
|
-
const a = ((g = (p = i.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : g.clientWidth) || 0, l = ((y = (b = i.getElement()) == null ? void 0 : b.parentElement) == null ? void 0 : y.clientHeight) || 0, c = (P,
|
|
10045
|
+
const a = ((g = (p = i.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : g.clientWidth) || 0, l = ((y = (b = i.getElement()) == null ? void 0 : b.parentElement) == null ? void 0 : y.clientHeight) || 0, c = (P, I) => {
|
|
10046
10046
|
const x = [
|
|
10047
10047
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
10048
10048
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
10049
10049
|
[{ x: a, y: 0 }, { x: a, y: l }],
|
|
10050
10050
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
10051
|
-
],
|
|
10051
|
+
], C = [];
|
|
10052
10052
|
for (let B = 0; B < x.length; B++) {
|
|
10053
|
-
const Q = Su([P,
|
|
10054
|
-
Q &&
|
|
10053
|
+
const Q = Su([P, I], [x[B][0], x[B][1]], !0);
|
|
10054
|
+
Q && C.push(Q);
|
|
10055
10055
|
}
|
|
10056
|
-
return
|
|
10057
|
-
}, d = (P,
|
|
10058
|
-
const x = P.clone().project(i.camera),
|
|
10056
|
+
return C.length === 0 ? !1 : C;
|
|
10057
|
+
}, d = (P, I) => {
|
|
10058
|
+
const x = P.clone().project(i.camera), C = (x.x + 1) / 2 * a, B = (-x.y + 1) / 2 * l, Q = I.clone().project(i.camera), G = (Q.x + 1) / 2 * a, W = (-Q.y + 1) / 2 * l, V = Math.sqrt(Math.pow(G - C, 2) + Math.pow(W - B, 2));
|
|
10059
10059
|
return {
|
|
10060
|
-
startLeft:
|
|
10060
|
+
startLeft: C,
|
|
10061
10061
|
startTop: B,
|
|
10062
10062
|
endLeft: G,
|
|
10063
|
-
endTop:
|
|
10063
|
+
endTop: W,
|
|
10064
10064
|
distance: V
|
|
10065
10065
|
};
|
|
10066
|
-
}, h = (P,
|
|
10067
|
-
const
|
|
10066
|
+
}, h = (P, I, x) => {
|
|
10067
|
+
const C = i.camera.position, B = i.camera.getWorldDirection(new ne()), Q = P.clone().sub(C).normalize().angleTo(B), G = I.clone().sub(C).normalize().angleTo(B), W = P.distanceTo(I), H = I.clone().sub(I.clone().sub(P).divide(new ne(2, 2, 2))).distanceTo(C), { startLeft: F, startTop: N, endLeft: Y, endTop: X, distance: Z } = d(P, I), he = -((Math.PI / 2 - Math.atan2(Y - F, N - X)) / Math.PI) * 180;
|
|
10068
10068
|
let ae = !0;
|
|
10069
|
-
x || (ae = !1), !dt(P, x) && !dt(
|
|
10070
|
-
let Ce = 50, Ie =
|
|
10071
|
-
const Ae = c({ x: ~~
|
|
10072
|
-
if (Ae && Ae.length === 1 && (dt(P, x) ? (Ie = Math.sqrt(Math.pow(Ae[0].x -
|
|
10069
|
+
x || (ae = !1), !dt(P, x) && !dt(I, x) && (ae = !1), W < 0.3 && (ae = !1), Q > Math.PI / 2 && (ae = !1), G > Math.PI / 2 && (ae = !1), H / W > 8 && (ae = !1);
|
|
10070
|
+
let Ce = 50, Ie = Z;
|
|
10071
|
+
const Ae = c({ x: ~~F, y: ~~N }, { x: ~~Y, y: ~~X });
|
|
10072
|
+
if (Ae && Ae.length === 1 && (dt(P, x) ? (Ie = Math.sqrt(Math.pow(Ae[0].x - F, 2) + Math.pow(Ae[0].y - N, 2)), Ce = Ie / Z * 50) : dt(I, x) && (Ie = Math.sqrt(Math.pow(Ae[0].x - Y, 2) + Math.pow(Ae[0].y - X, 2)), Ce = 100 - Ie / Z * 50)), Ae && Ae.length === 2) {
|
|
10073
10073
|
const Oe = {
|
|
10074
10074
|
x: (Ae[0].x + Ae[1].x) / 2,
|
|
10075
10075
|
y: (Ae[0].y + Ae[1].y) / 2
|
|
10076
10076
|
};
|
|
10077
|
-
Ce = Math.sqrt(Math.pow(Oe.x -
|
|
10077
|
+
Ce = Math.sqrt(Math.pow(Oe.x - F, 2) + Math.pow(Oe.y - N, 2)) / Z * 100;
|
|
10078
10078
|
}
|
|
10079
10079
|
return {
|
|
10080
|
-
startLeft:
|
|
10080
|
+
startLeft: F,
|
|
10081
10081
|
startTop: N,
|
|
10082
|
-
distance:
|
|
10082
|
+
distance: Z,
|
|
10083
10083
|
deg: he,
|
|
10084
10084
|
visible: ae,
|
|
10085
10085
|
labelOffset: Ce,
|
|
10086
|
-
ruleLength:
|
|
10086
|
+
ruleLength: W
|
|
10087
10087
|
};
|
|
10088
10088
|
}, f = () => {
|
|
10089
|
-
const P = i.panoIndex,
|
|
10090
|
-
if (!
|
|
10089
|
+
const P = i.panoIndex, I = s.find((V) => V.panoIndex === P);
|
|
10090
|
+
if (!I)
|
|
10091
10091
|
return e(0, r = []);
|
|
10092
10092
|
if (i.currentMode !== et.Mode.Panorama)
|
|
10093
10093
|
return e(0, r = []);
|
|
10094
|
-
const x = i.camera.position,
|
|
10095
|
-
const
|
|
10096
|
-
return
|
|
10097
|
-
}),
|
|
10094
|
+
const x = i.camera.position, C = i.camera.getWorldDirection(new ne()), B = I.lines.map((V) => new ne(V.start[0], -V.start[1], -V.start[2])), Q = I.lines.map((V) => new ne(V.end[0], -V.end[1], -V.end[2])), [G] = B.concat(Q).sort((V, H) => {
|
|
10095
|
+
const F = V.clone().setY(0).sub(x).normalize().angleTo(C.clone().setY(0)), N = H.clone().setY(0).sub(x).normalize().angleTo(C.clone().setY(0));
|
|
10096
|
+
return F - N;
|
|
10097
|
+
}), W = I.lines.map((V) => {
|
|
10098
10098
|
var Ie, Ae;
|
|
10099
|
-
const H = V.start,
|
|
10099
|
+
const H = V.start, F = V.end, { startLeft: N, startTop: Y, distance: X, deg: Z, visible: $, labelOffset: he, ruleLength: ae } = h(new ne(H[0], -H[1], -H[2]), new ne(F[0], -F[1], -F[2]), G), Ce = [];
|
|
10100
10100
|
return V.children && ((Ie = V.children) == null ? void 0 : Ie.length) > 0 && ((Ae = V.children) == null || Ae.forEach((Oe) => {
|
|
10101
10101
|
const ve = Oe.start, _e = Oe.end, { distance: me } = d(new ne(ve[0], -ve[1], -ve[2]), new ne(_e[0], -_e[1], -_e[2]));
|
|
10102
10102
|
Ce.push({ width: me, state: Oe.state });
|
|
10103
10103
|
})), {
|
|
10104
|
-
width:
|
|
10104
|
+
width: X,
|
|
10105
10105
|
left: N,
|
|
10106
|
-
top:
|
|
10107
|
-
rotateDeg:
|
|
10106
|
+
top: Y,
|
|
10107
|
+
rotateDeg: Z,
|
|
10108
10108
|
state: V.state,
|
|
10109
10109
|
children: Ce,
|
|
10110
10110
|
labelOffset: he,
|
|
@@ -10112,7 +10112,7 @@ function wv(n, t, e) {
|
|
|
10112
10112
|
labelElement: o.distanceText(ae)
|
|
10113
10113
|
};
|
|
10114
10114
|
});
|
|
10115
|
-
e(0, r =
|
|
10115
|
+
e(0, r = W);
|
|
10116
10116
|
}, m = () => xo(f), A = Wa(f, 80);
|
|
10117
10117
|
return Ct(() => {
|
|
10118
10118
|
f(), i.on("panoArrived", f), i.on("modeChange", f), i.on("cameraDirectionUpdate", m), i.on("movingToPano", m), i.on("mouseWheel", () => A()), i.on("pinchGesture", () => A());
|
|
@@ -10145,13 +10145,13 @@ let Iv = class {
|
|
|
10145
10145
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
10146
10146
|
"style",
|
|
10147
10147
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
10148
|
-
), e && (e.data && this.load(e.data), this.state.options = R(R({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () =>
|
|
10148
|
+
), e && (e.data && this.load(e.data), this.state.options = R(R({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => _(this, null, function* () {
|
|
10149
10149
|
var o, r;
|
|
10150
10150
|
(r = (o = this.five.getElement()) == null ? void 0 : o.parentNode) == null || r.append(this.container);
|
|
10151
10151
|
})), this.five.once("dispose", () => this.dispose());
|
|
10152
10152
|
}
|
|
10153
10153
|
load(t) {
|
|
10154
|
-
return
|
|
10154
|
+
return _(this, null, function* () {
|
|
10155
10155
|
if (!this.five.work)
|
|
10156
10156
|
return;
|
|
10157
10157
|
const e = t.data;
|
|
@@ -10167,7 +10167,7 @@ let Iv = class {
|
|
|
10167
10167
|
return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
|
|
10168
10168
|
}
|
|
10169
10169
|
render() {
|
|
10170
|
-
return
|
|
10170
|
+
return _(this, null, function* () {
|
|
10171
10171
|
var t;
|
|
10172
10172
|
if (this.state.enabled) {
|
|
10173
10173
|
if (!this.panoRulerProData || !this.container)
|
|
@@ -10211,14 +10211,14 @@ function Ev() {
|
|
|
10211
10211
|
}
|
|
10212
10212
|
const kv = new E.TextureLoader();
|
|
10213
10213
|
function Oi(n) {
|
|
10214
|
-
return
|
|
10214
|
+
return _(this, null, function* () {
|
|
10215
10215
|
return new Promise((t, e) => {
|
|
10216
10216
|
kv.load(n, t, void 0, e);
|
|
10217
10217
|
}).then((t) => (t.encoding = E.sRGBEncoding, t));
|
|
10218
10218
|
});
|
|
10219
10219
|
}
|
|
10220
10220
|
function Lu(n) {
|
|
10221
|
-
return
|
|
10221
|
+
return _(this, null, function* () {
|
|
10222
10222
|
return Oi(n).then((t) => {
|
|
10223
10223
|
const e = n.startsWith("data:") ? n.includes("png") : new URL(n, location.href).pathname.toLowerCase().endsWith(".png");
|
|
10224
10224
|
return e && (t.minFilter = E.NearestFilter, t.magFilter = E.NearestFilter), { texture: t, transparent: e };
|
|
@@ -10412,7 +10412,7 @@ class Mv extends ri {
|
|
|
10412
10412
|
}), e.enabled === !0 && (this._enable(), this.hooks.emit("enable", i)), e.enabled === !1 && (this._disable(), this.hooks.emit("disable", i)), e.visible === !1 && (this._toggleVisible(), this.hooks.emit("hide", i)), e.visible === !0 && (this._toggleVisible(), this.hooks.emit("show", i)), e.config && this.init();
|
|
10413
10413
|
}
|
|
10414
10414
|
load(e, i, s = !0) {
|
|
10415
|
-
return
|
|
10415
|
+
return _(this, null, function* () {
|
|
10416
10416
|
const o = yield this.formatData(e);
|
|
10417
10417
|
JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = R({}, o), this.init(), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
|
|
10418
10418
|
});
|
|
@@ -10425,7 +10425,7 @@ class Mv extends ri {
|
|
|
10425
10425
|
* @todo 逻辑需要细分
|
|
10426
10426
|
*/
|
|
10427
10427
|
init() {
|
|
10428
|
-
return
|
|
10428
|
+
return _(this, null, function* () {
|
|
10429
10429
|
var s, o, r, a;
|
|
10430
10430
|
const e = (o = (s = this.data) == null ? void 0 : s.north_rad) != null ? o : null;
|
|
10431
10431
|
this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh && (this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh))), this._clearLogoIfNeed(), this.logoMesh = yield this.loadLogoMesh(), this.logoMesh && (this.logoMesh.rotateX(-Math.PI / 2), this.group.add(this.logoMesh));
|
|
@@ -10434,7 +10434,7 @@ class Mv extends ri {
|
|
|
10434
10434
|
});
|
|
10435
10435
|
}
|
|
10436
10436
|
loadCompassMesh() {
|
|
10437
|
-
return
|
|
10437
|
+
return _(this, null, function* () {
|
|
10438
10438
|
const e = this.state.config.compassImageUrl, i = yield Oi(e), s = new E.CircleGeometry(0.7, 32), o = new E.MeshBasicMaterial({
|
|
10439
10439
|
map: i,
|
|
10440
10440
|
transparent: !0,
|
|
@@ -10445,7 +10445,7 @@ class Mv extends ri {
|
|
|
10445
10445
|
});
|
|
10446
10446
|
}
|
|
10447
10447
|
loadLogoMesh() {
|
|
10448
|
-
return
|
|
10448
|
+
return _(this, null, function* () {
|
|
10449
10449
|
if (!this.state.config.logoURL)
|
|
10450
10450
|
return;
|
|
10451
10451
|
const e = this.state.config.logoURL, i = yield Oi(e);
|
|
@@ -10460,7 +10460,7 @@ class Mv extends ri {
|
|
|
10460
10460
|
});
|
|
10461
10461
|
}
|
|
10462
10462
|
loadEntryDoorMesh() {
|
|
10463
|
-
return
|
|
10463
|
+
return _(this, null, function* () {
|
|
10464
10464
|
const e = this.state.config.entryDoorImageUrl, i = yield Oi(e), s = new E.PlaneGeometry(0.2, 0.16), o = new E.MeshBasicMaterial({
|
|
10465
10465
|
map: i,
|
|
10466
10466
|
transparent: !0,
|
|
@@ -10616,10 +10616,10 @@ class Hv extends zu {
|
|
|
10616
10616
|
this.hide();
|
|
10617
10617
|
return;
|
|
10618
10618
|
}
|
|
10619
|
-
const b = (f.x + 1) / 2 * s, y = -(f.y - 1) / 2 * o,
|
|
10620
|
-
this.containerDom.style.transform = `translate(${b}px, ${y}px) rotate(${
|
|
10621
|
-
const
|
|
10622
|
-
this.contentDom.innerText =
|
|
10619
|
+
const b = (f.x + 1) / 2 * s, y = -(f.y - 1) / 2 * o, I = -(Math.atan((m.y - A.y) / (m.x - A.x)) * 180) / Math.PI, x = this.containerDom.parentElement && this.contentDom.clientWidth > p ? -20 : 0;
|
|
10620
|
+
this.containerDom.style.transform = `translate(${b}px, ${y}px) rotate(${I}deg) translateY(${x}px)`, this.show(), (B = this.params.userDistanceItem) == null || B.update({ line: this.line, polyline: this.line.getPolyline() });
|
|
10621
|
+
const C = this.getCurrentContent();
|
|
10622
|
+
this.contentDom.innerText = C;
|
|
10623
10623
|
}
|
|
10624
10624
|
/** 获取内容文本 */
|
|
10625
10625
|
getCurrentContent() {
|
|
@@ -11530,19 +11530,19 @@ class fi extends Oo {
|
|
|
11530
11530
|
if (s != null && s.isPolygonMesh) {
|
|
11531
11531
|
const b = this.model.areas.find((y) => y.polygon === s);
|
|
11532
11532
|
if (b) {
|
|
11533
|
-
const { x: y, y: P } = i[0].point.clone().project(this.five.camera),
|
|
11534
|
-
return this.chooseArea(b, { left:
|
|
11533
|
+
const { x: y, y: P } = i[0].point.clone().project(this.five.camera), I = `${(y + 1) / 2 * 100}%`, x = `${(-P + 1) / 2 * 100}%`;
|
|
11534
|
+
return this.chooseArea(b, { left: I, top: x }), !1;
|
|
11535
11535
|
}
|
|
11536
11536
|
}
|
|
11537
11537
|
const [o] = this.five.model.intersectRaycaster(e);
|
|
11538
11538
|
if (!o)
|
|
11539
11539
|
return;
|
|
11540
11540
|
const r = this.five.camera, a = o.point.clone().project(r), l = this.container.clientWidth, c = this.container.clientHeight, d = new tt(a.x * l, a.y * c), h = this.model.getAllLines().map((b) => {
|
|
11541
|
-
const [y, P] = b.points,
|
|
11542
|
-
if (!Qi(
|
|
11541
|
+
const [y, P] = b.points, I = y.position.clone().project(r), x = P.position.clone().project(r);
|
|
11542
|
+
if (!Qi(I) && !Qi(x))
|
|
11543
11543
|
return null;
|
|
11544
|
-
const
|
|
11545
|
-
return { id: b.id, points: [
|
|
11544
|
+
const C = new tt(I.x * l, I.y * c), B = new tt(x.x * l, x.y * c);
|
|
11545
|
+
return { id: b.id, points: [C, B] };
|
|
11546
11546
|
}).filter((b) => !!b);
|
|
11547
11547
|
if (h.length === 0)
|
|
11548
11548
|
return;
|
|
@@ -11765,19 +11765,19 @@ class Ac extends Oo {
|
|
|
11765
11765
|
if (s instanceof Bu) {
|
|
11766
11766
|
const g = this.model.areas.find((b) => b.polygon === s);
|
|
11767
11767
|
if (g) {
|
|
11768
|
-
const { x: b, y } = i[0].point.clone().project(this.five.camera), P = `${(b + 1) / 2 * 100}%`,
|
|
11769
|
-
return this.chooseArea(g, { left: P, top:
|
|
11768
|
+
const { x: b, y } = i[0].point.clone().project(this.five.camera), P = `${(b + 1) / 2 * 100}%`, I = `${(-y + 1) / 2 * 100}%`;
|
|
11769
|
+
return this.chooseArea(g, { left: P, top: I }), !1;
|
|
11770
11770
|
}
|
|
11771
11771
|
}
|
|
11772
11772
|
const [o] = this.five.model.intersectRaycaster(e);
|
|
11773
11773
|
if (!o)
|
|
11774
11774
|
return;
|
|
11775
11775
|
const r = this.five.camera, a = o.point.clone().project(r), l = this.container.clientWidth, c = this.container.clientHeight, d = new tt(a.x * l, a.y * c), h = this.model.getAllLines().map((g) => {
|
|
11776
|
-
const [b, y] = g.points, P = b.position.clone().project(r),
|
|
11777
|
-
if (!Qi(P) && !Qi(
|
|
11776
|
+
const [b, y] = g.points, P = b.position.clone().project(r), I = y.position.clone().project(r);
|
|
11777
|
+
if (!Qi(P) && !Qi(I))
|
|
11778
11778
|
return null;
|
|
11779
|
-
const x = new tt(P.x * l, P.y * c),
|
|
11780
|
-
return { id: g.id, points: [x,
|
|
11779
|
+
const x = new tt(P.x * l, P.y * c), C = new tt(I.x * l, I.y * c);
|
|
11780
|
+
return { id: g.id, points: [x, C] };
|
|
11781
11781
|
}).filter((g) => !!g);
|
|
11782
11782
|
if (h.length === 0)
|
|
11783
11783
|
return;
|
|
@@ -12783,8 +12783,8 @@ function k0(n) {
|
|
|
12783
12783
|
32 && K(o, "has-divider", !/*activeButton*/
|
|
12784
12784
|
c[5]);
|
|
12785
12785
|
},
|
|
12786
|
-
i:
|
|
12787
|
-
o:
|
|
12786
|
+
i: J,
|
|
12787
|
+
o: J,
|
|
12788
12788
|
d(c) {
|
|
12789
12789
|
c && j(t), r && r.d(), zt(l, c), n[12](null);
|
|
12790
12790
|
}
|
|
@@ -12882,8 +12882,8 @@ function S0(n) {
|
|
|
12882
12882
|
p(s, [o]) {
|
|
12883
12883
|
n = s;
|
|
12884
12884
|
},
|
|
12885
|
-
i:
|
|
12886
|
-
o:
|
|
12885
|
+
i: J,
|
|
12886
|
+
o: J,
|
|
12887
12887
|
d(s) {
|
|
12888
12888
|
s && j(t), e = !1, i();
|
|
12889
12889
|
}
|
|
@@ -13276,8 +13276,8 @@ function R0(n) {
|
|
|
13276
13276
|
64 && z(s, "transform", `translate(${/*activeButtonLeft*/
|
|
13277
13277
|
a[6]}px, -50%)`);
|
|
13278
13278
|
},
|
|
13279
|
-
i:
|
|
13280
|
-
o:
|
|
13279
|
+
i: J,
|
|
13280
|
+
o: J,
|
|
13281
13281
|
d(a) {
|
|
13282
13282
|
a && j(t), zt(r, a), n[11](null);
|
|
13283
13283
|
}
|
|
@@ -13391,7 +13391,7 @@ function N0(n) {
|
|
|
13391
13391
|
p(a, [l]) {
|
|
13392
13392
|
n = a, l & /*text*/
|
|
13393
13393
|
1 && se(e, e = /*text*/
|
|
13394
|
-
n[0]) ? (ce(), T(r, 1, 1,
|
|
13394
|
+
n[0]) ? (ce(), T(r, 1, 1, J), de(), r = Dc(n), r.c(), M(r, 1), r.m(t, null)) : r.p(n, l), l & /*bgImage*/
|
|
13395
13395
|
4 && z(t, "background-image", `url(${/*bgImage*/
|
|
13396
13396
|
n[2]})`);
|
|
13397
13397
|
},
|
|
@@ -13672,20 +13672,20 @@ function W0(n) {
|
|
|
13672
13672
|
16 && M(g, 1)) : (g = Lc(y), g.c(), M(g, 1), g.m(l, c)) : g && (ce(), T(g, 1, 1, () => {
|
|
13673
13673
|
g = null;
|
|
13674
13674
|
}), de());
|
|
13675
|
-
const
|
|
13675
|
+
const I = {};
|
|
13676
13676
|
P & /*buttonState*/
|
|
13677
|
-
8 && (
|
|
13677
|
+
8 && (I.onClick = /*func*/
|
|
13678
13678
|
y[14]), P & /*buttonState*/
|
|
13679
|
-
8 && (
|
|
13679
|
+
8 && (I.text = /*buttonTextMap*/
|
|
13680
13680
|
y[6][
|
|
13681
13681
|
/*buttonState*/
|
|
13682
13682
|
y[3]
|
|
13683
13683
|
]), P & /*buttonState*/
|
|
13684
|
-
8 && (
|
|
13684
|
+
8 && (I.color = /*buttonColorMap*/
|
|
13685
13685
|
y[7][
|
|
13686
13686
|
/*buttonState*/
|
|
13687
13687
|
y[3]
|
|
13688
|
-
]), h.$set(
|
|
13688
|
+
]), h.$set(I), (!m || P & /*allowAddPoint*/
|
|
13689
13689
|
32) && K(d, "forbid", !/*allowAddPoint*/
|
|
13690
13690
|
y[5]), /*showButton*/
|
|
13691
13691
|
y[4] ? b ? (b.p(y, P), P & /*showButton*/
|
|
@@ -13706,7 +13706,7 @@ function W0(n) {
|
|
|
13706
13706
|
}
|
|
13707
13707
|
const En = 100;
|
|
13708
13708
|
function Y0(n, t, e) {
|
|
13709
|
-
let { measureController: i } = t, { showExit: s = !1 } = t, { i18n: o = (
|
|
13709
|
+
let { measureController: i } = t, { showExit: s = !1 } = t, { i18n: o = (W) => W } = t;
|
|
13710
13710
|
const r = {
|
|
13711
13711
|
start: o("开始"),
|
|
13712
13712
|
add: o("添加"),
|
|
@@ -13725,35 +13725,35 @@ function Y0(n, t, e) {
|
|
|
13725
13725
|
i.controller instanceof fi && i.controller.selectPoint();
|
|
13726
13726
|
}, A = () => {
|
|
13727
13727
|
i.controller instanceof fi && i.controller.complete();
|
|
13728
|
-
}, p = (
|
|
13729
|
-
e(3, d =
|
|
13728
|
+
}, p = (W) => {
|
|
13729
|
+
e(3, d = W);
|
|
13730
13730
|
}, g = () => {
|
|
13731
13731
|
m(), x("allow");
|
|
13732
13732
|
}, b = () => {
|
|
13733
13733
|
p("complete");
|
|
13734
13734
|
}, y = () => {
|
|
13735
13735
|
i.currentMeasureType === "area" && d === "complete" && p("add");
|
|
13736
|
-
}, P = (
|
|
13737
|
-
|
|
13738
|
-
},
|
|
13736
|
+
}, P = (W) => {
|
|
13737
|
+
W.length;
|
|
13738
|
+
}, I = () => {
|
|
13739
13739
|
p("start"), x("allow");
|
|
13740
|
-
}, x = (
|
|
13741
|
-
e(5, c =
|
|
13742
|
-
},
|
|
13743
|
-
e(12, h =
|
|
13744
|
-
}, B = (
|
|
13745
|
-
|
|
13740
|
+
}, x = (W) => {
|
|
13741
|
+
e(5, c = W === "allow");
|
|
13742
|
+
}, C = (W) => {
|
|
13743
|
+
e(12, h = W);
|
|
13744
|
+
}, B = (W) => {
|
|
13745
|
+
W.isEmpty && p("start");
|
|
13746
13746
|
};
|
|
13747
13747
|
Ct(() => {
|
|
13748
|
-
i.hook.on("revoke", B), i.hook.on("measureTypeChange",
|
|
13748
|
+
i.hook.on("revoke", B), i.hook.on("measureTypeChange", C), i.hook.on("modeChange", I), i.hook.on("pointsChange", P), i.hook.on("allowAddPointStateChange", x), i.hook.on("readyComplete", b), i.hook.on("notReadyComplete", y), i.hook.on("complete", I);
|
|
13749
13749
|
}), Ot(() => {
|
|
13750
|
-
i.hook.off("measureTypeChange",
|
|
13750
|
+
i.hook.off("measureTypeChange", C), i.hook.off("modeChange", I), i.hook.off("allowAddPointStateChange", x), i.hook.off("readyComplete", b), i.hook.off("pointsChange", P), i.hook.off("notReadyComplete", y), i.hook.off("complete", I);
|
|
13751
13751
|
});
|
|
13752
13752
|
const Q = () => i.revoke(), G = () => {
|
|
13753
13753
|
d === "start" ? f() : d === "add" ? m() : (d === "end" || d === "complete") && g();
|
|
13754
13754
|
};
|
|
13755
|
-
return n.$$set = (
|
|
13756
|
-
"measureController" in
|
|
13755
|
+
return n.$$set = (W) => {
|
|
13756
|
+
"measureController" in W && e(0, i = W.measureController), "showExit" in W && e(1, s = W.showExit), "i18n" in W && e(2, o = W.i18n);
|
|
13757
13757
|
}, n.$$.update = () => {
|
|
13758
13758
|
n.$$.dirty & /*currentMeasureType, buttonState*/
|
|
13759
13759
|
4104 && e(4, l = h === "area" && d !== "start");
|
|
@@ -13974,8 +13974,8 @@ function K0(n, t, e) {
|
|
|
13974
13974
|
let { measureController: i } = t, { i18n: s = (y) => y } = t, { tips: o } = t, { tipStyle: r = {} } = t, { visible: a = !0 } = t, l = null;
|
|
13975
13975
|
const c = (y) => {
|
|
13976
13976
|
const P = i.currentMeasureType;
|
|
13977
|
-
let
|
|
13978
|
-
return
|
|
13977
|
+
let I = "";
|
|
13978
|
+
return I = o[y], I === void 0 && (I = o[P][y]), I;
|
|
13979
13979
|
}, d = (y) => {
|
|
13980
13980
|
e(2, f = s(c(y)));
|
|
13981
13981
|
}, h = () => {
|
|
@@ -14550,8 +14550,8 @@ function ab(n) {
|
|
|
14550
14550
|
i.length = e.length;
|
|
14551
14551
|
}
|
|
14552
14552
|
},
|
|
14553
|
-
i:
|
|
14554
|
-
o:
|
|
14553
|
+
i: J,
|
|
14554
|
+
o: J,
|
|
14555
14555
|
d(s) {
|
|
14556
14556
|
zt(i, s), s && j(t);
|
|
14557
14557
|
}
|
|
@@ -14663,8 +14663,8 @@ function hb(n) {
|
|
|
14663
14663
|
g[6]
|
|
14664
14664
|
);
|
|
14665
14665
|
},
|
|
14666
|
-
i:
|
|
14667
|
-
o:
|
|
14666
|
+
i: J,
|
|
14667
|
+
o: J,
|
|
14668
14668
|
d(g) {
|
|
14669
14669
|
g && j(t), n[16](null), A = !1, p();
|
|
14670
14670
|
}
|
|
@@ -14677,9 +14677,9 @@ function ub(n, t, e) {
|
|
|
14677
14677
|
},
|
|
14678
14678
|
100
|
|
14679
14679
|
);
|
|
14680
|
-
const P = (
|
|
14680
|
+
const P = (C) => {
|
|
14681
14681
|
const B = Object.keys(f);
|
|
14682
|
-
let Q =
|
|
14682
|
+
let Q = C.target;
|
|
14683
14683
|
for (; Q; ) {
|
|
14684
14684
|
const G = Q.getAttribute("class");
|
|
14685
14685
|
if (!G) {
|
|
@@ -14690,18 +14690,18 @@ function ub(n, t, e) {
|
|
|
14690
14690
|
Q = null;
|
|
14691
14691
|
break;
|
|
14692
14692
|
}
|
|
14693
|
-
B.forEach((
|
|
14694
|
-
G.includes(
|
|
14693
|
+
B.forEach((W) => {
|
|
14694
|
+
G.includes(W) && f[W](i);
|
|
14695
14695
|
}), Q = Q.parentNode;
|
|
14696
14696
|
}
|
|
14697
14697
|
};
|
|
14698
14698
|
Ct(() => {
|
|
14699
14699
|
m.emit("initTag", { id: i });
|
|
14700
14700
|
});
|
|
14701
|
-
const
|
|
14702
|
-
if (
|
|
14701
|
+
const I = Uu.subscribe((C) => {
|
|
14702
|
+
if (C === null)
|
|
14703
14703
|
return;
|
|
14704
|
-
const [B, Q] =
|
|
14704
|
+
const [B, Q] = C.split("-PanoSpatialTagPlugin-");
|
|
14705
14705
|
i === B && (m.emit("clickOrigin", { id: i, show: b }), y || (e(10, b = d), e(12, d = !d), y = setTimeout(
|
|
14706
14706
|
() => {
|
|
14707
14707
|
y = void 0;
|
|
@@ -14712,15 +14712,15 @@ function ub(n, t, e) {
|
|
|
14712
14712
|
du(() => {
|
|
14713
14713
|
e(7, A = g.offsetWidth), e(8, p = g.offsetHeight), !y && e(10, b = !d);
|
|
14714
14714
|
}), Ot(() => {
|
|
14715
|
-
m.emit("destroyTag", { id: i }),
|
|
14715
|
+
m.emit("destroyTag", { id: i }), I(), h();
|
|
14716
14716
|
});
|
|
14717
|
-
function x(
|
|
14718
|
-
Qe[
|
|
14719
|
-
g =
|
|
14717
|
+
function x(C) {
|
|
14718
|
+
Qe[C ? "unshift" : "push"](() => {
|
|
14719
|
+
g = C, e(9, g);
|
|
14720
14720
|
});
|
|
14721
14721
|
}
|
|
14722
|
-
return n.$$set = (
|
|
14723
|
-
"id" in
|
|
14722
|
+
return n.$$set = (C) => {
|
|
14723
|
+
"id" in C && e(0, i = C.id), "upsideDown" in C && e(1, s = C.upsideDown), "content" in C && e(2, o = C.content), "contentZoom" in C && e(3, r = C.contentZoom), "lineWidthZoom" in C && e(4, a = C.lineWidthZoom), "lineHeightZoom" in C && e(5, l = C.lineHeightZoom), "destroying" in C && e(6, c = C.destroying), "folded" in C && e(12, d = C.folded), "dispose" in C && e(13, h = C.dispose), "events" in C && e(14, f = C.events), "hooks" in C && e(15, m = C.hooks);
|
|
14724
14724
|
}, [
|
|
14725
14725
|
i,
|
|
14726
14726
|
s,
|
|
@@ -14929,9 +14929,9 @@ const Rr = 1e-3, Hc = 0.01, bb = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
14929
14929
|
target: f,
|
|
14930
14930
|
props: { origins: p.origins }
|
|
14931
14931
|
}), b = (me, ye) => {
|
|
14932
|
-
x(), ye &&
|
|
14932
|
+
x(), ye && C();
|
|
14933
14933
|
}, y = () => {
|
|
14934
|
-
p.forbidden && (p.forbidden = !1,
|
|
14934
|
+
p.forbidden && (p.forbidden = !1, C());
|
|
14935
14935
|
}, P = (me, ye) => {
|
|
14936
14936
|
if (p.tags.length === 0)
|
|
14937
14937
|
return;
|
|
@@ -14960,7 +14960,7 @@ const Rr = 1e-3, Hc = 0.01, bb = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
14960
14960
|
Me.destroying && (Me.app.$destroy(), Me = null);
|
|
14961
14961
|
}), p.tags = p.tags.filter((Me) => !Me.destroying), x();
|
|
14962
14962
|
}, 1900);
|
|
14963
|
-
},
|
|
14963
|
+
}, I = (me) => {
|
|
14964
14964
|
me !== et.Mode.Panorama && !p.forbidden && (g.$set({ origins: [] }), p.tags.forEach((ye) => {
|
|
14965
14965
|
ye.app.$destroy(), ye = null;
|
|
14966
14966
|
}), p.origins = [], p.tags = [], p.forbidden = !0);
|
|
@@ -14978,7 +14978,7 @@ const Rr = 1e-3, Hc = 0.01, bb = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
14978
14978
|
destroying: Le.destroying
|
|
14979
14979
|
};
|
|
14980
14980
|
}), g.$set({ origins: p.origins });
|
|
14981
|
-
},
|
|
14981
|
+
}, C = () => {
|
|
14982
14982
|
p.forbidden || !p.enabled || (p.timeoutId && clearTimeout(p.timeoutId), p.timeoutId = setTimeout(() => {
|
|
14983
14983
|
p.timeoutId = void 0;
|
|
14984
14984
|
const me = B();
|
|
@@ -15086,9 +15086,9 @@ const Rr = 1e-3, Hc = 0.01, bb = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15086
15086
|
};
|
|
15087
15087
|
}), me.render && (p.render = me.render), me.template && (p.template = me.template), me.events && (p.events = me.events), me.enabled === !1 && (p.enabled = me.enabled), me.folded === !0 && (p.folded = me.folded);
|
|
15088
15088
|
}, G = (me) => {
|
|
15089
|
-
p.intersectObjects = me,
|
|
15090
|
-
},
|
|
15091
|
-
p.enabled = !0,
|
|
15089
|
+
p.intersectObjects = me, C();
|
|
15090
|
+
}, W = () => {
|
|
15091
|
+
p.enabled = !0, C();
|
|
15092
15092
|
}, V = () => {
|
|
15093
15093
|
p.enabled = !1, g.$set({ origins: [] }), p.tags.forEach((me) => {
|
|
15094
15094
|
me.app.$destroy(), me = null;
|
|
@@ -15097,7 +15097,7 @@ const Rr = 1e-3, Hc = 0.01, bb = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15097
15097
|
p.folded = !1, p.tags.forEach((me) => {
|
|
15098
15098
|
me.app.$set({ folded: p.folded });
|
|
15099
15099
|
});
|
|
15100
|
-
},
|
|
15100
|
+
}, F = () => {
|
|
15101
15101
|
p.folded = !0, p.tags.forEach((me) => {
|
|
15102
15102
|
me.app.$set({ folded: p.folded });
|
|
15103
15103
|
});
|
|
@@ -15105,27 +15105,27 @@ const Rr = 1e-3, Hc = 0.01, bb = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15105
15105
|
p.tags.forEach((ye) => {
|
|
15106
15106
|
ye.id === me && ye.app.$set({ folded: !1 });
|
|
15107
15107
|
});
|
|
15108
|
-
},
|
|
15108
|
+
}, Y = (me) => {
|
|
15109
15109
|
p.tags.forEach((ye) => {
|
|
15110
15110
|
ye.id === me && ye.app.$set({ folded: !0 });
|
|
15111
15111
|
});
|
|
15112
|
-
}, J = () => {
|
|
15113
|
-
n.once("renderFrame", x);
|
|
15114
15112
|
}, X = () => {
|
|
15115
|
-
|
|
15113
|
+
n.once("renderFrame", x);
|
|
15114
|
+
}, Z = () => {
|
|
15115
|
+
e || (e = n.getElement().parentElement), e && e.appendChild(f), p.forbidden = !1, i = n.model.bounding.getCenter(new E.Vector3()).y, C(), n.on("panoWillArrive", P), n.on("panoArrived", y), n.on("modeChange", I), n.on("cameraUpdate", b);
|
|
15116
15116
|
}, $ = () => {
|
|
15117
15117
|
A = null, h.disposeAll(), g.$destroy(), p.tags.forEach((me) => {
|
|
15118
15118
|
me.app.$destroy(), me = null;
|
|
15119
|
-
}), p.origins = [], p.tags = [], n.off("modelLoaded",
|
|
15119
|
+
}), p.origins = [], p.tags = [], n.off("modelLoaded", Z), n.off("renderFrame", x), n.off("panoWillArrive", P), n.off("panoArrived", y), n.off("modeChange", I), n.off("cameraUpdate", b), n.off("dispose", $), window.removeEventListener("resize", X, !1);
|
|
15120
15120
|
};
|
|
15121
|
-
return window.addEventListener("resize",
|
|
15121
|
+
return window.addEventListener("resize", X, !1), (_e = n == null ? void 0 : n.model) != null && _e.loaded ? Z() : n.once("modelLoaded", Z), n.on("dispose", $), {
|
|
15122
15122
|
load: Q,
|
|
15123
15123
|
setIntersectObjects: G,
|
|
15124
15124
|
unfoldAll: H,
|
|
15125
|
-
foldAll:
|
|
15125
|
+
foldAll: F,
|
|
15126
15126
|
unfold: N,
|
|
15127
|
-
fold:
|
|
15128
|
-
enable:
|
|
15127
|
+
fold: Y,
|
|
15128
|
+
enable: W,
|
|
15129
15129
|
disable: V,
|
|
15130
15130
|
hooks: m,
|
|
15131
15131
|
dispose: $
|
|
@@ -15243,8 +15243,8 @@ function Cb(n) {
|
|
|
15243
15243
|
h[0].transform
|
|
15244
15244
|
);
|
|
15245
15245
|
},
|
|
15246
|
-
i:
|
|
15247
|
-
o:
|
|
15246
|
+
i: J,
|
|
15247
|
+
o: J,
|
|
15248
15248
|
d(h) {
|
|
15249
15249
|
h && j(t), c = !1, d();
|
|
15250
15250
|
}
|
|
@@ -15394,70 +15394,70 @@ let Wc = 26, Mb = 11;
|
|
|
15394
15394
|
function xb(n, t, e) {
|
|
15395
15395
|
const { Raycaster: i, Vector3: s } = E;
|
|
15396
15396
|
let { five: o } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, h = null, f, m, A = [], p = !0;
|
|
15397
|
-
const g = (
|
|
15398
|
-
const
|
|
15399
|
-
|
|
15400
|
-
const [he] =
|
|
15397
|
+
const g = (F, N) => {
|
|
15398
|
+
const Y = new i(), X = F.camera.position.clone(), Z = new s().fromArray(N.modelPosition), $ = Z.distanceTo(X);
|
|
15399
|
+
Y.set(X.clone(), Z.clone().sub(X).normalize());
|
|
15400
|
+
const [he] = F.model.intersectRaycaster(Y);
|
|
15401
15401
|
return !(he && he.distance + 1 < $);
|
|
15402
|
-
}, b = (
|
|
15403
|
-
const
|
|
15404
|
-
return [
|
|
15405
|
-
}, y = (
|
|
15406
|
-
function
|
|
15402
|
+
}, b = (F, N) => {
|
|
15403
|
+
const Y = new s(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), X = F.project2d(Y), Z = X == null ? void 0 : X.x, $ = X == null ? void 0 : X.y;
|
|
15404
|
+
return [Z, $];
|
|
15405
|
+
}, y = (F) => `translate(${F[0]}px, ${F[1]}px)`, P = (F, N) => A.length === 0 ? !1 : !!A.find((X) => F[0] >= X[0] - N && F[0] <= X[0] + N || F[1] >= X[1] - Wc && F[1] <= X[1] + Wc);
|
|
15406
|
+
function I(F, N) {
|
|
15407
15407
|
switch (N) {
|
|
15408
15408
|
case ln.SMALL:
|
|
15409
|
-
return Math.ceil(-27.78 *
|
|
15409
|
+
return Math.ceil(-27.78 * F + 85);
|
|
15410
15410
|
case ln.MIDLLE:
|
|
15411
|
-
return Math.ceil(-38.9 *
|
|
15411
|
+
return Math.ceil(-38.9 * F + 130);
|
|
15412
15412
|
case ln.LARGE:
|
|
15413
|
-
return Math.ceil(-44.44 *
|
|
15413
|
+
return Math.ceil(-44.44 * F + 140);
|
|
15414
15414
|
case ln.EXTRA_LARGE:
|
|
15415
|
-
return Math.ceil(-92.59 *
|
|
15415
|
+
return Math.ceil(-92.59 * F + 300);
|
|
15416
15416
|
}
|
|
15417
15417
|
}
|
|
15418
|
-
const x = (
|
|
15419
|
-
const
|
|
15420
|
-
const $ = b(
|
|
15418
|
+
const x = (F, N) => {
|
|
15419
|
+
const Y = N.map((Z) => {
|
|
15420
|
+
const $ = b(F, Z), he = Z.name.length * Mb, ae = I(Z.modelPosition[1], c), Ie = (r ? g(F, Z) : !0) && !P([$[0], $[1] + ae], he);
|
|
15421
15421
|
if (!Ie)
|
|
15422
|
-
return fe(R({},
|
|
15422
|
+
return fe(R({}, Z), { visible: Ie });
|
|
15423
15423
|
A.push($);
|
|
15424
15424
|
const Ae = y($);
|
|
15425
|
-
return fe(R({},
|
|
15425
|
+
return fe(R({}, Z), {
|
|
15426
15426
|
visible: Ie,
|
|
15427
15427
|
transform: Ae,
|
|
15428
15428
|
strokeLength: ae
|
|
15429
15429
|
});
|
|
15430
|
-
}),
|
|
15431
|
-
itemLabelItem:
|
|
15432
|
-
distance: new s(
|
|
15433
|
-
})).sort((
|
|
15434
|
-
return
|
|
15435
|
-
const $ =
|
|
15436
|
-
return $ !== void 0 ? fe(R({},
|
|
15430
|
+
}), X = Y.filter(({ visible: Z }) => Z).map((Z) => ({
|
|
15431
|
+
itemLabelItem: Z,
|
|
15432
|
+
distance: new s(Z.modelPosition[0], Z.modelPosition[1], Z.modelPosition[2]).clone().distanceTo(F.camera.position)
|
|
15433
|
+
})).sort((Z, $) => Z.distance - $.distance);
|
|
15434
|
+
return Y.map((Z) => {
|
|
15435
|
+
const $ = X.findIndex((he) => he.itemLabelItem.id === Z.id);
|
|
15436
|
+
return $ !== void 0 ? fe(R({}, Z), { zIndex: $ * 10 }) : Z;
|
|
15437
15437
|
});
|
|
15438
|
-
},
|
|
15438
|
+
}, C = () => {
|
|
15439
15439
|
A = [], e(1, h = x(o, h));
|
|
15440
15440
|
};
|
|
15441
15441
|
cu(() => {
|
|
15442
|
-
|
|
15442
|
+
W();
|
|
15443
15443
|
});
|
|
15444
15444
|
const B = () => {
|
|
15445
15445
|
e(4, p = !1), Q();
|
|
15446
15446
|
};
|
|
15447
15447
|
Ct(() => {
|
|
15448
|
-
e(1, h = a), d = a,
|
|
15448
|
+
e(1, h = a), d = a, C(), G(), o.on("cameraUpdate", B);
|
|
15449
15449
|
});
|
|
15450
15450
|
const Q = Xu(
|
|
15451
15451
|
() => {
|
|
15452
|
-
e(4, p = !0),
|
|
15452
|
+
e(4, p = !0), C();
|
|
15453
15453
|
},
|
|
15454
15454
|
300
|
|
15455
15455
|
), G = () => {
|
|
15456
15456
|
window.addEventListener("resize", V, !1);
|
|
15457
|
-
},
|
|
15458
|
-
d !== a && (e(1, h = a), d = a,
|
|
15457
|
+
}, W = () => {
|
|
15458
|
+
d !== a && (e(1, h = a), d = a, C());
|
|
15459
15459
|
}, V = () => {
|
|
15460
|
-
o.once("renderFrame",
|
|
15460
|
+
o.once("renderFrame", C);
|
|
15461
15461
|
};
|
|
15462
15462
|
Ot(() => {
|
|
15463
15463
|
o.off("cameraUpdate", B), window.removeEventListener("resize", V, !1);
|
|
@@ -15465,8 +15465,8 @@ function xb(n, t, e) {
|
|
|
15465
15465
|
function H() {
|
|
15466
15466
|
f = this.clientWidth, m = this.clientHeight, e(2, f), e(3, m);
|
|
15467
15467
|
}
|
|
15468
|
-
return n.$$set = (
|
|
15469
|
-
"five" in
|
|
15468
|
+
return n.$$set = (F) => {
|
|
15469
|
+
"five" in F && e(5, o = F.five), "modelOcclusionEnable" in F && e(6, r = F.modelOcclusionEnable), "itemLabels" in F && e(7, a = F.itemLabels), "hooks" in F && e(0, l = F.hooks), "displayStrategyType" in F && e(8, c = F.displayStrategyType);
|
|
15470
15470
|
}, [
|
|
15471
15471
|
l,
|
|
15472
15472
|
h,
|
|
@@ -15614,8 +15614,8 @@ const Lb = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15614
15614
|
return;
|
|
15615
15615
|
const y = () => {
|
|
15616
15616
|
var P;
|
|
15617
|
-
e.videoTexture && ((P = e.videoTexture) == null || P.image.removeEventListener("timeupdate", y), e.videoTextureEnabled = !0, e.videoMeshes.forEach((
|
|
15618
|
-
|
|
15617
|
+
e.videoTexture && ((P = e.videoTexture) == null || P.image.removeEventListener("timeupdate", y), e.videoTextureEnabled = !0, e.videoMeshes.forEach((I) => {
|
|
15618
|
+
I.material.map !== e.videoTexture && (I.material.map = e.videoTexture);
|
|
15619
15619
|
}), n.needsRender = !0);
|
|
15620
15620
|
};
|
|
15621
15621
|
e.videoTexture.image.addEventListener("timeupdate", y), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
@@ -15635,47 +15635,47 @@ const Lb = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15635
15635
|
b.geometry.dispose(), b.material.dispose(), n.scene.remove(b), e.videoTexture && e.videoTexture.image.pause();
|
|
15636
15636
|
}), e.videoMeshes = [], n.needsRender = !0);
|
|
15637
15637
|
}, c = () => e.rectPoints.map((b, y) => {
|
|
15638
|
-
const P = new E.BufferGeometry(),
|
|
15638
|
+
const P = new E.BufferGeometry(), I = 128, x = [];
|
|
15639
15639
|
x.push(...b[0].toArray());
|
|
15640
|
-
for (let H = 1; H <
|
|
15640
|
+
for (let H = 1; H < I; H++)
|
|
15641
15641
|
x.push(
|
|
15642
|
-
b[0].x + (b[1].x - b[0].x) * H /
|
|
15643
|
-
b[0].y + (b[1].y - b[0].y) * H /
|
|
15644
|
-
b[0].z + (b[1].z - b[0].z) * H /
|
|
15642
|
+
b[0].x + (b[1].x - b[0].x) * H / I,
|
|
15643
|
+
b[0].y + (b[1].y - b[0].y) * H / I,
|
|
15644
|
+
b[0].z + (b[1].z - b[0].z) * H / I
|
|
15645
15645
|
);
|
|
15646
15646
|
x.push(...b[1].toArray()), x.push(...b[2].toArray());
|
|
15647
|
-
for (let H = 1; H <
|
|
15647
|
+
for (let H = 1; H < I; H++)
|
|
15648
15648
|
x.push(
|
|
15649
|
-
b[2].x + (b[3].x - b[2].x) * H /
|
|
15650
|
-
b[2].y + (b[3].y - b[2].y) * H /
|
|
15651
|
-
b[2].z + (b[3].z - b[2].z) * H /
|
|
15649
|
+
b[2].x + (b[3].x - b[2].x) * H / I,
|
|
15650
|
+
b[2].y + (b[3].y - b[2].y) * H / I,
|
|
15651
|
+
b[2].z + (b[3].z - b[2].z) * H / I
|
|
15652
15652
|
);
|
|
15653
15653
|
x.push(...b[3].toArray());
|
|
15654
|
-
const
|
|
15655
|
-
|
|
15656
|
-
for (let H = 1; H <
|
|
15657
|
-
|
|
15658
|
-
|
|
15659
|
-
for (let H = 1; H <
|
|
15660
|
-
|
|
15661
|
-
|
|
15654
|
+
const C = [];
|
|
15655
|
+
C.push(0, 1);
|
|
15656
|
+
for (let H = 1; H < I; H++)
|
|
15657
|
+
C.push(0, 1 - H / I);
|
|
15658
|
+
C.push(0, 0), C.push(1, 0);
|
|
15659
|
+
for (let H = 1; H < I; H++)
|
|
15660
|
+
C.push(1, H / I);
|
|
15661
|
+
C.push(1, 1);
|
|
15662
15662
|
const B = [];
|
|
15663
|
-
for (let H = 0; H <
|
|
15664
|
-
B.push(H, H + 1,
|
|
15665
|
-
P.setAttribute("position", new E.BufferAttribute(new Float32Array(x), 3)), P.setAttribute("uv", new E.BufferAttribute(new Float32Array(
|
|
15663
|
+
for (let H = 0; H < I; H++)
|
|
15664
|
+
B.push(H, H + 1, I * 2 - H, H, I * 2 - H, I * 2 + 1 - H);
|
|
15665
|
+
P.setAttribute("position", new E.BufferAttribute(new Float32Array(x), 3)), P.setAttribute("uv", new E.BufferAttribute(new Float32Array(C), 2)), P.setIndex(new E.BufferAttribute(new Uint32Array(B), 1));
|
|
15666
15666
|
const Q = new E.MeshBasicMaterial({
|
|
15667
15667
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
15668
15668
|
side: E.DoubleSide
|
|
15669
15669
|
}), G = new E.Mesh(P, Q);
|
|
15670
15670
|
G.renderOrder = 1, G.name = `ModelTVVideoPlugin-${y}-${performance.now()}`;
|
|
15671
|
-
const
|
|
15671
|
+
const W = [b[1], b[2], b[3], b[0]], V = i.create3DDomContainer(W);
|
|
15672
15672
|
if (V != null && V.container) {
|
|
15673
15673
|
const H = document.createElement("div");
|
|
15674
15674
|
H.classList.add("play-icon"), H.style.width = "100%", H.style.height = "100%", H.style.display = "flex", H.style.justifyContent = "center", H.style.alignItems = "center", H.style.pointerEvents = "none", V.container.appendChild(H);
|
|
15675
|
-
const
|
|
15676
|
-
|
|
15675
|
+
const F = document.createElement("img");
|
|
15676
|
+
F.src = Za, F.style.width = "200px", F.style.pointerEvents = "auto", F.onclick = () => {
|
|
15677
15677
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
15678
|
-
}, H.appendChild(
|
|
15678
|
+
}, H.appendChild(F), s.set(G, V);
|
|
15679
15679
|
}
|
|
15680
15680
|
return G;
|
|
15681
15681
|
}), d = (b) => {
|
|
@@ -15683,22 +15683,22 @@ const Lb = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15683
15683
|
return y.minFilter = E.LinearFilter, y.magFilter = E.LinearFilter, y.format = E.RGBFormat, y;
|
|
15684
15684
|
}, h = (b, y) => {
|
|
15685
15685
|
let P = y;
|
|
15686
|
-
return new Promise((
|
|
15687
|
-
const
|
|
15688
|
-
|
|
15689
|
-
if (
|
|
15690
|
-
if (
|
|
15686
|
+
return new Promise((I, x) => {
|
|
15687
|
+
const C = new XMLHttpRequest();
|
|
15688
|
+
C.onreadystatechange = () => {
|
|
15689
|
+
if (C.readyState === 4)
|
|
15690
|
+
if (C.status === 200) {
|
|
15691
15691
|
const B = window.URL || window.webkitURL;
|
|
15692
|
-
P = P || document.createElement("video"), P.crossOrigin = "anonymous", P.muted = !0, P.loop = !0, P.playsInline = !0, P.src = B.createObjectURL(
|
|
15692
|
+
P = P || document.createElement("video"), P.crossOrigin = "anonymous", P.muted = !0, P.loop = !0, P.playsInline = !0, P.src = B.createObjectURL(C.response);
|
|
15693
15693
|
const Q = new E.VideoTexture(P);
|
|
15694
|
-
Q.minFilter = E.LinearFilter, Q.magFilter = E.LinearFilter, Q.format = E.RGBFormat,
|
|
15694
|
+
Q.minFilter = E.LinearFilter, Q.magFilter = E.LinearFilter, Q.format = E.RGBFormat, I(Object.assign(Q, { videoSource: b }));
|
|
15695
15695
|
} else
|
|
15696
|
-
x(new Error("Video download Error: " +
|
|
15697
|
-
},
|
|
15696
|
+
x(new Error("Video download Error: " + C.status));
|
|
15697
|
+
}, C.onerror = (B) => x(B), C.open("GET", b), C.responseType = "blob", C.send();
|
|
15698
15698
|
});
|
|
15699
|
-
}, f = (b, y) =>
|
|
15700
|
-
const { video_src: P, video_poster_src:
|
|
15701
|
-
e.videoSource = P, e.rectPoints = Tb(x).map((
|
|
15699
|
+
}, f = (b, y) => _(void 0, null, function* () {
|
|
15700
|
+
const { video_src: P, video_poster_src: I, points: x } = b;
|
|
15701
|
+
e.videoSource = P, e.rectPoints = Tb(x).map((C) => C.map(({ x: B, y: Q, z: G }) => new E.Vector3(B, Q, G))), e.imageTexture = d(I), y && (e.videoElement = y), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!b.enable, e.enabled && a();
|
|
15702
15702
|
}), m = (b) => {
|
|
15703
15703
|
if (!e.enabled)
|
|
15704
15704
|
return;
|
|
@@ -15712,14 +15712,14 @@ const Lb = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15712
15712
|
return;
|
|
15713
15713
|
const b = n.camera.position;
|
|
15714
15714
|
if (s.forEach((y, P) => {
|
|
15715
|
-
const
|
|
15715
|
+
const I = y.css3DObject.position.clone(), x = I.clone().sub(b).normalize(), C = new E.Raycaster(b, x), B = n.model.intersectRaycaster(C)[0], Q = I.distanceTo(b), G = 0.01;
|
|
15716
15716
|
B && B.distance + G < Q ? y.hide() : y.show();
|
|
15717
15717
|
}), !r()) {
|
|
15718
15718
|
const y = e.rectPoints.find((P) => {
|
|
15719
|
-
const
|
|
15720
|
-
return P.map((x) => x.clone().add(
|
|
15721
|
-
const
|
|
15722
|
-
return !(Q && Q.distance + G <
|
|
15719
|
+
const I = P[0].clone().add(P[1]).add(P[2]).add(P[3]).divideScalar(4);
|
|
15720
|
+
return P.map((x) => x.clone().add(I).divideScalar(2)).filter((x) => {
|
|
15721
|
+
const C = x.distanceTo(b), B = new E.Raycaster(b, x.clone().sub(b).normalize()), Q = n.model.intersectRaycaster(B)[0], G = 0.01;
|
|
15722
|
+
return !(Q && Q.distance + G < C);
|
|
15723
15723
|
}).length >= 2;
|
|
15724
15724
|
});
|
|
15725
15725
|
(!y || y.length === 0) && o(!0);
|
|
@@ -15785,7 +15785,7 @@ function Bb(n) {
|
|
|
15785
15785
|
m(e, i) {
|
|
15786
15786
|
O(e, t, i), n[6](t);
|
|
15787
15787
|
},
|
|
15788
|
-
p:
|
|
15788
|
+
p: J,
|
|
15789
15789
|
d(e) {
|
|
15790
15790
|
e && j(t), n[6](null);
|
|
15791
15791
|
}
|
|
@@ -15888,8 +15888,8 @@ function Rb(n) {
|
|
|
15888
15888
|
A[0].transform
|
|
15889
15889
|
);
|
|
15890
15890
|
},
|
|
15891
|
-
i:
|
|
15892
|
-
o:
|
|
15891
|
+
i: J,
|
|
15892
|
+
o: J,
|
|
15893
15893
|
d(A) {
|
|
15894
15894
|
A && j(t), m.d(), c = !1, d();
|
|
15895
15895
|
}
|
|
@@ -16129,17 +16129,17 @@ let Wb = 11;
|
|
|
16129
16129
|
function Yb(n, t, e) {
|
|
16130
16130
|
const { Vector3: i } = E;
|
|
16131
16131
|
let { five: s } = t, { modelOcclusionEnable: o } = t, { itemLabels: r } = t, { hooks: a } = t, { displayStrategyType: l } = t, { maxVisibleDistance: c } = t, d = null, h = null, f = (s == null ? void 0 : s.currentMode) === et.Mode.Panorama, m, A, p = [], g = !0;
|
|
16132
|
-
const b = (N,
|
|
16133
|
-
const
|
|
16134
|
-
return c !== void 0 && N.state.mode === et.Mode.Panorama && $ > c ? !1 : Uc(N,
|
|
16132
|
+
const b = (N, Y) => {
|
|
16133
|
+
const X = N.camera.position.clone(), Z = new i(Y.modelPosition[0], Y.modelPosition[1], Y.modelPosition[2]), $ = Z.distanceTo(X);
|
|
16134
|
+
return c !== void 0 && N.state.mode === et.Mode.Panorama && $ > c ? !1 : Uc(N, Z.clone().sub(X).normalize(), X, $);
|
|
16135
16135
|
}, y = (N) => {
|
|
16136
|
-
const { camera:
|
|
16136
|
+
const { camera: Y, model: X } = s, { x: Z, y: $, z: he } = N.clone().project(Y), ae = (Z + 1) / 2, Ce = (2 - ($ + 1)) / 2;
|
|
16137
16137
|
return !!(Math.abs(he) < 1 && [ae, Ce].every((ve) => ve < 1 && ve >= 0));
|
|
16138
|
-
}, P = (N,
|
|
16139
|
-
const
|
|
16138
|
+
}, P = (N, Y) => {
|
|
16139
|
+
const X = new i(Y.modelPosition[0], Y.modelPosition[1], Y.modelPosition[2]), Z = N.project2d(X), $ = Z == null ? void 0 : Z.x, he = Z == null ? void 0 : Z.y;
|
|
16140
16140
|
return [$, he];
|
|
16141
|
-
},
|
|
16142
|
-
const
|
|
16141
|
+
}, I = (N, Y) => {
|
|
16142
|
+
const X = Y.map(($) => {
|
|
16143
16143
|
if (N.state.panoIndex !== $.panoIndex)
|
|
16144
16144
|
return fe(R({}, $), { visible: !1 });
|
|
16145
16145
|
const he = P(N, $);
|
|
@@ -16154,17 +16154,17 @@ function Yb(n, t, e) {
|
|
|
16154
16154
|
transform: Oe,
|
|
16155
16155
|
strokeLength: ae
|
|
16156
16156
|
});
|
|
16157
|
-
}),
|
|
16157
|
+
}), Z = X.filter(({ visible: $ }) => $).map(($) => ({
|
|
16158
16158
|
itemLabelItem: $,
|
|
16159
16159
|
distance: new i($.modelPosition[0], $.modelPosition[1], $.modelPosition[2]).clone().distanceTo(N.camera.position)
|
|
16160
16160
|
})).sort(($, he) => $.distance - he.distance);
|
|
16161
|
-
return
|
|
16162
|
-
const he =
|
|
16161
|
+
return X.map(($) => {
|
|
16162
|
+
const he = Z.findIndex((ae) => ae.itemLabelItem.id === $.id);
|
|
16163
16163
|
return he !== void 0 ? fe(R({}, $), { zIndex: he * 10 }) : $;
|
|
16164
16164
|
});
|
|
16165
16165
|
}, x = () => {
|
|
16166
|
-
p = [], e(1, h =
|
|
16167
|
-
},
|
|
16166
|
+
p = [], e(1, h = I(s, h));
|
|
16167
|
+
}, C = () => {
|
|
16168
16168
|
e(5, g = !1), B();
|
|
16169
16169
|
}, B = Xu(
|
|
16170
16170
|
() => {
|
|
@@ -16175,30 +16175,30 @@ function Yb(n, t, e) {
|
|
|
16175
16175
|
s.once("renderFrame", x);
|
|
16176
16176
|
}, G = () => {
|
|
16177
16177
|
window.addEventListener("resize", Q, !1);
|
|
16178
|
-
},
|
|
16178
|
+
}, W = () => {
|
|
16179
16179
|
d !== r && (e(1, h = Xc(r)), d = r, x());
|
|
16180
|
-
}, V = (N,
|
|
16181
|
-
let
|
|
16182
|
-
for (const { position: $, panoIndex: he } of
|
|
16180
|
+
}, V = (N, Y) => {
|
|
16181
|
+
let X = [];
|
|
16182
|
+
for (const { position: $, panoIndex: he } of Y) {
|
|
16183
16183
|
const ae = N.distanceTo($);
|
|
16184
|
-
(c === void 0 || ae <= c || s.state.mode !== et.Mode.Panorama) &&
|
|
16184
|
+
(c === void 0 || ae <= c || s.state.mode !== et.Mode.Panorama) && X.push({ panoIndex: he, obVector: $, distance: ae });
|
|
16185
16185
|
}
|
|
16186
|
-
|
|
16187
|
-
let
|
|
16188
|
-
for (const $ of
|
|
16186
|
+
X = X.sort(($, he) => $.distance - he.distance);
|
|
16187
|
+
let Z;
|
|
16188
|
+
for (const $ of X) {
|
|
16189
16189
|
const { obVector: he, distance: ae, panoIndex: Ce } = $;
|
|
16190
16190
|
if (!Uc(s, N, he, ae)) {
|
|
16191
|
-
|
|
16191
|
+
Z = Ce;
|
|
16192
16192
|
break;
|
|
16193
16193
|
}
|
|
16194
16194
|
}
|
|
16195
|
-
return typeof
|
|
16195
|
+
return typeof Z == "number" ? Y[Z] : void 0;
|
|
16196
16196
|
}, H = (N) => {
|
|
16197
16197
|
if (s.state.mode === et.Mode.Panorama)
|
|
16198
16198
|
return;
|
|
16199
|
-
const
|
|
16200
|
-
if (
|
|
16201
|
-
const $ =
|
|
16199
|
+
const Y = s.work.observers, X = new i().fromArray(N.position), Z = V(X, Y);
|
|
16200
|
+
if (Z && (N.observerIndex = Z.panoIndex), typeof N.observerIndex == "number") {
|
|
16201
|
+
const $ = Y[N.observerIndex], he = X.clone().sub($.position).normalize(), ae = {
|
|
16202
16202
|
longitude: Math.PI + Math.atan2(he.x, he.z),
|
|
16203
16203
|
latitude: Math.acos(he.y / he.length()) - Math.PI / 2
|
|
16204
16204
|
};
|
|
@@ -16215,13 +16215,13 @@ function Yb(n, t, e) {
|
|
|
16215
16215
|
}
|
|
16216
16216
|
};
|
|
16217
16217
|
cu(() => {
|
|
16218
|
-
|
|
16218
|
+
W();
|
|
16219
16219
|
}), Ct(() => {
|
|
16220
|
-
e(1, h = Xc(r)), d = r, x(), G(), s.on("cameraUpdate",
|
|
16220
|
+
e(1, h = Xc(r)), d = r, x(), G(), s.on("cameraUpdate", C);
|
|
16221
16221
|
}), Ot(() => {
|
|
16222
|
-
s.off("cameraUpdate",
|
|
16222
|
+
s.off("cameraUpdate", C), window.removeEventListener("resize", Q, !1);
|
|
16223
16223
|
});
|
|
16224
|
-
function
|
|
16224
|
+
function F() {
|
|
16225
16225
|
m = this.clientWidth, A = this.clientHeight, e(3, m), e(4, A);
|
|
16226
16226
|
}
|
|
16227
16227
|
return n.$$set = (N) => {
|
|
@@ -16239,7 +16239,7 @@ function Yb(n, t, e) {
|
|
|
16239
16239
|
r,
|
|
16240
16240
|
l,
|
|
16241
16241
|
c,
|
|
16242
|
-
|
|
16242
|
+
F
|
|
16243
16243
|
];
|
|
16244
16244
|
}
|
|
16245
16245
|
class Ub extends re {
|
|
@@ -16453,8 +16453,8 @@ function Kb(n) {
|
|
|
16453
16453
|
c[0].toward
|
|
16454
16454
|
)) + " svelte-1irjijd") && w(e, "class", r);
|
|
16455
16455
|
},
|
|
16456
|
-
i:
|
|
16457
|
-
o:
|
|
16456
|
+
i: J,
|
|
16457
|
+
o: J,
|
|
16458
16458
|
d(c) {
|
|
16459
16459
|
c && j(t), n[10](null), a = !1, l();
|
|
16460
16460
|
}
|
|
@@ -16583,38 +16583,38 @@ class r1 extends Jb {
|
|
|
16583
16583
|
}), this.fixDoorPosition();
|
|
16584
16584
|
});
|
|
16585
16585
|
u(this, "fixDoorPosition", () => {
|
|
16586
|
-
var d, h, f, m, A, p, g, b, y, P,
|
|
16586
|
+
var d, h, f, m, A, p, g, b, y, P, I, x;
|
|
16587
16587
|
const { panoIndex: e, camera: i } = this.five;
|
|
16588
16588
|
if (e === null)
|
|
16589
16589
|
return;
|
|
16590
16590
|
if (this.five.currentMode !== "Panorama")
|
|
16591
16591
|
return this.hideAllLabels();
|
|
16592
16592
|
const s = this.five.getElement(), o = s.clientWidth, r = s.clientHeight, a = i.getWorldDirection(new ne()), l = [], c = [...this.labelItems];
|
|
16593
|
-
if (c.forEach((
|
|
16594
|
-
if (
|
|
16595
|
-
const Q = i.position.distanceTo(
|
|
16596
|
-
|
|
16593
|
+
if (c.forEach((C, B) => {
|
|
16594
|
+
if (C.visible) {
|
|
16595
|
+
const Q = i.position.distanceTo(C.position), G = C.position.clone().add(new ne(0, this.OffsetHeight, 0)), V = G.clone().sub(i.position).normalize().angleTo(a), H = G.clone().project(i), F = (H.x + 1) / 2.2 * 100, N = (-H.y + 1) / 2.2 * 100, Y = F >= 0 && F <= 100 && N >= 0 && N <= 100 && Q > this.MinVisibledistance && Q <= this.MaxVisibledistance;
|
|
16596
|
+
C.left = F, C.top = N, C.inSight = Y && V < Math.PI / 2, C.cameraToward = i1(this.five), Y ? l.push({ disFromCameraToLabel: Q, left: F, top: N, index: B }) : C.transform = "translate(-50%, -50%)";
|
|
16597
16597
|
} else
|
|
16598
|
-
|
|
16598
|
+
C.inSight = !1;
|
|
16599
16599
|
}), l.length > 1) {
|
|
16600
|
-
let
|
|
16600
|
+
let C = 0;
|
|
16601
16601
|
l.sort((B, Q) => Q.disFromCameraToLabel - B.disFromCameraToLabel);
|
|
16602
16602
|
for (let B = 1; B < l.length; B++) {
|
|
16603
|
-
const { index: Q, left: G, top:
|
|
16604
|
-
if (!N || !
|
|
16603
|
+
const { index: Q, left: G, top: W } = l[B - 1], { index: V, left: H, top: F } = l[B], N = this.container.children[Q], Y = this.container.children[V];
|
|
16604
|
+
if (!N || !Y)
|
|
16605
16605
|
return;
|
|
16606
|
-
const
|
|
16606
|
+
const X = {
|
|
16607
16607
|
left: o * G / 100,
|
|
16608
|
-
top: r *
|
|
16608
|
+
top: r * W / 100,
|
|
16609
16609
|
width: (f = (h = (d = N.children) == null ? void 0 : d[0]) == null ? void 0 : h.clientWidth) != null ? f : 0,
|
|
16610
16610
|
height: (p = (A = (m = N.children) == null ? void 0 : m[0]) == null ? void 0 : A.clientHeight) != null ? p : 0
|
|
16611
|
-
},
|
|
16611
|
+
}, Z = {
|
|
16612
16612
|
left: o * H / 100,
|
|
16613
|
-
top: r *
|
|
16614
|
-
width: (y = (b = (g =
|
|
16615
|
-
height: (x = (
|
|
16613
|
+
top: r * F / 100,
|
|
16614
|
+
width: (y = (b = (g = Y.children) == null ? void 0 : g[0]) == null ? void 0 : b.clientWidth) != null ? y : 0,
|
|
16615
|
+
height: (x = (I = (P = Y.children) == null ? void 0 : P[0]) == null ? void 0 : I.clientHeight) != null ? x : 0
|
|
16616
16616
|
};
|
|
16617
|
-
t1(
|
|
16617
|
+
t1(X, Z) && (C++, c[Q].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[V].transform = `translate(-50%, ${C * 100 - 50}%)`);
|
|
16618
16618
|
}
|
|
16619
16619
|
}
|
|
16620
16620
|
this.labelItems = c, this.render();
|
|
@@ -16784,29 +16784,29 @@ function k1(n) {
|
|
|
16784
16784
|
if (o.length === 0)
|
|
16785
16785
|
return { geometry: new E.BufferGeometry(), maxU: 0, curvePath: null, curvePoints: null };
|
|
16786
16786
|
const r = new E.CurvePath();
|
|
16787
|
-
o.forEach((
|
|
16788
|
-
const B = M1(
|
|
16787
|
+
o.forEach((C) => {
|
|
16788
|
+
const B = M1(C);
|
|
16789
16789
|
B && r.add(B);
|
|
16790
16790
|
});
|
|
16791
16791
|
const a = Math.ceil(r.getLength() * 100);
|
|
16792
16792
|
r.arcLengthDivisions = a;
|
|
16793
|
-
const l = r.getPoints(a), c = l.length, d = w1(l.map((
|
|
16794
|
-
let P = 0,
|
|
16795
|
-
for (let
|
|
16796
|
-
const [B, Q] = d[
|
|
16797
|
-
b[
|
|
16798
|
-
const N = new ne(
|
|
16799
|
-
b[
|
|
16800
|
-
const
|
|
16801
|
-
if (
|
|
16802
|
-
const
|
|
16803
|
-
if (n.skipPositions.some(($) => $.distanceTo(
|
|
16793
|
+
const l = r.getPoints(a), c = l.length, d = w1(l.map((C) => [C.x, C.z])), f = (c - 1) * C1 * I1, m = 2 * c, A = m * P1, p = m * E1, g = new Uint32Array(f), b = new Float32Array(A), y = new Float32Array(p);
|
|
16794
|
+
let P = 0, I = 0;
|
|
16795
|
+
for (let C = 0; C < l.length; C++) {
|
|
16796
|
+
const [B, Q] = d[C][0], G = l[C], { x: W, y: V, z: H } = G, F = new ne(W + B * s, V + 0.05, H + Q * s);
|
|
16797
|
+
b[C * 6 + 0] = F.x, b[C * 6 + 1] = F.y, b[C * 6 + 2] = F.z;
|
|
16798
|
+
const N = new ne(W - B * s, V + 0.05, H - Q * s);
|
|
16799
|
+
b[C * 6 + 3] = N.x, b[C * 6 + 4] = N.y, b[C * 6 + 5] = N.z, P += C > 0 ? l[C - 1].clone().sub(l[C]).length() : 0;
|
|
16800
|
+
const Y = P / t / i;
|
|
16801
|
+
if (I = Y, y[C * 4 + 0] = 0, y[C * 4 + 1] = Y, y[C * 4 + 2] = 1, y[C * 4 + 3] = Y, n.skipPositions) {
|
|
16802
|
+
const X = new E.Vector3().lerpVectors(F, N, 0.5);
|
|
16803
|
+
if (n.skipPositions.some(($) => $.distanceTo(X) < 0.26))
|
|
16804
16804
|
continue;
|
|
16805
16805
|
}
|
|
16806
|
-
|
|
16806
|
+
C !== l.length - 1 && (g[C * 6 + 0] = C * 2 + 0, g[C * 6 + 1] = C * 2 + 2, g[C * 6 + 2] = C * 2 + 1, g[C * 6 + 3] = C * 2 + 2, g[C * 6 + 4] = C * 2 + 3, g[C * 6 + 5] = C * 2 + 1);
|
|
16807
16807
|
}
|
|
16808
16808
|
const x = new E.BufferGeometry();
|
|
16809
|
-
return x.setAttribute("position", new E.BufferAttribute(b, 3)), x.setAttribute("uv", new E.BufferAttribute(y, 2)), x.setIndex(new E.BufferAttribute(g, 1)), { geometry: x, maxU:
|
|
16809
|
+
return x.setAttribute("position", new E.BufferAttribute(b, 3)), x.setAttribute("uv", new E.BufferAttribute(y, 2)), x.setIndex(new E.BufferAttribute(g, 1)), { geometry: x, maxU: I, curvePath: r, curvePoints: l };
|
|
16810
16810
|
}
|
|
16811
16811
|
function M1(n) {
|
|
16812
16812
|
if (x1(n)) {
|
|
@@ -17372,7 +17372,7 @@ class Aa extends tf {
|
|
|
17372
17372
|
});
|
|
17373
17373
|
}
|
|
17374
17374
|
play(e = !1) {
|
|
17375
|
-
return
|
|
17375
|
+
return _(this, null, function* () {
|
|
17376
17376
|
this.videoMesh || (yield this.addVideoMesh()), this.showPlayUI(), this.videoInstance.paused && this.videoInstance.play().then(() => this.showPlayUI()).catch((i) => {
|
|
17377
17377
|
this.pause(), console.error("play error", i);
|
|
17378
17378
|
}), this.videoInstance.muted = e, this.render();
|
|
@@ -17392,7 +17392,7 @@ class Aa extends tf {
|
|
|
17392
17392
|
this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0;
|
|
17393
17393
|
}
|
|
17394
17394
|
showPauseUI() {
|
|
17395
|
-
return
|
|
17395
|
+
return _(this, null, function* () {
|
|
17396
17396
|
this.coverMesh ? (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh().then(() => this.render());
|
|
17397
17397
|
});
|
|
17398
17398
|
}
|
|
@@ -17401,10 +17401,10 @@ class Aa extends tf {
|
|
|
17401
17401
|
this.videoMesh && (this.videoMesh.needsRender = !0), this.coverMesh && (this.coverMesh.needsRender = !0), this.buttonMesh && (this.buttonMesh.needsRender = !0), this.videoMesh && ((e = this.videoInstance) == null ? void 0 : e.paused) === !1 && (this.videoMesh.needsRender = !0);
|
|
17402
17402
|
}
|
|
17403
17403
|
addCoverMesh() {
|
|
17404
|
-
return
|
|
17404
|
+
return _(this, null, function* () {
|
|
17405
17405
|
if (this.children.includes(this.coverMesh))
|
|
17406
17406
|
return;
|
|
17407
|
-
const e = yield (() =>
|
|
17407
|
+
const e = yield (() => _(this, null, function* () {
|
|
17408
17408
|
if (this.coverMesh)
|
|
17409
17409
|
return this.coverMesh;
|
|
17410
17410
|
if (!this.videoCoverSrc)
|
|
@@ -17416,10 +17416,10 @@ class Aa extends tf {
|
|
|
17416
17416
|
});
|
|
17417
17417
|
}
|
|
17418
17418
|
addVideoMesh() {
|
|
17419
|
-
return
|
|
17419
|
+
return _(this, null, function* () {
|
|
17420
17420
|
if (this.children.includes(this.videoMesh))
|
|
17421
17421
|
return;
|
|
17422
|
-
const e = yield (() =>
|
|
17422
|
+
const e = yield (() => _(this, null, function* () {
|
|
17423
17423
|
if (this.videoMesh)
|
|
17424
17424
|
return this.videoMesh;
|
|
17425
17425
|
if (!this.src)
|
|
@@ -17446,10 +17446,10 @@ class Aa extends tf {
|
|
|
17446
17446
|
});
|
|
17447
17447
|
}
|
|
17448
17448
|
addButtonMesh() {
|
|
17449
|
-
return
|
|
17449
|
+
return _(this, null, function* () {
|
|
17450
17450
|
if (this.children.includes(this.buttonMesh))
|
|
17451
17451
|
return;
|
|
17452
|
-
const e = yield (() =>
|
|
17452
|
+
const e = yield (() => _(this, null, function* () {
|
|
17453
17453
|
var m, A, p, g;
|
|
17454
17454
|
if (this.buttonMesh)
|
|
17455
17455
|
return this.buttonMesh;
|
|
@@ -17464,7 +17464,7 @@ class Aa extends tf {
|
|
|
17464
17464
|
});
|
|
17465
17465
|
}
|
|
17466
17466
|
getImageTexture(e) {
|
|
17467
|
-
return
|
|
17467
|
+
return _(this, null, function* () {
|
|
17468
17468
|
var s, o;
|
|
17469
17469
|
if ((s = this.ImageTextureMap) != null && s.has(e))
|
|
17470
17470
|
return this.ImageTextureMap.get(e);
|
|
@@ -17623,7 +17623,7 @@ function id(n, t) {
|
|
|
17623
17623
|
var i, s, o, r, a;
|
|
17624
17624
|
typeof n.visibleConfig == "object" && (n.visibleConfig.visibleFiveMode = (o = (s = n.visibleConfig.visibleFiveMode) != null ? s : (i = t == null ? void 0 : t.fiveState) == null ? void 0 : i.mode) != null ? o : "Panorama", n.visibleConfig.keep && (n.visibleConfig.keep === "visible" ? n.visibleConfig = { keep: n.visibleConfig.keep, visibleFiveMode: (r = n.visibleConfig) == null ? void 0 : r.visibleFiveMode } : n.visibleConfig.keep === "hidden" && (n.visibleConfig = { keep: n.visibleConfig.keep }))), typeof n.unfoldedConfig == "object" && (n.unfoldedConfig.disableFold && (n.unfoldedConfig = { keep: "unfolded" }), n.unfoldedConfig.disableUnfold && (n.unfoldedConfig = { keep: "folded" }), n.unfoldedConfig.keep && (n.unfoldedConfig = { keep: n.unfoldedConfig.keep }));
|
|
17625
17625
|
const e = (a = n.initialState) != null ? a : {};
|
|
17626
|
-
typeof n.unfoldedConfig == "object" && (n.unfoldedConfig.keep === "unfolded" ? e.unfolded = !0 : n.unfoldedConfig.keep === "folded" && (e.unfolded = !1)), typeof n.visibleConfig == "object" && (n.visibleConfig.keep === "visible" ? e.visible = !0 : n.visibleConfig.keep === "hidden" && (e.visible = !1)), n.initialState = e;
|
|
17626
|
+
return typeof n.unfoldedConfig == "object" && (n.unfoldedConfig.keep === "unfolded" ? e.unfolded = !0 : n.unfoldedConfig.keep === "folded" && (e.unfolded = !1)), typeof n.visibleConfig == "object" && (n.visibleConfig.keep === "visible" ? e.visible = !0 : n.visibleConfig.keep === "hidden" && (e.visible = !1)), n.initialState = e, n;
|
|
17627
17627
|
}
|
|
17628
17628
|
function nd(n) {
|
|
17629
17629
|
return Object.entries(n);
|
|
@@ -17878,44 +17878,48 @@ class ny extends Z1 {
|
|
|
17878
17878
|
* @description: 获取merge后的配置
|
|
17879
17879
|
*/
|
|
17880
17880
|
calculateTagConfig(e, i) {
|
|
17881
|
-
var A, p, g, b;
|
|
17881
|
+
var A, p, g, b, y;
|
|
17882
17882
|
const s = (A = i == null ? void 0 : i.useCache) != null ? A : !0;
|
|
17883
17883
|
if (!e)
|
|
17884
17884
|
return (p = this.config.globalConfig) != null ? p : {};
|
|
17885
|
-
if (s
|
|
17886
|
-
|
|
17885
|
+
if (s) {
|
|
17886
|
+
if ((g = e == null ? void 0 : e.computedConfig) != null && g._isMerged)
|
|
17887
|
+
return e.computedConfig;
|
|
17888
|
+
if ((b = e == null ? void 0 : e.config) != null && b._isMerged)
|
|
17889
|
+
return e.config;
|
|
17890
|
+
}
|
|
17887
17891
|
const o = {}, r = {}, a = {};
|
|
17888
|
-
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([
|
|
17889
|
-
var
|
|
17890
|
-
const
|
|
17891
|
-
if (!
|
|
17892
|
-
if (
|
|
17893
|
-
const [
|
|
17894
|
-
(e.contentType ===
|
|
17892
|
+
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([P, I]) => {
|
|
17893
|
+
var V, H;
|
|
17894
|
+
const x = P, C = x.split("-"), B = P.startsWith("["), Q = B ? C[0].slice(1, -1) : void 0, G = B ? C.slice(1) : C, W = Q ? ["PanoramaLike", "ModelLike"].includes(Q) ? (V = r[Q]) != null ? V : r[Q] = {} : (H = a[Q]) != null ? H : a[Q] = {} : o;
|
|
17895
|
+
if (!W[x]) {
|
|
17896
|
+
if (G.length === 0 && (W[x] = I), G.length === 1) {
|
|
17897
|
+
const [F] = G;
|
|
17898
|
+
(e.contentType === F || F === "Any") && (W[x] = I);
|
|
17895
17899
|
}
|
|
17896
|
-
if (
|
|
17897
|
-
const [
|
|
17898
|
-
|
|
17900
|
+
if (G.length === 2) {
|
|
17901
|
+
const [F = "Any", N = "Any"] = G;
|
|
17902
|
+
F === "Mixin" && e.contentType === N && (W[x] = I), (e.stickType === F || F === "Any") && (e.contentType === N || N === "Any") && (W[x] = I);
|
|
17899
17903
|
}
|
|
17900
|
-
if (
|
|
17901
|
-
const [
|
|
17902
|
-
if (
|
|
17903
|
-
const
|
|
17904
|
-
(
|
|
17904
|
+
if (G.length === 3) {
|
|
17905
|
+
const [F = "Any", N, Y] = G;
|
|
17906
|
+
if (N === "Audio" && e.contentType === "Audio") {
|
|
17907
|
+
const X = e;
|
|
17908
|
+
(X.stickType === F || F === "Any") && X.data.appearance === Y && (W[x] = I);
|
|
17905
17909
|
}
|
|
17906
17910
|
}
|
|
17907
17911
|
}
|
|
17908
17912
|
});
|
|
17909
|
-
const l = (
|
|
17910
|
-
nd(r).forEach(([
|
|
17911
|
-
f.forEach((
|
|
17912
|
-
(
|
|
17913
|
+
const l = (y = e.initialConfig) != null ? y : {}, c = Re({}, _1, this.config.globalConfig, ...Object.values(o)), d = Re({}, c, l), h = {}, f = Object.values(et.Mode);
|
|
17914
|
+
nd(r).forEach(([P, I]) => {
|
|
17915
|
+
f.forEach((x) => {
|
|
17916
|
+
(P === "PanoramaLike" && Tt(x) || P === "ModelLike" && An(x)) && (h[x] = Re({}, c, ...Object.values(I), l, { _isMerged: !0 }));
|
|
17913
17917
|
});
|
|
17914
|
-
}), nd(a).forEach(([
|
|
17915
|
-
h[
|
|
17918
|
+
}), nd(a).forEach(([P, I]) => {
|
|
17919
|
+
h[P] = Re({}, c, ...Object.values(I), l, { _isMerged: !0 });
|
|
17916
17920
|
});
|
|
17917
17921
|
const m = fe(R({}, d), { configWithFiveMode: h });
|
|
17918
|
-
return id(m, e), Object.values(h).forEach((
|
|
17922
|
+
return id(m, e), Object.values(h).forEach((P) => id(P, e)), m._isMerged = !0, m;
|
|
17919
17923
|
}
|
|
17920
17924
|
}
|
|
17921
17925
|
function sy(n, t) {
|
|
@@ -18147,14 +18151,14 @@ class oy extends ny {
|
|
|
18147
18151
|
if (!Ft(t))
|
|
18148
18152
|
return;
|
|
18149
18153
|
const B = this.tags.filter(Ft).map((G) => {
|
|
18150
|
-
var
|
|
18151
|
-
return (
|
|
18154
|
+
var W;
|
|
18155
|
+
return (W = G.model) == null ? void 0 : W.object;
|
|
18152
18156
|
}).filter(oi), [Q] = Nr.intersectObjects(B, !0);
|
|
18153
18157
|
return Q;
|
|
18154
18158
|
})(), P = (d = i.distanceAccuracy) != null ? d : 0.01;
|
|
18155
18159
|
Math.min((h = b == null ? void 0 : b.distance) != null ? h : 1 / 0, (f = y == null ? void 0 : y.distance) != null ? f : 1 / 0) + P >= g ? a++ : l++;
|
|
18156
|
-
const
|
|
18157
|
-
if (a >=
|
|
18160
|
+
const C = (m = i.needPassed) != null ? m : 1;
|
|
18161
|
+
if (a >= C)
|
|
18158
18162
|
return { value: !0 };
|
|
18159
18163
|
}
|
|
18160
18164
|
return l === 0 ? { value: !0 } : {
|
|
@@ -18365,8 +18369,8 @@ function ay(n) {
|
|
|
18365
18369
|
/*width*/
|
|
18366
18370
|
i[8] ? e ? e.p(i, s) : (e = od(i), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
18367
18371
|
},
|
|
18368
|
-
i:
|
|
18369
|
-
o:
|
|
18372
|
+
i: J,
|
|
18373
|
+
o: J,
|
|
18370
18374
|
d(i) {
|
|
18371
18375
|
e && e.d(i), i && j(t);
|
|
18372
18376
|
}
|
|
@@ -18671,7 +18675,7 @@ function gy(n) {
|
|
|
18671
18675
|
m(e, i) {
|
|
18672
18676
|
O(e, t, i);
|
|
18673
18677
|
},
|
|
18674
|
-
p:
|
|
18678
|
+
p: J,
|
|
18675
18679
|
d(e) {
|
|
18676
18680
|
e && j(t);
|
|
18677
18681
|
}
|
|
@@ -18766,8 +18770,8 @@ function Ay(n) {
|
|
|
18766
18770
|
30 && (s = /*contentList*/
|
|
18767
18771
|
r[2], t = Bt(t, a, o, 1, r, s, e, i.parentNode, Va, cd, i, ld));
|
|
18768
18772
|
},
|
|
18769
|
-
i:
|
|
18770
|
-
o:
|
|
18773
|
+
i: J,
|
|
18774
|
+
o: J,
|
|
18771
18775
|
d(r) {
|
|
18772
18776
|
for (let a = 0; a < t.length; a += 1)
|
|
18773
18777
|
t[a].d(r);
|
|
@@ -18779,35 +18783,35 @@ function vy(n, t, e) {
|
|
|
18779
18783
|
let i, { inDelay: s = 0 } = t, { outDelay: o = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
18780
18784
|
const c = `__EMOJI_SPLIT_${Ks}__`, d = `__EMOJI_${Ks}__`, h = `__SPACE_${Ks}__`, f = `__NEW_LINE_${Ks}__`;
|
|
18781
18785
|
let m, A, p = [];
|
|
18782
|
-
function g(
|
|
18786
|
+
function g(C) {
|
|
18783
18787
|
const B = [], Q = 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"));
|
|
18784
|
-
return
|
|
18788
|
+
return C.slice().replace(Q, (G) => `${c}${d}${G}${c}`).split(c).forEach((G) => G.startsWith(d) ? B.push({
|
|
18785
18789
|
id: ct(),
|
|
18786
18790
|
content: G.slice(d.length)
|
|
18787
|
-
}) : B.push(...G.split("").map((
|
|
18788
|
-
` ? f :
|
|
18791
|
+
}) : B.push(...G.split("").map((W) => W === " " ? h : W === `
|
|
18792
|
+
` ? f : W).map((W) => ({ id: ct(), content: W })))), B;
|
|
18789
18793
|
}
|
|
18790
18794
|
function b() {
|
|
18791
18795
|
if (!A)
|
|
18792
18796
|
return;
|
|
18793
|
-
const
|
|
18794
|
-
A.reversed !==
|
|
18797
|
+
const C = !a;
|
|
18798
|
+
A.reversed !== C && A.reverse(), A.play();
|
|
18795
18799
|
}
|
|
18796
|
-
function y(
|
|
18800
|
+
function y(C) {
|
|
18797
18801
|
if (l) {
|
|
18798
18802
|
e(5, l = !1);
|
|
18799
18803
|
return;
|
|
18800
18804
|
}
|
|
18801
|
-
clearTimeout(m), m = setTimeout(b,
|
|
18805
|
+
clearTimeout(m), m = setTimeout(b, C ? s : o);
|
|
18802
18806
|
}
|
|
18803
|
-
function P(
|
|
18807
|
+
function P(C) {
|
|
18804
18808
|
const B = function() {
|
|
18805
|
-
const Q = Q1((G) =>
|
|
18809
|
+
const Q = Q1((G) => C[G].getBoundingClientRect().x, [Math.min(C.length - 1, 10), Math.min(C.length - 1, 30)]);
|
|
18806
18810
|
if (Q > 0)
|
|
18807
18811
|
return Q;
|
|
18808
18812
|
}();
|
|
18809
18813
|
A = hl({
|
|
18810
|
-
targets:
|
|
18814
|
+
targets: C.slice(0, B).filter(oi),
|
|
18811
18815
|
autoplay: !1,
|
|
18812
18816
|
duration: 400,
|
|
18813
18817
|
scale: [0.7, 1],
|
|
@@ -18819,23 +18823,23 @@ function vy(n, t, e) {
|
|
|
18819
18823
|
easing: "easeInOutCubic"
|
|
18820
18824
|
}), a && A.seek(A.duration);
|
|
18821
18825
|
}
|
|
18822
|
-
function C
|
|
18823
|
-
Qe[
|
|
18824
|
-
p[B] =
|
|
18826
|
+
function I(C, B) {
|
|
18827
|
+
Qe[C ? "unshift" : "push"](() => {
|
|
18828
|
+
p[B] = C, e(1, p);
|
|
18825
18829
|
});
|
|
18826
18830
|
}
|
|
18827
|
-
function x(
|
|
18828
|
-
Qe[
|
|
18829
|
-
p[B] =
|
|
18831
|
+
function x(C, B) {
|
|
18832
|
+
Qe[C ? "unshift" : "push"](() => {
|
|
18833
|
+
p[B] = C, e(1, p);
|
|
18830
18834
|
});
|
|
18831
18835
|
}
|
|
18832
|
-
return n.$$set = (
|
|
18833
|
-
"inDelay" in
|
|
18836
|
+
return n.$$set = (C) => {
|
|
18837
|
+
"inDelay" in C && e(6, s = C.inDelay), "outDelay" in C && e(7, o = C.outDelay), "content" in C && e(0, r = C.content), "unfolded" in C && e(8, a = C.unfolded), "isFistUnfoldedUpdate" in C && e(5, l = C.isFistUnfoldedUpdate);
|
|
18834
18838
|
}, n.$$.update = () => {
|
|
18835
18839
|
n.$$.dirty & /*content*/
|
|
18836
18840
|
1 && e(2, i = g(r)), n.$$.dirty & /*unfolded*/
|
|
18837
18841
|
256 && y(a), n.$$.dirty & /*spanEleList*/
|
|
18838
|
-
2 && P(p.filter((
|
|
18842
|
+
2 && P(p.filter((C) => !!C));
|
|
18839
18843
|
}, [
|
|
18840
18844
|
r,
|
|
18841
18845
|
p,
|
|
@@ -18846,7 +18850,7 @@ function vy(n, t, e) {
|
|
|
18846
18850
|
s,
|
|
18847
18851
|
o,
|
|
18848
18852
|
a,
|
|
18849
|
-
|
|
18853
|
+
I,
|
|
18850
18854
|
x
|
|
18851
18855
|
];
|
|
18852
18856
|
}
|
|
@@ -19454,8 +19458,8 @@ function jy(n) {
|
|
|
19454
19458
|
(c = a[3]) != null && c.inputting ? i || (i = md(), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null), typeof /*edit*/
|
|
19455
19459
|
((d = a[3]) == null ? void 0 : d.placeholder) == "string" ? s ? s.p(a, l) : (s = gd(a), s.c(), s.m(e.parentNode, e)) : s && (s.d(1), s = null);
|
|
19456
19460
|
},
|
|
19457
|
-
i:
|
|
19458
|
-
o:
|
|
19461
|
+
i: J,
|
|
19462
|
+
o: J,
|
|
19459
19463
|
d(a) {
|
|
19460
19464
|
i && i.d(a), a && j(t), s && s.d(a), a && j(e);
|
|
19461
19465
|
}
|
|
@@ -19481,8 +19485,8 @@ function zy(n) {
|
|
|
19481
19485
|
e[2]
|
|
19482
19486
|
);
|
|
19483
19487
|
},
|
|
19484
|
-
i:
|
|
19485
|
-
o:
|
|
19488
|
+
i: J,
|
|
19489
|
+
o: J,
|
|
19486
19490
|
d(e) {
|
|
19487
19491
|
e && j(t);
|
|
19488
19492
|
}
|
|
@@ -20070,8 +20074,8 @@ function qy(n) {
|
|
|
20070
20074
|
s[0]
|
|
20071
20075
|
);
|
|
20072
20076
|
},
|
|
20073
|
-
i:
|
|
20074
|
-
o:
|
|
20077
|
+
i: J,
|
|
20078
|
+
o: J,
|
|
20075
20079
|
d(s) {
|
|
20076
20080
|
s && j(t), e = !1, i();
|
|
20077
20081
|
}
|
|
@@ -20267,8 +20271,8 @@ function ow(n) {
|
|
|
20267
20271
|
o[1]
|
|
20268
20272
|
);
|
|
20269
20273
|
},
|
|
20270
|
-
i:
|
|
20271
|
-
o:
|
|
20274
|
+
i: J,
|
|
20275
|
+
o: J,
|
|
20272
20276
|
d(o) {
|
|
20273
20277
|
o && j(t), i = !1, s();
|
|
20274
20278
|
}
|
|
@@ -20314,8 +20318,8 @@ function lw(n) {
|
|
|
20314
20318
|
e[0] + "%"
|
|
20315
20319
|
);
|
|
20316
20320
|
},
|
|
20317
|
-
i:
|
|
20318
|
-
o:
|
|
20321
|
+
i: J,
|
|
20322
|
+
o: J,
|
|
20319
20323
|
d(e) {
|
|
20320
20324
|
e && j(t);
|
|
20321
20325
|
}
|
|
@@ -20919,8 +20923,8 @@ var $s = BC, Eo = {}, RC = {
|
|
|
20919
20923
|
}
|
|
20920
20924
|
};
|
|
20921
20925
|
(function(n, t) {
|
|
20922
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", d = "[object Function]", h = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", A = "[object Object]", p = "[object Promise]", g = "[object RegExp]", b = "[object Set]", y = "[object String]", P = "[object Symbol]",
|
|
20923
|
-
ae[o] = ae[r] = ae[x] = ae[
|
|
20926
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", d = "[object Function]", h = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", A = "[object Object]", p = "[object Promise]", g = "[object RegExp]", b = "[object Set]", y = "[object String]", P = "[object Symbol]", I = "[object WeakMap]", x = "[object ArrayBuffer]", C = "[object DataView]", B = "[object Float32Array]", Q = "[object Float64Array]", G = "[object Int8Array]", W = "[object Int16Array]", V = "[object Int32Array]", H = "[object Uint8Array]", F = "[object Uint8ClampedArray]", N = "[object Uint16Array]", Y = "[object Uint32Array]", X = /[\\^$.*+?()[\]{}|]/g, Z = /\w*$/, $ = /^\[object .+?Constructor\]$/, he = /^(?:0|[1-9]\d*)$/, ae = {};
|
|
20927
|
+
ae[o] = ae[r] = ae[x] = ae[C] = ae[a] = ae[l] = ae[B] = ae[Q] = ae[G] = ae[W] = ae[V] = ae[f] = ae[m] = ae[A] = ae[g] = ae[b] = ae[y] = ae[P] = ae[H] = ae[F] = ae[N] = ae[Y] = !0, ae[c] = ae[d] = ae[I] = !1;
|
|
20924
20928
|
var Ce = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, Ie = typeof self == "object" && self && self.Object === Object && self, Ae = Ce || Ie || Function("return this")(), Oe = t && !t.nodeType && t, ve = Oe && !0 && n && !n.nodeType && n, _e = ve && ve.exports === Oe;
|
|
20925
20929
|
function me(v, k) {
|
|
20926
20930
|
return v.set(k[0], k[1]), v;
|
|
@@ -20982,7 +20986,7 @@ var $s = BC, Eo = {}, RC = {
|
|
|
20982
20986
|
var v = /[^.]+$/.exec(Pt && Pt.keys && Pt.keys.IE_PROTO || "");
|
|
20983
20987
|
return v ? "Symbol(src)_1." + v : "";
|
|
20984
20988
|
}(), Ne = Xt.toString, Xe = It.hasOwnProperty, xt = It.toString, Gn = RegExp(
|
|
20985
|
-
"^" + Ne.call(Xe).replace(
|
|
20989
|
+
"^" + Ne.call(Xe).replace(X, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
20986
20990
|
), Vt = _e ? Ae.Buffer : void 0, ai = Ae.Symbol, Ii = Ae.Uint8Array, At = Ee(Object.getPrototypeOf, Object), Fi = Object.create, _i = It.propertyIsEnumerable, Fo = pt.splice, Nn = Object.getOwnPropertySymbols, Wi = Vt ? Vt.isBuffer : void 0, Is = Ee(Object.keys, Object), Yi = St(Ae, "DataView"), Pi = St(Ae, "Map"), Dt = St(Ae, "Promise"), Ui = St(Ae, "Set"), Hn = St(Ae, "WeakMap"), Ei = St(Object, "create"), Fn = ft(Yi), ki = ft(Pi), _n = ft(Dt), Wn = ft(Ui), Yn = ft(Hn), li = ai ? ai.prototype : void 0, Ps = li ? li.valueOf : void 0;
|
|
20987
20991
|
function Zt(v) {
|
|
20988
20992
|
var k = -1, L = v ? v.length : 0;
|
|
@@ -21193,7 +21197,7 @@ var $s = BC, Eo = {}, RC = {
|
|
|
21193
21197
|
return qe(U, me, new v.constructor());
|
|
21194
21198
|
}
|
|
21195
21199
|
function xs(v) {
|
|
21196
|
-
var k = new v.constructor(v.source,
|
|
21200
|
+
var k = new v.constructor(v.source, Z.exec(v));
|
|
21197
21201
|
return k.lastIndex = v.lastIndex, k;
|
|
21198
21202
|
}
|
|
21199
21203
|
function fr(v, k, L) {
|
|
@@ -21236,12 +21240,12 @@ var $s = BC, Eo = {}, RC = {
|
|
|
21236
21240
|
return hr(L) ? L : void 0;
|
|
21237
21241
|
}
|
|
21238
21242
|
var Jt = Nn ? Ee(Nn, Object) : Er, qt = dr;
|
|
21239
|
-
(Yi && qt(new Yi(new ArrayBuffer(1))) !=
|
|
21243
|
+
(Yi && qt(new Yi(new ArrayBuffer(1))) != C || Pi && qt(new Pi()) != f || Dt && qt(Dt.resolve()) != p || Ui && qt(new Ui()) != b || Hn && qt(new Hn()) != I) && (qt = function(v) {
|
|
21240
21244
|
var k = xt.call(v), L = k == A ? v.constructor : void 0, U = L ? ft(L) : void 0;
|
|
21241
21245
|
if (U)
|
|
21242
21246
|
switch (U) {
|
|
21243
21247
|
case Fn:
|
|
21244
|
-
return
|
|
21248
|
+
return C;
|
|
21245
21249
|
case ki:
|
|
21246
21250
|
return f;
|
|
21247
21251
|
case _n:
|
|
@@ -21249,7 +21253,7 @@ var $s = BC, Eo = {}, RC = {
|
|
|
21249
21253
|
case Wn:
|
|
21250
21254
|
return b;
|
|
21251
21255
|
case Yn:
|
|
21252
|
-
return
|
|
21256
|
+
return I;
|
|
21253
21257
|
}
|
|
21254
21258
|
return k;
|
|
21255
21259
|
});
|
|
@@ -21268,17 +21272,17 @@ var $s = BC, Eo = {}, RC = {
|
|
|
21268
21272
|
case a:
|
|
21269
21273
|
case l:
|
|
21270
21274
|
return new Pe(+v);
|
|
21271
|
-
case
|
|
21275
|
+
case C:
|
|
21272
21276
|
return Mi(v, U);
|
|
21273
21277
|
case B:
|
|
21274
21278
|
case Q:
|
|
21275
21279
|
case G:
|
|
21276
|
-
case
|
|
21280
|
+
case W:
|
|
21277
21281
|
case V:
|
|
21278
21282
|
case H:
|
|
21279
|
-
case
|
|
21283
|
+
case F:
|
|
21280
21284
|
case N:
|
|
21281
|
-
case
|
|
21285
|
+
case Y:
|
|
21282
21286
|
return gr(v, U);
|
|
21283
21287
|
case f:
|
|
21284
21288
|
return Ms(v, U, L);
|
|
@@ -21372,8 +21376,8 @@ var ko = {}, QC = {
|
|
|
21372
21376
|
}
|
|
21373
21377
|
};
|
|
21374
21378
|
(function(n, t) {
|
|
21375
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", m = "[object Function]", A = "[object GeneratorFunction]", p = "[object Map]", g = "[object Number]", b = "[object Null]", y = "[object Object]", P = "[object Promise]",
|
|
21376
|
-
ve[
|
|
21379
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", m = "[object Function]", A = "[object GeneratorFunction]", p = "[object Map]", g = "[object Number]", b = "[object Null]", y = "[object Object]", P = "[object Promise]", I = "[object Proxy]", x = "[object RegExp]", C = "[object Set]", B = "[object String]", Q = "[object Symbol]", G = "[object Undefined]", W = "[object WeakMap]", V = "[object ArrayBuffer]", H = "[object DataView]", F = "[object Float32Array]", N = "[object Float64Array]", Y = "[object Int8Array]", X = "[object Int16Array]", Z = "[object Int32Array]", $ = "[object Uint8Array]", he = "[object Uint8ClampedArray]", ae = "[object Uint16Array]", Ce = "[object Uint32Array]", Ie = /[\\^$.*+?()[\]{}|]/g, Ae = /^\[object .+?Constructor\]$/, Oe = /^(?:0|[1-9]\d*)$/, ve = {};
|
|
21380
|
+
ve[F] = ve[N] = ve[Y] = ve[X] = ve[Z] = ve[$] = ve[he] = ve[ae] = ve[Ce] = !0, ve[a] = ve[l] = ve[V] = ve[d] = ve[H] = ve[h] = ve[f] = ve[m] = ve[p] = ve[g] = ve[y] = ve[x] = ve[C] = ve[B] = ve[W] = !1;
|
|
21377
21381
|
var _e = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, me = typeof self == "object" && self && self.Object === Object && self, ye = _e || me || Function("return this")(), Le = t && !t.nodeType && t, ge = Le && !0 && n && !n.nodeType && n, qe = ge && ge.exports === Le, ut = qe && _e.process, Me = function() {
|
|
21378
21382
|
try {
|
|
21379
21383
|
return ut && ut.binding && ut.binding("util");
|
|
@@ -21684,7 +21688,7 @@ var ko = {}, QC = {
|
|
|
21684
21688
|
return v == k + "";
|
|
21685
21689
|
case p:
|
|
21686
21690
|
var Se = Be;
|
|
21687
|
-
case
|
|
21691
|
+
case C:
|
|
21688
21692
|
var We = U & s;
|
|
21689
21693
|
if (Se || (Se = Xe), v.size != k.size && !We)
|
|
21690
21694
|
return !1;
|
|
@@ -21757,7 +21761,7 @@ var ko = {}, QC = {
|
|
|
21757
21761
|
return Yi.call(v, k);
|
|
21758
21762
|
}));
|
|
21759
21763
|
} : Er, Gt = Mi;
|
|
21760
|
-
(Fn && Gt(new Fn(new ArrayBuffer(1))) != H || ki && Gt(new ki()) != p || _n && Gt(_n.resolve()) != P || Wn && Gt(new Wn()) !=
|
|
21764
|
+
(Fn && Gt(new Fn(new ArrayBuffer(1))) != H || ki && Gt(new ki()) != p || _n && Gt(_n.resolve()) != P || Wn && Gt(new Wn()) != C || Yn && Gt(new Yn()) != W) && (Gt = function(v) {
|
|
21761
21765
|
var k = Mi(v), L = k == y ? v.constructor : void 0, U = L ? ft(L) : "";
|
|
21762
21766
|
if (U)
|
|
21763
21767
|
switch (U) {
|
|
@@ -21768,9 +21772,9 @@ var ko = {}, QC = {
|
|
|
21768
21772
|
case _o:
|
|
21769
21773
|
return P;
|
|
21770
21774
|
case Wo:
|
|
21771
|
-
return
|
|
21775
|
+
return C;
|
|
21772
21776
|
case Yo:
|
|
21773
|
-
return
|
|
21777
|
+
return W;
|
|
21774
21778
|
}
|
|
21775
21779
|
return k;
|
|
21776
21780
|
});
|
|
@@ -21823,7 +21827,7 @@ var ko = {}, QC = {
|
|
|
21823
21827
|
if (!js(v))
|
|
21824
21828
|
return !1;
|
|
21825
21829
|
var k = Mi(v);
|
|
21826
|
-
return k == m || k == A || k == c || k ==
|
|
21830
|
+
return k == m || k == A || k == c || k == I;
|
|
21827
21831
|
}
|
|
21828
21832
|
function Kn(v) {
|
|
21829
21833
|
return typeof v == "number" && v > -1 && v % 1 == 0 && v <= r;
|
|
@@ -21983,7 +21987,7 @@ class qC {
|
|
|
21983
21987
|
this.reset();
|
|
21984
21988
|
const i = Math.min(JC, Math.max(this._autoplayDuration, 1));
|
|
21985
21989
|
let s = -i;
|
|
21986
|
-
this._interval = ZC(() =>
|
|
21990
|
+
this._interval = ZC(() => _(this, null, function* () {
|
|
21987
21991
|
if (this._paused)
|
|
21988
21992
|
return;
|
|
21989
21993
|
s += i;
|
|
@@ -22146,17 +22150,17 @@ function KC(n) {
|
|
|
22146
22150
|
r.focused = !r.focused;
|
|
22147
22151
|
},
|
|
22148
22152
|
_applyAutoplayIfNeeded(l) {
|
|
22149
|
-
return
|
|
22153
|
+
return _(this, arguments, function* ({ data: r, methods: a }) {
|
|
22150
22154
|
if (!r.infinite && (r.autoplayDirection === vi && r.currentParticleIndex === r.particlesCount - 1 || r.autoplayDirection === Mn && r.currentParticleIndex === 0)) {
|
|
22151
22155
|
t.reset();
|
|
22152
22156
|
return;
|
|
22153
22157
|
}
|
|
22154
22158
|
if (r.autoplay) {
|
|
22155
22159
|
const c = () => va({
|
|
22156
|
-
[vi]: () =>
|
|
22160
|
+
[vi]: () => _(this, null, function* () {
|
|
22157
22161
|
return a.showNextPage();
|
|
22158
22162
|
}),
|
|
22159
|
-
[Mn]: () =>
|
|
22163
|
+
[Mn]: () => _(this, null, function* () {
|
|
22160
22164
|
return a.showPrevPage();
|
|
22161
22165
|
})
|
|
22162
22166
|
})(r.autoplayDirection);
|
|
@@ -22166,7 +22170,7 @@ function KC(n) {
|
|
|
22166
22170
|
},
|
|
22167
22171
|
// makes delayed jump to 1st or last element
|
|
22168
22172
|
_jumpIfNeeded(l) {
|
|
22169
|
-
return
|
|
22173
|
+
return _(this, arguments, function* ({ data: r, methods: a }) {
|
|
22170
22174
|
let c = !1;
|
|
22171
22175
|
return r.infinite && (r.currentParticleIndex === 0 ? (yield a.showParticle(
|
|
22172
22176
|
r.particlesCount - r.clonesCountTotal,
|
|
@@ -22179,24 +22183,24 @@ function KC(n) {
|
|
|
22179
22183
|
});
|
|
22180
22184
|
},
|
|
22181
22185
|
changePage(d, h, f) {
|
|
22182
|
-
return
|
|
22186
|
+
return _(this, arguments, function* ({ data: r, methods: a }, l, c) {
|
|
22183
22187
|
if (t.reset(), r.disabled)
|
|
22184
22188
|
return;
|
|
22185
22189
|
r.disabled = !0, l(), yield a.offsetPage({ animated: gs(c, "animated", !0) }), r.disabled = !1, !(yield a._jumpIfNeeded()) && a._applyAutoplayIfNeeded();
|
|
22186
22190
|
});
|
|
22187
22191
|
},
|
|
22188
22192
|
showNextPage(c, d) {
|
|
22189
|
-
return
|
|
22193
|
+
return _(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
22190
22194
|
r.disabled || (yield a.changePage(a._next, l));
|
|
22191
22195
|
});
|
|
22192
22196
|
},
|
|
22193
22197
|
showPrevPage(c, d) {
|
|
22194
|
-
return
|
|
22198
|
+
return _(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
22195
22199
|
r.disabled || (yield a.changePage(a._prev, l));
|
|
22196
22200
|
});
|
|
22197
22201
|
},
|
|
22198
22202
|
showParticle(c, d, h) {
|
|
22199
|
-
return
|
|
22203
|
+
return _(this, arguments, function* ({ methods: r }, a, l) {
|
|
22200
22204
|
yield r.changePage(
|
|
22201
22205
|
() => r._moveToParticle(a),
|
|
22202
22206
|
l
|
|
@@ -22215,7 +22219,7 @@ function KC(n) {
|
|
|
22215
22219
|
});
|
|
22216
22220
|
},
|
|
22217
22221
|
showPage(c, d, h) {
|
|
22218
|
-
return
|
|
22222
|
+
return _(this, arguments, function* ({ methods: r }, a, l) {
|
|
22219
22223
|
const f = r._getParticleIndexByPageIndex(a);
|
|
22220
22224
|
yield r.showParticle(f, l);
|
|
22221
22225
|
});
|
|
@@ -22665,8 +22669,8 @@ function aI(n) {
|
|
|
22665
22669
|
n[0]
|
|
22666
22670
|
), w(s, "class", "sc-carousel__pages-window svelte-sme1z4"), w(e, "class", "sc-carousel__content-container svelte-sme1z4"), w(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
22667
22671
|
},
|
|
22668
|
-
m(P,
|
|
22669
|
-
O(P, t,
|
|
22672
|
+
m(P, I) {
|
|
22673
|
+
O(P, t, I), S(t, e), m && m.m(e, null), S(e, i), S(e, s), S(s, o), p && p.m(o, null), n[39](o), S(s, a), g && g.m(s, null), n[40](s), S(e, l), b && b.m(e, null), S(t, c), y && y.m(t, null), d = !0, h || (f = [
|
|
22670
22674
|
ni(r = bw.call(null, o, {
|
|
22671
22675
|
thresholdProvider: (
|
|
22672
22676
|
/*swipeable_function*/
|
|
@@ -22719,13 +22723,13 @@ function aI(n) {
|
|
|
22719
22723
|
)
|
|
22720
22724
|
], h = !0);
|
|
22721
22725
|
},
|
|
22722
|
-
p(P,
|
|
22726
|
+
p(P, I) {
|
|
22723
22727
|
/*arrows*/
|
|
22724
|
-
P[1] ? m ? (m.p(P,
|
|
22728
|
+
P[1] ? m ? (m.p(P, I), I[0] & /*arrows*/
|
|
22725
22729
|
2 && M(m, 1)) : (m = Od(P), m.c(), M(m, 1), m.m(e, i)) : m && (ce(), T(m, 1, 1, () => {
|
|
22726
22730
|
m = null;
|
|
22727
|
-
}), de()), p && p.p && (!d ||
|
|
22728
|
-
96 |
|
|
22731
|
+
}), de()), p && p.p && (!d || I[0] & /*loaded, currentPageIndex*/
|
|
22732
|
+
96 | I[1] & /*$$scope*/
|
|
22729
22733
|
32) && jn(
|
|
22730
22734
|
p,
|
|
22731
22735
|
A,
|
|
@@ -22736,43 +22740,43 @@ function aI(n) {
|
|
|
22736
22740
|
A,
|
|
22737
22741
|
/*$$scope*/
|
|
22738
22742
|
P[36],
|
|
22739
|
-
|
|
22743
|
+
I,
|
|
22740
22744
|
iI
|
|
22741
22745
|
) : zn(
|
|
22742
22746
|
/*$$scope*/
|
|
22743
22747
|
P[36]
|
|
22744
22748
|
),
|
|
22745
22749
|
jd
|
|
22746
|
-
), (!d ||
|
|
22750
|
+
), (!d || I[0] & /*offset*/
|
|
22747
22751
|
256) && z(o, "transform", "translateX(" + /*offset*/
|
|
22748
|
-
P[8] + "px)"), (!d ||
|
|
22752
|
+
P[8] + "px)"), (!d || I[0] & /*durationMs*/
|
|
22749
22753
|
512) && z(
|
|
22750
22754
|
o,
|
|
22751
22755
|
"transition-duration",
|
|
22752
22756
|
/*durationMs*/
|
|
22753
22757
|
P[9] + "ms"
|
|
22754
|
-
), (!d ||
|
|
22758
|
+
), (!d || I[0] & /*timingFunction*/
|
|
22755
22759
|
1) && z(
|
|
22756
22760
|
o,
|
|
22757
22761
|
"transition-timing-function",
|
|
22758
22762
|
/*timingFunction*/
|
|
22759
22763
|
P[0]
|
|
22760
|
-
), r && Ut(r.update) &&
|
|
22764
|
+
), r && Ut(r.update) && I[0] & /*pageWindowWidth*/
|
|
22761
22765
|
2048 && r.update.call(null, {
|
|
22762
22766
|
thresholdProvider: (
|
|
22763
22767
|
/*swipeable_function*/
|
|
22764
22768
|
P[38]
|
|
22765
22769
|
)
|
|
22766
22770
|
}), /*autoplayProgressVisible*/
|
|
22767
|
-
P[3] ? g ? (g.p(P,
|
|
22771
|
+
P[3] ? g ? (g.p(P, I), I[0] & /*autoplayProgressVisible*/
|
|
22768
22772
|
8 && M(g, 1)) : (g = Bd(P), g.c(), M(g, 1), g.m(s, null)) : g && (ce(), T(g, 1, 1, () => {
|
|
22769
22773
|
g = null;
|
|
22770
22774
|
}), de()), /*arrows*/
|
|
22771
|
-
P[1] ? b ? (b.p(P,
|
|
22775
|
+
P[1] ? b ? (b.p(P, I), I[0] & /*arrows*/
|
|
22772
22776
|
2 && M(b, 1)) : (b = Rd(P), b.c(), M(b, 1), b.m(e, null)) : b && (ce(), T(b, 1, 1, () => {
|
|
22773
22777
|
b = null;
|
|
22774
22778
|
}), de()), /*dots*/
|
|
22775
|
-
P[4] ? y ? (y.p(P,
|
|
22779
|
+
P[4] ? y ? (y.p(P, I), I[0] & /*dots*/
|
|
22776
22780
|
16 && M(y, 1)) : (y = Vd(P), y.c(), M(y, 1), y.m(t, null)) : y && (ce(), T(y, 1, 1, () => {
|
|
22777
22781
|
y = null;
|
|
22778
22782
|
}), de());
|
|
@@ -22800,30 +22804,30 @@ function lI(n, t, e) {
|
|
|
22800
22804
|
loaded: () => e(6, o = Ee)
|
|
22801
22805
|
})(le);
|
|
22802
22806
|
}), p = Lo();
|
|
22803
|
-
let { timingFunction: g = "ease-in-out" } = t, { arrows: b = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: P = 0 } = t, { duration:
|
|
22807
|
+
let { timingFunction: g = "ease-in-out" } = t, { arrows: b = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: P = 0 } = t, { duration: I = 500 } = t, { autoplay: x = !1 } = t, { autoplayDuration: C = 3e3 } = t, { autoplayDirection: B = vi } = t, { pauseOnFocus: Q = !1 } = t, { autoplayProgressVisible: G = !1 } = t, { dots: W = !0 } = t, { swiping: V = !0 } = t, { particlesToShow: H = 1 } = t, { particlesToScroll: F = 1 } = t;
|
|
22804
22808
|
function N(le, Ee) {
|
|
22805
|
-
return
|
|
22809
|
+
return _(this, null, function* () {
|
|
22806
22810
|
const Fe = gs(Ee, "animated", !0);
|
|
22807
22811
|
if (typeof le != "number")
|
|
22808
22812
|
throw new Error("pageIndex should be a number");
|
|
22809
22813
|
yield m.showPage(le, { animated: Fe });
|
|
22810
22814
|
});
|
|
22811
22815
|
}
|
|
22812
|
-
function
|
|
22813
|
-
return
|
|
22816
|
+
function Y(le) {
|
|
22817
|
+
return _(this, null, function* () {
|
|
22814
22818
|
const Ee = gs(le, "animated", !0);
|
|
22815
22819
|
yield m.showPrevPage({ animated: Ee });
|
|
22816
22820
|
});
|
|
22817
22821
|
}
|
|
22818
|
-
function
|
|
22819
|
-
return
|
|
22822
|
+
function X(le) {
|
|
22823
|
+
return _(this, null, function* () {
|
|
22820
22824
|
const Ee = gs(le, "animated", !0);
|
|
22821
22825
|
yield m.showNextPage({ animated: Ee });
|
|
22822
22826
|
});
|
|
22823
22827
|
}
|
|
22824
|
-
let
|
|
22828
|
+
let Z = 0, $, he;
|
|
22825
22829
|
const ae = Rw(({ width: le }) => {
|
|
22826
|
-
e(11,
|
|
22830
|
+
e(11, Z = le), h.particleWidth = Z / h.particlesToShow, Bw({
|
|
22827
22831
|
particlesContainerChildren: he.children,
|
|
22828
22832
|
particleWidth: h.particleWidth
|
|
22829
22833
|
}), m.offsetPage({ animated: !1 });
|
|
@@ -22841,14 +22845,14 @@ function lI(n, t, e) {
|
|
|
22841
22845
|
});
|
|
22842
22846
|
}
|
|
22843
22847
|
Ct(() => {
|
|
22844
|
-
|
|
22848
|
+
_(this, null, function* () {
|
|
22845
22849
|
yield yl(), he && $ && (h.particlesCountWithoutClones = he.children.length, yield yl(), h.infinite && Ce(), h.particlesCount = he.children.length, m.showPage(P, { animated: !1 }), ae.observe($));
|
|
22846
22850
|
});
|
|
22847
22851
|
}), Ot(() => {
|
|
22848
22852
|
ae.disconnect(), f.reset();
|
|
22849
22853
|
});
|
|
22850
22854
|
function Ie(le) {
|
|
22851
|
-
return
|
|
22855
|
+
return _(this, null, function* () {
|
|
22852
22856
|
yield m.showPage(le, { animated: !0 });
|
|
22853
22857
|
});
|
|
22854
22858
|
}
|
|
@@ -22856,7 +22860,7 @@ function lI(n, t, e) {
|
|
|
22856
22860
|
V && (h.durationMs = 0);
|
|
22857
22861
|
}
|
|
22858
22862
|
function Oe(le) {
|
|
22859
|
-
return
|
|
22863
|
+
return _(this, null, function* () {
|
|
22860
22864
|
V && (yield va({
|
|
22861
22865
|
[vi]: m.showNextPage,
|
|
22862
22866
|
[Mn]: m.showPrevPage
|
|
@@ -22870,7 +22874,7 @@ function lI(n, t, e) {
|
|
|
22870
22874
|
V && m.showParticle(h.currentParticleIndex);
|
|
22871
22875
|
}
|
|
22872
22876
|
function me() {
|
|
22873
|
-
return
|
|
22877
|
+
return _(this, null, function* () {
|
|
22874
22878
|
V && (yield m.offsetPage({ animated: !0 }));
|
|
22875
22879
|
});
|
|
22876
22880
|
}
|
|
@@ -22883,7 +22887,7 @@ function lI(n, t, e) {
|
|
|
22883
22887
|
function ge() {
|
|
22884
22888
|
m.showPrevPage();
|
|
22885
22889
|
}
|
|
22886
|
-
const qe = () =>
|
|
22890
|
+
const qe = () => Z / 3;
|
|
22887
22891
|
function ut(le) {
|
|
22888
22892
|
Qe[le ? "unshift" : "push"](() => {
|
|
22889
22893
|
he = le, e(13, he);
|
|
@@ -22896,31 +22900,31 @@ function lI(n, t, e) {
|
|
|
22896
22900
|
}
|
|
22897
22901
|
const st = (le) => Ie(le.detail);
|
|
22898
22902
|
return n.$$set = (le) => {
|
|
22899
|
-
"timingFunction" in le && e(0, g = le.timingFunction), "arrows" in le && e(1, b = le.arrows), "infinite" in le && e(2, y = le.infinite), "initialPageIndex" in le && e(24, P = le.initialPageIndex), "duration" in le && e(25,
|
|
22903
|
+
"timingFunction" in le && e(0, g = le.timingFunction), "arrows" in le && e(1, b = le.arrows), "infinite" in le && e(2, y = le.infinite), "initialPageIndex" in le && e(24, P = le.initialPageIndex), "duration" in le && e(25, I = le.duration), "autoplay" in le && e(26, x = le.autoplay), "autoplayDuration" in le && e(27, C = le.autoplayDuration), "autoplayDirection" in le && e(28, B = le.autoplayDirection), "pauseOnFocus" in le && e(29, Q = le.pauseOnFocus), "autoplayProgressVisible" in le && e(3, G = le.autoplayProgressVisible), "dots" in le && e(4, W = le.dots), "swiping" in le && e(30, V = le.swiping), "particlesToShow" in le && e(31, H = le.particlesToShow), "particlesToScroll" in le && e(32, F = le.particlesToScroll), "$$scope" in le && e(36, s = le.$$scope);
|
|
22900
22904
|
}, n.$$.update = () => {
|
|
22901
22905
|
n.$$.dirty[0] & /*currentPageIndex*/
|
|
22902
22906
|
32 && p("pageChange", r), n.$$.dirty[0] & /*infinite*/
|
|
22903
22907
|
4 && (h.infinite = y), n.$$.dirty[0] & /*duration*/
|
|
22904
|
-
33554432 && (h.durationMsInit =
|
|
22908
|
+
33554432 && (h.durationMsInit = I), n.$$.dirty[0] & /*autoplay*/
|
|
22905
22909
|
67108864 && (h.autoplay = x), n.$$.dirty[0] & /*autoplayDuration*/
|
|
22906
|
-
134217728 && (h.autoplayDuration =
|
|
22910
|
+
134217728 && (h.autoplayDuration = C), n.$$.dirty[0] & /*autoplayDirection*/
|
|
22907
22911
|
268435456 && (h.autoplayDirection = B), n.$$.dirty[0] & /*pauseOnFocus*/
|
|
22908
22912
|
536870912 && (h.pauseOnFocus = Q), n.$$.dirty[1] & /*particlesToShow*/
|
|
22909
22913
|
1 && (h.particlesToShowInit = H), n.$$.dirty[1] & /*particlesToScroll*/
|
|
22910
|
-
2 && (h.particlesToScrollInit =
|
|
22914
|
+
2 && (h.particlesToScrollInit = F);
|
|
22911
22915
|
}, [
|
|
22912
22916
|
g,
|
|
22913
22917
|
b,
|
|
22914
22918
|
y,
|
|
22915
22919
|
G,
|
|
22916
|
-
|
|
22920
|
+
W,
|
|
22917
22921
|
r,
|
|
22918
22922
|
o,
|
|
22919
22923
|
a,
|
|
22920
22924
|
l,
|
|
22921
22925
|
c,
|
|
22922
22926
|
d,
|
|
22923
|
-
|
|
22927
|
+
Z,
|
|
22924
22928
|
$,
|
|
22925
22929
|
he,
|
|
22926
22930
|
m,
|
|
@@ -22934,17 +22938,17 @@ function lI(n, t, e) {
|
|
|
22934
22938
|
Le,
|
|
22935
22939
|
ge,
|
|
22936
22940
|
P,
|
|
22937
|
-
C,
|
|
22938
|
-
x,
|
|
22939
22941
|
I,
|
|
22942
|
+
x,
|
|
22943
|
+
C,
|
|
22940
22944
|
B,
|
|
22941
22945
|
Q,
|
|
22942
22946
|
V,
|
|
22943
22947
|
H,
|
|
22944
|
-
|
|
22948
|
+
F,
|
|
22945
22949
|
N,
|
|
22946
|
-
|
|
22947
|
-
|
|
22950
|
+
Y,
|
|
22951
|
+
X,
|
|
22948
22952
|
s,
|
|
22949
22953
|
i,
|
|
22950
22954
|
qe,
|
|
@@ -23255,8 +23259,8 @@ function gI(n) {
|
|
|
23255
23259
|
/*media*/
|
|
23256
23260
|
i[2] ? e ? e.p(i, s) : (e = Qd(i), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
23257
23261
|
},
|
|
23258
|
-
i:
|
|
23259
|
-
o:
|
|
23262
|
+
i: J,
|
|
23263
|
+
o: J,
|
|
23260
23264
|
d(i) {
|
|
23261
23265
|
e && e.d(i), i && j(t);
|
|
23262
23266
|
}
|
|
@@ -23282,7 +23286,7 @@ function pI(n, t, e) {
|
|
|
23282
23286
|
tag: r,
|
|
23283
23287
|
mediaInstance: i
|
|
23284
23288
|
});
|
|
23285
|
-
},
|
|
23289
|
+
}, I = (V) => {
|
|
23286
23290
|
e(10, m = !0), e(0, o.paused = !0, o), b.emit("playStateChange", {
|
|
23287
23291
|
event: V,
|
|
23288
23292
|
state: "paused",
|
|
@@ -23296,7 +23300,7 @@ function pI(n, t, e) {
|
|
|
23296
23300
|
tag: r,
|
|
23297
23301
|
mediaInstance: i
|
|
23298
23302
|
});
|
|
23299
|
-
},
|
|
23303
|
+
}, C = (V) => {
|
|
23300
23304
|
e(10, m = !0), e(0, o.paused = !0, o), b.emit("playStateChange", {
|
|
23301
23305
|
event: V,
|
|
23302
23306
|
state: "paused",
|
|
@@ -23311,7 +23315,7 @@ function pI(n, t, e) {
|
|
|
23311
23315
|
o.videoInstance = V, e(0, o);
|
|
23312
23316
|
});
|
|
23313
23317
|
}
|
|
23314
|
-
const G = () => l === "withText" ? Za : l === "withoutText" ? ga : l,
|
|
23318
|
+
const G = () => l === "withText" ? Za : l === "withoutText" ? ga : l, W = (V) => {
|
|
23315
23319
|
d && i && (e(9, i.muted = !1, i), i.play());
|
|
23316
23320
|
};
|
|
23317
23321
|
return n.$$set = (V) => {
|
|
@@ -23323,8 +23327,8 @@ function pI(n, t, e) {
|
|
|
23323
23327
|
8192 && s && p(), n.$$.dirty & /*videoInstance*/
|
|
23324
23328
|
512 && i && e(10, m = i.paused), n.$$.dirty & /*media, videoPosterLoaded, videoInstance*/
|
|
23325
23329
|
772 && (a == null ? void 0 : a.type) === "Video" && !A) {
|
|
23326
|
-
const V = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1,
|
|
23327
|
-
i &&
|
|
23330
|
+
const V = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, F = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && V;
|
|
23331
|
+
i && F && i.paused && (document.removeEventListener("WeixinJSBridgeReady", y), document.removeEventListener("touchstart", y), document.removeEventListener("click", y), document.addEventListener("WeixinJSBridgeReady", y), document.addEventListener("touchstart", y), document.addEventListener("click", y));
|
|
23328
23332
|
}
|
|
23329
23333
|
}, [
|
|
23330
23334
|
o,
|
|
@@ -23342,13 +23346,13 @@ function pI(n, t, e) {
|
|
|
23342
23346
|
b,
|
|
23343
23347
|
s,
|
|
23344
23348
|
P,
|
|
23345
|
-
C,
|
|
23346
|
-
x,
|
|
23347
23349
|
I,
|
|
23350
|
+
x,
|
|
23351
|
+
C,
|
|
23348
23352
|
B,
|
|
23349
23353
|
Q,
|
|
23350
23354
|
G,
|
|
23351
|
-
|
|
23355
|
+
W
|
|
23352
23356
|
];
|
|
23353
23357
|
}
|
|
23354
23358
|
class pf extends re {
|
|
@@ -23737,44 +23741,44 @@ function wI(n) {
|
|
|
23737
23741
|
function CI(n, t, e) {
|
|
23738
23742
|
let i, s, o, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: d = 0 } = t, { duration: h = 0 } = t, { unfolded: f = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig: A } = t, { enableCarousel: p = !0 } = t, { autoplayConfig: g = {} } = t;
|
|
23739
23743
|
const { autoplayVideo: b = !1, autoplayCarousel: y = !0, autoplayVideoInCarousel: P = !1 } = g;
|
|
23740
|
-
let
|
|
23744
|
+
let I = [], x = 0, C, B = null;
|
|
23741
23745
|
const Q = mi("hooks"), G = mi("mediaStore");
|
|
23742
|
-
function
|
|
23743
|
-
const
|
|
23744
|
-
|
|
23746
|
+
function W() {
|
|
23747
|
+
const Y = I[x], X = Y == null ? void 0 : Y.videoInstance;
|
|
23748
|
+
X && (X.paused ? (X.muted = !1, X.play()) : X.pause());
|
|
23745
23749
|
}
|
|
23746
23750
|
Ct(() => {
|
|
23747
|
-
Q.on("click", (
|
|
23748
|
-
var
|
|
23749
|
-
($ = (
|
|
23751
|
+
Q.on("click", (Y) => {
|
|
23752
|
+
var X, Z, $;
|
|
23753
|
+
($ = (Z = (X = a.tag3DContentSvelte) == null ? void 0 : X.css3DInstance) == null ? void 0 : Z.css3DObject) != null && $.opacityMesh && Y.tag.id === a.id && W();
|
|
23750
23754
|
}), B = setInterval(
|
|
23751
23755
|
() => {
|
|
23752
|
-
r && (
|
|
23756
|
+
r && (C == null || C.goToNext());
|
|
23753
23757
|
},
|
|
23754
23758
|
3e3
|
|
23755
23759
|
);
|
|
23756
23760
|
}), Ot(() => {
|
|
23757
|
-
clearInterval(B), Q.off("click",
|
|
23761
|
+
clearInterval(B), Q.off("click", W);
|
|
23758
23762
|
});
|
|
23759
|
-
function V(
|
|
23760
|
-
n.$$.not_equal(
|
|
23763
|
+
function V(Y, X) {
|
|
23764
|
+
n.$$.not_equal(I[X], Y) && (I[X] = Y, e(8, I));
|
|
23761
23765
|
}
|
|
23762
|
-
function H(
|
|
23763
|
-
Qe[
|
|
23764
|
-
|
|
23766
|
+
function H(Y) {
|
|
23767
|
+
Qe[Y ? "unshift" : "push"](() => {
|
|
23768
|
+
C = Y, e(12, C);
|
|
23765
23769
|
});
|
|
23766
23770
|
}
|
|
23767
|
-
const
|
|
23768
|
-
i || G.set({ currentMediaElement: null }), e(11, x =
|
|
23771
|
+
const F = (Y) => {
|
|
23772
|
+
i || G.set({ currentMediaElement: null }), e(11, x = Y.detail);
|
|
23769
23773
|
};
|
|
23770
|
-
function N(
|
|
23771
|
-
n.$$.not_equal(
|
|
23774
|
+
function N(Y) {
|
|
23775
|
+
n.$$.not_equal(I[0], Y) && (I[0] = Y, e(8, I));
|
|
23772
23776
|
}
|
|
23773
|
-
return n.$$set = (
|
|
23774
|
-
"tag" in
|
|
23777
|
+
return n.$$set = (Y) => {
|
|
23778
|
+
"tag" in Y && e(0, a = Y.tag), "mediaData" in Y && e(1, l = Y.mediaData), "inDelay" in Y && e(2, c = Y.inDelay), "outDelay" in Y && e(3, d = Y.outDelay), "duration" in Y && e(4, h = Y.duration), "unfolded" in Y && e(5, f = Y.unfolded), "animation" in Y && e(6, m = Y.animation), "mediaItemConfig" in Y && e(7, A = Y.mediaItemConfig), "enableCarousel" in Y && e(15, p = Y.enableCarousel), "autoplayConfig" in Y && e(16, g = Y.autoplayConfig);
|
|
23775
23779
|
}, n.$$.update = () => {
|
|
23776
23780
|
n.$$.dirty[0] & /*mediaInstanceList*/
|
|
23777
|
-
256 && e(9, i =
|
|
23781
|
+
256 && e(9, i = I.every((Y) => Y.paused)), n.$$.dirty[0] & /*enableCarousel, mediaData*/
|
|
23778
23782
|
32770 && e(13, s = p && (l == null ? void 0 : l.length) > 1), n.$$.dirty[0] & /*mediaData*/
|
|
23779
23783
|
2 && e(10, o = l), n.$$.dirty[0] & /*mediaDataList, paused*/
|
|
23780
23784
|
1536 && (r = o.length > 1 && y && i);
|
|
@@ -23787,18 +23791,18 @@ function CI(n, t, e) {
|
|
|
23787
23791
|
f,
|
|
23788
23792
|
m,
|
|
23789
23793
|
A,
|
|
23790
|
-
|
|
23794
|
+
I,
|
|
23791
23795
|
i,
|
|
23792
23796
|
o,
|
|
23793
23797
|
x,
|
|
23794
|
-
|
|
23798
|
+
C,
|
|
23795
23799
|
s,
|
|
23796
23800
|
G,
|
|
23797
23801
|
p,
|
|
23798
23802
|
g,
|
|
23799
23803
|
V,
|
|
23800
23804
|
H,
|
|
23801
|
-
|
|
23805
|
+
F,
|
|
23802
23806
|
N
|
|
23803
23807
|
];
|
|
23804
23808
|
}
|
|
@@ -24281,7 +24285,7 @@ function th(n) {
|
|
|
24281
24285
|
};
|
|
24282
24286
|
}
|
|
24283
24287
|
function xI(n) {
|
|
24284
|
-
var
|
|
24288
|
+
var I, x;
|
|
24285
24289
|
let t, e, i, s, o, r, a, l, c, d, h = (
|
|
24286
24290
|
/*data*/
|
|
24287
24291
|
n[3].title + ""
|
|
@@ -24304,7 +24308,7 @@ function xI(n) {
|
|
|
24304
24308
|
n[3].headerPictureUrl && Xd(n)
|
|
24305
24309
|
), y = (
|
|
24306
24310
|
/*primaryTags*/
|
|
24307
|
-
((
|
|
24311
|
+
((I = n[2].length) != null ? I : 0) + /*secondaryTags*/
|
|
24308
24312
|
((x = n[5].length) != null ? x : 0) > 0 && Zd(n)
|
|
24309
24313
|
), P = (
|
|
24310
24314
|
/*havePrice*/
|
|
@@ -24339,57 +24343,57 @@ function xI(n) {
|
|
|
24339
24343
|
n[8]
|
|
24340
24344
|
);
|
|
24341
24345
|
},
|
|
24342
|
-
m(
|
|
24343
|
-
O(
|
|
24346
|
+
m(C, B) {
|
|
24347
|
+
O(C, t, B), ee(e, t, null), S(t, i), S(t, s), S(t, o), S(t, r), b && b.m(r, null), S(r, a), S(r, l), S(l, c), S(c, d), S(d, f), S(r, m), y && y.m(r, null), S(r, A), P && P.m(r, null), g = !0;
|
|
24344
24348
|
},
|
|
24345
|
-
p(
|
|
24346
|
-
var G,
|
|
24349
|
+
p(C, [B]) {
|
|
24350
|
+
var G, W;
|
|
24347
24351
|
const Q = {};
|
|
24348
24352
|
B & /*unfolded*/
|
|
24349
24353
|
16 && (Q.visible = /*unfolded*/
|
|
24350
|
-
|
|
24354
|
+
C[4]), e.$set(Q), B & /*unfolded*/
|
|
24351
24355
|
16 && z(
|
|
24352
24356
|
s,
|
|
24353
24357
|
"transition-delay",
|
|
24354
24358
|
/*unfolded*/
|
|
24355
|
-
|
|
24359
|
+
C[4] ? eo + "ms" : to + nh - ih - 40 + "ms"
|
|
24356
24360
|
), /*data*/
|
|
24357
|
-
|
|
24361
|
+
C[3].headerPictureUrl ? b ? b.p(C, B) : (b = Xd(C), b.c(), b.m(r, a)) : b && (b.d(1), b = null), (!g || B & /*data*/
|
|
24358
24362
|
8) && h !== (h = /*data*/
|
|
24359
|
-
|
|
24360
|
-
((G =
|
|
24361
|
-
((
|
|
24362
|
-
|
|
24363
|
-
|
|
24363
|
+
C[3].title + "") && xe(f, h), /*primaryTags*/
|
|
24364
|
+
((G = C[2].length) != null ? G : 0) + /*secondaryTags*/
|
|
24365
|
+
((W = C[5].length) != null ? W : 0) > 0 ? y ? y.p(C, B) : (y = Zd(C), y.c(), y.m(r, A)) : y && (y.d(1), y = null), /*havePrice*/
|
|
24366
|
+
C[7] || /*data*/
|
|
24367
|
+
C[3].highlightText ? P ? P.p(C, B) : (P = Kd(C), P.c(), P.m(r, null)) : P && (P.d(1), P = null), B & /*unfolded*/
|
|
24364
24368
|
16 && z(
|
|
24365
24369
|
r,
|
|
24366
24370
|
"transition-delay",
|
|
24367
24371
|
/*unfolded*/
|
|
24368
|
-
|
|
24372
|
+
C[4] ? eo + to + "ms" : "0ms"
|
|
24369
24373
|
), (!g || B & /*theme*/
|
|
24370
24374
|
64 && p !== (p = Ve(`marketing ${/*theme*/
|
|
24371
|
-
|
|
24375
|
+
C[6]}`) + " svelte-sezqcq")) && w(t, "class", p), (!g || B & /*theme, unfolded*/
|
|
24372
24376
|
80) && K(
|
|
24373
24377
|
t,
|
|
24374
24378
|
"unfolded",
|
|
24375
24379
|
/*unfolded*/
|
|
24376
|
-
|
|
24380
|
+
C[4]
|
|
24377
24381
|
), (!g || B & /*theme, folded*/
|
|
24378
24382
|
320) && K(
|
|
24379
24383
|
t,
|
|
24380
24384
|
"folded",
|
|
24381
24385
|
/*folded*/
|
|
24382
|
-
|
|
24386
|
+
C[8]
|
|
24383
24387
|
);
|
|
24384
24388
|
},
|
|
24385
|
-
i(
|
|
24386
|
-
g || (M(e.$$.fragment,
|
|
24389
|
+
i(C) {
|
|
24390
|
+
g || (M(e.$$.fragment, C), g = !0);
|
|
24387
24391
|
},
|
|
24388
|
-
o(
|
|
24389
|
-
T(e.$$.fragment,
|
|
24392
|
+
o(C) {
|
|
24393
|
+
T(e.$$.fragment, C), g = !1;
|
|
24390
24394
|
},
|
|
24391
|
-
d(
|
|
24392
|
-
|
|
24395
|
+
d(C) {
|
|
24396
|
+
C && j(t), te(e), b && b.d(), y && y.d(), P && P.d();
|
|
24393
24397
|
}
|
|
24394
24398
|
};
|
|
24395
24399
|
}
|
|
@@ -24409,7 +24413,7 @@ function DI(n, t, e) {
|
|
|
24409
24413
|
return n.$$set = (p) => {
|
|
24410
24414
|
"tag" in p && e(0, h = p.tag);
|
|
24411
24415
|
}, n.$$.update = () => {
|
|
24412
|
-
var p, g, b, y, P,
|
|
24416
|
+
var p, g, b, y, P, I;
|
|
24413
24417
|
n.$$.dirty & /*tag*/
|
|
24414
24418
|
1 && e(4, i = (g = (p = h.state) == null ? void 0 : p.unfolded) != null ? g : !1), n.$$.dirty & /*unfolded*/
|
|
24415
24419
|
16 && e(8, s = !i), n.$$.dirty & /*tag*/
|
|
@@ -24418,7 +24422,7 @@ function DI(n, t, e) {
|
|
|
24418
24422
|
1 && e(6, a = h.data.theme || "light"), n.$$.dirty & /*tagsOffsetHeight, maxTagsLength*/
|
|
24419
24423
|
1026 && f > 40 && e(10, l = l - 1), n.$$.dirty & /*data, maxTagsLength*/
|
|
24420
24424
|
1032 && e(2, c = ((P = o.brandTags) == null ? void 0 : P.slice(0, l).filter(Boolean)) || []), n.$$.dirty & /*data, maxTagsLength, primaryTags*/
|
|
24421
|
-
1036 && e(5, d = ((
|
|
24425
|
+
1036 && e(5, d = ((I = o.tags) == null ? void 0 : I.slice(0, l - c.length).filter(Boolean)) || []);
|
|
24422
24426
|
}, e(10, l = (m - 20) / sl), [
|
|
24423
24427
|
h,
|
|
24424
24428
|
f,
|
|
@@ -24458,7 +24462,7 @@ class TI extends Audio {
|
|
|
24458
24462
|
return this.sharedAudioCurrentTime;
|
|
24459
24463
|
}
|
|
24460
24464
|
play() {
|
|
24461
|
-
return
|
|
24465
|
+
return _(this, null, function* () {
|
|
24462
24466
|
var i, s, o;
|
|
24463
24467
|
if (this.tryplaying)
|
|
24464
24468
|
return;
|
|
@@ -24939,12 +24943,12 @@ function oh(n) {
|
|
|
24939
24943
|
},
|
|
24940
24944
|
p(y, P) {
|
|
24941
24945
|
var B, Q;
|
|
24942
|
-
const
|
|
24946
|
+
const I = {};
|
|
24943
24947
|
P & /*unfolded*/
|
|
24944
|
-
64 && (
|
|
24948
|
+
64 && (I.visible = /*unfolded*/
|
|
24945
24949
|
y[6]), P & /*contentWidth*/
|
|
24946
|
-
8 && (
|
|
24947
|
-
y[3] / 2 + "px"), e.$set(
|
|
24950
|
+
8 && (I.left = /*contentWidth*/
|
|
24951
|
+
y[3] / 2 + "px"), e.$set(I), /*unfolded*/
|
|
24948
24952
|
y[6] ? p ? (p.p(y, P), P & /*unfolded*/
|
|
24949
24953
|
64 && M(p, 1)) : (p = rh(y), p.c(), M(p, 1), p.m(r, null)) : p && (ce(), T(p, 1, 1, () => {
|
|
24950
24954
|
p = null;
|
|
@@ -24957,18 +24961,18 @@ function oh(n) {
|
|
|
24957
24961
|
y[1]), P & /*content*/
|
|
24958
24962
|
32 && (x.content = /*content*/
|
|
24959
24963
|
y[5]), c.$set(x);
|
|
24960
|
-
const
|
|
24964
|
+
const C = {};
|
|
24961
24965
|
P & /*unfolded*/
|
|
24962
|
-
64 && (
|
|
24966
|
+
64 && (C.unfolded = /*unfolded*/
|
|
24963
24967
|
y[6]), P & /*contentWidth*/
|
|
24964
|
-
8 && (
|
|
24968
|
+
8 && (C.length = /*contentWidth*/
|
|
24965
24969
|
y[3]), P & /*foldTextDelay, content*/
|
|
24966
|
-
48 && (
|
|
24970
|
+
48 && (C.outDelay = /*foldTextDelay*/
|
|
24967
24971
|
y[4] + 20 * Math.min(
|
|
24968
24972
|
/*content*/
|
|
24969
24973
|
(Q = (B = y[5]) == null ? void 0 : B.length) != null ? Q : 10,
|
|
24970
24974
|
15
|
|
24971
|
-
)), h.$set(
|
|
24975
|
+
)), h.$set(C), (!f || P & /*unfolded*/
|
|
24972
24976
|
64) && K(
|
|
24973
24977
|
t,
|
|
24974
24978
|
"unfolded",
|
|
@@ -25695,7 +25699,7 @@ class nP extends re {
|
|
|
25695
25699
|
}
|
|
25696
25700
|
}
|
|
25697
25701
|
function yf(n) {
|
|
25698
|
-
return
|
|
25702
|
+
return _(this, null, function* () {
|
|
25699
25703
|
return new Promise((t, e) => {
|
|
25700
25704
|
if (!n) {
|
|
25701
25705
|
e(Error("url is empty"));
|
|
@@ -25707,7 +25711,7 @@ function yf(n) {
|
|
|
25707
25711
|
});
|
|
25708
25712
|
}
|
|
25709
25713
|
function sP(n) {
|
|
25710
|
-
return
|
|
25714
|
+
return _(this, null, function* () {
|
|
25711
25715
|
const { url: t, ratio: e = 3 } = n;
|
|
25712
25716
|
n.ratio || console.warn("Tag icon ratio is not set, default is 3");
|
|
25713
25717
|
const { width: i, height: s } = yield yf(t);
|
|
@@ -25718,7 +25722,7 @@ function sP(n) {
|
|
|
25718
25722
|
});
|
|
25719
25723
|
}
|
|
25720
25724
|
function oP(n) {
|
|
25721
|
-
return
|
|
25725
|
+
return _(this, null, function* () {
|
|
25722
25726
|
const { steps: t, url: e, ratio: i = 3, fps: s = 24 } = n;
|
|
25723
25727
|
if (!t)
|
|
25724
25728
|
throw new Error("KeyframeIcon requires steps");
|
|
@@ -25930,7 +25934,7 @@ function lP(n) {
|
|
|
25930
25934
|
};
|
|
25931
25935
|
}
|
|
25932
25936
|
function cP(n) {
|
|
25933
|
-
return { c:
|
|
25937
|
+
return { c: J, m: J, p: J, d: J };
|
|
25934
25938
|
}
|
|
25935
25939
|
function dP(n) {
|
|
25936
25940
|
ch(n);
|
|
@@ -25981,10 +25985,10 @@ function dP(n) {
|
|
|
25981
25985
|
};
|
|
25982
25986
|
}
|
|
25983
25987
|
function hP(n) {
|
|
25984
|
-
return { c:
|
|
25988
|
+
return { c: J, m: J, p: J, d: J };
|
|
25985
25989
|
}
|
|
25986
25990
|
function uP(n) {
|
|
25987
|
-
return { c:
|
|
25991
|
+
return { c: J, m: J, p: J, d: J };
|
|
25988
25992
|
}
|
|
25989
25993
|
function fP(n) {
|
|
25990
25994
|
dh(n);
|
|
@@ -26092,7 +26096,7 @@ function fP(n) {
|
|
|
26092
26096
|
};
|
|
26093
26097
|
}
|
|
26094
26098
|
function mP(n) {
|
|
26095
|
-
return { c:
|
|
26099
|
+
return { c: J, m: J, p: J, d: J };
|
|
26096
26100
|
}
|
|
26097
26101
|
function gP(n) {
|
|
26098
26102
|
let t, e, i = (
|
|
@@ -26132,17 +26136,17 @@ function pP(n, t, e) {
|
|
|
26132
26136
|
let i, s, o, r, a, l, c, d, h, { width: f = null } = t, { icon: m = null } = t, { shadow: A = !1 } = t;
|
|
26133
26137
|
const p = Lo();
|
|
26134
26138
|
function g(P) {
|
|
26135
|
-
return
|
|
26136
|
-
const
|
|
26137
|
-
return p("iconLoaded",
|
|
26139
|
+
return _(this, null, function* () {
|
|
26140
|
+
const I = yield oP(P);
|
|
26141
|
+
return p("iconLoaded", I), I;
|
|
26138
26142
|
});
|
|
26139
26143
|
}
|
|
26140
26144
|
function b(P) {
|
|
26141
|
-
return
|
|
26145
|
+
return _(this, null, function* () {
|
|
26142
26146
|
if (typeof h == "number")
|
|
26143
26147
|
return fe(R({}, P), { width: h });
|
|
26144
|
-
const
|
|
26145
|
-
return p("iconLoaded",
|
|
26148
|
+
const I = yield sP(P);
|
|
26149
|
+
return p("iconLoaded", I), I;
|
|
26146
26150
|
});
|
|
26147
26151
|
}
|
|
26148
26152
|
function y() {
|
|
@@ -26153,13 +26157,13 @@ function pP(n, t, e) {
|
|
|
26153
26157
|
}), n.$$set = (P) => {
|
|
26154
26158
|
"width" in P && e(1, f = P.width), "icon" in P && e(12, m = P.icon), "shadow" in P && e(0, A = P.shadow);
|
|
26155
26159
|
}, n.$$.update = () => {
|
|
26156
|
-
var P,
|
|
26160
|
+
var P, I;
|
|
26157
26161
|
n.$$.dirty & /*icon*/
|
|
26158
26162
|
4096 && e(7, i = m == null ? void 0 : m.url), n.$$.dirty & /*icon*/
|
|
26159
26163
|
4096 && e(2, s = (P = m == null ? void 0 : m.steps) != null ? P : 1), n.$$.dirty & /*icon*/
|
|
26160
26164
|
4096 && e(6, o = m == null ? void 0 : m.fps), n.$$.dirty & /*icon*/
|
|
26161
26165
|
4096 && e(5, r = m == null ? void 0 : m.ratio), n.$$.dirty & /*icon*/
|
|
26162
|
-
4096 && e(4, a = (
|
|
26166
|
+
4096 && e(4, a = (I = m == null ? void 0 : m.scale) != null ? I : 1), n.$$.dirty & /*icon*/
|
|
26163
26167
|
4096 && e(3, l = m == null ? void 0 : m.width), n.$$.dirty & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
|
|
26164
26168
|
252 && e(9, c = Ge({
|
|
26165
26169
|
url: i,
|
|
@@ -26441,7 +26445,7 @@ function kP(n) {
|
|
|
26441
26445
|
s
|
|
26442
26446
|
), O(i, e, s);
|
|
26443
26447
|
},
|
|
26444
|
-
p:
|
|
26448
|
+
p: J,
|
|
26445
26449
|
d(i) {
|
|
26446
26450
|
i && j(e), i && t.d();
|
|
26447
26451
|
}
|
|
@@ -26472,8 +26476,8 @@ function MP(n) {
|
|
|
26472
26476
|
i[1]
|
|
26473
26477
|
);
|
|
26474
26478
|
},
|
|
26475
|
-
i:
|
|
26476
|
-
o:
|
|
26479
|
+
i: J,
|
|
26480
|
+
o: J,
|
|
26477
26481
|
d(i) {
|
|
26478
26482
|
i && j(t), e && e.d(), n[5](null);
|
|
26479
26483
|
}
|
|
@@ -26524,8 +26528,8 @@ function TP(n) {
|
|
|
26524
26528
|
2 && e !== (e = /*tag*/
|
|
26525
26529
|
i[1].id) && w(t, "data-id", e);
|
|
26526
26530
|
},
|
|
26527
|
-
i:
|
|
26528
|
-
o:
|
|
26531
|
+
i: J,
|
|
26532
|
+
o: J,
|
|
26529
26533
|
d(i) {
|
|
26530
26534
|
i && j(t);
|
|
26531
26535
|
}
|
|
@@ -26542,14 +26546,14 @@ function LP(n) {
|
|
|
26542
26546
|
OP,
|
|
26543
26547
|
zP
|
|
26544
26548
|
], P = [];
|
|
26545
|
-
function
|
|
26546
|
-
return
|
|
26547
|
-
18 && (s = null),
|
|
26548
|
-
18 && (o = null),
|
|
26549
|
-
18 && (r = null),
|
|
26550
|
-
18 && (a = null),
|
|
26551
|
-
18 && (l = null),
|
|
26552
|
-
18 && (c = null),
|
|
26549
|
+
function I(x, C) {
|
|
26550
|
+
return C & /*tag, contentTypeMap*/
|
|
26551
|
+
18 && (s = null), C & /*tag, contentTypeMap*/
|
|
26552
|
+
18 && (o = null), C & /*tag, contentTypeMap*/
|
|
26553
|
+
18 && (r = null), C & /*tag, contentTypeMap*/
|
|
26554
|
+
18 && (a = null), C & /*tag, contentTypeMap*/
|
|
26555
|
+
18 && (l = null), C & /*tag, contentTypeMap*/
|
|
26556
|
+
18 && (c = null), C & /*tag, contentTypeMap*/
|
|
26553
26557
|
18 && (d = null), s == null && (s = !!(["Text"].includes(
|
|
26554
26558
|
/*tag*/
|
|
26555
26559
|
x[1].contentType
|
|
@@ -26615,7 +26619,7 @@ function LP(n) {
|
|
|
26615
26619
|
)
|
|
26616
26620
|
))), d ? 6 : -1))))));
|
|
26617
26621
|
}
|
|
26618
|
-
return ~(h =
|
|
26622
|
+
return ~(h = I(n, -1)) && (f = P[h] = y[h](n)), {
|
|
26619
26623
|
c() {
|
|
26620
26624
|
var x;
|
|
26621
26625
|
t = D("div"), e = D("div"), i = D("div"), f && f.c(), w(i, "class", "content svelte-qz1wo5"), K(
|
|
@@ -26662,62 +26666,62 @@ function LP(n) {
|
|
|
26662
26666
|
n[1].contentType === "MediaModel" ? "100%" : 0
|
|
26663
26667
|
);
|
|
26664
26668
|
},
|
|
26665
|
-
m(x,
|
|
26666
|
-
O(x, t,
|
|
26669
|
+
m(x, C) {
|
|
26670
|
+
O(x, t, C), S(t, e), S(e, i), ~h && P[h].m(i, null), p = !0, g || (b = be(t, "click", au(
|
|
26667
26671
|
/*click_handler_1*/
|
|
26668
26672
|
n[16]
|
|
26669
26673
|
)), g = !0);
|
|
26670
26674
|
},
|
|
26671
|
-
p(x,
|
|
26675
|
+
p(x, C) {
|
|
26672
26676
|
var Q;
|
|
26673
26677
|
let B = h;
|
|
26674
|
-
h =
|
|
26678
|
+
h = I(x, C), h === B ? ~h && P[h].p(x, C) : (f && (ce(), T(P[B], 1, 1, () => {
|
|
26675
26679
|
P[B] = null;
|
|
26676
|
-
}), de()), ~h ? (f = P[h], f ? f.p(x,
|
|
26680
|
+
}), de()), ~h ? (f = P[h], f ? f.p(x, C) : (f = P[h] = y[h](x), f.c()), M(f, 1), f.m(i, null)) : f = null), (!p || C & /*tag*/
|
|
26677
26681
|
2) && K(
|
|
26678
26682
|
i,
|
|
26679
26683
|
"unfolded",
|
|
26680
26684
|
/*tag*/
|
|
26681
26685
|
(Q = x[1].state) == null ? void 0 : Q.unfolded
|
|
26682
|
-
), (!p ||
|
|
26686
|
+
), (!p || C & /*tag*/
|
|
26683
26687
|
2 && m !== (m = Ve(lt(
|
|
26684
26688
|
"content__container",
|
|
26685
26689
|
/*tag*/
|
|
26686
26690
|
x[1].className
|
|
26687
|
-
)) + " svelte-qz1wo5")) && w(t, "class", m), (!p ||
|
|
26691
|
+
)) + " svelte-qz1wo5")) && w(t, "class", m), (!p || C & /*tag*/
|
|
26688
26692
|
2 && A !== (A = /*tag*/
|
|
26689
|
-
x[1].id)) && w(t, "data-id", A), (!p ||
|
|
26693
|
+
x[1].id)) && w(t, "data-id", A), (!p || C & /*tag, tag*/
|
|
26690
26694
|
2) && K(
|
|
26691
26695
|
t,
|
|
26692
26696
|
"disable",
|
|
26693
26697
|
/*tag*/
|
|
26694
26698
|
x[1].enabled === !1
|
|
26695
|
-
), (!p ||
|
|
26699
|
+
), (!p || C & /*tag, isHide*/
|
|
26696
26700
|
66) && K(
|
|
26697
26701
|
t,
|
|
26698
26702
|
"hide",
|
|
26699
26703
|
/*isHide*/
|
|
26700
26704
|
x[6]
|
|
26701
|
-
), (!p ||
|
|
26705
|
+
), (!p || C & /*tag, withAnimation*/
|
|
26702
26706
|
3) && K(
|
|
26703
26707
|
t,
|
|
26704
26708
|
"withAnimation",
|
|
26705
26709
|
/*withAnimation*/
|
|
26706
26710
|
x[0]
|
|
26707
|
-
), (!p ||
|
|
26711
|
+
), (!p || C & /*tag, tag*/
|
|
26708
26712
|
2) && K(
|
|
26709
26713
|
t,
|
|
26710
26714
|
"unClickable",
|
|
26711
26715
|
/*tag*/
|
|
26712
26716
|
x[1].config.clickable === !1
|
|
26713
|
-
),
|
|
26717
|
+
), C & /*tag*/
|
|
26714
26718
|
2 && z(
|
|
26715
26719
|
t,
|
|
26716
26720
|
"width",
|
|
26717
26721
|
/*tag*/
|
|
26718
26722
|
x[1].stickType === "Plane" || /*tag*/
|
|
26719
26723
|
x[1].contentType === "MediaModel" ? "100%" : 0
|
|
26720
|
-
),
|
|
26724
|
+
), C & /*tag*/
|
|
26721
26725
|
2 && z(
|
|
26722
26726
|
t,
|
|
26723
26727
|
"height",
|
|
@@ -27095,22 +27099,22 @@ function FP(n, t, e) {
|
|
|
27095
27099
|
let i, s, o, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: h } = t, { rendererMap: f = /* @__PURE__ */ new Map() } = t, { contentTypeMap: m = /* @__PURE__ */ new Map() } = t, { state: A } = t, { mediaStore: p } = t, { temporaryState: g } = t;
|
|
27096
27100
|
oa("hooks", h), oa("mediaStore", p);
|
|
27097
27101
|
let b, y;
|
|
27098
|
-
function P(
|
|
27099
|
-
|
|
27102
|
+
function P(C) {
|
|
27103
|
+
C ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
|
|
27100
27104
|
}
|
|
27101
|
-
const
|
|
27102
|
-
return n.$$set = (
|
|
27103
|
-
"withAnimation" in
|
|
27105
|
+
const I = (C) => h.emit("click", { event: C, target: "TagContent", tag: d }), x = (C) => h.emit("click", { event: C, target: "TagContent", tag: d });
|
|
27106
|
+
return n.$$set = (C) => {
|
|
27107
|
+
"withAnimation" in C && e(0, c = C.withAnimation), "tag" in C && e(1, d = C.tag), "hooks" in C && e(2, h = C.hooks), "rendererMap" in C && e(3, f = C.rendererMap), "contentTypeMap" in C && e(4, m = C.contentTypeMap), "state" in C && e(7, A = C.state), "mediaStore" in C && e(8, p = C.mediaStore), "temporaryState" in C && e(9, g = C.temporaryState);
|
|
27104
27108
|
}, n.$$.update = () => {
|
|
27105
|
-
var
|
|
27109
|
+
var C, B, Q, G, W, V, H, F, N, Y, X;
|
|
27106
27110
|
n.$$.dirty & /*tag*/
|
|
27107
|
-
2 && e(13, i = (
|
|
27111
|
+
2 && e(13, i = (C = d.state) == null ? void 0 : C.unfolded), n.$$.dirty & /*tag*/
|
|
27108
27112
|
2 && e(12, s = (B = d.state) == null ? void 0 : B.visible), n.$$.dirty & /*state, temporaryState, tag*/
|
|
27109
27113
|
642 && e(14, o = A.visible && g.visible && ((Q = d.state) == null ? void 0 : Q.visible)), n.$$.dirty & /*tag*/
|
|
27110
27114
|
2 && (r = d.id), n.$$.dirty & /*tag, state, temporaryState*/
|
|
27111
27115
|
642 && e(6, a = !HP(d, A, g)), n.$$.dirty & /*isVisible*/
|
|
27112
27116
|
16384 && P(o), n.$$.dirty & /*tag, unfolded, lastUnfoldedState, visible, lastVisibleState*/
|
|
27113
|
-
15362 && d.hooks && (i !== void 0 && i !== y && (e(11, y = i), i ? (
|
|
27117
|
+
15362 && d.hooks && (i !== void 0 && i !== y && (e(11, y = i), i ? (W = (G = d.hooks).emit) == null || W.call(G, "unfolded") : (H = d == null ? void 0 : (V = d.hooks).emit) == null || H.call(V, "folded")), s !== void 0 && s !== b && (e(10, b = s), s ? (N = (F = d.hooks).emit) == null || N.call(F, "show") : (X = (Y = d.hooks).emit) == null || X.call(Y, "hide"))), n.$$.dirty & /*tag*/
|
|
27114
27118
|
2 && e(5, l = (() => !(typeof d.config.unfoldedConfig == "object" && d.config.unfoldedConfig.keep === "folded"))());
|
|
27115
27119
|
}, [
|
|
27116
27120
|
c,
|
|
@@ -27128,7 +27132,7 @@ function FP(n, t, e) {
|
|
|
27128
27132
|
s,
|
|
27129
27133
|
i,
|
|
27130
27134
|
o,
|
|
27131
|
-
|
|
27135
|
+
I,
|
|
27132
27136
|
x
|
|
27133
27137
|
];
|
|
27134
27138
|
}
|
|
@@ -27295,20 +27299,20 @@ function YP(n, t, e) {
|
|
|
27295
27299
|
1 && e(3, s = !i), n.$$.dirty & /*tag*/
|
|
27296
27300
|
64 && e(2, o = (b = (g = l.style) == null ? void 0 : g.point) != null && b.url ? (y = l.style) == null ? void 0 : y.point : { url: jb }), n.$$.dirty & /*tag*/
|
|
27297
27301
|
64 && e(1, r = (() => {
|
|
27298
|
-
var x,
|
|
27299
|
-
const P = (
|
|
27302
|
+
var x, C, B, Q;
|
|
27303
|
+
const P = (C = (x = l.style) == null ? void 0 : x.point) == null ? void 0 : C.width;
|
|
27300
27304
|
if (typeof P == "number")
|
|
27301
27305
|
return P;
|
|
27302
|
-
const
|
|
27303
|
-
if (typeof
|
|
27304
|
-
return
|
|
27305
|
-
if (
|
|
27306
|
+
const I = (Q = (B = l.style) == null ? void 0 : B.point) == null ? void 0 : Q.size;
|
|
27307
|
+
if (typeof I == "number")
|
|
27308
|
+
return I;
|
|
27309
|
+
if (I === "S")
|
|
27306
27310
|
return 18;
|
|
27307
|
-
if (
|
|
27311
|
+
if (I === "M")
|
|
27308
27312
|
return 20;
|
|
27309
|
-
if (
|
|
27313
|
+
if (I === "L")
|
|
27310
27314
|
return 24;
|
|
27311
|
-
if (
|
|
27315
|
+
if (I === "XL")
|
|
27312
27316
|
return 28;
|
|
27313
27317
|
})());
|
|
27314
27318
|
}, h(), [
|
|
@@ -27410,9 +27414,9 @@ function ph(n) {
|
|
|
27410
27414
|
i = m(b), i === P ? f[i].p(b, y) : (ce(), T(f[P], 1, 1, () => {
|
|
27411
27415
|
f[P] = null;
|
|
27412
27416
|
}), de(), s = f[i], s ? s.p(b, y) : (s = f[i] = h[i](b), s.c()), M(s, 1), s.m(e, o));
|
|
27413
|
-
let
|
|
27414
|
-
r = g(b), r ===
|
|
27415
|
-
p[
|
|
27417
|
+
let I = r;
|
|
27418
|
+
r = g(b), r === I ? p[r].p(b, y) : (ce(), T(p[I], 1, 1, () => {
|
|
27419
|
+
p[I] = null;
|
|
27416
27420
|
}), de(), a = p[r], a ? a.p(b, y) : (a = p[r] = A[r](b), a.c()), M(a, 1), a.m(e, null)), (!d || y & /*tag*/
|
|
27417
27421
|
2 && l !== (l = Ve(lt(
|
|
27418
27422
|
"wrapper",
|
|
@@ -27497,9 +27501,9 @@ function ZP(n) {
|
|
|
27497
27501
|
m(e, i) {
|
|
27498
27502
|
O(e, t, i);
|
|
27499
27503
|
},
|
|
27500
|
-
p:
|
|
27501
|
-
i:
|
|
27502
|
-
o:
|
|
27504
|
+
p: J,
|
|
27505
|
+
i: J,
|
|
27506
|
+
o: J,
|
|
27503
27507
|
d(e) {
|
|
27504
27508
|
e && j(t);
|
|
27505
27509
|
}
|
|
@@ -27543,9 +27547,9 @@ function qP(n) {
|
|
|
27543
27547
|
m(e, i) {
|
|
27544
27548
|
O(e, t, i);
|
|
27545
27549
|
},
|
|
27546
|
-
p:
|
|
27547
|
-
i:
|
|
27548
|
-
o:
|
|
27550
|
+
p: J,
|
|
27551
|
+
i: J,
|
|
27552
|
+
o: J,
|
|
27549
27553
|
d(e) {
|
|
27550
27554
|
e && j(t);
|
|
27551
27555
|
}
|
|
@@ -27659,10 +27663,10 @@ function $P(n) {
|
|
|
27659
27663
|
function e2(n, t, e) {
|
|
27660
27664
|
let i, s, o, r, a, l, c, d, h, { withAnimation: f = !1 } = t, { tag: m } = t, { mediaStore: A } = t, { rendererMap: p = /* @__PURE__ */ new Map() } = t, { contentTypeMap: g = /* @__PURE__ */ new Map() } = t, { state: b } = t, { temporaryState: y } = t;
|
|
27661
27665
|
const P = mi("hooks");
|
|
27662
|
-
return n.$$set = (
|
|
27663
|
-
"withAnimation" in
|
|
27666
|
+
return n.$$set = (I) => {
|
|
27667
|
+
"withAnimation" in I && e(0, f = I.withAnimation), "tag" in I && e(1, m = I.tag), "mediaStore" in I && e(2, A = I.mediaStore), "rendererMap" in I && e(3, p = I.rendererMap), "contentTypeMap" in I && e(4, g = I.contentTypeMap), "state" in I && e(5, b = I.state), "temporaryState" in I && e(6, y = I.temporaryState);
|
|
27664
27668
|
}, n.$$.update = () => {
|
|
27665
|
-
var
|
|
27669
|
+
var I, x, C;
|
|
27666
27670
|
n.$$.dirty & /*tag*/
|
|
27667
27671
|
2 && e(15, i = (() => {
|
|
27668
27672
|
var B, Q;
|
|
@@ -27671,8 +27675,8 @@ function e2(n, t, e) {
|
|
|
27671
27675
|
2 && e(14, s = (() => m.stickType === "2DPoint")()), n.$$.dirty & /*tag*/
|
|
27672
27676
|
2 && e(13, o = m.id), n.$$.dirty & /*tag*/
|
|
27673
27677
|
2 && e(12, r = m.enabled === !1 || !m.state), n.$$.dirty & /*tag*/
|
|
27674
|
-
2 && e(11, a = !((
|
|
27675
|
-
2 && e(10, l = (
|
|
27678
|
+
2 && e(11, a = !((I = m.state) != null && I.visible) || ((x = m.temporaryState) == null ? void 0 : x.visible) === !1 || !m.screenPosition), n.$$.dirty & /*tag*/
|
|
27679
|
+
2 && e(10, l = (C = m.state) == null ? void 0 : C.unfolded), n.$$.dirty & /*tag*/
|
|
27676
27680
|
2 && e(7, c = m.screenPosition), n.$$.dirty & /*screenPosition*/
|
|
27677
27681
|
128 && e(9, d = (c == null ? void 0 : c.leftPercent) + "%"), n.$$.dirty & /*screenPosition*/
|
|
27678
27682
|
128 && e(8, h = (c == null ? void 0 : c.topPercent) + "%");
|
|
@@ -27945,9 +27949,9 @@ const l2 = /* @__PURE__ */ new Map(), c2 = /* @__PURE__ */ new Map();
|
|
|
27945
27949
|
class d2 extends oy {
|
|
27946
27950
|
constructor(e) {
|
|
27947
27951
|
super(e);
|
|
27948
|
-
u(this, "group", new un());
|
|
27949
27952
|
u(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
27950
27953
|
u(this, "contentTypeMap", /* @__PURE__ */ new Map());
|
|
27954
|
+
u(this, "group", new un());
|
|
27951
27955
|
u(this, "imagePlaneGroup", new un());
|
|
27952
27956
|
u(this, "gltfObjectGroup", new un());
|
|
27953
27957
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
@@ -27957,7 +27961,7 @@ class d2 extends oy {
|
|
|
27957
27961
|
/** 点标签 */
|
|
27958
27962
|
u(this, "TagContainerSvelte");
|
|
27959
27963
|
/** 加载外部模型 */
|
|
27960
|
-
u(this, "loadModel", (e) =>
|
|
27964
|
+
u(this, "loadModel", (e) => _(this, null, function* () {
|
|
27961
27965
|
var a;
|
|
27962
27966
|
const i = e.data.modelUrl;
|
|
27963
27967
|
if (!i)
|
|
@@ -28180,7 +28184,7 @@ class d2 extends oy {
|
|
|
28180
28184
|
}
|
|
28181
28185
|
/** 添加模型标签 */
|
|
28182
28186
|
addMediaModelTag(e) {
|
|
28183
|
-
return
|
|
28187
|
+
return _(this, null, function* () {
|
|
28184
28188
|
const i = e.filter(z1).map((s) => this.loadModel(s));
|
|
28185
28189
|
yield Promise.all(i), this.setVisible(), this.updateRenderAllTags();
|
|
28186
28190
|
});
|
|
@@ -28273,7 +28277,7 @@ class d2 extends oy {
|
|
|
28273
28277
|
}
|
|
28274
28278
|
}
|
|
28275
28279
|
function h2(n) {
|
|
28276
|
-
return
|
|
28280
|
+
return _(this, null, function* () {
|
|
28277
28281
|
return new Promise((t) => {
|
|
28278
28282
|
u2(n) ? t() : n.once("modelLoaded", () => t());
|
|
28279
28283
|
});
|
|
@@ -28293,7 +28297,7 @@ class ba extends d2 {
|
|
|
28293
28297
|
/** debug */
|
|
28294
28298
|
u(this, "debug");
|
|
28295
28299
|
/** 更改 tag 模型 */
|
|
28296
|
-
u(this, "changeTagModel", (e, i) =>
|
|
28300
|
+
u(this, "changeTagModel", (e, i) => _(this, null, function* () {
|
|
28297
28301
|
e.data = Re({}, e.data, i), yield this.loadModel(e), this.updateRenderAllTags();
|
|
28298
28302
|
}));
|
|
28299
28303
|
u(this, "whyHide", (e) => {
|
|
@@ -28357,7 +28361,7 @@ class ba extends d2 {
|
|
|
28357
28361
|
u(this, "handleFiveCameraUpdate", () => {
|
|
28358
28362
|
this.updatePointTagPosition();
|
|
28359
28363
|
});
|
|
28360
|
-
u(this, "handleFivePanoArrived", () =>
|
|
28364
|
+
u(this, "handleFivePanoArrived", () => _(this, null, function* () {
|
|
28361
28365
|
this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
28362
28366
|
e.temporaryState = fe(R({}, e.temporaryState), { visible: !0 });
|
|
28363
28367
|
}), this.tags.filter(j1).filter((e) => {
|
|
@@ -28395,7 +28399,7 @@ class ba extends d2 {
|
|
|
28395
28399
|
* @description: 加载数据
|
|
28396
28400
|
*/
|
|
28397
28401
|
load(e, i) {
|
|
28398
|
-
return
|
|
28402
|
+
return _(this, null, function* () {
|
|
28399
28403
|
var o, r;
|
|
28400
28404
|
this.clearTags(), console.debug(If, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = Re({}, this.config, {
|
|
28401
28405
|
globalConfig: (o = e.globalConfig) != null ? o : {},
|
|
@@ -28415,35 +28419,36 @@ class ba extends d2 {
|
|
|
28415
28419
|
* @description: 添加标签
|
|
28416
28420
|
*/
|
|
28417
28421
|
addTag(e, i) {
|
|
28418
|
-
return
|
|
28422
|
+
return _(this, null, function* () {
|
|
28419
28423
|
const o = (Array.isArray(e) ? e : [e]).filter((r) => r.position).map((r) => {
|
|
28420
|
-
var
|
|
28421
|
-
const a =
|
|
28422
|
-
return r.config =
|
|
28423
|
-
enabled: (
|
|
28424
|
-
id: (
|
|
28425
|
-
data: (
|
|
28424
|
+
var f, m, A;
|
|
28425
|
+
const a = JSON.parse(JSON.stringify(r.data)), l = r.config ? JSON.parse(JSON.stringify(r.config)) : void 0, c = this.calculateTagConfig(r), d = this.getTagConfig(r);
|
|
28426
|
+
return r.config = d, fe(R({}, r), {
|
|
28427
|
+
enabled: (f = r.enabled) != null ? f : !0,
|
|
28428
|
+
id: (m = r.id) != null ? m : ct(),
|
|
28429
|
+
data: (A = d.initialData) != null && A.important ? Re(r.data, a, d.initialData) : Re(r.data, d.initialData, a),
|
|
28426
28430
|
state: R({
|
|
28427
28431
|
visible: void 0,
|
|
28428
28432
|
unfolded: !this.can("fold", r)
|
|
28429
|
-
},
|
|
28433
|
+
}, d.initialState),
|
|
28430
28434
|
hooks: new gt(),
|
|
28431
28435
|
originPosition: r.position,
|
|
28432
28436
|
position: (() => {
|
|
28433
|
-
const
|
|
28434
|
-
return Array.isArray(
|
|
28437
|
+
const p = this.getTransformedPostion(r.position);
|
|
28438
|
+
return Array.isArray(p) ? p.map((b) => b.toArray()) : p.toArray();
|
|
28435
28439
|
})(),
|
|
28436
|
-
initialConfig:
|
|
28437
|
-
|
|
28440
|
+
initialConfig: l,
|
|
28441
|
+
computedConfig: c,
|
|
28442
|
+
config: d,
|
|
28438
28443
|
unfold: () => this.changeUnfoldedById(r.id, !0),
|
|
28439
28444
|
fold: () => this.changeUnfoldedById(r.id, !1),
|
|
28440
28445
|
enable: () => this.changeEnabledById(r.id, !0),
|
|
28441
28446
|
disable: () => this.changeEnabledById(r.id, !1),
|
|
28442
28447
|
destroy: () => this.destroyTagById(r.id),
|
|
28443
|
-
changeData: (
|
|
28448
|
+
changeData: (p) => this.changeDataById(r.id, p)
|
|
28444
28449
|
});
|
|
28445
28450
|
});
|
|
28446
|
-
return o.forEach(G1), this.tags.push(...o), h2(this.five).then(() =>
|
|
28451
|
+
return o.forEach(G1), this.tags.push(...o), h2(this.five).then(() => _(this, null, function* () {
|
|
28447
28452
|
var r, a, l;
|
|
28448
28453
|
this.store.eventListenerDisposer && ((a = (r = this.store).eventListenerDisposer) == null || a.call(r)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(o), this.setVisibleAndUnfolded({ withAnimation: (l = i == null ? void 0 : i.withAnimation) != null ? l : !0 }), this.updatePointTagPosition(), this.updateRenderAllTags();
|
|
28449
28454
|
}));
|
|
@@ -28468,7 +28473,7 @@ class ba extends d2 {
|
|
|
28468
28473
|
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), s ? this.config.contentTypeConfig[e] = Re({}, this.config.contentTypeConfig[e], i) : this.config.contentTypeConfig[e] = i, this.updateTagConfig(), this.updateRenderAllTags();
|
|
28469
28474
|
}
|
|
28470
28475
|
show(e) {
|
|
28471
|
-
return
|
|
28476
|
+
return _(this, null, function* () {
|
|
28472
28477
|
if (this.checkDisposed())
|
|
28473
28478
|
return;
|
|
28474
28479
|
const { userAction: i = !0, withAnimation: s = !1 } = e != null ? e : {};
|
|
@@ -28476,7 +28481,7 @@ class ba extends d2 {
|
|
|
28476
28481
|
});
|
|
28477
28482
|
}
|
|
28478
28483
|
hide(e) {
|
|
28479
|
-
return
|
|
28484
|
+
return _(this, null, function* () {
|
|
28480
28485
|
if (this.checkDisposed())
|
|
28481
28486
|
return;
|
|
28482
28487
|
const { userAction: i = !0, withAnimation: s = !1 } = e != null ? e : {};
|
|
@@ -28570,7 +28575,7 @@ class ba extends d2 {
|
|
|
28570
28575
|
* @description: 设置 visible 和 unfolded
|
|
28571
28576
|
*/
|
|
28572
28577
|
setVisibleAndUnfolded() {
|
|
28573
|
-
return
|
|
28578
|
+
return _(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
28574
28579
|
return this.setVisible(), e ? new Promise((i) => {
|
|
28575
28580
|
setTimeout(() => {
|
|
28576
28581
|
this.setUnfoldedByPanoIndex(), i();
|
|
@@ -28793,8 +28798,8 @@ function m2(n) {
|
|
|
28793
28798
|
f[3]
|
|
28794
28799
|
);
|
|
28795
28800
|
},
|
|
28796
|
-
i:
|
|
28797
|
-
o:
|
|
28801
|
+
i: J,
|
|
28802
|
+
o: J,
|
|
28798
28803
|
d(f) {
|
|
28799
28804
|
f && j(t), d && d.d(), h && h.d();
|
|
28800
28805
|
}
|
|
@@ -29280,7 +29285,7 @@ function y2(n, t) {
|
|
|
29280
29285
|
const e = Ih(n), i = Ih(t);
|
|
29281
29286
|
return e.angleTo(i);
|
|
29282
29287
|
}
|
|
29283
|
-
const w2 = (n) =>
|
|
29288
|
+
const w2 = (n) => _(void 0, null, function* () {
|
|
29284
29289
|
try {
|
|
29285
29290
|
n().then(() => {
|
|
29286
29291
|
}, () => {
|
|
@@ -29355,7 +29360,7 @@ class No extends ri {
|
|
|
29355
29360
|
* @description Load Data and State
|
|
29356
29361
|
*/
|
|
29357
29362
|
load(e, i, s) {
|
|
29358
|
-
return
|
|
29363
|
+
return _(this, null, function* () {
|
|
29359
29364
|
var d, h, f, m, A, p;
|
|
29360
29365
|
if (this.state.disposed)
|
|
29361
29366
|
return Ph();
|
|
@@ -29372,12 +29377,12 @@ class No extends ri {
|
|
|
29372
29377
|
const b = (y = this.five.work.observers[g]) == null ? void 0 : y.floorIndex;
|
|
29373
29378
|
if (b !== void 0)
|
|
29374
29379
|
if (l === b) {
|
|
29375
|
-
const
|
|
29376
|
-
a[
|
|
29380
|
+
const I = a.length - 1;
|
|
29381
|
+
a[I] = [...(P = a[I]) != null ? P : [], g];
|
|
29377
29382
|
} else {
|
|
29378
29383
|
l = b;
|
|
29379
|
-
const
|
|
29380
|
-
a[
|
|
29384
|
+
const I = a.length;
|
|
29385
|
+
a[I] = [g];
|
|
29381
29386
|
}
|
|
29382
29387
|
}), !this.GuideLine && ((A = this.config) == null ? void 0 : A.useGuideLine) !== !1 && r.useGuildLine !== !1 && (this.GuideLine = S2(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: a.map((g) => ({ panoIndexList: g })), config: r.guildPluginOptions }), i ? this.setState(i, { userAction: s }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug(`${Go} loaded`, r), this.hooks.emit("dataLoaded", r);
|
|
29383
29388
|
});
|
|
@@ -29413,7 +29418,7 @@ class No extends ri {
|
|
|
29413
29418
|
* @description Show guide line
|
|
29414
29419
|
*/
|
|
29415
29420
|
show(e) {
|
|
29416
|
-
return
|
|
29421
|
+
return _(this, null, function* () {
|
|
29417
29422
|
this.setState({ visible: !0 }, e);
|
|
29418
29423
|
});
|
|
29419
29424
|
}
|
|
@@ -29421,7 +29426,7 @@ class No extends ri {
|
|
|
29421
29426
|
* @description Hide guide line
|
|
29422
29427
|
*/
|
|
29423
29428
|
hide(e) {
|
|
29424
|
-
return
|
|
29429
|
+
return _(this, null, function* () {
|
|
29425
29430
|
this.setState({ visible: !1 }, e);
|
|
29426
29431
|
});
|
|
29427
29432
|
}
|
|
@@ -29459,7 +29464,7 @@ class No extends ri {
|
|
|
29459
29464
|
* @description Format data
|
|
29460
29465
|
*/
|
|
29461
29466
|
formatData(e) {
|
|
29462
|
-
return
|
|
29467
|
+
return _(this, null, function* () {
|
|
29463
29468
|
this.five.work || (yield this.waitFiveLoaded());
|
|
29464
29469
|
const i = this.five.work.observers, s = (() => {
|
|
29465
29470
|
const o = e;
|
|
@@ -29480,7 +29485,7 @@ class No extends ri {
|
|
|
29480
29485
|
return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, s.panoIndexList.forEach((c, d) => {
|
|
29481
29486
|
const h = (() => {
|
|
29482
29487
|
var g, b, y, P;
|
|
29483
|
-
const f = s.panoIndexList.slice(d).find((
|
|
29488
|
+
const f = s.panoIndexList.slice(d).find((I) => I !== c);
|
|
29484
29489
|
if (f === void 0)
|
|
29485
29490
|
return;
|
|
29486
29491
|
const m = (g = i[c]) == null ? void 0 : g.position, A = (b = i[f]) == null ? void 0 : b.position;
|
|
@@ -29527,7 +29532,7 @@ class No extends ri {
|
|
|
29527
29532
|
*/
|
|
29528
29533
|
// eslint-disable-next-line complexity
|
|
29529
29534
|
handlePlay(e) {
|
|
29530
|
-
return
|
|
29535
|
+
return _(this, null, function* () {
|
|
29531
29536
|
var m;
|
|
29532
29537
|
const { data: i, state: s, privateState: o, hooks: r } = this;
|
|
29533
29538
|
if (o.playing || !(i != null && i.keyframes) || (i == null ? void 0 : i.keyframes.length) === 0)
|
|
@@ -29537,7 +29542,7 @@ class No extends ri {
|
|
|
29537
29542
|
const l = i.keyframes, c = this.getPauseData();
|
|
29538
29543
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (m = e == null ? void 0 : e.userAction) != null ? m : !0 });
|
|
29539
29544
|
let d = !1;
|
|
29540
|
-
const f = yield (() =>
|
|
29545
|
+
const f = yield (() => _(this, null, function* () {
|
|
29541
29546
|
var A, p;
|
|
29542
29547
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
29543
29548
|
return e.playFromIndex;
|
|
@@ -29587,7 +29592,7 @@ class No extends ri {
|
|
|
29587
29592
|
* @description Play single keyframe
|
|
29588
29593
|
*/
|
|
29589
29594
|
playKeyframe(e, i) {
|
|
29590
|
-
return
|
|
29595
|
+
return _(this, null, function* () {
|
|
29591
29596
|
var o;
|
|
29592
29597
|
const { privateState: s } = this;
|
|
29593
29598
|
return ((o = this.privateState.currentPlayKeyframe) == null ? void 0 : o.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), s.currentPlayQueue.push(this.getPlayPromise(e, i)), this.actionPromiseQueue();
|
|
@@ -29610,7 +29615,7 @@ class No extends ri {
|
|
|
29610
29615
|
* @description: getPlayPromise
|
|
29611
29616
|
*/
|
|
29612
29617
|
getPlayPromise(s) {
|
|
29613
|
-
return
|
|
29618
|
+
return _(this, arguments, function* (e, i = {}) {
|
|
29614
29619
|
var r;
|
|
29615
29620
|
const o = e.data;
|
|
29616
29621
|
if (i.duration = (r = i.duration) != null ? r : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!o)
|
|
@@ -29645,7 +29650,7 @@ class No extends ri {
|
|
|
29645
29650
|
* @description Action promise queue in sequence
|
|
29646
29651
|
*/
|
|
29647
29652
|
actionPromiseQueue() {
|
|
29648
|
-
return
|
|
29653
|
+
return _(this, null, function* () {
|
|
29649
29654
|
const { privateState: e } = this;
|
|
29650
29655
|
return new Promise((i, s) => {
|
|
29651
29656
|
if (e.currentPlayQueue.length === 0) {
|
|
@@ -29665,7 +29670,7 @@ class No extends ri {
|
|
|
29665
29670
|
* @description Action move keyframe
|
|
29666
29671
|
*/
|
|
29667
29672
|
move(e, i) {
|
|
29668
|
-
return
|
|
29673
|
+
return _(this, null, function* () {
|
|
29669
29674
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
29670
29675
|
yield this.changeMode(e);
|
|
29671
29676
|
else if (e.panoIndex !== this.five.panoIndex)
|
|
@@ -29678,7 +29683,7 @@ class No extends ri {
|
|
|
29678
29683
|
* @description Action rotate keyframe
|
|
29679
29684
|
*/
|
|
29680
29685
|
rotate(e, i) {
|
|
29681
|
-
return
|
|
29686
|
+
return _(this, null, function* () {
|
|
29682
29687
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
29683
29688
|
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
29684
29689
|
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
@@ -29690,7 +29695,7 @@ class No extends ri {
|
|
|
29690
29695
|
* @description Update five camera
|
|
29691
29696
|
*/
|
|
29692
29697
|
updateCamera(s) {
|
|
29693
|
-
return
|
|
29698
|
+
return _(this, arguments, function* (e, i = {}) {
|
|
29694
29699
|
const { five: o, privateState: r, state: a } = this, l = (() => {
|
|
29695
29700
|
var m, A;
|
|
29696
29701
|
const h = (m = a.config) == null ? void 0 : m.speedConfig, f = (A = e.rotateSpeed) != null ? A : h == null ? void 0 : h.rotateSpeed;
|
|
@@ -29718,7 +29723,7 @@ class No extends ri {
|
|
|
29718
29723
|
* @description: Change five pano
|
|
29719
29724
|
*/
|
|
29720
29725
|
changePano(e, i) {
|
|
29721
|
-
return
|
|
29726
|
+
return _(this, null, function* () {
|
|
29722
29727
|
const { five: s, privateState: o, state: r } = this;
|
|
29723
29728
|
if (typeof e.panoIndex != "number" || e.panoIndex === s.panoIndex)
|
|
29724
29729
|
return;
|
|
@@ -29782,7 +29787,7 @@ class No extends ri {
|
|
|
29782
29787
|
* @description Change five mode
|
|
29783
29788
|
*/
|
|
29784
29789
|
changeMode(e, i) {
|
|
29785
|
-
return
|
|
29790
|
+
return _(this, null, function* () {
|
|
29786
29791
|
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, i), this.privateState.modeChanging = !1);
|
|
29787
29792
|
});
|
|
29788
29793
|
}
|
|
@@ -29841,7 +29846,7 @@ class No extends ri {
|
|
|
29841
29846
|
* @description: Wait for five work ready
|
|
29842
29847
|
*/
|
|
29843
29848
|
waitFiveLoaded() {
|
|
29844
|
-
return
|
|
29849
|
+
return _(this, null, function* () {
|
|
29845
29850
|
return new Promise((e) => {
|
|
29846
29851
|
if (this.five.work) {
|
|
29847
29852
|
e();
|
|
@@ -29907,7 +29912,7 @@ class kf {
|
|
|
29907
29912
|
this.panoramaItem.dispose(), this.modelItem.dispose();
|
|
29908
29913
|
}
|
|
29909
29914
|
walk(t) {
|
|
29910
|
-
return
|
|
29915
|
+
return _(this, null, function* () {
|
|
29911
29916
|
if (!this.panoramaItem.panoGroup)
|
|
29912
29917
|
return;
|
|
29913
29918
|
const e = R({ panoIndexList: this.panoramaItem.panoGroup }, t);
|
|
@@ -29919,7 +29924,7 @@ class kf {
|
|
|
29919
29924
|
}
|
|
29920
29925
|
}
|
|
29921
29926
|
function x2(n, t) {
|
|
29922
|
-
return
|
|
29927
|
+
return _(this, null, function* () {
|
|
29923
29928
|
if (t.panoIndexList.length === 0)
|
|
29924
29929
|
return;
|
|
29925
29930
|
const e = n.getCurrentState();
|
|
@@ -29986,7 +29991,7 @@ let D2 = class extends ri {
|
|
|
29986
29991
|
return this._disposed;
|
|
29987
29992
|
}
|
|
29988
29993
|
load(e, i, s = !0) {
|
|
29989
|
-
return
|
|
29994
|
+
return _(this, null, function* () {
|
|
29990
29995
|
var m, A, p, g, b, y, P;
|
|
29991
29996
|
if (this.disposed)
|
|
29992
29997
|
return;
|
|
@@ -29999,29 +30004,29 @@ let D2 = class extends ri {
|
|
|
29999
30004
|
width: (A = a == null ? void 0 : a.unitWidth) != null ? A : 0.6,
|
|
30000
30005
|
texture: { url: (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
|
|
30001
30006
|
}
|
|
30002
|
-
}, d = (b = (g = r.routes) == null ? void 0 : g.map((
|
|
30007
|
+
}, d = (b = (g = r.routes) == null ? void 0 : g.map((I) => {
|
|
30003
30008
|
var x;
|
|
30004
|
-
return Re({}, c, { id: (x =
|
|
30005
|
-
})) != null ? b : [], h = (P = (y = r.lines) == null ? void 0 : y.map((
|
|
30006
|
-
yield this.waitFiveLoaded(), this.clear(), f.forEach((
|
|
30007
|
-
this.addGuideLineItem(
|
|
30009
|
+
return Re({}, c, { id: (x = I.id) != null ? x : Date.now(), pano_group: I.panoIndexList });
|
|
30010
|
+
})) != null ? b : [], h = (P = (y = r.lines) == null ? void 0 : y.map((I) => Re({}, c, I))) != null ? P : [], f = [...d, ...h];
|
|
30011
|
+
yield this.waitFiveLoaded(), this.clear(), f.forEach((I) => {
|
|
30012
|
+
this.addGuideLineItem(I);
|
|
30008
30013
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", r), console.debug(`${Eh} loaded`, r);
|
|
30009
30014
|
});
|
|
30010
30015
|
}
|
|
30011
30016
|
formatData(e) {
|
|
30012
|
-
return
|
|
30017
|
+
return _(this, null, function* () {
|
|
30013
30018
|
return this.getDataWithoutVersion(e);
|
|
30014
30019
|
});
|
|
30015
30020
|
}
|
|
30016
30021
|
/** 展示插件 */
|
|
30017
30022
|
show(e) {
|
|
30018
|
-
return
|
|
30023
|
+
return _(this, null, function* () {
|
|
30019
30024
|
this.setState({ visible: !0 }, e);
|
|
30020
30025
|
});
|
|
30021
30026
|
}
|
|
30022
30027
|
/** 隐藏插件 */
|
|
30023
30028
|
hide(e) {
|
|
30024
|
-
return
|
|
30029
|
+
return _(this, null, function* () {
|
|
30025
30030
|
this.setState({ visible: !1 }, e);
|
|
30026
30031
|
});
|
|
30027
30032
|
}
|
|
@@ -30099,7 +30104,7 @@ let D2 = class extends ri {
|
|
|
30099
30104
|
* @description: Wait for five model ready
|
|
30100
30105
|
*/
|
|
30101
30106
|
waitFiveLoaded() {
|
|
30102
|
-
return
|
|
30107
|
+
return _(this, null, function* () {
|
|
30103
30108
|
return new Promise((e) => {
|
|
30104
30109
|
if (this.five.work) {
|
|
30105
30110
|
e();
|
|
@@ -31248,7 +31253,7 @@ class eE {
|
|
|
31248
31253
|
* @description Show guide line
|
|
31249
31254
|
*/
|
|
31250
31255
|
show(t) {
|
|
31251
|
-
return
|
|
31256
|
+
return _(this, null, function* () {
|
|
31252
31257
|
this.setState({ visible: !0 }, t);
|
|
31253
31258
|
});
|
|
31254
31259
|
}
|
|
@@ -31256,7 +31261,7 @@ class eE {
|
|
|
31256
31261
|
* @description Hide guide line
|
|
31257
31262
|
*/
|
|
31258
31263
|
hide(t) {
|
|
31259
|
-
return
|
|
31264
|
+
return _(this, null, function* () {
|
|
31260
31265
|
this.setState({ visible: !1 }, t);
|
|
31261
31266
|
});
|
|
31262
31267
|
}
|
|
@@ -31520,7 +31525,7 @@ class iE extends Cs {
|
|
|
31520
31525
|
this.scale(i);
|
|
31521
31526
|
}
|
|
31522
31527
|
scale(e) {
|
|
31523
|
-
var G,
|
|
31528
|
+
var G, W;
|
|
31524
31529
|
if (!this.startInfo)
|
|
31525
31530
|
return;
|
|
31526
31531
|
const i = this.originObject3D, { startPoint: s, plane: o } = this.startInfo, r = this.helperObject3D.cornerPositions;
|
|
@@ -31533,30 +31538,30 @@ class iE extends Cs {
|
|
|
31533
31538
|
const H = new ne(0, 0, 0);
|
|
31534
31539
|
if (!this.startInfo)
|
|
31535
31540
|
return H;
|
|
31536
|
-
const
|
|
31537
|
-
if (
|
|
31541
|
+
const F = (V === "ew" ? h : f).clone(), N = c.clone().projectOnVector(F), Y = a.clone().projectOnVector(F), X = l.clone().projectOnVector(F);
|
|
31542
|
+
if (Y.equals(N))
|
|
31538
31543
|
return H;
|
|
31539
31544
|
if (V === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
31540
|
-
const he = new ne().subVectors(
|
|
31545
|
+
const he = new ne().subVectors(Y, X), ae = he.x < 0 && F.x >= 0, Ce = he.y < 0 && F.y >= 0, Ie = he.z < 0 && F.z >= 0;
|
|
31541
31546
|
this.startInfo.dragPointInCenterBottom = ae || Ce || Ie;
|
|
31542
31547
|
}
|
|
31543
31548
|
if (V === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
31544
|
-
const he = new ne().subVectors(
|
|
31549
|
+
const he = new ne().subVectors(Y, X), ae = he.x < 0 && F.x >= 0, Ce = he.y < 0 && F.y >= 0, Ie = he.z < 0 && F.z >= 0;
|
|
31545
31550
|
this.startInfo.dragPointInCenterLeft = ae || Ce || Ie;
|
|
31546
31551
|
}
|
|
31547
|
-
const
|
|
31548
|
-
return $ > 0.3 ? (console.warn("offset.length() > 0.3, skipped", $), H) :
|
|
31552
|
+
const Z = new ne().subVectors(Y, N), $ = Z.length();
|
|
31553
|
+
return $ > 0.3 ? (console.warn("offset.length() > 0.3, skipped", $), H) : Z;
|
|
31549
31554
|
}, A = m("ew"), p = m("ns"), g = () => {
|
|
31550
31555
|
const V = A;
|
|
31551
|
-
this.helperObject3D.cornerPositions.forEach((H,
|
|
31556
|
+
this.helperObject3D.cornerPositions.forEach((H, F) => {
|
|
31552
31557
|
var N;
|
|
31553
|
-
(N = this.startInfo) != null && N.dragPointInCenterLeft ? (
|
|
31558
|
+
(N = this.startInfo) != null && N.dragPointInCenterLeft ? (F === 0 || F === 3) && H.add(V) : (F === 1 || F === 2) && H.add(V);
|
|
31554
31559
|
});
|
|
31555
31560
|
}, b = () => {
|
|
31556
31561
|
const V = p;
|
|
31557
|
-
this.helperObject3D.cornerPositions.forEach((H,
|
|
31562
|
+
this.helperObject3D.cornerPositions.forEach((H, F) => {
|
|
31558
31563
|
var N;
|
|
31559
|
-
(N = this.startInfo) != null && N.dragPointInCenterBottom ? (
|
|
31564
|
+
(N = this.startInfo) != null && N.dragPointInCenterBottom ? (F === 0 || F === 1) && H.add(V) : (F === 2 || F === 3) && H.add(V);
|
|
31560
31565
|
});
|
|
31561
31566
|
};
|
|
31562
31567
|
switch (d) {
|
|
@@ -31570,10 +31575,10 @@ class iE extends Cs {
|
|
|
31570
31575
|
case "nwse":
|
|
31571
31576
|
g(), b();
|
|
31572
31577
|
}
|
|
31573
|
-
const y = new ne().subVectors(r[1], r[0]).length() / h.length(), P = new ne().subVectors(r[3], r[0]).length() / f.length(),
|
|
31578
|
+
const y = new ne().subVectors(r[1], r[0]).length() / h.length(), P = new ne().subVectors(r[3], r[0]).length() / f.length(), I = new ne(y, P, 1), x = new E.Matrix4().scale(I);
|
|
31574
31579
|
i.isCSS3DObjectPlus ? i.applyScaleMatrix4(x) : i.scale.applyMatrix4(x), s.position.copy(a);
|
|
31575
|
-
const
|
|
31576
|
-
i.applyMatrix4(Q), (G = this.helperObject3D.css3DInstance) == null || G.css3DObject.applyMatrix4(Q), (
|
|
31580
|
+
const C = new ne().addVectors(r[0], r[2]).divideScalar(2), B = new ne().subVectors(C, l), Q = new E.Matrix4().setPosition(B);
|
|
31581
|
+
i.applyMatrix4(Q), (G = this.helperObject3D.css3DInstance) == null || G.css3DObject.applyMatrix4(Q), (W = this.helperObject3D.plane) == null || W.applyMatrix4(Q), this.hooks.emit("applyObjectScale", { matrix: x }), this.hooks.emit("applyObjectPosition", { matrix: Q }), this.render();
|
|
31577
31582
|
}
|
|
31578
31583
|
dragEnd() {
|
|
31579
31584
|
this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
|
|
@@ -31643,7 +31648,7 @@ class dE extends Vn {
|
|
|
31643
31648
|
* @description Show guide line
|
|
31644
31649
|
*/
|
|
31645
31650
|
show(e) {
|
|
31646
|
-
return
|
|
31651
|
+
return _(this, null, function* () {
|
|
31647
31652
|
this.setState({ visible: !0 }, e);
|
|
31648
31653
|
});
|
|
31649
31654
|
}
|
|
@@ -31651,7 +31656,7 @@ class dE extends Vn {
|
|
|
31651
31656
|
* @description Hide guide line
|
|
31652
31657
|
*/
|
|
31653
31658
|
hide(e) {
|
|
31654
|
-
return
|
|
31659
|
+
return _(this, null, function* () {
|
|
31655
31660
|
this.setState({ visible: !1 }, e);
|
|
31656
31661
|
});
|
|
31657
31662
|
}
|
|
@@ -32363,7 +32368,7 @@ class hn extends E.Mesh {
|
|
|
32363
32368
|
return e.wrapS = E.RepeatWrapping, e.wrapT = E.RepeatWrapping, e;
|
|
32364
32369
|
}
|
|
32365
32370
|
hide(e) {
|
|
32366
|
-
return
|
|
32371
|
+
return _(this, null, function* () {
|
|
32367
32372
|
var o;
|
|
32368
32373
|
(o = this.opacityAnime) == null || o.dispose();
|
|
32369
32374
|
const i = 0;
|
|
@@ -32378,7 +32383,7 @@ class hn extends E.Mesh {
|
|
|
32378
32383
|
});
|
|
32379
32384
|
}
|
|
32380
32385
|
show(e) {
|
|
32381
|
-
return
|
|
32386
|
+
return _(this, null, function* () {
|
|
32382
32387
|
var o;
|
|
32383
32388
|
(o = this.opacityAnime) == null || o.dispose();
|
|
32384
32389
|
const i = 1;
|
|
@@ -32537,10 +32542,10 @@ let SE = class extends ri {
|
|
|
32537
32542
|
*/
|
|
32538
32543
|
// eslint-disable-next-line max-params
|
|
32539
32544
|
load(e, i, s, o) {
|
|
32540
|
-
return
|
|
32545
|
+
return _(this, null, function* () {
|
|
32541
32546
|
const r = this.data;
|
|
32542
32547
|
this.data = yield this.formatData(e, o), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
|
|
32543
|
-
this.data.pipes.filter((a) => !!(a != null && a.texture)).map((h) =>
|
|
32548
|
+
this.data.pipes.filter((a) => !!(a != null && a.texture)).map((h) => _(this, [h], function* ({ id: a, texture: l, path: c, radius: d }) {
|
|
32544
32549
|
const f = yield this.loadPipeTexture(l), m = { id: a, path: c, textureURL: l, texture: f, geometryConfig: { radius: d } };
|
|
32545
32550
|
return new DE(m);
|
|
32546
32551
|
}))
|
|
@@ -32604,7 +32609,7 @@ let SE = class extends ri {
|
|
|
32604
32609
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
32605
32610
|
*/
|
|
32606
32611
|
show() {
|
|
32607
|
-
return
|
|
32612
|
+
return _(this, arguments, function* (e = {}) {
|
|
32608
32613
|
if (this.state.visible)
|
|
32609
32614
|
return;
|
|
32610
32615
|
const i = R({
|
|
@@ -32621,7 +32626,7 @@ let SE = class extends ri {
|
|
|
32621
32626
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
32622
32627
|
*/
|
|
32623
32628
|
hide() {
|
|
32624
|
-
return
|
|
32629
|
+
return _(this, arguments, function* (e = {}) {
|
|
32625
32630
|
if (this.state.visible === !1)
|
|
32626
32631
|
return;
|
|
32627
32632
|
const i = R({
|
|
@@ -32642,7 +32647,7 @@ let SE = class extends ri {
|
|
|
32642
32647
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
|
|
32643
32648
|
* */
|
|
32644
32649
|
switchPipelines(e) {
|
|
32645
|
-
return
|
|
32650
|
+
return _(this, null, function* () {
|
|
32646
32651
|
var c, d, h, f, m, A;
|
|
32647
32652
|
if (!this.data)
|
|
32648
32653
|
return;
|
|
@@ -32683,7 +32688,7 @@ let SE = class extends ri {
|
|
|
32683
32688
|
this.updateState({ speed: i }, s), this._setSpeed(i);
|
|
32684
32689
|
}
|
|
32685
32690
|
formatData(e, i) {
|
|
32686
|
-
return
|
|
32691
|
+
return _(this, null, function* () {
|
|
32687
32692
|
return AE(e, i);
|
|
32688
32693
|
});
|
|
32689
32694
|
}
|
|
@@ -32694,7 +32699,7 @@ let SE = class extends ri {
|
|
|
32694
32699
|
this.hooks.emit("disable", { userAction: e.userAction }), this.disposeAnime(), this.five.scene.remove(this.group), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture);
|
|
32695
32700
|
}
|
|
32696
32701
|
_show(e) {
|
|
32697
|
-
return
|
|
32702
|
+
return _(this, null, function* () {
|
|
32698
32703
|
var o;
|
|
32699
32704
|
this.hooks.emit("show", { userAction: e.userAction });
|
|
32700
32705
|
const i = (o = e == null ? void 0 : e.anime) != null ? o : { duration: 500 }, s = this.findPipeObjectWithTarget(this.state.target);
|
|
@@ -32702,7 +32707,7 @@ let SE = class extends ri {
|
|
|
32702
32707
|
});
|
|
32703
32708
|
}
|
|
32704
32709
|
_hide(e) {
|
|
32705
|
-
return
|
|
32710
|
+
return _(this, null, function* () {
|
|
32706
32711
|
var s;
|
|
32707
32712
|
this.hooks.emit("hide", { userAction: e.userAction });
|
|
32708
32713
|
const i = (s = e == null ? void 0 : e.anime) != null ? s : { duration: 500 };
|
|
@@ -32710,7 +32715,7 @@ let SE = class extends ri {
|
|
|
32710
32715
|
});
|
|
32711
32716
|
}
|
|
32712
32717
|
_switchPipelines(e) {
|
|
32713
|
-
return
|
|
32718
|
+
return _(this, null, function* () {
|
|
32714
32719
|
if (!this.data)
|
|
32715
32720
|
return;
|
|
32716
32721
|
const i = this.findPipeObjectWithTarget(e.target), s = e.hideAnime;
|
|
@@ -32734,7 +32739,7 @@ let SE = class extends ri {
|
|
|
32734
32739
|
}
|
|
32735
32740
|
/** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
|
|
32736
32741
|
loadPipeTexture(e) {
|
|
32737
|
-
return
|
|
32742
|
+
return _(this, null, function* () {
|
|
32738
32743
|
const i = this.texturePromiseCache.get(e);
|
|
32739
32744
|
if (i)
|
|
32740
32745
|
return i;
|
|
@@ -32843,8 +32848,8 @@ function jE(n) {
|
|
|
32843
32848
|
n[5]
|
|
32844
32849
|
);
|
|
32845
32850
|
},
|
|
32846
|
-
i:
|
|
32847
|
-
o:
|
|
32851
|
+
i: J,
|
|
32852
|
+
o: J,
|
|
32848
32853
|
d(l) {
|
|
32849
32854
|
l && j(t), r = !1, a();
|
|
32850
32855
|
}
|
|
@@ -33230,7 +33235,7 @@ class QE extends ri {
|
|
|
33230
33235
|
}
|
|
33231
33236
|
/** 加载数据,重复调用会使用新数据覆盖旧数据 */
|
|
33232
33237
|
load(e) {
|
|
33233
|
-
return
|
|
33238
|
+
return _(this, null, function* () {
|
|
33234
33239
|
const i = this.data;
|
|
33235
33240
|
this.data = this.formatData(e), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.clear(), this.data.list.forEach((s) => {
|
|
33236
33241
|
const o = new RE(this, s);
|
|
@@ -33269,7 +33274,7 @@ class QE extends ri {
|
|
|
33269
33274
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
33270
33275
|
*/
|
|
33271
33276
|
show(e) {
|
|
33272
|
-
return
|
|
33277
|
+
return _(this, null, function* () {
|
|
33273
33278
|
if (this.state.visible)
|
|
33274
33279
|
return Promise.resolve();
|
|
33275
33280
|
if (this.disposed)
|
|
@@ -33283,7 +33288,7 @@ class QE extends ri {
|
|
|
33283
33288
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
33284
33289
|
*/
|
|
33285
33290
|
hide(e) {
|
|
33286
|
-
return
|
|
33291
|
+
return _(this, null, function* () {
|
|
33287
33292
|
if (this.state.visible === !1)
|
|
33288
33293
|
return;
|
|
33289
33294
|
const i = R({ userAction: !0 }, e);
|
|
@@ -33394,12 +33399,12 @@ class QE extends ri {
|
|
|
33394
33399
|
this.hooks.emit("disable", { userAction: e.userAction }), this.five.scene.remove(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture), this.five.off("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.off("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.off("modeChange", this.onFiveModeChange), this.five.off("cameraUpdate", this.onFiveCameraUpdate);
|
|
33395
33400
|
}
|
|
33396
33401
|
_show(e) {
|
|
33397
|
-
return
|
|
33402
|
+
return _(this, null, function* () {
|
|
33398
33403
|
this.hooks.emit("show", e), this.five.needsRender = !0;
|
|
33399
33404
|
});
|
|
33400
33405
|
}
|
|
33401
33406
|
_hide(e) {
|
|
33402
|
-
return
|
|
33407
|
+
return _(this, null, function* () {
|
|
33403
33408
|
this.hooks.emit("hide", e), this.five.needsRender = !0;
|
|
33404
33409
|
});
|
|
33405
33410
|
}
|
|
@@ -33525,7 +33530,7 @@ class GE extends Vn {
|
|
|
33525
33530
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
33526
33531
|
*/
|
|
33527
33532
|
show(e) {
|
|
33528
|
-
return
|
|
33533
|
+
return _(this, null, function* () {
|
|
33529
33534
|
if (this.state.visible)
|
|
33530
33535
|
return Promise.resolve();
|
|
33531
33536
|
if (this.disposed)
|
|
@@ -33539,7 +33544,7 @@ class GE extends Vn {
|
|
|
33539
33544
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
33540
33545
|
*/
|
|
33541
33546
|
hide(e) {
|
|
33542
|
-
return
|
|
33547
|
+
return _(this, null, function* () {
|
|
33543
33548
|
if (this.state.visible === !1)
|
|
33544
33549
|
return;
|
|
33545
33550
|
const i = R({ userAction: !0 }, e);
|
|
@@ -33598,7 +33603,7 @@ class GE extends Vn {
|
|
|
33598
33603
|
}
|
|
33599
33604
|
/** 重新加载贴图,调用时会先清除已有的贴图 */
|
|
33600
33605
|
reloadTexture(e) {
|
|
33601
|
-
return
|
|
33606
|
+
return _(this, null, function* () {
|
|
33602
33607
|
if (this.mesh.material.map = null, e !== "") {
|
|
33603
33608
|
const i = Oi(e);
|
|
33604
33609
|
this.textureLoadingPromise = i;
|