@realsee/dnalogel 2.1.0-alpha.15 → 2.1.0-alpha.17
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/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/CameraMovementPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/CameraMovementPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/CruisePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/CruisePlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/GuideLinePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ItemLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ItemLabelPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ItemLabelPlugin/index.js +8 -8
- package/dist/ModelChassisCompassPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelEntryDoorGuidePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelItemLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelItemLabelPlugin/index.js +8 -8
- package/dist/ModelRoomLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelRoomLabelPlugin/index.js +27 -30
- package/dist/ModelTVVideoPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelViewPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelViewPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelViewPlugin/index.js +53 -28
- package/dist/Object3DHelperPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoCompassPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoCompassPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoCursorRaycasterPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoDoorLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoDoorLabelPlugin/index.js +1 -1
- package/dist/PanoMeasurePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoRulerPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoRulerPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoRulerProPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoRulerProPlugin/index.js +21 -31
- package/dist/PanoSpatialTagPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoSpatialTagPlugin/index.js +8 -8
- package/dist/PanoTagPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoTagPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoTagPlugin/index.js +162 -187
- package/dist/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/MapviewFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.js +41 -41
- package/dist/floorplan/ModelFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +41 -41
- package/dist/floorplan/PanoFloorplanRadarPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +25 -25
- package/dist/floorplan/TopviewFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +41 -41
- package/dist/index.es.js +341 -355
- package/dist/index.js +349 -363
- package/dist/index.umd.js +352 -366
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PanoTagPluginController.html +23 -23
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +3 -3
- package/libs/ItemLabelPlugin/ItemLabelItem.js +5 -5
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +3 -3
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +5 -5
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +7 -7
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +20 -23
- package/libs/ModelViewPlugin/Plugin.d.ts +13 -2
- package/libs/ModelViewPlugin/Plugin.js +45 -20
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItem.js +20 -30
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -1
- package/libs/PanoSpatialTagPlugin/Components/origins.js +7 -7
- package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +7 -6
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +3 -3
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -5
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +5 -5
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +16 -14
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +1 -1
- package/libs/PanoTagPlugin/Components/PointTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +10 -9
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +18 -16
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +10 -10
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +36 -64
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +13 -19
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/index.js +5 -5
- package/libs/PanoTagPlugin/Components/TagWrapper.js +7 -7
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/nullishCoalescing.js +9 -0
- package/libs/floorplan/Components/BaseImage.js +1 -1
- package/libs/floorplan/Components/Camera.js +9 -9
- package/libs/floorplan/Components/Compass.js +2 -2
- package/libs/floorplan/Components/CurrentFloor.js +1 -1
- package/libs/floorplan/Components/Main.js +1 -1
- package/libs/floorplan/Components/Normalmage.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +6 -6
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +7 -7
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +5 -5
- package/libs/floorplan/Components/SvgImage.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +5 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +9 -9
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +5 -5
- package/package.json +2 -2
- package/libs/node_modules/brace-expansion/index.d.ts +0 -2
- package/libs/node_modules/brace-expansion/index.js +0 -177
- package/libs/node_modules/glob/common.d.ts +0 -7
- package/libs/node_modules/glob/common.js +0 -206
- package/libs/node_modules/glob/glob.js +0 -658
- package/libs/node_modules/glob/sync.d.ts +0 -23
- package/libs/node_modules/glob/sync.js +0 -405
- package/libs/node_modules/minimatch/lib/path.d.ts +0 -1
- package/libs/node_modules/minimatch/lib/path.js +0 -4
- package/libs/node_modules/minimatch/minimatch.d.ts +0 -36
- package/libs/node_modules/minimatch/minimatch.js +0 -784
- package/libs/node_modules/swiper/svelte/index.d.ts +0 -1
- package/libs/node_modules/swiper/svelte/index.js +0 -1
- package/libs/node_modules/swiper/svelte/swiper-slide.d.ts +0 -5
- package/libs/node_modules/swiper/svelte/swiper-slide.js +0 -302
- package/libs/node_modules/swiper/svelte/swiper-svelte.d.ts +0 -4
- package/libs/node_modules/swiper/svelte/swiper-svelte.js +0 -14
- package/libs/node_modules/swiper/svelte/swiper.d.ts +0 -6
- package/libs/node_modules/swiper/svelte/swiper.js +0 -516
- package/libs/src/CSS3DRenderPlugin/CSS3DRender.d.ts +0 -156
- package/libs/src/CSS3DRenderPlugin/CSS3DRender.js +0 -445
- package/libs/src/CSS3DRenderPlugin/Controller.d.ts +0 -78
- package/libs/src/CSS3DRenderPlugin/Controller.js +0 -108
- package/libs/src/CSS3DRenderPlugin/index.d.ts +0 -5
- package/libs/src/CSS3DRenderPlugin/index.js +0 -4
- package/libs/src/CSS3DRenderPlugin/typing.d.ts +0 -26
- package/libs/src/CSS3DRenderPlugin/typing.js +0 -1
- package/libs/src/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +0 -16
- package/libs/src/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -136
- package/libs/src/CSS3DRenderPlugin/utils/centerPoint.d.ts +0 -2
- package/libs/src/CSS3DRenderPlugin/utils/centerPoint.js +0 -4
- package/libs/src/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/src/CSS3DRenderPlugin/utils/evenNumber.js +0 -4
- package/libs/src/CSS3DRenderPlugin/utils/index.d.ts +0 -4
- package/libs/src/CSS3DRenderPlugin/utils/index.js +0 -4
- package/libs/src/CSS3DRenderPlugin/utils/positionToVector3.d.ts +0 -13
- package/libs/src/CSS3DRenderPlugin/utils/positionToVector3.js +0 -11
- package/libs/src/CSS3DRenderPlugin/utils/random.d.ts +0 -1
- package/libs/src/CSS3DRenderPlugin/utils/random.js +0 -3
- package/libs/src/CameraMovementPlugin/CameraMovementPlugin.d.ts +0 -7
- package/libs/src/CameraMovementPlugin/CameraMovementPlugin.js +0 -159
- package/libs/src/CameraMovementPlugin/index.d.ts +0 -5
- package/libs/src/CameraMovementPlugin/index.js +0 -4
- package/libs/src/CameraMovementPlugin/typing.d.ts +0 -68
- package/libs/src/CameraMovementPlugin/typing.js +0 -17
- package/libs/src/CruisePlugin/Controller.d.ts +0 -170
- package/libs/src/CruisePlugin/Controller.js +0 -769
- package/libs/src/CruisePlugin/index.d.ts +0 -6
- package/libs/src/CruisePlugin/index.js +0 -4
- package/libs/src/CruisePlugin/typing.d.ts +0 -129
- package/libs/src/CruisePlugin/typing.js +0 -1
- package/libs/src/CruisePlugin/utils/coordinatesAngle.d.ts +0 -12
- package/libs/src/CruisePlugin/utils/coordinatesAngle.js +0 -12
- package/libs/src/CruisePlugin/utils/coordinatesToVector.d.ts +0 -7
- package/libs/src/CruisePlugin/utils/coordinatesToVector.js +0 -10
- package/libs/src/CruisePlugin/utils/formatRad.d.ts +0 -7
- package/libs/src/CruisePlugin/utils/formatRad.js +0 -12
- package/libs/src/CruisePlugin/utils/linerValue.d.ts +0 -1
- package/libs/src/CruisePlugin/utils/linerValue.js +0 -6
- package/libs/src/CruisePlugin/utils/safeCall.d.ts +0 -1
- package/libs/src/CruisePlugin/utils/safeCall.js +0 -7
- package/libs/src/CruisePlugin/utils/sleep.d.ts +0 -1
- package/libs/src/CruisePlugin/utils/sleep.js +0 -7
- package/libs/src/CruisePlugin/utils/vectorToCoordinates.d.ts +0 -7
- package/libs/src/CruisePlugin/utils/vectorToCoordinates.js +0 -9
- package/libs/src/GuideLinePlugin/Controller.d.ts +0 -46
- package/libs/src/GuideLinePlugin/Controller.js +0 -186
- package/libs/src/GuideLinePlugin/index.d.ts +0 -5
- package/libs/src/GuideLinePlugin/index.js +0 -3
- package/libs/src/GuideLinePlugin/typing.d.ts +0 -31
- package/libs/src/GuideLinePlugin/typing.js +0 -1
- package/libs/src/GuideLinePlugin/utils/getArrowMaterial.d.ts +0 -4
- package/libs/src/GuideLinePlugin/utils/getArrowMaterial.js +0 -19
- package/libs/src/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -14
- package/libs/src/GuideLinePlugin/utils/getLineGeometries.js +0 -183
- package/libs/src/GuideLinePlugin/utils/getPoint.d.ts +0 -3
- package/libs/src/GuideLinePlugin/utils/getPoint.js +0 -23
- package/libs/src/ItemLabelPlugin/Plugin.d.ts +0 -4
- package/libs/src/ItemLabelPlugin/Plugin.js +0 -126
- package/libs/src/ItemLabelPlugin/events.type.d.ts +0 -9
- package/libs/src/ItemLabelPlugin/events.type.js +0 -1
- package/libs/src/ItemLabelPlugin/index.d.ts +0 -9
- package/libs/src/ItemLabelPlugin/index.js +0 -8
- package/libs/src/ItemLabelPlugin/typings.d.ts +0 -65
- package/libs/src/ItemLabelPlugin/typings.js +0 -7
- package/libs/src/ItemLabelPlugin/utils/getLabelTransform.d.ts +0 -1
- package/libs/src/ItemLabelPlugin/utils/getLabelTransform.js +0 -3
- package/libs/src/ItemLabelPlugin/utils/getStrokeLength.d.ts +0 -5
- package/libs/src/ItemLabelPlugin/utils/getStrokeLength.js +0 -16
- package/libs/src/ItemLabelPlugin/utils/isImpacted.d.ts +0 -8
- package/libs/src/ItemLabelPlugin/utils/isImpacted.js +0 -13
- package/libs/src/ItemLabelPlugin/utils/parseData.d.ts +0 -3
- package/libs/src/ItemLabelPlugin/utils/parseData.js +0 -4
- package/libs/src/ItemLabelPlugin/utils/transform2RenderData.d.ts +0 -3
- package/libs/src/ItemLabelPlugin/utils/transform2RenderData.js +0 -4
- package/libs/src/ModelChassisCompassPlugin/Plugin.d.ts +0 -19
- package/libs/src/ModelChassisCompassPlugin/Plugin.js +0 -77
- package/libs/src/ModelChassisCompassPlugin/index.d.ts +0 -4
- package/libs/src/ModelChassisCompassPlugin/index.js +0 -3
- package/libs/src/ModelEntryDoorGuidePlugin/Plugin.d.ts +0 -26
- package/libs/src/ModelEntryDoorGuidePlugin/Plugin.js +0 -140
- package/libs/src/ModelEntryDoorGuidePlugin/index.d.ts +0 -4
- package/libs/src/ModelEntryDoorGuidePlugin/index.js +0 -3
- package/libs/src/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +0 -4
- package/libs/src/ModelItemLabelPlugin/ModelItemLabelPlugin.js +0 -120
- package/libs/src/ModelItemLabelPlugin/events.type.d.ts +0 -9
- package/libs/src/ModelItemLabelPlugin/events.type.js +0 -1
- package/libs/src/ModelItemLabelPlugin/index.d.ts +0 -9
- package/libs/src/ModelItemLabelPlugin/index.js +0 -8
- package/libs/src/ModelItemLabelPlugin/typings.d.ts +0 -56
- package/libs/src/ModelItemLabelPlugin/typings.js +0 -7
- package/libs/src/ModelItemLabelPlugin/utils/parseData.d.ts +0 -3
- package/libs/src/ModelItemLabelPlugin/utils/parseData.js +0 -4
- package/libs/src/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +0 -1
- package/libs/src/ModelRoomLabelPlugin/Assets/roomLabelBg.js +0 -1
- package/libs/src/ModelRoomLabelPlugin/Controller.d.ts +0 -36
- package/libs/src/ModelRoomLabelPlugin/Controller.js +0 -142
- package/libs/src/ModelRoomLabelPlugin/index.d.ts +0 -12
- package/libs/src/ModelRoomLabelPlugin/index.js +0 -9
- package/libs/src/ModelRoomLabelPlugin/typings.d.ts +0 -35
- package/libs/src/ModelRoomLabelPlugin/typings.js +0 -1
- package/libs/src/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -3
- package/libs/src/ModelRoomLabelPlugin/utils/parseData.js +0 -14
- package/libs/src/ModelTVVideoPlugin/Plugin.d.ts +0 -4
- package/libs/src/ModelTVVideoPlugin/Plugin.js +0 -254
- package/libs/src/ModelTVVideoPlugin/index.d.ts +0 -5
- package/libs/src/ModelTVVideoPlugin/index.js +0 -4
- package/libs/src/ModelTVVideoPlugin/typings.d.ts +0 -25
- package/libs/src/ModelTVVideoPlugin/typings.js +0 -8
- package/libs/src/ModelTVVideoPlugin/utils/parseData.d.ts +0 -2
- package/libs/src/ModelTVVideoPlugin/utils/parseData.js +0 -13
- package/libs/src/ModelViewPlugin/Plugin.d.ts +0 -17
- package/libs/src/ModelViewPlugin/Plugin.js +0 -160
- package/libs/src/ModelViewPlugin/index.d.ts +0 -4
- package/libs/src/ModelViewPlugin/index.js +0 -3
- package/libs/src/Object3DHelperPlugin/Controller.d.ts +0 -65
- package/libs/src/Object3DHelperPlugin/Controller.js +0 -206
- package/libs/src/Object3DHelperPlugin/FiveControllerWrapper.d.ts +0 -19
- package/libs/src/Object3DHelperPlugin/FiveControllerWrapper.js +0 -57
- package/libs/src/Object3DHelperPlugin/index.d.ts +0 -6
- package/libs/src/Object3DHelperPlugin/index.js +0 -5
- package/libs/src/Object3DHelperPlugin/mocks/addObject3D.d.ts +0 -2
- package/libs/src/Object3DHelperPlugin/mocks/addObject3D.js +0 -22
- package/libs/src/Object3DHelperPlugin/mocks/objects.d.ts +0 -7
- package/libs/src/Object3DHelperPlugin/mocks/objects.js +0 -44
- package/libs/src/Object3DHelperPlugin/typings.d.ts +0 -24
- package/libs/src/Object3DHelperPlugin/typings.js +0 -1
- package/libs/src/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +0 -1
- package/libs/src/PanoCompassPlugin/Assets/roomInfoIcon.js +0 -1
- package/libs/src/PanoCompassPlugin/Controller.d.ts +0 -84
- package/libs/src/PanoCompassPlugin/Controller.js +0 -460
- package/libs/src/PanoCompassPlugin/getRoomInfoInstance.d.ts +0 -8
- package/libs/src/PanoCompassPlugin/getRoomInfoInstance.js +0 -48
- package/libs/src/PanoCompassPlugin/index.d.ts +0 -7
- package/libs/src/PanoCompassPlugin/index.js +0 -3
- package/libs/src/PanoCompassPlugin/typings.d.ts +0 -57
- package/libs/src/PanoCompassPlugin/typings.js +0 -1
- package/libs/src/PanoCursorRaycasterPlugin/index.d.ts +0 -48
- package/libs/src/PanoCursorRaycasterPlugin/index.js +0 -76
- package/libs/src/PanoDoorLabelPlugin/BaseController.d.ts +0 -60
- package/libs/src/PanoDoorLabelPlugin/BaseController.js +0 -103
- package/libs/src/PanoDoorLabelPlugin/Controller.d.ts +0 -37
- package/libs/src/PanoDoorLabelPlugin/Controller.js +0 -439
- package/libs/src/PanoDoorLabelPlugin/index.d.ts +0 -7
- package/libs/src/PanoDoorLabelPlugin/index.js +0 -6
- package/libs/src/PanoDoorLabelPlugin/typings.d.ts +0 -38
- package/libs/src/PanoDoorLabelPlugin/typings.js +0 -1
- package/libs/src/PanoDoorLabelPlugin/utils.d.ts +0 -5
- package/libs/src/PanoDoorLabelPlugin/utils.js +0 -55
- package/libs/src/PanoMeasurePlugin/Controller/BaseController.d.ts +0 -39
- package/libs/src/PanoMeasurePlugin/Controller/BaseController.js +0 -132
- package/libs/src/PanoMeasurePlugin/Controller/EditController.d.ts +0 -52
- package/libs/src/PanoMeasurePlugin/Controller/EditController.js +0 -329
- package/libs/src/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -44
- package/libs/src/PanoMeasurePlugin/Controller/MixedController.js +0 -337
- package/libs/src/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +0 -12
- package/libs/src/PanoMeasurePlugin/Controller/ShortcutKeyController.js +0 -64
- package/libs/src/PanoMeasurePlugin/Controller/ViewController.d.ts +0 -16
- package/libs/src/PanoMeasurePlugin/Controller/ViewController.js +0 -160
- package/libs/src/PanoMeasurePlugin/Controller/WatchController.d.ts +0 -26
- package/libs/src/PanoMeasurePlugin/Controller/WatchController.js +0 -317
- package/libs/src/PanoMeasurePlugin/Controller/index.d.ts +0 -70
- package/libs/src/PanoMeasurePlugin/Controller/index.js +0 -308
- package/libs/src/PanoMeasurePlugin/Model/index.d.ts +0 -38
- package/libs/src/PanoMeasurePlugin/Model/index.js +0 -139
- package/libs/src/PanoMeasurePlugin/Model/line.d.ts +0 -30
- package/libs/src/PanoMeasurePlugin/Model/line.js +0 -114
- package/libs/src/PanoMeasurePlugin/Model/point.d.ts +0 -16
- package/libs/src/PanoMeasurePlugin/Model/point.js +0 -48
- package/libs/src/PanoMeasurePlugin/Model/polyline.d.ts +0 -16
- package/libs/src/PanoMeasurePlugin/Model/polyline.js +0 -65
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +0 -12
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +0 -25
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/index.js +0 -190
- package/libs/src/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -11
- package/libs/src/PanoMeasurePlugin/Modules/FiveHelper.js +0 -48
- package/libs/src/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -18
- package/libs/src/PanoMeasurePlugin/Modules/GuideController.js +0 -110
- package/libs/src/PanoMeasurePlugin/Modules/Magnifier.d.ts +0 -59
- package/libs/src/PanoMeasurePlugin/Modules/Magnifier.js +0 -278
- package/libs/src/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/UIController/HTML.js +0 -128
- package/libs/src/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -15
- package/libs/src/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +0 -126
- package/libs/src/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +0 -13
- package/libs/src/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +0 -73
- package/libs/src/PanoMeasurePlugin/Modules/UIController/index.d.ts +0 -20
- package/libs/src/PanoMeasurePlugin/Modules/UIController/index.js +0 -117
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +0 -4
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +0 -80
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +0 -12
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +0 -98
- package/libs/src/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -16
- package/libs/src/PanoMeasurePlugin/Modules/UIController/style.js +0 -71
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +0 -4
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/html.js +0 -64
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +0 -44
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/index.js +0 -264
- package/libs/src/PanoMeasurePlugin/index.d.ts +0 -10
- package/libs/src/PanoMeasurePlugin/index.js +0 -7
- package/libs/src/PanoMeasurePlugin/typings/data.d.ts +0 -37
- package/libs/src/PanoMeasurePlugin/typings/data.js +0 -1
- package/libs/src/PanoMeasurePlugin/typings/event.type.d.ts +0 -37
- package/libs/src/PanoMeasurePlugin/typings/event.type.js +0 -1
- package/libs/src/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
- package/libs/src/PanoMeasurePlugin/typings/utils.type.js +0 -1
- package/libs/src/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +0 -10
- package/libs/src/PanoMeasurePlugin/utils/calculateThreeMouse.js +0 -15
- package/libs/src/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/utils/clearGroup.js +0 -3
- package/libs/src/PanoMeasurePlugin/utils/constants.d.ts +0 -4
- package/libs/src/PanoMeasurePlugin/utils/constants.js +0 -31
- package/libs/src/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -28
- package/libs/src/PanoMeasurePlugin/utils/distanceDom.js +0 -120
- package/libs/src/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -21
- package/libs/src/PanoMeasurePlugin/utils/findClosestPoint.d.ts +0 -10
- package/libs/src/PanoMeasurePlugin/utils/findClosestPoint.js +0 -27
- package/libs/src/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +0 -4
- package/libs/src/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +0 -9
- package/libs/src/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +0 -10
- package/libs/src/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +0 -14
- package/libs/src/PanoMeasurePlugin/utils/ironbox.d.ts +0 -1
- package/libs/src/PanoMeasurePlugin/utils/ironbox.js +0 -1
- package/libs/src/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/utils/isNDCPointInScreen.js +0 -6
- package/libs/src/PanoMeasurePlugin/utils/line.d.ts +0 -17
- package/libs/src/PanoMeasurePlugin/utils/line.js +0 -33
- package/libs/src/PanoMeasurePlugin/utils/math.d.ts +0 -17
- package/libs/src/PanoMeasurePlugin/utils/math.js +0 -44
- package/libs/src/PanoMeasurePlugin/utils/mouseGroup.d.ts +0 -7
- package/libs/src/PanoMeasurePlugin/utils/mouseGroup.js +0 -69
- package/libs/src/PanoMeasurePlugin/utils/ndc2Screen.d.ts +0 -5
- package/libs/src/PanoMeasurePlugin/utils/ndc2Screen.js +0 -6
- package/libs/src/PanoRulerPlugin/Plugin.d.ts +0 -31
- package/libs/src/PanoRulerPlugin/Plugin.js +0 -401
- package/libs/src/PanoRulerPlugin/index.d.ts +0 -5
- package/libs/src/PanoRulerPlugin/index.js +0 -3
- package/libs/src/PanoRulerPlugin/style.d.ts +0 -2
- package/libs/src/PanoRulerPlugin/style.js +0 -88
- package/libs/src/PanoRulerPlugin/typings.d.ts +0 -21
- package/libs/src/PanoRulerPlugin/typings.js +0 -1
- package/libs/src/PanoRulerProPlugin/Controller.d.ts +0 -15
- package/libs/src/PanoRulerProPlugin/Controller.js +0 -110
- package/libs/src/PanoRulerProPlugin/index.d.ts +0 -8
- package/libs/src/PanoRulerProPlugin/index.js +0 -8
- package/libs/src/PanoRulerProPlugin/typings.d.ts +0 -46
- package/libs/src/PanoRulerProPlugin/typings.js +0 -1
- package/libs/src/PanoSpatialTagPlugin/Plugin.d.ts +0 -35
- package/libs/src/PanoSpatialTagPlugin/Plugin.js +0 -426
- package/libs/src/PanoSpatialTagPlugin/index.d.ts +0 -5
- package/libs/src/PanoSpatialTagPlugin/index.js +0 -5
- package/libs/src/PanoSpatialTagPlugin/store.d.ts +0 -1
- package/libs/src/PanoSpatialTagPlugin/store.js +0 -2
- package/libs/src/PanoSpatialTagPlugin/style.d.ts +0 -1
- package/libs/src/PanoSpatialTagPlugin/style.js +0 -8
- package/libs/src/PanoSpatialTagPlugin/typings.d.ts +0 -40
- package/libs/src/PanoSpatialTagPlugin/typings.js +0 -1
- package/libs/src/PanoTagPlugin/Assets/Icon.d.ts +0 -2
- package/libs/src/PanoTagPlugin/Assets/Icon.js +0 -2
- package/libs/src/PanoTagPlugin/controller/TagCacheController.d.ts +0 -22
- package/libs/src/PanoTagPlugin/controller/TagCacheController.js +0 -43
- package/libs/src/PanoTagPlugin/controller/TagComputer.d.ts +0 -68
- package/libs/src/PanoTagPlugin/controller/TagComputer.js +0 -410
- package/libs/src/PanoTagPlugin/controller/index.d.ts +0 -143
- package/libs/src/PanoTagPlugin/controller/index.js +0 -638
- package/libs/src/PanoTagPlugin/index.d.ts +0 -8
- package/libs/src/PanoTagPlugin/index.js +0 -5
- package/libs/src/PanoTagPlugin/mocks/mock1.d.ts +0 -168
- package/libs/src/PanoTagPlugin/mocks/mock1.js +0 -170
- package/libs/src/PanoTagPlugin/mocks/mock2.d.ts +0 -233
- package/libs/src/PanoTagPlugin/mocks/mock2.js +0 -293
- package/libs/src/PanoTagPlugin/mocks/mock3.d.ts +0 -22
- package/libs/src/PanoTagPlugin/mocks/mock3.js +0 -31
- package/libs/src/PanoTagPlugin/mocks/mock4.d.ts +0 -56
- package/libs/src/PanoTagPlugin/mocks/mock4.js +0 -57
- package/libs/src/PanoTagPlugin/mocks/mock5.d.ts +0 -13
- package/libs/src/PanoTagPlugin/mocks/mock5.js +0 -14
- package/libs/src/PanoTagPlugin/mocks/mock6.d.ts +0 -16
- package/libs/src/PanoTagPlugin/mocks/mock6.js +0 -236
- package/libs/src/PanoTagPlugin/mocks/mock7.d.ts +0 -22
- package/libs/src/PanoTagPlugin/mocks/mock7.js +0 -246
- package/libs/src/PanoTagPlugin/tag.config.d.ts +0 -7
- package/libs/src/PanoTagPlugin/tag.config.js +0 -47
- package/libs/src/PanoTagPlugin/typings/controller.d.ts +0 -103
- package/libs/src/PanoTagPlugin/typings/controller.js +0 -1
- package/libs/src/PanoTagPlugin/typings/index.d.ts +0 -2
- package/libs/src/PanoTagPlugin/typings/index.js +0 -2
- package/libs/src/PanoTagPlugin/typings/tag.d.ts +0 -237
- package/libs/src/PanoTagPlugin/typings/tag.js +0 -32
- package/libs/src/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -2
- package/libs/src/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +0 -6
- package/libs/src/PanoTagPlugin/utils/addDebugPoints.d.ts +0 -3
- package/libs/src/PanoTagPlugin/utils/addDebugPoints.js +0 -32
- package/libs/src/PanoTagPlugin/utils/checkRange.d.ts +0 -4
- package/libs/src/PanoTagPlugin/utils/checkRange.js +0 -12
- package/libs/src/PanoTagPlugin/utils/constants.d.ts +0 -3
- package/libs/src/PanoTagPlugin/utils/constants.js +0 -5
- package/libs/src/PanoTagPlugin/utils/debounce.d.ts +0 -7
- package/libs/src/PanoTagPlugin/utils/debounce.js +0 -21
- package/libs/src/PanoTagPlugin/utils/index.d.ts +0 -12
- package/libs/src/PanoTagPlugin/utils/index.js +0 -12
- package/libs/src/PanoTagPlugin/utils/noTypecheck.d.ts +0 -1
- package/libs/src/PanoTagPlugin/utils/noTypecheck.js +0 -1
- package/libs/src/PanoTagPlugin/utils/normalPositionToPositions.d.ts +0 -2
- package/libs/src/PanoTagPlugin/utils/normalPositionToPositions.js +0 -35
- package/libs/src/PanoTagPlugin/utils/planeNormal.d.ts +0 -4
- package/libs/src/PanoTagPlugin/utils/planeNormal.js +0 -9
- package/libs/src/PanoTagPlugin/utils/resizeObserver.d.ts +0 -4
- package/libs/src/PanoTagPlugin/utils/resizeObserver.js +0 -15
- package/libs/src/PanoTagPlugin/utils/search.d.ts +0 -11
- package/libs/src/PanoTagPlugin/utils/search.js +0 -65
- package/libs/src/PanoTagPlugin/utils/tagPosition.d.ts +0 -3
- package/libs/src/PanoTagPlugin/utils/tagPosition.js +0 -10
- package/libs/src/PanoTagPlugin/utils/throttle.d.ts +0 -7
- package/libs/src/PanoTagPlugin/utils/throttle.js +0 -17
- package/libs/src/base/BasePlugin.d.ts +0 -100
- package/libs/src/base/BasePlugin.js +0 -31
- package/libs/src/base/BasePluginWithData.d.ts +0 -34
- package/libs/src/base/BasePluginWithData.js +0 -4
- package/libs/src/components/PaintBrush/Controller.d.ts +0 -43
- package/libs/src/components/PaintBrush/Controller.js +0 -575
- package/libs/src/components/PaintBrush/Subscribe.d.ts +0 -76
- package/libs/src/components/PaintBrush/Subscribe.js +0 -121
- package/libs/src/components/PaintBrush/index.d.ts +0 -27
- package/libs/src/components/PaintBrush/index.js +0 -57
- package/libs/src/components/PaintBrush/style.d.ts +0 -2
- package/libs/src/components/PaintBrush/style.js +0 -102
- package/libs/src/components/PaintBrush/tween.d.ts +0 -62
- package/libs/src/components/PaintBrush/tween.js +0 -15
- package/libs/src/components/PaintBrush/typings.d.ts +0 -58
- package/libs/src/components/PaintBrush/typings.js +0 -6
- package/libs/src/components/PaintBrush/utils.d.ts +0 -26
- package/libs/src/components/PaintBrush/utils.js +0 -51
- package/libs/src/components/index.d.ts +0 -2
- package/libs/src/components/index.js +0 -3
- package/libs/src/floorplan/Assets/camera.d.ts +0 -1
- package/libs/src/floorplan/Assets/camera.js +0 -1
- package/libs/src/floorplan/Assets/compass.d.ts +0 -1
- package/libs/src/floorplan/Assets/compass.js +0 -1
- package/libs/src/floorplan/Assets/floorplanExtraObject.d.ts +0 -1
- package/libs/src/floorplan/Assets/floorplanExtraObject.js +0 -1
- package/libs/src/floorplan/MapviewFloorplanPlugin/Controller.d.ts +0 -95
- package/libs/src/floorplan/MapviewFloorplanPlugin/Controller.js +0 -682
- package/libs/src/floorplan/MapviewFloorplanPlugin/index.d.ts +0 -7
- package/libs/src/floorplan/MapviewFloorplanPlugin/index.js +0 -5
- package/libs/src/floorplan/MapviewFloorplanPlugin/typing.d.ts +0 -107
- package/libs/src/floorplan/MapviewFloorplanPlugin/typing.js +0 -1
- package/libs/src/floorplan/ModelFloorplanPlugin/Controller.d.ts +0 -98
- package/libs/src/floorplan/ModelFloorplanPlugin/Controller.js +0 -701
- package/libs/src/floorplan/ModelFloorplanPlugin/index.d.ts +0 -7
- package/libs/src/floorplan/ModelFloorplanPlugin/index.js +0 -5
- package/libs/src/floorplan/ModelFloorplanPlugin/typing.d.ts +0 -107
- package/libs/src/floorplan/ModelFloorplanPlugin/typing.js +0 -1
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +0 -36
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -240
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -7
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/index.js +0 -5
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +0 -52
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/typing.js +0 -1
- package/libs/src/floorplan/TopviewFloorplanPlugin/Controller.d.ts +0 -67
- package/libs/src/floorplan/TopviewFloorplanPlugin/Controller.js +0 -486
- package/libs/src/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -7
- package/libs/src/floorplan/TopviewFloorplanPlugin/index.js +0 -5
- package/libs/src/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -1
- package/libs/src/floorplan/TopviewFloorplanPlugin/style.js +0 -8
- package/libs/src/floorplan/TopviewFloorplanPlugin/typing.d.ts +0 -86
- package/libs/src/floorplan/TopviewFloorplanPlugin/typing.js +0 -1
- package/libs/src/floorplan/constant.d.ts +0 -5
- package/libs/src/floorplan/constant.js +0 -6
- package/libs/src/floorplan/index.d.ts +0 -7
- package/libs/src/floorplan/index.js +0 -8
- package/libs/src/floorplan/typings/floorplanData.d.ts +0 -137
- package/libs/src/floorplan/typings/floorplanData.js +0 -6
- package/libs/src/floorplan/typings/floorplanServerData.d.ts +0 -144
- package/libs/src/floorplan/typings/floorplanServerData.js +0 -101
- package/libs/src/floorplan/typings/utility.d.ts +0 -2
- package/libs/src/floorplan/typings/utility.js +0 -1
- package/libs/src/floorplan/utils/constant.d.ts +0 -22
- package/libs/src/floorplan/utils/constant.js +0 -23
- package/libs/src/floorplan/utils/correctFiveState.d.ts +0 -15
- package/libs/src/floorplan/utils/correctFiveState.js +0 -46
- package/libs/src/floorplan/utils/formatData.d.ts +0 -5
- package/libs/src/floorplan/utils/formatData.js +0 -94
- package/libs/src/floorplan/utils/formatPosition.d.ts +0 -36
- package/libs/src/floorplan/utils/formatPosition.js +0 -50
- package/libs/src/index.d.ts +0 -22
- package/libs/src/index.js +0 -39
- package/libs/src/shared-utils/Object3DHelper/Base/BaseController.d.ts +0 -48
- package/libs/src/shared-utils/Object3DHelper/Base/BaseController.js +0 -271
- package/libs/src/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +0 -91
- package/libs/src/shared-utils/Object3DHelper/Base/BaseHelper.js +0 -55
- package/libs/src/shared-utils/Object3DHelper/Constants/color.d.ts +0 -12
- package/libs/src/shared-utils/Object3DHelper/Constants/color.js +0 -23
- package/libs/src/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +0 -6
- package/libs/src/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +0 -21
- package/libs/src/shared-utils/Object3DHelper/Controller/MoveController.d.ts +0 -13
- package/libs/src/shared-utils/Object3DHelper/Controller/MoveController.js +0 -111
- package/libs/src/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +0 -37
- package/libs/src/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +0 -199
- package/libs/src/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -22
- package/libs/src/shared-utils/Object3DHelper/Controller/RotateController.js +0 -265
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +0 -11
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +0 -101
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +0 -6
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +0 -24
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +0 -12
- package/libs/src/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +0 -13
- package/libs/src/shared-utils/Object3DHelper/Helper/MoveHelper.js +0 -43
- package/libs/src/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +0 -17
- package/libs/src/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +0 -83
- package/libs/src/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +0 -11
- package/libs/src/shared-utils/Object3DHelper/Helper/OutlineHelper.js +0 -130
- package/libs/src/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +0 -40
- package/libs/src/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +0 -229
- package/libs/src/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +0 -55
- package/libs/src/shared-utils/Object3DHelper/Helper/RotateHelper.js +0 -246
- package/libs/src/shared-utils/Object3DHelper/Helper/index.d.ts +0 -5
- package/libs/src/shared-utils/Object3DHelper/Helper/index.js +0 -5
- package/libs/src/shared-utils/Object3DHelper/index.d.ts +0 -71
- package/libs/src/shared-utils/Object3DHelper/index.js +0 -301
- package/libs/src/shared-utils/Object3DHelper/typings/Direction.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/typings/Direction.js +0 -1
- package/libs/src/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -45
- package/libs/src/shared-utils/Object3DHelper/typings/Hooks.js +0 -1
- package/libs/src/shared-utils/Object3DHelper/typings/Scissor.d.ts +0 -17
- package/libs/src/shared-utils/Object3DHelper/typings/Scissor.js +0 -1
- package/libs/src/shared-utils/Object3DHelper/typings/index.d.ts +0 -5
- package/libs/src/shared-utils/Object3DHelper/typings/index.js +0 -3
- package/libs/src/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +0 -14
- package/libs/src/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +0 -15
- package/libs/src/shared-utils/Object3DHelper/utils/direction.d.ts +0 -14
- package/libs/src/shared-utils/Object3DHelper/utils/direction.js +0 -37
- package/libs/src/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +0 -20
- package/libs/src/shared-utils/Object3DHelper/utils/finiteNumber.d.ts +0 -1
- package/libs/src/shared-utils/Object3DHelper/utils/finiteNumber.js +0 -9
- package/libs/src/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +0 -5
- package/libs/src/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +0 -12
- package/libs/src/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
- package/libs/src/shared-utils/Object3DHelper/utils/getPoint.js +0 -22
- package/libs/src/shared-utils/Object3DHelper/utils/index.d.ts +0 -8
- package/libs/src/shared-utils/Object3DHelper/utils/index.js +0 -8
- package/libs/src/shared-utils/Object3DHelper/utils/negateScale.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/utils/negateScale.js +0 -4
- package/libs/src/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +0 -5
- package/libs/src/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +0 -17
- package/libs/src/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +0 -1
- package/libs/src/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +0 -1
- package/libs/src/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +0 -67
- package/libs/src/shared-utils/Object3DHelper/utils/threex/domevents/index.js +0 -390
- package/libs/src/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/utils/vectorIsEqual.js +0 -10
- package/libs/src/shared-utils/Preloader.d.ts +0 -6
- package/libs/src/shared-utils/Preloader.js +0 -38
- package/libs/src/shared-utils/Subscribe.d.ts +0 -61
- package/libs/src/shared-utils/Subscribe.js +0 -117
- package/libs/src/shared-utils/animationFrame/BetterTween.d.ts +0 -11
- package/libs/src/shared-utils/animationFrame/BetterTween.js +0 -59
- package/libs/src/shared-utils/animationFrame/calculateProgress.d.ts +0 -8
- package/libs/src/shared-utils/animationFrame/calculateProgress.js +0 -23
- package/libs/src/shared-utils/animationFrame/formatRad.d.ts +0 -15
- package/libs/src/shared-utils/animationFrame/formatRad.js +0 -20
- package/libs/src/shared-utils/animationFrame/index.d.ts +0 -15
- package/libs/src/shared-utils/animationFrame/index.js +0 -48
- package/libs/src/shared-utils/animationFrame/tween.d.ts +0 -75
- package/libs/src/shared-utils/animationFrame/tween.js +0 -44
- package/libs/src/shared-utils/changeModelCanvasOpacity.d.ts +0 -2
- package/libs/src/shared-utils/changeModelCanvasOpacity.js +0 -15
- package/libs/src/shared-utils/createCanvasTextTexture.d.ts +0 -8
- package/libs/src/shared-utils/createCanvasTextTexture.js +0 -20
- package/libs/src/shared-utils/createLine/index.d.ts +0 -3
- package/libs/src/shared-utils/createLine/index.js +0 -8
- package/libs/src/shared-utils/debounce.d.ts +0 -6
- package/libs/src/shared-utils/debounce.js +0 -14
- package/libs/src/shared-utils/equal.d.ts +0 -11
- package/libs/src/shared-utils/equal.js +0 -84
- package/libs/src/shared-utils/filter.d.ts +0 -27
- package/libs/src/shared-utils/filter.js +0 -53
- package/libs/src/shared-utils/five/changeMode.d.ts +0 -5
- package/libs/src/shared-utils/five/changeMode.js +0 -36
- package/libs/src/shared-utils/formatRad.d.ts +0 -7
- package/libs/src/shared-utils/formatRad.js +0 -10
- package/libs/src/shared-utils/getPxmm.d.ts +0 -19
- package/libs/src/shared-utils/getPxmm.js +0 -39
- package/libs/src/shared-utils/getRandomColor.d.ts +0 -1
- package/libs/src/shared-utils/getRandomColor.js +0 -10
- package/libs/src/shared-utils/index.d.ts +0 -1
- package/libs/src/shared-utils/index.js +0 -1
- package/libs/src/shared-utils/isNil.d.ts +0 -10
- package/libs/src/shared-utils/isNil.js +0 -14
- package/libs/src/shared-utils/isTruelyObject.d.ts +0 -18
- package/libs/src/shared-utils/isTruelyObject.js +0 -20
- package/libs/src/shared-utils/logger.d.ts +0 -16
- package/libs/src/shared-utils/logger.js +0 -47
- package/libs/src/shared-utils/math/Interval.d.ts +0 -13
- package/libs/src/shared-utils/math/Interval.js +0 -40
- package/libs/src/shared-utils/math/Rectangle.d.ts +0 -27
- package/libs/src/shared-utils/math/Rectangle.js +0 -50
- package/libs/src/shared-utils/math/evenNumber.d.ts +0 -3
- package/libs/src/shared-utils/math/evenNumber.js +0 -4
- package/libs/src/shared-utils/math/index.d.ts +0 -2
- package/libs/src/shared-utils/math/index.js +0 -2
- package/libs/src/shared-utils/math/planimetry.d.ts +0 -116
- package/libs/src/shared-utils/math/planimetry.js +0 -288
- package/libs/src/shared-utils/math/rad2Deg.d.ts +0 -1
- package/libs/src/shared-utils/math/rad2Deg.js +0 -3
- package/libs/src/shared-utils/nearlyEqual.d.ts +0 -7
- package/libs/src/shared-utils/nearlyEqual.js +0 -9
- package/libs/src/shared-utils/nextFrame.d.ts +0 -1
- package/libs/src/shared-utils/nextFrame.js +0 -6
- package/libs/src/shared-utils/noop.d.ts +0 -5
- package/libs/src/shared-utils/noop.js +0 -7
- package/libs/src/shared-utils/object3d2LocalMatrix.d.ts +0 -12
- package/libs/src/shared-utils/object3d2LocalMatrix.js +0 -29
- package/libs/src/shared-utils/px2rem.d.ts +0 -1
- package/libs/src/shared-utils/px2rem.js +0 -4
- package/libs/src/shared-utils/removeArrayItem.d.ts +0 -7
- package/libs/src/shared-utils/removeArrayItem.js +0 -12
- package/libs/src/shared-utils/tap.d.ts +0 -8
- package/libs/src/shared-utils/tap.js +0 -12
- package/libs/src/shared-utils/three/centerPoint.d.ts +0 -2
- package/libs/src/shared-utils/three/centerPoint.js +0 -4
- package/libs/src/shared-utils/three/getExtraModelLoader.d.ts +0 -6
- package/libs/src/shared-utils/three/getExtraModelLoader.js +0 -18
- package/libs/src/shared-utils/three/getNormal.d.ts +0 -2
- package/libs/src/shared-utils/three/getNormal.js +0 -6
- package/libs/src/shared-utils/three/getTextureLoader.d.ts +0 -6
- package/libs/src/shared-utils/three/getTextureLoader.js +0 -17
- package/libs/src/shared-utils/three/loadFbxObj.d.ts +0 -2
- package/libs/src/shared-utils/three/loadFbxObj.js +0 -13
- package/libs/src/shared-utils/three/loadTexture.d.ts +0 -2
- package/libs/src/shared-utils/three/loadTexture.js +0 -10
- package/libs/src/shared-utils/three/transformPositionToVector3.d.ts +0 -7
- package/libs/src/shared-utils/three/transformPositionToVector3.js +0 -3
- package/libs/src/shared-utils/three/transfromToMeshBasicMaterial.d.ts +0 -2
- package/libs/src/shared-utils/three/transfromToMeshBasicMaterial.js +0 -15
- package/libs/src/shared-utils/throttle.d.ts +0 -7
- package/libs/src/shared-utils/throttle.js +0 -18
- package/libs/src/shared-utils/tinyEJSrender.d.ts +0 -5
- package/libs/src/shared-utils/tinyEJSrender.js +0 -210
- package/libs/src/shared-utils/to.d.ts +0 -8
- package/libs/src/shared-utils/to.js +0 -18
- package/libs/src/shared-utils/uuid.d.ts +0 -5
- package/libs/src/shared-utils/uuid.js +0 -12
- package/libs/src/shared-utils/vectorTocoordinates.d.ts +0 -7
- package/libs/src/shared-utils/vectorTocoordinates.js +0 -9
- package/libs/src/typings/math.type.d.ts +0 -44
- package/libs/src/typings/math.type.js +0 -1
- package/libs/src/typings/utils.type.d.ts +0 -2
- package/libs/src/typings/utils.type.js +0 -1
|
@@ -1,769 +0,0 @@
|
|
|
1
|
-
import * as BasePluginWithData from '../base/BasePluginWithData';
|
|
2
|
-
import { GuideLinePlugin } from '../GuideLinePlugin';
|
|
3
|
-
import uuid from '../shared-utils/uuid';
|
|
4
|
-
import { coordinatesAngle } from './utils/coordinatesAngle';
|
|
5
|
-
import { safeCall } from './utils/safeCall';
|
|
6
|
-
import equal from '../shared-utils/equal';
|
|
7
|
-
import { vectorToCoordinates } from './utils/vectorToCoordinates';
|
|
8
|
-
import * as THREE from 'three';
|
|
9
|
-
import linerValue from './utils/linerValue';
|
|
10
|
-
import { sleep } from './utils/sleep';
|
|
11
|
-
const VERSION = 'v1.0.6';
|
|
12
|
-
const PLUGIN_NAME = 'CruisePlugin';
|
|
13
|
-
const PLUGIN = `${PLUGIN_NAME}@${VERSION}`;
|
|
14
|
-
export const pluginFlag = (name) => `${PLUGIN}--${name}`;
|
|
15
|
-
const disposedErrorLog = () => {
|
|
16
|
-
console.error(`${PLUGIN} is disposed`);
|
|
17
|
-
};
|
|
18
|
-
const disableWarnLog = () => {
|
|
19
|
-
console.warn(`${PLUGIN} is disabled`);
|
|
20
|
-
};
|
|
21
|
-
const disableErrorLog = () => {
|
|
22
|
-
console.error(`${PLUGIN} is disabled`);
|
|
23
|
-
};
|
|
24
|
-
const pauseDataMap = new Map();
|
|
25
|
-
export default class CruisePluginController extends BasePluginWithData.Controller {
|
|
26
|
-
constructor(five) {
|
|
27
|
-
super(five);
|
|
28
|
-
Object.defineProperty(this, "state", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
configurable: true,
|
|
31
|
-
writable: true,
|
|
32
|
-
value: {
|
|
33
|
-
visible: true,
|
|
34
|
-
enabled: true,
|
|
35
|
-
disposed: false,
|
|
36
|
-
playing: false,
|
|
37
|
-
speed: 1,
|
|
38
|
-
config: {
|
|
39
|
-
speedConfig: {
|
|
40
|
-
rotateSpeed: 0.001,
|
|
41
|
-
rotateSpeedUnit: 'rad/ms',
|
|
42
|
-
moveSpeed: 0.002,
|
|
43
|
-
moveSpeedUnit: 'm/ms',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(this, "data", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true,
|
|
51
|
-
writable: true,
|
|
52
|
-
value: void 0
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(this, "privateState", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
configurable: true,
|
|
57
|
-
writable: true,
|
|
58
|
-
value: {
|
|
59
|
-
playing: false,
|
|
60
|
-
currentPlayQueue: [],
|
|
61
|
-
currentPlayKeyframe: null,
|
|
62
|
-
broke: false,
|
|
63
|
-
disposers: [],
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(this, "GuideLine", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
configurable: true,
|
|
69
|
-
writable: true,
|
|
70
|
-
value: void 0
|
|
71
|
-
});
|
|
72
|
-
Object.assign(window, { [`__${PLUGIN_NAME}_DEBUG__`]: this });
|
|
73
|
-
const setFiveLinearUpdateCamera = this.setFiveLinearUpdateCamera.bind(this);
|
|
74
|
-
const setFiveOriginUpdateCamera = this.setFiveOriginUpdateCamera.bind(this);
|
|
75
|
-
this.hooks.on('play', setFiveLinearUpdateCamera);
|
|
76
|
-
this.hooks.on('broke', setFiveOriginUpdateCamera);
|
|
77
|
-
this.hooks.on('end', setFiveOriginUpdateCamera);
|
|
78
|
-
this.hooks.on('pause', setFiveOriginUpdateCamera);
|
|
79
|
-
this.privateState.disposers.push(() => {
|
|
80
|
-
this.hooks.off('play', setFiveLinearUpdateCamera);
|
|
81
|
-
this.hooks.off('broke', setFiveOriginUpdateCamera);
|
|
82
|
-
this.hooks.off('end', setFiveOriginUpdateCamera);
|
|
83
|
-
this.hooks.off('pause', setFiveOriginUpdateCamera);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* @description Load Data and State
|
|
88
|
-
*/
|
|
89
|
-
async load(serverData, state, userAction) {
|
|
90
|
-
var _a, _b, _c, _d, _e;
|
|
91
|
-
if (this.state.disposed)
|
|
92
|
-
return disposedErrorLog();
|
|
93
|
-
if (!this.privateState.fiveOriginGetProgress) {
|
|
94
|
-
if (!((_b = (_a = this.five.controller) === null || _a === void 0 ? void 0 : _a.cameraMotion) === null || _b === void 0 ? void 0 : _b.getProgress)) {
|
|
95
|
-
await this.waitFiveLoaded();
|
|
96
|
-
this.privateState.fiveOriginGetProgress = (_d = (_c = this.five.controller) === null || _c === void 0 ? void 0 : _c.cameraMotion) === null || _d === void 0 ? void 0 : _d.getProgress;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
this.clear();
|
|
100
|
-
// copy this.data
|
|
101
|
-
const prevData = this.data ? JSON.parse(JSON.stringify(this.data)) : undefined;
|
|
102
|
-
// format server data to plugin data
|
|
103
|
-
const data = await this.formatData(serverData);
|
|
104
|
-
this.data = data;
|
|
105
|
-
this.hooks.emit('dataChange', data, prevData);
|
|
106
|
-
let guideLinePanoIndex = [];
|
|
107
|
-
let tempFloorIndex;
|
|
108
|
-
// filter panoIndex list Data
|
|
109
|
-
const hasPanoIndexKeyframes = this.data.keyframes.filter((keyframe) => keyframe.data.panoIndex !== undefined);
|
|
110
|
-
hasPanoIndexKeyframes
|
|
111
|
-
.filter((keyframe, index) => { var _a; return keyframe.data.panoIndex !== ((_a = hasPanoIndexKeyframes[index - 1]) === null || _a === void 0 ? void 0 : _a.data.panoIndex); })
|
|
112
|
-
.map((keyframe) => keyframe.data.panoIndex)
|
|
113
|
-
.forEach((panoIndex) => {
|
|
114
|
-
var _a, _b;
|
|
115
|
-
const floorIndex = (_a = this.five.work.observers[panoIndex]) === null || _a === void 0 ? void 0 : _a.floorIndex;
|
|
116
|
-
if (floorIndex === undefined)
|
|
117
|
-
return;
|
|
118
|
-
if (tempFloorIndex === floorIndex) {
|
|
119
|
-
const index = guideLinePanoIndex.length - 1;
|
|
120
|
-
guideLinePanoIndex[index] = [...((_b = guideLinePanoIndex[index]) !== null && _b !== void 0 ? _b : []), panoIndex];
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
tempFloorIndex = floorIndex;
|
|
124
|
-
const index = guideLinePanoIndex.length;
|
|
125
|
-
guideLinePanoIndex[index] = [panoIndex];
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
// initialize GuideLinePlugin
|
|
129
|
-
if (!this.GuideLine)
|
|
130
|
-
this.GuideLine = GuideLinePlugin(this.five);
|
|
131
|
-
// load GuideLine
|
|
132
|
-
(_e = this.GuideLine) === null || _e === void 0 ? void 0 : _e.load({ routes: guideLinePanoIndex.map((route) => ({ panoIndexList: route })) });
|
|
133
|
-
// first pause
|
|
134
|
-
this.setState({ playing: false });
|
|
135
|
-
// set state
|
|
136
|
-
this.handleVisible(this.state.visible);
|
|
137
|
-
this.handleEnable(this.state.enabled);
|
|
138
|
-
this.changePlayState(this.state.playing);
|
|
139
|
-
this.changeSpeed(this.state.speed);
|
|
140
|
-
// initialize plugin state
|
|
141
|
-
if (state)
|
|
142
|
-
this.setState(state, { userAction });
|
|
143
|
-
// load end
|
|
144
|
-
console.log(`${PLUGIN} loaded`, data);
|
|
145
|
-
this.hooks.emit('dataLoaded', data);
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
149
|
-
*/
|
|
150
|
-
play(options) {
|
|
151
|
-
this.setState({ playing: true }, options);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* @description If playing, first pause, then play from keyframes index/id
|
|
155
|
-
* @param {number} options.index play from keyframes index
|
|
156
|
-
* @param {string} options.id play from keyframes id
|
|
157
|
-
*/
|
|
158
|
-
playFrom(options) {
|
|
159
|
-
const { index, id, userAction } = options;
|
|
160
|
-
if (this.state.playing)
|
|
161
|
-
this.setState({ playing: false }, { userAction });
|
|
162
|
-
this.setState({ playing: true }, { userAction, playFromIndex: index, playFromId: id });
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* @description Play from first keyframe
|
|
166
|
-
*/
|
|
167
|
-
playFromStart(options) {
|
|
168
|
-
return this.playFrom(Object.assign(Object.assign({}, options), { index: 0 }));
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* @description Pause
|
|
172
|
-
*/
|
|
173
|
-
pause(options) {
|
|
174
|
-
this.setState({ playing: false }, options);
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* @description Show guide line
|
|
178
|
-
*/
|
|
179
|
-
async show(options) {
|
|
180
|
-
this.setState({ visible: true }, options);
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* @description Hide guide line
|
|
184
|
-
*/
|
|
185
|
-
async hide(options) {
|
|
186
|
-
this.setState({ visible: false }, options);
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* @description Enable
|
|
190
|
-
*/
|
|
191
|
-
enable(options) {
|
|
192
|
-
this.setState({ enabled: true }, options);
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* @description Disable
|
|
196
|
-
*/
|
|
197
|
-
disable(options) {
|
|
198
|
-
this.setState({ enabled: false }, options);
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* @description Dispose
|
|
202
|
-
*/
|
|
203
|
-
dispose() {
|
|
204
|
-
this.setState({ disposed: true });
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* @description Set state
|
|
208
|
-
*/
|
|
209
|
-
setState(state, options) {
|
|
210
|
-
var _a;
|
|
211
|
-
if (this.state.disposed)
|
|
212
|
-
return disposedErrorLog();
|
|
213
|
-
if (!this.state.enabled) {
|
|
214
|
-
// when plugin is disabled, only can change enabled or disposed to true
|
|
215
|
-
if (state.enabled !== true && state.disposed !== true)
|
|
216
|
-
return disableErrorLog();
|
|
217
|
-
}
|
|
218
|
-
const prevState = Object.assign({}, this.state);
|
|
219
|
-
this.state = Object.assign(Object.assign({}, this.state), state);
|
|
220
|
-
if (state.disposed !== undefined && state.disposed !== prevState.disposed) {
|
|
221
|
-
if (state.disposed)
|
|
222
|
-
this.handleDispose();
|
|
223
|
-
}
|
|
224
|
-
if (state.visible !== undefined && state.visible !== prevState.visible) {
|
|
225
|
-
this.handleVisible(state.visible, options === null || options === void 0 ? void 0 : options.userAction);
|
|
226
|
-
}
|
|
227
|
-
if (state.enabled !== undefined && state.enabled !== prevState.enabled) {
|
|
228
|
-
this.handleEnable(state.enabled, options === null || options === void 0 ? void 0 : options.userAction);
|
|
229
|
-
}
|
|
230
|
-
if (state.playing !== undefined && state.playing !== prevState.playing) {
|
|
231
|
-
this.changePlayState(state.playing, options);
|
|
232
|
-
}
|
|
233
|
-
if (state.speed !== undefined && state.speed !== prevState.speed) {
|
|
234
|
-
this.changeSpeed(state.speed, options === null || options === void 0 ? void 0 : options.userAction);
|
|
235
|
-
}
|
|
236
|
-
if (!equal(prevState, this.state, { deep: true })) {
|
|
237
|
-
this.hooks.emit('stateChange', { state: this.state, prevState, userAction: (_a = options === null || options === void 0 ? void 0 : options.userAction) !== null && _a !== void 0 ? _a : true });
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* @description Format data
|
|
242
|
-
*/
|
|
243
|
-
async formatData(serverData) {
|
|
244
|
-
if (!this.five.work)
|
|
245
|
-
await this.waitFiveLoaded();
|
|
246
|
-
const observers = this.five.work.observers;
|
|
247
|
-
const data = (() => {
|
|
248
|
-
const _serverData = serverData;
|
|
249
|
-
if (typeof _serverData === 'object' && _serverData !== null && _serverData.version && _serverData.data) {
|
|
250
|
-
return _serverData.data;
|
|
251
|
-
}
|
|
252
|
-
return _serverData;
|
|
253
|
-
})();
|
|
254
|
-
if (data.keyframes) {
|
|
255
|
-
return {
|
|
256
|
-
keyframesId: uuid(),
|
|
257
|
-
keyframes: data.keyframes.map((keyframe, index) => {
|
|
258
|
-
var _a;
|
|
259
|
-
const nextKeyframe = data.keyframes[index + 1];
|
|
260
|
-
const stay = (() => {
|
|
261
|
-
if (!nextKeyframe)
|
|
262
|
-
return 0;
|
|
263
|
-
if (nextKeyframe.start === undefined || keyframe.end === undefined)
|
|
264
|
-
return 0;
|
|
265
|
-
return nextKeyframe.start - keyframe.end;
|
|
266
|
-
})();
|
|
267
|
-
return Object.assign({ id: (_a = keyframe.uuid) !== null && _a !== void 0 ? _a : uuid(), moveIndex: index, stay, index }, keyframe);
|
|
268
|
-
}),
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
else if (data.panoIndexList) {
|
|
272
|
-
let keyframes = [];
|
|
273
|
-
const { moveEffect, moveToFirstPanoEffect } = data;
|
|
274
|
-
this.privateState.moveToFirstPanoEffect = moveToFirstPanoEffect;
|
|
275
|
-
data.panoIndexList
|
|
276
|
-
.filter((panoIndex, index) => panoIndex !== data.panoIndexList[index - 1])
|
|
277
|
-
.forEach((panoIndex, index) => {
|
|
278
|
-
const lookatNextPanoIndex = (() => {
|
|
279
|
-
var _a, _b, _c, _d;
|
|
280
|
-
const nextPanoIndex = data.panoIndexList[index + 1];
|
|
281
|
-
if (nextPanoIndex === undefined)
|
|
282
|
-
return;
|
|
283
|
-
const vectorFrom = (_a = observers[panoIndex]) === null || _a === void 0 ? void 0 : _a.position;
|
|
284
|
-
const vectorTo = (_b = observers[nextPanoIndex]) === null || _b === void 0 ? void 0 : _b.position;
|
|
285
|
-
if (!vectorTo || !vectorFrom)
|
|
286
|
-
return;
|
|
287
|
-
// if panoIndex and next panoIndex isn't in same floor, return
|
|
288
|
-
if (((_c = observers[panoIndex]) === null || _c === void 0 ? void 0 : _c.floorIndex) !== ((_d = observers[nextPanoIndex]) === null || _d === void 0 ? void 0 : _d.floorIndex))
|
|
289
|
-
return;
|
|
290
|
-
const vector = new THREE.Vector3().subVectors(vectorTo, vectorFrom);
|
|
291
|
-
return vectorToCoordinates(vector);
|
|
292
|
-
})();
|
|
293
|
-
if (data.moveType === undefined || data.moveType === 'justMove') {
|
|
294
|
-
// move to panoIndex, latitude, longitude
|
|
295
|
-
keyframes.push({
|
|
296
|
-
moveIndex: index,
|
|
297
|
-
stay: data.stay,
|
|
298
|
-
data: Object.assign({ effect: 'Move', panoIndex, moveEffect }, (lookatNextPanoIndex !== null && lookatNextPanoIndex !== void 0 ? lookatNextPanoIndex : {})),
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
else if (data.moveType === 'moveAndRotate') {
|
|
302
|
-
// move to panoIndex, then rotate to latitude and longitude
|
|
303
|
-
keyframes.push({ moveIndex: index, stay: data.stay, data: { effect: 'Move', panoIndex, moveEffect } });
|
|
304
|
-
if (lookatNextPanoIndex)
|
|
305
|
-
keyframes.push({ moveIndex: index, stay: data.stay, data: Object.assign({ effect: 'Rotate', panoIndex }, lookatNextPanoIndex) });
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
return { keyframesId: uuid(), keyframes: keyframes.map((keyframe, index) => (Object.assign({ id: uuid(), index }, keyframe))) };
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
throw new Error('format error: data no keyframes or no panoIndexList');
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
handleEnable(enabled, userAction = true) {
|
|
315
|
-
var _a, _b;
|
|
316
|
-
if (enabled) {
|
|
317
|
-
(_a = this.GuideLine) === null || _a === void 0 ? void 0 : _a.enable();
|
|
318
|
-
this.hooks.emit('enable', { userAction });
|
|
319
|
-
}
|
|
320
|
-
else {
|
|
321
|
-
(_b = this.GuideLine) === null || _b === void 0 ? void 0 : _b.disable();
|
|
322
|
-
this.changePlayState(false, { userAction });
|
|
323
|
-
this.hooks.emit('disable', { userAction });
|
|
324
|
-
}
|
|
325
|
-
this.state.enabled = enabled;
|
|
326
|
-
}
|
|
327
|
-
handleVisible(visible, userAction = true) {
|
|
328
|
-
var _a, _b;
|
|
329
|
-
if (visible) {
|
|
330
|
-
(_a = this.GuideLine) === null || _a === void 0 ? void 0 : _a.show();
|
|
331
|
-
this.actionIfStateIsEnabled(() => this.hooks.emit('show', { userAction }));
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
(_b = this.GuideLine) === null || _b === void 0 ? void 0 : _b.hide();
|
|
335
|
-
this.actionIfStateIsEnabled(() => this.hooks.emit('hide', { userAction }));
|
|
336
|
-
}
|
|
337
|
-
this.state.visible = visible;
|
|
338
|
-
}
|
|
339
|
-
changePlayState(play, options) {
|
|
340
|
-
this.actionIfStateIsEnabled(() => { var _a; return this.hooks.emit('playStateChange', play ? 'playing' : 'pause', { userAction: (_a = options === null || options === void 0 ? void 0 : options.userAction) !== null && _a !== void 0 ? _a : true }); });
|
|
341
|
-
play ? this.handlePlay(options) : this.handlePause(options);
|
|
342
|
-
this.state.playing = play;
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
346
|
-
* @param {number} options.playFromIndex play from keyframes index
|
|
347
|
-
* @param {string} options.playFromId play from keyframes id
|
|
348
|
-
*/
|
|
349
|
-
// eslint-disable-next-line complexity
|
|
350
|
-
async handlePlay(options) {
|
|
351
|
-
var _a;
|
|
352
|
-
const { data, state, privateState, hooks } = this;
|
|
353
|
-
// check whether keyframes can be played
|
|
354
|
-
if (privateState.playing)
|
|
355
|
-
return;
|
|
356
|
-
if (!(data === null || data === void 0 ? void 0 : data.keyframes) || (data === null || data === void 0 ? void 0 : data.keyframes.length) === 0)
|
|
357
|
-
return;
|
|
358
|
-
// set current play id
|
|
359
|
-
const currentPlayId = uuid();
|
|
360
|
-
// if handlePlay function is called again before play end, currentPlayId isn't equal to privateState.playId
|
|
361
|
-
privateState.playId = currentPlayId;
|
|
362
|
-
// set state
|
|
363
|
-
privateState.playing = true;
|
|
364
|
-
privateState.broke = false;
|
|
365
|
-
const keyframes = data.keyframes;
|
|
366
|
-
const pauseData = this.getPauseData();
|
|
367
|
-
if ((options === null || options === void 0 ? void 0 : options.notEmitEvent) !== true) {
|
|
368
|
-
hooks.emit('play', { userAction: (_a = options === null || options === void 0 ? void 0 : options.userAction) !== null && _a !== void 0 ? _a : true });
|
|
369
|
-
}
|
|
370
|
-
let playedFirstKeyframe = false;
|
|
371
|
-
const getPlayFromIndex = async () => {
|
|
372
|
-
var _a, _b;
|
|
373
|
-
// play from index
|
|
374
|
-
if ((options === null || options === void 0 ? void 0 : options.playFromIndex) !== undefined)
|
|
375
|
-
return options.playFromIndex;
|
|
376
|
-
// play from id
|
|
377
|
-
else if ((options === null || options === void 0 ? void 0 : options.playFromId) !== undefined)
|
|
378
|
-
return (_a = this.data) === null || _a === void 0 ? void 0 : _a.keyframes.findIndex((keyframe) => keyframe.id === options.playFromId);
|
|
379
|
-
// play from pause position
|
|
380
|
-
else if (pauseData === null || pauseData === void 0 ? void 0 : pauseData.keyframeId) {
|
|
381
|
-
const pausedKeyframe = (_b = this.data) === null || _b === void 0 ? void 0 : _b.keyframes.find((keyframe) => keyframe.id === pauseData.keyframeId);
|
|
382
|
-
// restore paused state
|
|
383
|
-
if (pauseData === null || pauseData === void 0 ? void 0 : pauseData.fiveState)
|
|
384
|
-
await this.move(pauseData.fiveState, { moveEffect: privateState.moveToFirstPanoEffect });
|
|
385
|
-
if (pausedKeyframe) {
|
|
386
|
-
if (pausedKeyframe.data.effect === 'Move')
|
|
387
|
-
return pausedKeyframe.index;
|
|
388
|
-
else if (pausedKeyframe.data.effect === 'Rotate') {
|
|
389
|
-
const duration = pauseData.duration !== undefined ? pauseData.duration * (1 - pauseData.playedProgress) : undefined;
|
|
390
|
-
await this.playKeyframe(pausedKeyframe, { duration });
|
|
391
|
-
playedFirstKeyframe = true;
|
|
392
|
-
// playFromIndex += 1 cause played last part of paused keyframe
|
|
393
|
-
return pausedKeyframe.index + 1;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
const playFromIndex = await getPlayFromIndex();
|
|
399
|
-
this.clearPauseData();
|
|
400
|
-
// play keyframes
|
|
401
|
-
for (const keyframe of keyframes) {
|
|
402
|
-
if (privateState.broke || !state.playing || !privateState.playing)
|
|
403
|
-
return;
|
|
404
|
-
if (currentPlayId !== privateState.playId)
|
|
405
|
-
return;
|
|
406
|
-
// jump to start keyframe
|
|
407
|
-
if (playFromIndex !== undefined && keyframe.index < playFromIndex)
|
|
408
|
-
continue;
|
|
409
|
-
// play single keyframe
|
|
410
|
-
try {
|
|
411
|
-
hooks.emit('playIndexChange', keyframe.index, keyframe);
|
|
412
|
-
await this.playKeyframe(keyframe, {
|
|
413
|
-
moveEffect: playedFirstKeyframe === false ? privateState.moveToFirstPanoEffect : undefined,
|
|
414
|
-
duration: 800,
|
|
415
|
-
});
|
|
416
|
-
if (keyframe.stay)
|
|
417
|
-
await sleep(keyframe.stay);
|
|
418
|
-
if (playedFirstKeyframe === false)
|
|
419
|
-
playedFirstKeyframe = true;
|
|
420
|
-
}
|
|
421
|
-
catch (error) {
|
|
422
|
-
return Promise.resolve('broke');
|
|
423
|
-
// if think the play be interupted by five gesture is an error, return Promise.reject(error)
|
|
424
|
-
// return Promise.reject(error)
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
if (state.playing && currentPlayId === privateState.playId) {
|
|
428
|
-
this.setState({ playing: false }, { userAction: false });
|
|
429
|
-
hooks.emit('end');
|
|
430
|
-
this.clearPauseData();
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* @description: Pause and record pause state
|
|
435
|
-
*/
|
|
436
|
-
handlePause(options) {
|
|
437
|
-
var _a;
|
|
438
|
-
const { state, privateState, hooks } = this;
|
|
439
|
-
state.playing = false;
|
|
440
|
-
if (privateState.playing === false)
|
|
441
|
-
return;
|
|
442
|
-
privateState.playing = false;
|
|
443
|
-
this.setPauseData();
|
|
444
|
-
if (!privateState.broke)
|
|
445
|
-
this.forceInteruptUpdateCamera();
|
|
446
|
-
if ((options === null || options === void 0 ? void 0 : options.notEmitEvent) !== true) {
|
|
447
|
-
hooks.emit('pause', { userAction: (_a = options === null || options === void 0 ? void 0 : options.userAction) !== null && _a !== void 0 ? _a : true });
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
/**
|
|
451
|
-
* @description Play single keyframe
|
|
452
|
-
*/
|
|
453
|
-
async playKeyframe(keyframe, params) {
|
|
454
|
-
var _a;
|
|
455
|
-
const { privateState } = this;
|
|
456
|
-
if (((_a = this.privateState.currentPlayKeyframe) === null || _a === void 0 ? void 0 : _a.keyframe.id) !== keyframe.id)
|
|
457
|
-
this.privateState.currentPlayKeyframe = { keyframe };
|
|
458
|
-
privateState.currentPlayQueue.push(this.getPlayPromise(keyframe, params));
|
|
459
|
-
return this.actionPromiseQueue();
|
|
460
|
-
}
|
|
461
|
-
/**
|
|
462
|
-
* @description: listen interupted by five gesture
|
|
463
|
-
*/
|
|
464
|
-
addInterruptListener(callback) {
|
|
465
|
-
this.five.once('gesture', callback);
|
|
466
|
-
this.five.once('modeChange', callback);
|
|
467
|
-
return () => {
|
|
468
|
-
this.five.off('gesture', callback);
|
|
469
|
-
this.five.once('modeChange', callback);
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* @description: getPlayPromise
|
|
474
|
-
*/
|
|
475
|
-
async getPlayPromise(keyframe, params) {
|
|
476
|
-
var _a;
|
|
477
|
-
const data = keyframe.data;
|
|
478
|
-
const duration = (_a = params === null || params === void 0 ? void 0 : params.duration) !== null && _a !== void 0 ? _a : (keyframe.start !== undefined && keyframe.end !== undefined ? keyframe.end - keyframe.start : undefined);
|
|
479
|
-
if (!data)
|
|
480
|
-
return;
|
|
481
|
-
return new Promise((resolve, reject) => {
|
|
482
|
-
let fulfilled = false;
|
|
483
|
-
this.addInterruptListener(() => {
|
|
484
|
-
if (fulfilled)
|
|
485
|
-
return;
|
|
486
|
-
this.hooks.emit('broke');
|
|
487
|
-
this.privateState.broke = true;
|
|
488
|
-
this.setState({ playing: false });
|
|
489
|
-
fulfilled = true;
|
|
490
|
-
return reject(new Error('play is interupted'));
|
|
491
|
-
});
|
|
492
|
-
try {
|
|
493
|
-
if (fulfilled)
|
|
494
|
-
return;
|
|
495
|
-
const res = () => {
|
|
496
|
-
resolve();
|
|
497
|
-
fulfilled = true;
|
|
498
|
-
};
|
|
499
|
-
switch (data.effect) {
|
|
500
|
-
case 'Move':
|
|
501
|
-
this.move(data, params).then(res);
|
|
502
|
-
break;
|
|
503
|
-
case 'Rotate':
|
|
504
|
-
this.rotate(data, params).then(res);
|
|
505
|
-
break;
|
|
506
|
-
default:
|
|
507
|
-
this.rotate(data, params).then(res);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
catch (e) { }
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* @description Action promise queue in sequence
|
|
515
|
-
*/
|
|
516
|
-
async actionPromiseQueue() {
|
|
517
|
-
const { privateState } = this;
|
|
518
|
-
return new Promise((resolve, reject) => {
|
|
519
|
-
if (privateState.currentPlayQueue.length === 0) {
|
|
520
|
-
resolve();
|
|
521
|
-
return;
|
|
522
|
-
}
|
|
523
|
-
const promise = privateState.currentPlayQueue.shift();
|
|
524
|
-
if (!promise) {
|
|
525
|
-
resolve();
|
|
526
|
-
return;
|
|
527
|
-
}
|
|
528
|
-
promise.then(resolve, reject);
|
|
529
|
-
}).then(() => {
|
|
530
|
-
if (privateState.currentPlayQueue.length === 0)
|
|
531
|
-
return Promise.resolve();
|
|
532
|
-
return this.actionPromiseQueue();
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
/**
|
|
536
|
-
* @description Action move keyframe
|
|
537
|
-
*/
|
|
538
|
-
async move(data, params) {
|
|
539
|
-
if (data.mode && data.mode !== this.five.currentMode) {
|
|
540
|
-
await this.changeMode(data);
|
|
541
|
-
}
|
|
542
|
-
else if (data.panoIndex !== this.five.panoIndex) {
|
|
543
|
-
await this.changePano(data, params);
|
|
544
|
-
}
|
|
545
|
-
else {
|
|
546
|
-
return Promise.resolve();
|
|
547
|
-
}
|
|
548
|
-
// await updateCamera(data)
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* @description Action rotate keyframe
|
|
552
|
-
*/
|
|
553
|
-
async rotate(data, params) {
|
|
554
|
-
if (data.mode && data.mode !== this.five.currentMode) {
|
|
555
|
-
await this.changeMode({ mode: data.mode, panoIndex: data.panoIndex });
|
|
556
|
-
}
|
|
557
|
-
else if (data.panoIndex && data.panoIndex !== this.five.panoIndex) {
|
|
558
|
-
return await this.changePano(data, params);
|
|
559
|
-
}
|
|
560
|
-
await this.updateCamera(data, params === null || params === void 0 ? void 0 : params.duration);
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* @description Update five camera
|
|
564
|
-
*/
|
|
565
|
-
async updateCamera(data, paramsDuration = 800) {
|
|
566
|
-
const { five, privateState, state } = this;
|
|
567
|
-
let originDuration = paramsDuration;
|
|
568
|
-
const speed = (() => {
|
|
569
|
-
var _a, _b;
|
|
570
|
-
const speedConfig = (_a = state.config) === null || _a === void 0 ? void 0 : _a.speedConfig;
|
|
571
|
-
const speedValue = (_b = data.rotateSpeed) !== null && _b !== void 0 ? _b : speedConfig === null || speedConfig === void 0 ? void 0 : speedConfig.rotateSpeed;
|
|
572
|
-
if ((speedConfig === null || speedConfig === void 0 ? void 0 : speedConfig.rotateSpeedUnit) === undefined)
|
|
573
|
-
return speedValue;
|
|
574
|
-
if (speedValue !== undefined) {
|
|
575
|
-
return speedConfig.rotateSpeedUnit === 'rad/ms' ? speedValue : speedValue / 1000;
|
|
576
|
-
}
|
|
577
|
-
})();
|
|
578
|
-
if (speed) {
|
|
579
|
-
const coordinates1 = this.five.getCurrentState();
|
|
580
|
-
const coordinates2 = data;
|
|
581
|
-
const angle = coordinatesAngle(coordinates1, coordinates2);
|
|
582
|
-
originDuration = angle / speed;
|
|
583
|
-
}
|
|
584
|
-
if (privateState.currentPlayKeyframe)
|
|
585
|
-
privateState.currentPlayKeyframe.originDuration = originDuration;
|
|
586
|
-
const duration = this.getSpeededDuration(originDuration);
|
|
587
|
-
return new Promise((resolve) => {
|
|
588
|
-
safeCall(() => five.updateCamera(data, duration));
|
|
589
|
-
setTimeout(() => resolve(), duration);
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
/**
|
|
593
|
-
* @description: Change five pano
|
|
594
|
-
*/
|
|
595
|
-
async changePano(data, params) {
|
|
596
|
-
var _a;
|
|
597
|
-
const { five, privateState, state } = this;
|
|
598
|
-
if (typeof data.panoIndex !== 'number')
|
|
599
|
-
return;
|
|
600
|
-
if (data.panoIndex === five.panoIndex)
|
|
601
|
-
return;
|
|
602
|
-
let originDuration = (_a = params === null || params === void 0 ? void 0 : params.duration) !== null && _a !== void 0 ? _a : 800;
|
|
603
|
-
const speed = (() => {
|
|
604
|
-
var _a, _b;
|
|
605
|
-
const speedConfig = (_a = state.config) === null || _a === void 0 ? void 0 : _a.speedConfig;
|
|
606
|
-
const speedValue = (_b = data.moveSpeed) !== null && _b !== void 0 ? _b : speedConfig === null || speedConfig === void 0 ? void 0 : speedConfig.moveSpeed;
|
|
607
|
-
if ((speedConfig === null || speedConfig === void 0 ? void 0 : speedConfig.moveSpeedUnit) === undefined)
|
|
608
|
-
return speedValue;
|
|
609
|
-
if (speedValue !== undefined) {
|
|
610
|
-
return speedConfig.moveSpeedUnit === 'm/ms' ? speedValue : speedValue / 1000;
|
|
611
|
-
}
|
|
612
|
-
})();
|
|
613
|
-
if (speed && typeof five.panoIndex === 'number' && typeof data.panoIndex === 'number') {
|
|
614
|
-
const postion1 = five.work.observers[five.panoIndex].position;
|
|
615
|
-
const postion2 = five.work.observers[data.panoIndex].position;
|
|
616
|
-
const distance = postion1.distanceTo(postion2);
|
|
617
|
-
originDuration = distance / speed;
|
|
618
|
-
}
|
|
619
|
-
if (privateState.currentPlayKeyframe)
|
|
620
|
-
privateState.currentPlayKeyframe.originDuration = originDuration;
|
|
621
|
-
const duration = this.getSpeededDuration(originDuration);
|
|
622
|
-
return new Promise((resolve) => {
|
|
623
|
-
var _a, _b, _c;
|
|
624
|
-
five.moveToPano(data.panoIndex, {
|
|
625
|
-
latitude: data.latitude,
|
|
626
|
-
longitude: data.longitude,
|
|
627
|
-
fov: data.fov,
|
|
628
|
-
duration,
|
|
629
|
-
effect: (_c = (_a = params === null || params === void 0 ? void 0 : params.moveEffect) !== null && _a !== void 0 ? _a : (_b = this.state.config) === null || _b === void 0 ? void 0 : _b.moveEffect) !== null && _c !== void 0 ? _c : data.moveEffect,
|
|
630
|
-
moveCancelCallback: () => resolve(),
|
|
631
|
-
moveEndCallback: () => resolve(),
|
|
632
|
-
});
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
/**
|
|
636
|
-
* @description: Change play speed
|
|
637
|
-
*/
|
|
638
|
-
changeSpeed(speed, userAction = true) {
|
|
639
|
-
const { state, privateState, hooks } = this;
|
|
640
|
-
const { currentPlayKeyframe } = privateState;
|
|
641
|
-
hooks.emit('speedChange', speed, { userAction });
|
|
642
|
-
if (state.playing && currentPlayKeyframe) {
|
|
643
|
-
try {
|
|
644
|
-
const duration = currentPlayKeyframe.originDuration !== undefined ? currentPlayKeyframe.originDuration * (1 - this.getProgress()) : undefined;
|
|
645
|
-
const promise = this.playKeyframe(currentPlayKeyframe.keyframe, { duration });
|
|
646
|
-
privateState.currentPlayQueue.push(promise);
|
|
647
|
-
}
|
|
648
|
-
catch (e) { }
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
/**
|
|
652
|
-
* @description Get duration by speed
|
|
653
|
-
*/
|
|
654
|
-
getSpeededDuration(duration) {
|
|
655
|
-
return duration / this.state.speed;
|
|
656
|
-
}
|
|
657
|
-
/**
|
|
658
|
-
* @description Get ratate progress
|
|
659
|
-
*/
|
|
660
|
-
getProgress() {
|
|
661
|
-
return this.five.controller.cameraMotion.progress;
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* @description Change five mode
|
|
665
|
-
*/
|
|
666
|
-
async changeMode(data, duration) {
|
|
667
|
-
if (data.mode && data.mode !== this.five.currentMode) {
|
|
668
|
-
await this.five.changeMode(data.mode, data, duration);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
/**
|
|
672
|
-
* @description Force interupt five updateCamera
|
|
673
|
-
*/
|
|
674
|
-
forceInteruptUpdateCamera() {
|
|
675
|
-
this.five.updateCamera({}, 0);
|
|
676
|
-
}
|
|
677
|
-
getPauseData() {
|
|
678
|
-
var _a, _b;
|
|
679
|
-
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.keyframesId)
|
|
680
|
-
return pauseDataMap.get((_b = this.data) === null || _b === void 0 ? void 0 : _b.keyframesId);
|
|
681
|
-
}
|
|
682
|
-
/**
|
|
683
|
-
* @description Set pause data
|
|
684
|
-
*/
|
|
685
|
-
setPauseData() {
|
|
686
|
-
var _a, _b, _c, _d;
|
|
687
|
-
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.keyframesId)
|
|
688
|
-
return pauseDataMap.set((_b = this.data) === null || _b === void 0 ? void 0 : _b.keyframesId, {
|
|
689
|
-
keyframeId: (_c = this.privateState.currentPlayKeyframe) === null || _c === void 0 ? void 0 : _c.keyframe.id,
|
|
690
|
-
fiveState: this.five.getCurrentState(),
|
|
691
|
-
duration: (_d = this.privateState.currentPlayKeyframe) === null || _d === void 0 ? void 0 : _d.originDuration,
|
|
692
|
-
playedProgress: this.getProgress(),
|
|
693
|
-
});
|
|
694
|
-
}
|
|
695
|
-
/**
|
|
696
|
-
* @description Clear pause data
|
|
697
|
-
*/
|
|
698
|
-
clearPauseData() {
|
|
699
|
-
var _a, _b;
|
|
700
|
-
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.keyframesId)
|
|
701
|
-
return pauseDataMap.delete((_b = this.data) === null || _b === void 0 ? void 0 : _b.keyframesId);
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* @description: Restore state that before loaded
|
|
705
|
-
*/
|
|
706
|
-
clear() {
|
|
707
|
-
this.clearPauseData();
|
|
708
|
-
this.privateState.currentPlayKeyframe = null;
|
|
709
|
-
}
|
|
710
|
-
// TODO
|
|
711
|
-
handleDispose() {
|
|
712
|
-
var _a, _b;
|
|
713
|
-
this.setState({ playing: false });
|
|
714
|
-
this.clearPauseData();
|
|
715
|
-
this.clear();
|
|
716
|
-
(_a = this.GuideLine) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
717
|
-
this.GuideLine = undefined;
|
|
718
|
-
(_b = this.privateState.disposers) === null || _b === void 0 ? void 0 : _b.forEach((d) => d === null || d === void 0 ? void 0 : d());
|
|
719
|
-
}
|
|
720
|
-
/**
|
|
721
|
-
* @description Action function if plugin is enable
|
|
722
|
-
*/
|
|
723
|
-
actionIfStateIsEnabled(func, options) {
|
|
724
|
-
if (this.state.enabled)
|
|
725
|
-
return func();
|
|
726
|
-
else {
|
|
727
|
-
if (options === null || options === void 0 ? void 0 : options.warnLog)
|
|
728
|
-
disableWarnLog();
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
/**
|
|
732
|
-
* @description: Wait for five work ready
|
|
733
|
-
*/
|
|
734
|
-
async waitFiveLoaded() {
|
|
735
|
-
return new Promise((resolve) => {
|
|
736
|
-
if (this.five.work) {
|
|
737
|
-
resolve();
|
|
738
|
-
return;
|
|
739
|
-
}
|
|
740
|
-
this.five.once('loaded', () => {
|
|
741
|
-
resolve();
|
|
742
|
-
});
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
setFiveLinearUpdateCamera() {
|
|
746
|
-
if (!this.privateState.fiveOriginGetProgress)
|
|
747
|
-
return;
|
|
748
|
-
this.five.controller.cameraMotion.getProgress = (time) => {
|
|
749
|
-
const cameraMotion = this.five.controller.cameraMotion;
|
|
750
|
-
const deltaTime = time - cameraMotion.startTime;
|
|
751
|
-
if (deltaTime < 0)
|
|
752
|
-
return 0;
|
|
753
|
-
if (deltaTime >= cameraMotion.duration)
|
|
754
|
-
return 1;
|
|
755
|
-
return 1 - linerValue(1, cameraMotion.startVelocity, cameraMotion.duration, deltaTime);
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
setFiveOriginUpdateCamera() {
|
|
759
|
-
if (!this.privateState.fiveOriginGetProgress)
|
|
760
|
-
return;
|
|
761
|
-
this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress;
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
Object.defineProperty(CruisePluginController, "PluginVersion", {
|
|
765
|
-
enumerable: true,
|
|
766
|
-
configurable: true,
|
|
767
|
-
writable: true,
|
|
768
|
-
value: VERSION
|
|
769
|
-
});
|