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