@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
|
@@ -2,34 +2,34 @@ var w = Object.defineProperty, E = Object.defineProperties;
|
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var v = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
A.call(n,
|
|
5
|
+
var p = (h, n, t) => n in h ? w(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, l = (h, n) => {
|
|
6
|
+
for (var t in n || (n = {}))
|
|
7
|
+
A.call(n, t) && p(h, t, n[t]);
|
|
8
8
|
if (v)
|
|
9
|
-
for (var
|
|
10
|
-
C.call(n,
|
|
9
|
+
for (var t of v(n))
|
|
10
|
+
C.call(n, t) && p(h, t, n[t]);
|
|
11
11
|
return h;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var c = (h, n,
|
|
15
|
-
var
|
|
12
|
+
}, f = (h, n) => E(h, F(n));
|
|
13
|
+
var o = (h, n, t) => (p(h, typeof n != "symbol" ? n + "" : n, t), t);
|
|
14
|
+
var c = (h, n, t) => new Promise((e, i) => {
|
|
15
|
+
var s = (d) => {
|
|
16
16
|
try {
|
|
17
|
-
a(
|
|
17
|
+
a(t.next(d));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, r = (d) => {
|
|
22
22
|
try {
|
|
23
|
-
a(
|
|
23
|
+
a(t.throw(d));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (d) => d.done ?
|
|
28
|
-
a((
|
|
27
|
+
}, a = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(s, r);
|
|
28
|
+
a((t = t.apply(h, n)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as x from "three";
|
|
31
31
|
import { equal as S } from "../../shared-utils/equal.js";
|
|
32
|
-
import y from "../Components/Main.js";
|
|
32
|
+
import { Main as y } from "../Components/Main.js";
|
|
33
33
|
import { formatData as m } from "../utils/formatData.js";
|
|
34
34
|
import { CAMERA_IMAGE as I } from "../Assets/camera.js";
|
|
35
35
|
import { omit as _ } from "../../shared-utils/filter.js";
|
|
@@ -38,78 +38,107 @@ import { Controller as L } from "../../base/BasePluginWithData.js";
|
|
|
38
38
|
import { changeMode as T } from "../../shared-utils/five/changeMode.js";
|
|
39
39
|
import { getPxmm as M, getAttachedY as P } from "../../shared-utils/getPxmm.js";
|
|
40
40
|
import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
41
|
+
import "../../shared-utils/isTruelyObject.js";
|
|
42
|
+
import "../../vendor/svelte/internal/index.js";
|
|
43
|
+
import "../../vendor/svelte/transition/index.js";
|
|
44
|
+
import "../../vendor/svelte/easing/index.js";
|
|
45
|
+
import "../Components/Camera.js";
|
|
46
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
47
|
+
import "../Components/Compass.js";
|
|
48
|
+
import "../Assets/compass.js";
|
|
49
|
+
import "../Components/CurrentFloor.js";
|
|
50
|
+
import "../../vendor/svelte/store/index.js";
|
|
51
|
+
import "../Components/BaseImage.js";
|
|
52
|
+
import "../Components/Normalmage.js";
|
|
53
|
+
import "../Components/SvgImage.js";
|
|
54
|
+
import "../Components/RoomLabels/RoomLabels.js";
|
|
55
|
+
import "../Components/RoomLabels/RoomLabel.js";
|
|
56
|
+
import "../Components/RuleLabels/RuleLabels.js";
|
|
57
|
+
import "../Components/RuleLabels/RuleItem.js";
|
|
58
|
+
import "../Components/RoomMaterials/RoomMaterial.js";
|
|
59
|
+
import "../utils/formatPosition.js";
|
|
60
|
+
import "../Components/RoomMaterials/RoomMaterial_0.js";
|
|
61
|
+
import "../Components/RoomMaterials/RoomMaterial_1.js";
|
|
62
|
+
import "../Components/RoomMaterials/RoomMaterial_2.js";
|
|
63
|
+
import "../Components/RoomHighlight/RoomHighlight.js";
|
|
64
|
+
import "../Components/RoomHighlight/Room.js";
|
|
65
|
+
import "../Assets/floorplanExtraObject.js";
|
|
66
|
+
import "../../shared-utils/tap.js";
|
|
67
|
+
import "../../base/BasePlugin.js";
|
|
68
|
+
import "../../shared-utils/Subscribe.js";
|
|
69
|
+
import "../../shared-utils/nearlyEqual.js";
|
|
70
|
+
class Et extends L {
|
|
71
|
+
constructor(t, e) {
|
|
72
|
+
super(t);
|
|
73
|
+
o(this, "name", "topviewFloorplanPlugin");
|
|
74
|
+
o(this, "state");
|
|
75
|
+
o(this, "data");
|
|
76
|
+
o(this, "app");
|
|
77
|
+
o(this, "selector");
|
|
78
|
+
o(this, "panoIndex", 0);
|
|
79
|
+
o(this, "floorIndex", 0);
|
|
80
|
+
o(this, "wrapper");
|
|
81
|
+
o(this, "container", document.createElement("div"));
|
|
82
|
+
o(this, "lastPanoramaLongitude", 0);
|
|
83
|
+
o(this, "size", { width: 0, height: 0 });
|
|
84
|
+
o(this, "hasAddedEventListener", !1);
|
|
85
|
+
o(this, "isHiddenByHideFunc", !1);
|
|
86
|
+
o(this, "updateSize", () => {
|
|
58
87
|
if (!this.data || !this.container || !this.wrapper || this.five.getCurrentState().mode !== "Topview")
|
|
59
88
|
return;
|
|
60
|
-
const { min:
|
|
89
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = M(this.five, this.wrapper, this.floorIndex, r), d = Math.ceil(i * a), u = Math.ceil(s * a);
|
|
61
90
|
this.size.width === d && this.size.height === u || (this.container.style.width = d + "px", this.container.style.height = u + "px", this.size = { width: d, height: u });
|
|
62
91
|
});
|
|
63
|
-
|
|
64
|
-
var
|
|
65
|
-
this.removeEventListener(), (
|
|
92
|
+
o(this, "dispose", () => {
|
|
93
|
+
var t, e;
|
|
94
|
+
this.removeEventListener(), (t = this.app) == null || t.$destroy(), this.app = void 0, (e = this.container) == null || e.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
|
|
66
95
|
});
|
|
67
|
-
|
|
68
|
-
var i,
|
|
69
|
-
const { userAction:
|
|
70
|
-
(i = this.app) == null || i.$destroy(), this.app = void 0, (
|
|
96
|
+
o(this, "_disable", (t) => {
|
|
97
|
+
var i, s;
|
|
98
|
+
const { userAction: e } = t;
|
|
99
|
+
(i = this.app) == null || i.$destroy(), this.app = void 0, (s = this.container) == null || s.remove(), this.removeEventListener(), this.hooks.emit("disable", { userAction: e });
|
|
71
100
|
});
|
|
72
|
-
|
|
101
|
+
o(this, "onFiveModelLoaded", () => {
|
|
73
102
|
if (this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
74
103
|
return;
|
|
75
|
-
const
|
|
76
|
-
if (!
|
|
104
|
+
const t = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
105
|
+
if (!t)
|
|
77
106
|
throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");
|
|
78
|
-
this.wrapper =
|
|
107
|
+
this.wrapper = t, t.append(this.container);
|
|
79
108
|
});
|
|
80
|
-
|
|
81
|
-
|
|
109
|
+
o(this, "onFiveModeChange", (...[t, , , , e]) => {
|
|
110
|
+
t !== "Topview" && this.state.visible && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
|
|
82
111
|
});
|
|
83
|
-
|
|
84
|
-
var
|
|
85
|
-
!((
|
|
112
|
+
o(this, "onFivePanoArrived", (t) => {
|
|
113
|
+
var e;
|
|
114
|
+
!((e = this.five) != null && e.work) || (this.panoIndex = t, this.floorIndex = this.five.work.observers[t].floorIndex);
|
|
86
115
|
});
|
|
87
|
-
|
|
116
|
+
o(this, "onFiveCameraUpdate", (t, e) => {
|
|
88
117
|
!this.state.visible || (this.updatePosition(), this.updateSize());
|
|
89
118
|
});
|
|
90
|
-
|
|
91
|
-
if (!(
|
|
119
|
+
o(this, "onFiveWantsGesture", (t) => {
|
|
120
|
+
if (!(t !== "pan" && t !== "pinch" && t !== "mouseWheel") && this.state.visible && !this.state.config.gestureEnable)
|
|
92
121
|
return !1;
|
|
93
122
|
});
|
|
94
|
-
|
|
123
|
+
o(this, "onFiveWantsMoveToPano", () => {
|
|
95
124
|
if (this.state.visible && this.state.config.preventRoomClick)
|
|
96
125
|
return !1;
|
|
97
126
|
});
|
|
98
|
-
|
|
99
|
-
const { mode:
|
|
100
|
-
|
|
127
|
+
o(this, "onFiveInitAnimationEnded", (...[, , t]) => {
|
|
128
|
+
const { mode: e } = this.five.getCurrentState();
|
|
129
|
+
e === "Topview" && !this.isHiddenByHideFunc && !this.state.visible && this.state.config.autoShowEnable && (this.updateState({ visible: !0 }, t), this._show({ userAction: t }));
|
|
101
130
|
});
|
|
102
|
-
|
|
103
|
-
if (this.floorIndex !==
|
|
104
|
-
if (
|
|
105
|
-
const
|
|
106
|
-
this.floorIndex = this.five.work.observers[
|
|
131
|
+
o(this, "onModelShownFloorChange", (t) => {
|
|
132
|
+
if (this.floorIndex !== t) {
|
|
133
|
+
if (t === null) {
|
|
134
|
+
const e = this.five.getCurrentState().panoIndex;
|
|
135
|
+
this.floorIndex = this.five.work.observers[e].floorIndex;
|
|
107
136
|
return;
|
|
108
137
|
}
|
|
109
|
-
this.floorIndex =
|
|
138
|
+
this.floorIndex = t, this.updateSize(), this.render();
|
|
110
139
|
}
|
|
111
140
|
});
|
|
112
|
-
|
|
141
|
+
e != null && e.selector && (this.selector = e.selector, console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"));
|
|
113
142
|
const i = {
|
|
114
143
|
northDesc: "\u5317",
|
|
115
144
|
modelOpacity: 1,
|
|
@@ -125,121 +154,121 @@ class j extends L {
|
|
|
125
154
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
126
155
|
getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
|
|
127
156
|
getRuleDistanceText: (a) => a.toString()
|
|
128
|
-
},
|
|
157
|
+
}, s = e ? _(e, ["selector", "scale"]) : {}, r = l(l({}, i), s);
|
|
129
158
|
this.state = {
|
|
130
159
|
enabled: !0,
|
|
131
160
|
visible: !1,
|
|
132
161
|
config: r
|
|
133
|
-
}, this.initContainer(),
|
|
162
|
+
}, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
134
163
|
}
|
|
135
|
-
load(
|
|
164
|
+
load(t, e, i = !0) {
|
|
136
165
|
return c(this, null, function* () {
|
|
137
|
-
function
|
|
166
|
+
function s(g) {
|
|
138
167
|
return Object.prototype.hasOwnProperty.apply(g, ["version"]);
|
|
139
168
|
}
|
|
140
|
-
const r =
|
|
169
|
+
const r = t;
|
|
141
170
|
r && !r.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");
|
|
142
|
-
const a = JSON.parse(JSON.stringify(
|
|
143
|
-
this.data = yield m(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u),
|
|
171
|
+
const a = JSON.parse(JSON.stringify(t)), d = s(a) ? a.data : a, u = this.data;
|
|
172
|
+
this.data = yield m(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
|
|
144
173
|
});
|
|
145
174
|
}
|
|
146
175
|
updatePosition() {
|
|
147
176
|
var a;
|
|
148
|
-
const
|
|
149
|
-
if (!
|
|
177
|
+
const t = P(this.five, this.floorIndex, this.state.config.attachedTo), e = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new x.Vector3()).setY(t);
|
|
178
|
+
if (!e)
|
|
150
179
|
return;
|
|
151
|
-
const i =
|
|
152
|
-
this.container.style.left =
|
|
180
|
+
const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, r = -(i.y - 1) / 2;
|
|
181
|
+
this.container.style.left = s * 100 + "%", this.container.style.top = r * 100 + "%";
|
|
153
182
|
}
|
|
154
|
-
appendTo(
|
|
155
|
-
if (this.wrapper =
|
|
156
|
-
return
|
|
183
|
+
appendTo(t) {
|
|
184
|
+
if (this.wrapper = t, !!this.state.enabled)
|
|
185
|
+
return t.appendChild(this.container), this.render(), this;
|
|
157
186
|
}
|
|
158
187
|
show() {
|
|
159
|
-
return c(this, arguments, function* (
|
|
188
|
+
return c(this, arguments, function* (t = {}) {
|
|
160
189
|
if (this.state.visible)
|
|
161
190
|
return;
|
|
162
|
-
const
|
|
163
|
-
this.updateState({ visible: !0 },
|
|
191
|
+
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
192
|
+
this.updateState({ visible: !0 }, e), this._show({ userAction: e });
|
|
164
193
|
});
|
|
165
194
|
}
|
|
166
195
|
hide() {
|
|
167
|
-
return c(this, arguments, function* (
|
|
196
|
+
return c(this, arguments, function* (t = {}) {
|
|
168
197
|
if (this.isHiddenByHideFunc = !0, !this.state.visible)
|
|
169
198
|
return;
|
|
170
|
-
const
|
|
171
|
-
this.updateState({ visible: !1 },
|
|
199
|
+
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
200
|
+
this.updateState({ visible: !1 }, e), this._hide({ userAction: e });
|
|
172
201
|
});
|
|
173
202
|
}
|
|
174
|
-
enable(
|
|
203
|
+
enable(t = {}) {
|
|
175
204
|
if (this.state.enabled)
|
|
176
205
|
return;
|
|
177
|
-
const
|
|
178
|
-
this.updateState({ enabled: !0 },
|
|
206
|
+
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
207
|
+
this.updateState({ enabled: !0 }, t.userAction || e), this._enable({ userAction: e });
|
|
179
208
|
}
|
|
180
|
-
disable(
|
|
209
|
+
disable(t = {}) {
|
|
181
210
|
if (!this.state.enabled)
|
|
182
211
|
return;
|
|
183
|
-
const
|
|
184
|
-
this.updateState({ enabled: !1 },
|
|
212
|
+
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
213
|
+
this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
|
|
185
214
|
}
|
|
186
|
-
setState(
|
|
187
|
-
const i = this.state,
|
|
188
|
-
if (this.updateState(
|
|
189
|
-
const r = { userAction:
|
|
190
|
-
|
|
215
|
+
setState(t, e = {}) {
|
|
216
|
+
const i = this.state, s = e.userAction !== void 0 ? e.userAction : !0;
|
|
217
|
+
if (this.updateState(t, s), t.enabled !== void 0 && i.enabled !== t.enabled) {
|
|
218
|
+
const r = { userAction: s };
|
|
219
|
+
t.enabled ? this._enable(r) : this._disable(r);
|
|
191
220
|
}
|
|
192
|
-
if (
|
|
193
|
-
const r = { userAction:
|
|
194
|
-
|
|
221
|
+
if (t.visible !== void 0 && i.visible !== t.visible) {
|
|
222
|
+
const r = { userAction: s };
|
|
223
|
+
t.visible ? this._show(r) : this._hide(r);
|
|
195
224
|
}
|
|
196
225
|
}
|
|
197
|
-
changeConfigs(
|
|
198
|
-
this.updateState({ config:
|
|
226
|
+
changeConfigs(t, e = !0) {
|
|
227
|
+
this.updateState({ config: t }, e), this.render();
|
|
199
228
|
}
|
|
200
|
-
formatData(
|
|
229
|
+
formatData(t) {
|
|
201
230
|
return c(this, null, function* () {
|
|
202
|
-
return yield m(
|
|
231
|
+
return yield m(t.data);
|
|
203
232
|
});
|
|
204
233
|
}
|
|
205
|
-
_show(
|
|
234
|
+
_show(t) {
|
|
206
235
|
return c(this, null, function* () {
|
|
207
236
|
if (!this.state.enabled)
|
|
208
237
|
return;
|
|
209
238
|
this.isHiddenByHideFunc = !1;
|
|
210
|
-
const { userAction:
|
|
211
|
-
this.hooks.emit("show", { userAction:
|
|
212
|
-
const i = 500,
|
|
213
|
-
b(this.five,
|
|
239
|
+
const { userAction: e } = t;
|
|
240
|
+
this.hooks.emit("show", { userAction: e, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield T(this.five, ["Topview", void 0, void 0, e])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
|
|
241
|
+
const i = 500, s = this.state.config.modelOpacity;
|
|
242
|
+
b(this.five, s, i), this.hooks.emit("showAnimationEnded", { userAction: e, auto: !1 }), this.render();
|
|
214
243
|
});
|
|
215
244
|
}
|
|
216
|
-
_hide(
|
|
245
|
+
_hide(t) {
|
|
217
246
|
return c(this, null, function* () {
|
|
218
247
|
if (!this.state.enabled)
|
|
219
248
|
return;
|
|
220
|
-
const { userAction:
|
|
221
|
-
this.hooks.emit("hide", { userAction:
|
|
222
|
-
const i = 1,
|
|
223
|
-
b(this.five, i,
|
|
249
|
+
const { userAction: e } = t;
|
|
250
|
+
this.hooks.emit("hide", { userAction: e, auto: !1 });
|
|
251
|
+
const i = 1, s = 0;
|
|
252
|
+
b(this.five, i, s), this.render();
|
|
224
253
|
});
|
|
225
254
|
}
|
|
226
|
-
_enable(
|
|
227
|
-
const { userAction:
|
|
228
|
-
this.addEventListener(), this.wrapper && this.wrapper.append(this.container), this.hooks.emit("enable", { userAction:
|
|
255
|
+
_enable(t) {
|
|
256
|
+
const { userAction: e } = t;
|
|
257
|
+
this.addEventListener(), this.wrapper && this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e });
|
|
229
258
|
}
|
|
230
|
-
updateState(
|
|
231
|
-
const i = this.state,
|
|
232
|
-
this.state =
|
|
259
|
+
updateState(t, e) {
|
|
260
|
+
const i = this.state, s = t.config ? l(l({}, i.config), t.config) : i.config;
|
|
261
|
+
this.state = f(l(l({}, this.state), t), { config: s }), !S(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
233
262
|
}
|
|
234
263
|
addEventListener() {
|
|
235
264
|
if (!this.state.enabled || this.hasAddedEventListener)
|
|
236
265
|
return;
|
|
237
|
-
const
|
|
238
|
-
|
|
266
|
+
const t = this.five;
|
|
267
|
+
t.on("modeChange", this.onFiveModeChange), t.on("panoArrived", this.onFivePanoArrived), t.on("cameraUpdate", this.onFiveCameraUpdate), t.on("wantsGesture", this.onFiveWantsGesture), t.on("wantsMoveToPano", this.onFiveWantsMoveToPano), t.on("initAnimationEnded", this.onFiveInitAnimationEnded), t.on("modelShownFloorChange", this.onModelShownFloorChange);
|
|
239
268
|
}
|
|
240
269
|
removeEventListener() {
|
|
241
|
-
const
|
|
242
|
-
this.hasAddedEventListener = !1,
|
|
270
|
+
const t = this.five;
|
|
271
|
+
this.hasAddedEventListener = !1, t.off("modeChange", this.onFiveModeChange), t.off("panoArrived", this.onFivePanoArrived), t.off("cameraUpdate", this.onFiveCameraUpdate), t.off("wantsGesture", this.onFiveWantsGesture), t.off("wantsMoveToPano", this.onFiveWantsMoveToPano), t.off("initAnimationEnded", this.onFiveInitAnimationEnded), t.off("modelShownFloorChange", this.onModelShownFloorChange);
|
|
243
272
|
}
|
|
244
273
|
initContainer() {
|
|
245
274
|
this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
|
|
@@ -252,22 +281,22 @@ class j extends L {
|
|
|
252
281
|
"will-change": "width, height"
|
|
253
282
|
}), this.five.addExtraElement(this.container);
|
|
254
283
|
}
|
|
255
|
-
render(
|
|
284
|
+
render(t) {
|
|
256
285
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
257
286
|
return;
|
|
258
|
-
const
|
|
287
|
+
const e = f(l({}, this.state.config), {
|
|
259
288
|
visible: this.state.visible,
|
|
260
|
-
duration:
|
|
289
|
+
duration: t != null ? t : 0,
|
|
261
290
|
panoIndex: this.panoIndex,
|
|
262
291
|
floorIndex: this.floorIndex,
|
|
263
292
|
floorplanData: this.data,
|
|
264
293
|
lastPanoramaLongitude: this.lastPanoramaLongitude
|
|
265
294
|
});
|
|
266
295
|
if (this.app)
|
|
267
|
-
return this.app.$set(
|
|
268
|
-
this.app = new y({ target: this.container, intro: !0, props:
|
|
296
|
+
return this.app.$set(e);
|
|
297
|
+
this.app = new y({ target: this.container, intro: !0, props: e });
|
|
269
298
|
}
|
|
270
299
|
}
|
|
271
300
|
export {
|
|
272
|
-
|
|
301
|
+
Et as Controller
|
|
273
302
|
};
|
|
@@ -1,5 +1,46 @@
|
|
|
1
|
-
import { Controller as
|
|
2
|
-
|
|
1
|
+
import { Controller as t } from "./Controller.js";
|
|
2
|
+
import "three";
|
|
3
|
+
import "../../shared-utils/equal.js";
|
|
4
|
+
import "../../shared-utils/isTruelyObject.js";
|
|
5
|
+
import "../Components/Main.js";
|
|
6
|
+
import "../../vendor/svelte/internal/index.js";
|
|
7
|
+
import "../../vendor/svelte/transition/index.js";
|
|
8
|
+
import "../../vendor/svelte/easing/index.js";
|
|
9
|
+
import "../Components/Camera.js";
|
|
10
|
+
import "../Assets/camera.js";
|
|
11
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
12
|
+
import "../Components/Compass.js";
|
|
13
|
+
import "../Assets/compass.js";
|
|
14
|
+
import "../Components/CurrentFloor.js";
|
|
15
|
+
import "../../vendor/svelte/store/index.js";
|
|
16
|
+
import "../Components/BaseImage.js";
|
|
17
|
+
import "../Components/Normalmage.js";
|
|
18
|
+
import "../Components/SvgImage.js";
|
|
19
|
+
import "../Components/RoomLabels/RoomLabels.js";
|
|
20
|
+
import "../Components/RoomLabels/RoomLabel.js";
|
|
21
|
+
import "../Components/RuleLabels/RuleLabels.js";
|
|
22
|
+
import "../Components/RuleLabels/RuleItem.js";
|
|
23
|
+
import "../Components/RoomMaterials/RoomMaterial.js";
|
|
24
|
+
import "../utils/formatPosition.js";
|
|
25
|
+
import "../Components/RoomMaterials/RoomMaterial_0.js";
|
|
26
|
+
import "../Components/RoomMaterials/RoomMaterial_1.js";
|
|
27
|
+
import "../Components/RoomMaterials/RoomMaterial_2.js";
|
|
28
|
+
import "../Components/RoomHighlight/RoomHighlight.js";
|
|
29
|
+
import "../Components/RoomHighlight/Room.js";
|
|
30
|
+
import "../utils/formatData.js";
|
|
31
|
+
import "../Assets/floorplanExtraObject.js";
|
|
32
|
+
import "../../shared-utils/filter.js";
|
|
33
|
+
import "../../shared-utils/tap.js";
|
|
34
|
+
import "../constant.js";
|
|
35
|
+
import "../../base/BasePluginWithData.js";
|
|
36
|
+
import "../../base/BasePlugin.js";
|
|
37
|
+
import "../../shared-utils/Subscribe.js";
|
|
38
|
+
import "../../shared-utils/five/changeMode.js";
|
|
39
|
+
import "../../shared-utils/nearlyEqual.js";
|
|
40
|
+
import "../../shared-utils/getPxmm.js";
|
|
41
|
+
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
|
+
const R = (o, r) => new t(o, r);
|
|
3
43
|
export {
|
|
4
|
-
|
|
44
|
+
R as TopviewFloorplanPlugin,
|
|
45
|
+
R as default
|
|
5
46
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pluginStyle: Partial<CSSStyleDeclaration>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|