@realsee/dnalogel 3.10.3 → 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 +2 -0
- package/dist/CruisePlugin/Work.d.ts +1 -5
- package/dist/GuideLinePlugin/Controller.d.ts +4 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/index.cjs.js +49 -49
- package/dist/index.js +2666 -2605
- package/dist/index.umd.js +44 -44
- 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 +2 -0
- package/libs/CruisePlugin/BaseController.js +18 -14
- package/libs/CruisePlugin/Move.js +5 -2
- package/libs/CruisePlugin/Work.d.ts +1 -5
- package/libs/CruisePlugin/Work.js +129 -127
- package/libs/CruisePlugin/index.js +8 -6
- package/libs/GuideLinePlugin/Controller.d.ts +4 -0
- package/libs/GuideLinePlugin/Controller.js +39 -30
- 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 +10 -8
- 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 +123 -121
- 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
14
|
var y = (h, l, t) => new Promise((e, r) => {
|
|
15
|
-
var i = (
|
|
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,7 +204,7 @@ import "./utils/getFiveStateOnCurve.js";
|
|
|
202
204
|
import "../shared-utils/formatRad.js";
|
|
203
205
|
import "./Work.js";
|
|
204
206
|
import "./utils/coordinatesToVector.js";
|
|
205
|
-
class
|
|
207
|
+
class $i extends G {
|
|
206
208
|
constructor(t, e) {
|
|
207
209
|
super(t, e);
|
|
208
210
|
k(this, "state", {
|
|
@@ -234,30 +236,30 @@ class tr extends R {
|
|
|
234
236
|
*/
|
|
235
237
|
load(t, e, r) {
|
|
236
238
|
return y(this, null, function* () {
|
|
237
|
-
var a,
|
|
239
|
+
var a, p;
|
|
238
240
|
if (this.state.disposed)
|
|
239
241
|
return this.disposedErrorLog();
|
|
240
242
|
this.clear();
|
|
241
|
-
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0,
|
|
242
|
-
this.data = g({ id:
|
|
243
|
-
let
|
|
244
|
-
const o = this.data.keyframes.filter((
|
|
245
|
-
o.filter((
|
|
246
|
-
var
|
|
247
|
-
return
|
|
248
|
-
}).map((
|
|
249
|
-
var
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
252
|
-
if (
|
|
253
|
-
const c =
|
|
254
|
-
|
|
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];
|
|
255
257
|
} else {
|
|
256
|
-
|
|
257
|
-
const c =
|
|
258
|
-
|
|
258
|
+
n = u;
|
|
259
|
+
const c = m.length;
|
|
260
|
+
m[c] = [d];
|
|
259
261
|
}
|
|
260
|
-
}), !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);
|
|
261
263
|
});
|
|
262
264
|
}
|
|
263
265
|
/**
|
|
@@ -280,45 +282,45 @@ class tr extends R {
|
|
|
280
282
|
*/
|
|
281
283
|
formatData(t) {
|
|
282
284
|
return y(this, null, function* () {
|
|
283
|
-
this.five.work || (yield
|
|
284
|
-
const e =
|
|
285
|
-
const
|
|
286
|
-
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;
|
|
287
289
|
})();
|
|
288
|
-
if (
|
|
290
|
+
if (e.keyframes)
|
|
289
291
|
return {
|
|
290
292
|
keyframesId: S(),
|
|
291
|
-
keyframes:
|
|
292
|
-
var
|
|
293
|
-
const s =
|
|
294
|
-
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 });
|
|
295
297
|
})
|
|
296
298
|
};
|
|
297
|
-
if (
|
|
298
|
-
let
|
|
299
|
-
const { moveEffect:
|
|
300
|
-
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration =
|
|
301
|
-
const
|
|
302
|
-
var
|
|
303
|
-
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);
|
|
304
306
|
if (p === void 0)
|
|
305
307
|
return;
|
|
306
|
-
const
|
|
307
|
-
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))
|
|
308
310
|
return;
|
|
309
|
-
const
|
|
310
|
-
return
|
|
311
|
+
const f = new O.Vector3().subVectors(u, d);
|
|
312
|
+
return A(f.normalize());
|
|
311
313
|
})();
|
|
312
|
-
|
|
313
|
-
moveIndex:
|
|
314
|
-
stay:
|
|
315
|
-
data: g({ effect: "Move", panoIndex:
|
|
316
|
-
}) :
|
|
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) }));
|
|
317
319
|
}), {
|
|
318
320
|
keyframesId: S(),
|
|
319
|
-
keyframes:
|
|
320
|
-
guildPluginOptions:
|
|
321
|
-
useGuildLine:
|
|
321
|
+
keyframes: r.map((n, o) => g({ id: S(), index: o }, n)),
|
|
322
|
+
guildPluginOptions: e.guildPluginOptions,
|
|
323
|
+
useGuildLine: e.useGuildLine
|
|
322
324
|
};
|
|
323
325
|
} else
|
|
324
326
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
@@ -332,21 +334,21 @@ class tr extends R {
|
|
|
332
334
|
// eslint-disable-next-line complexity
|
|
333
335
|
handlePlay(t) {
|
|
334
336
|
return y(this, null, function* () {
|
|
335
|
-
var
|
|
336
|
-
const { data: e, state: r, privateState: i, hooks:
|
|
337
|
+
var u;
|
|
338
|
+
const { data: e, state: r, privateState: i, hooks: s } = this;
|
|
337
339
|
if (i.playing || !(e != null && e.keyframes) || (e == null ? void 0 : e.keyframes.length) === 0)
|
|
338
340
|
return;
|
|
339
|
-
const
|
|
340
|
-
i.playId =
|
|
341
|
-
const
|
|
342
|
-
(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 });
|
|
343
345
|
let a = !1;
|
|
344
|
-
const
|
|
345
|
-
var
|
|
346
|
+
const d = yield (() => y(this, null, function* () {
|
|
347
|
+
var f, v;
|
|
346
348
|
if ((t == null ? void 0 : t.playFromIndex) !== void 0)
|
|
347
349
|
return t.playFromIndex;
|
|
348
350
|
if ((t == null ? void 0 : t.playFromId) !== void 0)
|
|
349
|
-
return (
|
|
351
|
+
return (f = this.data) == null ? void 0 : f.keyframes.findIndex((c) => c.id === t.playFromId);
|
|
350
352
|
if (o != null && o.id) {
|
|
351
353
|
const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id === o.id);
|
|
352
354
|
if (o != null && o.fiveState && (yield this.move(o.fiveState, {
|
|
@@ -363,40 +365,40 @@ class tr extends R {
|
|
|
363
365
|
}
|
|
364
366
|
}))();
|
|
365
367
|
this.clearPauseData();
|
|
366
|
-
for (const
|
|
367
|
-
if (i.broke || !r.playing || !i.playing ||
|
|
368
|
+
for (const f of n) {
|
|
369
|
+
if (i.broke || !r.playing || !i.playing || m !== i.playId)
|
|
368
370
|
return;
|
|
369
|
-
if (!(
|
|
371
|
+
if (!(d !== void 0 && f.index < d))
|
|
370
372
|
try {
|
|
371
|
-
|
|
373
|
+
s.emit("playIndexChange", f.index, f), yield this.playKeyframe(f, {
|
|
372
374
|
moveEffect: a === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
373
375
|
duration: a === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
|
|
374
|
-
}),
|
|
376
|
+
}), f.stay && (yield U(f.stay)), a === !1 && (a = !0);
|
|
375
377
|
} catch (v) {
|
|
376
378
|
return console.error(v), Promise.resolve("broke");
|
|
377
379
|
}
|
|
378
380
|
}
|
|
379
|
-
r.playing &&
|
|
381
|
+
r.playing && m === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), s.emit("end"), this.clearPauseData());
|
|
380
382
|
});
|
|
381
383
|
}
|
|
382
384
|
/**
|
|
383
385
|
* @description: Pause and record pause state
|
|
384
386
|
*/
|
|
385
387
|
handlePause(t) {
|
|
386
|
-
var
|
|
388
|
+
var s;
|
|
387
389
|
const { state: e, privateState: r, hooks: i } = this;
|
|
388
|
-
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: (
|
|
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 }));
|
|
389
391
|
}
|
|
390
392
|
/**
|
|
391
393
|
* @description: Change play speed
|
|
392
394
|
*/
|
|
393
395
|
changeSpeed(t, e = !0) {
|
|
394
|
-
const { state: r, privateState: i, hooks:
|
|
395
|
-
if (
|
|
396
|
+
const { state: r, privateState: i, hooks: s } = this, { currentPlayKeyframe: m } = i;
|
|
397
|
+
if (s.emit("speedChange", t, { userAction: e }), r.playing && m)
|
|
396
398
|
try {
|
|
397
|
-
const
|
|
399
|
+
const n = m.originDuration !== void 0 ? m.originDuration * (1 - this.getProgress()) : void 0, o = this.playKeyframe(m.keyframe, { duration: n });
|
|
398
400
|
i.currentPlayQueue.push(o);
|
|
399
|
-
} catch (
|
|
401
|
+
} catch (n) {
|
|
400
402
|
}
|
|
401
403
|
}
|
|
402
404
|
/**
|
|
@@ -439,20 +441,20 @@ class tr extends R {
|
|
|
439
441
|
*/
|
|
440
442
|
getPlayPromise(r) {
|
|
441
443
|
return y(this, arguments, function* (t, e = {}) {
|
|
442
|
-
var
|
|
444
|
+
var s;
|
|
443
445
|
const i = t.data;
|
|
444
|
-
if (e.duration = (
|
|
445
|
-
return new Promise((
|
|
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) => {
|
|
446
448
|
let o = !1;
|
|
447
449
|
this.addInterruptListener(() => {
|
|
448
450
|
if (!o)
|
|
449
|
-
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"));
|
|
450
452
|
});
|
|
451
453
|
try {
|
|
452
454
|
if (o)
|
|
453
455
|
return;
|
|
454
456
|
const a = () => {
|
|
455
|
-
|
|
457
|
+
m(), o = !0;
|
|
456
458
|
};
|
|
457
459
|
switch (i.effect) {
|
|
458
460
|
case "Move":
|
|
@@ -519,26 +521,26 @@ class tr extends R {
|
|
|
519
521
|
*/
|
|
520
522
|
updateCamera(r) {
|
|
521
523
|
return y(this, arguments, function* (t, e = {}) {
|
|
522
|
-
const { five: i, privateState:
|
|
523
|
-
var
|
|
524
|
-
const
|
|
525
|
-
if ((
|
|
526
|
-
return
|
|
527
|
-
if (
|
|
528
|
-
return
|
|
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;
|
|
529
531
|
})(), o = (() => {
|
|
530
532
|
if (e.duration)
|
|
531
533
|
return e.duration;
|
|
532
|
-
if (
|
|
533
|
-
const
|
|
534
|
-
return
|
|
534
|
+
if (n) {
|
|
535
|
+
const p = this.five.getCurrentState();
|
|
536
|
+
return L(p, t) / n;
|
|
535
537
|
}
|
|
536
538
|
return 800;
|
|
537
539
|
})();
|
|
538
|
-
|
|
540
|
+
s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = o);
|
|
539
541
|
const a = this.getSpeededDuration(o);
|
|
540
|
-
return new Promise((
|
|
541
|
-
|
|
542
|
+
return new Promise((p) => {
|
|
543
|
+
T(() => i.updateCamera(t, a)), setTimeout(() => p(), a);
|
|
542
544
|
});
|
|
543
545
|
});
|
|
544
546
|
}
|
|
@@ -547,39 +549,39 @@ class tr extends R {
|
|
|
547
549
|
*/
|
|
548
550
|
changePano(t, e) {
|
|
549
551
|
return y(this, null, function* () {
|
|
550
|
-
const { five: r, privateState: i, state:
|
|
552
|
+
const { five: r, privateState: i, state: s } = this;
|
|
551
553
|
if (typeof t.panoIndex != "number" || t.panoIndex === r.panoIndex)
|
|
552
554
|
return;
|
|
553
|
-
const
|
|
554
|
-
|
|
555
|
-
const
|
|
556
|
-
var
|
|
557
|
-
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;
|
|
558
560
|
if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
|
|
559
|
-
return
|
|
560
|
-
if (
|
|
561
|
-
return a.moveSpeedUnit === "m/ms" ?
|
|
561
|
+
return p;
|
|
562
|
+
if (p !== void 0)
|
|
563
|
+
return a.moveSpeedUnit === "m/ms" ? p : p / 1e3;
|
|
562
564
|
})(), o = (() => {
|
|
563
565
|
if (e != null && e.duration)
|
|
564
566
|
return e.duration;
|
|
565
|
-
if (
|
|
566
|
-
const a =
|
|
567
|
-
return a.distanceTo(
|
|
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;
|
|
568
570
|
}
|
|
569
571
|
return 800;
|
|
570
572
|
})();
|
|
571
573
|
i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = o), yield new Promise((a) => {
|
|
572
|
-
var
|
|
574
|
+
var p, d, u;
|
|
573
575
|
r.moveToPano(t.panoIndex, {
|
|
574
576
|
latitude: t.latitude,
|
|
575
577
|
longitude: t.longitude,
|
|
576
578
|
fov: t.fov,
|
|
577
579
|
duration: this.getSpeededDuration(o),
|
|
578
|
-
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,
|
|
579
581
|
moveCancelCallback: () => a(),
|
|
580
582
|
moveEndCallback: () => a()
|
|
581
|
-
}),
|
|
582
|
-
}),
|
|
583
|
+
}), m && r.once("panoArrived", () => a());
|
|
584
|
+
}), m && (this.privateState.modeChanging = !1);
|
|
583
585
|
});
|
|
584
586
|
}
|
|
585
587
|
/**
|
|
@@ -592,5 +594,5 @@ class tr extends R {
|
|
|
592
594
|
}
|
|
593
595
|
}
|
|
594
596
|
export {
|
|
595
|
-
|
|
597
|
+
$i as default
|
|
596
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
|
};
|
|
@@ -5,10 +5,14 @@ import type * as PluginType from './typing';
|
|
|
5
5
|
import type { Config } from '../base/BasePlugin';
|
|
6
6
|
import { GuideLineItem } from './GuideLineItem';
|
|
7
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;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var c = (s, o, t) => o in s ?
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var _ = Object.getOwnPropertySymbols;
|
|
3
|
+
var V = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var c = (s, o, t) => o in s ? S(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, f = (s, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
6
|
+
V.call(o, t) && c(s, t, o[t]);
|
|
7
|
+
if (_)
|
|
8
|
+
for (var t of _(o))
|
|
9
|
+
M.call(o, t) && c(s, t, o[t]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
12
|
var h = (s, o, t) => (c(s, typeof o != "symbol" ? o + "" : o, t), t);
|
|
@@ -26,13 +26,14 @@ var u = (s, o, t) => new Promise((i, a) => {
|
|
|
26
26
|
}, r = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(m, e);
|
|
27
27
|
r((t = t.apply(s, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
30
|
-
import { equal as
|
|
31
|
-
import { GuideLineItem as
|
|
32
|
-
import
|
|
33
|
-
import { objectAssignDeepExports as
|
|
34
|
-
import * as
|
|
35
|
-
import { waitFiveLoaded as
|
|
29
|
+
import { Controller as O } from "../base/BasePluginWithData.js";
|
|
30
|
+
import { equal as U } from "../shared-utils/equal.js";
|
|
31
|
+
import { GuideLineItem as x } from "./GuideLineItem/index.js";
|
|
32
|
+
import N from "../CruisePlugin/Work.js";
|
|
33
|
+
import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
|
+
import * as T from "three";
|
|
35
|
+
import { waitFiveLoaded as W } from "../shared-utils/five/fiveLoaded.js";
|
|
36
|
+
import { WorkUtil as $ } from "../shared-utils/Utils/WorkUtil.js";
|
|
36
37
|
import "../base/BasePlugin.js";
|
|
37
38
|
import "../shared-utils/Subscribe.js";
|
|
38
39
|
import "hammerjs";
|
|
@@ -192,6 +193,7 @@ import "../shared-utils/five/changeMode.js";
|
|
|
192
193
|
import "../shared-utils/nearlyEqual.js";
|
|
193
194
|
import "../CruisePlugin/Move.js";
|
|
194
195
|
import "../CruisePlugin/BaseController.js";
|
|
196
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
195
197
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
196
198
|
import "../shared-utils/vectorToCoordinate.js";
|
|
197
199
|
import "../shared-utils/formatRad.js";
|
|
@@ -201,12 +203,13 @@ import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
|
201
203
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
202
204
|
import "../CruisePlugin/utils/safeCall.js";
|
|
203
205
|
import "../CruisePlugin/utils/sleep.js";
|
|
204
|
-
const b = "GuideLinePlugin", g = `${b}`,
|
|
205
|
-
class
|
|
206
|
+
const b = "GuideLinePlugin", g = `${b}`, ie = (s) => `${g}--${s}`;
|
|
207
|
+
class re extends O {
|
|
206
208
|
constructor(t, i) {
|
|
207
209
|
super(t, i);
|
|
208
210
|
h(this, "name", b);
|
|
209
211
|
h(this, "cruisePlugin");
|
|
212
|
+
h(this, "workUtils", new $(this.five));
|
|
210
213
|
/** GuideLineItem 索引 */
|
|
211
214
|
h(this, "itemMap", /* @__PURE__ */ new Map());
|
|
212
215
|
h(this, "state", {
|
|
@@ -221,7 +224,13 @@ class Zr extends k {
|
|
|
221
224
|
h(this, "disposedErrorLog", () => {
|
|
222
225
|
console.error(`${g} is disposed`);
|
|
223
226
|
});
|
|
224
|
-
this._config = i != null ? i : {}, this.cruisePlugin = new
|
|
227
|
+
this._config = i != null ? i : {}, this.cruisePlugin = new N(t), Object.assign(window, { [`__${b}_DEBUG__`]: this });
|
|
228
|
+
}
|
|
229
|
+
set workCode(t) {
|
|
230
|
+
this.workUtils.workCode = t;
|
|
231
|
+
}
|
|
232
|
+
get workCode() {
|
|
233
|
+
return this.workUtils.workCode;
|
|
225
234
|
}
|
|
226
235
|
get config() {
|
|
227
236
|
return this._config;
|
|
@@ -231,7 +240,7 @@ class Zr extends k {
|
|
|
231
240
|
}
|
|
232
241
|
load(t, i, a = !0) {
|
|
233
242
|
return u(this, null, function* () {
|
|
234
|
-
var v,
|
|
243
|
+
var v, w, I, E, y, D, k;
|
|
235
244
|
if (this.disposed)
|
|
236
245
|
return;
|
|
237
246
|
const m = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
|
|
@@ -240,14 +249,14 @@ class Zr extends k {
|
|
|
240
249
|
panorama_style: {
|
|
241
250
|
visible: !!(!e.lines && e.routes),
|
|
242
251
|
unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
|
|
243
|
-
width: (
|
|
244
|
-
texture: { url: (
|
|
252
|
+
width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
|
|
253
|
+
texture: { url: (I = r == null ? void 0 : r.arrowTextureUrl) != null ? I : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
|
|
245
254
|
}
|
|
246
255
|
}, d = (y = (E = e.routes) == null ? void 0 : E.map((l) => {
|
|
247
|
-
var
|
|
248
|
-
return
|
|
249
|
-
})) != null ? y : [],
|
|
250
|
-
yield
|
|
256
|
+
var L;
|
|
257
|
+
return C({}, n, { id: (L = l.id) != null ? L : Date.now(), pano_group: l.panoIndexList });
|
|
258
|
+
})) != null ? y : [], A = (k = (D = e.lines) == null ? void 0 : D.map((l) => C({}, n, l))) != null ? k : [], G = [...d, ...A];
|
|
259
|
+
yield W(this.five), this.clear(), G.forEach((l) => {
|
|
251
260
|
this.addGuideLineItem(l);
|
|
252
261
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: a }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
|
|
253
262
|
});
|
|
@@ -286,13 +295,13 @@ class Zr extends k {
|
|
|
286
295
|
if (this.disposed)
|
|
287
296
|
return this.disposedErrorLog();
|
|
288
297
|
const a = f({}, this.state);
|
|
289
|
-
this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction),
|
|
298
|
+
this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), U(a, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: a, userAction: (m = i == null ? void 0 : i.userAction) != null ? m : !0 }), this.five.needsRender = !0);
|
|
290
299
|
}
|
|
291
300
|
/** 添加一个 GuideLineItem */
|
|
292
301
|
addGuideLineItem(t) {
|
|
293
302
|
const i = t.render_id || t.id, a = this.itemMap.get(i);
|
|
294
303
|
a && this.removeGuideLineItem(a);
|
|
295
|
-
const m = new
|
|
304
|
+
const m = new x({ five: this.five, id: i, plugin: this });
|
|
296
305
|
return this.itemMap.set(i, m), t && m.setData(t), this.heightOffset += 1e-4, m.modelItem.setHeightOffset(this.heightOffset), m.panoramaItem.setHeightOffset(this.heightOffset), m;
|
|
297
306
|
}
|
|
298
307
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
@@ -310,7 +319,7 @@ class Zr extends k {
|
|
|
310
319
|
return Array.isArray(e) && e.every((r) => typeof r == "number");
|
|
311
320
|
}
|
|
312
321
|
function a(e, r) {
|
|
313
|
-
return new
|
|
322
|
+
return new T.Vector3().fromArray(e).distanceTo(new T.Vector3().fromArray(r)) < 0.01;
|
|
314
323
|
}
|
|
315
324
|
function m(e) {
|
|
316
325
|
var p;
|
|
@@ -344,6 +353,6 @@ class Zr extends k {
|
|
|
344
353
|
}
|
|
345
354
|
}
|
|
346
355
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
356
|
+
re as default,
|
|
357
|
+
ie as pluginFlag
|
|
349
358
|
};
|
|
@@ -5,7 +5,7 @@ import "@realsee/five";
|
|
|
5
5
|
import "../shared-utils/five/changeMode.js";
|
|
6
6
|
import "../CruisePlugin/Move.js";
|
|
7
7
|
import "../CruisePlugin/Work.js";
|
|
8
|
-
import { GuideLineItem as
|
|
8
|
+
import { GuideLineItem as co } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -76,6 +76,8 @@ import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
|
76
76
|
import "../shared-utils/typescript/entries.js";
|
|
77
77
|
import "../shared-utils/url/getUrl.js";
|
|
78
78
|
import "../shared-utils/five/transformPosition.js";
|
|
79
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
80
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
79
81
|
import "../shared-utils/five/getFloorIndex.js";
|
|
80
82
|
import "../shared-utils/safeObj.js";
|
|
81
83
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -174,5 +176,5 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
174
176
|
import "../CruisePlugin/utils/safeCall.js";
|
|
175
177
|
import "../CruisePlugin/utils/sleep.js";
|
|
176
178
|
export {
|
|
177
|
-
|
|
179
|
+
co as GuideLineItem
|
|
178
180
|
};
|