@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,5 +1,5 @@
|
|
|
1
|
-
import { SvelteComponent as I, init as j, safe_not_equal as L, append_styles as z, element as W, attr as H, set_style as _, insert as k,
|
|
2
|
-
import G from "./RuleItem.js";
|
|
1
|
+
import { SvelteComponent as I, init as j, safe_not_equal as L, append_styles as z, element as W, attr as H, set_style as _, insert as k, group_outros as O, update_keyed_each as q, outro_and_destroy_block as A, check_outros as C, transition_in as R, transition_out as w, detach as T, assign as K, empty as M, create_component as S, mount_component as B, get_spread_update as E, destroy_component as F } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { RuleItem as G } from "./RuleItem.js";
|
|
3
3
|
function J(o) {
|
|
4
4
|
z(o, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
|
|
5
5
|
}
|
|
@@ -19,19 +19,19 @@ function b(o, l) {
|
|
|
19
19
|
];
|
|
20
20
|
let s = {};
|
|
21
21
|
for (let e = 0; e < a.length; e += 1)
|
|
22
|
-
s =
|
|
22
|
+
s = K(s, a[e]);
|
|
23
23
|
return r = new G({ props: s }), {
|
|
24
24
|
key: o,
|
|
25
25
|
first: null,
|
|
26
26
|
c() {
|
|
27
|
-
t =
|
|
27
|
+
t = M(), S(r.$$.fragment), this.first = t;
|
|
28
28
|
},
|
|
29
29
|
m(e, n) {
|
|
30
|
-
k(e, t, n),
|
|
30
|
+
k(e, t, n), B(r, e, n), i = !0;
|
|
31
31
|
},
|
|
32
32
|
p(e, n) {
|
|
33
33
|
l = e;
|
|
34
|
-
const u = n & 19 ?
|
|
34
|
+
const u = n & 19 ? E(a, [
|
|
35
35
|
{
|
|
36
36
|
type: l[13],
|
|
37
37
|
data: l[14],
|
|
@@ -48,7 +48,7 @@ function b(o, l) {
|
|
|
48
48
|
w(r.$$.fragment, e), i = !1;
|
|
49
49
|
},
|
|
50
50
|
d(e) {
|
|
51
|
-
e && T(t),
|
|
51
|
+
e && T(t), F(r, e);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -73,7 +73,7 @@ function N(o) {
|
|
|
73
73
|
i = !0;
|
|
74
74
|
},
|
|
75
75
|
p(e, [n]) {
|
|
76
|
-
n & 19 && (a = e[4],
|
|
76
|
+
n & 19 && (a = e[4], O(), t = q(t, n, s, 1, e, a, r, l, A, b, null, y), C()), n & 8 && _(l, "width", e[3]), n & 4 && _(l, "height", e[2]);
|
|
77
77
|
},
|
|
78
78
|
i(e) {
|
|
79
79
|
if (!i) {
|
|
@@ -96,18 +96,18 @@ function N(o) {
|
|
|
96
96
|
}
|
|
97
97
|
const D = 1e3, x = 180;
|
|
98
98
|
function P(o, l, t) {
|
|
99
|
-
let r, i, a, s, e, n, u, m,
|
|
99
|
+
let r, i, a, s, e, n, u, m, d, p, { floorIndex: g } = l, { floorplanData: c } = l, { getRuleDistanceText: h } = l;
|
|
100
100
|
return o.$$set = (f) => {
|
|
101
|
-
"floorIndex" in f && t(5,
|
|
101
|
+
"floorIndex" in f && t(5, g = f.floorIndex), "floorplanData" in f && t(6, c = f.floorplanData), "getRuleDistanceText" in f && t(0, h = f.getRuleDistanceText);
|
|
102
102
|
}, o.$$.update = () => {
|
|
103
|
-
o.$$.dirty & 64 && t(1, r = c.bounding), o.$$.dirty & 96 && t(11, i = c.floorDatas[
|
|
103
|
+
o.$$.dirty & 64 && t(1, r = c.bounding), o.$$.dirty & 96 && t(11, i = c.floorDatas[g].rules), o.$$.dirty & 2048 && t(12, a = Object.keys(i)), o.$$.dirty & 6144 && t(4, s = a.map((f) => [f, i[f]])), o.$$.dirty & 2 && t(9, e = r.max.x - r.min.x), o.$$.dirty & 2 && t(7, n = r.max.y - r.min.y), o.$$.dirty & 2 && t(10, u = r.max.x - r.min.x - (D - x) * 2), o.$$.dirty & 2 && t(8, m = r.max.y - r.min.y - (D - x) * 2), o.$$.dirty & 1536 && t(3, d = u / e * 100 + "%"), o.$$.dirty & 384 && t(2, p = m / n * 100 + "%");
|
|
104
104
|
}, [
|
|
105
105
|
h,
|
|
106
106
|
r,
|
|
107
107
|
p,
|
|
108
|
-
g,
|
|
109
|
-
s,
|
|
110
108
|
d,
|
|
109
|
+
s,
|
|
110
|
+
g,
|
|
111
111
|
c,
|
|
112
112
|
n,
|
|
113
113
|
m,
|
|
@@ -135,5 +135,5 @@ class V extends I {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
export {
|
|
138
|
-
V as
|
|
138
|
+
V as RuleLabels
|
|
139
139
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { SvelteComponent as p, init as r, safe_not_equal as g, append_styles as c, element as u, space as m, attr as _, insert as d, append as v, noop as
|
|
1
|
+
import { SvelteComponent as p, init as r, safe_not_equal as g, append_styles as c, element as u, HtmlTag as o, space as m, attr as _, insert as d, append as v, noop as i, detach as y } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
function h(n) {
|
|
3
3
|
c(n, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
4
4
|
}
|
|
5
5
|
function b(n) {
|
|
6
|
-
let e,
|
|
6
|
+
let e, a, l, f;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
|
-
e = u("div"),
|
|
9
|
+
e = u("div"), a = new o(!1), l = m(), f = new o(!1), a.a = l, f.a = null, _(e, "class", "floorplan-plugin__base-image svelte-ub47ya");
|
|
10
10
|
},
|
|
11
11
|
m(t, s) {
|
|
12
|
-
d(t, e, s),
|
|
12
|
+
d(t, e, s), a.m(n[1], e), v(e, l), f.m(n[0], e);
|
|
13
13
|
},
|
|
14
14
|
p(t, [s]) {
|
|
15
|
-
s & 1 &&
|
|
15
|
+
s & 1 && f.p(t[0]);
|
|
16
16
|
},
|
|
17
|
-
i
|
|
18
|
-
o,
|
|
17
|
+
i,
|
|
18
|
+
o: i,
|
|
19
19
|
d(t) {
|
|
20
20
|
t && y(e);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function w(n, e,
|
|
24
|
+
function w(n, e, a) {
|
|
25
25
|
let { content: l } = e;
|
|
26
|
-
const
|
|
26
|
+
const f = `
|
|
27
27
|
<style>
|
|
28
28
|
svg [type='lineGroup'] path {
|
|
29
29
|
fill: #ffffff;
|
|
@@ -34,8 +34,8 @@ function w(n, e, f) {
|
|
|
34
34
|
}</style>
|
|
35
35
|
`;
|
|
36
36
|
return n.$$set = (t) => {
|
|
37
|
-
"content" in t &&
|
|
38
|
-
}, [l,
|
|
37
|
+
"content" in t && a(0, l = t.content);
|
|
38
|
+
}, [l, f];
|
|
39
39
|
}
|
|
40
40
|
class k extends p {
|
|
41
41
|
constructor(e) {
|
|
@@ -43,5 +43,5 @@ class k extends p {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
export {
|
|
46
|
-
k as
|
|
46
|
+
k as SvgImage
|
|
47
47
|
};
|
|
@@ -2,35 +2,35 @@ var E = Object.defineProperty, F = Object.defineProperties;
|
|
|
2
2
|
var C = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var b = Object.getOwnPropertySymbols;
|
|
4
4
|
var P = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var m = (h, n, t) => n in h ? E(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, l = (h, n) => {
|
|
6
6
|
for (var t in n || (n = {}))
|
|
7
|
-
P.call(n, t) &&
|
|
7
|
+
P.call(n, t) && m(h, t, n[t]);
|
|
8
8
|
if (b)
|
|
9
9
|
for (var t of b(n))
|
|
10
|
-
y.call(n, t) &&
|
|
10
|
+
y.call(n, t) && m(h, t, n[t]);
|
|
11
11
|
return h;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, v = (h, n) => F(h, C(n));
|
|
13
|
+
var o = (h, n, t) => (m(h, typeof n != "symbol" ? n + "" : n, t), t);
|
|
14
14
|
var c = (h, n, t) => new Promise((e, i) => {
|
|
15
|
-
var
|
|
15
|
+
var s = (d) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
r(t.next(d));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (d) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
r(t.throw(d));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, r = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(s, a);
|
|
28
|
+
r((t = t.apply(h, n)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as x from "three";
|
|
31
31
|
import { to as I } from "../../shared-utils/to.js";
|
|
32
32
|
import { equal as M } from "../../shared-utils/equal.js";
|
|
33
|
-
import L from "../Components/Main.js";
|
|
33
|
+
import { Main as L } from "../Components/Main.js";
|
|
34
34
|
import { formatData as g } from "../utils/formatData.js";
|
|
35
35
|
import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
|
|
36
36
|
import { omit as D } from "../../shared-utils/filter.js";
|
|
@@ -40,6 +40,36 @@ import { getPxmm as k, getAttachedY as B } from "../../shared-utils/getPxmm.js";
|
|
|
40
40
|
import { checkShowState as H, correctFiveState as R } from "../utils/correctFiveState.js";
|
|
41
41
|
import { changeModelCanvasOpacity as S } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
42
|
import { FloorplanErrorType as f, SHOW_ANIME_DURATION as G } from "../utils/constant.js";
|
|
43
|
+
import "../../shared-utils/isTruelyObject.js";
|
|
44
|
+
import "../../vendor/svelte/internal/index.js";
|
|
45
|
+
import "../../vendor/svelte/transition/index.js";
|
|
46
|
+
import "../../vendor/svelte/easing/index.js";
|
|
47
|
+
import "../Components/Camera.js";
|
|
48
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
49
|
+
import "../Components/Compass.js";
|
|
50
|
+
import "../Assets/compass.js";
|
|
51
|
+
import "../Components/CurrentFloor.js";
|
|
52
|
+
import "../../vendor/svelte/store/index.js";
|
|
53
|
+
import "../Components/BaseImage.js";
|
|
54
|
+
import "../Components/Normalmage.js";
|
|
55
|
+
import "../Components/SvgImage.js";
|
|
56
|
+
import "../Components/RoomLabels/RoomLabels.js";
|
|
57
|
+
import "../Components/RoomLabels/RoomLabel.js";
|
|
58
|
+
import "../Components/RuleLabels/RuleLabels.js";
|
|
59
|
+
import "../Components/RuleLabels/RuleItem.js";
|
|
60
|
+
import "../Components/RoomMaterials/RoomMaterial.js";
|
|
61
|
+
import "../utils/formatPosition.js";
|
|
62
|
+
import "../Components/RoomMaterials/RoomMaterial_0.js";
|
|
63
|
+
import "../Components/RoomMaterials/RoomMaterial_1.js";
|
|
64
|
+
import "../Components/RoomMaterials/RoomMaterial_2.js";
|
|
65
|
+
import "../Components/RoomHighlight/RoomHighlight.js";
|
|
66
|
+
import "../Components/RoomHighlight/Room.js";
|
|
67
|
+
import "../Assets/floorplanExtraObject.js";
|
|
68
|
+
import "../../shared-utils/tap.js";
|
|
69
|
+
import "../../base/BasePlugin.js";
|
|
70
|
+
import "../../shared-utils/Subscribe.js";
|
|
71
|
+
import "../../shared-utils/nearlyEqual.js";
|
|
72
|
+
import "../../shared-utils/five/changeMode.js";
|
|
43
73
|
function W(h) {
|
|
44
74
|
const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
45
75
|
return e || i;
|
|
@@ -48,58 +78,58 @@ function z(h) {
|
|
|
48
78
|
const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
49
79
|
return e && i;
|
|
50
80
|
}
|
|
51
|
-
class
|
|
81
|
+
class _t extends T {
|
|
52
82
|
constructor(t, e) {
|
|
53
83
|
super(t);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
84
|
+
o(this, "name", "modelFloorplanPlugin");
|
|
85
|
+
o(this, "state");
|
|
86
|
+
o(this, "data");
|
|
87
|
+
o(this, "showState");
|
|
88
|
+
o(this, "showPromise");
|
|
89
|
+
o(this, "app");
|
|
90
|
+
o(this, "panoIndex", 0);
|
|
91
|
+
o(this, "floorIndex", 0);
|
|
92
|
+
o(this, "selector");
|
|
93
|
+
o(this, "showRejection");
|
|
94
|
+
o(this, "wrapper");
|
|
95
|
+
o(this, "container", document.createElement("div"));
|
|
96
|
+
o(this, "lastPanoramaLongitude", 0);
|
|
97
|
+
o(this, "size", { width: 0, height: 0 });
|
|
98
|
+
o(this, "hasAddedEventListener", !1);
|
|
99
|
+
o(this, "isHiddenByHideFunc", !1);
|
|
100
|
+
o(this, "dispose", () => {
|
|
71
101
|
var t, e;
|
|
72
102
|
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");
|
|
73
103
|
});
|
|
74
|
-
|
|
104
|
+
o(this, "show", (...e) => c(this, [...e], function* (t = {}) {
|
|
75
105
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
76
106
|
return;
|
|
77
107
|
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
78
108
|
this.updateState({ visible: !0 }, i), this._show(t);
|
|
79
109
|
}));
|
|
80
|
-
|
|
110
|
+
o(this, "hide", (...e) => c(this, [...e], function* (t = {}) {
|
|
81
111
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, t.userAction || !0), this._hide(t)));
|
|
82
112
|
}));
|
|
83
|
-
|
|
113
|
+
o(this, "updateSize", () => {
|
|
84
114
|
if (!this.data || !H(this.five, this.showState) || !this.container || !this.wrapper)
|
|
85
115
|
return;
|
|
86
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x,
|
|
116
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, a = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = k(this.five, this.wrapper, this.floorIndex, a), d = Math.ceil(i * r), u = Math.ceil(s * r);
|
|
87
117
|
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 });
|
|
88
118
|
});
|
|
89
|
-
|
|
90
|
-
var i,
|
|
119
|
+
o(this, "_disable", (t) => {
|
|
120
|
+
var i, s, a;
|
|
91
121
|
const { userAction: e } = t;
|
|
92
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (
|
|
122
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (a = this.container) == null || a.remove(), this.removeEventListener();
|
|
93
123
|
});
|
|
94
|
-
|
|
124
|
+
o(this, "_enable", (t) => {
|
|
95
125
|
const { userAction: e } = t;
|
|
96
126
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
|
|
97
127
|
});
|
|
98
|
-
|
|
99
|
-
var
|
|
128
|
+
o(this, "_show", (t) => c(this, null, function* () {
|
|
129
|
+
var a;
|
|
100
130
|
if (!this.state.enabled)
|
|
101
131
|
return;
|
|
102
|
-
if (!((
|
|
132
|
+
if (!((a = this.five.model) != null && a.loaded))
|
|
103
133
|
throw new Error(f.ModelNotLoaded);
|
|
104
134
|
if (!this.data)
|
|
105
135
|
throw new Error(f.DataNotLoaded);
|
|
@@ -110,49 +140,49 @@ class et extends T {
|
|
|
110
140
|
immediately: !1,
|
|
111
141
|
isAutoShow: !1,
|
|
112
142
|
userAction: !0
|
|
113
|
-
}, i = l(l({}, e), t),
|
|
143
|
+
}, i = l(l({}, e), t), s = () => c(this, null, function* () {
|
|
114
144
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
115
|
-
let
|
|
145
|
+
let r = !1, d;
|
|
116
146
|
this.showRejection = (A) => {
|
|
117
|
-
|
|
147
|
+
r = !0, d = A;
|
|
118
148
|
};
|
|
119
149
|
const [u] = yield I(R(this.five, this.showState, i.userAction));
|
|
120
150
|
if (u)
|
|
121
151
|
throw u;
|
|
122
|
-
if (
|
|
152
|
+
if (r)
|
|
123
153
|
throw d ? new Error(d) : new Error(f.UnknownError);
|
|
124
154
|
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
125
155
|
const p = i.modelOpacity, w = i.immediately ? 0 : G;
|
|
126
156
|
S(this.five, p, w), this.render(w);
|
|
127
157
|
});
|
|
128
|
-
return this.showPromise =
|
|
158
|
+
return this.showPromise = s().then(() => {
|
|
129
159
|
this.hooks.emit("showAnimationEnded", {
|
|
130
160
|
auto: i.isAutoShow,
|
|
131
161
|
userAction: i.userAction
|
|
132
162
|
});
|
|
133
|
-
}).catch((
|
|
134
|
-
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow &&
|
|
135
|
-
throw
|
|
163
|
+
}).catch((r) => {
|
|
164
|
+
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && r instanceof Error)
|
|
165
|
+
throw r;
|
|
136
166
|
}).finally(() => {
|
|
137
167
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
138
168
|
}), this.showPromise;
|
|
139
169
|
}));
|
|
140
|
-
|
|
141
|
-
var
|
|
142
|
-
(
|
|
170
|
+
o(this, "_hide", (t) => {
|
|
171
|
+
var s;
|
|
172
|
+
(s = this.showRejection) == null || s.call(this, f.BreakOffByHide), this.showPromise = void 0;
|
|
143
173
|
const i = l(l({}, {
|
|
144
174
|
userAction: !0,
|
|
145
175
|
isAutoHide: !1
|
|
146
176
|
}), t);
|
|
147
177
|
S(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
148
178
|
});
|
|
149
|
-
|
|
179
|
+
o(this, "handleClick", () => {
|
|
150
180
|
if (!this.state.visible)
|
|
151
181
|
return;
|
|
152
182
|
if (this.hooks.emit("click"))
|
|
153
183
|
return !1;
|
|
154
184
|
});
|
|
155
|
-
|
|
185
|
+
o(this, "onFiveModelLoaded", () => {
|
|
156
186
|
if (this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
157
187
|
return;
|
|
158
188
|
const t = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
@@ -160,20 +190,20 @@ class et extends T {
|
|
|
160
190
|
throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");
|
|
161
191
|
this.wrapper = t, t.append(this.container);
|
|
162
192
|
});
|
|
163
|
-
|
|
193
|
+
o(this, "onFiveModeChange", (t) => {
|
|
164
194
|
t !== this.showState.mode && (this.updateState({ visible: !1 }, !1), this._hide({ userAction: !1 }));
|
|
165
195
|
});
|
|
166
|
-
|
|
196
|
+
o(this, "onFivePanoArrived", (t) => {
|
|
167
197
|
var e;
|
|
168
198
|
!((e = this.five) != null && e.work) || (this.panoIndex = t, this.floorIndex = this.five.work.observers[t].floorIndex);
|
|
169
199
|
});
|
|
170
|
-
|
|
200
|
+
o(this, "onFiveCameraUpdate", (t, e) => {
|
|
171
201
|
if (!this.state.visible || this.showPromise)
|
|
172
202
|
return;
|
|
173
203
|
const i = this.five.getCurrentState();
|
|
174
204
|
this.updatePosition(), this.updateSize(), W(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
|
|
175
205
|
});
|
|
176
|
-
|
|
206
|
+
o(this, "onFiveWantsPanGesture", (t, e) => {
|
|
177
207
|
if (this.five.getCurrentState().mode === this.showState.mode && this.state.config.autoShowEnable !== !1) {
|
|
178
208
|
if (e && this.state.visible)
|
|
179
209
|
return this.five.updateCamera(this.showState, 0), !1;
|
|
@@ -185,11 +215,11 @@ class et extends T {
|
|
|
185
215
|
}
|
|
186
216
|
}
|
|
187
217
|
});
|
|
188
|
-
|
|
189
|
-
|
|
218
|
+
o(this, "onFiveWantsTapGesture", () => this.handleClick());
|
|
219
|
+
o(this, "onFiveWantsChangeMode", (t, e) => {
|
|
190
220
|
e === "Panorama" && t === this.showState.mode && (this.lastPanoramaLongitude = this.five.getCurrentState().longitude);
|
|
191
221
|
});
|
|
192
|
-
|
|
222
|
+
o(this, "onModelShownFloorChange", (t) => {
|
|
193
223
|
if (this.floorIndex !== t) {
|
|
194
224
|
if (t === null) {
|
|
195
225
|
const e = this.five.getCurrentState().panoIndex;
|
|
@@ -217,23 +247,23 @@ class et extends T {
|
|
|
217
247
|
attachedTo: O.BOUNDING_CENTER,
|
|
218
248
|
getLabelElement: void 0,
|
|
219
249
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
220
|
-
getRoomAreaText: (
|
|
221
|
-
getRuleDistanceText: (
|
|
222
|
-
},
|
|
250
|
+
getRoomAreaText: (r) => (r / 1e6).toFixed(1) + "\u33A1",
|
|
251
|
+
getRuleDistanceText: (r) => r.toString()
|
|
252
|
+
}, s = e ? D(e, ["selector", "scale"]) : {}, a = l(l({}, i), s);
|
|
223
253
|
this.state = {
|
|
224
254
|
enabled: !0,
|
|
225
255
|
visible: !1,
|
|
226
|
-
config:
|
|
256
|
+
config: a
|
|
227
257
|
}, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
228
258
|
}
|
|
229
259
|
load(t, e, i = !0) {
|
|
230
260
|
return c(this, null, function* () {
|
|
231
|
-
function
|
|
261
|
+
function s(p) {
|
|
232
262
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
233
263
|
}
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
const
|
|
264
|
+
const a = t;
|
|
265
|
+
a && !a.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");
|
|
266
|
+
const r = JSON.parse(JSON.stringify(t)), d = s(r) ? r.data : r, u = this.data;
|
|
237
267
|
this.data = yield g(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
|
|
238
268
|
});
|
|
239
269
|
}
|
|
@@ -254,22 +284,22 @@ class et extends T {
|
|
|
254
284
|
this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
|
|
255
285
|
}
|
|
256
286
|
setState(t, e = {}) {
|
|
257
|
-
const i = this.state,
|
|
258
|
-
if (this.updateState(t,
|
|
259
|
-
const
|
|
260
|
-
t.visible ? this._show(
|
|
287
|
+
const i = this.state, s = e.userAction !== void 0 ? e.userAction : !0;
|
|
288
|
+
if (this.updateState(t, s), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
289
|
+
const a = { userAction: s };
|
|
290
|
+
t.visible ? this._show(a) : this._hide(a);
|
|
261
291
|
}
|
|
262
292
|
}
|
|
263
293
|
changeConfigs(t, e = !0) {
|
|
264
294
|
this.updateState({ config: t }, e), this.render();
|
|
265
295
|
}
|
|
266
296
|
updatePosition() {
|
|
267
|
-
var
|
|
268
|
-
const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (
|
|
297
|
+
var r;
|
|
298
|
+
const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (r = this.five.model) == null ? void 0 : r.bounding.getCenter(new x.Vector3()).setY(t);
|
|
269
299
|
if (!e)
|
|
270
300
|
return;
|
|
271
|
-
const i = e.clone().project(this.five.camera),
|
|
272
|
-
this.container.style.left =
|
|
301
|
+
const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, a = -(i.y - 1) / 2;
|
|
302
|
+
this.container.style.left = s * 100 + "%", this.container.style.top = a * 100 + "%";
|
|
273
303
|
}
|
|
274
304
|
formatData(t) {
|
|
275
305
|
return c(this, null, function* () {
|
|
@@ -277,8 +307,8 @@ class et extends T {
|
|
|
277
307
|
});
|
|
278
308
|
}
|
|
279
309
|
updateState(t, e) {
|
|
280
|
-
const i = this.state,
|
|
281
|
-
this.state =
|
|
310
|
+
const i = this.state, s = t.config ? l(l({}, i.config), t.config) : i.config;
|
|
311
|
+
this.state = v(l(l({}, this.state), t), { config: s }), !M(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
282
312
|
}
|
|
283
313
|
initContainer() {
|
|
284
314
|
this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
|
|
@@ -303,7 +333,7 @@ class et extends T {
|
|
|
303
333
|
render(t) {
|
|
304
334
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
305
335
|
return;
|
|
306
|
-
const e =
|
|
336
|
+
const e = v(l({}, this.state.config), {
|
|
307
337
|
visible: this.state.visible,
|
|
308
338
|
duration: t != null ? t : 0,
|
|
309
339
|
panoIndex: this.panoIndex,
|
|
@@ -317,5 +347,5 @@ class et extends T {
|
|
|
317
347
|
}
|
|
318
348
|
}
|
|
319
349
|
export {
|
|
320
|
-
|
|
350
|
+
_t as Controller
|
|
321
351
|
};
|
|
@@ -1,5 +1,49 @@
|
|
|
1
|
-
import { Controller as
|
|
2
|
-
|
|
1
|
+
import { Controller as t } from "./Controller.js";
|
|
2
|
+
import "three";
|
|
3
|
+
import "../../shared-utils/to.js";
|
|
4
|
+
import "../../shared-utils/equal.js";
|
|
5
|
+
import "../../shared-utils/isTruelyObject.js";
|
|
6
|
+
import "../Components/Main.js";
|
|
7
|
+
import "../../vendor/svelte/internal/index.js";
|
|
8
|
+
import "../../vendor/svelte/transition/index.js";
|
|
9
|
+
import "../../vendor/svelte/easing/index.js";
|
|
10
|
+
import "../Components/Camera.js";
|
|
11
|
+
import "../Assets/camera.js";
|
|
12
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
13
|
+
import "../Components/Compass.js";
|
|
14
|
+
import "../Assets/compass.js";
|
|
15
|
+
import "../Components/CurrentFloor.js";
|
|
16
|
+
import "../../vendor/svelte/store/index.js";
|
|
17
|
+
import "../Components/BaseImage.js";
|
|
18
|
+
import "../Components/Normalmage.js";
|
|
19
|
+
import "../Components/SvgImage.js";
|
|
20
|
+
import "../Components/RoomLabels/RoomLabels.js";
|
|
21
|
+
import "../Components/RoomLabels/RoomLabel.js";
|
|
22
|
+
import "../Components/RuleLabels/RuleLabels.js";
|
|
23
|
+
import "../Components/RuleLabels/RuleItem.js";
|
|
24
|
+
import "../Components/RoomMaterials/RoomMaterial.js";
|
|
25
|
+
import "../utils/formatPosition.js";
|
|
26
|
+
import "../Components/RoomMaterials/RoomMaterial_0.js";
|
|
27
|
+
import "../Components/RoomMaterials/RoomMaterial_1.js";
|
|
28
|
+
import "../Components/RoomMaterials/RoomMaterial_2.js";
|
|
29
|
+
import "../Components/RoomHighlight/RoomHighlight.js";
|
|
30
|
+
import "../Components/RoomHighlight/Room.js";
|
|
31
|
+
import "../utils/formatData.js";
|
|
32
|
+
import "../Assets/floorplanExtraObject.js";
|
|
33
|
+
import "../../shared-utils/filter.js";
|
|
34
|
+
import "../../shared-utils/tap.js";
|
|
35
|
+
import "../constant.js";
|
|
36
|
+
import "../../base/BasePluginWithData.js";
|
|
37
|
+
import "../../base/BasePlugin.js";
|
|
38
|
+
import "../../shared-utils/Subscribe.js";
|
|
39
|
+
import "../../shared-utils/getPxmm.js";
|
|
40
|
+
import "../utils/correctFiveState.js";
|
|
41
|
+
import "../utils/constant.js";
|
|
42
|
+
import "../../shared-utils/nearlyEqual.js";
|
|
43
|
+
import "../../shared-utils/five/changeMode.js";
|
|
44
|
+
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
45
|
+
const V = (o, r) => new t(o, r);
|
|
3
46
|
export {
|
|
4
|
-
|
|
47
|
+
V as MapviewFloorplanPlugin,
|
|
48
|
+
V as default
|
|
5
49
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|