@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.10
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/README.md +3 -12
- package/dist/CSS3DRenderPlugin/index..js +88 -0
- package/dist/CSS3DRenderPlugin/index.cjs.js +1 -0
- package/dist/CameraMovementPlugin/index..js +11 -0
- package/dist/CameraMovementPlugin/index.cjs.js +1 -0
- package/dist/CruisePlugin/index..js +527 -0
- package/dist/CruisePlugin/index.cjs.js +1 -0
- package/dist/GuideLinePlugin/index..js +214 -0
- package/dist/GuideLinePlugin/index.cjs.js +1 -0
- package/dist/ItemLabelPlugin/index..js +508 -0
- package/dist/ItemLabelPlugin/index.cjs.js +10 -0
- package/dist/ModelChassisCompassPlugin/index..js +9 -0
- package/dist/ModelChassisCompassPlugin/index.cjs.js +1 -0
- package/dist/ModelEntryDoorGuidePlugin/index..js +9 -0
- package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +1 -0
- package/dist/ModelItemLabelPlugin/index..js +334 -0
- package/dist/ModelItemLabelPlugin/index.cjs.js +10 -0
- package/dist/ModelRoomLabelPlugin/index..js +274 -0
- package/dist/ModelRoomLabelPlugin/index.cjs.js +1 -0
- package/dist/ModelTVVideoPlugin/index..js +12 -0
- package/dist/ModelTVVideoPlugin/index.cjs.js +1 -0
- package/dist/ModelViewPlugin/index..js +8 -0
- package/dist/ModelViewPlugin/index.cjs.js +1 -0
- package/dist/Object3DHelperPlugin/index..js +1414 -0
- package/dist/Object3DHelperPlugin/index.cjs.js +1 -0
- package/dist/PanoCompassPlugin/index..js +258 -0
- package/dist/PanoCompassPlugin/index.cjs.js +1 -0
- package/dist/PanoCursorRaycasterPlugin/index..js +63 -0
- package/dist/PanoCursorRaycasterPlugin/index.cjs.js +1 -0
- package/dist/PanoDoorLabelPlugin/index..js +340 -0
- package/dist/PanoDoorLabelPlugin/index.cjs.js +1 -0
- package/dist/PanoMeasurePlugin/index..js +15 -0
- package/dist/PanoMeasurePlugin/index.cjs.js +1 -0
- package/dist/PanoRulerPlugin/index..js +9 -0
- package/dist/PanoRulerPlugin/index.cjs.js +1 -0
- package/dist/PanoRulerProPlugin/index..js +395 -0
- package/dist/PanoRulerProPlugin/index.cjs.js +1 -0
- package/dist/PanoSpatialTagPlugin/index..js +15 -0
- package/dist/PanoSpatialTagPlugin/index.cjs.js +1 -0
- package/dist/PanoTagPlugin/index..js +4522 -0
- package/dist/PanoTagPlugin/index.cjs.js +17 -0
- package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +1 -0
- package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +1 -0
- package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +1 -0
- package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +94 -0
- package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +16 -0
- package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.9971108a.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +1 -0
- package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +1 -0
- package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +1 -0
- package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +1 -0
- package/dist/chunks/cjs/debounce.93dfb637.cjs.js +1 -0
- package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +1 -0
- package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +1 -0
- package/dist/chunks/cjs/formatData.81e95011.cjs.js +10 -0
- package/dist/chunks/cjs/index.30b7baeb.cjs.js +101 -0
- package/dist/chunks/cjs/index.686e84d1.cjs.js +290 -0
- package/dist/chunks/cjs/index.7d2010ce.cjs.js +1 -0
- package/dist/chunks/cjs/isNil.b3a58990.cjs.js +1 -0
- package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +1 -0
- package/dist/chunks/cjs/throttle.86c209eb.cjs.js +1 -0
- package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +1 -0
- package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +1 -0
- package/dist/chunks/es/BasePlugin.813e25f7.es.js +18 -0
- package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +6 -0
- package/dist/chunks/es/CSS3DRender.5652510e.es.js +393 -0
- package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +120 -0
- package/dist/chunks/es/Plugin.26c2df05.es.js +106 -0
- package/dist/chunks/es/Plugin.435485ed.es.js +584 -0
- package/dist/chunks/es/Plugin.a98418f0.es.js +82 -0
- package/dist/chunks/es/Plugin.ae4ee6f8.es.js +82 -0
- package/dist/chunks/es/Plugin.dd11e0ad.es.js +180 -0
- package/dist/chunks/es/Plugin.f4cf895f.es.js +355 -0
- package/dist/chunks/es/Subscribe.c73e0f91.es.js +50 -0
- package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +1551 -0
- package/dist/chunks/es/correctFiveState.e7feab9f.es.js +66 -0
- package/dist/chunks/es/debounce.ef83f417.es.js +11 -0
- package/dist/chunks/es/equal.7db4a6f7.es.js +56 -0
- package/dist/chunks/es/filter.97ec06c4.es.js +12 -0
- package/dist/chunks/es/formatData.a2b39ef9.es.js +483 -0
- package/dist/chunks/es/index.a273f06e.es.js +532 -0
- package/dist/chunks/es/index.b8fdb59b.es.js +50 -0
- package/dist/chunks/es/index.f74f4851.es.js +1787 -0
- package/dist/chunks/es/isNil.212842d9.es.js +10 -0
- package/dist/chunks/es/planimetry.b0b4a28d.es.js +43 -0
- package/dist/chunks/es/throttle.db66bac3.es.js +11 -0
- package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +24 -0
- package/dist/chunks/es/uuid.676cb2c8.es.js +9 -0
- package/dist/components/PaintBrush/index..js +6 -0
- package/dist/components/PaintBrush/index.cjs.js +1 -0
- package/dist/components/index..js +7 -0
- package/dist/components/index.cjs.js +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index..js +324 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/index..js +320 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +613 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index..js +277 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +1 -0
- package/dist/index..js +530 -0
- package/dist/index.cjs.js +3 -543
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +6 -11
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -5
- package/libs/CSS3DRenderPlugin/Controller.js +6 -7
- package/libs/CSS3DRenderPlugin/index.js +3 -4
- package/libs/CSS3DRenderPlugin/typing.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -3
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -2
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +16 -17
- package/libs/CameraMovementPlugin/index.js +3 -0
- package/libs/CruisePlugin/Controller.js +4 -4
- package/libs/CruisePlugin/index.js +3 -6
- package/libs/CruisePlugin/utils/linerValue.js +4 -4
- package/libs/GuideLinePlugin/Controller.js +3 -4
- package/libs/GuideLinePlugin/index.js +3 -4
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +34 -32
- package/libs/ItemLabelPlugin/Plugin.js +5 -6
- package/libs/ModelChassisCompassPlugin/Plugin.js +3 -4
- package/libs/ModelChassisCompassPlugin/index.js +2 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +22 -23
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +4 -3
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +5 -6
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +11 -10
- package/libs/ModelRoomLabelPlugin/index.js +0 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -2
- package/libs/ModelTVVideoPlugin/index.js +2 -0
- package/libs/ModelViewPlugin/Plugin.js +1 -2
- package/libs/ModelViewPlugin/index.js +2 -0
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +6 -7
- package/libs/Object3DHelperPlugin/index.js +1 -6
- package/libs/PanoCompassPlugin/index.js +3 -4
- package/libs/PanoCursorRaycasterPlugin/index.js +7 -8
- package/libs/PanoDoorLabelPlugin/index.js +1 -2
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +17 -17
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +9 -9
- package/libs/PanoMeasurePlugin/Controller/index.js +8 -8
- package/libs/PanoMeasurePlugin/Model/index.js +3 -3
- package/libs/PanoMeasurePlugin/Model/line.js +11 -11
- package/libs/PanoMeasurePlugin/Model/point.js +7 -7
- package/libs/PanoMeasurePlugin/Model/polyline.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -5
- package/libs/PanoMeasurePlugin/index.js +3 -4
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +2 -2
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
- package/libs/PanoMeasurePlugin/utils/line.js +0 -1
- package/libs/PanoMeasurePlugin/utils/math.js +1 -2
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
- package/libs/PanoRulerPlugin/Plugin.js +2 -3
- package/libs/PanoRulerPlugin/index.js +2 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerProPlugin/Controller.js +15 -15
- package/libs/PanoRulerProPlugin/RulerItems.js +7 -4
- package/libs/PanoRulerProPlugin/index.js +3 -4
- package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
- package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -3
- package/libs/PanoSpatialTagPlugin/index.js +6 -0
- package/libs/PanoSpatialTagPlugin/typings.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +43 -36
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +88 -78
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -4
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +30 -27
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +20 -14
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +114 -92
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +71 -52
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +62 -50
- package/libs/PanoTagPlugin/Components/Tag/index.js +92 -63
- package/libs/PanoTagPlugin/Components/TagContainer.js +108 -64
- package/libs/PanoTagPlugin/Components/TagWrapper.js +113 -75
- package/libs/PanoTagPlugin/controller/index.js +0 -1
- package/libs/PanoTagPlugin/index.js +3 -7
- package/libs/PanoTagPlugin/tag.config.js +1 -2
- package/libs/PanoTagPlugin/typings/controller.js +1 -0
- package/libs/PanoTagPlugin/typings/index.js +1 -0
- package/libs/PanoTagPlugin/utils/constants.js +1 -2
- package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
- package/libs/PanoTagPlugin/utils/index.js +1 -0
- package/libs/components/PaintBrush/Controller.js +3 -3
- package/libs/components/PaintBrush/style.js +1 -1
- package/libs/components/PaintBrush/tween.js +4 -4
- package/libs/components/index.js +2 -0
- package/libs/floorplan/Components/Camera.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +51 -41
- package/libs/floorplan/Components/Main.js +41 -22
- package/libs/floorplan/Components/RoomHighlight/Room.js +3 -3
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +3 -2
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +37 -36
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +7 -7
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +7 -7
- package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -65
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -5
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/index.js +6 -0
- package/libs/floorplan/typings/floorplanData.js +1 -0
- package/libs/floorplan/utils/correctFiveState.js +19 -19
- package/libs/floorplan/utils/formatData.js +16 -16
- package/libs/floorplan/utils/formatPosition.js +7 -7
- package/libs/index.js +344 -90
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +2 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -3
- package/libs/shared-utils/Object3DHelper/Constants/color.js +0 -1
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -0
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -1
- package/libs/shared-utils/animationFrame/index.js +13 -16
- package/libs/shared-utils/animationFrame/tween.js +0 -2
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
- package/libs/shared-utils/createCanvasTextTexture.js +6 -6
- package/libs/shared-utils/createLine/index.js +3 -3
- package/libs/shared-utils/debounce.js +5 -5
- package/libs/shared-utils/equal.js +16 -16
- package/libs/shared-utils/filter.js +1 -1
- package/libs/shared-utils/five/changeMode.js +14 -14
- package/libs/shared-utils/getPxmm.js +7 -8
- package/libs/shared-utils/index.js +33 -29
- package/libs/shared-utils/isTruelyObject.js +1 -1
- package/libs/shared-utils/math/index.js +1 -0
- package/libs/shared-utils/math/planimetry.js +1 -6
- package/libs/shared-utils/math/rad2Deg.js +3 -3
- package/libs/shared-utils/nearlyEqual.js +3 -3
- package/libs/shared-utils/noop.js +1 -1
- package/libs/shared-utils/object3d2LocalMatrix.js +6 -7
- package/libs/shared-utils/removeArrayItem.js +5 -5
- package/libs/shared-utils/tap.js +3 -3
- package/libs/shared-utils/three/index.js +6 -0
- package/libs/shared-utils/three/transformPositionToVector3.js +2 -2
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +12 -12
- package/libs/shared-utils/throttle.js +2 -2
- package/libs/shared-utils/tinyEJSrender.js +7 -7
- package/libs/shared-utils/to.js +14 -15
- package/libs/shared-utils/uuid.js +0 -1
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-changed-params.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-params.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/mount-swiper.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/params-list.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/update-swiper.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/utils.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper-slide.js +1 -1
- package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper.js +1 -1
- package/package.json +19 -17
- package/dist/index.es.js +0 -16650
- package/dist/index.js +0 -16650
- package/dist/index.umd.js +0 -556
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
var E = Object.defineProperty, S = Object.defineProperties;
|
|
2
|
+
var C = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var b = Object.getOwnPropertySymbols;
|
|
4
|
+
var P = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var v = (r, o, e) => o in r ? E(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, l = (r, o) => {
|
|
6
|
+
for (var e in o || (o = {}))
|
|
7
|
+
P.call(o, e) && v(r, e, o[e]);
|
|
8
|
+
if (b)
|
|
9
|
+
for (var e of b(o))
|
|
10
|
+
I.call(o, e) && v(r, e, o[e]);
|
|
11
|
+
return r;
|
|
12
|
+
}, m = (r, o) => S(r, C(o));
|
|
13
|
+
var s = (r, o, e) => (v(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
14
|
+
var c = (r, o, e) => new Promise((t, i) => {
|
|
15
|
+
var n = (a) => {
|
|
16
|
+
try {
|
|
17
|
+
h(e.next(a));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
|
+
}
|
|
21
|
+
}, d = (a) => {
|
|
22
|
+
try {
|
|
23
|
+
h(e.throw(a));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
|
+
}
|
|
27
|
+
}, h = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(n, d);
|
|
28
|
+
h((e = e.apply(r, o)).next());
|
|
29
|
+
});
|
|
30
|
+
import { FIVE_CAMERA_DEFAULT_FOV as M, checkShowState as x, FloorplanErrorType as f, to as y, correctFiveState as _, SHOW_ANIME_DURATION as L } from "../../chunks/es/correctFiveState.e7feab9f.es.js";
|
|
31
|
+
import { equal as D } from "../../chunks/es/equal.7db4a6f7.es.js";
|
|
32
|
+
import { FLOOR_PLAN_ATTACHED_TO as O, getPxmm as k, changeModelCanvasOpacity as g, Main as T } from "../../chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js";
|
|
33
|
+
import { CAMERA_IMAGE as B, formatData as F } from "../../chunks/es/formatData.a2b39ef9.es.js";
|
|
34
|
+
import { omit as G } from "../../chunks/es/filter.97ec06c4.es.js";
|
|
35
|
+
import { Controller as H } from "../../chunks/es/BasePluginWithData.4bf4e649.es.js";
|
|
36
|
+
import "svelte/internal";
|
|
37
|
+
import "svelte/easing";
|
|
38
|
+
import "svelte/transition";
|
|
39
|
+
import "svelte/store";
|
|
40
|
+
import "svelte";
|
|
41
|
+
import "three";
|
|
42
|
+
import "../../chunks/es/BasePlugin.813e25f7.es.js";
|
|
43
|
+
import "../../chunks/es/Subscribe.c73e0f91.es.js";
|
|
44
|
+
function W(r) {
|
|
45
|
+
const { latitude: o, longitude: e } = r, t = Math.abs(o - Math.PI / 2) > 5 * Math.PI / 180, i = e > 5 * (Math.PI / 180) && e < 355 * (Math.PI / 180);
|
|
46
|
+
return t || i;
|
|
47
|
+
}
|
|
48
|
+
function R(r) {
|
|
49
|
+
const { latitude: o, longitude: e } = r, t = Math.abs(o - Math.PI / 2) < 10 * Math.PI / 180, i = e < 30 * (Math.PI / 180) || e > 330 * (Math.PI / 180);
|
|
50
|
+
return t && i;
|
|
51
|
+
}
|
|
52
|
+
class N extends H {
|
|
53
|
+
constructor(e, t) {
|
|
54
|
+
var h;
|
|
55
|
+
super(e);
|
|
56
|
+
s(this, "name", "modelFloorplanPlugin");
|
|
57
|
+
s(this, "state");
|
|
58
|
+
s(this, "data");
|
|
59
|
+
s(this, "showState");
|
|
60
|
+
s(this, "showPromise");
|
|
61
|
+
s(this, "app");
|
|
62
|
+
s(this, "panoIndex", 0);
|
|
63
|
+
s(this, "floorIndex", 0);
|
|
64
|
+
s(this, "selector");
|
|
65
|
+
s(this, "showRejection");
|
|
66
|
+
s(this, "wrapper");
|
|
67
|
+
s(this, "container", document.createElement("div"));
|
|
68
|
+
s(this, "lastPanoramaLongitude", 0);
|
|
69
|
+
s(this, "size", { width: 0, height: 0 });
|
|
70
|
+
s(this, "hasAddedEventListener", !1);
|
|
71
|
+
s(this, "isHiddenByHideFunc", !1);
|
|
72
|
+
s(this, "dispose", () => {
|
|
73
|
+
var e, t;
|
|
74
|
+
this.removeEventListener(), (e = this.app) == null || e.$destroy(), this.app = void 0, (t = this.container) == null || t.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
|
|
75
|
+
});
|
|
76
|
+
s(this, "show", (...t) => c(this, [...t], function* (e = {}) {
|
|
77
|
+
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
78
|
+
return;
|
|
79
|
+
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
80
|
+
this.updateState({ visible: !0 }, i), this._show(e);
|
|
81
|
+
}));
|
|
82
|
+
s(this, "hide", (...t) => c(this, [...t], function* (e = {}) {
|
|
83
|
+
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
84
|
+
}));
|
|
85
|
+
s(this, "updateSize", () => {
|
|
86
|
+
if (!this.data || !x(this.five, this.showState) || !this.container || !this.wrapper)
|
|
87
|
+
return;
|
|
88
|
+
const { min: e, max: t } = this.data.bounding, i = t.x - e.x, n = t.y - e.y, d = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, h = k(this.five, this.wrapper, this.floorIndex, d), a = Math.ceil(i * h), u = Math.ceil(n * h);
|
|
89
|
+
this.size.width === a && this.size.height === u || (this.container.style.width = a + "px", this.container.style.height = u + "px", this.size = { width: a, height: u });
|
|
90
|
+
});
|
|
91
|
+
s(this, "_disable", (e) => {
|
|
92
|
+
var i, n, d;
|
|
93
|
+
const { userAction: t } = e;
|
|
94
|
+
this.hooks.emit("disable", { userAction: t }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (d = this.container) == null || d.remove(), this.removeEventListener();
|
|
95
|
+
});
|
|
96
|
+
s(this, "_enable", (e) => {
|
|
97
|
+
const { userAction: t } = e;
|
|
98
|
+
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: t }), this.state.visible && this._show({ userAction: t }));
|
|
99
|
+
});
|
|
100
|
+
s(this, "_show", (e) => c(this, null, function* () {
|
|
101
|
+
var d;
|
|
102
|
+
if (!this.state.enabled)
|
|
103
|
+
return;
|
|
104
|
+
if (!((d = this.five.model) != null && d.loaded))
|
|
105
|
+
throw new Error(f.ModelNotLoaded);
|
|
106
|
+
if (!this.data)
|
|
107
|
+
throw new Error(f.DataNotLoaded);
|
|
108
|
+
this.isHiddenByHideFunc = !1;
|
|
109
|
+
const t = {
|
|
110
|
+
floorIndex: this.floorIndex,
|
|
111
|
+
modelOpacity: this.state.config.modelOpacity,
|
|
112
|
+
immediately: !1,
|
|
113
|
+
isAutoShow: !1,
|
|
114
|
+
userAction: !0
|
|
115
|
+
}, i = l(l({}, t), e), n = () => c(this, null, function* () {
|
|
116
|
+
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
117
|
+
let h = !1, a;
|
|
118
|
+
this.showRejection = (A) => {
|
|
119
|
+
h = !0, a = A;
|
|
120
|
+
};
|
|
121
|
+
const [u] = yield y(_(this.five, this.showState, i.userAction));
|
|
122
|
+
if (u)
|
|
123
|
+
throw u;
|
|
124
|
+
if (h)
|
|
125
|
+
throw a ? new Error(a) : new Error(f.UnknownError);
|
|
126
|
+
this.updateSize(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
127
|
+
const p = i.modelOpacity, w = i.immediately ? 0 : L;
|
|
128
|
+
g(this.five, p, w), this.render(w);
|
|
129
|
+
});
|
|
130
|
+
return this.showPromise = n().then(() => {
|
|
131
|
+
this.hooks.emit("showAnimationEnded", {
|
|
132
|
+
auto: i.isAutoShow,
|
|
133
|
+
userAction: i.userAction
|
|
134
|
+
});
|
|
135
|
+
}).catch((h) => {
|
|
136
|
+
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && h instanceof Error)
|
|
137
|
+
throw h;
|
|
138
|
+
}).finally(() => {
|
|
139
|
+
this.showPromise = void 0, this.showRejection = void 0;
|
|
140
|
+
}), this.showPromise;
|
|
141
|
+
}));
|
|
142
|
+
s(this, "_hide", (e) => {
|
|
143
|
+
var n;
|
|
144
|
+
(n = this.showRejection) == null || n.call(this, f.BreakOffByHide), this.showPromise = void 0;
|
|
145
|
+
const i = l(l({}, {
|
|
146
|
+
userAction: !0,
|
|
147
|
+
isAutoHide: !1
|
|
148
|
+
}), e);
|
|
149
|
+
g(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
150
|
+
});
|
|
151
|
+
s(this, "handleClick", () => {
|
|
152
|
+
if (!this.state.visible)
|
|
153
|
+
return;
|
|
154
|
+
if (this.hooks.emit("click"))
|
|
155
|
+
return !1;
|
|
156
|
+
});
|
|
157
|
+
s(this, "onFiveModelLoaded", () => {
|
|
158
|
+
if (this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
159
|
+
return;
|
|
160
|
+
const e = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
161
|
+
if (!e)
|
|
162
|
+
throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");
|
|
163
|
+
this.wrapper = e, e.append(this.container);
|
|
164
|
+
});
|
|
165
|
+
s(this, "onFiveModeChange", (e) => {
|
|
166
|
+
e !== this.showState.mode && (this.updateState({ visible: !1 }, !1), this._hide({ userAction: !1 }));
|
|
167
|
+
});
|
|
168
|
+
s(this, "onFiveInteriaPan", (e, t) => {
|
|
169
|
+
if (!t || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
|
|
170
|
+
return;
|
|
171
|
+
const i = this.five.getCurrentState();
|
|
172
|
+
i.mode === "Floorplan" && (this.state.visible || R(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 })));
|
|
173
|
+
});
|
|
174
|
+
s(this, "onFivePanoArrived", (e) => {
|
|
175
|
+
var t;
|
|
176
|
+
!((t = this.five) != null && t.work) || (this.panoIndex = e, this.floorIndex = this.five.work.observers[e].floorIndex);
|
|
177
|
+
});
|
|
178
|
+
s(this, "onFiveCameraUpdate", (e, t) => {
|
|
179
|
+
if (!this.state.visible || this.showPromise)
|
|
180
|
+
return;
|
|
181
|
+
const i = this.five.getCurrentState();
|
|
182
|
+
W(i) && (this.updateState({ visible: !1 }, t), this._hide({ userAction: t, isAutoHide: !0 }));
|
|
183
|
+
});
|
|
184
|
+
s(this, "onFiveWantsGesture", (e, t) => {
|
|
185
|
+
if (!!this.state.visible && (t.length > 1 || e === "mouseWheel"))
|
|
186
|
+
return !1;
|
|
187
|
+
});
|
|
188
|
+
s(this, "onFiveWantsPanGesture", (e, t) => {
|
|
189
|
+
if (this.five.getCurrentState().mode === "Floorplan" && this.state.config.autoShowEnable !== !1 && t && this.state.visible)
|
|
190
|
+
return this.five.updateCamera(this.showState, 0), !1;
|
|
191
|
+
});
|
|
192
|
+
s(this, "onFiveWantsTapGesture", () => this.handleClick());
|
|
193
|
+
s(this, "onFiveWantsChangeMode", (e, t) => {
|
|
194
|
+
t === "Panorama" && e === "Floorplan" && (this.lastPanoramaLongitude = this.five.getCurrentState().longitude);
|
|
195
|
+
});
|
|
196
|
+
s(this, "onModelShownFloorChange", (e) => {
|
|
197
|
+
if (this.floorIndex !== e) {
|
|
198
|
+
if (e === null) {
|
|
199
|
+
const t = this.five.getCurrentState().panoIndex;
|
|
200
|
+
this.floorIndex = this.five.work.observers[t].floorIndex;
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
this.floorIndex = e, this.updateSize(), this.render();
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
t != null && t.selector && (this.selector = t.selector, console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")), this.showState = {
|
|
207
|
+
mode: "Floorplan",
|
|
208
|
+
longitude: 0,
|
|
209
|
+
latitude: Math.PI / 2,
|
|
210
|
+
fov: M / ((h = t == null ? void 0 : t.scale) != null ? h : 1)
|
|
211
|
+
};
|
|
212
|
+
const i = {
|
|
213
|
+
northDesc: "\u5317",
|
|
214
|
+
modelOpacity: 1,
|
|
215
|
+
hoverEnable: !0,
|
|
216
|
+
compassEnable: !0,
|
|
217
|
+
autoShowEnable: !0,
|
|
218
|
+
ruleLabelsEnable: !0,
|
|
219
|
+
roomLabelsEnable: !0,
|
|
220
|
+
adaptiveRoomLabelVisibleEnable: !0,
|
|
221
|
+
cameraImageUrl: B,
|
|
222
|
+
attachedTo: O.BOUNDING_CENTER,
|
|
223
|
+
getLabelElement: void 0,
|
|
224
|
+
getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
|
|
225
|
+
getRuleDistanceText: (a) => a.toString()
|
|
226
|
+
}, n = t ? G(t, ["selector", "scale"]) : {}, d = l(l({}, i), n);
|
|
227
|
+
this.state = {
|
|
228
|
+
enabled: !0,
|
|
229
|
+
visible: !1,
|
|
230
|
+
config: d
|
|
231
|
+
}, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
232
|
+
}
|
|
233
|
+
load(e, t, i = !0) {
|
|
234
|
+
return c(this, null, function* () {
|
|
235
|
+
function n(p) {
|
|
236
|
+
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
237
|
+
}
|
|
238
|
+
const d = e;
|
|
239
|
+
d && !d.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
|
|
240
|
+
const h = JSON.parse(JSON.stringify(e)), a = n(h) ? h.data : h, u = this.data;
|
|
241
|
+
this.data = yield F(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), t && this.updateState(t, i), this.render();
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
appendTo(e) {
|
|
245
|
+
if (this.wrapper = e, !!this.state.enabled)
|
|
246
|
+
return e.appendChild(this.container), this.render(), this;
|
|
247
|
+
}
|
|
248
|
+
enable(e = {}) {
|
|
249
|
+
if (this.state.enabled)
|
|
250
|
+
return;
|
|
251
|
+
const t = e.userAction !== void 0 ? e.userAction : !0;
|
|
252
|
+
this.updateState({ enabled: !0 }, e.userAction || t), this._enable({ userAction: t });
|
|
253
|
+
}
|
|
254
|
+
disable(e = {}) {
|
|
255
|
+
if (!this.state.enabled)
|
|
256
|
+
return;
|
|
257
|
+
const t = e.userAction !== void 0 ? e.userAction : !0;
|
|
258
|
+
this.updateState({ enabled: !1 }, e.userAction || t), this._disable({ userAction: t });
|
|
259
|
+
}
|
|
260
|
+
setState(e, t = {}) {
|
|
261
|
+
const i = this.state, n = t.userAction !== void 0 ? t.userAction : !0;
|
|
262
|
+
if (this.updateState(e, n), e.enabled !== void 0 && i.enabled !== e.enabled && (e.enabled ? this._enable({ userAction: n }) : this._disable({ userAction: n })), e.visible !== void 0 && i.visible !== e.visible) {
|
|
263
|
+
const d = { userAction: n };
|
|
264
|
+
e.visible ? this._show(d) : this._hide(d);
|
|
265
|
+
}
|
|
266
|
+
this.render();
|
|
267
|
+
}
|
|
268
|
+
changeConfigs(e, t = !0) {
|
|
269
|
+
this.updateState({ config: e }, t), this.render();
|
|
270
|
+
}
|
|
271
|
+
formatData(e) {
|
|
272
|
+
return c(this, null, function* () {
|
|
273
|
+
return yield F(e.data);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
updateState(e, t) {
|
|
277
|
+
const i = this.state, n = e.config ? l(l({}, i.config), e.config) : i.config;
|
|
278
|
+
this.state = m(l(l({}, this.state), e), { config: n }), !D(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t });
|
|
279
|
+
}
|
|
280
|
+
initContainer() {
|
|
281
|
+
this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
|
|
282
|
+
position: "absolute",
|
|
283
|
+
left: "50%",
|
|
284
|
+
top: "50%",
|
|
285
|
+
transform: "translate(-50%, -50%)",
|
|
286
|
+
zIndex: 10,
|
|
287
|
+
pointerEvents: "none"
|
|
288
|
+
}), this.five.addExtraElement(this.container);
|
|
289
|
+
}
|
|
290
|
+
addEventListener() {
|
|
291
|
+
if (!this.state.enabled || this.hasAddedEventListener)
|
|
292
|
+
return;
|
|
293
|
+
const e = this.five;
|
|
294
|
+
e.on("modeChange", this.onFiveModeChange), e.on("interiaPan", this.onFiveInteriaPan), e.on("panoArrived", this.onFivePanoArrived), e.on("cameraUpdate", this.onFiveCameraUpdate), e.on("wantsGesture", this.onFiveWantsGesture), e.on("wantsPanGesture", this.onFiveWantsPanGesture), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsChangeMode", this.onFiveWantsChangeMode), e.on("modelShownFloorChange", this.onModelShownFloorChange);
|
|
295
|
+
}
|
|
296
|
+
removeEventListener() {
|
|
297
|
+
const e = this.five;
|
|
298
|
+
this.hasAddedEventListener = !1, e.off("modelLoaded", this.onFiveModelLoaded), e.off("modeChange", this.onFiveModeChange), e.off("interiaPan", this.onFiveInteriaPan), e.off("panoArrived", this.onFivePanoArrived), e.off("cameraUpdate", this.onFiveCameraUpdate), e.off("wantsGesture", this.onFiveWantsGesture), e.off("wantsPanGesture", this.onFiveWantsPanGesture), e.off("wantsTapGesture", this.onFiveWantsTapGesture), e.off("wantsChangeMode", this.onFiveWantsChangeMode), e.off("modelShownFloorChange", this.onModelShownFloorChange);
|
|
299
|
+
}
|
|
300
|
+
render(e) {
|
|
301
|
+
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
302
|
+
return;
|
|
303
|
+
const t = m(l({}, this.state.config), {
|
|
304
|
+
visible: this.state.visible,
|
|
305
|
+
duration: e != null ? e : 0,
|
|
306
|
+
panoIndex: this.panoIndex,
|
|
307
|
+
floorIndex: this.floorIndex,
|
|
308
|
+
floorplanData: this.data,
|
|
309
|
+
lastPanoramaLongitude: this.lastPanoramaLongitude
|
|
310
|
+
});
|
|
311
|
+
if (this.app)
|
|
312
|
+
return this.app.$set(t);
|
|
313
|
+
this.app = new T({ target: this.container, intro: !0, props: t });
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
const se = (r, o) => new N(r, o);
|
|
317
|
+
export {
|
|
318
|
+
se as ModelFloorplanPlugin,
|
|
319
|
+
se as default
|
|
320
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var A=Object.defineProperty,C=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var w=(r,o,e)=>o in r?A(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e,l=(r,o)=>{for(var e in o||(o={}))y.call(o,e)&&w(r,e,o[e]);if(F)for(var e of F(o))M.call(o,e)&&w(r,e,o[e]);return r},b=(r,o)=>C(r,P(o));var s=(r,o,e)=>(w(r,typeof o!="symbol"?o+"":o,e),e);var f=(r,o,e)=>new Promise((t,i)=>{var n=a=>{try{h(e.next(a))}catch(u){i(u)}},d=a=>{try{h(e.throw(a))}catch(u){i(u)}},h=a=>a.done?t(a.value):Promise.resolve(a.value).then(n,d);h((e=e.apply(r,o)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("../../chunks/cjs/correctFiveState.4c8472bd.cjs.js"),I=require("../../chunks/cjs/equal.e9fcbd4e.cjs.js"),v=require("../../chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js"),g=require("../../chunks/cjs/formatData.81e95011.cjs.js"),_=require("../../chunks/cjs/filter.cf9ebbb3.cjs.js"),x=require("../../chunks/cjs/BasePluginWithData.0a28882d.cjs.js");require("svelte/internal");require("svelte/easing");require("svelte/transition");require("svelte/store");require("svelte");require("three");require("../../chunks/cjs/BasePlugin.57e5204f.cjs.js");require("../../chunks/cjs/Subscribe.5398d5c6.cjs.js");function D(r){const{latitude:o,longitude:e}=r,t=Math.abs(o-Math.PI/2)>5*Math.PI/180,i=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return t||i}function j(r){const{latitude:o,longitude:e}=r,t=Math.abs(o-Math.PI/2)<10*Math.PI/180,i=e<30*(Math.PI/180)||e>330*(Math.PI/180);return t&&i}class L extends x.Controller{constructor(e,t){var h;super(e);s(this,"name","modelFloorplanPlugin");s(this,"state");s(this,"data");s(this,"showState");s(this,"showPromise");s(this,"app");s(this,"panoIndex",0);s(this,"floorIndex",0);s(this,"selector");s(this,"showRejection");s(this,"wrapper");s(this,"container",document.createElement("div"));s(this,"lastPanoramaLongitude",0);s(this,"size",{width:0,height:0});s(this,"hasAddedEventListener",!1);s(this,"isHiddenByHideFunc",!1);s(this,"dispose",()=>{var e,t;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(t=this.container)==null||t.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});s(this,"show",(...t)=>f(this,[...t],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const i=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},i),this._show(e)}));s(this,"hide",(...t)=>f(this,[...t],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));s(this,"updateSize",()=>{if(!this.data||!c.checkShowState(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:t}=this.data.bounding,i=t.x-e.x,n=t.y-e.y,d=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,h=v.getPxmm(this.five,this.wrapper,this.floorIndex,d),a=Math.ceil(i*h),u=Math.ceil(n*h);this.size.width===a&&this.size.height===u||(this.container.style.width=a+"px",this.container.style.height=u+"px",this.size={width:a,height:u})});s(this,"_disable",e=>{var i,n,d;const{userAction:t}=e;this.hooks.emit("disable",{userAction:t}),(i=this.showRejection)==null||i.call(this,c.FloorplanErrorType.BreakOffByDisable),this.showPromise=void 0,(n=this.app)==null||n.$destroy(),this.app=void 0,(d=this.container)==null||d.remove(),this.removeEventListener()});s(this,"_enable",e=>{const{userAction:t}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:t}),this.state.visible&&this._show({userAction:t}))});s(this,"_show",e=>f(this,null,function*(){var d;if(!this.state.enabled)return;if(!((d=this.five.model)!=null&&d.loaded))throw new Error(c.FloorplanErrorType.ModelNotLoaded);if(!this.data)throw new Error(c.FloorplanErrorType.DataNotLoaded);this.isHiddenByHideFunc=!1;const t={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},i=l(l({},t),e),n=()=>f(this,null,function*(){this.hooks.emit("show",{userAction:i.userAction,auto:i.isAutoShow});let h=!1,a;this.showRejection=S=>{h=!0,a=S};const[u]=yield c.to(c.correctFiveState(this.five,this.showState,i.userAction));if(u)throw u;if(h)throw a?new Error(a):new Error(c.FloorplanErrorType.UnknownError);this.updateSize(),this.floorIndex=i.floorIndex,this.five.model.show(this.floorIndex);const p=i.modelOpacity,m=i.immediately?0:c.SHOW_ANIME_DURATION;v.changeModelCanvasOpacity(this.five,p,m),this.render(m)});return this.showPromise=n().then(()=>{this.hooks.emit("showAnimationEnded",{auto:i.isAutoShow,userAction:i.userAction})}).catch(h=>{if(this.updateState({visible:!1},i.userAction),!i.isAutoShow&&h instanceof Error)throw h}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));s(this,"_hide",e=>{var n;(n=this.showRejection)==null||n.call(this,c.FloorplanErrorType.BreakOffByHide),this.showPromise=void 0;const i=l(l({},{userAction:!0,isAutoHide:!1}),e);v.changeModelCanvasOpacity(this.five,1,0),this.hooks.emit("hide",{auto:i.isAutoHide,userAction:i.userAction}),this.render()});s(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});s(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");this.wrapper=e,e.append(this.container)});s(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});s(this,"onFiveInteriaPan",(e,t)=>{if(!t||this.state.config.autoShowEnable===!1||this.isHiddenByHideFunc)return;const i=this.five.getCurrentState();i.mode==="Floorplan"&&(this.state.visible||j(i)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})))});s(this,"onFivePanoArrived",e=>{var t;!((t=this.five)!=null&&t.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});s(this,"onFiveCameraUpdate",(e,t)=>{if(!this.state.visible||this.showPromise)return;const i=this.five.getCurrentState();D(i)&&(this.updateState({visible:!1},t),this._hide({userAction:t,isAutoHide:!0}))});s(this,"onFiveWantsGesture",(e,t)=>{if(!!this.state.visible&&(t.length>1||e==="mouseWheel"))return!1});s(this,"onFiveWantsPanGesture",(e,t)=>{if(this.five.getCurrentState().mode==="Floorplan"&&this.state.config.autoShowEnable!==!1&&t&&this.state.visible)return this.five.updateCamera(this.showState,0),!1});s(this,"onFiveWantsTapGesture",()=>this.handleClick());s(this,"onFiveWantsChangeMode",(e,t)=>{t==="Panorama"&&e==="Floorplan"&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});s(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const t=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[t].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});t!=null&&t.selector&&(this.selector=t.selector,console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")),this.showState={mode:"Floorplan",longitude:0,latitude:Math.PI/2,fov:c.FIVE_CAMERA_DEFAULT_FOV/((h=t==null?void 0:t.scale)!=null?h:1)};const i={northDesc:"\u5317",modelOpacity:1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:g.CAMERA_IMAGE,attachedTo:v.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:a=>a.toString()},n=t?_.omit(t,["selector","scale"]):{},d=l(l({},i),n);this.state={enabled:!0,visible:!1,config:d},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,t,i=!0){return f(this,null,function*(){function n(p){return Object.prototype.hasOwnProperty.apply(p,["version"])}const d=e;d&&!d.version&&console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");const h=JSON.parse(JSON.stringify(e)),a=n(h)?h.data:h,u=this.data;this.data=yield g.formatData(a),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,u),t&&this.updateState(t,i),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const t=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||t),this._enable({userAction:t})}disable(e={}){if(!this.state.enabled)return;const t=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||t),this._disable({userAction:t})}setState(e,t={}){const i=this.state,n=t.userAction!==void 0?t.userAction:!0;if(this.updateState(e,n),e.enabled!==void 0&&i.enabled!==e.enabled&&(e.enabled?this._enable({userAction:n}):this._disable({userAction:n})),e.visible!==void 0&&i.visible!==e.visible){const d={userAction:n};e.visible?this._show(d):this._hide(d)}this.render()}changeConfigs(e,t=!0){this.updateState({config:e},t),this.render()}formatData(e){return f(this,null,function*(){return yield g.formatData(e.data)})}updateState(e,t){const i=this.state,n=e.config?l(l({},i.config),e.config):i.config;this.state=b(l(l({},this.state),e),{config:n}),!I.equal(this.state,i,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:i,userAction:t})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("interiaPan",this.onFiveInteriaPan),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("interiaPan",this.onFiveInteriaPan),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const t=b(l({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude});if(this.app)return this.app.$set(t);this.app=new v.Main({target:this.container,intro:!0,props:t})}}const E=(r,o)=>new L(r,o);exports.ModelFloorplanPlugin=E;exports.default=E;
|