@realsee/dnalogel 3.11.0-dev.0 → 3.11.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/AreaMakerPlugin/typing.d.ts +8 -0
- package/dist/AreaMakerPlugin/utils/Item.d.ts +1 -1
- package/dist/CruisePlugin/BaseController.d.ts +0 -2
- package/dist/CruisePlugin/Work.d.ts +5 -1
- package/dist/GuideLinePlugin/Controller.d.ts +0 -4
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +3 -2
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/index.cjs.js +49 -49
- package/dist/index.js +2610 -2669
- package/dist/index.umd.js +44 -44
- package/libs/AreaMakerPlugin/typing.d.ts +8 -0
- package/libs/AreaMakerPlugin/utils/Item.d.ts +1 -1
- package/libs/AreaMakerPlugin/utils/Item.js +12 -10
- package/libs/CruisePlugin/BaseController.d.ts +0 -2
- package/libs/CruisePlugin/BaseController.js +14 -18
- package/libs/CruisePlugin/Move.js +2 -5
- package/libs/CruisePlugin/Work.d.ts +5 -1
- package/libs/CruisePlugin/Work.js +127 -129
- package/libs/CruisePlugin/index.js +6 -8
- package/libs/GuideLinePlugin/Controller.d.ts +0 -4
- package/libs/GuideLinePlugin/Controller.js +30 -39
- package/libs/GuideLinePlugin/GuideLineItem.js +2 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +61 -61
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -4
- package/libs/GuideLinePlugin/index.js +8 -10
- package/libs/PanoTagPlugin/controller/TagComputer.js +22 -24
- package/libs/PanoTagPlugin/controller/TagRender.js +2 -4
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +104 -94
- package/libs/PanoTagPlugin/controller/index.js +5 -7
- package/libs/PanoTagPlugin/index.js +11 -13
- package/libs/base/BasePlugin.d.ts +1 -1
- package/libs/base/BasePlugin.js +2 -2
- package/libs/index.js +121 -123
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/shared-utils/Utils/BaseUtil.d.ts +0 -5
- package/dist/shared-utils/Utils/WorkUtil.d.ts +0 -33
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -120
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -730
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -693
- package/docs/classes/CSS3DRender.html +0 -777
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -480
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -860
- package/docs/classes/Magnifier.html +0 -484
- package/docs/classes/ModelRoomLabelController.html +0 -402
- package/docs/classes/MoveController.html +0 -653
- package/docs/classes/Object3DHelperController.html +0 -644
- package/docs/classes/PaintBrush.html +0 -506
- package/docs/classes/PanoMeasurePluginLine.html +0 -526
- package/docs/classes/PanoMeasurePluginModel.html +0 -575
- package/docs/classes/PanoMeasurePluginPoint.html +0 -366
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -571
- package/docs/classes/PanoTagPluginController.html +0 -1131
- package/docs/classes/Util.BetterTween.html +0 -420
- package/docs/classes/Util.Interval.html +0 -436
- package/docs/classes/Util.LineSegments.html +0 -388
- package/docs/classes/Util.Magnifier.html +0 -507
- package/docs/classes/Util.Object3D.html +0 -410
- package/docs/classes/Util.PointDomHelper.html +0 -411
- package/docs/classes/Util.PointHelper.html +0 -402
- package/docs/classes/Util.PointSelectorHelper.html +0 -458
- package/docs/classes/Util.Rectangle.html +0 -459
- package/docs/classes/WalkController.html +0 -672
- package/docs/enums/CameraMovementEffect.html +0 -314
- package/docs/enums/ContentType.html +0 -460
- package/docs/enums/DIRECTION.html +0 -324
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -324
- package/docs/enums/DimensionType.html +0 -314
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -317
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -324
- package/docs/enums/PaintBrushTypeEnum.html +0 -317
- package/docs/enums/PointType.html +0 -314
- package/docs/enums/Rotation.html +0 -321
- package/docs/functions/AreaMakerPlugin.html +0 -294
- package/docs/functions/CSS3DRenderPlugin.html +0 -292
- package/docs/functions/CameraMovementPlugin.html +0 -297
- package/docs/functions/CruisePlugin.html +0 -294
- package/docs/functions/CurrentPanoImagePlugin.html +0 -294
- package/docs/functions/GuideLinePlugin.html +0 -294
- package/docs/functions/ItemLabelPlugin.html +0 -294
- package/docs/functions/MapviewFloorplanPlugin.html +0 -294
- package/docs/functions/ModelChassisCompassPlugin.html +0 -297
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -297
- package/docs/functions/ModelFloorplanPlugin.html +0 -294
- package/docs/functions/ModelItemLabelPlugin.html +0 -294
- package/docs/functions/ModelRoomLabelPlugin.html +0 -292
- package/docs/functions/ModelTVVideoPlugin.html +0 -294
- package/docs/functions/ModelViewPlugin.html +0 -297
- package/docs/functions/MovePlugin.html +0 -294
- package/docs/functions/Object3DHelperPlugin.html +0 -292
- package/docs/functions/PanoCompassPlugin.html +0 -294
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -298
- package/docs/functions/PanoDoorLabelPlugin.html +0 -294
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -294
- package/docs/functions/PanoMeasurePlugin.html +0 -294
- package/docs/functions/PanoRulerPlugin.html +0 -297
- package/docs/functions/PanoRulerProPlugin.html +0 -297
- package/docs/functions/PanoSpatialTagPlugin.html +0 -297
- package/docs/functions/PanoTagPlugin.html +0 -299
- package/docs/functions/PanoVideoPlugin.html +0 -303
- package/docs/functions/PipelinePlugin.html +0 -292
- package/docs/functions/TopviewFloorplanPlugin.html +0 -294
- package/docs/functions/Util.absoluteUrl.html +0 -330
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -333
- package/docs/functions/Util.equal.html +0 -342
- package/docs/functions/Util.getCoordsFromClient.html +0 -332
- package/docs/functions/Util.getCoordsFromElement.html +0 -332
- package/docs/functions/Util.getFrameTime.html +0 -324
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -332
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -332
- package/docs/functions/Util.isAbsoluteURL.html +0 -325
- package/docs/functions/Util.isModelLike.html +0 -325
- package/docs/functions/Util.isNil.html +0 -333
- package/docs/functions/Util.isPanoramaLike.html +0 -325
- package/docs/functions/Util.nextFrame.html +0 -338
- package/docs/functions/Util.notNil.html +0 -333
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -354
- package/docs/functions/Util.tweenProgress.html +0 -327
- package/docs/functions/Util.uuid.html +0 -323
- package/docs/functions/pluginFlag.html +0 -292
- package/docs/index.html +0 -358
- package/docs/interfaces/AddTagConfig.html +0 -307
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -339
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -625
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -338
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -396
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -381
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -338
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -331
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -330
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -359
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -453
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -329
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -362
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -363
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -365
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -723
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -389
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -425
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -415
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -355
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -323
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -391
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -386
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -525
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -327
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -319
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -341
- package/docs/interfaces/EventMap.html +0 -546
- package/docs/interfaces/FloorplanBounding.html +0 -336
- package/docs/interfaces/FloorplanData.html +0 -339
- package/docs/interfaces/FloorplanEntrance.html +0 -364
- package/docs/interfaces/FloorplanExtraObject.html +0 -354
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -343
- package/docs/interfaces/FloorplanFloorData.html +0 -332
- package/docs/interfaces/FloorplanImagePosition.html +0 -318
- package/docs/interfaces/FloorplanObserver.html +0 -336
- package/docs/interfaces/FloorplanOutlineItem.html +0 -332
- package/docs/interfaces/FloorplanPosition.html +0 -318
- package/docs/interfaces/FloorplanRoomItem.html +0 -383
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -324
- package/docs/interfaces/FloorplanServerBounding.html +0 -336
- package/docs/interfaces/FloorplanServerComputedData.html +0 -335
- package/docs/interfaces/FloorplanServerData.html +0 -318
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -335
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -321
- package/docs/interfaces/FloorplanServerEntrance.html +0 -364
- package/docs/interfaces/FloorplanServerFloorData.html +0 -332
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -318
- package/docs/interfaces/FloorplanServerObserver.html +0 -336
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -332
- package/docs/interfaces/FloorplanServerPosition.html +0 -318
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -395
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -324
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -327
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -366
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -530
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -361
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -352
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -419
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -341
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -351
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -487
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -348
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -487
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -313
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -334
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -359
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -375
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -357
- package/docs/interfaces/HelperOffset.html +0 -336
- package/docs/interfaces/ImagePlaneGroup.html +0 -310
- package/docs/interfaces/ItemLabelPluginData.html +0 -307
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -392
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -328
- package/docs/interfaces/MinMax.html +0 -314
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -314
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -350
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -314
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -321
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -358
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -307
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -392
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -314
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -307
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -328
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -352
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -307
- package/docs/interfaces/ModelViewPluginExportType.html +0 -420
- package/docs/interfaces/Object3DHelperState.html +0 -321
- package/docs/interfaces/ObjectHelperControllers.html +0 -328
- package/docs/interfaces/PaintBrushAction.html +0 -367
- package/docs/interfaces/PaintBrushConfigs.html +0 -365
- package/docs/interfaces/PaintBrushState.html +0 -349
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -429
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -286
- package/docs/interfaces/PanoMeasureParameterType.html +0 -453
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -321
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -318
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -314
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -324
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -381
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -330
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -321
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -357
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -327
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -314
- package/docs/interfaces/PanoRulerProPluginState.html +0 -321
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -300
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -289
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -357
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -339
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -435
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -335
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -356
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -342
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -335
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -327
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -345
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -318
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -424
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -318
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -353
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -372
- package/docs/interfaces/Point.html +0 -321
- package/docs/interfaces/Room.html +0 -328
- package/docs/interfaces/RoomInfo.html +0 -314
- package/docs/interfaces/RoomLabel.html +0 -390
- package/docs/interfaces/RoomRules.html +0 -289
- package/docs/interfaces/Rooms.html +0 -289
- package/docs/interfaces/Scissor.html +0 -348
- package/docs/interfaces/State.html +0 -335
- package/docs/interfaces/TagCacheInterface.html +0 -366
- package/docs/interfaces/TagConfig.html +0 -569
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -310
- package/docs/interfaces/TagIconUrl.html +0 -367
- package/docs/interfaces/TagObjectGroup.html +0 -310
- package/docs/interfaces/TagStyle.html +0 -320
- package/docs/interfaces/Tags.html +0 -2824
- package/docs/interfaces/TemporaryState.html +0 -307
- package/docs/interfaces/Util.MagnifierParameter.html +0 -395
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -354
- package/docs/interfaces/Util.PointIntersection.html +0 -369
- package/docs/modules/AreaMakerPluginType.html +0 -329
- package/docs/modules/CruisePluginTypes.html +0 -332
- package/docs/modules/CurrentPanoImagePluginType.html +0 -301
- package/docs/modules/GuideLineItem.html +0 -293
- package/docs/modules/GuideLineModeItem.html +0 -298
- package/docs/modules/GuideLinePluginType.html +0 -354
- package/docs/modules/PanoVideoPluginType.html +0 -305
- package/docs/modules/Util.html +0 -355
- package/docs/modules.html +0 -562
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -336
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -324
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -306
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -306
- package/docs/types/ArrayPosition.html +0 -283
- package/docs/types/AudioAppearance.html +0 -283
- package/docs/types/AudioTagTypeConfigKey.html +0 -283
- package/docs/types/CSS3DRenderExportType.html +0 -283
- package/docs/types/CSS3DRenderPluginExportType.html +0 -283
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -283
- package/docs/types/ClassFunctionParameters.html +0 -290
- package/docs/types/Color.html +0 -283
- package/docs/types/ContentTypeConfigKey.html +0 -283
- package/docs/types/ContentTypeConfigKeySplit.html +0 -283
- package/docs/types/ContentTypeMap.html +0 -283
- package/docs/types/Create3DDomContainerReturnType.html +0 -283
- package/docs/types/Create3DElementReturnType.html +0 -283
- package/docs/types/CruisePluginExportType.html +0 -283
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -322
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -299
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -283
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -295
- package/docs/types/DeprecatedTagProperty.html +0 -298
- package/docs/types/Direction-1.html +0 -283
- package/docs/types/Direction4.html +0 -283
- package/docs/types/ElementRenderer.html +0 -307
- package/docs/types/FloorplanRuleLabels.html +0 -286
- package/docs/types/FloorplanServerRuleLabels.html +0 -283
- package/docs/types/GuideLinePluginExportType.html +0 -283
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -356
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -377
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -310
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -313
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -313
- package/docs/types/GuideLinePluginType.PathItem.html +0 -313
- package/docs/types/GuideLinePluginType.PluginData.html +0 -322
- package/docs/types/HelperEventMap.html +0 -521
- package/docs/types/LoadTagConfig.html +0 -283
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -283
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -283
- package/docs/types/MediaData.html +0 -304
- package/docs/types/MediaStore.html +0 -288
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -290
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -283
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -283
- package/docs/types/ModelId.html +0 -283
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -283
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -283
- package/docs/types/MoveArgs.html +0 -293
- package/docs/types/MoveOpts.html +0 -291
- package/docs/types/Object3DHelperEventMap.html +0 -376
- package/docs/types/ObjectFit.html +0 -283
- package/docs/types/PaintBrushEventMap.html +0 -314
- package/docs/types/PanoCompassPluginData.html +0 -283
- package/docs/types/PanoCompassPluginExportType.html +0 -283
- package/docs/types/PanoCompassPluginParameterType.html +0 -283
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -283
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -283
- package/docs/types/PanoIndex.html +0 -283
- package/docs/types/PanoMeasurePluginEvent.html +0 -283
- package/docs/types/PanoMeasureReturnType.html +0 -283
- package/docs/types/PanoSpatialTagPluginId.html +0 -283
- package/docs/types/PanoTagPluginExportInterface.html +0 -283
- package/docs/types/PanoTagPluginParamsInterface.html +0 -283
- package/docs/types/PanoVideoPluginParameterType.html +0 -283
- package/docs/types/PanoVideoPluginReturnType.html +0 -283
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -291
- package/docs/types/PipelinePluginParameterType.html +0 -283
- package/docs/types/PipelinePluginReturnType.html +0 -283
- package/docs/types/PlaneTag.html +0 -291
- package/docs/types/Point2DTag.html +0 -291
- package/docs/types/Point3DTag.html +0 -291
- package/docs/types/PointTag.html +0 -288
- package/docs/types/PointTagInstance.html +0 -288
- package/docs/types/Position.html +0 -283
- package/docs/types/RotateArgs.html +0 -295
- package/docs/types/RotateOpts.html +0 -291
- package/docs/types/RuleLabelsKey.html +0 -283
- package/docs/types/RuleLabelsValue.html +0 -283
- package/docs/types/StickType.html +0 -283
- package/docs/types/Tag.html +0 -349
- package/docs/types/Tag2D.html +0 -291
- package/docs/types/Tag3D.html +0 -291
- package/docs/types/TagConfigByKey.html +0 -288
- package/docs/types/TagContentType.html +0 -283
- package/docs/types/TagContentTypeMapping.html +0 -283
- package/docs/types/TagDimensionType.html +0 -285
- package/docs/types/TagElement.html +0 -293
- package/docs/types/TagEvents.html +0 -336
- package/docs/types/TagGLTFObject.html +0 -306
- package/docs/types/TagHooks.html +0 -283
- package/docs/types/TagId.html +0 -283
- package/docs/types/TagInstance.html +0 -361
- package/docs/types/TagPointType.html +0 -286
- package/docs/types/TagRendererMap.html +0 -290
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -283
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -283
- package/docs/types/WorkCode.html +0 -283
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -293
- package/docs/variables/PLUGIN.html +0 -283
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -286
- package/docs/variables/ROOM_TYPE_MAP.html +0 -293
- package/docs/variables/defaultGlobalConfig.html +0 -283
- package/docs/variables/itemLabelPluginServerParams.html +0 -290
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -290
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -290
- package/libs/shared-utils/Utils/BaseUtil.d.ts +0 -5
- package/libs/shared-utils/Utils/BaseUtil.js +0 -12
- package/libs/shared-utils/Utils/WorkUtil.d.ts +0 -33
- package/libs/shared-utils/Utils/WorkUtil.js +0 -68
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var I = (h, l, t) => l in h ?
|
|
1
|
+
var D = Object.defineProperty, C = Object.defineProperties;
|
|
2
|
+
var K = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var E = Object.getOwnPropertySymbols;
|
|
4
|
+
var L = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var I = (h, l, t) => l in h ? D(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
|
+
L.call(l, t) && I(h, t, l[t]);
|
|
8
|
+
if (E)
|
|
9
|
+
for (var t of E(l))
|
|
10
|
+
T.call(l, t) && I(h, t, l[t]);
|
|
11
11
|
return h;
|
|
12
|
-
}, x = (h, l) =>
|
|
12
|
+
}, x = (h, l) => C(h, K(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 = (d) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(t.next(d));
|
|
18
18
|
} catch (o) {
|
|
19
19
|
r(o);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, n = (d) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(t.throw(d));
|
|
24
24
|
} catch (o) {
|
|
25
25
|
r(o);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(i, n);
|
|
28
|
+
s((t = t.apply(h, l)).next());
|
|
29
29
|
});
|
|
30
|
-
import { GuideLinePlugin as
|
|
30
|
+
import { GuideLinePlugin as M } 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 A } from "./utils/coordinatesAngle.js";
|
|
33
|
+
import { safeCall as G } 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 Q } from "./utils/sleep.js";
|
|
36
|
+
import { waitFiveLoaded as U } from "../shared-utils/five/fiveLoaded.js";
|
|
37
|
+
import { vectorToCoordinates as _ } from "../shared-utils/vectorToCoordinate.js";
|
|
38
|
+
import R from "./BaseController.js";
|
|
39
39
|
import "../GuideLinePlugin/Controller.js";
|
|
40
40
|
import "../base/BasePluginWithData.js";
|
|
41
41
|
import "../base/BasePlugin.js";
|
|
@@ -113,8 +113,6 @@ 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";
|
|
118
116
|
import "../shared-utils/five/getFloorIndex.js";
|
|
119
117
|
import "../shared-utils/safeObj.js";
|
|
120
118
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -204,7 +202,7 @@ import "./utils/getFiveStateOnCurve.js";
|
|
|
204
202
|
import "../shared-utils/formatRad.js";
|
|
205
203
|
import "./Work.js";
|
|
206
204
|
import "./utils/coordinatesToVector.js";
|
|
207
|
-
class
|
|
205
|
+
class tr extends R {
|
|
208
206
|
constructor(t, e) {
|
|
209
207
|
super(t, e);
|
|
210
208
|
k(this, "state", {
|
|
@@ -236,30 +234,30 @@ class $i extends G {
|
|
|
236
234
|
*/
|
|
237
235
|
load(t, e, r) {
|
|
238
236
|
return y(this, null, function* () {
|
|
239
|
-
var a,
|
|
237
|
+
var a, m;
|
|
240
238
|
if (this.state.disposed)
|
|
241
239
|
return this.disposedErrorLog();
|
|
242
240
|
this.clear();
|
|
243
|
-
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0,
|
|
244
|
-
this.data = g({ id:
|
|
245
|
-
let
|
|
246
|
-
const o = this.data.keyframes.filter((
|
|
247
|
-
o.filter((
|
|
248
|
-
var
|
|
249
|
-
return
|
|
250
|
-
}).map((
|
|
251
|
-
var
|
|
252
|
-
const
|
|
253
|
-
if (
|
|
254
|
-
if (
|
|
255
|
-
const c =
|
|
256
|
-
|
|
241
|
+
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(t);
|
|
242
|
+
this.data = g({ id: n.keyframesId }, n), this.hooks.emit("dataChange", n, i);
|
|
243
|
+
let s = [], d;
|
|
244
|
+
const o = this.data.keyframes.filter((p) => p.data.panoIndex !== void 0);
|
|
245
|
+
o.filter((p, f) => {
|
|
246
|
+
var u;
|
|
247
|
+
return p.data.panoIndex !== ((u = o[f - 1]) == null ? void 0 : u.data.panoIndex);
|
|
248
|
+
}).map((p) => p.data.panoIndex).forEach((p) => {
|
|
249
|
+
var u, v;
|
|
250
|
+
const f = (u = this.five.work.observers[p]) == null ? void 0 : u.floorIndex;
|
|
251
|
+
if (f !== void 0)
|
|
252
|
+
if (d === f) {
|
|
253
|
+
const c = s.length - 1;
|
|
254
|
+
s[c] = [...(v = s[c]) != null ? v : [], p];
|
|
257
255
|
} else {
|
|
258
|
-
|
|
259
|
-
const c =
|
|
260
|
-
|
|
256
|
+
d = f;
|
|
257
|
+
const c = s.length;
|
|
258
|
+
s[c] = [p];
|
|
261
259
|
}
|
|
262
|
-
}), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 &&
|
|
260
|
+
}), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = M(this.five, this.config)), (m = this.GuideLine) == null || m.load({ routes: s.map((p) => ({ panoIndexList: p })), config: n.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", n), this.hooks.emit("dataLoaded", n);
|
|
263
261
|
});
|
|
264
262
|
}
|
|
265
263
|
/**
|
|
@@ -282,45 +280,45 @@ class $i extends G {
|
|
|
282
280
|
*/
|
|
283
281
|
formatData(t) {
|
|
284
282
|
return y(this, null, function* () {
|
|
285
|
-
this.five.work || (yield
|
|
286
|
-
const e = (() => {
|
|
287
|
-
const
|
|
288
|
-
return typeof
|
|
283
|
+
this.five.work || (yield U(this.five));
|
|
284
|
+
const e = this.five.work.observers, r = (() => {
|
|
285
|
+
const i = t;
|
|
286
|
+
return typeof i == "object" && i !== null && i.version && i.data ? i.data : i;
|
|
289
287
|
})();
|
|
290
|
-
if (
|
|
288
|
+
if (r.keyframes)
|
|
291
289
|
return {
|
|
292
290
|
keyframesId: S(),
|
|
293
|
-
keyframes:
|
|
294
|
-
var
|
|
295
|
-
const s =
|
|
296
|
-
return x(g({ id: (
|
|
291
|
+
keyframes: r.keyframes.map((i, n) => {
|
|
292
|
+
var o;
|
|
293
|
+
const s = r.keyframes[n + 1], d = (() => !s || s.start === void 0 || i.end === void 0 ? 0 : s.start - i.end)();
|
|
294
|
+
return x(g({ id: (o = i.uuid) != null ? o : S(), moveIndex: n, stay: d, index: n }, i), { guildPluginOptions: r.guildPluginOptions });
|
|
297
295
|
})
|
|
298
296
|
};
|
|
299
|
-
if (
|
|
300
|
-
let
|
|
301
|
-
const { moveEffect:
|
|
302
|
-
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration =
|
|
303
|
-
const
|
|
304
|
-
var
|
|
305
|
-
const p =
|
|
297
|
+
if (r.panoIndexList) {
|
|
298
|
+
let i = [];
|
|
299
|
+
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } = r;
|
|
300
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d, r.panoIndexList.forEach((o, a) => {
|
|
301
|
+
const m = (() => {
|
|
302
|
+
var c, P, w, b;
|
|
303
|
+
const p = r.panoIndexList.slice(a).find((F) => F !== o);
|
|
306
304
|
if (p === void 0)
|
|
307
305
|
return;
|
|
308
|
-
const
|
|
309
|
-
if (!u || !
|
|
306
|
+
const f = (c = e[o]) == null ? void 0 : c.position, u = (P = e[p]) == null ? void 0 : P.position;
|
|
307
|
+
if (!u || !f || ((w = e[o]) == null ? void 0 : w.floorIndex) !== ((b = e[p]) == null ? void 0 : b.floorIndex))
|
|
310
308
|
return;
|
|
311
|
-
const
|
|
312
|
-
return
|
|
309
|
+
const v = new O.Vector3().subVectors(u, f);
|
|
310
|
+
return _(v.normalize());
|
|
313
311
|
})();
|
|
314
|
-
|
|
315
|
-
moveIndex:
|
|
316
|
-
stay:
|
|
317
|
-
data: g({ effect: "Move", panoIndex:
|
|
318
|
-
}) :
|
|
312
|
+
r.moveType === void 0 || r.moveType === "justMove" ? i.push({
|
|
313
|
+
moveIndex: a,
|
|
314
|
+
stay: r.stay,
|
|
315
|
+
data: g({ effect: "Move", panoIndex: o, moveEffect: n }, m != null ? m : {})
|
|
316
|
+
}) : r.moveType === "moveAndRotate" && (i.push({ moveIndex: a, stay: r.stay, data: { effect: "Move", panoIndex: o, moveEffect: n } }), m && i.push({ moveIndex: a, stay: r.stay, data: g({ effect: "Rotate", panoIndex: o }, m) }));
|
|
319
317
|
}), {
|
|
320
318
|
keyframesId: S(),
|
|
321
|
-
keyframes:
|
|
322
|
-
guildPluginOptions:
|
|
323
|
-
useGuildLine:
|
|
319
|
+
keyframes: i.map((o, a) => g({ id: S(), index: a }, o)),
|
|
320
|
+
guildPluginOptions: r.guildPluginOptions,
|
|
321
|
+
useGuildLine: r.useGuildLine
|
|
324
322
|
};
|
|
325
323
|
} else
|
|
326
324
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
@@ -334,21 +332,21 @@ class $i extends G {
|
|
|
334
332
|
// eslint-disable-next-line complexity
|
|
335
333
|
handlePlay(t) {
|
|
336
334
|
return y(this, null, function* () {
|
|
337
|
-
var
|
|
338
|
-
const { data: e, state: r, privateState: i, hooks:
|
|
335
|
+
var f;
|
|
336
|
+
const { data: e, state: r, privateState: i, hooks: n } = this;
|
|
339
337
|
if (i.playing || !(e != null && e.keyframes) || (e == null ? void 0 : e.keyframes.length) === 0)
|
|
340
338
|
return;
|
|
341
|
-
const
|
|
342
|
-
i.playId =
|
|
343
|
-
const
|
|
344
|
-
(t == null ? void 0 : t.notEmitEvent) !== !0 &&
|
|
339
|
+
const s = S();
|
|
340
|
+
i.playId = s, i.playing = !0, i.broke = !1;
|
|
341
|
+
const d = e.keyframes, o = this.getPauseData();
|
|
342
|
+
(t == null ? void 0 : t.notEmitEvent) !== !0 && n.emit("play", { userAction: (f = t == null ? void 0 : t.userAction) != null ? f : !0 });
|
|
345
343
|
let a = !1;
|
|
346
|
-
const
|
|
347
|
-
var
|
|
344
|
+
const p = yield (() => y(this, null, function* () {
|
|
345
|
+
var u, v;
|
|
348
346
|
if ((t == null ? void 0 : t.playFromIndex) !== void 0)
|
|
349
347
|
return t.playFromIndex;
|
|
350
348
|
if ((t == null ? void 0 : t.playFromId) !== void 0)
|
|
351
|
-
return (
|
|
349
|
+
return (u = this.data) == null ? void 0 : u.keyframes.findIndex((c) => c.id === t.playFromId);
|
|
352
350
|
if (o != null && o.id) {
|
|
353
351
|
const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id === o.id);
|
|
354
352
|
if (o != null && o.fiveState && (yield this.move(o.fiveState, {
|
|
@@ -365,40 +363,40 @@ class $i extends G {
|
|
|
365
363
|
}
|
|
366
364
|
}))();
|
|
367
365
|
this.clearPauseData();
|
|
368
|
-
for (const
|
|
369
|
-
if (i.broke || !r.playing || !i.playing ||
|
|
366
|
+
for (const u of d) {
|
|
367
|
+
if (i.broke || !r.playing || !i.playing || s !== i.playId)
|
|
370
368
|
return;
|
|
371
|
-
if (!(
|
|
369
|
+
if (!(p !== void 0 && u.index < p))
|
|
372
370
|
try {
|
|
373
|
-
|
|
371
|
+
n.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
|
|
374
372
|
moveEffect: a === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
375
373
|
duration: a === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
|
|
376
|
-
}),
|
|
374
|
+
}), u.stay && (yield Q(u.stay)), a === !1 && (a = !0);
|
|
377
375
|
} catch (v) {
|
|
378
376
|
return console.error(v), Promise.resolve("broke");
|
|
379
377
|
}
|
|
380
378
|
}
|
|
381
|
-
r.playing &&
|
|
379
|
+
r.playing && s === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
|
|
382
380
|
});
|
|
383
381
|
}
|
|
384
382
|
/**
|
|
385
383
|
* @description: Pause and record pause state
|
|
386
384
|
*/
|
|
387
385
|
handlePause(t) {
|
|
388
|
-
var
|
|
386
|
+
var n;
|
|
389
387
|
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: (
|
|
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: (n = t == null ? void 0 : t.userAction) != null ? n : !0 }));
|
|
391
389
|
}
|
|
392
390
|
/**
|
|
393
391
|
* @description: Change play speed
|
|
394
392
|
*/
|
|
395
393
|
changeSpeed(t, e = !0) {
|
|
396
|
-
const { state: r, privateState: i, hooks:
|
|
397
|
-
if (
|
|
394
|
+
const { state: r, privateState: i, hooks: n } = this, { currentPlayKeyframe: s } = i;
|
|
395
|
+
if (n.emit("speedChange", t, { userAction: e }), r.playing && s)
|
|
398
396
|
try {
|
|
399
|
-
const
|
|
397
|
+
const d = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, o = this.playKeyframe(s.keyframe, { duration: d });
|
|
400
398
|
i.currentPlayQueue.push(o);
|
|
401
|
-
} catch (
|
|
399
|
+
} catch (d) {
|
|
402
400
|
}
|
|
403
401
|
}
|
|
404
402
|
/**
|
|
@@ -441,20 +439,20 @@ class $i extends G {
|
|
|
441
439
|
*/
|
|
442
440
|
getPlayPromise(r) {
|
|
443
441
|
return y(this, arguments, function* (t, e = {}) {
|
|
444
|
-
var
|
|
442
|
+
var n;
|
|
445
443
|
const i = t.data;
|
|
446
|
-
if (e.duration = (
|
|
447
|
-
return new Promise((
|
|
444
|
+
if (e.duration = (n = e.duration) != null ? n : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!i)
|
|
445
|
+
return new Promise((s, d) => {
|
|
448
446
|
let o = !1;
|
|
449
447
|
this.addInterruptListener(() => {
|
|
450
448
|
if (!o)
|
|
451
|
-
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), o = !0,
|
|
449
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), o = !0, d(new Error("play is interupted"));
|
|
452
450
|
});
|
|
453
451
|
try {
|
|
454
452
|
if (o)
|
|
455
453
|
return;
|
|
456
454
|
const a = () => {
|
|
457
|
-
|
|
455
|
+
s(), o = !0;
|
|
458
456
|
};
|
|
459
457
|
switch (i.effect) {
|
|
460
458
|
case "Move":
|
|
@@ -521,26 +519,26 @@ class $i extends G {
|
|
|
521
519
|
*/
|
|
522
520
|
updateCamera(r) {
|
|
523
521
|
return y(this, arguments, function* (t, e = {}) {
|
|
524
|
-
const { five: i, privateState:
|
|
525
|
-
var
|
|
526
|
-
const
|
|
527
|
-
if ((
|
|
528
|
-
return
|
|
529
|
-
if (
|
|
530
|
-
return
|
|
522
|
+
const { five: i, privateState: n, state: s } = this, d = (() => {
|
|
523
|
+
var f, u;
|
|
524
|
+
const m = (f = s.config) == null ? void 0 : f.speedConfig, p = (u = t.rotateSpeed) != null ? u : m == null ? void 0 : m.rotateSpeed;
|
|
525
|
+
if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
|
|
526
|
+
return p;
|
|
527
|
+
if (p !== void 0)
|
|
528
|
+
return m.rotateSpeedUnit === "rad/ms" ? p : p / 1e3;
|
|
531
529
|
})(), o = (() => {
|
|
532
530
|
if (e.duration)
|
|
533
531
|
return e.duration;
|
|
534
|
-
if (
|
|
535
|
-
const
|
|
536
|
-
return
|
|
532
|
+
if (d) {
|
|
533
|
+
const m = this.five.getCurrentState();
|
|
534
|
+
return A(m, t) / d;
|
|
537
535
|
}
|
|
538
536
|
return 800;
|
|
539
537
|
})();
|
|
540
|
-
|
|
538
|
+
n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = o);
|
|
541
539
|
const a = this.getSpeededDuration(o);
|
|
542
|
-
return new Promise((
|
|
543
|
-
|
|
540
|
+
return new Promise((m) => {
|
|
541
|
+
G(() => i.updateCamera(t, a)), setTimeout(() => m(), a);
|
|
544
542
|
});
|
|
545
543
|
});
|
|
546
544
|
}
|
|
@@ -549,39 +547,39 @@ class $i extends G {
|
|
|
549
547
|
*/
|
|
550
548
|
changePano(t, e) {
|
|
551
549
|
return y(this, null, function* () {
|
|
552
|
-
const { five: r, privateState: i, state:
|
|
550
|
+
const { five: r, privateState: i, state: n } = this;
|
|
553
551
|
if (typeof t.panoIndex != "number" || t.panoIndex === r.panoIndex)
|
|
554
552
|
return;
|
|
555
|
-
const
|
|
556
|
-
|
|
557
|
-
const
|
|
558
|
-
var
|
|
559
|
-
const a = (
|
|
553
|
+
const s = r.getCurrentState().mode !== "Panorama";
|
|
554
|
+
s && (this.privateState.modeChanging = !0);
|
|
555
|
+
const d = (() => {
|
|
556
|
+
var p, f;
|
|
557
|
+
const a = (p = n.config) == null ? void 0 : p.speedConfig, m = (f = t.moveSpeed) != null ? f : a == null ? void 0 : a.moveSpeed;
|
|
560
558
|
if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
|
|
561
|
-
return
|
|
562
|
-
if (
|
|
563
|
-
return a.moveSpeedUnit === "m/ms" ?
|
|
559
|
+
return m;
|
|
560
|
+
if (m !== void 0)
|
|
561
|
+
return a.moveSpeedUnit === "m/ms" ? m : m / 1e3;
|
|
564
562
|
})(), o = (() => {
|
|
565
563
|
if (e != null && e.duration)
|
|
566
564
|
return e.duration;
|
|
567
|
-
if (
|
|
568
|
-
const a =
|
|
569
|
-
return a
|
|
565
|
+
if (d && typeof r.panoIndex == "number" && typeof t.panoIndex == "number") {
|
|
566
|
+
const a = r.work.observers[r.panoIndex].position, m = r.work.observers[t.panoIndex].position;
|
|
567
|
+
return a.distanceTo(m) / d;
|
|
570
568
|
}
|
|
571
569
|
return 800;
|
|
572
570
|
})();
|
|
573
571
|
i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = o), yield new Promise((a) => {
|
|
574
|
-
var
|
|
572
|
+
var m, p, f;
|
|
575
573
|
r.moveToPano(t.panoIndex, {
|
|
576
574
|
latitude: t.latitude,
|
|
577
575
|
longitude: t.longitude,
|
|
578
576
|
fov: t.fov,
|
|
579
577
|
duration: this.getSpeededDuration(o),
|
|
580
|
-
effect: (
|
|
578
|
+
effect: (f = (p = e == null ? void 0 : e.moveEffect) != null ? p : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? f : t.moveEffect,
|
|
581
579
|
moveCancelCallback: () => a(),
|
|
582
580
|
moveEndCallback: () => a()
|
|
583
|
-
}),
|
|
584
|
-
}),
|
|
581
|
+
}), s && r.once("panoArrived", () => a());
|
|
582
|
+
}), s && (this.privateState.modeChanging = !1);
|
|
585
583
|
});
|
|
586
584
|
}
|
|
587
585
|
/**
|
|
@@ -594,5 +592,5 @@ class $i extends G {
|
|
|
594
592
|
}
|
|
595
593
|
}
|
|
596
594
|
export {
|
|
597
|
-
|
|
595
|
+
tr as default
|
|
598
596
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { typing as
|
|
1
|
+
import { typing as dt } 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,8 +80,6 @@ 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";
|
|
85
83
|
import "../shared-utils/five/getFloorIndex.js";
|
|
86
84
|
import "../shared-utils/safeObj.js";
|
|
87
85
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -176,13 +174,13 @@ import "../shared-utils/vectorToCoordinate.js";
|
|
|
176
174
|
import "../shared-utils/formatRad.js";
|
|
177
175
|
import "./BaseController.js";
|
|
178
176
|
import "./utils/getFiveStateOnCurve.js";
|
|
179
|
-
const
|
|
177
|
+
const wt = (o, r) => new t(o, r), xt = (o, r) => new i(o, r);
|
|
180
178
|
export {
|
|
181
|
-
|
|
179
|
+
wt as CruisePlugin,
|
|
182
180
|
t as CruisePluginController,
|
|
183
|
-
|
|
181
|
+
dt as CruisePluginTypes,
|
|
184
182
|
i as MoveController,
|
|
185
|
-
|
|
183
|
+
xt as MovePlugin,
|
|
186
184
|
t as WalkController,
|
|
187
|
-
|
|
185
|
+
wt as default
|
|
188
186
|
};
|
|
@@ -5,14 +5,10 @@ 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';
|
|
9
8
|
export declare const pluginFlag: (name: string) => string;
|
|
10
9
|
export default class Controller extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
11
10
|
readonly name = "GuideLinePlugin";
|
|
12
11
|
readonly cruisePlugin: CruisePluginController;
|
|
13
|
-
set workCode(workCode: string);
|
|
14
|
-
get workCode(): string;
|
|
15
|
-
workUtils: WorkUtil;
|
|
16
12
|
/** GuideLineItem 索引 */
|
|
17
13
|
readonly itemMap: Map<string | number, GuideLineItem>;
|
|
18
14
|
get config(): Config;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var c = (s, o, t) => o in s ?
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var T = Object.getOwnPropertySymbols;
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var c = (s, o, t) => o in s ? C(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
|
+
M.call(o, t) && c(s, t, o[t]);
|
|
7
|
+
if (T)
|
|
8
|
+
for (var t of T(o))
|
|
9
|
+
O.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,14 +26,13 @@ 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
|
|
36
|
-
import { WorkUtil as $ } from "../shared-utils/Utils/WorkUtil.js";
|
|
29
|
+
import { Controller as k } from "../base/BasePluginWithData.js";
|
|
30
|
+
import { equal as x } from "../shared-utils/equal.js";
|
|
31
|
+
import { GuideLineItem as N } from "./GuideLineItem/index.js";
|
|
32
|
+
import $ from "../CruisePlugin/Work.js";
|
|
33
|
+
import { objectAssignDeepExports as A } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
|
+
import * as G from "three";
|
|
35
|
+
import { waitFiveLoaded as P } from "../shared-utils/five/fiveLoaded.js";
|
|
37
36
|
import "../base/BasePlugin.js";
|
|
38
37
|
import "../shared-utils/Subscribe.js";
|
|
39
38
|
import "hammerjs";
|
|
@@ -193,7 +192,6 @@ import "../shared-utils/five/changeMode.js";
|
|
|
193
192
|
import "../shared-utils/nearlyEqual.js";
|
|
194
193
|
import "../CruisePlugin/Move.js";
|
|
195
194
|
import "../CruisePlugin/BaseController.js";
|
|
196
|
-
import "../shared-utils/Utils/BaseUtil.js";
|
|
197
195
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
198
196
|
import "../shared-utils/vectorToCoordinate.js";
|
|
199
197
|
import "../shared-utils/formatRad.js";
|
|
@@ -203,13 +201,12 @@ import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
|
203
201
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
204
202
|
import "../CruisePlugin/utils/safeCall.js";
|
|
205
203
|
import "../CruisePlugin/utils/sleep.js";
|
|
206
|
-
const b = "GuideLinePlugin", g = `${b}`,
|
|
207
|
-
class
|
|
204
|
+
const b = "GuideLinePlugin", g = `${b}`, Yr = (s) => `${g}--${s}`;
|
|
205
|
+
class Zr extends k {
|
|
208
206
|
constructor(t, i) {
|
|
209
207
|
super(t, i);
|
|
210
208
|
h(this, "name", b);
|
|
211
209
|
h(this, "cruisePlugin");
|
|
212
|
-
h(this, "workUtils", new $(this.five));
|
|
213
210
|
/** GuideLineItem 索引 */
|
|
214
211
|
h(this, "itemMap", /* @__PURE__ */ new Map());
|
|
215
212
|
h(this, "state", {
|
|
@@ -224,13 +221,7 @@ class re extends O {
|
|
|
224
221
|
h(this, "disposedErrorLog", () => {
|
|
225
222
|
console.error(`${g} is disposed`);
|
|
226
223
|
});
|
|
227
|
-
this._config = i != null ? i : {}, this.cruisePlugin = new
|
|
228
|
-
}
|
|
229
|
-
set workCode(t) {
|
|
230
|
-
this.workUtils.workCode = t;
|
|
231
|
-
}
|
|
232
|
-
get workCode() {
|
|
233
|
-
return this.workUtils.workCode;
|
|
224
|
+
this._config = i != null ? i : {}, this.cruisePlugin = new $(t), Object.assign(window, { [`__${b}_DEBUG__`]: this });
|
|
234
225
|
}
|
|
235
226
|
get config() {
|
|
236
227
|
return this._config;
|
|
@@ -240,7 +231,7 @@ class re extends O {
|
|
|
240
231
|
}
|
|
241
232
|
load(t, i, a = !0) {
|
|
242
233
|
return u(this, null, function* () {
|
|
243
|
-
var v,
|
|
234
|
+
var v, I, w, E, y, D, L;
|
|
244
235
|
if (this.disposed)
|
|
245
236
|
return;
|
|
246
237
|
const m = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
|
|
@@ -249,14 +240,14 @@ class re extends O {
|
|
|
249
240
|
panorama_style: {
|
|
250
241
|
visible: !!(!e.lines && e.routes),
|
|
251
242
|
unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
|
|
252
|
-
width: (
|
|
253
|
-
texture: { url: (
|
|
243
|
+
width: (I = r == null ? void 0 : r.unitWidth) != null ? I : 0.6,
|
|
244
|
+
texture: { url: (w = r == null ? void 0 : r.arrowTextureUrl) != null ? w : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
|
|
254
245
|
}
|
|
255
246
|
}, d = (y = (E = e.routes) == null ? void 0 : E.map((l) => {
|
|
256
|
-
var
|
|
257
|
-
return
|
|
258
|
-
})) != null ? y : [],
|
|
259
|
-
yield
|
|
247
|
+
var _;
|
|
248
|
+
return A({}, n, { id: (_ = l.id) != null ? _ : Date.now(), pano_group: l.panoIndexList });
|
|
249
|
+
})) != null ? y : [], S = (L = (D = e.lines) == null ? void 0 : D.map((l) => A({}, n, l))) != null ? L : [], V = [...d, ...S];
|
|
250
|
+
yield P(this.five), this.clear(), V.forEach((l) => {
|
|
260
251
|
this.addGuideLineItem(l);
|
|
261
252
|
}), 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);
|
|
262
253
|
});
|
|
@@ -295,13 +286,13 @@ class re extends O {
|
|
|
295
286
|
if (this.disposed)
|
|
296
287
|
return this.disposedErrorLog();
|
|
297
288
|
const a = f({}, this.state);
|
|
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),
|
|
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), x(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);
|
|
299
290
|
}
|
|
300
291
|
/** 添加一个 GuideLineItem */
|
|
301
292
|
addGuideLineItem(t) {
|
|
302
293
|
const i = t.render_id || t.id, a = this.itemMap.get(i);
|
|
303
294
|
a && this.removeGuideLineItem(a);
|
|
304
|
-
const m = new
|
|
295
|
+
const m = new N({ five: this.five, id: i, plugin: this });
|
|
305
296
|
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;
|
|
306
297
|
}
|
|
307
298
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
@@ -319,7 +310,7 @@ class re extends O {
|
|
|
319
310
|
return Array.isArray(e) && e.every((r) => typeof r == "number");
|
|
320
311
|
}
|
|
321
312
|
function a(e, r) {
|
|
322
|
-
return new
|
|
313
|
+
return new G.Vector3().fromArray(e).distanceTo(new G.Vector3().fromArray(r)) < 0.01;
|
|
323
314
|
}
|
|
324
315
|
function m(e) {
|
|
325
316
|
var p;
|
|
@@ -353,6 +344,6 @@ class re extends O {
|
|
|
353
344
|
}
|
|
354
345
|
}
|
|
355
346
|
export {
|
|
356
|
-
|
|
357
|
-
|
|
347
|
+
Zr as default,
|
|
348
|
+
Yr as pluginFlag
|
|
358
349
|
};
|
|
@@ -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 ao } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -76,8 +76,6 @@ 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";
|
|
81
79
|
import "../shared-utils/five/getFloorIndex.js";
|
|
82
80
|
import "../shared-utils/safeObj.js";
|
|
83
81
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -176,5 +174,5 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
176
174
|
import "../CruisePlugin/utils/safeCall.js";
|
|
177
175
|
import "../CruisePlugin/utils/sleep.js";
|
|
178
176
|
export {
|
|
179
|
-
|
|
177
|
+
ao as GuideLineItem
|
|
180
178
|
};
|