@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
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var a = (n, r, e) => r in n ? i(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var d = (n, r, e) => (a(n, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
|
+
import * as c from "three";
|
|
5
|
+
import { getAllCSS3DObject as o } from "../getAllCSS3DObject.js";
|
|
6
|
+
class m extends c.Scene {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
add(...r) {
|
|
11
|
+
return super.add(...r), o(...r).forEach((e) => {
|
|
12
|
+
e.mode = "front";
|
|
13
|
+
}), this;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class p extends c.Scene {
|
|
17
|
+
constructor(e) {
|
|
18
|
+
super();
|
|
19
|
+
d(this, "scene");
|
|
20
|
+
if (!e)
|
|
21
|
+
throw new Error("CSS3DBehindScene: scene is required");
|
|
22
|
+
this.scene = e;
|
|
23
|
+
}
|
|
24
|
+
add(...e) {
|
|
25
|
+
return super.add(...e), o(...e).forEach((t) => {
|
|
26
|
+
t.mode = "behind", this.scene.add(t.getOpacityMesh());
|
|
27
|
+
}), this;
|
|
28
|
+
}
|
|
29
|
+
remove(...e) {
|
|
30
|
+
return o(...e).forEach((t) => {
|
|
31
|
+
var s;
|
|
32
|
+
(s = t.opacityMesh) == null || s.removeFromParent();
|
|
33
|
+
}), super.remove(...e), this;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
p as CSS3DBehindScene,
|
|
38
|
+
m as CSS3DFrontScene
|
|
39
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var m = (r, t, e) => t in r ? c(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var o = (r, t, e) => (m(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import * as s from "three";
|
|
5
|
+
class p extends s.Mesh {
|
|
6
|
+
constructor(e, a) {
|
|
7
|
+
const n = new s.MeshBasicMaterial({ opacity: 0, color: 0, transparent: !1, side: s.DoubleSide }), i = new s.PlaneGeometry(e, a);
|
|
8
|
+
super(i, n);
|
|
9
|
+
o(this, "name", "opacity-mesh");
|
|
10
|
+
}
|
|
11
|
+
removeFromParent() {
|
|
12
|
+
const e = this.parent;
|
|
13
|
+
return e !== null && e.remove(this), this;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
p as OpecityMesh
|
|
18
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var t = (o, n, e) => new Promise((c, l) => {
|
|
2
|
+
var i = (d) => {
|
|
3
|
+
try {
|
|
4
|
+
r(e.next(d));
|
|
5
|
+
} catch (a) {
|
|
6
|
+
l(a);
|
|
7
|
+
}
|
|
8
|
+
}, m = (d) => {
|
|
9
|
+
try {
|
|
10
|
+
r(e.throw(d));
|
|
11
|
+
} catch (a) {
|
|
12
|
+
l(a);
|
|
13
|
+
}
|
|
14
|
+
}, r = (d) => d.done ? c(d.value) : Promise.resolve(d.value).then(i, m);
|
|
15
|
+
r((e = e.apply(o, n)).next());
|
|
16
|
+
});
|
|
17
|
+
function f(o) {
|
|
18
|
+
return t(this, null, function* () {
|
|
19
|
+
return new Promise((n) => {
|
|
20
|
+
var e;
|
|
21
|
+
if ((e = o.model) != null && e.loaded) {
|
|
22
|
+
n();
|
|
23
|
+
return;
|
|
24
|
+
} else
|
|
25
|
+
o.once("modelLoaded", () => n());
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
f as fiveModelLoaded
|
|
31
|
+
};
|
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
var b = (e, o,
|
|
1
|
+
var b = (e, o, n) => new Promise((m, p) => {
|
|
2
2
|
var t = (d) => {
|
|
3
3
|
try {
|
|
4
|
-
n
|
|
4
|
+
a(n.next(d));
|
|
5
5
|
} catch (f) {
|
|
6
6
|
p(f);
|
|
7
7
|
}
|
|
8
8
|
}, i = (d) => {
|
|
9
9
|
try {
|
|
10
|
-
n
|
|
10
|
+
a(n.throw(d));
|
|
11
11
|
} catch (f) {
|
|
12
12
|
p(f);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, a = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(t, i);
|
|
15
|
+
a((n = n.apply(e, o)).next());
|
|
16
16
|
});
|
|
17
17
|
import { Five as y } from "@realsee/five";
|
|
18
18
|
import * as h from "@tweenjs/tween.js";
|
|
19
19
|
import { tweenProgress as T } from "../shared-utils/animationFrame/tween.js";
|
|
20
|
-
import { Rotation as
|
|
20
|
+
import { Rotation as u } from "./typing.js";
|
|
21
21
|
import { formatLatitude as P, formatLongitude as v } from "../shared-utils/animationFrame/formatRad.js";
|
|
22
22
|
import { progressNumber as I } from "../shared-utils/animationFrame/calculateProgress.js";
|
|
23
|
-
|
|
23
|
+
import "../shared-utils/animationFrame/index.js";
|
|
24
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
25
|
+
const w = (e, o, n) => {
|
|
24
26
|
const m = Math.PI, p = m * 2;
|
|
25
|
-
return e = v(e), o = v(o),
|
|
26
|
-
},
|
|
27
|
-
const o = {},
|
|
28
|
-
return o.interruptCallback && o.interruptCallback(!1),
|
|
27
|
+
return e = v(e), o = v(o), n === u.Anticlockwise && e < o && (e += p), n === u.Clockwise && o < e && (o += p), n === u.Loop && o - e > m ? w(e, o, u.Anticlockwise) : n === u.Loop && e - o > m ? w(e, o, u.Clockwise) : { from: e, to: o };
|
|
28
|
+
}, _ = (e) => {
|
|
29
|
+
const o = {}, n = (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, a = { preload: !0 }) {
|
|
30
|
+
return o.interruptCallback && o.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), t.mode && t.mode !== e.currentMode && (yield e.changeMode(t.mode)), a.preload && t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (yield e.preloadPano(t.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), t.panoIndex === void 0 && t.fov === void 0 && t.latitude === void 0 && t.longitude === void 0 ? !0 : yield new Promise((r, l) => {
|
|
29
31
|
const c = t.panoIndex !== void 0 ? t.panoIndex : e.panoIndex;
|
|
30
32
|
c !== void 0 ? e.moveToPano(
|
|
31
33
|
c,
|
|
32
34
|
Object.assign(
|
|
33
35
|
{
|
|
34
36
|
duration: i,
|
|
35
|
-
moveEndCallback: () =>
|
|
37
|
+
moveEndCallback: () => r(!0),
|
|
36
38
|
moveCancelCallback: () => l(!1)
|
|
37
39
|
},
|
|
38
40
|
t
|
|
@@ -40,20 +42,20 @@ const w = (e, o, a) => {
|
|
|
40
42
|
) : l(!1);
|
|
41
43
|
});
|
|
42
44
|
}), m = (t) => {
|
|
43
|
-
const i = e.state,
|
|
45
|
+
const i = e.state, a = P(i.latitude), d = P(t.latitude), { from: f, to: L } = w(
|
|
44
46
|
i.longitude,
|
|
45
47
|
t.longitude,
|
|
46
|
-
t.rotation ||
|
|
47
|
-
),
|
|
48
|
+
t.rotation || u.Loop
|
|
49
|
+
), r = i.fov, l = t.fov;
|
|
48
50
|
return {
|
|
49
|
-
from: { latitude:
|
|
51
|
+
from: { latitude: a, longitude: f, fov: r },
|
|
50
52
|
to: { latitude: d, longitude: L, fov: l }
|
|
51
53
|
};
|
|
52
54
|
};
|
|
53
55
|
return {
|
|
54
|
-
move:
|
|
55
|
-
rotate: (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i,
|
|
56
|
-
o.interruptCallback && o.interruptCallback(!1),
|
|
56
|
+
move: n,
|
|
57
|
+
rotate: (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, a = {}) {
|
|
58
|
+
o.interruptCallback && o.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), e.currentMode !== y.Mode.Panorama && (yield e.changeMode(y.Mode.Panorama)), t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (a.preload && (yield e.preloadPano(t.panoIndex)), yield new Promise((c, k) => {
|
|
57
59
|
if (!t.panoIndex) {
|
|
58
60
|
c(!0);
|
|
59
61
|
return;
|
|
@@ -62,18 +64,18 @@ const w = (e, o, a) => {
|
|
|
62
64
|
moveEndCallback: () => c(!0),
|
|
63
65
|
moveCancelCallback: () => k(!1)
|
|
64
66
|
});
|
|
65
|
-
})),
|
|
66
|
-
const { from:
|
|
67
|
+
})), a.asyncEndCallback && (yield a.asyncEndCallback());
|
|
68
|
+
const { from: r, to: l } = m(t);
|
|
67
69
|
return yield new Promise((c) => {
|
|
68
70
|
const k = ({ progress: s }) => {
|
|
69
71
|
const C = {};
|
|
70
|
-
C.longitude = I(
|
|
72
|
+
C.longitude = I(r.longitude, l.longitude, s), C.latitude = I(r.latitude, l.latitude, s), C.fov = I(r.fov, l.fov, s), e.setState(C, !0);
|
|
71
73
|
}, M = () => {
|
|
72
74
|
c(!0);
|
|
73
75
|
}, E = () => {
|
|
74
76
|
c(!1);
|
|
75
|
-
}, S = t.rotateSpeed ? Math.ceil(Math.abs(l.longitude -
|
|
76
|
-
t.rotation ===
|
|
77
|
+
}, S = t.rotateSpeed ? Math.ceil(Math.abs(l.longitude - r.longitude) / t.rotateSpeed * 1e3) : i, x = T(S, h.Easing.Linear.None).onUpdate(k).onComplete(M).onDestroy(E);
|
|
78
|
+
t.rotation === u.Loop && x.repeat(1 / 0).yoyo(!0), o.interruptCallback = (s = !0) => {
|
|
77
79
|
x.destroy(), o.interruptCallback = void 0, o.timeoutId && (clearTimeout(o.timeoutId), o.timeoutId = void 0), c(s);
|
|
78
80
|
}, o.timeoutId = setTimeout(() => {
|
|
79
81
|
o.interruptCallback && o.interruptCallback(!0);
|
|
@@ -83,5 +85,6 @@ const w = (e, o, a) => {
|
|
|
83
85
|
};
|
|
84
86
|
};
|
|
85
87
|
export {
|
|
86
|
-
|
|
88
|
+
_ as CameraMovementPlugin,
|
|
89
|
+
_ as default
|
|
87
90
|
};
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import "./CameraMovementPlugin.js";
|
|
2
|
+
import { CameraMovementPlugin as u, CameraMovementPlugin as v } from "./CameraMovementPlugin.js";
|
|
3
|
+
import { CameraMovementEffect as M, Rotation as g } from "./typing.js";
|
|
1
4
|
import "@realsee/five";
|
|
2
5
|
import "@tweenjs/tween.js";
|
|
6
|
+
import "../shared-utils/animationFrame/tween.js";
|
|
7
|
+
import "../shared-utils/animationFrame/index.js";
|
|
3
8
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
9
|
+
import "../shared-utils/animationFrame/formatRad.js";
|
|
10
|
+
import "../shared-utils/animationFrame/calculateProgress.js";
|
|
11
|
+
export {
|
|
12
|
+
M as CameraMovementEffect,
|
|
13
|
+
u as CameraMovementPlugin,
|
|
14
|
+
g as Rotation,
|
|
15
|
+
v as default
|
|
16
|
+
};
|
|
@@ -2,16 +2,16 @@ var G = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var E = Object.getOwnPropertySymbols;
|
|
4
4
|
var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var x = (
|
|
5
|
+
var x = (v, c, e) => c in v ? G(v, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[c] = e, P = (v, c) => {
|
|
6
6
|
for (var e in c || (c = {}))
|
|
7
|
-
T.call(c, e) && x(
|
|
7
|
+
T.call(c, e) && x(v, e, c[e]);
|
|
8
8
|
if (E)
|
|
9
9
|
for (var e of E(c))
|
|
10
|
-
A.call(c, e) && x(
|
|
11
|
-
return
|
|
12
|
-
}, L = (
|
|
13
|
-
var
|
|
14
|
-
var
|
|
10
|
+
A.call(c, e) && x(v, e, c[e]);
|
|
11
|
+
return v;
|
|
12
|
+
}, L = (v, c) => K(v, U(c));
|
|
13
|
+
var S = (v, c, e) => (x(v, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
|
+
var g = (v, c, e) => new Promise((t, i) => {
|
|
15
15
|
var a = (s) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(s));
|
|
@@ -25,19 +25,29 @@ var y = (g, c, e) => new Promise((t, i) => {
|
|
|
25
25
|
i(r);
|
|
26
26
|
}
|
|
27
27
|
}, n = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(a, o);
|
|
28
|
-
n((e = e.apply(
|
|
28
|
+
n((e = e.apply(v, c)).next());
|
|
29
29
|
});
|
|
30
30
|
import { Controller as O } from "../base/BasePluginWithData.js";
|
|
31
31
|
import { GuideLinePlugin as V } from "../GuideLinePlugin/index.js";
|
|
32
32
|
import { uuid as k } from "../shared-utils/uuid.js";
|
|
33
33
|
import { coordinatesAngle as Q } from "./utils/coordinatesAngle.js";
|
|
34
|
-
import { safeCall as
|
|
35
|
-
import { equal as
|
|
34
|
+
import { safeCall as $ } from "./utils/safeCall.js";
|
|
35
|
+
import { equal as _ } from "../shared-utils/equal.js";
|
|
36
36
|
import { vectorToCoordinates as R } from "./utils/vectorToCoordinates.js";
|
|
37
37
|
import * as N from "three";
|
|
38
38
|
import { linerValue as j } from "./utils/linerValue.js";
|
|
39
39
|
import { sleep as H } from "./utils/sleep.js";
|
|
40
|
-
|
|
40
|
+
import "../base/BasePlugin.js";
|
|
41
|
+
import "../shared-utils/Subscribe.js";
|
|
42
|
+
import "../GuideLinePlugin/Controller.js";
|
|
43
|
+
import "../GuideLinePlugin/utils/getLineGeometries.js";
|
|
44
|
+
import "polyline-normals";
|
|
45
|
+
import "../GuideLinePlugin/utils/getArrowMaterial.js";
|
|
46
|
+
import "../shared-utils/isNil.js";
|
|
47
|
+
import "./utils/coordinatesToVector.js";
|
|
48
|
+
import "../shared-utils/isTruelyObject.js";
|
|
49
|
+
import "./utils/formatRad.js";
|
|
50
|
+
const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, ve = (v) => `${w}--${v}`, F = () => {
|
|
41
51
|
console.error(`${w} is disposed`);
|
|
42
52
|
}, J = () => {
|
|
43
53
|
console.warn(`${w} is disabled`);
|
|
@@ -47,7 +57,7 @@ const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, F = () => {
|
|
|
47
57
|
class B extends O {
|
|
48
58
|
constructor(e, t) {
|
|
49
59
|
super(e, t);
|
|
50
|
-
|
|
60
|
+
S(this, "state", {
|
|
51
61
|
visible: !0,
|
|
52
62
|
enabled: !0,
|
|
53
63
|
disposed: !1,
|
|
@@ -62,9 +72,9 @@ class B extends O {
|
|
|
62
72
|
}
|
|
63
73
|
}
|
|
64
74
|
});
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
75
|
+
S(this, "data");
|
|
76
|
+
S(this, "config");
|
|
77
|
+
S(this, "privateState", {
|
|
68
78
|
playing: !1,
|
|
69
79
|
currentPlayQueue: [],
|
|
70
80
|
currentPlayKeyframe: null,
|
|
@@ -72,7 +82,7 @@ class B extends O {
|
|
|
72
82
|
disposers: [],
|
|
73
83
|
modeChanging: !1
|
|
74
84
|
});
|
|
75
|
-
|
|
85
|
+
S(this, "GuideLine");
|
|
76
86
|
this.config = t, Object.assign(window, { [`__${D}_DEBUG__`]: this });
|
|
77
87
|
const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
|
|
78
88
|
this.hooks.on("play", i), this.hooks.on("broke", a), this.hooks.on("end", a), this.hooks.on("pause", a), this.privateState.disposers.push(() => {
|
|
@@ -80,11 +90,11 @@ class B extends O {
|
|
|
80
90
|
});
|
|
81
91
|
}
|
|
82
92
|
load(e, t, i) {
|
|
83
|
-
return
|
|
84
|
-
var d,
|
|
93
|
+
return g(this, null, function* () {
|
|
94
|
+
var d, y, f, l, u;
|
|
85
95
|
if (this.state.disposed)
|
|
86
96
|
return F();
|
|
87
|
-
this.privateState.fiveOriginGetProgress || (
|
|
97
|
+
this.privateState.fiveOriginGetProgress || (y = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && y.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (l = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : l.getProgress), this.clear();
|
|
88
98
|
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
|
|
89
99
|
this.data = o, this.hooks.emit("dataChange", o, a);
|
|
90
100
|
let n = [], s;
|
|
@@ -115,18 +125,18 @@ class B extends O {
|
|
|
115
125
|
this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
|
|
116
126
|
}
|
|
117
127
|
playFromStart(e) {
|
|
118
|
-
return this.playFrom(L(
|
|
128
|
+
return this.playFrom(L(P({}, e), { index: 0 }));
|
|
119
129
|
}
|
|
120
130
|
pause(e) {
|
|
121
131
|
this.setState({ playing: !1 }, e);
|
|
122
132
|
}
|
|
123
133
|
show(e) {
|
|
124
|
-
return
|
|
134
|
+
return g(this, null, function* () {
|
|
125
135
|
this.setState({ visible: !0 }, e);
|
|
126
136
|
});
|
|
127
137
|
}
|
|
128
138
|
hide(e) {
|
|
129
|
-
return
|
|
139
|
+
return g(this, null, function* () {
|
|
130
140
|
this.setState({ visible: !1 }, e);
|
|
131
141
|
});
|
|
132
142
|
}
|
|
@@ -145,11 +155,11 @@ class B extends O {
|
|
|
145
155
|
return F();
|
|
146
156
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
147
157
|
return q();
|
|
148
|
-
const i =
|
|
149
|
-
this.state =
|
|
158
|
+
const i = P({}, this.state);
|
|
159
|
+
this.state = P(P({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), _(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
|
|
150
160
|
}
|
|
151
161
|
formatData(e) {
|
|
152
|
-
return
|
|
162
|
+
return g(this, null, function* () {
|
|
153
163
|
this.five.work || (yield this.waitFiveLoaded());
|
|
154
164
|
const t = this.five.work.observers, i = (() => {
|
|
155
165
|
const a = e;
|
|
@@ -161,7 +171,7 @@ class B extends O {
|
|
|
161
171
|
keyframes: i.keyframes.map((a, o) => {
|
|
162
172
|
var r;
|
|
163
173
|
const n = i.keyframes[o + 1], s = (() => !n || n.start === void 0 || a.end === void 0 ? 0 : n.start - a.end)();
|
|
164
|
-
return
|
|
174
|
+
return P({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
|
|
165
175
|
})
|
|
166
176
|
};
|
|
167
177
|
if (i.panoIndexList) {
|
|
@@ -170,11 +180,11 @@ class B extends O {
|
|
|
170
180
|
return this.privateState.moveToFirstPanoEffect = n, i.panoIndexList.forEach((s, r) => {
|
|
171
181
|
const d = (() => {
|
|
172
182
|
var h, m, p, b;
|
|
173
|
-
const
|
|
174
|
-
if (
|
|
183
|
+
const y = i.panoIndexList.slice(r).find((I) => I !== s);
|
|
184
|
+
if (y === void 0)
|
|
175
185
|
return;
|
|
176
|
-
const f = (h = t[s]) == null ? void 0 : h.position, l = (m = t[
|
|
177
|
-
if (!l || !f || ((p = t[s]) == null ? void 0 : p.floorIndex) !== ((b = t[
|
|
186
|
+
const f = (h = t[s]) == null ? void 0 : h.position, l = (m = t[y]) == null ? void 0 : m.position;
|
|
187
|
+
if (!l || !f || ((p = t[s]) == null ? void 0 : p.floorIndex) !== ((b = t[y]) == null ? void 0 : b.floorIndex))
|
|
178
188
|
return;
|
|
179
189
|
const u = new N.Vector3().subVectors(l, f);
|
|
180
190
|
return R(u);
|
|
@@ -182,9 +192,9 @@ class B extends O {
|
|
|
182
192
|
i.moveType === void 0 || i.moveType === "justMove" ? a.push({
|
|
183
193
|
moveIndex: r,
|
|
184
194
|
stay: i.stay,
|
|
185
|
-
data:
|
|
186
|
-
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data:
|
|
187
|
-
}), { keyframesId: k(), keyframes: a.map((s, r) =>
|
|
195
|
+
data: P({ effect: "Move", panoIndex: s, moveEffect: o }, d != null ? d : {})
|
|
196
|
+
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data: P({ effect: "Rotate", panoIndex: s }, d) }));
|
|
197
|
+
}), { keyframesId: k(), keyframes: a.map((s, r) => P({ id: k(), index: r }, s)) };
|
|
188
198
|
} else
|
|
189
199
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
190
200
|
});
|
|
@@ -206,7 +216,7 @@ class B extends O {
|
|
|
206
216
|
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
207
217
|
}
|
|
208
218
|
handlePlay(e) {
|
|
209
|
-
return
|
|
219
|
+
return g(this, null, function* () {
|
|
210
220
|
var l;
|
|
211
221
|
const { data: t, state: i, privateState: a, hooks: o } = this;
|
|
212
222
|
if (a.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
@@ -216,7 +226,7 @@ class B extends O {
|
|
|
216
226
|
const s = t.keyframes, r = this.getPauseData();
|
|
217
227
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && o.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
|
|
218
228
|
let d = !1;
|
|
219
|
-
const f = yield (() =>
|
|
229
|
+
const f = yield (() => g(this, null, function* () {
|
|
220
230
|
var u, h;
|
|
221
231
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
222
232
|
return e.playFromIndex;
|
|
@@ -257,7 +267,7 @@ class B extends O {
|
|
|
257
267
|
t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && a.emit("pause", { userAction: (o = e == null ? void 0 : e.userAction) != null ? o : !0 }));
|
|
258
268
|
}
|
|
259
269
|
playKeyframe(e, t) {
|
|
260
|
-
return
|
|
270
|
+
return g(this, null, function* () {
|
|
261
271
|
var a;
|
|
262
272
|
const { privateState: i } = this;
|
|
263
273
|
return ((a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), i.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
|
|
@@ -272,7 +282,7 @@ class B extends O {
|
|
|
272
282
|
};
|
|
273
283
|
}
|
|
274
284
|
getPlayPromise(e, t) {
|
|
275
|
-
return
|
|
285
|
+
return g(this, null, function* () {
|
|
276
286
|
var a;
|
|
277
287
|
const i = e.data;
|
|
278
288
|
if ((a = t == null ? void 0 : t.duration) != null || e.start !== void 0 && e.end !== void 0 && e.end - e.start, !!i)
|
|
@@ -304,7 +314,7 @@ class B extends O {
|
|
|
304
314
|
});
|
|
305
315
|
}
|
|
306
316
|
actionPromiseQueue() {
|
|
307
|
-
return
|
|
317
|
+
return g(this, null, function* () {
|
|
308
318
|
const { privateState: e } = this;
|
|
309
319
|
return new Promise((t, i) => {
|
|
310
320
|
if (e.currentPlayQueue.length === 0) {
|
|
@@ -321,7 +331,7 @@ class B extends O {
|
|
|
321
331
|
});
|
|
322
332
|
}
|
|
323
333
|
move(e, t) {
|
|
324
|
-
return
|
|
334
|
+
return g(this, null, function* () {
|
|
325
335
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
326
336
|
yield this.changeMode(e);
|
|
327
337
|
else if (e.panoIndex !== this.five.panoIndex)
|
|
@@ -331,7 +341,7 @@ class B extends O {
|
|
|
331
341
|
});
|
|
332
342
|
}
|
|
333
343
|
rotate(e, t) {
|
|
334
|
-
return
|
|
344
|
+
return g(this, null, function* () {
|
|
335
345
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
336
346
|
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
337
347
|
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
@@ -340,16 +350,16 @@ class B extends O {
|
|
|
340
350
|
});
|
|
341
351
|
}
|
|
342
352
|
updateCamera(e, t = 800) {
|
|
343
|
-
return
|
|
353
|
+
return g(this, null, function* () {
|
|
344
354
|
const { five: i, privateState: a, state: o } = this;
|
|
345
355
|
let n = t;
|
|
346
356
|
const s = (() => {
|
|
347
357
|
var f, l;
|
|
348
|
-
const d = (f = o.config) == null ? void 0 : f.speedConfig,
|
|
358
|
+
const d = (f = o.config) == null ? void 0 : f.speedConfig, y = (l = e.rotateSpeed) != null ? l : d == null ? void 0 : d.rotateSpeed;
|
|
349
359
|
if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
|
|
350
|
-
return
|
|
351
|
-
if (
|
|
352
|
-
return d.rotateSpeedUnit === "rad/ms" ?
|
|
360
|
+
return y;
|
|
361
|
+
if (y !== void 0)
|
|
362
|
+
return d.rotateSpeedUnit === "rad/ms" ? y : y / 1e3;
|
|
353
363
|
})();
|
|
354
364
|
if (s) {
|
|
355
365
|
const d = this.five.getCurrentState();
|
|
@@ -358,20 +368,20 @@ class B extends O {
|
|
|
358
368
|
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = n);
|
|
359
369
|
const r = this.getSpeededDuration(n);
|
|
360
370
|
return new Promise((d) => {
|
|
361
|
-
|
|
371
|
+
$(() => i.updateCamera(e, r)), setTimeout(() => d(), r);
|
|
362
372
|
});
|
|
363
373
|
});
|
|
364
374
|
}
|
|
365
375
|
changePano(e, t) {
|
|
366
|
-
return
|
|
367
|
-
var
|
|
376
|
+
return g(this, null, function* () {
|
|
377
|
+
var y;
|
|
368
378
|
const { five: i, privateState: a, state: o } = this;
|
|
369
379
|
if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
|
|
370
380
|
return;
|
|
371
381
|
i.getCurrentState().mode;
|
|
372
382
|
const n = i.getCurrentState().mode !== "Panorama";
|
|
373
383
|
n && (this.privateState.modeChanging = !0);
|
|
374
|
-
let s = (
|
|
384
|
+
let s = (y = t == null ? void 0 : t.duration) != null ? y : 800;
|
|
375
385
|
const r = (() => {
|
|
376
386
|
var u, h;
|
|
377
387
|
const f = (u = o.config) == null ? void 0 : u.speedConfig, l = (h = e.moveSpeed) != null ? h : f == null ? void 0 : f.moveSpeed;
|
|
@@ -416,8 +426,8 @@ class B extends O {
|
|
|
416
426
|
return this.five.controller.cameraMotion.progress;
|
|
417
427
|
}
|
|
418
428
|
changeMode(e, t) {
|
|
419
|
-
return
|
|
420
|
-
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0,
|
|
429
|
+
return g(this, null, function* () {
|
|
430
|
+
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
|
|
421
431
|
});
|
|
422
432
|
}
|
|
423
433
|
forceInteruptUpdateCamera() {
|
|
@@ -456,7 +466,7 @@ class B extends O {
|
|
|
456
466
|
t != null && t.warnLog && J();
|
|
457
467
|
}
|
|
458
468
|
waitFiveLoaded() {
|
|
459
|
-
return
|
|
469
|
+
return g(this, null, function* () {
|
|
460
470
|
return new Promise((e) => {
|
|
461
471
|
if (this.five.work) {
|
|
462
472
|
e();
|
|
@@ -478,7 +488,8 @@ class B extends O {
|
|
|
478
488
|
!this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
|
|
479
489
|
}
|
|
480
490
|
}
|
|
481
|
-
|
|
491
|
+
S(B, "PluginVersion", M);
|
|
482
492
|
export {
|
|
483
|
-
B as
|
|
493
|
+
B as default,
|
|
494
|
+
ve as pluginFlag
|
|
484
495
|
};
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import o from "./Controller.js";
|
|
2
|
+
import { default as y } from "./Controller.js";
|
|
3
|
+
import "../base/BasePluginWithData.js";
|
|
4
|
+
import "../base/BasePlugin.js";
|
|
5
|
+
import "../shared-utils/Subscribe.js";
|
|
6
|
+
import "../GuideLinePlugin/index.js";
|
|
7
|
+
import "../GuideLinePlugin/Controller.js";
|
|
8
|
+
import "three";
|
|
9
|
+
import "../GuideLinePlugin/utils/getLineGeometries.js";
|
|
10
|
+
import "polyline-normals";
|
|
11
|
+
import "../GuideLinePlugin/utils/getArrowMaterial.js";
|
|
12
|
+
import "../shared-utils/isNil.js";
|
|
13
|
+
import "../shared-utils/equal.js";
|
|
14
|
+
import "../shared-utils/isTruelyObject.js";
|
|
15
|
+
import "../shared-utils/uuid.js";
|
|
16
|
+
import "./utils/coordinatesAngle.js";
|
|
17
|
+
import "./utils/coordinatesToVector.js";
|
|
18
|
+
import "./utils/safeCall.js";
|
|
19
|
+
import "./utils/vectorToCoordinates.js";
|
|
20
|
+
import "./utils/formatRad.js";
|
|
21
|
+
import "./utils/linerValue.js";
|
|
22
|
+
import "./utils/sleep.js";
|
|
23
|
+
const k = (r) => new o(r);
|
|
3
24
|
export {
|
|
4
|
-
|
|
25
|
+
k as CruisePlugin,
|
|
26
|
+
y as CruisePluginController,
|
|
27
|
+
k as default
|
|
5
28
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var k = Object.defineProperty;
|
|
2
2
|
var G = Object.getOwnPropertySymbols;
|
|
3
3
|
var x = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var m = (n, s, e) => s in n ? k(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e, c = (n, s) => {
|
|
5
5
|
for (var e in s || (s = {}))
|
|
6
|
-
x.call(s, e) &&
|
|
6
|
+
x.call(s, e) && m(n, e, s[e]);
|
|
7
7
|
if (G)
|
|
8
8
|
for (var e of G(s))
|
|
9
|
-
P.call(s, e) &&
|
|
9
|
+
P.call(s, e) && m(n, e, s[e]);
|
|
10
10
|
return n;
|
|
11
11
|
};
|
|
12
|
-
var d = (n, s, e) => (
|
|
12
|
+
var d = (n, s, e) => (m(n, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
13
|
var u = (n, s, e) => new Promise((i, t) => {
|
|
14
14
|
var a = (r) => {
|
|
15
15
|
try {
|
|
@@ -27,11 +27,15 @@ var u = (n, s, e) => new Promise((i, t) => {
|
|
|
27
27
|
o((e = e.apply(n, s)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as $ } from "../base/BasePluginWithData.js";
|
|
30
|
-
import * as
|
|
30
|
+
import * as b from "three";
|
|
31
31
|
import { getLineGeometries as y } from "./utils/getLineGeometries.js";
|
|
32
32
|
import { getArrowMaterial as M } from "./utils/getArrowMaterial.js";
|
|
33
33
|
import { notNil as w } from "../shared-utils/isNil.js";
|
|
34
34
|
import { equal as N } from "../shared-utils/equal.js";
|
|
35
|
+
import "../base/BasePlugin.js";
|
|
36
|
+
import "../shared-utils/Subscribe.js";
|
|
37
|
+
import "polyline-normals";
|
|
38
|
+
import "../shared-utils/isTruelyObject.js";
|
|
35
39
|
const L = "v1.0.1", S = "GuideLinePlugin", v = `${S}@${L}`, E = (n) => `${v}--${n}`;
|
|
36
40
|
class I extends $ {
|
|
37
41
|
constructor(e, i) {
|
|
@@ -101,13 +105,13 @@ class I extends $ {
|
|
|
101
105
|
this.linesGroup && this.five.scene.add(this.linesGroup);
|
|
102
106
|
}
|
|
103
107
|
getLinesGroup(e) {
|
|
104
|
-
const i = e.map(this.getLine.bind(this)).filter(w), t = new
|
|
108
|
+
const i = e.map(this.getLine.bind(this)).filter(w), t = new b.Group();
|
|
105
109
|
if (t.name = E("route-group"), i.length !== 0)
|
|
106
110
|
return t.add(...i), t;
|
|
107
111
|
}
|
|
108
112
|
getLine(e) {
|
|
109
113
|
var o, r, l, g;
|
|
110
|
-
const i = new
|
|
114
|
+
const i = new b.Group(), t = e.panoIndexList.map((p) => {
|
|
111
115
|
var f;
|
|
112
116
|
return (f = this.five.work.observers[p]) == null ? void 0 : f.standingPosition;
|
|
113
117
|
}).filter(w), a = y(t, {
|
|
@@ -119,7 +123,7 @@ class I extends $ {
|
|
|
119
123
|
return;
|
|
120
124
|
const h = M({ textureUrl: (g = e.arrowTextureUrl) != null ? g : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" });
|
|
121
125
|
return a.forEach((p) => {
|
|
122
|
-
const f = new
|
|
126
|
+
const f = new b.Mesh(p, h);
|
|
123
127
|
f.name = E("route-line-mesh"), i.add(f);
|
|
124
128
|
}), i;
|
|
125
129
|
}
|
|
@@ -139,5 +143,6 @@ class I extends $ {
|
|
|
139
143
|
}
|
|
140
144
|
d(I, "lasestVersion", L);
|
|
141
145
|
export {
|
|
142
|
-
I as
|
|
146
|
+
I as default,
|
|
147
|
+
E as pluginFlag
|
|
143
148
|
};
|