@realsee/dnalogel 2.1.2-alpha.2 → 2.1.2-alpha.4
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/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoTagPluginController.html +4 -4
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +4 -4
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +4 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/LinkType.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/PointType.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/ContentTypeMap.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/LineJson.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/OpenParameter.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/PointJson.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeyArray.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/VERSION.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/esm/CSS3DRenderPlugin/CSS3DRender.d.ts +167 -0
- package/esm/CSS3DRenderPlugin/CSS3DRender.js +327 -0
- package/esm/CSS3DRenderPlugin/Controller.d.ts +81 -0
- package/esm/CSS3DRenderPlugin/Controller.js +83 -0
- package/esm/CSS3DRenderPlugin/index.d.ts +5 -0
- package/esm/CSS3DRenderPlugin/index.js +14 -0
- package/esm/CSS3DRenderPlugin/typing.d.ts +26 -0
- package/esm/CSS3DRenderPlugin/typing.js +1 -0
- package/esm/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +34 -0
- package/esm/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -0
- package/esm/CSS3DRenderPlugin/utils/centerPoint.d.ts +2 -0
- package/esm/CSS3DRenderPlugin/utils/centerPoint.js +10 -0
- package/esm/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/esm/CSS3DRenderPlugin/utils/evenNumber.js +7 -0
- package/esm/CSS3DRenderPlugin/utils/index.d.ts +4 -0
- package/esm/CSS3DRenderPlugin/utils/index.js +1 -0
- package/esm/CSS3DRenderPlugin/utils/positionToVector3.d.ts +13 -0
- package/esm/CSS3DRenderPlugin/utils/positionToVector3.js +6 -0
- package/esm/CSS3DRenderPlugin/utils/random.d.ts +1 -0
- package/esm/CSS3DRenderPlugin/utils/random.js +1 -0
- package/esm/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/esm/CameraMovementPlugin/CameraMovementPlugin.js +87 -0
- package/esm/CameraMovementPlugin/index.d.ts +5 -0
- package/esm/CameraMovementPlugin/index.js +16 -0
- package/esm/CameraMovementPlugin/typing.d.ts +68 -0
- package/esm/CameraMovementPlugin/typing.js +5 -0
- package/esm/CruisePlugin/Controller.d.ts +172 -0
- package/esm/CruisePlugin/Controller.js +484 -0
- package/esm/CruisePlugin/index.d.ts +6 -0
- package/esm/CruisePlugin/index.js +28 -0
- package/esm/CruisePlugin/typing.d.ts +134 -0
- package/esm/CruisePlugin/utils/coordinatesAngle.d.ts +12 -0
- package/esm/CruisePlugin/utils/coordinatesAngle.js +8 -0
- package/esm/CruisePlugin/utils/coordinatesToVector.d.ts +7 -0
- package/esm/CruisePlugin/utils/coordinatesToVector.js +12 -0
- package/esm/CruisePlugin/utils/formatRad.d.ts +7 -0
- package/esm/CruisePlugin/utils/formatRad.js +7 -0
- package/esm/CruisePlugin/utils/linerValue.d.ts +1 -0
- package/esm/CruisePlugin/utils/linerValue.js +7 -0
- package/esm/CruisePlugin/utils/safeCall.d.ts +1 -0
- package/esm/CruisePlugin/utils/safeCall.js +28 -0
- package/esm/CruisePlugin/utils/sleep.d.ts +1 -0
- package/esm/CruisePlugin/utils/sleep.js +10 -0
- package/esm/CruisePlugin/utils/vectorToCoordinates.d.ts +7 -0
- package/esm/CruisePlugin/utils/vectorToCoordinates.js +10 -0
- package/esm/GuideLinePlugin/Controller.d.ts +51 -0
- package/esm/GuideLinePlugin/Controller.js +143 -0
- package/esm/GuideLinePlugin/index.d.ts +5 -0
- package/esm/GuideLinePlugin/index.js +16 -0
- package/esm/GuideLinePlugin/typing.d.ts +34 -0
- package/esm/GuideLinePlugin/utils/getArrowMaterial.d.ts +4 -0
- package/esm/GuideLinePlugin/utils/getArrowMaterial.js +13 -0
- package/esm/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/esm/GuideLinePlugin/utils/getLineGeometries.js +64 -0
- package/esm/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
- package/esm/ItemLabelPlugin/ItemLabelComponent.js +271 -0
- package/esm/ItemLabelPlugin/ItemLabelItem.js +134 -0
- package/esm/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/esm/ItemLabelPlugin/Plugin.js +81 -0
- package/esm/ItemLabelPlugin/events.type.d.ts +9 -0
- package/esm/ItemLabelPlugin/index.d.ts +9 -0
- package/esm/ItemLabelPlugin/index.js +26 -0
- package/esm/ItemLabelPlugin/typings.d.ts +65 -0
- package/esm/ItemLabelPlugin/typings.js +4 -0
- package/esm/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/esm/ItemLabelPlugin/utils/getLabelTransform.js +4 -0
- package/esm/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/esm/ItemLabelPlugin/utils/getStrokeLength.js +16 -0
- package/esm/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
- package/esm/ItemLabelPlugin/utils/isImpacted.js +10 -0
- package/esm/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/esm/ItemLabelPlugin/utils/parseData.js +21 -0
- package/esm/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/esm/ItemLabelPlugin/utils/transform2RenderData.js +21 -0
- package/esm/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/esm/ModelChassisCompassPlugin/Plugin.js +70 -0
- package/esm/ModelChassisCompassPlugin/index.d.ts +4 -0
- package/esm/ModelChassisCompassPlugin/index.js +10 -0
- package/esm/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/esm/ModelEntryDoorGuidePlugin/Plugin.js +77 -0
- package/esm/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
- package/esm/ModelEntryDoorGuidePlugin/index.js +11 -0
- package/esm/ModelItemLabelPlugin/ItemLabelComponent.js +212 -0
- package/esm/ModelItemLabelPlugin/ItemLabelItem.js +43 -0
- package/esm/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/esm/ModelItemLabelPlugin/ModelItemLabelPlugin.js +79 -0
- package/esm/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/esm/ModelItemLabelPlugin/events.type.js +1 -0
- package/esm/ModelItemLabelPlugin/index.d.ts +9 -0
- package/esm/ModelItemLabelPlugin/index.js +22 -0
- package/esm/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/esm/ModelItemLabelPlugin/typings.js +4 -0
- package/esm/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/esm/ModelItemLabelPlugin/utils/parseData.js +19 -0
- package/esm/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/esm/ModelRoomLabelPlugin/Assets/roomLabelBg.js +4 -0
- package/esm/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/esm/ModelRoomLabelPlugin/Controller.js +60 -0
- package/esm/ModelRoomLabelPlugin/RoomLabelItem.js +45 -0
- package/esm/ModelRoomLabelPlugin/RoomLabelItems.js +162 -0
- package/esm/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/esm/ModelRoomLabelPlugin/index.js +17 -0
- package/esm/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/esm/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/esm/ModelRoomLabelPlugin/utils/parseData.js +16 -0
- package/esm/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/esm/ModelTVVideoPlugin/Plugin.js +163 -0
- package/esm/ModelTVVideoPlugin/index.d.ts +5 -0
- package/esm/ModelTVVideoPlugin/index.js +19 -0
- package/esm/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/esm/ModelTVVideoPlugin/typings.js +4 -0
- package/esm/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/esm/ModelTVVideoPlugin/utils/parseData.js +20 -0
- package/esm/ModelViewPlugin/Plugin.d.ts +28 -0
- package/esm/ModelViewPlugin/Plugin.js +106 -0
- package/esm/ModelViewPlugin/index.d.ts +4 -0
- package/esm/ModelViewPlugin/index.js +8 -0
- package/esm/Object3DHelperPlugin/Controller.d.ts +65 -0
- package/esm/Object3DHelperPlugin/Controller.js +145 -0
- package/esm/Object3DHelperPlugin/FiveControllerWrapper.d.ts +19 -0
- package/esm/Object3DHelperPlugin/FiveControllerWrapper.js +31 -0
- package/esm/Object3DHelperPlugin/index.d.ts +6 -0
- package/esm/Object3DHelperPlugin/index.js +42 -0
- package/esm/Object3DHelperPlugin/typings.d.ts +24 -0
- package/esm/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/esm/PanoCompassPlugin/Assets/roomInfoIcon.js +4 -0
- package/esm/PanoCompassPlugin/Controller.d.ts +84 -0
- package/esm/PanoCompassPlugin/Controller.js +224 -0
- package/esm/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/esm/PanoCompassPlugin/getRoomInfoInstance.js +24 -0
- package/esm/PanoCompassPlugin/index.d.ts +7 -0
- package/esm/PanoCompassPlugin/index.js +25 -0
- package/esm/PanoCompassPlugin/typings.d.ts +57 -0
- package/esm/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/esm/PanoCursorRaycasterPlugin/index.js +60 -0
- package/esm/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/esm/PanoDoorLabelPlugin/BaseController.js +59 -0
- package/esm/PanoDoorLabelPlugin/Controller.d.ts +37 -0
- package/esm/PanoDoorLabelPlugin/Controller.js +219 -0
- package/esm/PanoDoorLabelPlugin/DoorLabelItem.js +65 -0
- package/esm/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/esm/PanoDoorLabelPlugin/index.js +15 -0
- package/esm/PanoDoorLabelPlugin/typings.d.ts +38 -0
- package/esm/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/esm/PanoDoorLabelPlugin/utils.js +23 -0
- package/esm/PanoMeasurePlugin/Controller/BaseController.d.ts +43 -0
- package/esm/PanoMeasurePlugin/Controller/BaseController.js +53 -0
- package/esm/PanoMeasurePlugin/Controller/EditController.d.ts +48 -0
- package/esm/PanoMeasurePlugin/Controller/EditController.js +102 -0
- package/esm/PanoMeasurePlugin/Controller/MixedController.d.ts +42 -0
- package/esm/PanoMeasurePlugin/Controller/MixedController.js +125 -0
- package/esm/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/esm/PanoMeasurePlugin/Controller/ShortcutKeyController.js +33 -0
- package/esm/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Controller/ViewController.js +90 -0
- package/esm/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
- package/esm/PanoMeasurePlugin/Controller/WatchController.js +154 -0
- package/esm/PanoMeasurePlugin/Controller/index.d.ts +73 -0
- package/esm/PanoMeasurePlugin/Controller/index.js +140 -0
- package/esm/PanoMeasurePlugin/Model/index.d.ts +35 -0
- package/esm/PanoMeasurePlugin/Model/index.js +92 -0
- package/esm/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/esm/PanoMeasurePlugin/Model/line.js +56 -0
- package/esm/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Model/point.js +30 -0
- package/esm/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Model/polyline.js +47 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +14 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +4 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +4 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/index.js +68 -0
- package/esm/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/esm/PanoMeasurePlugin/Modules/FiveHelper.js +28 -0
- package/esm/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/esm/PanoMeasurePlugin/Modules/GuideController.js +41 -0
- package/esm/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
- package/esm/PanoMeasurePlugin/Modules/Magnifier.js +103 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/HTML.js +129 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +50 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +36 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/index.js +48 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +82 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +39 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/style.js +62 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/html.js +66 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/index.js +130 -0
- package/esm/PanoMeasurePlugin/index.d.ts +10 -0
- package/esm/PanoMeasurePlugin/index.js +61 -0
- package/esm/PanoMeasurePlugin/typings/data.d.ts +37 -0
- package/esm/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
- package/esm/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/esm/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/esm/PanoMeasurePlugin/utils/calculateThreeMouse.js +12 -0
- package/esm/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/esm/PanoMeasurePlugin/utils/constants.js +36 -0
- package/esm/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/esm/PanoMeasurePlugin/utils/distanceDom.js +62 -0
- package/esm/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/esm/PanoMeasurePlugin/utils/findAssociatedLines.js +13 -0
- package/esm/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/esm/PanoMeasurePlugin/utils/findClosestPoint.js +15 -0
- package/esm/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/esm/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -0
- package/esm/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/esm/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +8 -0
- package/esm/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/esm/PanoMeasurePlugin/utils/ironbox.js +4 -0
- package/esm/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/esm/PanoMeasurePlugin/utils/isNDCPointInScreen.js +7 -0
- package/esm/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/esm/PanoMeasurePlugin/utils/line.js +17 -0
- package/esm/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/esm/PanoMeasurePlugin/utils/math.js +12 -0
- package/esm/PanoMeasurePlugin/utils/mouseGroup.d.ts +7 -0
- package/esm/PanoMeasurePlugin/utils/mouseGroup.js +46 -0
- package/esm/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/esm/PanoMeasurePlugin/utils/ndc2Screen.js +8 -0
- package/esm/PanoRulerPlugin/Plugin.d.ts +34 -0
- package/esm/PanoRulerPlugin/Plugin.js +268 -0
- package/esm/PanoRulerPlugin/index.d.ts +5 -0
- package/esm/PanoRulerPlugin/index.js +11 -0
- package/esm/PanoRulerPlugin/style.d.ts +2 -0
- package/esm/PanoRulerPlugin/style.js +90 -0
- package/esm/PanoRulerPlugin/typings.d.ts +21 -0
- package/esm/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/esm/PanoRulerProPlugin/Controller.js +93 -0
- package/esm/PanoRulerProPlugin/RulerItem.js +128 -0
- package/esm/PanoRulerProPlugin/RulerItems.js +180 -0
- package/esm/PanoRulerProPlugin/index.d.ts +8 -0
- package/esm/PanoRulerProPlugin/index.js +19 -0
- package/esm/PanoRulerProPlugin/typings.d.ts +46 -0
- package/esm/PanoSpatialTagPlugin/Components/origins.js +81 -0
- package/esm/PanoSpatialTagPlugin/Components/tag.js +124 -0
- package/esm/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/esm/PanoSpatialTagPlugin/Plugin.js +246 -0
- package/esm/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/esm/PanoSpatialTagPlugin/index.js +25 -0
- package/esm/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/esm/PanoSpatialTagPlugin/store.js +5 -0
- package/esm/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/esm/PanoSpatialTagPlugin/style.js +11 -0
- package/esm/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/esm/PanoSpatialTagPlugin/typings.js +1 -0
- package/esm/PanoTagPlugin/Assets/Icon.d.ts +3 -0
- package/esm/PanoTagPlugin/Assets/Icon.js +6 -0
- package/esm/PanoTagPlugin/Components/Common/Arrow.js +103 -0
- package/esm/PanoTagPlugin/Components/Common/Audio.js +166 -0
- package/esm/PanoTagPlugin/Components/Common/Line/Polyline.js +93 -0
- package/esm/PanoTagPlugin/Components/Common/Line/Straight.js +90 -0
- package/esm/PanoTagPlugin/Components/Common/Media.js +393 -0
- package/esm/PanoTagPlugin/Components/Common/MediaItem.js +139 -0
- package/esm/PanoTagPlugin/Components/Common/MultiLineText.js +170 -0
- package/esm/PanoTagPlugin/Components/Common/Point/CustomPoint.js +51 -0
- package/esm/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +51 -0
- package/esm/PanoTagPlugin/Components/Common/Point/PointSwitch.js +166 -0
- package/esm/PanoTagPlugin/Components/Common/Shadow.js +124 -0
- package/esm/PanoTagPlugin/Components/Common/Text.js +131 -0
- package/esm/PanoTagPlugin/Components/Tag/AudioTag.js +134 -0
- package/esm/PanoTagPlugin/Components/Tag/CustomTag.js +73 -0
- package/esm/PanoTagPlugin/Components/Tag/ImageTextTag.js +192 -0
- package/esm/PanoTagPlugin/Components/Tag/LinkTag.js +126 -0
- package/esm/PanoTagPlugin/Components/Tag/MarketingTag.js +258 -0
- package/esm/PanoTagPlugin/Components/Tag/MediaPlane.js +87 -0
- package/esm/PanoTagPlugin/Components/Tag/TextTag.js +122 -0
- package/esm/PanoTagPlugin/Components/Tag/index.js +290 -0
- package/esm/PanoTagPlugin/Components/TagContainer.js +156 -0
- package/esm/PanoTagPlugin/Components/TagWrapper.js +153 -0
- package/esm/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/esm/PanoTagPlugin/controller/TagCacheController.js +31 -0
- package/esm/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/esm/PanoTagPlugin/controller/TagComputer.js +264 -0
- package/esm/PanoTagPlugin/controller/index.d.ts +144 -0
- package/esm/PanoTagPlugin/controller/index.js +376 -0
- package/esm/PanoTagPlugin/index.d.ts +8 -0
- package/esm/PanoTagPlugin/index.js +85 -0
- package/esm/PanoTagPlugin/tag.config.d.ts +7 -0
- package/esm/PanoTagPlugin/tag.config.js +43 -0
- package/esm/PanoTagPlugin/typings/controller.d.ts +103 -0
- package/esm/PanoTagPlugin/typings/controller.js +1 -0
- package/esm/PanoTagPlugin/typings/index.d.ts +2 -0
- package/esm/PanoTagPlugin/typings/index.js +1 -0
- package/esm/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/esm/PanoTagPlugin/typings/tag.js +7 -0
- package/esm/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/esm/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +6 -0
- package/esm/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/esm/PanoTagPlugin/utils/addDebugPoints.js +27 -0
- package/esm/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/esm/PanoTagPlugin/utils/checkRange.js +10 -0
- package/esm/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/esm/PanoTagPlugin/utils/constants.js +7 -0
- package/esm/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/esm/PanoTagPlugin/utils/debounce.js +12 -0
- package/esm/PanoTagPlugin/utils/doUtil.d.ts +1 -0
- package/esm/PanoTagPlugin/utils/doUtil.js +12 -0
- package/esm/PanoTagPlugin/utils/index.d.ts +12 -0
- package/esm/PanoTagPlugin/utils/index.js +1 -0
- package/esm/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/esm/PanoTagPlugin/utils/noTypecheck.js +4 -0
- package/esm/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/esm/PanoTagPlugin/utils/normalPositionToPositions.js +13 -0
- package/esm/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/esm/PanoTagPlugin/utils/planeNormal.js +11 -0
- package/esm/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/esm/PanoTagPlugin/utils/resizeObserver.js +17 -0
- package/esm/PanoTagPlugin/utils/search.d.ts +11 -0
- package/esm/PanoTagPlugin/utils/search.js +15 -0
- package/esm/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/esm/PanoTagPlugin/utils/tagPosition.js +13 -0
- package/esm/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/esm/PanoTagPlugin/utils/throttle.js +11 -0
- package/esm/base/BasePlugin.d.ts +106 -0
- package/esm/base/BasePlugin.js +18 -0
- package/esm/base/BasePluginWithData.d.ts +34 -0
- package/esm/base/BasePluginWithData.js +6 -0
- package/esm/components/PaintBrush/Controller.d.ts +43 -0
- package/esm/components/PaintBrush/Controller.js +308 -0
- package/esm/components/PaintBrush/Subscribe.d.ts +76 -0
- package/esm/components/PaintBrush/Subscribe.js +47 -0
- package/esm/components/PaintBrush/index.d.ts +27 -0
- package/esm/components/PaintBrush/index.js +52 -0
- package/esm/components/PaintBrush/style.d.ts +2 -0
- package/esm/components/PaintBrush/style.js +104 -0
- package/esm/components/PaintBrush/tween.d.ts +7 -0
- package/esm/components/PaintBrush/tween.js +11 -0
- package/esm/components/PaintBrush/typings.d.ts +58 -0
- package/esm/components/PaintBrush/typings.js +4 -0
- package/esm/components/PaintBrush/utils.d.ts +26 -0
- package/esm/components/PaintBrush/utils.js +45 -0
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.js +13 -0
- package/esm/env.d.ts +1 -0
- package/esm/floorplan/Assets/camera.d.ts +1 -0
- package/esm/floorplan/Assets/camera.js +4 -0
- package/esm/floorplan/Assets/compass.d.ts +1 -0
- package/esm/floorplan/Assets/compass.js +4 -0
- package/esm/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/esm/floorplan/Assets/floorplanExtraObject.js +4 -0
- package/esm/floorplan/Components/BaseImage.js +103 -0
- package/esm/floorplan/Components/Camera.js +62 -0
- package/esm/floorplan/Components/Compass.js +60 -0
- package/esm/floorplan/Components/CurrentFloor.js +246 -0
- package/esm/floorplan/Components/Main.js +264 -0
- package/esm/floorplan/Components/Normalmage.js +37 -0
- package/esm/floorplan/Components/RoomHighlight/Room.js +61 -0
- package/esm/floorplan/Components/RoomHighlight/RoomHighlight.js +121 -0
- package/esm/floorplan/Components/RoomLabels/RoomLabel.js +153 -0
- package/esm/floorplan/Components/RoomLabels/RoomLabels.js +174 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial.js +196 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_0.js +37 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_1.js +39 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -0
- package/esm/floorplan/Components/RuleLabels/RuleItem.js +134 -0
- package/esm/floorplan/Components/RuleLabels/RuleLabels.js +139 -0
- package/esm/floorplan/Components/SvgImage.js +47 -0
- package/esm/floorplan/MapviewFloorplanPlugin/Controller.d.ts +97 -0
- package/esm/floorplan/MapviewFloorplanPlugin/Controller.js +321 -0
- package/esm/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
- package/esm/floorplan/MapviewFloorplanPlugin/index.js +50 -0
- package/esm/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -0
- package/esm/floorplan/ModelFloorplanPlugin/Controller.d.ts +99 -0
- package/esm/floorplan/ModelFloorplanPlugin/Controller.js +316 -0
- package/esm/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
- package/esm/floorplan/ModelFloorplanPlugin/index.js +50 -0
- package/esm/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +85 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +129 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +72 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +183 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Controller.js +164 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/index.js +27 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/esm/floorplan/TopviewFloorplanPlugin/Controller.d.ts +69 -0
- package/esm/floorplan/TopviewFloorplanPlugin/Controller.js +273 -0
- package/esm/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
- package/esm/floorplan/TopviewFloorplanPlugin/index.js +47 -0
- package/esm/floorplan/TopviewFloorplanPlugin/typing.d.ts +11 -0
- package/esm/floorplan/constant.d.ts +5 -0
- package/esm/floorplan/constant.js +4 -0
- package/esm/floorplan/index.d.ts +7 -0
- package/esm/floorplan/index.js +6 -0
- package/esm/floorplan/typings/floorplanData.d.ts +137 -0
- package/esm/floorplan/typings/floorplanData.js +1 -0
- package/esm/floorplan/typings/floorplanServerData.d.ts +144 -0
- package/esm/floorplan/typings/floorplanServerData.js +101 -0
- package/esm/floorplan/typings/index.d.ts +117 -0
- package/esm/floorplan/typings/utility.d.ts +2 -0
- package/esm/floorplan/utils/constant.d.ts +22 -0
- package/esm/floorplan/utils/constant.js +7 -0
- package/esm/floorplan/utils/correctFiveState.d.ts +15 -0
- package/esm/floorplan/utils/correctFiveState.js +54 -0
- package/esm/floorplan/utils/formatData.d.ts +5 -0
- package/esm/floorplan/utils/formatData.js +104 -0
- package/esm/floorplan/utils/formatPosition.d.ts +36 -0
- package/esm/floorplan/utils/formatPosition.js +35 -0
- package/esm/index.d.ts +23 -0
- package/esm/index.js +346 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseController.d.ts +48 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseController.js +151 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +91 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseHelper.js +51 -0
- package/esm/shared-utils/Object3DHelper/Constants/color.d.ts +12 -0
- package/esm/shared-utils/Object3DHelper/Constants/color.js +20 -0
- package/esm/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +6 -0
- package/esm/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +18 -0
- package/esm/shared-utils/Object3DHelper/Controller/MoveController.d.ts +13 -0
- package/esm/shared-utils/Object3DHelper/Controller/MoveController.js +66 -0
- package/esm/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +37 -0
- package/esm/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +109 -0
- package/esm/shared-utils/Object3DHelper/Controller/RotateController.d.ts +22 -0
- package/esm/shared-utils/Object3DHelper/Controller/RotateController.js +134 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +11 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +79 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +6 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +41 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +13 -0
- package/esm/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +13 -0
- package/esm/shared-utils/Object3DHelper/Helper/MoveHelper.js +30 -0
- package/esm/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +17 -0
- package/esm/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +35 -0
- package/esm/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +11 -0
- package/esm/shared-utils/Object3DHelper/Helper/OutlineHelper.js +2 -0
- package/esm/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +40 -0
- package/esm/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +137 -0
- package/esm/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +55 -0
- package/esm/shared-utils/Object3DHelper/Helper/RotateHelper.js +136 -0
- package/esm/shared-utils/Object3DHelper/Helper/index.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/Helper/index.js +3 -0
- package/esm/shared-utils/Object3DHelper/index.d.ts +71 -0
- package/esm/shared-utils/Object3DHelper/index.js +169 -0
- package/esm/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/typings/Direction.js +1 -0
- package/esm/shared-utils/Object3DHelper/typings/Hooks.d.ts +45 -0
- package/esm/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
- package/esm/shared-utils/Object3DHelper/typings/Scissor.d.ts +17 -0
- package/esm/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
- package/esm/shared-utils/Object3DHelper/typings/index.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/typings/index.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +14 -0
- package/esm/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +11 -0
- package/esm/shared-utils/Object3DHelper/utils/direction.d.ts +14 -0
- package/esm/shared-utils/Object3DHelper/utils/direction.js +22 -0
- package/esm/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +14 -0
- package/esm/shared-utils/Object3DHelper/utils/getPoint.d.ts +3 -0
- package/esm/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/index.d.ts +8 -0
- package/esm/shared-utils/Object3DHelper/utils/index.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +1 -0
- package/esm/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
- package/esm/shared-utils/Object3DHelper/utils/threex/domevents/index.js +191 -0
- package/esm/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/utils/vectorIsEqual.js +6 -0
- package/esm/shared-utils/Subscribe.d.ts +60 -0
- package/esm/shared-utils/Subscribe.js +50 -0
- package/esm/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/esm/shared-utils/animationFrame/BetterTween.js +26 -0
- package/esm/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/esm/shared-utils/animationFrame/calculateProgress.js +6 -0
- package/esm/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/esm/shared-utils/animationFrame/formatRad.js +11 -0
- package/esm/shared-utils/animationFrame/index.d.ts +16 -0
- package/esm/shared-utils/animationFrame/index.js +28 -0
- package/esm/shared-utils/animationFrame/tween.d.ts +75 -0
- package/esm/shared-utils/animationFrame/tween.js +28 -0
- package/esm/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/esm/shared-utils/changeModelCanvasOpacity.js +12 -0
- package/esm/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/esm/shared-utils/createCanvasTextTexture.js +11 -0
- package/esm/shared-utils/createLine/index.d.ts +3 -0
- package/esm/shared-utils/createLine/index.js +9 -0
- package/esm/shared-utils/debounce.d.ts +6 -0
- package/esm/shared-utils/debounce.js +11 -0
- package/esm/shared-utils/equal.d.ts +11 -0
- package/esm/shared-utils/equal.js +54 -0
- package/esm/shared-utils/filter.d.ts +27 -0
- package/esm/shared-utils/filter.js +10 -0
- package/esm/shared-utils/five/changeMode.d.ts +5 -0
- package/esm/shared-utils/five/changeMode.js +39 -0
- package/esm/shared-utils/getPxmm.d.ts +19 -0
- package/esm/shared-utils/getPxmm.js +20 -0
- package/esm/shared-utils/index.d.ts +4 -0
- package/esm/shared-utils/index.js +35 -0
- package/esm/shared-utils/isNil.d.ts +10 -0
- package/esm/shared-utils/isNil.js +10 -0
- package/esm/shared-utils/isTruelyObject.d.ts +18 -0
- package/esm/shared-utils/isTruelyObject.js +6 -0
- package/esm/shared-utils/math/Interval.d.ts +13 -0
- package/esm/shared-utils/math/Interval.js +23 -0
- package/esm/shared-utils/math/Rectangle.d.ts +27 -0
- package/esm/shared-utils/math/Rectangle.js +23 -0
- package/esm/shared-utils/math/index.d.ts +2 -0
- package/esm/shared-utils/math/index.js +1 -0
- package/esm/shared-utils/math/planimetry.d.ts +116 -0
- package/esm/shared-utils/math/planimetry.js +43 -0
- package/esm/shared-utils/math/rad2Deg.d.ts +1 -0
- package/esm/shared-utils/math/rad2Deg.js +6 -0
- package/esm/shared-utils/nearlyEqual.d.ts +7 -0
- package/esm/shared-utils/nearlyEqual.js +6 -0
- package/esm/shared-utils/nextFrame.d.ts +1 -0
- package/esm/shared-utils/nextFrame.js +6 -0
- package/esm/shared-utils/noop.d.ts +5 -0
- package/esm/shared-utils/noop.js +5 -0
- package/esm/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/esm/shared-utils/object3d2LocalMatrix.js +18 -0
- package/esm/shared-utils/removeArrayItem.d.ts +7 -0
- package/esm/shared-utils/removeArrayItem.js +8 -0
- package/esm/shared-utils/tap.d.ts +8 -0
- package/esm/shared-utils/tap.js +6 -0
- package/esm/shared-utils/three/Assets/index.d.ts +3 -0
- package/esm/shared-utils/three/Assets/index.js +4 -0
- package/esm/shared-utils/three/FivePointSelector.d.ts +36 -0
- package/esm/shared-utils/three/FivePointSelector.js +49 -0
- package/esm/shared-utils/three/Magnifier.d.ts +53 -0
- package/esm/shared-utils/three/Magnifier.js +104 -0
- package/esm/shared-utils/three/PointDomHelper.d.ts +18 -0
- package/esm/shared-utils/three/PointDomHelper.js +60 -0
- package/esm/shared-utils/three/PointHelper.d.ts +21 -0
- package/esm/shared-utils/three/PointHelper.js +73 -0
- package/esm/shared-utils/three/getCoords.d.ts +9 -0
- package/esm/shared-utils/three/getCoords.js +13 -0
- package/esm/shared-utils/three/getIntersect.d.ts +6 -0
- package/esm/shared-utils/three/getIntersect.js +8 -0
- package/esm/shared-utils/three/getRaycaster.d.ts +6 -0
- package/esm/shared-utils/three/getRaycaster.js +12 -0
- package/esm/shared-utils/three/index.d.ts +7 -0
- package/esm/shared-utils/three/index.js +6 -0
- package/esm/shared-utils/three/loadTexture.d.ts +2 -0
- package/esm/shared-utils/three/loadTexture.js +28 -0
- package/esm/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/esm/shared-utils/three/transformPositionToVector3.js +5 -0
- package/esm/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/esm/shared-utils/three/transfromToMeshBasicMaterial.js +24 -0
- package/esm/shared-utils/throttle.d.ts +7 -0
- package/esm/shared-utils/throttle.js +11 -0
- package/esm/shared-utils/tinyEJSrender.d.ts +5 -0
- package/esm/shared-utils/tinyEJSrender.js +140 -0
- package/esm/shared-utils/to.d.ts +8 -0
- package/esm/shared-utils/to.js +28 -0
- package/esm/shared-utils/uuid.d.ts +5 -0
- package/esm/shared-utils/uuid.js +9 -0
- package/esm/typings/math.type.d.ts +44 -0
- package/esm/vendor/swiper/components-shared/get-changed-params.js +29 -0
- package/esm/vendor/swiper/components-shared/get-params.js +23 -0
- package/esm/vendor/swiper/components-shared/mount-swiper.js +14 -0
- package/esm/vendor/swiper/components-shared/params-list.js +120 -0
- package/esm/vendor/swiper/components-shared/update-swiper.js +36 -0
- package/esm/vendor/swiper/components-shared/utils.js +32 -0
- package/esm/vendor/swiper/svelte/swiper-slide.js +182 -0
- package/esm/vendor/swiper/svelte/swiper-svelte.js +3 -0
- package/esm/vendor/swiper/svelte/swiper.js +254 -0
- package/package.json +4 -3
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
var G = Object.defineProperty, K = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var E = Object.getOwnPropertySymbols;
|
|
4
|
+
var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[c] = e, S = (g, c) => {
|
|
6
|
+
for (var e in c || (c = {}))
|
|
7
|
+
T.call(c, e) && x(g, e, c[e]);
|
|
8
|
+
if (E)
|
|
9
|
+
for (var e of E(c))
|
|
10
|
+
A.call(c, e) && x(g, e, c[e]);
|
|
11
|
+
return g;
|
|
12
|
+
}, L = (g, c) => K(g, U(c));
|
|
13
|
+
var P = (g, c, e) => (x(g, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
|
+
var y = (g, c, e) => new Promise((t, i) => {
|
|
15
|
+
var a = (s) => {
|
|
16
|
+
try {
|
|
17
|
+
n(e.next(s));
|
|
18
|
+
} catch (r) {
|
|
19
|
+
i(r);
|
|
20
|
+
}
|
|
21
|
+
}, o = (s) => {
|
|
22
|
+
try {
|
|
23
|
+
n(e.throw(s));
|
|
24
|
+
} catch (r) {
|
|
25
|
+
i(r);
|
|
26
|
+
}
|
|
27
|
+
}, n = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(a, o);
|
|
28
|
+
n((e = e.apply(g, c)).next());
|
|
29
|
+
});
|
|
30
|
+
import { C as O } from "../base/BasePluginWithData.js";
|
|
31
|
+
import { GuideLinePlugin as V } from "../GuideLinePlugin/index.js";
|
|
32
|
+
import { u as k } from "../shared-utils/uuid.js";
|
|
33
|
+
import { c as Q } from "./utils/coordinatesAngle.js";
|
|
34
|
+
import { s as _ } from "./utils/safeCall.js";
|
|
35
|
+
import { e as $ } from "../shared-utils/equal.js";
|
|
36
|
+
import { v as R } from "./utils/vectorToCoordinates.js";
|
|
37
|
+
import * as N from "three";
|
|
38
|
+
import { l as j } from "./utils/linerValue.js";
|
|
39
|
+
import { s as H } from "./utils/sleep.js";
|
|
40
|
+
const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, F = () => {
|
|
41
|
+
console.error(`${w} is disposed`);
|
|
42
|
+
}, J = () => {
|
|
43
|
+
console.warn(`${w} is disabled`);
|
|
44
|
+
}, q = () => {
|
|
45
|
+
console.error(`${w} is disabled`);
|
|
46
|
+
}, C = /* @__PURE__ */ new Map();
|
|
47
|
+
class B extends O {
|
|
48
|
+
constructor(e, t) {
|
|
49
|
+
super(e, t);
|
|
50
|
+
P(this, "state", {
|
|
51
|
+
visible: !0,
|
|
52
|
+
enabled: !0,
|
|
53
|
+
disposed: !1,
|
|
54
|
+
playing: !1,
|
|
55
|
+
speed: 1,
|
|
56
|
+
config: {
|
|
57
|
+
speedConfig: {
|
|
58
|
+
rotateSpeed: 1e-3,
|
|
59
|
+
rotateSpeedUnit: "rad/ms",
|
|
60
|
+
moveSpeed: 2e-3,
|
|
61
|
+
moveSpeedUnit: "m/ms"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
P(this, "data");
|
|
66
|
+
P(this, "config");
|
|
67
|
+
P(this, "privateState", {
|
|
68
|
+
playing: !1,
|
|
69
|
+
currentPlayQueue: [],
|
|
70
|
+
currentPlayKeyframe: null,
|
|
71
|
+
broke: !1,
|
|
72
|
+
disposers: [],
|
|
73
|
+
modeChanging: !1
|
|
74
|
+
});
|
|
75
|
+
P(this, "GuideLine");
|
|
76
|
+
this.config = t, Object.assign(window, { [`__${D}_DEBUG__`]: this });
|
|
77
|
+
const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
|
|
78
|
+
this.hooks.on("play", i), this.hooks.on("broke", a), this.hooks.on("end", a), this.hooks.on("pause", a), this.privateState.disposers.push(() => {
|
|
79
|
+
this.hooks.off("play", i), this.hooks.off("broke", a), this.hooks.off("end", a), this.hooks.off("pause", a);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
load(e, t, i) {
|
|
83
|
+
return y(this, null, function* () {
|
|
84
|
+
var d, v, f, l, u;
|
|
85
|
+
if (this.state.disposed)
|
|
86
|
+
return F();
|
|
87
|
+
this.privateState.fiveOriginGetProgress || (v = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && v.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (l = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : l.getProgress), this.clear();
|
|
88
|
+
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
|
|
89
|
+
this.data = o, this.hooks.emit("dataChange", o, a);
|
|
90
|
+
let n = [], s;
|
|
91
|
+
const r = this.data.keyframes.filter((h) => h.data.panoIndex !== void 0);
|
|
92
|
+
r.filter((h, m) => {
|
|
93
|
+
var p;
|
|
94
|
+
return h.data.panoIndex !== ((p = r[m - 1]) == null ? void 0 : p.data.panoIndex);
|
|
95
|
+
}).map((h) => h.data.panoIndex).forEach((h) => {
|
|
96
|
+
var p, b;
|
|
97
|
+
const m = (p = this.five.work.observers[h]) == null ? void 0 : p.floorIndex;
|
|
98
|
+
if (m !== void 0)
|
|
99
|
+
if (s === m) {
|
|
100
|
+
const I = n.length - 1;
|
|
101
|
+
n[I] = [...(b = n[I]) != null ? b : [], h];
|
|
102
|
+
} else {
|
|
103
|
+
s = m;
|
|
104
|
+
const I = n.length;
|
|
105
|
+
n[I] = [h];
|
|
106
|
+
}
|
|
107
|
+
}), this.GuideLine || (this.GuideLine = V(this.five, this.config)), (u = this.GuideLine) == null || u.load({ routes: n.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`, o), this.hooks.emit("dataLoaded", o);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
play(e) {
|
|
111
|
+
this.setState({ playing: !0 }, e);
|
|
112
|
+
}
|
|
113
|
+
playFrom(e) {
|
|
114
|
+
const { index: t, id: i, userAction: a } = e;
|
|
115
|
+
this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
|
|
116
|
+
}
|
|
117
|
+
playFromStart(e) {
|
|
118
|
+
return this.playFrom(L(S({}, e), { index: 0 }));
|
|
119
|
+
}
|
|
120
|
+
pause(e) {
|
|
121
|
+
this.setState({ playing: !1 }, e);
|
|
122
|
+
}
|
|
123
|
+
show(e) {
|
|
124
|
+
return y(this, null, function* () {
|
|
125
|
+
this.setState({ visible: !0 }, e);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
hide(e) {
|
|
129
|
+
return y(this, null, function* () {
|
|
130
|
+
this.setState({ visible: !1 }, e);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
enable(e) {
|
|
134
|
+
this.setState({ enabled: !0 }, e);
|
|
135
|
+
}
|
|
136
|
+
disable(e) {
|
|
137
|
+
this.setState({ enabled: !1 }, e);
|
|
138
|
+
}
|
|
139
|
+
dispose() {
|
|
140
|
+
this.setState({ disposed: !0 });
|
|
141
|
+
}
|
|
142
|
+
setState(e, t) {
|
|
143
|
+
var a;
|
|
144
|
+
if (this.state.disposed)
|
|
145
|
+
return F();
|
|
146
|
+
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
147
|
+
return q();
|
|
148
|
+
const i = S({}, this.state);
|
|
149
|
+
this.state = S(S({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), $(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
|
|
150
|
+
}
|
|
151
|
+
formatData(e) {
|
|
152
|
+
return y(this, null, function* () {
|
|
153
|
+
this.five.work || (yield this.waitFiveLoaded());
|
|
154
|
+
const t = this.five.work.observers, i = (() => {
|
|
155
|
+
const a = e;
|
|
156
|
+
return typeof a == "object" && a !== null && a.version && a.data ? a.data : a;
|
|
157
|
+
})();
|
|
158
|
+
if (i.keyframes)
|
|
159
|
+
return {
|
|
160
|
+
keyframesId: k(),
|
|
161
|
+
keyframes: i.keyframes.map((a, o) => {
|
|
162
|
+
var r;
|
|
163
|
+
const n = i.keyframes[o + 1], s = (() => !n || n.start === void 0 || a.end === void 0 ? 0 : n.start - a.end)();
|
|
164
|
+
return S({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
|
|
165
|
+
})
|
|
166
|
+
};
|
|
167
|
+
if (i.panoIndexList) {
|
|
168
|
+
let a = [];
|
|
169
|
+
const { moveEffect: o, moveToFirstPanoEffect: n } = i;
|
|
170
|
+
return this.privateState.moveToFirstPanoEffect = n, i.panoIndexList.forEach((s, r) => {
|
|
171
|
+
const d = (() => {
|
|
172
|
+
var h, m, p, b;
|
|
173
|
+
const v = i.panoIndexList.slice(r).find((I) => I !== s);
|
|
174
|
+
if (v === void 0)
|
|
175
|
+
return;
|
|
176
|
+
const f = (h = t[s]) == null ? void 0 : h.position, l = (m = t[v]) == null ? void 0 : m.position;
|
|
177
|
+
if (!l || !f || ((p = t[s]) == null ? void 0 : p.floorIndex) !== ((b = t[v]) == null ? void 0 : b.floorIndex))
|
|
178
|
+
return;
|
|
179
|
+
const u = new N.Vector3().subVectors(l, f);
|
|
180
|
+
return R(u);
|
|
181
|
+
})();
|
|
182
|
+
i.moveType === void 0 || i.moveType === "justMove" ? a.push({
|
|
183
|
+
moveIndex: r,
|
|
184
|
+
stay: i.stay,
|
|
185
|
+
data: S({ effect: "Move", panoIndex: s, moveEffect: o }, d != null ? d : {})
|
|
186
|
+
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data: S({ effect: "Rotate", panoIndex: s }, d) }));
|
|
187
|
+
}), { keyframesId: k(), keyframes: a.map((s, r) => S({ id: k(), index: r }, s)) };
|
|
188
|
+
} else
|
|
189
|
+
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
handleEnable(e, t = !0) {
|
|
193
|
+
var i, a;
|
|
194
|
+
e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((a = this.GuideLine) == null || a.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
195
|
+
}
|
|
196
|
+
handleVisible(e, t = !0) {
|
|
197
|
+
var i, a;
|
|
198
|
+
e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((a = this.GuideLine) == null || a.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
199
|
+
}
|
|
200
|
+
changePlayState(e, t) {
|
|
201
|
+
this.actionIfStateIsEnabled(
|
|
202
|
+
() => {
|
|
203
|
+
var i;
|
|
204
|
+
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
|
|
205
|
+
}
|
|
206
|
+
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
207
|
+
}
|
|
208
|
+
handlePlay(e) {
|
|
209
|
+
return y(this, null, function* () {
|
|
210
|
+
var l;
|
|
211
|
+
const { data: t, state: i, privateState: a, hooks: o } = this;
|
|
212
|
+
if (a.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
213
|
+
return;
|
|
214
|
+
const n = k();
|
|
215
|
+
a.playId = n, a.playing = !0, a.broke = !1;
|
|
216
|
+
const s = t.keyframes, r = this.getPauseData();
|
|
217
|
+
(e == null ? void 0 : e.notEmitEvent) !== !0 && o.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
|
|
218
|
+
let d = !1;
|
|
219
|
+
const f = yield (() => y(this, null, function* () {
|
|
220
|
+
var u, h;
|
|
221
|
+
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
222
|
+
return e.playFromIndex;
|
|
223
|
+
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
224
|
+
return (u = this.data) == null ? void 0 : u.keyframes.findIndex((m) => m.id === e.playFromId);
|
|
225
|
+
if (r != null && r.keyframeId) {
|
|
226
|
+
const m = (h = this.data) == null ? void 0 : h.keyframes.find((p) => p.id === r.keyframeId);
|
|
227
|
+
if (r != null && r.fiveState && (yield this.move(r.fiveState, { moveEffect: a.moveToFirstPanoEffect })), m) {
|
|
228
|
+
if (m.data.effect === "Move")
|
|
229
|
+
return m.index;
|
|
230
|
+
if (m.data.effect === "Rotate") {
|
|
231
|
+
const p = r.duration !== void 0 ? r.duration * (1 - r.playedProgress) : void 0;
|
|
232
|
+
return yield this.playKeyframe(m, { duration: p }), d = !0, m.index + 1;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}))();
|
|
237
|
+
this.clearPauseData();
|
|
238
|
+
for (const u of s) {
|
|
239
|
+
if (a.broke || !i.playing || !a.playing || n !== a.playId)
|
|
240
|
+
return;
|
|
241
|
+
if (!(f !== void 0 && u.index < f))
|
|
242
|
+
try {
|
|
243
|
+
o.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
|
|
244
|
+
moveEffect: d === !1 ? a.moveToFirstPanoEffect : void 0,
|
|
245
|
+
duration: 800
|
|
246
|
+
}), u.stay && (yield H(u.stay)), d === !1 && (d = !0);
|
|
247
|
+
} catch (h) {
|
|
248
|
+
return Promise.resolve("broke");
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
i.playing && n === a.playId && (this.setState({ playing: !1 }, { userAction: !1 }), o.emit("end"), this.clearPauseData());
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
handlePause(e) {
|
|
255
|
+
var o;
|
|
256
|
+
const { state: t, privateState: i, hooks: a } = this;
|
|
257
|
+
t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && a.emit("pause", { userAction: (o = e == null ? void 0 : e.userAction) != null ? o : !0 }));
|
|
258
|
+
}
|
|
259
|
+
playKeyframe(e, t) {
|
|
260
|
+
return y(this, null, function* () {
|
|
261
|
+
var a;
|
|
262
|
+
const { privateState: i } = this;
|
|
263
|
+
return ((a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), i.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
addInterruptListener(e) {
|
|
267
|
+
const t = () => {
|
|
268
|
+
this.privateState.modeChanging || e();
|
|
269
|
+
}, i = e;
|
|
270
|
+
return this.five.once("gesture", i), this.five.once("wantsChangeMode", t), () => {
|
|
271
|
+
this.five.off("gesture", i), this.five.once("wantsChangeMode", t);
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
getPlayPromise(e, t) {
|
|
275
|
+
return y(this, null, function* () {
|
|
276
|
+
var a;
|
|
277
|
+
const i = e.data;
|
|
278
|
+
if ((a = t == null ? void 0 : t.duration) != null || e.start !== void 0 && e.end !== void 0 && e.end - e.start, !!i)
|
|
279
|
+
return new Promise((o, n) => {
|
|
280
|
+
let s = !1;
|
|
281
|
+
this.addInterruptListener(() => {
|
|
282
|
+
if (!s)
|
|
283
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), s = !0, n(new Error("play is interupted"));
|
|
284
|
+
});
|
|
285
|
+
try {
|
|
286
|
+
if (s)
|
|
287
|
+
return;
|
|
288
|
+
const r = () => {
|
|
289
|
+
o(), s = !0;
|
|
290
|
+
};
|
|
291
|
+
switch (i.effect) {
|
|
292
|
+
case "Move":
|
|
293
|
+
this.move(i, t).then(r);
|
|
294
|
+
break;
|
|
295
|
+
case "Rotate":
|
|
296
|
+
this.rotate(i, t).then(r);
|
|
297
|
+
break;
|
|
298
|
+
default:
|
|
299
|
+
this.rotate(i, t).then(r);
|
|
300
|
+
}
|
|
301
|
+
} catch (r) {
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
actionPromiseQueue() {
|
|
307
|
+
return y(this, null, function* () {
|
|
308
|
+
const { privateState: e } = this;
|
|
309
|
+
return new Promise((t, i) => {
|
|
310
|
+
if (e.currentPlayQueue.length === 0) {
|
|
311
|
+
t();
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
const a = e.currentPlayQueue.shift();
|
|
315
|
+
if (!a) {
|
|
316
|
+
t();
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
a.then(t, i);
|
|
320
|
+
}).then(() => e.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
move(e, t) {
|
|
324
|
+
return y(this, null, function* () {
|
|
325
|
+
if (e.mode && e.mode !== this.five.currentMode)
|
|
326
|
+
yield this.changeMode(e);
|
|
327
|
+
else if (e.panoIndex !== this.five.panoIndex)
|
|
328
|
+
yield this.changePano(e, t);
|
|
329
|
+
else
|
|
330
|
+
return Promise.resolve();
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
rotate(e, t) {
|
|
334
|
+
return y(this, null, function* () {
|
|
335
|
+
if (e.mode && e.mode !== this.five.currentMode)
|
|
336
|
+
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
337
|
+
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
338
|
+
return yield this.changePano(e, t);
|
|
339
|
+
yield this.updateCamera(e, t == null ? void 0 : t.duration);
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
updateCamera(e, t = 800) {
|
|
343
|
+
return y(this, null, function* () {
|
|
344
|
+
const { five: i, privateState: a, state: o } = this;
|
|
345
|
+
let n = t;
|
|
346
|
+
const s = (() => {
|
|
347
|
+
var f, l;
|
|
348
|
+
const d = (f = o.config) == null ? void 0 : f.speedConfig, v = (l = e.rotateSpeed) != null ? l : d == null ? void 0 : d.rotateSpeed;
|
|
349
|
+
if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
|
|
350
|
+
return v;
|
|
351
|
+
if (v !== void 0)
|
|
352
|
+
return d.rotateSpeedUnit === "rad/ms" ? v : v / 1e3;
|
|
353
|
+
})();
|
|
354
|
+
if (s) {
|
|
355
|
+
const d = this.five.getCurrentState();
|
|
356
|
+
n = Q(d, e) / s;
|
|
357
|
+
}
|
|
358
|
+
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = n);
|
|
359
|
+
const r = this.getSpeededDuration(n);
|
|
360
|
+
return new Promise((d) => {
|
|
361
|
+
_(() => i.updateCamera(e, r)), setTimeout(() => d(), r);
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
changePano(e, t) {
|
|
366
|
+
return y(this, null, function* () {
|
|
367
|
+
var v;
|
|
368
|
+
const { five: i, privateState: a, state: o } = this;
|
|
369
|
+
if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
|
|
370
|
+
return;
|
|
371
|
+
i.getCurrentState().mode;
|
|
372
|
+
const n = i.getCurrentState().mode !== "Panorama";
|
|
373
|
+
n && (this.privateState.modeChanging = !0);
|
|
374
|
+
let s = (v = t == null ? void 0 : t.duration) != null ? v : 800;
|
|
375
|
+
const r = (() => {
|
|
376
|
+
var u, h;
|
|
377
|
+
const f = (u = o.config) == null ? void 0 : u.speedConfig, l = (h = e.moveSpeed) != null ? h : f == null ? void 0 : f.moveSpeed;
|
|
378
|
+
if ((f == null ? void 0 : f.moveSpeedUnit) === void 0)
|
|
379
|
+
return l;
|
|
380
|
+
if (l !== void 0)
|
|
381
|
+
return f.moveSpeedUnit === "m/ms" ? l : l / 1e3;
|
|
382
|
+
})();
|
|
383
|
+
if (r && typeof i.panoIndex == "number" && typeof e.panoIndex == "number") {
|
|
384
|
+
const f = i.work.observers[i.panoIndex].position, l = i.work.observers[e.panoIndex].position;
|
|
385
|
+
s = f.distanceTo(l) / r;
|
|
386
|
+
}
|
|
387
|
+
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = s);
|
|
388
|
+
const d = this.getSpeededDuration(s);
|
|
389
|
+
yield new Promise((f) => {
|
|
390
|
+
var l, u, h;
|
|
391
|
+
i.moveToPano(e.panoIndex, {
|
|
392
|
+
latitude: e.latitude,
|
|
393
|
+
longitude: e.longitude,
|
|
394
|
+
fov: e.fov,
|
|
395
|
+
duration: d,
|
|
396
|
+
effect: (h = (u = t == null ? void 0 : t.moveEffect) != null ? u : (l = this.state.config) == null ? void 0 : l.moveEffect) != null ? h : e.moveEffect,
|
|
397
|
+
moveCancelCallback: () => f(),
|
|
398
|
+
moveEndCallback: () => f()
|
|
399
|
+
}), n && i.once("panoArrived", () => f());
|
|
400
|
+
}), n && (this.privateState.modeChanging = !1);
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
changeSpeed(e, t = !0) {
|
|
404
|
+
const { state: i, privateState: a, hooks: o } = this, { currentPlayKeyframe: n } = a;
|
|
405
|
+
if (o.emit("speedChange", e, { userAction: t }), i.playing && n)
|
|
406
|
+
try {
|
|
407
|
+
const s = n.originDuration !== void 0 ? n.originDuration * (1 - this.getProgress()) : void 0, r = this.playKeyframe(n.keyframe, { duration: s });
|
|
408
|
+
a.currentPlayQueue.push(r);
|
|
409
|
+
} catch (s) {
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
getSpeededDuration(e) {
|
|
413
|
+
return e / this.state.speed;
|
|
414
|
+
}
|
|
415
|
+
getProgress() {
|
|
416
|
+
return this.five.controller.cameraMotion.progress;
|
|
417
|
+
}
|
|
418
|
+
changeMode(e, t) {
|
|
419
|
+
return y(this, null, function* () {
|
|
420
|
+
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, console.log("this.privateState.modeChanging", this.privateState.modeChanging), yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
forceInteruptUpdateCamera() {
|
|
424
|
+
this.five.updateCamera({}, 0);
|
|
425
|
+
}
|
|
426
|
+
getPauseData() {
|
|
427
|
+
var e, t;
|
|
428
|
+
if ((e = this.data) != null && e.keyframesId)
|
|
429
|
+
return C.get((t = this.data) == null ? void 0 : t.keyframesId);
|
|
430
|
+
}
|
|
431
|
+
setPauseData() {
|
|
432
|
+
var e, t, i, a;
|
|
433
|
+
if ((e = this.data) != null && e.keyframesId)
|
|
434
|
+
return C.set((t = this.data) == null ? void 0 : t.keyframesId, {
|
|
435
|
+
keyframeId: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.keyframe.id,
|
|
436
|
+
fiveState: this.five.getCurrentState(),
|
|
437
|
+
duration: (a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.originDuration,
|
|
438
|
+
playedProgress: this.getProgress()
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
clearPauseData() {
|
|
442
|
+
var e, t;
|
|
443
|
+
if ((e = this.data) != null && e.keyframesId)
|
|
444
|
+
return C.delete((t = this.data) == null ? void 0 : t.keyframesId);
|
|
445
|
+
}
|
|
446
|
+
clear() {
|
|
447
|
+
this.clearPauseData(), this.privateState.currentPlayKeyframe = null;
|
|
448
|
+
}
|
|
449
|
+
handleDispose() {
|
|
450
|
+
var e, t;
|
|
451
|
+
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0, (t = this.privateState.disposers) == null || t.forEach((i) => i == null ? void 0 : i());
|
|
452
|
+
}
|
|
453
|
+
actionIfStateIsEnabled(e, t) {
|
|
454
|
+
if (this.state.enabled)
|
|
455
|
+
return e();
|
|
456
|
+
t != null && t.warnLog && J();
|
|
457
|
+
}
|
|
458
|
+
waitFiveLoaded() {
|
|
459
|
+
return y(this, null, function* () {
|
|
460
|
+
return new Promise((e) => {
|
|
461
|
+
if (this.five.work) {
|
|
462
|
+
e();
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
this.five.once("loaded", () => {
|
|
466
|
+
e();
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
setFiveLinearUpdateCamera() {
|
|
472
|
+
!this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = (e) => {
|
|
473
|
+
const t = this.five.controller.cameraMotion, i = e - t.startTime;
|
|
474
|
+
return i < 0 ? 0 : i >= t.duration ? 1 : 1 - j(1, t.startVelocity, t.duration, i);
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
setFiveOriginUpdateCamera() {
|
|
478
|
+
!this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
P(B, "PluginVersion", M);
|
|
482
|
+
export {
|
|
483
|
+
B as C
|
|
484
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import CruisePluginController from './Controller';
|
|
3
|
+
export { CruisePluginController };
|
|
4
|
+
export declare const CruisePlugin: FivePlugin<void, InstanceType<typeof CruisePluginController>>;
|
|
5
|
+
export type { CruisePluginExportType } from './typing';
|
|
6
|
+
export default CruisePlugin;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { C as o } from "./Controller.js";
|
|
2
|
+
import { C as y } from "./Controller.js";
|
|
3
|
+
import "../base/BasePluginWithData.js";
|
|
4
|
+
import "../base/BasePlugin.js";
|
|
5
|
+
import "../shared-utils/Subscribe.js";
|
|
6
|
+
import "../GuideLinePlugin/index.js";
|
|
7
|
+
import "../GuideLinePlugin/Controller.js";
|
|
8
|
+
import "three";
|
|
9
|
+
import "../GuideLinePlugin/utils/getLineGeometries.js";
|
|
10
|
+
import "polyline-normals";
|
|
11
|
+
import "../GuideLinePlugin/utils/getArrowMaterial.js";
|
|
12
|
+
import "../shared-utils/isNil.js";
|
|
13
|
+
import "../shared-utils/equal.js";
|
|
14
|
+
import "../shared-utils/isTruelyObject.js";
|
|
15
|
+
import "../shared-utils/uuid.js";
|
|
16
|
+
import "./utils/coordinatesAngle.js";
|
|
17
|
+
import "./utils/coordinatesToVector.js";
|
|
18
|
+
import "./utils/safeCall.js";
|
|
19
|
+
import "./utils/vectorToCoordinates.js";
|
|
20
|
+
import "./utils/formatRad.js";
|
|
21
|
+
import "./utils/linerValue.js";
|
|
22
|
+
import "./utils/sleep.js";
|
|
23
|
+
const k = (r) => new o(r);
|
|
24
|
+
export {
|
|
25
|
+
k as CruisePlugin,
|
|
26
|
+
y as CruisePluginController,
|
|
27
|
+
k as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { MovePanoOptions, Pose, State } from '@realsee/five';
|
|
2
|
+
import type CruisePlugin from '.';
|
|
3
|
+
import type * as BasePluginWithData from '../base/BasePluginWithData';
|
|
4
|
+
import type { Route } from '../GuideLinePlugin/typing';
|
|
5
|
+
declare type FivePoseAndState = Partial<Pose> & Partial<State>;
|
|
6
|
+
export declare type MoveEffect = MovePanoOptions['effect'];
|
|
7
|
+
export declare type CruiseData = {
|
|
8
|
+
/** 移动/旋转 */
|
|
9
|
+
effect: 'Move' | 'Rotate';
|
|
10
|
+
/** five走点动画 */
|
|
11
|
+
moveEffect?: MoveEffect;
|
|
12
|
+
/** 移动速度 */
|
|
13
|
+
moveSpeed?: number;
|
|
14
|
+
/** 旋转速度 */
|
|
15
|
+
rotateSpeed?: number;
|
|
16
|
+
} & FivePoseAndState;
|
|
17
|
+
export interface CruiseKeyframe {
|
|
18
|
+
id: string;
|
|
19
|
+
index: number;
|
|
20
|
+
moveIndex: number;
|
|
21
|
+
stay?: number;
|
|
22
|
+
start?: number;
|
|
23
|
+
end?: number;
|
|
24
|
+
data: CruiseData;
|
|
25
|
+
}
|
|
26
|
+
export interface PluginData {
|
|
27
|
+
keyframesId: string;
|
|
28
|
+
keyframes: CruiseKeyframe[];
|
|
29
|
+
}
|
|
30
|
+
export interface PluginServerData extends BasePluginWithData.ServerData {
|
|
31
|
+
data: {
|
|
32
|
+
keyframes: {
|
|
33
|
+
uuid?: string;
|
|
34
|
+
id?: string;
|
|
35
|
+
start?: number;
|
|
36
|
+
end?: number;
|
|
37
|
+
data: CruiseData;
|
|
38
|
+
}[];
|
|
39
|
+
/** for ts check, no care */
|
|
40
|
+
panoIndexList?: undefined;
|
|
41
|
+
/** for ts check, no care */
|
|
42
|
+
moveEffect?: undefined;
|
|
43
|
+
/** for ts check, no care */
|
|
44
|
+
moveType?: undefined;
|
|
45
|
+
/** for ts check, no care */
|
|
46
|
+
moveToFirstPanoEffect?: undefined;
|
|
47
|
+
/** for ts check, no care */
|
|
48
|
+
stay?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
/** 点位列表 */
|
|
51
|
+
panoIndexList: number[];
|
|
52
|
+
/** five走点动画 */
|
|
53
|
+
moveEffect?: MoveEffect;
|
|
54
|
+
/** 到第一个点的走点动画 / 续播到暂停处的走点动画 */
|
|
55
|
+
moveToFirstPanoEffect?: MoveEffect;
|
|
56
|
+
/** 漫游方式:justMove 为移动到指定点位,且朝向为下一个点的朝向;moveAndRotate 为先移动到指定点位且朝向不变,然后旋转到下一个点的朝向 */
|
|
57
|
+
moveType?: 'justMove' | 'moveAndRotate';
|
|
58
|
+
/** 停留时长 */
|
|
59
|
+
stay?: number;
|
|
60
|
+
/** 传递给 GuildPlugin 的参数 */
|
|
61
|
+
guildPluginOptions?: {
|
|
62
|
+
route: Omit<Route, 'panoIndexList'>;
|
|
63
|
+
};
|
|
64
|
+
/** for ts check, no care */
|
|
65
|
+
keyframes?: undefined;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface PluginState extends BasePluginWithData.State {
|
|
69
|
+
/** 是否可见 */
|
|
70
|
+
visible: boolean;
|
|
71
|
+
/** 是否正在播放 */
|
|
72
|
+
playing: boolean;
|
|
73
|
+
/** 是否销毁 */
|
|
74
|
+
disposed: boolean;
|
|
75
|
+
/** 播放速度 */
|
|
76
|
+
speed: number;
|
|
77
|
+
config?: {
|
|
78
|
+
/** 速度配置 */
|
|
79
|
+
speedConfig?: {
|
|
80
|
+
/** 旋转速度 */
|
|
81
|
+
rotateSpeed: number;
|
|
82
|
+
/** 旋转速度单位 */
|
|
83
|
+
rotateSpeedUnit: 'rad/s' | 'rad/ms';
|
|
84
|
+
/** 移动速度 */
|
|
85
|
+
moveSpeed: number;
|
|
86
|
+
/** 移动速度单位 */
|
|
87
|
+
moveSpeedUnit: 'm/s' | 'm/ms';
|
|
88
|
+
};
|
|
89
|
+
/** five 走点动画 */
|
|
90
|
+
moveEffect?: MoveEffect;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export interface EventMap extends BasePluginWithData.EventMap<PluginState, PluginData> {
|
|
94
|
+
/** 展示 */
|
|
95
|
+
show: (options: {
|
|
96
|
+
userAction: boolean;
|
|
97
|
+
}) => void;
|
|
98
|
+
/** 隐藏 */
|
|
99
|
+
hide: (options: {
|
|
100
|
+
userAction: boolean;
|
|
101
|
+
}) => void;
|
|
102
|
+
/** 开启 */
|
|
103
|
+
enable: (options: {
|
|
104
|
+
userAction: boolean;
|
|
105
|
+
}) => void;
|
|
106
|
+
/** 关闭 */
|
|
107
|
+
disable: (options: {
|
|
108
|
+
userAction: boolean;
|
|
109
|
+
}) => void;
|
|
110
|
+
/** 播放状态改变,playingState: playing 表示播放;pause 表示暂停 */
|
|
111
|
+
playStateChange: (playingState: 'playing' | 'pause', options: {
|
|
112
|
+
userAction: boolean;
|
|
113
|
+
}) => void;
|
|
114
|
+
/** 开始播放,相当于 playStateChange: ('playing') => void */
|
|
115
|
+
play: (options: {
|
|
116
|
+
userAction: boolean;
|
|
117
|
+
}) => void;
|
|
118
|
+
/** 暂停播放,相当于 playStateChange: ('pause') => void */
|
|
119
|
+
pause: (options: {
|
|
120
|
+
userAction: boolean;
|
|
121
|
+
}) => void;
|
|
122
|
+
/** 播放的帧改变,index表示开始播放第{index}个帧 */
|
|
123
|
+
playIndexChange: (index: number, keyframe: CruiseKeyframe) => void;
|
|
124
|
+
/** 播放被手势操作打断,同时会触发 ”pause“ 事件 */
|
|
125
|
+
broke: () => void;
|
|
126
|
+
/** 播放结束 */
|
|
127
|
+
end: () => void;
|
|
128
|
+
/** 播放速度改变,speed表示播放速度 */
|
|
129
|
+
speedChange: (speed: number, options: {
|
|
130
|
+
userAction: boolean;
|
|
131
|
+
}) => void;
|
|
132
|
+
}
|
|
133
|
+
export declare type CruisePluginExportType = ReturnType<typeof CruisePlugin>;
|
|
134
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 获取coordinates间的夹角
|
|
3
|
+
* @return {number} 夹角角度
|
|
4
|
+
*/
|
|
5
|
+
declare function coordinatesAngle(coordinates1: {
|
|
6
|
+
longitude: number;
|
|
7
|
+
latitude: number;
|
|
8
|
+
}, coordinates2: {
|
|
9
|
+
longitude: number;
|
|
10
|
+
latitude: number;
|
|
11
|
+
}): number;
|
|
12
|
+
export { coordinatesAngle };
|