@realsee/dnalogel 2.3.5-dev.7 → 2.3.6-alpha.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/utils/positionToVector3.d.ts +2 -2
- package/dist/CruisePlugin/typing.d.ts +4 -0
- package/dist/PanoTagPlugin/Assets/Icon.d.ts +2 -3
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +14 -16
- package/dist/PanoTagPlugin/controller/index.d.ts +13 -16
- package/dist/PanoTagPlugin/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +11 -13
- package/dist/PanoTagPlugin/typings/index.d.ts +1 -5
- package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +6419 -7315
- package/dist/index.umd.js +49 -49
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +26 -26
- 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 +164 -213
- 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 +35 -75
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +15 -19
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/{interfaces/AddTagConfig.html → enums/LinkType.html} +23 -20
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +15 -19
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +13 -36
- package/docs/functions/CameraMovementPlugin.html +13 -36
- package/docs/functions/CruisePlugin.html +13 -36
- package/docs/functions/GuideLinePlugin.html +14 -37
- package/docs/functions/ItemLabelPlugin.html +13 -36
- package/docs/functions/MapviewFloorplanPlugin.html +13 -36
- package/docs/functions/ModelChassisCompassPlugin.html +13 -36
- package/docs/functions/ModelEntryDoorGuidePlugin.html +13 -36
- package/docs/functions/ModelFloorplanPlugin.html +13 -36
- package/docs/functions/ModelItemLabelPlugin.html +13 -36
- package/docs/functions/ModelRoomLabelPlugin.html +13 -36
- package/docs/functions/ModelTVVideoPlugin.html +13 -36
- package/docs/functions/ModelViewPlugin.html +13 -36
- package/docs/functions/Object3DHelperPlugin.html +13 -36
- package/docs/functions/PanoCompassPlugin.html +13 -36
- package/docs/functions/PanoCursorRaycasterPlugin.html +13 -36
- package/docs/functions/PanoDoorLabelPlugin.html +13 -36
- package/docs/functions/PanoFloorplanRadarPlugin.html +13 -36
- package/docs/functions/PanoMeasurePlugin.html +13 -36
- package/docs/functions/PanoRulerPlugin.html +13 -36
- package/docs/functions/PanoRulerProPlugin.html +13 -36
- package/docs/functions/PanoSpatialTagPlugin.html +13 -36
- package/docs/functions/PanoTagPlugin.html +23 -42
- package/docs/functions/TopviewFloorplanPlugin.html +13 -36
- 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 +14 -37
- package/docs/index.html +13 -36
- 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 +212 -0
- 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 +11 -11
- 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 +14 -37
- 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 +14 -37
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +14 -37
- 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 +14 -37
- package/docs/interfaces/Rooms.html +14 -37
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +19 -15
- package/docs/interfaces/Tags.html +12 -14
- 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 +21 -67
- package/docs/types/ArrayPosition.html +15 -38
- package/docs/types/CSS3DRenderExportType.html +14 -37
- package/docs/types/CSS3DRenderPluginExportType.html +14 -37
- package/docs/types/CSS3DRenderPluginParameterType.html +14 -37
- package/docs/types/Color.html +14 -37
- package/docs/types/ContentTypeConfigKey.html +15 -38
- package/docs/types/{WorkCode.html → ContentTypeConfigKeyArray.html} +17 -40
- package/docs/types/Create3DDomContainerReturnType.html +14 -37
- package/docs/types/Create3DElementReturnType.html +14 -37
- package/docs/types/CruisePluginExportType.html +14 -37
- package/docs/types/Direction-1.html +14 -37
- package/docs/types/Direction4.html +14 -37
- package/docs/types/FloorplanRuleLabels.html +14 -37
- package/docs/types/FloorplanServerRuleLabels.html +14 -37
- package/docs/types/GuideLinePluginExportType.html +14 -37
- package/docs/types/HelperEventMap.html +14 -37
- package/docs/types/MapviewFloorplanPluginParameterType.html +14 -37
- package/docs/types/MapviewFloorplanPluginReturnType.html +14 -37
- package/docs/types/MediaData.html +14 -37
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +14 -37
- package/docs/types/ModelFloorplanPluginParameterType.html +14 -37
- package/docs/types/ModelFloorplanPluginReturnType.html +14 -37
- package/docs/types/ModelRoomLabelPluginParameters.html +14 -37
- package/docs/types/ModelRoomLabelPluginReturnType.html +14 -37
- package/docs/types/MoveArgs.html +14 -37
- package/docs/types/MoveOpts.html +14 -37
- package/docs/types/Object3DHelperEventMap.html +14 -37
- package/docs/types/ObjectFit.html +14 -37
- package/docs/types/PaintBrushEventMap.html +14 -37
- package/docs/types/PanoCompassPluginData.html +14 -37
- package/docs/types/PanoCompassPluginExportType.html +14 -37
- package/docs/types/PanoCompassPluginParameterType.html +14 -37
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +14 -37
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +14 -37
- package/docs/types/PanoMeasurePluginEvent.html +14 -37
- package/docs/types/PanoMeasureReturnType.html +14 -37
- package/docs/types/PanoSpatialTagPluginId.html +14 -37
- package/docs/types/PanoTagPluginExportInterface.html +14 -37
- package/docs/types/PanoTagPluginParamsInterface.html +14 -37
- package/docs/types/PlaneTag.html +19 -40
- package/docs/types/PointTag.html +23 -40
- package/docs/types/Position.html +14 -37
- package/docs/types/RotateArgs.html +14 -37
- package/docs/types/RotateOpts.html +14 -37
- package/docs/types/RuleLabelsKey.html +14 -37
- package/docs/types/RuleLabelsValue.html +14 -37
- package/docs/types/Tag.html +22 -41
- package/docs/types/Tag2D.html +20 -42
- package/docs/types/Tag3D.html +20 -42
- package/docs/types/TagId.html +14 -37
- package/docs/types/TopviewFloorplanPluginParameterType.html +14 -37
- package/docs/types/TopviewFloorplanPluginReturnType.html +14 -37
- package/docs/variables/FLOOR_TYPE_MAP.html +14 -37
- package/docs/variables/PLUGIN.html +14 -37
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +14 -37
- package/docs/variables/ROOM_TYPE_MAP.html +14 -37
- package/docs/variables/VERSION.html +14 -37
- package/docs/variables/itemLabelPluginServerParams.html +14 -37
- package/docs/variables/modelItemLabelPluginServerParams.html +14 -37
- package/docs/variables/modelRoomLabelPluginServerParams.html +14 -37
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +2 -2
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
- package/libs/CSS3DRenderPlugin/utils/index.js +0 -12
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +3 -4
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +2 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +1 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +4 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
- package/libs/CruisePlugin/Controller.js +146 -143
- package/libs/CruisePlugin/typing.d.ts +4 -0
- package/libs/CruisePlugin/utils/coordinatesAngle.js +2 -3
- package/libs/CruisePlugin/utils/linerValue.js +4 -4
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +36 -38
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +15 -25
- package/libs/PanoMeasurePlugin/Controller/EditController.js +9 -21
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +10 -23
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +14 -25
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +29 -44
- package/libs/PanoMeasurePlugin/Controller/index.js +21 -58
- package/libs/PanoMeasurePlugin/Model/index.js +40 -47
- package/libs/PanoMeasurePlugin/Model/line.js +11 -15
- package/libs/PanoMeasurePlugin/Model/point.js +5 -5
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -8
- package/libs/PanoMeasurePlugin/index.js +2 -2
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
- package/libs/PanoMeasurePlugin/utils/constants.js +16 -15
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +6 -7
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
- package/libs/PanoMeasurePlugin/utils/line.js +0 -1
- package/libs/PanoMeasurePlugin/utils/math.js +1 -2
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -3
- package/libs/PanoTagPlugin/Assets/Icon.js +3 -4
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +132 -137
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +30 -30
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +59 -95
- package/libs/PanoTagPlugin/Components/Common/Media.js +205 -231
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +80 -109
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +170 -0
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +50 -0
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +50 -0
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +166 -0
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +130 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +131 -0
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +130 -122
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +96 -58
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -75
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +122 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +145 -182
- package/libs/PanoTagPlugin/Components/TagContainer.js +109 -144
- package/libs/PanoTagPlugin/Components/TagWrapper.js +152 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagCacheController.js +2 -3
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +14 -16
- package/libs/PanoTagPlugin/controller/TagComputer.js +150 -173
- package/libs/PanoTagPlugin/controller/index.d.ts +13 -16
- package/libs/PanoTagPlugin/controller/index.js +165 -238
- package/libs/PanoTagPlugin/index.d.ts +1 -1
- package/libs/PanoTagPlugin/index.js +21 -32
- package/libs/PanoTagPlugin/tag.config.js +16 -23
- package/libs/PanoTagPlugin/typings/controller.d.ts +11 -13
- package/libs/PanoTagPlugin/typings/index.d.ts +1 -5
- package/libs/PanoTagPlugin/typings/index.js +1 -7
- package/libs/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/libs/PanoTagPlugin/typings/tag.js +7 -0
- package/libs/PanoTagPlugin/utils/constants.js +1 -2
- package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
- package/libs/PanoTagPlugin/utils/index.js +0 -35
- package/libs/PanoTagPlugin/utils/search.js +9 -27
- package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -10
- 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 +1 -1
- package/libs/index.js +101 -112
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +20 -17
- package/libs/vendor/svelte/internal/index.js +341 -381
- package/package.json +3 -3
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -50
- package/dist/PanoTagPlugin/utils/color.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
- package/dist/PanoTagPlugin/utils/px2rem.d.ts +0 -1
- package/dist/PanoTagPlugin/utils/tag/format.d.ts +0 -2
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/timeToString.d.ts +0 -1
- package/docs/interfaces/EventMap.html +0 -298
- package/docs/interfaces/MinMax.html +0 -71
- package/docs/interfaces/State.html +0 -89
- package/docs/interfaces/TagCache.html +0 -92
- package/docs/interfaces/TagIconUrl.html +0 -91
- package/docs/interfaces/TemporaryState.html +0 -64
- package/docs/types/ContentTypeMap.html +0 -248
- package/docs/types/LoadTagConfig.html +0 -248
- package/docs/types/MediaStore.html +0 -248
- package/docs/types/PanoIndex.html +0 -248
- package/docs/types/PlaneTagElement.html +0 -253
- package/docs/types/Point2DElement.html +0 -253
- package/docs/types/Point2DTag.html +0 -255
- package/docs/types/Point3DElement.html +0 -253
- package/docs/types/Point3DTag.html +0 -255
- package/docs/types/PointTagElement.html +0 -253
- package/docs/types/StickType.html +0 -248
- package/docs/types/TagContentType.html +0 -248
- package/docs/types/TagDimensionType.html +0 -248
- package/docs/types/TagElement.html +0 -255
- package/docs/types/TagEvents.html +0 -283
- package/docs/types/TagHooks.html +0 -248
- package/docs/types/TagIconSize.html +0 -251
- package/docs/types/TagPointType.html +0 -251
- package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
- package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
- package/libs/PanoMeasurePlugin/typings/data.js +0 -1
- package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
- package/libs/PanoMeasurePlugin/typings/index.js +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +0 -175
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +0 -110
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +0 -81
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +0 -145
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +0 -147
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +0 -166
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +0 -213
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +0 -215
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +0 -120
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +0 -102
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +0 -134
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +0 -115
- package/libs/PanoTagPlugin/Components/TagItem.js +0 -187
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
- package/libs/PanoTagPlugin/mocks/v2/mock1.d.ts +0 -128
- package/libs/PanoTagPlugin/mocks/v2/mock1.js +0 -114
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
- package/libs/PanoTagPlugin/typings/tag/Tag.js +0 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
- package/libs/PanoTagPlugin/typings/tag/TagConfig.js +0 -1
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
- package/libs/PanoTagPlugin/typings/tag/TagData.js +0 -4
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -50
- package/libs/PanoTagPlugin/typings/tag/Utils.js +0 -5
- package/libs/PanoTagPlugin/utils/color.d.ts +0 -7
- package/libs/PanoTagPlugin/utils/color.js +0 -17
- package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
- package/libs/PanoTagPlugin/utils/getImageInfo.js +0 -51
- package/libs/PanoTagPlugin/utils/px2rem.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/px2rem.js +0 -6
- package/libs/PanoTagPlugin/utils/tag/format.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +0 -18
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +0 -26
- package/libs/PanoTagPlugin/utils/timeToString.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/timeToString.js +0 -7
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
var G = Object.defineProperty, K = Object.defineProperties;
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var E = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var x = (
|
|
4
|
+
var A = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var x = (y, c, e) => c in y ? G(y, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : y[c] = e, P = (y, c) => {
|
|
6
6
|
for (var e in c || (c = {}))
|
|
7
|
-
|
|
7
|
+
A.call(c, e) && x(y, e, c[e]);
|
|
8
8
|
if (E)
|
|
9
9
|
for (var e of E(c))
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var g = (
|
|
15
|
-
var a = (
|
|
10
|
+
O.call(c, e) && x(y, e, c[e]);
|
|
11
|
+
return y;
|
|
12
|
+
}, F = (y, c) => K(y, U(c));
|
|
13
|
+
var I = (y, c, e) => (x(y, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
|
+
var g = (y, c, e) => new Promise((t, i) => {
|
|
15
|
+
var a = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(e.next(n));
|
|
18
18
|
} catch (r) {
|
|
19
19
|
i(r);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, d = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(e.throw(n));
|
|
24
24
|
} catch (r) {
|
|
25
25
|
i(r);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(a, d);
|
|
28
|
+
s((e = e.apply(y, c)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Controller as
|
|
31
|
-
import { GuideLinePlugin as
|
|
30
|
+
import { Controller as V } from "../base/BasePluginWithData.js";
|
|
31
|
+
import { GuideLinePlugin as Q } from "../GuideLinePlugin/index.js";
|
|
32
32
|
import { uuid as k } from "../shared-utils/uuid.js";
|
|
33
|
-
import { coordinatesAngle as
|
|
34
|
-
import { safeCall as
|
|
35
|
-
import { equal as
|
|
36
|
-
import { vectorToCoordinates as
|
|
37
|
-
import * as
|
|
38
|
-
import
|
|
39
|
-
import { sleep as
|
|
33
|
+
import { coordinatesAngle as $ } from "./utils/coordinatesAngle.js";
|
|
34
|
+
import { safeCall as _ } from "./utils/safeCall.js";
|
|
35
|
+
import { equal as R } from "../shared-utils/equal.js";
|
|
36
|
+
import { vectorToCoordinates as N } from "./utils/vectorToCoordinates.js";
|
|
37
|
+
import * as j from "three";
|
|
38
|
+
import { linerValue as H } from "./utils/linerValue.js";
|
|
39
|
+
import { sleep as J } from "./utils/sleep.js";
|
|
40
40
|
import "../base/BasePlugin.js";
|
|
41
41
|
import "../shared-utils/Subscribe.js";
|
|
42
42
|
import "../GuideLinePlugin/Controller.js";
|
|
@@ -47,17 +47,17 @@ import "../shared-utils/isNil.js";
|
|
|
47
47
|
import "./utils/coordinatesToVector.js";
|
|
48
48
|
import "../shared-utils/isTruelyObject.js";
|
|
49
49
|
import "./utils/formatRad.js";
|
|
50
|
-
const
|
|
50
|
+
const D = "v1.0.6", M = "CruisePlugin", w = `${M}@${D}`, ye = (y) => `${w}--${y}`, L = () => {
|
|
51
51
|
console.error(`${w} is disposed`);
|
|
52
|
-
},
|
|
52
|
+
}, W = () => {
|
|
53
53
|
console.warn(`${w} is disabled`);
|
|
54
54
|
}, q = () => {
|
|
55
55
|
console.error(`${w} is disabled`);
|
|
56
56
|
}, C = /* @__PURE__ */ new Map();
|
|
57
|
-
class B extends
|
|
57
|
+
class B extends V {
|
|
58
58
|
constructor(e, t) {
|
|
59
59
|
super(e, t);
|
|
60
|
-
|
|
60
|
+
I(this, "state", {
|
|
61
61
|
visible: !0,
|
|
62
62
|
enabled: !0,
|
|
63
63
|
disposed: !1,
|
|
@@ -72,9 +72,9 @@ class B extends O {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
I(this, "data");
|
|
76
|
+
I(this, "config");
|
|
77
|
+
I(this, "privateState", {
|
|
78
78
|
playing: !1,
|
|
79
79
|
currentPlayQueue: [],
|
|
80
80
|
currentPlayKeyframe: null,
|
|
@@ -82,8 +82,8 @@ class B extends O {
|
|
|
82
82
|
disposers: [],
|
|
83
83
|
modeChanging: !1
|
|
84
84
|
});
|
|
85
|
-
|
|
86
|
-
this.config = t, Object.assign(window, { [`__${
|
|
85
|
+
I(this, "GuideLine");
|
|
86
|
+
this.config = t, Object.assign(window, { [`__${M}_DEBUG__`]: this });
|
|
87
87
|
const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
|
|
88
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(() => {
|
|
89
89
|
this.hooks.off("play", i), this.hooks.off("broke", a), this.hooks.off("end", a), this.hooks.off("pause", a);
|
|
@@ -91,30 +91,30 @@ class B extends O {
|
|
|
91
91
|
}
|
|
92
92
|
load(e, t, i) {
|
|
93
93
|
return g(this, null, function* () {
|
|
94
|
-
var
|
|
94
|
+
var o, m, f, u, l;
|
|
95
95
|
if (this.state.disposed)
|
|
96
|
-
return
|
|
97
|
-
this.privateState.fiveOriginGetProgress || (
|
|
98
|
-
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0,
|
|
99
|
-
this.data =
|
|
100
|
-
let
|
|
96
|
+
return L();
|
|
97
|
+
this.privateState.fiveOriginGetProgress || (m = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && m.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : u.getProgress), this.clear();
|
|
98
|
+
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, d = yield this.formatData(e);
|
|
99
|
+
this.data = d, this.hooks.emit("dataChange", d, a);
|
|
100
|
+
let s = [], n;
|
|
101
101
|
const r = this.data.keyframes.filter((h) => h.data.panoIndex !== void 0);
|
|
102
|
-
r.filter((h,
|
|
102
|
+
r.filter((h, v) => {
|
|
103
103
|
var p;
|
|
104
|
-
return h.data.panoIndex !== ((p = r[
|
|
104
|
+
return h.data.panoIndex !== ((p = r[v - 1]) == null ? void 0 : p.data.panoIndex);
|
|
105
105
|
}).map((h) => h.data.panoIndex).forEach((h) => {
|
|
106
106
|
var p, b;
|
|
107
|
-
const
|
|
108
|
-
if (
|
|
109
|
-
if (
|
|
110
|
-
const
|
|
111
|
-
|
|
107
|
+
const v = (p = this.five.work.observers[h]) == null ? void 0 : p.floorIndex;
|
|
108
|
+
if (v !== void 0)
|
|
109
|
+
if (n === v) {
|
|
110
|
+
const S = s.length - 1;
|
|
111
|
+
s[S] = [...(b = s[S]) != null ? b : [], h];
|
|
112
112
|
} else {
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
113
|
+
n = v;
|
|
114
|
+
const S = s.length;
|
|
115
|
+
s[S] = [h];
|
|
116
116
|
}
|
|
117
|
-
}), this.GuideLine || (this.GuideLine =
|
|
117
|
+
}), this.GuideLine || (this.GuideLine = Q(this.five, this.config)), (l = this.GuideLine) == null || l.load({ routes: s.map((h) => ({ panoIndexList: h })) }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.log(`${w} loaded`, d), this.hooks.emit("dataLoaded", d);
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
play(e) {
|
|
@@ -125,7 +125,7 @@ class B extends O {
|
|
|
125
125
|
this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
|
|
126
126
|
}
|
|
127
127
|
playFromStart(e) {
|
|
128
|
-
return this.playFrom(
|
|
128
|
+
return this.playFrom(F(P({}, e), { index: 0 }));
|
|
129
129
|
}
|
|
130
130
|
pause(e) {
|
|
131
131
|
this.setState({ playing: !1 }, e);
|
|
@@ -152,11 +152,11 @@ class B extends O {
|
|
|
152
152
|
setState(e, t) {
|
|
153
153
|
var a;
|
|
154
154
|
if (this.state.disposed)
|
|
155
|
-
return
|
|
155
|
+
return L();
|
|
156
156
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
157
157
|
return q();
|
|
158
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),
|
|
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), R(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 });
|
|
160
160
|
}
|
|
161
161
|
formatData(e) {
|
|
162
162
|
return g(this, null, function* () {
|
|
@@ -168,33 +168,33 @@ class B extends O {
|
|
|
168
168
|
if (i.keyframes)
|
|
169
169
|
return {
|
|
170
170
|
keyframesId: k(),
|
|
171
|
-
keyframes: i.keyframes.map((a,
|
|
171
|
+
keyframes: i.keyframes.map((a, d) => {
|
|
172
172
|
var r;
|
|
173
|
-
const
|
|
174
|
-
return P({ id: (r = a.uuid) != null ? r : k(), moveIndex:
|
|
173
|
+
const s = i.keyframes[d + 1], n = (() => !s || s.start === void 0 || a.end === void 0 ? 0 : s.start - a.end)();
|
|
174
|
+
return P({ id: (r = a.uuid) != null ? r : k(), moveIndex: d, stay: n, index: d }, a);
|
|
175
175
|
})
|
|
176
176
|
};
|
|
177
177
|
if (i.panoIndexList) {
|
|
178
178
|
let a = [];
|
|
179
|
-
const { moveEffect:
|
|
180
|
-
return this.privateState.moveToFirstPanoEffect = n, i.panoIndexList.forEach((
|
|
181
|
-
const
|
|
182
|
-
var
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
179
|
+
const { moveEffect: d, moveToFirstPanoEffect: s, moveToFirstPanoDuration: n } = i;
|
|
180
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = n, i.panoIndexList.forEach((r, o) => {
|
|
181
|
+
const m = (() => {
|
|
182
|
+
var v, p, b, S;
|
|
183
|
+
const f = i.panoIndexList.slice(o).find((T) => T !== r);
|
|
184
|
+
if (f === void 0)
|
|
185
185
|
return;
|
|
186
|
-
const
|
|
187
|
-
if (!l || !
|
|
186
|
+
const u = (v = t[r]) == null ? void 0 : v.position, l = (p = t[f]) == null ? void 0 : p.position;
|
|
187
|
+
if (!l || !u || ((b = t[r]) == null ? void 0 : b.floorIndex) !== ((S = t[f]) == null ? void 0 : S.floorIndex))
|
|
188
188
|
return;
|
|
189
|
-
const
|
|
190
|
-
return
|
|
189
|
+
const h = new j.Vector3().subVectors(l, u);
|
|
190
|
+
return N(h);
|
|
191
191
|
})();
|
|
192
192
|
i.moveType === void 0 || i.moveType === "justMove" ? a.push({
|
|
193
|
-
moveIndex:
|
|
193
|
+
moveIndex: o,
|
|
194
194
|
stay: i.stay,
|
|
195
|
-
data: P({ effect: "Move", panoIndex:
|
|
196
|
-
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex:
|
|
197
|
-
}), { keyframesId: k(), keyframes: a.map((
|
|
195
|
+
data: P({ effect: "Move", panoIndex: r, moveEffect: d }, m != null ? m : {})
|
|
196
|
+
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: o, stay: i.stay, data: { effect: "Move", panoIndex: r, moveEffect: d } }), m && a.push({ moveIndex: o, stay: i.stay, data: P({ effect: "Rotate", panoIndex: r }, m) }));
|
|
197
|
+
}), { keyframesId: k(), keyframes: a.map((r, o) => P({ id: k(), index: o }, r)) };
|
|
198
198
|
} else
|
|
199
199
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
200
200
|
});
|
|
@@ -217,54 +217,57 @@ class B extends O {
|
|
|
217
217
|
}
|
|
218
218
|
handlePlay(e) {
|
|
219
219
|
return g(this, null, function* () {
|
|
220
|
-
var
|
|
221
|
-
const { data: t, state: i, privateState: a, hooks:
|
|
220
|
+
var u;
|
|
221
|
+
const { data: t, state: i, privateState: a, hooks: d } = this;
|
|
222
222
|
if (a.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
223
223
|
return;
|
|
224
|
-
const
|
|
225
|
-
a.playId =
|
|
226
|
-
const
|
|
227
|
-
(e == null ? void 0 : e.notEmitEvent) !== !0 &&
|
|
228
|
-
let
|
|
224
|
+
const s = k();
|
|
225
|
+
a.playId = s, a.playing = !0, a.broke = !1;
|
|
226
|
+
const n = t.keyframes, r = this.getPauseData();
|
|
227
|
+
(e == null ? void 0 : e.notEmitEvent) !== !0 && d.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
|
|
228
|
+
let o = !1;
|
|
229
229
|
const f = yield (() => g(this, null, function* () {
|
|
230
|
-
var
|
|
230
|
+
var l, h;
|
|
231
231
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
232
232
|
return e.playFromIndex;
|
|
233
233
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
234
|
-
return (
|
|
234
|
+
return (l = this.data) == null ? void 0 : l.keyframes.findIndex((v) => v.id === e.playFromId);
|
|
235
235
|
if (r != null && r.keyframeId) {
|
|
236
|
-
const
|
|
237
|
-
if (r != null && r.fiveState && (yield this.move(r.fiveState, {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
236
|
+
const v = (h = this.data) == null ? void 0 : h.keyframes.find((p) => p.id === r.keyframeId);
|
|
237
|
+
if (r != null && r.fiveState && (yield this.move(r.fiveState, {
|
|
238
|
+
moveEffect: a.moveToFirstPanoEffect,
|
|
239
|
+
duration: a.moveToFirstPanoDuration
|
|
240
|
+
})), v) {
|
|
241
|
+
if (v.data.effect === "Move")
|
|
242
|
+
return v.index;
|
|
243
|
+
if (v.data.effect === "Rotate") {
|
|
241
244
|
const p = r.duration !== void 0 ? r.duration * (1 - r.playedProgress) : void 0;
|
|
242
|
-
return yield this.playKeyframe(
|
|
245
|
+
return yield this.playKeyframe(v, { duration: p }), o = !0, v.index + 1;
|
|
243
246
|
}
|
|
244
247
|
}
|
|
245
248
|
}
|
|
246
249
|
}))();
|
|
247
250
|
this.clearPauseData();
|
|
248
|
-
for (const
|
|
249
|
-
if (a.broke || !i.playing || !a.playing ||
|
|
251
|
+
for (const l of n) {
|
|
252
|
+
if (a.broke || !i.playing || !a.playing || s !== a.playId)
|
|
250
253
|
return;
|
|
251
|
-
if (!(f !== void 0 &&
|
|
254
|
+
if (!(f !== void 0 && l.index < f))
|
|
252
255
|
try {
|
|
253
|
-
|
|
254
|
-
moveEffect:
|
|
255
|
-
duration: 800
|
|
256
|
-
}),
|
|
256
|
+
d.emit("playIndexChange", l.index, l), yield this.playKeyframe(l, {
|
|
257
|
+
moveEffect: o === !1 ? a.moveToFirstPanoEffect : void 0,
|
|
258
|
+
duration: o === !1 && typeof a.moveToFirstPanoDuration == "number" ? a.moveToFirstPanoDuration : 800
|
|
259
|
+
}), l.stay && (yield J(l.stay)), o === !1 && (o = !0);
|
|
257
260
|
} catch (h) {
|
|
258
261
|
return Promise.resolve("broke");
|
|
259
262
|
}
|
|
260
263
|
}
|
|
261
|
-
i.playing &&
|
|
264
|
+
i.playing && s === a.playId && (this.setState({ playing: !1 }, { userAction: !1 }), d.emit("end"), this.clearPauseData());
|
|
262
265
|
});
|
|
263
266
|
}
|
|
264
267
|
handlePause(e) {
|
|
265
|
-
var
|
|
268
|
+
var d;
|
|
266
269
|
const { state: t, privateState: i, hooks: a } = this;
|
|
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: (
|
|
270
|
+
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: (d = e == null ? void 0 : e.userAction) != null ? d : !0 }));
|
|
268
271
|
}
|
|
269
272
|
playKeyframe(e, t) {
|
|
270
273
|
return g(this, null, function* () {
|
|
@@ -286,17 +289,17 @@ class B extends O {
|
|
|
286
289
|
var a;
|
|
287
290
|
const i = e.data;
|
|
288
291
|
if ((a = t == null ? void 0 : t.duration) != null || e.start !== void 0 && e.end !== void 0 && e.end - e.start, !!i)
|
|
289
|
-
return new Promise((
|
|
290
|
-
let
|
|
292
|
+
return new Promise((d, s) => {
|
|
293
|
+
let n = !1;
|
|
291
294
|
this.addInterruptListener(() => {
|
|
292
|
-
if (!
|
|
293
|
-
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }),
|
|
295
|
+
if (!n)
|
|
296
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), n = !0, s(new Error("play is interupted"));
|
|
294
297
|
});
|
|
295
298
|
try {
|
|
296
|
-
if (
|
|
299
|
+
if (n)
|
|
297
300
|
return;
|
|
298
301
|
const r = () => {
|
|
299
|
-
|
|
302
|
+
d(), n = !0;
|
|
300
303
|
};
|
|
301
304
|
switch (i.effect) {
|
|
302
305
|
case "Move":
|
|
@@ -351,72 +354,72 @@ class B extends O {
|
|
|
351
354
|
}
|
|
352
355
|
updateCamera(e, t = 800) {
|
|
353
356
|
return g(this, null, function* () {
|
|
354
|
-
const { five: i, privateState: a, state:
|
|
355
|
-
let
|
|
356
|
-
const
|
|
357
|
-
var f,
|
|
358
|
-
const
|
|
359
|
-
if ((
|
|
360
|
-
return
|
|
361
|
-
if (
|
|
362
|
-
return
|
|
357
|
+
const { five: i, privateState: a, state: d } = this;
|
|
358
|
+
let s = t;
|
|
359
|
+
const n = (() => {
|
|
360
|
+
var f, u;
|
|
361
|
+
const o = (f = d.config) == null ? void 0 : f.speedConfig, m = (u = e.rotateSpeed) != null ? u : o == null ? void 0 : o.rotateSpeed;
|
|
362
|
+
if ((o == null ? void 0 : o.rotateSpeedUnit) === void 0)
|
|
363
|
+
return m;
|
|
364
|
+
if (m !== void 0)
|
|
365
|
+
return o.rotateSpeedUnit === "rad/ms" ? m : m / 1e3;
|
|
363
366
|
})();
|
|
364
|
-
if (
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
+
if (n) {
|
|
368
|
+
const o = this.five.getCurrentState();
|
|
369
|
+
s = $(o, e) / n;
|
|
367
370
|
}
|
|
368
|
-
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration =
|
|
369
|
-
const r = this.getSpeededDuration(
|
|
370
|
-
return new Promise((
|
|
371
|
-
|
|
371
|
+
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = s);
|
|
372
|
+
const r = this.getSpeededDuration(s);
|
|
373
|
+
return new Promise((o) => {
|
|
374
|
+
_(() => i.updateCamera(e, r)), setTimeout(() => o(), r);
|
|
372
375
|
});
|
|
373
376
|
});
|
|
374
377
|
}
|
|
375
378
|
changePano(e, t) {
|
|
376
379
|
return g(this, null, function* () {
|
|
377
|
-
var
|
|
378
|
-
const { five: i, privateState: a, state:
|
|
380
|
+
var m;
|
|
381
|
+
const { five: i, privateState: a, state: d } = this;
|
|
379
382
|
if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
|
|
380
383
|
return;
|
|
381
384
|
i.getCurrentState().mode;
|
|
382
|
-
const
|
|
383
|
-
|
|
384
|
-
let
|
|
385
|
+
const s = i.getCurrentState().mode !== "Panorama";
|
|
386
|
+
s && (this.privateState.modeChanging = !0);
|
|
387
|
+
let n = (m = t == null ? void 0 : t.duration) != null ? m : 800;
|
|
385
388
|
const r = (() => {
|
|
386
|
-
var
|
|
387
|
-
const f = (
|
|
389
|
+
var l, h;
|
|
390
|
+
const f = (l = d.config) == null ? void 0 : l.speedConfig, u = (h = e.moveSpeed) != null ? h : f == null ? void 0 : f.moveSpeed;
|
|
388
391
|
if ((f == null ? void 0 : f.moveSpeedUnit) === void 0)
|
|
389
|
-
return
|
|
390
|
-
if (
|
|
391
|
-
return f.moveSpeedUnit === "m/ms" ?
|
|
392
|
+
return u;
|
|
393
|
+
if (u !== void 0)
|
|
394
|
+
return f.moveSpeedUnit === "m/ms" ? u : u / 1e3;
|
|
392
395
|
})();
|
|
393
396
|
if (r && typeof i.panoIndex == "number" && typeof e.panoIndex == "number") {
|
|
394
|
-
const f = i.work.observers[i.panoIndex].position,
|
|
395
|
-
|
|
397
|
+
const f = i.work.observers[i.panoIndex].position, u = i.work.observers[e.panoIndex].position;
|
|
398
|
+
n = f.distanceTo(u) / r;
|
|
396
399
|
}
|
|
397
|
-
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration =
|
|
398
|
-
const
|
|
400
|
+
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = n);
|
|
401
|
+
const o = this.getSpeededDuration(n);
|
|
399
402
|
yield new Promise((f) => {
|
|
400
|
-
var
|
|
403
|
+
var u, l, h;
|
|
401
404
|
i.moveToPano(e.panoIndex, {
|
|
402
405
|
latitude: e.latitude,
|
|
403
406
|
longitude: e.longitude,
|
|
404
407
|
fov: e.fov,
|
|
405
|
-
duration:
|
|
406
|
-
effect: (h = (
|
|
408
|
+
duration: o,
|
|
409
|
+
effect: (h = (l = t == null ? void 0 : t.moveEffect) != null ? l : (u = this.state.config) == null ? void 0 : u.moveEffect) != null ? h : e.moveEffect,
|
|
407
410
|
moveCancelCallback: () => f(),
|
|
408
411
|
moveEndCallback: () => f()
|
|
409
|
-
}),
|
|
410
|
-
}),
|
|
412
|
+
}), s && i.once("panoArrived", () => f());
|
|
413
|
+
}), s && (this.privateState.modeChanging = !1);
|
|
411
414
|
});
|
|
412
415
|
}
|
|
413
416
|
changeSpeed(e, t = !0) {
|
|
414
|
-
const { state: i, privateState: a, hooks:
|
|
415
|
-
if (
|
|
417
|
+
const { state: i, privateState: a, hooks: d } = this, { currentPlayKeyframe: s } = a;
|
|
418
|
+
if (d.emit("speedChange", e, { userAction: t }), i.playing && s)
|
|
416
419
|
try {
|
|
417
|
-
const
|
|
420
|
+
const n = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, r = this.playKeyframe(s.keyframe, { duration: n });
|
|
418
421
|
a.currentPlayQueue.push(r);
|
|
419
|
-
} catch (
|
|
422
|
+
} catch (n) {
|
|
420
423
|
}
|
|
421
424
|
}
|
|
422
425
|
getSpeededDuration(e) {
|
|
@@ -463,7 +466,7 @@ class B extends O {
|
|
|
463
466
|
actionIfStateIsEnabled(e, t) {
|
|
464
467
|
if (this.state.enabled)
|
|
465
468
|
return e();
|
|
466
|
-
t != null && t.warnLog &&
|
|
469
|
+
t != null && t.warnLog && W();
|
|
467
470
|
}
|
|
468
471
|
waitFiveLoaded() {
|
|
469
472
|
return g(this, null, function* () {
|
|
@@ -481,15 +484,15 @@ class B extends O {
|
|
|
481
484
|
setFiveLinearUpdateCamera() {
|
|
482
485
|
!this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = (e) => {
|
|
483
486
|
const t = this.five.controller.cameraMotion, i = e - t.startTime;
|
|
484
|
-
return i < 0 ? 0 : i >= t.duration ? 1 : 1 -
|
|
487
|
+
return i < 0 ? 0 : i >= t.duration ? 1 : 1 - H(1, t.startVelocity, t.duration, i);
|
|
485
488
|
});
|
|
486
489
|
}
|
|
487
490
|
setFiveOriginUpdateCamera() {
|
|
488
491
|
!this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
|
|
489
492
|
}
|
|
490
493
|
}
|
|
491
|
-
|
|
494
|
+
I(B, "PluginVersion", D);
|
|
492
495
|
export {
|
|
493
496
|
B as default,
|
|
494
|
-
|
|
497
|
+
ye as pluginFlag
|
|
495
498
|
};
|
|
@@ -45,6 +45,8 @@ export interface PluginServerData extends BasePluginWithData.ServerData {
|
|
|
45
45
|
/** for ts check, no care */
|
|
46
46
|
moveToFirstPanoEffect?: undefined;
|
|
47
47
|
/** for ts check, no care */
|
|
48
|
+
moveToFirstPanoDuration?: undefined;
|
|
49
|
+
/** for ts check, no care */
|
|
48
50
|
stay?: undefined;
|
|
49
51
|
} | {
|
|
50
52
|
/** 点位列表 */
|
|
@@ -53,6 +55,8 @@ export interface PluginServerData extends BasePluginWithData.ServerData {
|
|
|
53
55
|
moveEffect?: MoveEffect;
|
|
54
56
|
/** 到第一个点的走点动画 / 续播到暂停处的走点动画 */
|
|
55
57
|
moveToFirstPanoEffect?: MoveEffect;
|
|
58
|
+
/** 到第一个点的走点时长 / 续播到暂停处的走点时长 */
|
|
59
|
+
moveToFirstPanoDuration?: number;
|
|
56
60
|
/** 漫游方式:justMove 为移动到指定点位,且朝向为下一个点的朝向;moveAndRotate 为先移动到指定点位且朝向不变,然后旋转到下一个点的朝向 */
|
|
57
61
|
moveType?: 'justMove' | 'moveAndRotate';
|
|
58
62
|
/** 停留时长 */
|
|
@@ -28,7 +28,7 @@ var u = (n, s, e) => new Promise((i, t) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { Controller as $ } from "../base/BasePluginWithData.js";
|
|
30
30
|
import * as b from "three";
|
|
31
|
-
import y from "./utils/getLineGeometries.js";
|
|
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";
|