@realsee/dnalogel 3.10.2 → 3.11.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CruisePlugin/BaseController.d.ts +8 -0
- package/dist/CruisePlugin/Work.d.ts +1 -1
- package/dist/GuideLinePlugin/Controller.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/index.cjs.js +32 -32
- package/dist/index.js +1286 -1225
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/Utils/BaseUtil.d.ts +5 -0
- package/dist/shared-utils/Utils/WorkUtil.d.ts +33 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +120 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1367 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +730 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +693 -0
- package/docs/classes/CSS3DRender.html +777 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +480 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +860 -0
- package/docs/classes/Magnifier.html +484 -0
- package/docs/classes/ModelRoomLabelController.html +402 -0
- package/docs/classes/MoveController.html +653 -0
- package/docs/classes/Object3DHelperController.html +644 -0
- package/docs/classes/PaintBrush.html +506 -0
- package/docs/classes/PanoMeasurePluginLine.html +526 -0
- package/docs/classes/PanoMeasurePluginModel.html +575 -0
- package/docs/classes/PanoMeasurePluginPoint.html +366 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +571 -0
- package/docs/classes/PanoTagPluginController.html +1131 -0
- package/docs/classes/Util.BetterTween.html +420 -0
- package/docs/classes/Util.Interval.html +436 -0
- package/docs/classes/Util.LineSegments.html +388 -0
- package/docs/classes/Util.Magnifier.html +507 -0
- package/docs/classes/Util.Object3D.html +410 -0
- package/docs/classes/Util.PointDomHelper.html +411 -0
- package/docs/classes/Util.PointHelper.html +402 -0
- package/docs/classes/Util.PointSelectorHelper.html +458 -0
- package/docs/classes/Util.Rectangle.html +459 -0
- package/docs/classes/WalkController.html +672 -0
- package/docs/enums/CameraMovementEffect.html +314 -0
- package/docs/enums/ContentType.html +460 -0
- package/docs/enums/DIRECTION.html +324 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +324 -0
- package/docs/enums/DimensionType.html +314 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +317 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +324 -0
- package/docs/enums/PaintBrushTypeEnum.html +317 -0
- package/docs/enums/PointType.html +314 -0
- package/docs/enums/Rotation.html +321 -0
- package/docs/functions/AreaMakerPlugin.html +294 -0
- package/docs/functions/CSS3DRenderPlugin.html +292 -0
- package/docs/functions/CameraMovementPlugin.html +297 -0
- package/docs/functions/CruisePlugin.html +294 -0
- package/docs/functions/CurrentPanoImagePlugin.html +294 -0
- package/docs/functions/GuideLinePlugin.html +294 -0
- package/docs/functions/ItemLabelPlugin.html +294 -0
- package/docs/functions/MapviewFloorplanPlugin.html +294 -0
- package/docs/functions/ModelChassisCompassPlugin.html +297 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +297 -0
- package/docs/functions/ModelFloorplanPlugin.html +294 -0
- package/docs/functions/ModelItemLabelPlugin.html +294 -0
- package/docs/functions/ModelRoomLabelPlugin.html +292 -0
- package/docs/functions/ModelTVVideoPlugin.html +294 -0
- package/docs/functions/ModelViewPlugin.html +297 -0
- package/docs/functions/MovePlugin.html +294 -0
- package/docs/functions/Object3DHelperPlugin.html +292 -0
- package/docs/functions/PanoCompassPlugin.html +294 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +298 -0
- package/docs/functions/PanoDoorLabelPlugin.html +294 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +294 -0
- package/docs/functions/PanoMeasurePlugin.html +294 -0
- package/docs/functions/PanoRulerPlugin.html +297 -0
- package/docs/functions/PanoRulerProPlugin.html +297 -0
- package/docs/functions/PanoSpatialTagPlugin.html +297 -0
- package/docs/functions/PanoTagPlugin.html +299 -0
- package/docs/functions/PanoVideoPlugin.html +303 -0
- package/docs/functions/PipelinePlugin.html +292 -0
- package/docs/functions/TopviewFloorplanPlugin.html +294 -0
- package/docs/functions/Util.absoluteUrl.html +330 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +333 -0
- package/docs/functions/Util.equal.html +342 -0
- package/docs/functions/Util.getCoordsFromClient.html +332 -0
- package/docs/functions/Util.getCoordsFromElement.html +332 -0
- package/docs/functions/Util.getFrameTime.html +324 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +332 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +332 -0
- package/docs/functions/Util.isAbsoluteURL.html +325 -0
- package/docs/functions/Util.isModelLike.html +325 -0
- package/docs/functions/Util.isNil.html +333 -0
- package/docs/functions/Util.isPanoramaLike.html +325 -0
- package/docs/functions/Util.nextFrame.html +338 -0
- package/docs/functions/Util.notNil.html +333 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +354 -0
- package/docs/functions/Util.tweenProgress.html +327 -0
- package/docs/functions/Util.uuid.html +323 -0
- package/docs/functions/pluginFlag.html +292 -0
- package/docs/index.html +358 -0
- package/docs/interfaces/AddTagConfig.html +307 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +334 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +339 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +625 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +338 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +396 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +381 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +338 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +331 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +330 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +359 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +453 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +329 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +362 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +363 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +365 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +723 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +389 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +425 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +415 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +355 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +323 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +391 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +386 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +525 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +327 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +319 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +341 -0
- package/docs/interfaces/EventMap.html +546 -0
- package/docs/interfaces/FloorplanBounding.html +336 -0
- package/docs/interfaces/FloorplanData.html +339 -0
- package/docs/interfaces/FloorplanEntrance.html +364 -0
- package/docs/interfaces/FloorplanExtraObject.html +354 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +343 -0
- package/docs/interfaces/FloorplanFloorData.html +332 -0
- package/docs/interfaces/FloorplanImagePosition.html +318 -0
- package/docs/interfaces/FloorplanObserver.html +336 -0
- package/docs/interfaces/FloorplanOutlineItem.html +332 -0
- package/docs/interfaces/FloorplanPosition.html +318 -0
- package/docs/interfaces/FloorplanRoomItem.html +383 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +324 -0
- package/docs/interfaces/FloorplanServerBounding.html +336 -0
- package/docs/interfaces/FloorplanServerComputedData.html +335 -0
- package/docs/interfaces/FloorplanServerData.html +318 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +335 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +321 -0
- package/docs/interfaces/FloorplanServerEntrance.html +364 -0
- package/docs/interfaces/FloorplanServerFloorData.html +332 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +318 -0
- package/docs/interfaces/FloorplanServerObserver.html +336 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +332 -0
- package/docs/interfaces/FloorplanServerPosition.html +318 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +395 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +324 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +327 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +366 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +530 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +361 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +352 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +419 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +341 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +351 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +487 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +348 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +487 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +313 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +334 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +359 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +375 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +357 -0
- package/docs/interfaces/HelperOffset.html +336 -0
- package/docs/interfaces/ImagePlaneGroup.html +310 -0
- package/docs/interfaces/ItemLabelPluginData.html +307 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +392 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +328 -0
- package/docs/interfaces/MinMax.html +314 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +314 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +350 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +314 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +321 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +358 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +307 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +392 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +314 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +307 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +328 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +352 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +307 -0
- package/docs/interfaces/ModelViewPluginExportType.html +420 -0
- package/docs/interfaces/Object3DHelperState.html +321 -0
- package/docs/interfaces/ObjectHelperControllers.html +328 -0
- package/docs/interfaces/PaintBrushAction.html +367 -0
- package/docs/interfaces/PaintBrushConfigs.html +365 -0
- package/docs/interfaces/PaintBrushState.html +349 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +429 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +286 -0
- package/docs/interfaces/PanoMeasureParameterType.html +453 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +321 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +318 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +314 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +324 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +381 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +330 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +321 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +357 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +327 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +314 -0
- package/docs/interfaces/PanoRulerProPluginState.html +321 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +300 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +289 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +357 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +339 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +435 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +335 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +356 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +342 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +335 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +327 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +345 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +318 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +424 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +318 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +353 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +372 -0
- package/docs/interfaces/Point.html +321 -0
- package/docs/interfaces/Room.html +328 -0
- package/docs/interfaces/RoomInfo.html +314 -0
- package/docs/interfaces/RoomLabel.html +390 -0
- package/docs/interfaces/RoomRules.html +289 -0
- package/docs/interfaces/Rooms.html +289 -0
- package/docs/interfaces/Scissor.html +348 -0
- package/docs/interfaces/State.html +335 -0
- package/docs/interfaces/TagCacheInterface.html +366 -0
- package/docs/interfaces/TagConfig.html +569 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +310 -0
- package/docs/interfaces/TagIconUrl.html +367 -0
- package/docs/interfaces/TagObjectGroup.html +310 -0
- package/docs/interfaces/TagStyle.html +320 -0
- package/docs/interfaces/Tags.html +2824 -0
- package/docs/interfaces/TemporaryState.html +307 -0
- package/docs/interfaces/Util.MagnifierParameter.html +395 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +354 -0
- package/docs/interfaces/Util.PointIntersection.html +369 -0
- package/docs/modules/AreaMakerPluginType.html +329 -0
- package/docs/modules/CruisePluginTypes.html +332 -0
- package/docs/modules/CurrentPanoImagePluginType.html +301 -0
- package/docs/modules/GuideLineItem.html +293 -0
- package/docs/modules/GuideLineModeItem.html +298 -0
- package/docs/modules/GuideLinePluginType.html +354 -0
- package/docs/modules/PanoVideoPluginType.html +305 -0
- package/docs/modules/Util.html +355 -0
- package/docs/modules.html +562 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +336 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +324 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +306 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +306 -0
- package/docs/types/ArrayPosition.html +283 -0
- package/docs/types/AudioAppearance.html +283 -0
- package/docs/types/AudioTagTypeConfigKey.html +283 -0
- package/docs/types/CSS3DRenderExportType.html +283 -0
- package/docs/types/CSS3DRenderPluginExportType.html +283 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +283 -0
- package/docs/types/ClassFunctionParameters.html +290 -0
- package/docs/types/Color.html +283 -0
- package/docs/types/ContentTypeConfigKey.html +283 -0
- package/docs/types/ContentTypeConfigKeySplit.html +283 -0
- package/docs/types/ContentTypeMap.html +283 -0
- package/docs/types/Create3DDomContainerReturnType.html +283 -0
- package/docs/types/Create3DElementReturnType.html +283 -0
- package/docs/types/CruisePluginExportType.html +283 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +322 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +299 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +283 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +295 -0
- package/docs/types/DeprecatedTagProperty.html +298 -0
- package/docs/types/Direction-1.html +283 -0
- package/docs/types/Direction4.html +283 -0
- package/docs/types/ElementRenderer.html +307 -0
- package/docs/types/FloorplanRuleLabels.html +286 -0
- package/docs/types/FloorplanServerRuleLabels.html +283 -0
- package/docs/types/GuideLinePluginExportType.html +283 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +356 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +377 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +310 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +313 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +313 -0
- package/docs/types/GuideLinePluginType.PathItem.html +313 -0
- package/docs/types/GuideLinePluginType.PluginData.html +322 -0
- package/docs/types/HelperEventMap.html +521 -0
- package/docs/types/LoadTagConfig.html +283 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +283 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +283 -0
- package/docs/types/MediaData.html +304 -0
- package/docs/types/MediaStore.html +288 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +290 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +283 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +283 -0
- package/docs/types/ModelId.html +283 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +283 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +283 -0
- package/docs/types/MoveArgs.html +293 -0
- package/docs/types/MoveOpts.html +291 -0
- package/docs/types/Object3DHelperEventMap.html +376 -0
- package/docs/types/ObjectFit.html +283 -0
- package/docs/types/PaintBrushEventMap.html +314 -0
- package/docs/types/PanoCompassPluginData.html +283 -0
- package/docs/types/PanoCompassPluginExportType.html +283 -0
- package/docs/types/PanoCompassPluginParameterType.html +283 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +283 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +283 -0
- package/docs/types/PanoIndex.html +283 -0
- package/docs/types/PanoMeasurePluginEvent.html +283 -0
- package/docs/types/PanoMeasureReturnType.html +283 -0
- package/docs/types/PanoSpatialTagPluginId.html +283 -0
- package/docs/types/PanoTagPluginExportInterface.html +283 -0
- package/docs/types/PanoTagPluginParamsInterface.html +283 -0
- package/docs/types/PanoVideoPluginParameterType.html +283 -0
- package/docs/types/PanoVideoPluginReturnType.html +283 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +291 -0
- package/docs/types/PipelinePluginParameterType.html +283 -0
- package/docs/types/PipelinePluginReturnType.html +283 -0
- package/docs/types/PlaneTag.html +291 -0
- package/docs/types/Point2DTag.html +291 -0
- package/docs/types/Point3DTag.html +291 -0
- package/docs/types/PointTag.html +288 -0
- package/docs/types/PointTagInstance.html +288 -0
- package/docs/types/Position.html +283 -0
- package/docs/types/RotateArgs.html +295 -0
- package/docs/types/RotateOpts.html +291 -0
- package/docs/types/RuleLabelsKey.html +283 -0
- package/docs/types/RuleLabelsValue.html +283 -0
- package/docs/types/StickType.html +283 -0
- package/docs/types/Tag.html +349 -0
- package/docs/types/Tag2D.html +291 -0
- package/docs/types/Tag3D.html +291 -0
- package/docs/types/TagConfigByKey.html +288 -0
- package/docs/types/TagContentType.html +283 -0
- package/docs/types/TagContentTypeMapping.html +283 -0
- package/docs/types/TagDimensionType.html +285 -0
- package/docs/types/TagElement.html +293 -0
- package/docs/types/TagEvents.html +336 -0
- package/docs/types/TagGLTFObject.html +306 -0
- package/docs/types/TagHooks.html +283 -0
- package/docs/types/TagId.html +283 -0
- package/docs/types/TagInstance.html +361 -0
- package/docs/types/TagPointType.html +286 -0
- package/docs/types/TagRendererMap.html +290 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +283 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +283 -0
- package/docs/types/WorkCode.html +283 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +293 -0
- package/docs/variables/PLUGIN.html +283 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +286 -0
- package/docs/variables/ROOM_TYPE_MAP.html +293 -0
- package/docs/variables/defaultGlobalConfig.html +283 -0
- package/docs/variables/itemLabelPluginServerParams.html +290 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +290 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +290 -0
- package/libs/CruisePlugin/BaseController.d.ts +8 -0
- package/libs/CruisePlugin/BaseController.js +57 -52
- package/libs/CruisePlugin/Move.js +5 -2
- package/libs/CruisePlugin/Work.d.ts +1 -1
- package/libs/CruisePlugin/Work.js +178 -177
- package/libs/CruisePlugin/index.js +8 -6
- package/libs/GuideLinePlugin/Controller.d.ts +5 -1
- package/libs/GuideLinePlugin/Controller.js +44 -35
- package/libs/GuideLinePlugin/GuideLineItem.js +4 -2
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +61 -61
- package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -2
- package/libs/GuideLinePlugin/index.js +21 -19
- package/libs/PanoTagPlugin/controller/TagComputer.js +24 -22
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +94 -104
- package/libs/PanoTagPlugin/controller/index.js +7 -5
- package/libs/PanoTagPlugin/index.js +13 -11
- package/libs/base/BasePlugin.d.ts +1 -1
- package/libs/base/BasePlugin.js +2 -2
- package/libs/index.js +127 -125
- package/libs/shared-utils/Utils/BaseUtil.d.ts +5 -0
- package/libs/shared-utils/Utils/BaseUtil.js +12 -0
- package/libs/shared-utils/Utils/WorkUtil.d.ts +33 -0
- package/libs/shared-utils/Utils/WorkUtil.js +68 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var I = (h, l, t) => l in h ?
|
|
1
|
+
var b = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var F = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
|
+
var D = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var I = (h, l, t) => l in h ? b(h, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[l] = t, g = (h, l) => {
|
|
6
6
|
for (var t in l || (l = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
7
|
+
D.call(l, t) && I(h, t, l[t]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var t of w(l))
|
|
10
|
+
C.call(l, t) && I(h, t, l[t]);
|
|
11
11
|
return h;
|
|
12
|
-
}, x = (h, l) =>
|
|
12
|
+
}, x = (h, l) => E(h, F(l));
|
|
13
13
|
var k = (h, l, t) => (I(h, typeof l != "symbol" ? l + "" : l, t), t);
|
|
14
|
-
var y = (h, l, t) => new Promise((
|
|
15
|
-
var
|
|
14
|
+
var y = (h, l, t) => new Promise((e, r) => {
|
|
15
|
+
var i = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
m(t.next(n));
|
|
18
18
|
} catch (o) {
|
|
19
19
|
r(o);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
m(t.throw(n));
|
|
24
24
|
} catch (o) {
|
|
25
25
|
r(o);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, m = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(i, s);
|
|
28
|
+
m((t = t.apply(h, l)).next());
|
|
29
29
|
});
|
|
30
|
-
import { GuideLinePlugin as
|
|
30
|
+
import { GuideLinePlugin as K } from "../GuideLinePlugin/index.js";
|
|
31
31
|
import { uuid as S } from "../shared-utils/uuid.js";
|
|
32
|
-
import { coordinatesAngle as
|
|
33
|
-
import { safeCall as
|
|
32
|
+
import { coordinatesAngle as L } from "./utils/coordinatesAngle.js";
|
|
33
|
+
import { safeCall as T } from "./utils/safeCall.js";
|
|
34
34
|
import * as O from "three";
|
|
35
|
-
import { sleep as
|
|
36
|
-
import { waitFiveLoaded as
|
|
37
|
-
import { vectorToCoordinates as
|
|
38
|
-
import
|
|
35
|
+
import { sleep as U } from "./utils/sleep.js";
|
|
36
|
+
import { waitFiveLoaded as M } from "../shared-utils/five/fiveLoaded.js";
|
|
37
|
+
import { vectorToCoordinates as A } from "../shared-utils/vectorToCoordinate.js";
|
|
38
|
+
import G from "./BaseController.js";
|
|
39
39
|
import "../GuideLinePlugin/Controller.js";
|
|
40
40
|
import "../base/BasePluginWithData.js";
|
|
41
41
|
import "../base/BasePlugin.js";
|
|
@@ -113,6 +113,8 @@ import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
|
113
113
|
import "../shared-utils/typescript/entries.js";
|
|
114
114
|
import "../shared-utils/url/getUrl.js";
|
|
115
115
|
import "../shared-utils/five/transformPosition.js";
|
|
116
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
117
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
116
118
|
import "../shared-utils/five/getFloorIndex.js";
|
|
117
119
|
import "../shared-utils/safeObj.js";
|
|
118
120
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -202,10 +204,9 @@ import "./utils/getFiveStateOnCurve.js";
|
|
|
202
204
|
import "../shared-utils/formatRad.js";
|
|
203
205
|
import "./Work.js";
|
|
204
206
|
import "./utils/coordinatesToVector.js";
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
super(t, i);
|
|
207
|
+
class $i extends G {
|
|
208
|
+
constructor(t, e) {
|
|
209
|
+
super(t, e);
|
|
209
210
|
k(this, "state", {
|
|
210
211
|
visible: !0,
|
|
211
212
|
enabled: !0,
|
|
@@ -228,37 +229,37 @@ class er extends R {
|
|
|
228
229
|
broke: !1,
|
|
229
230
|
modeChanging: !1
|
|
230
231
|
});
|
|
231
|
-
this.config =
|
|
232
|
+
this.config = e, Object.assign(window, { __WalkPlugin_DEBUG__: this });
|
|
232
233
|
}
|
|
233
234
|
/**
|
|
234
235
|
* @description Load Data and State
|
|
235
236
|
*/
|
|
236
|
-
load(t,
|
|
237
|
+
load(t, e, r) {
|
|
237
238
|
return y(this, null, function* () {
|
|
238
|
-
var a,
|
|
239
|
+
var a, p;
|
|
239
240
|
if (this.state.disposed)
|
|
240
241
|
return this.disposedErrorLog();
|
|
241
242
|
this.clear();
|
|
242
|
-
const
|
|
243
|
-
this.data = g({ id:
|
|
244
|
-
let
|
|
245
|
-
const o = this.data.keyframes.filter((
|
|
246
|
-
o.filter((
|
|
247
|
-
var
|
|
248
|
-
return
|
|
249
|
-
}).map((
|
|
250
|
-
var
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
if (
|
|
254
|
-
const c =
|
|
255
|
-
|
|
243
|
+
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, s = yield this.formatData(t);
|
|
244
|
+
this.data = g({ id: s.keyframesId }, s), this.hooks.emit("dataChange", s, i);
|
|
245
|
+
let m = [], n;
|
|
246
|
+
const o = this.data.keyframes.filter((d) => d.data.panoIndex !== void 0);
|
|
247
|
+
o.filter((d, u) => {
|
|
248
|
+
var f;
|
|
249
|
+
return d.data.panoIndex !== ((f = o[u - 1]) == null ? void 0 : f.data.panoIndex);
|
|
250
|
+
}).map((d) => d.data.panoIndex).forEach((d) => {
|
|
251
|
+
var f, v;
|
|
252
|
+
const u = (f = this.workUtil.getObserver(d)) == null ? void 0 : f.floorIndex;
|
|
253
|
+
if (u !== void 0)
|
|
254
|
+
if (n === u) {
|
|
255
|
+
const c = m.length - 1;
|
|
256
|
+
m[c] = [...(v = m[c]) != null ? v : [], d];
|
|
256
257
|
} else {
|
|
257
|
-
|
|
258
|
-
const c =
|
|
259
|
-
|
|
258
|
+
n = u;
|
|
259
|
+
const c = m.length;
|
|
260
|
+
m[c] = [d];
|
|
260
261
|
}
|
|
261
|
-
}), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 &&
|
|
262
|
+
}), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 && s.useGuildLine !== !1 && (this.GuideLine = K(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: m.map((d) => ({ panoIndexList: d })), config: s.guildPluginOptions }), e ? this.setState(e, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug("WORKPLUGIN loaded", s), this.hooks.emit("dataLoaded", s);
|
|
262
263
|
});
|
|
263
264
|
}
|
|
264
265
|
/**
|
|
@@ -267,8 +268,8 @@ class er extends R {
|
|
|
267
268
|
* @param {string} options.id play from keyframes id
|
|
268
269
|
*/
|
|
269
270
|
playFrom(t) {
|
|
270
|
-
const { index:
|
|
271
|
-
this.state.playing && this.setState({ playing: !1 }, { userAction:
|
|
271
|
+
const { index: e, id: r, userAction: i } = t;
|
|
272
|
+
this.state.playing && this.setState({ playing: !1 }, { userAction: i }), this.setState({ playing: !0 }, { userAction: i, playFromIndex: e, playFromId: r });
|
|
272
273
|
}
|
|
273
274
|
/**
|
|
274
275
|
* @description Play from first keyframe
|
|
@@ -281,45 +282,45 @@ class er extends R {
|
|
|
281
282
|
*/
|
|
282
283
|
formatData(t) {
|
|
283
284
|
return y(this, null, function* () {
|
|
284
|
-
this.five.work || (yield
|
|
285
|
-
const
|
|
286
|
-
const
|
|
287
|
-
return typeof
|
|
285
|
+
this.five.work || (yield M(this.five));
|
|
286
|
+
const e = (() => {
|
|
287
|
+
const r = t;
|
|
288
|
+
return typeof r == "object" && r !== null && r.version && r.data ? r.data : r;
|
|
288
289
|
})();
|
|
289
|
-
if (
|
|
290
|
+
if (e.keyframes)
|
|
290
291
|
return {
|
|
291
292
|
keyframesId: S(),
|
|
292
|
-
keyframes:
|
|
293
|
-
var
|
|
294
|
-
const s =
|
|
295
|
-
return x(g({ id: (
|
|
293
|
+
keyframes: e.keyframes.map((r, i) => {
|
|
294
|
+
var n;
|
|
295
|
+
const s = e.keyframes[i + 1], m = (() => !s || s.start === void 0 || r.end === void 0 ? 0 : s.start - r.end)();
|
|
296
|
+
return x(g({ id: (n = r.uuid) != null ? n : S(), moveIndex: i, stay: m, index: i }, r), { guildPluginOptions: e.guildPluginOptions });
|
|
296
297
|
})
|
|
297
298
|
};
|
|
298
|
-
if (
|
|
299
|
-
let
|
|
300
|
-
const { moveEffect:
|
|
301
|
-
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration =
|
|
302
|
-
const
|
|
303
|
-
var
|
|
304
|
-
const p =
|
|
299
|
+
if (e.panoIndexList) {
|
|
300
|
+
let r = [];
|
|
301
|
+
const { moveEffect: i, moveToFirstPanoEffect: s, moveToFirstPanoDuration: m } = e;
|
|
302
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = m, e.panoIndexList.forEach((n, o) => {
|
|
303
|
+
const a = (() => {
|
|
304
|
+
var v, c;
|
|
305
|
+
const p = e.panoIndexList.slice(o).find((P) => P !== n);
|
|
305
306
|
if (p === void 0)
|
|
306
307
|
return;
|
|
307
|
-
const
|
|
308
|
-
if (!u || !
|
|
308
|
+
const d = this.workUtil.getObserverPosition(n), u = this.workUtil.getObserverPosition(p);
|
|
309
|
+
if (!u || !d || ((v = this.workUtil.getObserver(n)) == null ? void 0 : v.floorIndex) !== ((c = this.workUtil.getObserver(p)) == null ? void 0 : c.floorIndex))
|
|
309
310
|
return;
|
|
310
|
-
const
|
|
311
|
-
return
|
|
311
|
+
const f = new O.Vector3().subVectors(u, d);
|
|
312
|
+
return A(f.normalize());
|
|
312
313
|
})();
|
|
313
|
-
|
|
314
|
-
moveIndex:
|
|
315
|
-
stay:
|
|
316
|
-
data: g({ effect: "Move", panoIndex:
|
|
317
|
-
}) :
|
|
314
|
+
e.moveType === void 0 || e.moveType === "justMove" ? r.push({
|
|
315
|
+
moveIndex: o,
|
|
316
|
+
stay: e.stay,
|
|
317
|
+
data: g({ effect: "Move", panoIndex: n, moveEffect: i }, a != null ? a : {})
|
|
318
|
+
}) : e.moveType === "moveAndRotate" && (r.push({ moveIndex: o, stay: e.stay, data: { effect: "Move", panoIndex: n, moveEffect: i } }), a && r.push({ moveIndex: o, stay: e.stay, data: g({ effect: "Rotate", panoIndex: n }, a) }));
|
|
318
319
|
}), {
|
|
319
320
|
keyframesId: S(),
|
|
320
|
-
keyframes:
|
|
321
|
-
guildPluginOptions:
|
|
322
|
-
useGuildLine:
|
|
321
|
+
keyframes: r.map((n, o) => g({ id: S(), index: o }, n)),
|
|
322
|
+
guildPluginOptions: e.guildPluginOptions,
|
|
323
|
+
useGuildLine: e.useGuildLine
|
|
323
324
|
};
|
|
324
325
|
} else
|
|
325
326
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
@@ -333,26 +334,26 @@ class er extends R {
|
|
|
333
334
|
// eslint-disable-next-line complexity
|
|
334
335
|
handlePlay(t) {
|
|
335
336
|
return y(this, null, function* () {
|
|
336
|
-
var
|
|
337
|
-
const { data:
|
|
338
|
-
if (
|
|
337
|
+
var u;
|
|
338
|
+
const { data: e, state: r, privateState: i, hooks: s } = this;
|
|
339
|
+
if (i.playing || !(e != null && e.keyframes) || (e == null ? void 0 : e.keyframes.length) === 0)
|
|
339
340
|
return;
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
const
|
|
343
|
-
(t == null ? void 0 : t.notEmitEvent) !== !0 &&
|
|
341
|
+
const m = S();
|
|
342
|
+
i.playId = m, i.playing = !0, i.broke = !1;
|
|
343
|
+
const n = e.keyframes, o = this.getPauseData();
|
|
344
|
+
(t == null ? void 0 : t.notEmitEvent) !== !0 && s.emit("play", { userAction: (u = t == null ? void 0 : t.userAction) != null ? u : !0 });
|
|
344
345
|
let a = !1;
|
|
345
|
-
const
|
|
346
|
-
var
|
|
346
|
+
const d = yield (() => y(this, null, function* () {
|
|
347
|
+
var f, v;
|
|
347
348
|
if ((t == null ? void 0 : t.playFromIndex) !== void 0)
|
|
348
349
|
return t.playFromIndex;
|
|
349
350
|
if ((t == null ? void 0 : t.playFromId) !== void 0)
|
|
350
|
-
return (
|
|
351
|
+
return (f = this.data) == null ? void 0 : f.keyframes.findIndex((c) => c.id === t.playFromId);
|
|
351
352
|
if (o != null && o.id) {
|
|
352
353
|
const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id === o.id);
|
|
353
354
|
if (o != null && o.fiveState && (yield this.move(o.fiveState, {
|
|
354
|
-
moveEffect:
|
|
355
|
-
duration:
|
|
355
|
+
moveEffect: i.moveToFirstPanoEffect,
|
|
356
|
+
duration: i.moveToFirstPanoDuration
|
|
356
357
|
})), c) {
|
|
357
358
|
if (c.data.effect === "Move")
|
|
358
359
|
return c.index;
|
|
@@ -364,40 +365,40 @@ class er extends R {
|
|
|
364
365
|
}
|
|
365
366
|
}))();
|
|
366
367
|
this.clearPauseData();
|
|
367
|
-
for (const
|
|
368
|
-
if (
|
|
368
|
+
for (const f of n) {
|
|
369
|
+
if (i.broke || !r.playing || !i.playing || m !== i.playId)
|
|
369
370
|
return;
|
|
370
|
-
if (!(
|
|
371
|
+
if (!(d !== void 0 && f.index < d))
|
|
371
372
|
try {
|
|
372
|
-
|
|
373
|
-
moveEffect: a === !1 ?
|
|
374
|
-
duration: a === !1 && typeof
|
|
375
|
-
}),
|
|
373
|
+
s.emit("playIndexChange", f.index, f), yield this.playKeyframe(f, {
|
|
374
|
+
moveEffect: a === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
375
|
+
duration: a === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
|
|
376
|
+
}), f.stay && (yield U(f.stay)), a === !1 && (a = !0);
|
|
376
377
|
} catch (v) {
|
|
377
378
|
return console.error(v), Promise.resolve("broke");
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
|
-
r.playing &&
|
|
381
|
+
r.playing && m === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), s.emit("end"), this.clearPauseData());
|
|
381
382
|
});
|
|
382
383
|
}
|
|
383
384
|
/**
|
|
384
385
|
* @description: Pause and record pause state
|
|
385
386
|
*/
|
|
386
387
|
handlePause(t) {
|
|
387
|
-
var
|
|
388
|
-
const { state:
|
|
389
|
-
|
|
388
|
+
var s;
|
|
389
|
+
const { state: e, privateState: r, hooks: i } = this;
|
|
390
|
+
e.playing = !1, r.playing !== !1 && (r.playing = !1, (t == null ? void 0 : t.userAction) !== !1 && this.setPauseData(), r.broke || this.forceInteruptUpdateCamera(), (t == null ? void 0 : t.notEmitEvent) !== !0 && i.emit("pause", { userAction: (s = t == null ? void 0 : t.userAction) != null ? s : !0 }));
|
|
390
391
|
}
|
|
391
392
|
/**
|
|
392
393
|
* @description: Change play speed
|
|
393
394
|
*/
|
|
394
|
-
changeSpeed(t,
|
|
395
|
-
const { state: r, privateState:
|
|
396
|
-
if (
|
|
395
|
+
changeSpeed(t, e = !0) {
|
|
396
|
+
const { state: r, privateState: i, hooks: s } = this, { currentPlayKeyframe: m } = i;
|
|
397
|
+
if (s.emit("speedChange", t, { userAction: e }), r.playing && m)
|
|
397
398
|
try {
|
|
398
|
-
const
|
|
399
|
-
|
|
400
|
-
} catch (
|
|
399
|
+
const n = m.originDuration !== void 0 ? m.originDuration * (1 - this.getProgress()) : void 0, o = this.playKeyframe(m.keyframe, { duration: n });
|
|
400
|
+
i.currentPlayQueue.push(o);
|
|
401
|
+
} catch (n) {
|
|
401
402
|
}
|
|
402
403
|
}
|
|
403
404
|
/**
|
|
@@ -410,12 +411,12 @@ class er extends R {
|
|
|
410
411
|
* @description Set pause data
|
|
411
412
|
*/
|
|
412
413
|
setPauseData() {
|
|
413
|
-
var t,
|
|
414
|
-
if ((t = this.data) != null && t.
|
|
415
|
-
return
|
|
416
|
-
id: (
|
|
414
|
+
var t, e, r;
|
|
415
|
+
if ((t = this.data) != null && t.id)
|
|
416
|
+
return this.pauseDataMap.set(this.data.id, {
|
|
417
|
+
id: (e = this.privateState.currentPlayKeyframe) == null ? void 0 : e.keyframe.id,
|
|
417
418
|
fiveState: this.five.getCurrentState(),
|
|
418
|
-
duration: (
|
|
419
|
+
duration: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.originDuration,
|
|
419
420
|
playedProgress: this.getProgress()
|
|
420
421
|
});
|
|
421
422
|
}
|
|
@@ -428,42 +429,42 @@ class er extends R {
|
|
|
428
429
|
/**
|
|
429
430
|
* @description Play single keyframe
|
|
430
431
|
*/
|
|
431
|
-
playKeyframe(t,
|
|
432
|
+
playKeyframe(t, e) {
|
|
432
433
|
return y(this, null, function* () {
|
|
433
|
-
var
|
|
434
|
+
var i;
|
|
434
435
|
const { privateState: r } = this;
|
|
435
|
-
return ((
|
|
436
|
+
return ((i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.keyframe.id) !== t.id && (this.privateState.currentPlayKeyframe = { keyframe: t }), r.currentPlayQueue.push(this.getPlayPromise(t, e)), this.actionPromiseQueue();
|
|
436
437
|
});
|
|
437
438
|
}
|
|
438
439
|
/**
|
|
439
440
|
* @description: getPlayPromise
|
|
440
441
|
*/
|
|
441
442
|
getPlayPromise(r) {
|
|
442
|
-
return y(this, arguments, function* (t,
|
|
443
|
-
var
|
|
444
|
-
const
|
|
445
|
-
if (
|
|
446
|
-
return new Promise((
|
|
443
|
+
return y(this, arguments, function* (t, e = {}) {
|
|
444
|
+
var s;
|
|
445
|
+
const i = t.data;
|
|
446
|
+
if (e.duration = (s = e.duration) != null ? s : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!i)
|
|
447
|
+
return new Promise((m, n) => {
|
|
447
448
|
let o = !1;
|
|
448
449
|
this.addInterruptListener(() => {
|
|
449
450
|
if (!o)
|
|
450
|
-
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), o = !0,
|
|
451
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), o = !0, n(new Error("play is interupted"));
|
|
451
452
|
});
|
|
452
453
|
try {
|
|
453
454
|
if (o)
|
|
454
455
|
return;
|
|
455
456
|
const a = () => {
|
|
456
|
-
|
|
457
|
+
m(), o = !0;
|
|
457
458
|
};
|
|
458
|
-
switch (
|
|
459
|
+
switch (i.effect) {
|
|
459
460
|
case "Move":
|
|
460
|
-
this.move(
|
|
461
|
+
this.move(i, e).then(a);
|
|
461
462
|
break;
|
|
462
463
|
case "Rotate":
|
|
463
|
-
this.rotate(
|
|
464
|
+
this.rotate(i, e).then(a);
|
|
464
465
|
break;
|
|
465
466
|
default:
|
|
466
|
-
this.rotate(
|
|
467
|
+
this.rotate(i, e).then(a);
|
|
467
468
|
}
|
|
468
469
|
} catch (a) {
|
|
469
470
|
}
|
|
@@ -476,29 +477,29 @@ class er extends R {
|
|
|
476
477
|
actionPromiseQueue() {
|
|
477
478
|
return y(this, null, function* () {
|
|
478
479
|
const { privateState: t } = this;
|
|
479
|
-
return new Promise((
|
|
480
|
+
return new Promise((e, r) => {
|
|
480
481
|
if (t.currentPlayQueue.length === 0) {
|
|
481
|
-
|
|
482
|
+
e();
|
|
482
483
|
return;
|
|
483
484
|
}
|
|
484
|
-
const
|
|
485
|
-
if (!
|
|
486
|
-
|
|
485
|
+
const i = t.currentPlayQueue.shift();
|
|
486
|
+
if (!i) {
|
|
487
|
+
e();
|
|
487
488
|
return;
|
|
488
489
|
}
|
|
489
|
-
|
|
490
|
+
i.then(e, r);
|
|
490
491
|
}).then(() => t.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
|
|
491
492
|
});
|
|
492
493
|
}
|
|
493
494
|
/**
|
|
494
495
|
* @description Action move keyframe
|
|
495
496
|
*/
|
|
496
|
-
move(t,
|
|
497
|
+
move(t, e) {
|
|
497
498
|
return y(this, null, function* () {
|
|
498
499
|
if (t.mode && t.mode !== this.five.currentMode)
|
|
499
500
|
yield this.changeMode(t);
|
|
500
501
|
else if (t.panoIndex !== this.five.panoIndex)
|
|
501
|
-
yield this.changePano(t,
|
|
502
|
+
yield this.changePano(t, e);
|
|
502
503
|
else
|
|
503
504
|
return Promise.resolve();
|
|
504
505
|
});
|
|
@@ -506,92 +507,92 @@ class er extends R {
|
|
|
506
507
|
/**
|
|
507
508
|
* @description Action rotate keyframe
|
|
508
509
|
*/
|
|
509
|
-
rotate(t,
|
|
510
|
+
rotate(t, e) {
|
|
510
511
|
return y(this, null, function* () {
|
|
511
512
|
if (t.mode && t.mode !== this.five.currentMode)
|
|
512
513
|
yield this.changeMode({ mode: t.mode, panoIndex: t.panoIndex });
|
|
513
514
|
else if (t.panoIndex && t.panoIndex !== this.five.panoIndex)
|
|
514
|
-
return yield this.changePano(t,
|
|
515
|
-
yield this.updateCamera(t,
|
|
515
|
+
return yield this.changePano(t, e);
|
|
516
|
+
yield this.updateCamera(t, e);
|
|
516
517
|
});
|
|
517
518
|
}
|
|
518
519
|
/**
|
|
519
520
|
* @description Update five camera
|
|
520
521
|
*/
|
|
521
522
|
updateCamera(r) {
|
|
522
|
-
return y(this, arguments, function* (t,
|
|
523
|
-
const { five:
|
|
524
|
-
var
|
|
525
|
-
const
|
|
526
|
-
if ((
|
|
527
|
-
return
|
|
528
|
-
if (
|
|
529
|
-
return
|
|
523
|
+
return y(this, arguments, function* (t, e = {}) {
|
|
524
|
+
const { five: i, privateState: s, state: m } = this, n = (() => {
|
|
525
|
+
var u, f;
|
|
526
|
+
const p = (u = m.config) == null ? void 0 : u.speedConfig, d = (f = t.rotateSpeed) != null ? f : p == null ? void 0 : p.rotateSpeed;
|
|
527
|
+
if ((p == null ? void 0 : p.rotateSpeedUnit) === void 0)
|
|
528
|
+
return d;
|
|
529
|
+
if (d !== void 0)
|
|
530
|
+
return p.rotateSpeedUnit === "rad/ms" ? d : d / 1e3;
|
|
530
531
|
})(), o = (() => {
|
|
531
|
-
if (
|
|
532
|
-
return
|
|
533
|
-
if (
|
|
534
|
-
const
|
|
535
|
-
return
|
|
532
|
+
if (e.duration)
|
|
533
|
+
return e.duration;
|
|
534
|
+
if (n) {
|
|
535
|
+
const p = this.five.getCurrentState();
|
|
536
|
+
return L(p, t) / n;
|
|
536
537
|
}
|
|
537
538
|
return 800;
|
|
538
539
|
})();
|
|
539
|
-
|
|
540
|
+
s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = o);
|
|
540
541
|
const a = this.getSpeededDuration(o);
|
|
541
|
-
return new Promise((
|
|
542
|
-
|
|
542
|
+
return new Promise((p) => {
|
|
543
|
+
T(() => i.updateCamera(t, a)), setTimeout(() => p(), a);
|
|
543
544
|
});
|
|
544
545
|
});
|
|
545
546
|
}
|
|
546
547
|
/**
|
|
547
548
|
* @description: Change five pano
|
|
548
549
|
*/
|
|
549
|
-
changePano(t,
|
|
550
|
+
changePano(t, e) {
|
|
550
551
|
return y(this, null, function* () {
|
|
551
|
-
const { five: r, privateState:
|
|
552
|
+
const { five: r, privateState: i, state: s } = this;
|
|
552
553
|
if (typeof t.panoIndex != "number" || t.panoIndex === r.panoIndex)
|
|
553
554
|
return;
|
|
554
|
-
const
|
|
555
|
-
|
|
556
|
-
const
|
|
557
|
-
var
|
|
558
|
-
const a = (
|
|
555
|
+
const m = r.getCurrentState().mode !== "Panorama";
|
|
556
|
+
m && (this.privateState.modeChanging = !0);
|
|
557
|
+
const n = (() => {
|
|
558
|
+
var d, u;
|
|
559
|
+
const a = (d = s.config) == null ? void 0 : d.speedConfig, p = (u = t.moveSpeed) != null ? u : a == null ? void 0 : a.moveSpeed;
|
|
559
560
|
if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
|
|
560
|
-
return
|
|
561
|
-
if (
|
|
562
|
-
return a.moveSpeedUnit === "m/ms" ?
|
|
561
|
+
return p;
|
|
562
|
+
if (p !== void 0)
|
|
563
|
+
return a.moveSpeedUnit === "m/ms" ? p : p / 1e3;
|
|
563
564
|
})(), o = (() => {
|
|
564
|
-
if (
|
|
565
|
-
return
|
|
566
|
-
if (
|
|
567
|
-
const a =
|
|
568
|
-
return a.distanceTo(
|
|
565
|
+
if (e != null && e.duration)
|
|
566
|
+
return e.duration;
|
|
567
|
+
if (n && typeof r.panoIndex == "number" && typeof t.panoIndex == "number") {
|
|
568
|
+
const a = this.workUtil.getObserverPosition(r.panoIndex), p = this.workUtil.getObserverPosition(t.panoIndex);
|
|
569
|
+
return a && p ? a.distanceTo(p) / n : 800;
|
|
569
570
|
}
|
|
570
571
|
return 800;
|
|
571
572
|
})();
|
|
572
|
-
|
|
573
|
-
var
|
|
573
|
+
i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = o), yield new Promise((a) => {
|
|
574
|
+
var p, d, u;
|
|
574
575
|
r.moveToPano(t.panoIndex, {
|
|
575
576
|
latitude: t.latitude,
|
|
576
577
|
longitude: t.longitude,
|
|
577
578
|
fov: t.fov,
|
|
578
579
|
duration: this.getSpeededDuration(o),
|
|
579
|
-
effect: (
|
|
580
|
+
effect: (u = (d = e == null ? void 0 : e.moveEffect) != null ? d : (p = this.state.config) == null ? void 0 : p.moveEffect) != null ? u : t.moveEffect,
|
|
580
581
|
moveCancelCallback: () => a(),
|
|
581
582
|
moveEndCallback: () => a()
|
|
582
|
-
}),
|
|
583
|
-
}),
|
|
583
|
+
}), m && r.once("panoArrived", () => a());
|
|
584
|
+
}), m && (this.privateState.modeChanging = !1);
|
|
584
585
|
});
|
|
585
586
|
}
|
|
586
587
|
/**
|
|
587
588
|
* @description Change five mode
|
|
588
589
|
*/
|
|
589
|
-
changeMode(t,
|
|
590
|
+
changeMode(t, e) {
|
|
590
591
|
return y(this, null, function* () {
|
|
591
|
-
t.mode && t.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(t.mode, t,
|
|
592
|
+
t.mode && t.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(t.mode, t, e), this.privateState.modeChanging = !1);
|
|
592
593
|
});
|
|
593
594
|
}
|
|
594
595
|
}
|
|
595
596
|
export {
|
|
596
|
-
|
|
597
|
+
$i as default
|
|
597
598
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { typing as
|
|
1
|
+
import { typing as Tt } from "./typing/index.js";
|
|
2
2
|
import t from "./Work.js";
|
|
3
3
|
import i from "./Move.js";
|
|
4
4
|
import "../GuideLinePlugin/index.js";
|
|
@@ -80,6 +80,8 @@ import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
|
80
80
|
import "../shared-utils/typescript/entries.js";
|
|
81
81
|
import "../shared-utils/url/getUrl.js";
|
|
82
82
|
import "../shared-utils/five/transformPosition.js";
|
|
83
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
84
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
83
85
|
import "../shared-utils/five/getFloorIndex.js";
|
|
84
86
|
import "../shared-utils/safeObj.js";
|
|
85
87
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -174,13 +176,13 @@ import "../shared-utils/vectorToCoordinate.js";
|
|
|
174
176
|
import "../shared-utils/formatRad.js";
|
|
175
177
|
import "./BaseController.js";
|
|
176
178
|
import "./utils/getFiveStateOnCurve.js";
|
|
177
|
-
const
|
|
179
|
+
const yt = (o, r) => new t(o, r), Mt = (o, r) => new i(o, r);
|
|
178
180
|
export {
|
|
179
|
-
|
|
181
|
+
yt as CruisePlugin,
|
|
180
182
|
t as CruisePluginController,
|
|
181
|
-
|
|
183
|
+
Tt as CruisePluginTypes,
|
|
182
184
|
i as MoveController,
|
|
183
|
-
|
|
185
|
+
Mt as MovePlugin,
|
|
184
186
|
t as WalkController,
|
|
185
|
-
|
|
187
|
+
yt as default
|
|
186
188
|
};
|
|
@@ -4,11 +4,15 @@ import type { EventMap, PluginData, PluginServerData, PluginState } from './typi
|
|
|
4
4
|
import type * as PluginType from './typing';
|
|
5
5
|
import type { Config } from '../base/BasePlugin';
|
|
6
6
|
import { GuideLineItem } from './GuideLineItem';
|
|
7
|
-
import CruisePluginController from '../CruisePlugin/
|
|
7
|
+
import CruisePluginController from '../CruisePlugin/Work';
|
|
8
|
+
import { WorkUtil } from '../shared-utils/Utils/WorkUtil';
|
|
8
9
|
export declare const pluginFlag: (name: string) => string;
|
|
9
10
|
export default class Controller extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
10
11
|
readonly name = "GuideLinePlugin";
|
|
11
12
|
readonly cruisePlugin: CruisePluginController;
|
|
13
|
+
set workCode(workCode: string);
|
|
14
|
+
get workCode(): string;
|
|
15
|
+
workUtils: WorkUtil;
|
|
12
16
|
/** GuideLineItem 索引 */
|
|
13
17
|
readonly itemMap: Map<string | number, GuideLineItem>;
|
|
14
18
|
get config(): Config;
|