@realsee/dnalogel 2.2.6 → 2.3.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/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
- package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
- package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/dist/index.cjs.js +46 -46
- package/dist/index.js +4987 -4817
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/main.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +533 -0
- 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 +6 -5
- package/docs/functions/CameraMovementPlugin.html +6 -5
- package/docs/functions/CruisePlugin.html +6 -5
- package/docs/functions/GuideLinePlugin.html +7 -6
- package/docs/functions/ItemLabelPlugin.html +6 -5
- package/docs/functions/MapviewFloorplanPlugin.html +6 -5
- package/docs/functions/ModelChassisCompassPlugin.html +6 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
- package/docs/functions/ModelFloorplanPlugin.html +6 -5
- package/docs/functions/ModelItemLabelPlugin.html +6 -5
- package/docs/functions/ModelRoomLabelPlugin.html +6 -5
- package/docs/functions/ModelTVVideoPlugin.html +6 -5
- package/docs/functions/ModelViewPlugin.html +6 -5
- package/docs/functions/Object3DHelperPlugin.html +6 -5
- package/docs/functions/PanoCompassPlugin.html +6 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
- package/docs/functions/PanoDoorLabelPlugin.html +6 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
- package/docs/functions/PanoMeasurePlugin.html +6 -5
- package/docs/functions/PanoRulerPlugin.html +6 -5
- package/docs/functions/PanoRulerProPlugin.html +6 -5
- package/docs/functions/PanoSpatialTagPlugin.html +6 -5
- package/docs/functions/PanoTagPlugin.html +6 -5
- package/docs/functions/TopviewFloorplanPlugin.html +6 -5
- 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 +7 -6
- package/docs/index.html +6 -5
- 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 +7 -6
- 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 +7 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
- 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 +7 -6
- package/docs/interfaces/Rooms.html +7 -6
- 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 +7 -5
- package/docs/types/ArrayPosition.html +7 -6
- package/docs/types/CSS3DRenderExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginExportType.html +7 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
- package/docs/types/Color.html +7 -6
- package/docs/types/ContentTypeConfigKey.html +7 -6
- package/docs/types/ContentTypeConfigKeyArray.html +7 -6
- package/docs/types/Create3DDomContainerReturnType.html +7 -6
- package/docs/types/Create3DElementReturnType.html +8 -7
- package/docs/types/CruisePluginExportType.html +7 -6
- package/docs/types/Direction-1.html +7 -6
- package/docs/types/Direction4.html +7 -6
- package/docs/types/FloorplanRuleLabels.html +7 -6
- package/docs/types/FloorplanServerRuleLabels.html +7 -6
- package/docs/types/GuideLinePluginExportType.html +7 -6
- package/docs/types/HelperEventMap.html +7 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
- package/docs/types/MediaData.html +7 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
- package/docs/types/MoveArgs.html +7 -6
- package/docs/types/MoveOpts.html +7 -6
- package/docs/types/Object3DHelperEventMap.html +7 -6
- package/docs/types/ObjectFit.html +7 -6
- package/docs/types/PaintBrushEventMap.html +7 -6
- package/docs/types/PanoCompassPluginData.html +7 -6
- package/docs/types/PanoCompassPluginExportType.html +7 -6
- package/docs/types/PanoCompassPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
- package/docs/types/PanoMeasurePluginEvent.html +7 -6
- package/docs/types/PanoMeasureReturnType.html +7 -6
- package/docs/types/PanoSpatialTagPluginId.html +7 -6
- package/docs/types/PanoTagPluginExportInterface.html +7 -6
- package/docs/types/PanoTagPluginParamsInterface.html +7 -6
- package/docs/types/PlaneTag.html +7 -6
- package/docs/types/PointTag.html +7 -6
- package/docs/types/Position.html +7 -6
- package/docs/types/RotateArgs.html +7 -6
- package/docs/types/RotateOpts.html +7 -6
- package/docs/types/RuleLabelsKey.html +7 -6
- package/docs/types/RuleLabelsValue.html +7 -6
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +7 -6
- package/docs/types/Tag3D.html +7 -6
- package/docs/types/TagId.html +7 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
- package/docs/variables/PLUGIN.html +7 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
- package/docs/variables/ROOM_TYPE_MAP.html +7 -6
- package/docs/variables/VERSION.html +7 -6
- package/docs/variables/itemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +198 -251
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +63 -58
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/index.js +21 -3
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
- package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
- package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +53 -0
- package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +115 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
- package/libs/CameraMovementPlugin/index.js +13 -0
- package/libs/CruisePlugin/Controller.js +65 -54
- package/libs/CruisePlugin/index.js +26 -3
- package/libs/CruisePlugin/typing.js +1 -0
- package/libs/GuideLinePlugin/Controller.js +14 -9
- package/libs/GuideLinePlugin/index.js +14 -3
- package/libs/GuideLinePlugin/typing.js +1 -0
- package/libs/ItemLabelPlugin/Plugin.js +33 -23
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.js +16 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
- package/libs/ModelChassisCompassPlugin/index.js +8 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
- package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
- package/libs/ModelItemLabelPlugin/index.js +12 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
- package/libs/ModelRoomLabelPlugin/index.js +10 -3
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +80 -62
- package/libs/ModelTVVideoPlugin/index.js +25 -0
- package/libs/ModelViewPlugin/Plugin.js +2 -1
- package/libs/ModelViewPlugin/index.js +6 -0
- package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +114 -73
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
- package/libs/Object3DHelperPlugin/index.js +48 -3
- package/libs/Object3DHelperPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/Controller.js +60 -40
- package/libs/PanoCompassPlugin/index.js +31 -3
- package/libs/PanoCompassPlugin/typings.js +1 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
- package/libs/PanoDoorLabelPlugin/index.js +12 -2
- package/libs/PanoDoorLabelPlugin/typings.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +56 -5
- package/libs/PanoRulerPlugin/Plugin.js +22 -17
- package/libs/PanoRulerPlugin/index.js +9 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/index.js +16 -3
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +91 -71
- package/libs/PanoSpatialTagPlugin/index.js +28 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
- package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
- package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
- package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +90 -3
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/floorplan/Components/BaseImage.js +7 -7
- package/libs/floorplan/Components/Camera.js +10 -10
- package/libs/floorplan/Components/Compass.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +47 -56
- package/libs/floorplan/Components/Main.js +80 -99
- package/libs/floorplan/Components/Normalmage.js +5 -5
- package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
- package/libs/floorplan/Components/SvgImage.js +12 -12
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
- package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/libs/index.js +123 -114
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
- package/libs/shared-utils/three/index.js +2 -1
- package/package.json +31 -30
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
- package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { SvelteComponent as j, init as k, safe_not_equal as $, append_styles as w, element as h, attr as _, insert as b, update_keyed_each as y, noop as u, detach as v, space as
|
|
2
|
-
function x(
|
|
3
|
-
w(
|
|
1
|
+
import { SvelteComponent as j, init as k, safe_not_equal as $, append_styles as w, element as h, attr as _, insert as b, update_keyed_each as y, destroy_block as I, noop as u, detach as v, space as z, set_style as r, append as g } from "../../../../vendor/svelte/internal/index.js";
|
|
2
|
+
function x(s) {
|
|
3
|
+
w(s, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
|
|
4
4
|
}
|
|
5
|
-
function d(
|
|
6
|
-
const l =
|
|
5
|
+
function d(s, t, e) {
|
|
6
|
+
const l = s.slice();
|
|
7
7
|
return l[1] = t[e], l;
|
|
8
8
|
}
|
|
9
|
-
function m(
|
|
10
|
-
let e, l, n = `${t[1].icon.width / 16}rem`, c = `${t[1].icon.height / 16}rem`, i, o = `${t[1].positionInImage.y * 100}%`,
|
|
9
|
+
function m(s, t) {
|
|
10
|
+
let e, l, n = `${t[1].icon.width / 16}rem`, c = `${t[1].icon.height / 16}rem`, i, o = `${t[1].positionInImage.y * 100}%`, a = `${t[1].positionInImage.x * 100}%`;
|
|
11
11
|
return {
|
|
12
|
-
key:
|
|
12
|
+
key: s,
|
|
13
13
|
first: null,
|
|
14
14
|
c() {
|
|
15
|
-
e = h("div"), l = h("div"), i =
|
|
15
|
+
e = h("div"), l = h("div"), i = z(), _(l, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), r(l, "background-image", `url(${t[1].icon.url})`), r(l, "width", n), r(l, "height", c), _(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), r(e, "top", o), r(e, "left", a), this.first = e;
|
|
16
16
|
},
|
|
17
17
|
m(f, p) {
|
|
18
18
|
b(f, e, p), g(e, l), g(e, i);
|
|
19
19
|
},
|
|
20
20
|
p(f, p) {
|
|
21
|
-
t = f, p & 1 && r(l, "background-image", `url(${t[1].icon.url})`), p & 1 && n !== (n = `${t[1].icon.width / 16}rem`) && r(l, "width", n), p & 1 && c !== (c = `${t[1].icon.height / 16}rem`) && r(l, "height", c), p & 1 && o !== (o = `${t[1].positionInImage.y * 100}%`) && r(e, "top", o), p & 1 &&
|
|
21
|
+
t = f, p & 1 && r(l, "background-image", `url(${t[1].icon.url})`), p & 1 && n !== (n = `${t[1].icon.width / 16}rem`) && r(l, "width", n), p & 1 && c !== (c = `${t[1].icon.height / 16}rem`) && r(l, "height", c), p & 1 && o !== (o = `${t[1].positionInImage.y * 100}%`) && r(e, "top", o), p & 1 && a !== (a = `${t[1].positionInImage.x * 100}%`) && r(e, "left", a);
|
|
22
22
|
},
|
|
23
23
|
d(f) {
|
|
24
24
|
f && v(e);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
function O(
|
|
29
|
-
let t, e = [], l = /* @__PURE__ */ new Map(), n =
|
|
28
|
+
function O(s) {
|
|
29
|
+
let t, e = [], l = /* @__PURE__ */ new Map(), n = s[0];
|
|
30
30
|
const c = (i) => i[1].id;
|
|
31
31
|
for (let i = 0; i < n.length; i += 1) {
|
|
32
|
-
let o = d(
|
|
33
|
-
l.set(
|
|
32
|
+
let o = d(s, n, i), a = c(o);
|
|
33
|
+
l.set(a, e[i] = m(a, o));
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
c() {
|
|
@@ -41,11 +41,11 @@ function O(a) {
|
|
|
41
41
|
},
|
|
42
42
|
m(i, o) {
|
|
43
43
|
b(i, t, o);
|
|
44
|
-
for (let
|
|
45
|
-
e[
|
|
44
|
+
for (let a = 0; a < e.length; a += 1)
|
|
45
|
+
e[a].m(t, null);
|
|
46
46
|
},
|
|
47
47
|
p(i, [o]) {
|
|
48
|
-
o & 1 && (n = i[0], e = y(e, o, c, 1, i, n, l, t,
|
|
48
|
+
o & 1 && (n = i[0], e = y(e, o, c, 1, i, n, l, t, I, m, null, d));
|
|
49
49
|
},
|
|
50
50
|
i: u,
|
|
51
51
|
o: u,
|
|
@@ -56,9 +56,9 @@ function O(a) {
|
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function q(
|
|
59
|
+
function q(s, t, e) {
|
|
60
60
|
let { extraObjects: l = [] } = t;
|
|
61
|
-
return
|
|
61
|
+
return s.$$set = (n) => {
|
|
62
62
|
"extraObjects" in n && e(0, l = n.extraObjects);
|
|
63
63
|
}, [l];
|
|
64
64
|
}
|
|
@@ -68,5 +68,5 @@ class E extends j {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
export {
|
|
71
|
-
E as
|
|
71
|
+
E as ExtraObjects
|
|
72
72
|
};
|
|
@@ -1,46 +1,37 @@
|
|
|
1
|
-
import { SvelteComponent as G, init as J, safe_not_equal as K, append_styles as L, empty as Q, insert as y, transition_in as
|
|
2
|
-
import Z from "./Camera.js";
|
|
3
|
-
import x from "./CurrentFloor/CurrentFloor.js";
|
|
4
|
-
import "../../Assets/camera.js";
|
|
5
|
-
import "../../../shared-utils/throttle.js";
|
|
6
|
-
import "./CurrentFloor/ExtraObjects.js";
|
|
7
|
-
import "../../Components/BaseImage.js";
|
|
8
|
-
import "../../Components/Normalmage.js";
|
|
9
|
-
import "../../Components/SvgImage.js";
|
|
10
|
-
import "../../Components/RoomHighlight/RoomHighlight.js";
|
|
11
|
-
import "../../Components/RoomHighlight/Room.js";
|
|
12
|
-
import "../../utils/formatPosition.js";
|
|
1
|
+
import { SvelteComponent as G, init as J, safe_not_equal as K, append_styles as L, empty as Q, insert as y, transition_in as c, transition_out as g, check_outros as M, detach as k, onMount as R, element as F, attr as N, add_render_callback as T, add_resize_listener as V, group_outros as P, assign as O, create_component as U, space as X, set_style as q, mount_component as C, append as Y, get_spread_update as H, destroy_component as S } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { Camera as Z } from "./Camera.js";
|
|
3
|
+
import { CurrentFloor as x } from "./CurrentFloor/CurrentFloor.js";
|
|
13
4
|
function $(o) {
|
|
14
5
|
L(o, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
|
|
15
6
|
}
|
|
16
7
|
function W(o) {
|
|
17
|
-
let
|
|
8
|
+
let n, l, r, e = o[6] !== 0 && A(o);
|
|
18
9
|
return {
|
|
19
10
|
c() {
|
|
20
|
-
|
|
11
|
+
n = F("div"), e && e.c(), N(n, "class", "plugin-floorplan-radar svelte-1mvqyqq"), T(() => o[12].call(n));
|
|
21
12
|
},
|
|
22
13
|
m(i, f) {
|
|
23
|
-
y(i,
|
|
14
|
+
y(i, n, f), e && e.m(n, null), l = V(n, o[12].bind(n)), r = !0;
|
|
24
15
|
},
|
|
25
16
|
p(i, f) {
|
|
26
|
-
i[6] !== 0 ? e ? (e.p(i, f), f & 64 &&
|
|
17
|
+
i[6] !== 0 ? e ? (e.p(i, f), f & 64 && c(e, 1)) : (e = A(i), e.c(), c(e, 1), e.m(n, null)) : e && (P(), g(e, 1, 1, () => {
|
|
27
18
|
e = null;
|
|
28
19
|
}), M());
|
|
29
20
|
},
|
|
30
21
|
i(i) {
|
|
31
|
-
|
|
22
|
+
r || (c(e), r = !0);
|
|
32
23
|
},
|
|
33
24
|
o(i) {
|
|
34
|
-
|
|
25
|
+
g(e), r = !1;
|
|
35
26
|
},
|
|
36
27
|
d(i) {
|
|
37
|
-
i && k(
|
|
28
|
+
i && k(n), e && e.d(), l();
|
|
38
29
|
}
|
|
39
30
|
};
|
|
40
31
|
}
|
|
41
32
|
function A(o) {
|
|
42
|
-
let
|
|
43
|
-
const
|
|
33
|
+
let n, l, r, e, i = `${o[8]}px`, f = `${o[11]}px`, u;
|
|
34
|
+
const _ = [
|
|
44
35
|
{
|
|
45
36
|
five: o[0],
|
|
46
37
|
pxmm: o[9],
|
|
@@ -50,11 +41,11 @@ function A(o) {
|
|
|
50
41
|
extraObjects: o[5]
|
|
51
42
|
}
|
|
52
43
|
];
|
|
53
|
-
let
|
|
54
|
-
for (let
|
|
55
|
-
|
|
56
|
-
l = new x({ props:
|
|
57
|
-
const
|
|
44
|
+
let d = {};
|
|
45
|
+
for (let t = 0; t < _.length; t += 1)
|
|
46
|
+
d = O(d, _[t]);
|
|
47
|
+
l = new x({ props: d });
|
|
48
|
+
const h = [
|
|
58
49
|
{
|
|
59
50
|
pxmm: o[9],
|
|
60
51
|
five: o[0],
|
|
@@ -62,117 +53,117 @@ function A(o) {
|
|
|
62
53
|
cameraImageUrl: o[4]
|
|
63
54
|
}
|
|
64
55
|
];
|
|
65
|
-
let
|
|
66
|
-
for (let
|
|
67
|
-
|
|
68
|
-
return e = new Z({ props:
|
|
56
|
+
let m = {};
|
|
57
|
+
for (let t = 0; t < h.length; t += 1)
|
|
58
|
+
m = O(m, h[t]);
|
|
59
|
+
return e = new Z({ props: m }), {
|
|
69
60
|
c() {
|
|
70
|
-
|
|
61
|
+
n = F("div"), U(l.$$.fragment), r = X(), U(e.$$.fragment), N(n, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), q(n, "width", i), q(n, "height", f);
|
|
71
62
|
},
|
|
72
|
-
m(
|
|
73
|
-
y(
|
|
63
|
+
m(t, s) {
|
|
64
|
+
y(t, n, s), C(l, n, null), Y(n, r), C(e, n, null), u = !0;
|
|
74
65
|
},
|
|
75
|
-
p(
|
|
76
|
-
const
|
|
66
|
+
p(t, s) {
|
|
67
|
+
const p = s & 1581 ? H(_, [
|
|
77
68
|
{
|
|
78
|
-
five:
|
|
79
|
-
pxmm:
|
|
80
|
-
floorIndex:
|
|
81
|
-
floorplanData:
|
|
82
|
-
hoverEnable:
|
|
83
|
-
extraObjects:
|
|
69
|
+
five: t[0],
|
|
70
|
+
pxmm: t[9],
|
|
71
|
+
floorIndex: t[10],
|
|
72
|
+
floorplanData: t[3],
|
|
73
|
+
hoverEnable: t[2],
|
|
74
|
+
extraObjects: t[5]
|
|
84
75
|
}
|
|
85
76
|
]) : {};
|
|
86
|
-
l.$set(
|
|
87
|
-
const v =
|
|
77
|
+
l.$set(p);
|
|
78
|
+
const v = s & 537 ? H(h, [
|
|
88
79
|
{
|
|
89
|
-
pxmm:
|
|
90
|
-
five:
|
|
91
|
-
floorplanData:
|
|
92
|
-
cameraImageUrl:
|
|
80
|
+
pxmm: t[9],
|
|
81
|
+
five: t[0],
|
|
82
|
+
floorplanData: t[3],
|
|
83
|
+
cameraImageUrl: t[4]
|
|
93
84
|
}
|
|
94
85
|
]) : {};
|
|
95
|
-
e.$set(v),
|
|
86
|
+
e.$set(v), s & 256 && i !== (i = `${t[8]}px`) && q(n, "width", i), s & 2048 && f !== (f = `${t[11]}px`) && q(n, "height", f);
|
|
96
87
|
},
|
|
97
|
-
i(
|
|
98
|
-
|
|
88
|
+
i(t) {
|
|
89
|
+
u || (c(l.$$.fragment, t), c(e.$$.fragment, t), u = !0);
|
|
99
90
|
},
|
|
100
|
-
o(
|
|
101
|
-
|
|
91
|
+
o(t) {
|
|
92
|
+
g(l.$$.fragment, t), g(e.$$.fragment, t), u = !1;
|
|
102
93
|
},
|
|
103
|
-
d(
|
|
104
|
-
|
|
94
|
+
d(t) {
|
|
95
|
+
t && k(n), S(l), S(e);
|
|
105
96
|
}
|
|
106
97
|
};
|
|
107
98
|
}
|
|
108
99
|
function ee(o) {
|
|
109
|
-
let
|
|
100
|
+
let n, l, r = o[1] && W(o);
|
|
110
101
|
return {
|
|
111
102
|
c() {
|
|
112
|
-
|
|
103
|
+
r && r.c(), n = Q();
|
|
113
104
|
},
|
|
114
105
|
m(e, i) {
|
|
115
|
-
|
|
106
|
+
r && r.m(e, i), y(e, n, i), l = !0;
|
|
116
107
|
},
|
|
117
108
|
p(e, [i]) {
|
|
118
|
-
e[1] ?
|
|
119
|
-
|
|
109
|
+
e[1] ? r ? (r.p(e, i), i & 2 && c(r, 1)) : (r = W(e), r.c(), c(r, 1), r.m(n.parentNode, n)) : r && (P(), g(r, 1, 1, () => {
|
|
110
|
+
r = null;
|
|
120
111
|
}), M());
|
|
121
112
|
},
|
|
122
113
|
i(e) {
|
|
123
|
-
l || (
|
|
114
|
+
l || (c(r), l = !0);
|
|
124
115
|
},
|
|
125
116
|
o(e) {
|
|
126
|
-
|
|
117
|
+
g(r), l = !1;
|
|
127
118
|
},
|
|
128
119
|
d(e) {
|
|
129
|
-
|
|
120
|
+
r && r.d(e), e && k(n);
|
|
130
121
|
}
|
|
131
122
|
};
|
|
132
123
|
}
|
|
133
|
-
function
|
|
124
|
+
function ne(o, n, l) {
|
|
134
125
|
var w, D;
|
|
135
|
-
let { five:
|
|
126
|
+
let { five: r } = n, { visible: e } = n, { hoverEnable: i } = n, { floorplanData: f } = n, { cameraImageUrl: u } = n, { extraObjects: _ = [] } = n, d = 0, h = (D = (w = r.work.observers[r.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? D : 0, m = 0, t = 0, s = 0, p = 0;
|
|
136
127
|
function v(a) {
|
|
137
|
-
l(10,
|
|
128
|
+
l(10, h = r.work.observers[a].floorIndex);
|
|
138
129
|
}
|
|
139
|
-
R(() => (
|
|
140
|
-
|
|
130
|
+
R(() => (r.on("panoArrived", v), () => {
|
|
131
|
+
r.off("panoArrived", v);
|
|
141
132
|
}));
|
|
142
133
|
function B() {
|
|
143
|
-
|
|
134
|
+
m = this.clientWidth, t = this.clientHeight, l(6, m), l(7, t);
|
|
144
135
|
}
|
|
145
136
|
return o.$$set = (a) => {
|
|
146
|
-
"five" in a && l(0,
|
|
137
|
+
"five" in a && l(0, r = a.five), "visible" in a && l(1, e = a.visible), "hoverEnable" in a && l(2, i = a.hoverEnable), "floorplanData" in a && l(3, f = a.floorplanData), "cameraImageUrl" in a && l(4, u = a.cameraImageUrl), "extraObjects" in a && l(5, _ = a.extraObjects);
|
|
147
138
|
}, o.$$.update = () => {
|
|
148
139
|
if (o.$$.dirty & 456) {
|
|
149
|
-
const a = Math.min(
|
|
140
|
+
const a = Math.min(m, t), { max: j, min: z } = f.bounding, b = j.x - z.x, I = j.y - z.y, E = function() {
|
|
150
141
|
return b > I ? [a, a / b * I] : [a / I * b, a];
|
|
151
142
|
}();
|
|
152
|
-
l(8,
|
|
143
|
+
l(8, s = E[0]), l(11, p = E[1]), l(9, d = s / b);
|
|
153
144
|
}
|
|
154
145
|
}, [
|
|
155
|
-
|
|
146
|
+
r,
|
|
156
147
|
e,
|
|
157
148
|
i,
|
|
158
149
|
f,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
s,
|
|
162
|
-
r,
|
|
150
|
+
u,
|
|
151
|
+
_,
|
|
163
152
|
m,
|
|
153
|
+
t,
|
|
154
|
+
s,
|
|
155
|
+
d,
|
|
156
|
+
h,
|
|
164
157
|
p,
|
|
165
|
-
_,
|
|
166
|
-
g,
|
|
167
158
|
B
|
|
168
159
|
];
|
|
169
160
|
}
|
|
170
|
-
class
|
|
171
|
-
constructor(
|
|
161
|
+
class ie extends G {
|
|
162
|
+
constructor(n) {
|
|
172
163
|
super(), J(
|
|
173
164
|
this,
|
|
174
|
-
|
|
175
|
-
|
|
165
|
+
n,
|
|
166
|
+
ne,
|
|
176
167
|
ee,
|
|
177
168
|
K,
|
|
178
169
|
{
|
|
@@ -188,5 +179,5 @@ class _e extends G {
|
|
|
188
179
|
}
|
|
189
180
|
}
|
|
190
181
|
export {
|
|
191
|
-
|
|
182
|
+
ie as Main
|
|
192
183
|
};
|
|
@@ -1,38 +1,53 @@
|
|
|
1
1
|
var v = Object.defineProperty, A = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var m = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var f = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var l = (r, i, t) => i in r ? v(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t,
|
|
4
|
+
var S = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var l = (r, i, t) => i in r ? v(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, p = (r, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
S.call(i, t) && l(r, t, i[t]);
|
|
8
8
|
if (f)
|
|
9
9
|
for (var t of f(i))
|
|
10
|
-
|
|
10
|
+
g.call(i, t) && l(r, t, i[t]);
|
|
11
11
|
return r;
|
|
12
|
-
}, b = (r, i) => A(r,
|
|
12
|
+
}, b = (r, i) => A(r, m(i));
|
|
13
13
|
var a = (r, i, t) => (l(r, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
|
-
var
|
|
14
|
+
var c = (r, i, t) => new Promise((e, s) => {
|
|
15
15
|
var n = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
s(
|
|
17
|
+
u(t.next(h));
|
|
18
|
+
} catch (d) {
|
|
19
|
+
s(d);
|
|
20
20
|
}
|
|
21
21
|
}, o = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
s(
|
|
23
|
+
u(t.throw(h));
|
|
24
|
+
} catch (d) {
|
|
25
|
+
s(d);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, u = (h) => h.done ? e(h.value) : Promise.resolve(h.value).then(n, o);
|
|
28
|
+
u((t = t.apply(r, i)).next());
|
|
29
29
|
});
|
|
30
|
-
import
|
|
31
|
-
import { equal as
|
|
32
|
-
import { CAMERA_IMAGE as
|
|
33
|
-
import { Controller as
|
|
34
|
-
import { formatData as w, formatExtraObjects as
|
|
35
|
-
|
|
30
|
+
import { Main as _ } from "./Components/Main.js";
|
|
31
|
+
import { equal as y } from "../../shared-utils/equal.js";
|
|
32
|
+
import { CAMERA_IMAGE as D } from "../Assets/camera.js";
|
|
33
|
+
import { Controller as E } from "../../base/BasePluginWithData.js";
|
|
34
|
+
import { formatData as w, formatExtraObjects as C } from "../utils/formatData.js";
|
|
35
|
+
import "../../vendor/svelte/internal/index.js";
|
|
36
|
+
import "./Components/Camera.js";
|
|
37
|
+
import "../../shared-utils/throttle.js";
|
|
38
|
+
import "./Components/CurrentFloor/CurrentFloor.js";
|
|
39
|
+
import "./Components/CurrentFloor/ExtraObjects.js";
|
|
40
|
+
import "../Components/BaseImage.js";
|
|
41
|
+
import "../Components/Normalmage.js";
|
|
42
|
+
import "../Components/SvgImage.js";
|
|
43
|
+
import "../Components/RoomHighlight/RoomHighlight.js";
|
|
44
|
+
import "../Components/RoomHighlight/Room.js";
|
|
45
|
+
import "../utils/formatPosition.js";
|
|
46
|
+
import "../../shared-utils/isTruelyObject.js";
|
|
47
|
+
import "../../base/BasePlugin.js";
|
|
48
|
+
import "../../shared-utils/Subscribe.js";
|
|
49
|
+
import "../Assets/floorplanExtraObject.js";
|
|
50
|
+
class K extends E {
|
|
36
51
|
constructor(t, e) {
|
|
37
52
|
super(t);
|
|
38
53
|
a(this, "name", "panoFloorplanRadarPlugin");
|
|
@@ -55,21 +70,21 @@ class P extends C {
|
|
|
55
70
|
this.five = t;
|
|
56
71
|
const s = {
|
|
57
72
|
hoverEnable: !1,
|
|
58
|
-
cameraImageUrl:
|
|
59
|
-
}, n = e != null && e.configs ? e.configs : {}, o =
|
|
73
|
+
cameraImageUrl: D
|
|
74
|
+
}, n = e != null && e.configs ? e.configs : {}, o = p(p({}, s), n);
|
|
60
75
|
this.state = { enabled: !0, visible: !0, config: o }, e != null && e.wrapper && console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"), typeof (e == null ? void 0 : e.wrapper) == "string" ? this.wrapperSelector = e.wrapper : (e == null ? void 0 : e.wrapper) instanceof Element && (this.wrapper = e.wrapper), t.once("dispose", this.dispose);
|
|
61
76
|
}
|
|
62
77
|
load(t, e, s = !0) {
|
|
63
|
-
return
|
|
64
|
-
function n(
|
|
65
|
-
return Object.prototype.hasOwnProperty.apply(
|
|
78
|
+
return c(this, null, function* () {
|
|
79
|
+
function n(d) {
|
|
80
|
+
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
66
81
|
}
|
|
67
|
-
const o = JSON.parse(JSON.stringify(t)),
|
|
68
|
-
this.data = yield w(
|
|
82
|
+
const o = JSON.parse(JSON.stringify(t)), u = n(o) ? o.data : o, h = this.data;
|
|
83
|
+
this.data = yield w(u), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, h), e && this.updateState(e, s), this.render();
|
|
69
84
|
});
|
|
70
85
|
}
|
|
71
86
|
show() {
|
|
72
|
-
return
|
|
87
|
+
return c(this, arguments, function* (t = {}) {
|
|
73
88
|
if (this.state.visible)
|
|
74
89
|
return;
|
|
75
90
|
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -77,7 +92,7 @@ class P extends C {
|
|
|
77
92
|
});
|
|
78
93
|
}
|
|
79
94
|
hide() {
|
|
80
|
-
return
|
|
95
|
+
return c(this, arguments, function* (t = {}) {
|
|
81
96
|
if (!this.state.visible)
|
|
82
97
|
return;
|
|
83
98
|
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -114,10 +129,10 @@ class P extends C {
|
|
|
114
129
|
this.setState({ config: t }, { userAction: e }), this.render();
|
|
115
130
|
}
|
|
116
131
|
setExtraObjectsWith3DPositions(t) {
|
|
117
|
-
!this.data || (this.extraObjects =
|
|
132
|
+
!this.data || (this.extraObjects = C(t, this.five, this.data), this.render());
|
|
118
133
|
}
|
|
119
134
|
formatData(t) {
|
|
120
|
-
return
|
|
135
|
+
return c(this, null, function* () {
|
|
121
136
|
return yield w(t.data);
|
|
122
137
|
});
|
|
123
138
|
}
|
|
@@ -139,7 +154,7 @@ class P extends C {
|
|
|
139
154
|
}
|
|
140
155
|
updateState(t, e) {
|
|
141
156
|
const s = this.state;
|
|
142
|
-
this.state =
|
|
157
|
+
this.state = p(p({}, this.state), t), !y(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: e });
|
|
143
158
|
}
|
|
144
159
|
render() {
|
|
145
160
|
if (this.disposed || !this.state.enabled)
|
|
@@ -150,15 +165,15 @@ class P extends C {
|
|
|
150
165
|
}
|
|
151
166
|
if (!this.data || !this.wrapper)
|
|
152
167
|
return;
|
|
153
|
-
const t = b(
|
|
168
|
+
const t = b(p({}, this.state.config), {
|
|
154
169
|
five: this.five,
|
|
155
170
|
floorplanData: this.data,
|
|
156
171
|
visible: this.state.visible,
|
|
157
172
|
extraObjects: this.extraObjects
|
|
158
173
|
});
|
|
159
|
-
this.app ? this.app.$set(t) : this.app = new
|
|
174
|
+
this.app ? this.app.$set(t) : this.app = new _({ target: this.wrapper, props: t });
|
|
160
175
|
}
|
|
161
176
|
}
|
|
162
177
|
export {
|
|
163
|
-
|
|
178
|
+
K as Controller
|
|
164
179
|
};
|
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
import { Controller as
|
|
2
|
-
|
|
1
|
+
import { Controller as t } from "./Controller.js";
|
|
2
|
+
import "./Components/Main.js";
|
|
3
|
+
import "../../vendor/svelte/internal/index.js";
|
|
4
|
+
import "./Components/Camera.js";
|
|
5
|
+
import "../Assets/camera.js";
|
|
6
|
+
import "../../shared-utils/throttle.js";
|
|
7
|
+
import "./Components/CurrentFloor/CurrentFloor.js";
|
|
8
|
+
import "./Components/CurrentFloor/ExtraObjects.js";
|
|
9
|
+
import "../Components/BaseImage.js";
|
|
10
|
+
import "../Components/Normalmage.js";
|
|
11
|
+
import "../Components/SvgImage.js";
|
|
12
|
+
import "../Components/RoomHighlight/RoomHighlight.js";
|
|
13
|
+
import "../Components/RoomHighlight/Room.js";
|
|
14
|
+
import "../utils/formatPosition.js";
|
|
15
|
+
import "../../shared-utils/equal.js";
|
|
16
|
+
import "../../shared-utils/isTruelyObject.js";
|
|
17
|
+
import "../../base/BasePluginWithData.js";
|
|
18
|
+
import "../../base/BasePlugin.js";
|
|
19
|
+
import "../../shared-utils/Subscribe.js";
|
|
20
|
+
import "../utils/formatData.js";
|
|
21
|
+
import "../Assets/floorplanExtraObject.js";
|
|
22
|
+
const j = (o, r) => new t(o, r);
|
|
3
23
|
export {
|
|
4
|
-
|
|
24
|
+
j as PanoFloorplanRadarPlugin,
|
|
25
|
+
j as default
|
|
5
26
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|