@realsee/dnalogel 3.42.0-alpha-tag.45 → 3.43.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/CHANGELOG.md +12 -6
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +14 -0
- package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +4 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +4 -4
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -2
- package/dist/index.cjs.js +50 -50
- package/dist/index.js +3307 -3270
- package/dist/index.umd.js +42 -42
- package/libs/CruisePlugin/Move.js +2 -3
- package/libs/CruisePlugin/Work.js +2 -3
- package/libs/CruisePlugin/index.js +6 -7
- package/libs/GuideLinePlugin/Controller.js +4 -5
- package/libs/GuideLinePlugin/GuideLineItem.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
- package/libs/GuideLinePlugin/index.js +6 -7
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +46 -51
- package/libs/PanoTagPlugin/Components/Tag/index.js +204 -200
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +25 -26
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +14 -0
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +245 -213
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +4 -0
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +24 -21
- package/libs/PanoTagPlugin/controller/TagRender.js +2 -3
- package/libs/PanoTagPlugin/controller/index.d.ts +4 -4
- package/libs/PanoTagPlugin/controller/index.js +21 -22
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -3
- package/libs/PipelinePlugin/utils/formatData.js +16 -16
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +125 -126
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +3 -2
- package/README.md +0 -116
- package/dist/PanoTagPlugin/utils/tag/canVisibleInModel.d.ts +0 -2
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +0 -127
- 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 -731
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -694
- package/docs/classes/CSS3DRender.html +0 -778
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -481
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -894
- package/docs/classes/Magnifier.html +0 -485
- package/docs/classes/ModelRoomLabelController.html +0 -403
- package/docs/classes/MoveController.html +0 -681
- package/docs/classes/Object3DHelperController.html +0 -645
- package/docs/classes/PaintBrush.html +0 -507
- package/docs/classes/PanoMeasurePluginLine.html +0 -527
- package/docs/classes/PanoMeasurePluginModel.html +0 -576
- package/docs/classes/PanoMeasurePluginPoint.html +0 -367
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -572
- package/docs/classes/PanoTagPluginController.html +0 -1132
- package/docs/classes/Util.BetterTween.html +0 -421
- package/docs/classes/Util.Interval.html +0 -437
- package/docs/classes/Util.LineSegments.html +0 -389
- package/docs/classes/Util.Magnifier.html +0 -508
- package/docs/classes/Util.Object3D.html +0 -411
- package/docs/classes/Util.PointDomHelper.html +0 -412
- package/docs/classes/Util.PointHelper.html +0 -403
- package/docs/classes/Util.PointSelectorHelper.html +0 -459
- package/docs/classes/Util.Rectangle.html +0 -460
- package/docs/classes/WalkController.html +0 -700
- package/docs/enums/CameraMovementEffect.html +0 -315
- package/docs/enums/ContentType.html +0 -461
- package/docs/enums/DIRECTION.html +0 -325
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -325
- package/docs/enums/DimensionType.html +0 -315
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -318
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -325
- package/docs/enums/PaintBrushTypeEnum.html +0 -318
- package/docs/enums/PointType.html +0 -315
- package/docs/enums/Rotation.html +0 -322
- package/docs/functions/AreaMakerPlugin.html +0 -295
- package/docs/functions/CSS3DRenderPlugin.html +0 -293
- package/docs/functions/CameraMovementPlugin.html +0 -298
- package/docs/functions/CruisePlugin.html +0 -295
- package/docs/functions/CurrentPanoImagePlugin.html +0 -295
- package/docs/functions/GuideLinePlugin.html +0 -295
- package/docs/functions/ItemLabelPlugin.html +0 -295
- package/docs/functions/MapviewFloorplanPlugin.html +0 -295
- package/docs/functions/ModelChassisCompassPlugin.html +0 -298
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -298
- package/docs/functions/ModelFloorplanPlugin.html +0 -295
- package/docs/functions/ModelItemLabelPlugin.html +0 -295
- package/docs/functions/ModelRoomLabelPlugin.html +0 -293
- package/docs/functions/ModelTVVideoPlugin.html +0 -295
- package/docs/functions/ModelViewPlugin.html +0 -298
- package/docs/functions/MovePlugin.html +0 -295
- package/docs/functions/Object3DHelperPlugin.html +0 -293
- package/docs/functions/PanoCompassPlugin.html +0 -295
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -299
- package/docs/functions/PanoDoorLabelPlugin.html +0 -295
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -295
- package/docs/functions/PanoMeasurePlugin.html +0 -295
- package/docs/functions/PanoRulerPlugin.html +0 -298
- package/docs/functions/PanoRulerProPlugin.html +0 -298
- package/docs/functions/PanoSpatialTagPlugin.html +0 -298
- package/docs/functions/PanoTagPlugin.html +0 -300
- package/docs/functions/PanoVideoPlugin.html +0 -304
- package/docs/functions/PipelinePlugin.html +0 -293
- package/docs/functions/TopviewFloorplanPlugin.html +0 -295
- package/docs/functions/Util.absoluteUrl.html +0 -331
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -334
- package/docs/functions/Util.equal.html +0 -343
- package/docs/functions/Util.getCoordsFromClient.html +0 -333
- package/docs/functions/Util.getCoordsFromElement.html +0 -333
- package/docs/functions/Util.getFrameTime.html +0 -325
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -333
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -333
- package/docs/functions/Util.isAbsoluteURL.html +0 -326
- package/docs/functions/Util.isModelLike.html +0 -326
- package/docs/functions/Util.isNil.html +0 -334
- package/docs/functions/Util.isPanoramaLike.html +0 -326
- package/docs/functions/Util.nextFrame.html +0 -339
- package/docs/functions/Util.notNil.html +0 -334
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -355
- package/docs/functions/Util.tweenProgress.html +0 -328
- package/docs/functions/Util.uuid.html +0 -324
- package/docs/functions/pluginFlag.html +0 -293
- package/docs/index.html +0 -358
- package/docs/interfaces/AddTagConfig.html +0 -308
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -335
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -340
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -626
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -339
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -397
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -382
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -339
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -332
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -331
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -360
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -454
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -330
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -363
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -364
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -366
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -724
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -390
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -426
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -416
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -356
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -324
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -392
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -387
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -526
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -328
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -320
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -342
- package/docs/interfaces/EventMap.html +0 -547
- package/docs/interfaces/FloorplanBounding.html +0 -337
- package/docs/interfaces/FloorplanData.html +0 -340
- package/docs/interfaces/FloorplanEntrance.html +0 -365
- package/docs/interfaces/FloorplanExtraObject.html +0 -355
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -344
- package/docs/interfaces/FloorplanFloorData.html +0 -333
- package/docs/interfaces/FloorplanImagePosition.html +0 -319
- package/docs/interfaces/FloorplanObserver.html +0 -337
- package/docs/interfaces/FloorplanOutlineItem.html +0 -333
- package/docs/interfaces/FloorplanPosition.html +0 -319
- package/docs/interfaces/FloorplanRoomItem.html +0 -407
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -325
- package/docs/interfaces/FloorplanServerBounding.html +0 -337
- package/docs/interfaces/FloorplanServerComputedData.html +0 -336
- package/docs/interfaces/FloorplanServerData.html +0 -319
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -336
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -322
- package/docs/interfaces/FloorplanServerEntrance.html +0 -365
- package/docs/interfaces/FloorplanServerFloorData.html +0 -333
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -319
- package/docs/interfaces/FloorplanServerObserver.html +0 -337
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -333
- package/docs/interfaces/FloorplanServerPosition.html +0 -319
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -419
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -325
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -328
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -367
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -531
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -362
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -353
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -452
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -342
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -352
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -522
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -349
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -532
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -314
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -335
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -360
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -376
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -358
- package/docs/interfaces/HelperOffset.html +0 -337
- package/docs/interfaces/ImagePlaneGroup.html +0 -311
- package/docs/interfaces/ItemLabelPluginData.html +0 -308
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -393
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -329
- package/docs/interfaces/MinMax.html +0 -315
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -315
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -351
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -315
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -322
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -359
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -308
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -393
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -315
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -308
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -329
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -353
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -308
- package/docs/interfaces/ModelViewPluginExportType.html +0 -421
- package/docs/interfaces/Object3DHelperState.html +0 -322
- package/docs/interfaces/ObjectHelperControllers.html +0 -329
- package/docs/interfaces/PaintBrushAction.html +0 -368
- package/docs/interfaces/PaintBrushConfigs.html +0 -366
- package/docs/interfaces/PaintBrushState.html +0 -350
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -430
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -287
- package/docs/interfaces/PanoMeasureParameterType.html +0 -454
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -322
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -319
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -315
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -325
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -382
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -331
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -322
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -358
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -328
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -315
- package/docs/interfaces/PanoRulerProPluginState.html +0 -322
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -301
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -290
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -358
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -340
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -436
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -336
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -357
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -343
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -336
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -328
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -346
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -319
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -425
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -319
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -354
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -373
- package/docs/interfaces/Point.html +0 -322
- package/docs/interfaces/Room.html +0 -329
- package/docs/interfaces/RoomInfo.html +0 -315
- package/docs/interfaces/RoomLabel.html +0 -391
- package/docs/interfaces/RoomRules.html +0 -290
- package/docs/interfaces/Rooms.html +0 -290
- package/docs/interfaces/Scissor.html +0 -349
- package/docs/interfaces/State.html +0 -336
- package/docs/interfaces/TagCacheInterface.html +0 -367
- package/docs/interfaces/TagConfig.html +0 -570
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -311
- package/docs/interfaces/TagIconUrl.html +0 -368
- package/docs/interfaces/TagObjectGroup.html +0 -311
- package/docs/interfaces/TagStyle.html +0 -321
- package/docs/interfaces/Tags.html +0 -2825
- package/docs/interfaces/TemporaryState.html +0 -308
- package/docs/interfaces/Util.MagnifierParameter.html +0 -396
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -355
- package/docs/interfaces/Util.PointIntersection.html +0 -370
- package/docs/modules/AreaMakerPluginType.html +0 -330
- package/docs/modules/CruisePluginTypes.html +0 -333
- package/docs/modules/CurrentPanoImagePluginType.html +0 -302
- package/docs/modules/GuideLineItem.html +0 -294
- package/docs/modules/GuideLineModeItem.html +0 -299
- package/docs/modules/GuideLinePluginType.html +0 -355
- package/docs/modules/PanoVideoPluginType.html +0 -306
- package/docs/modules/Util.html +0 -356
- package/docs/modules.html +0 -564
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -359
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -325
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -307
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -307
- package/docs/types/ArrayPosition.html +0 -284
- package/docs/types/AudioAppearance.html +0 -284
- package/docs/types/AudioTagTypeConfigKey.html +0 -284
- package/docs/types/CSS3DRenderExportType.html +0 -284
- package/docs/types/CSS3DRenderPluginExportType.html +0 -284
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -284
- package/docs/types/ClassFunctionParameters.html +0 -291
- package/docs/types/Color.html +0 -284
- package/docs/types/ContentTypeConfigKey.html +0 -284
- package/docs/types/ContentTypeConfigKeySplit.html +0 -284
- package/docs/types/ContentTypeMap.html +0 -284
- package/docs/types/Create3DDomContainerReturnType.html +0 -284
- package/docs/types/Create3DElementReturnType.html +0 -284
- package/docs/types/CruisePluginExportType.html +0 -284
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -323
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -300
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -284
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -296
- package/docs/types/DeprecatedTagProperty.html +0 -299
- package/docs/types/Direction-1.html +0 -284
- package/docs/types/Direction4.html +0 -284
- package/docs/types/ElementRenderer.html +0 -308
- package/docs/types/FloorplanRuleLabels.html +0 -287
- package/docs/types/FloorplanServerRuleLabels.html +0 -284
- package/docs/types/GuideLinePluginExportType.html +0 -284
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -357
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -378
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -311
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -314
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -314
- package/docs/types/GuideLinePluginType.PathItem.html +0 -314
- package/docs/types/GuideLinePluginType.PluginData.html +0 -323
- package/docs/types/HelperEventMap.html +0 -429
- package/docs/types/InternalHelperEventMap.html +0 -380
- package/docs/types/LoadTagConfig.html +0 -284
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -284
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -284
- package/docs/types/MediaData.html +0 -305
- package/docs/types/MediaStore.html +0 -289
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -291
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -284
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -284
- package/docs/types/ModelId.html +0 -284
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -284
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -284
- package/docs/types/MoveArgs.html +0 -294
- package/docs/types/MoveOpts.html +0 -292
- package/docs/types/Object3DHelperEventMap.html +0 -377
- package/docs/types/ObjectFit.html +0 -284
- package/docs/types/PaintBrushEventMap.html +0 -315
- package/docs/types/PanoCompassPluginData.html +0 -284
- package/docs/types/PanoCompassPluginExportType.html +0 -284
- package/docs/types/PanoCompassPluginParameterType.html +0 -284
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -284
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -284
- package/docs/types/PanoIndex.html +0 -284
- package/docs/types/PanoMeasurePluginEvent.html +0 -284
- package/docs/types/PanoMeasureReturnType.html +0 -284
- package/docs/types/PanoSpatialTagPluginId.html +0 -284
- package/docs/types/PanoTagPluginExportInterface.html +0 -284
- package/docs/types/PanoTagPluginParamsInterface.html +0 -284
- package/docs/types/PanoVideoPluginParameterType.html +0 -284
- package/docs/types/PanoVideoPluginReturnType.html +0 -284
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -292
- package/docs/types/PipelinePluginParameterType.html +0 -284
- package/docs/types/PipelinePluginReturnType.html +0 -284
- package/docs/types/PlaneTag.html +0 -292
- package/docs/types/Point2DTag.html +0 -292
- package/docs/types/Point3DTag.html +0 -292
- package/docs/types/PointTag.html +0 -289
- package/docs/types/PointTagInstance.html +0 -289
- package/docs/types/Position.html +0 -284
- package/docs/types/RotateArgs.html +0 -296
- package/docs/types/RotateOpts.html +0 -292
- package/docs/types/RuleLabelsKey.html +0 -284
- package/docs/types/RuleLabelsValue.html +0 -284
- package/docs/types/StickType.html +0 -284
- package/docs/types/Tag.html +0 -350
- package/docs/types/Tag2D.html +0 -292
- package/docs/types/Tag3D.html +0 -292
- package/docs/types/TagConfigByKey.html +0 -289
- package/docs/types/TagContentType.html +0 -284
- package/docs/types/TagContentTypeMapping.html +0 -284
- package/docs/types/TagDimensionType.html +0 -286
- package/docs/types/TagElement.html +0 -294
- package/docs/types/TagEvents.html +0 -337
- package/docs/types/TagGLTFObject.html +0 -307
- package/docs/types/TagHooks.html +0 -284
- package/docs/types/TagId.html +0 -284
- package/docs/types/TagInstance.html +0 -362
- package/docs/types/TagPointType.html +0 -287
- package/docs/types/TagRendererMap.html +0 -291
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -284
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -284
- package/docs/types/WorkCode.html +0 -284
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -294
- package/docs/variables/PLUGIN.html +0 -284
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -287
- package/docs/variables/ROOM_TYPE_MAP.html +0 -294
- package/docs/variables/defaultGlobalConfig.html +0 -284
- package/docs/variables/itemLabelPluginServerParams.html +0 -291
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -291
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -291
- package/libs/PanoTagPlugin/utils/tag/canVisibleInModel.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/canVisibleInModel.js +0 -30
|
@@ -79,8 +79,7 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
79
79
|
import "../../../shared-utils/safeObj.js";
|
|
80
80
|
import "../../utils/Cache.js";
|
|
81
81
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
82
|
-
|
|
83
|
-
class At extends D {
|
|
82
|
+
class Et extends D {
|
|
84
83
|
constructor(i, s) {
|
|
85
84
|
super(i, s);
|
|
86
85
|
l(this, "loading", !1);
|
|
@@ -133,5 +132,5 @@ class At extends D {
|
|
|
133
132
|
}
|
|
134
133
|
}
|
|
135
134
|
export {
|
|
136
|
-
|
|
135
|
+
Et as ModelTag
|
|
137
136
|
};
|
|
@@ -58,9 +58,8 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
58
58
|
import "../../../shared-utils/safeObj.js";
|
|
59
59
|
import "../../utils/Cache.js";
|
|
60
60
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
61
|
-
import "../../utils/tag/canVisibleInModel.js";
|
|
62
61
|
const P = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
|
|
63
|
-
class
|
|
62
|
+
class Re extends f {
|
|
64
63
|
constructor(t, e) {
|
|
65
64
|
super(t, e), this.state.unfolded = !0;
|
|
66
65
|
}
|
|
@@ -117,5 +116,5 @@ class Te extends f {
|
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
export {
|
|
120
|
-
|
|
119
|
+
Re as PlaneTag
|
|
121
120
|
};
|
|
@@ -7,6 +7,10 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
|
|
|
7
7
|
private __Object__;
|
|
8
8
|
private requestIdleCallbackId?;
|
|
9
9
|
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
10
|
+
/**
|
|
11
|
+
* @description 展开自己,收起其他标签
|
|
12
|
+
*/
|
|
13
|
+
unfoldAndFoldOthers(): void;
|
|
10
14
|
onClick(params: Pick<TagClickParams, 'target'>): void;
|
|
11
15
|
updateVisible(): void;
|
|
12
16
|
applyVisible(): void;
|
|
@@ -51,30 +51,33 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
51
51
|
import "../../../shared-utils/safeObj.js";
|
|
52
52
|
import "../../utils/Cache.js";
|
|
53
53
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
54
|
-
import "../../utils/tag/canVisibleInModel.js";
|
|
55
54
|
const v = new u.Vector2();
|
|
56
|
-
class
|
|
57
|
-
constructor(t,
|
|
58
|
-
super(t,
|
|
55
|
+
class gt extends g {
|
|
56
|
+
constructor(t, e) {
|
|
57
|
+
super(t, e);
|
|
59
58
|
a(this, "__Object__");
|
|
60
59
|
a(this, "requestIdleCallbackId");
|
|
61
60
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
/**
|
|
62
|
+
* @description 展开自己,收起其他标签
|
|
63
|
+
*/
|
|
64
|
+
unfoldAndFoldOthers() {
|
|
65
|
+
const t = this.can("fold"), e = this.can("unfold");
|
|
66
|
+
t && e && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
|
|
67
|
+
o.id !== this.id && o.fold();
|
|
68
68
|
}));
|
|
69
69
|
}
|
|
70
|
+
onClick(t) {
|
|
71
|
+
t.target === "TagPoint" && this.unfoldAndFoldOthers();
|
|
72
|
+
}
|
|
70
73
|
updateVisible() {
|
|
71
74
|
this.requestIdleCallbackId && b(this.requestIdleCallbackId), this.requestIdleCallbackId = y(() => {
|
|
72
75
|
super.updateVisible();
|
|
73
76
|
});
|
|
74
77
|
}
|
|
75
78
|
applyVisible() {
|
|
76
|
-
var t,
|
|
77
|
-
this.currentVisible && this.updateScreenPosition(), (o = (
|
|
79
|
+
var t, e, o, i;
|
|
80
|
+
this.currentVisible && this.updateScreenPosition(), (o = (e = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : e.css3DObject) == null || o.setVisible(this.currentVisible), (i = this.tag3DContentSvelte) == null || i.svelteApp.$set({
|
|
78
81
|
state: this.plugin.state,
|
|
79
82
|
temporaryState: this.temporaryState
|
|
80
83
|
}), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -90,8 +93,8 @@ class bt extends g {
|
|
|
90
93
|
* @param {boolean} unfolded
|
|
91
94
|
*/
|
|
92
95
|
setUnfold(t) {
|
|
93
|
-
const
|
|
94
|
-
|
|
96
|
+
const e = this.can("fold"), o = this.can("unfold");
|
|
97
|
+
e && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
95
98
|
}
|
|
96
99
|
setPosition(t) {
|
|
97
100
|
this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -100,15 +103,15 @@ class bt extends g {
|
|
|
100
103
|
var l;
|
|
101
104
|
if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
|
|
102
105
|
return;
|
|
103
|
-
const { force:
|
|
106
|
+
const { force: e = !1 } = t != null ? t : {}, o = e ? this.state.visible : this.currentVisible, i = (l = this.__Object__) != null ? l : {
|
|
104
107
|
timeoutId: void 0,
|
|
105
108
|
inAnimation: !1
|
|
106
109
|
};
|
|
107
|
-
if (this.__Object__ =
|
|
110
|
+
if (this.__Object__ = i, !o && this.screenPosition ? (i.inAnimation = !0, i.timeoutId = setTimeout(() => {
|
|
108
111
|
requestAnimationFrame(() => {
|
|
109
|
-
this.currentVisible || (
|
|
112
|
+
this.currentVisible || (i.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
110
113
|
});
|
|
111
|
-
}, 1e3)) :
|
|
114
|
+
}, 1e3)) : i.timeoutId && (clearTimeout(i.timeoutId), i.inAnimation = !1, i.timeoutId = void 0), !o && !i.inAnimation)
|
|
112
115
|
return;
|
|
113
116
|
const r = this.computeTagProject();
|
|
114
117
|
if (r) {
|
|
@@ -130,8 +133,8 @@ class bt extends g {
|
|
|
130
133
|
updateUnfoldedByPanoIndex() {
|
|
131
134
|
const t = this.getUnfoldedByPanoIndex();
|
|
132
135
|
if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
|
|
133
|
-
const
|
|
134
|
-
typeof
|
|
136
|
+
const e = this.getConfig();
|
|
137
|
+
typeof e.unfoldedConfig == "object" && e.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
|
|
135
138
|
}
|
|
136
139
|
}
|
|
137
140
|
computeNormal() {
|
|
@@ -142,5 +145,5 @@ class bt extends g {
|
|
|
142
145
|
}
|
|
143
146
|
}
|
|
144
147
|
export {
|
|
145
|
-
|
|
148
|
+
gt as PointTag
|
|
146
149
|
};
|
|
@@ -159,7 +159,6 @@ import "../../shared-utils/five/getFloorIndex.js";
|
|
|
159
159
|
import "../../shared-utils/safeObj.js";
|
|
160
160
|
import "../utils/Cache.js";
|
|
161
161
|
import "../../CruisePlugin/utils/sleep.js";
|
|
162
|
-
import "../utils/tag/canVisibleInModel.js";
|
|
163
162
|
import "../tag.config.js";
|
|
164
163
|
import "../utils/normalPositionToPositions.js";
|
|
165
164
|
import "../../vendor/svelte/store/index.js";
|
|
@@ -171,7 +170,7 @@ import "../../shared-utils/five/FiveDomEvents.js";
|
|
|
171
170
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
172
171
|
import "../../shared-utils/three/THREERaycaster.js";
|
|
173
172
|
import "../../base/BasePlugin.js";
|
|
174
|
-
class
|
|
173
|
+
class Me extends U {
|
|
175
174
|
constructor(t) {
|
|
176
175
|
super(t);
|
|
177
176
|
c(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -322,5 +321,5 @@ class Pe extends U {
|
|
|
322
321
|
}
|
|
323
322
|
}
|
|
324
323
|
export {
|
|
325
|
-
|
|
324
|
+
Me as TagRender
|
|
326
325
|
};
|
|
@@ -119,10 +119,6 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
119
119
|
private handleHide;
|
|
120
120
|
private handleEnable;
|
|
121
121
|
private handleDisable;
|
|
122
|
-
/**
|
|
123
|
-
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
124
|
-
*/
|
|
125
|
-
private addEventListener;
|
|
126
122
|
private addResizeListener;
|
|
127
123
|
private addResizeObserver;
|
|
128
124
|
private handleFiveModeChange;
|
|
@@ -136,6 +132,10 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
136
132
|
private onFiveEveryReady;
|
|
137
133
|
private setUnfoldedByCamera;
|
|
138
134
|
private changeTagMode;
|
|
135
|
+
/**
|
|
136
|
+
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
137
|
+
*/
|
|
138
|
+
private addEventListener;
|
|
139
139
|
render: () => void;
|
|
140
140
|
}
|
|
141
141
|
export default PanoTagPluginController;
|
|
@@ -171,7 +171,6 @@ import "../../shared-utils/url/getUrl.js";
|
|
|
171
171
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
172
172
|
import "../utils/Cache.js";
|
|
173
173
|
import "../../CruisePlugin/utils/sleep.js";
|
|
174
|
-
import "../utils/tag/canVisibleInModel.js";
|
|
175
174
|
import "./TagUtil.js";
|
|
176
175
|
import "../tag.config.js";
|
|
177
176
|
import "../utils/normalPositionToPositions.js";
|
|
@@ -186,8 +185,8 @@ import "../../base/BasePlugin.js";
|
|
|
186
185
|
import "../utils/requestIdleCallback.js";
|
|
187
186
|
import "../Components/TagItem.js";
|
|
188
187
|
import "../Components/Common/TagPoint.js";
|
|
189
|
-
const S = "Dnalogel-PanoTagPlugin",
|
|
190
|
-
class
|
|
188
|
+
const S = "Dnalogel-PanoTagPlugin", Qi = (d) => `${S}--${d}`;
|
|
189
|
+
class $i extends R {
|
|
191
190
|
constructor(e, t) {
|
|
192
191
|
super(e);
|
|
193
192
|
/** state */
|
|
@@ -259,7 +258,7 @@ class Wi extends R {
|
|
|
259
258
|
this.tags.forEach((e) => e.updateVisible());
|
|
260
259
|
});
|
|
261
260
|
p(this, "onFiveEveryReady", () => {
|
|
262
|
-
this.setUnfoldedByCamera(), G(this.five.getCurrentState().mode) && this.
|
|
261
|
+
this.setUnfoldedByCamera(), G(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
|
|
263
262
|
});
|
|
264
263
|
p(this, "render", () => {
|
|
265
264
|
this.renderQueue.forEach((e, t) => {
|
|
@@ -535,21 +534,6 @@ class Wi extends R {
|
|
|
535
534
|
(s = o.tag3DContentSvelte) == null || s.dispose(), o.tag3DContentSvelte = void 0;
|
|
536
535
|
}), this.five.needsRender = !0;
|
|
537
536
|
}
|
|
538
|
-
/**
|
|
539
|
-
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
540
|
-
*/
|
|
541
|
-
addEventListener() {
|
|
542
|
-
const { five: e, hooks: t } = this;
|
|
543
|
-
let i = !1;
|
|
544
|
-
const o = y(() => {
|
|
545
|
-
i || (i = !0, e.ready().then(() => {
|
|
546
|
-
this.onFiveEveryReady(), i = !1;
|
|
547
|
-
}));
|
|
548
|
-
}, 150);
|
|
549
|
-
return e.on("cameraUpdate", o), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.handleFiveModeChange), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), e.on("render.prepare", this.render), t.on("click", this.clickhandler), () => {
|
|
550
|
-
e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.handleFiveModeChange), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.off("cameraUpdate", o), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), e.off("render.prepare", this.render), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
|
|
551
|
-
};
|
|
552
|
-
}
|
|
553
537
|
addResizeListener() {
|
|
554
538
|
if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
|
|
555
539
|
const e = this.addResizeObserver();
|
|
@@ -598,9 +582,24 @@ class Wi extends R {
|
|
|
598
582
|
var i, o, s, n, r, h;
|
|
599
583
|
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (s = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : s.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((g) => g == null ? void 0 : g()), e.tag3DContentSvelte = void 0);
|
|
600
584
|
}
|
|
585
|
+
/**
|
|
586
|
+
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
587
|
+
*/
|
|
588
|
+
addEventListener() {
|
|
589
|
+
const { five: e, hooks: t } = this;
|
|
590
|
+
let i = !1;
|
|
591
|
+
const o = y(() => {
|
|
592
|
+
i || (i = !0, e.ready().then(() => {
|
|
593
|
+
this.onFiveEveryReady(), i = !1;
|
|
594
|
+
}));
|
|
595
|
+
}, 150);
|
|
596
|
+
return e.on("cameraUpdate", o), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.handleFiveModeChange), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), e.on("render.prepare", this.render), t.on("click", this.clickhandler), () => {
|
|
597
|
+
e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.handleFiveModeChange), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.off("cameraUpdate", o), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), e.off("render.prepare", this.render), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
|
|
598
|
+
};
|
|
599
|
+
}
|
|
601
600
|
}
|
|
602
601
|
export {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
602
|
+
$i as PanoTagPluginController,
|
|
603
|
+
$i as default,
|
|
604
|
+
Qi as pluginFlag
|
|
606
605
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as pr } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as mr } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as er, DimensionType as lr, PointType as ar } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "./utils/addDebugPoints.js";
|
|
@@ -138,7 +138,6 @@ import "../shared-utils/five/getFloorIndex.js";
|
|
|
138
138
|
import "../shared-utils/safeObj.js";
|
|
139
139
|
import "./utils/Cache.js";
|
|
140
140
|
import "../CruisePlugin/utils/sleep.js";
|
|
141
|
-
import "./utils/tag/canVisibleInModel.js";
|
|
142
141
|
import "./controller/TagUtil.js";
|
|
143
142
|
import "./tag.config.js";
|
|
144
143
|
import "./utils/normalPositionToPositions.js";
|
|
@@ -160,14 +159,14 @@ import "./Components/TagContainer.js";
|
|
|
160
159
|
import "./Components/TagItem.js";
|
|
161
160
|
import "./Components/Common/TagPoint.js";
|
|
162
161
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
163
|
-
const
|
|
162
|
+
const or = (o, t) => new r(o, t);
|
|
164
163
|
export {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
er as ContentType,
|
|
165
|
+
lr as DimensionType,
|
|
166
|
+
or as PanoTagPlugin,
|
|
168
167
|
r as PanoTagPluginController,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
168
|
+
ar as PointType,
|
|
169
|
+
or as default,
|
|
170
|
+
mr as defaultGlobalConfig,
|
|
171
|
+
pr as pluginFlag
|
|
173
172
|
};
|
|
@@ -60,9 +60,10 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
60
60
|
*/
|
|
61
61
|
visibleFiveMode?: TagVisibleMode | ((tag: TagInstance) => TagVisibleMode);
|
|
62
62
|
/**
|
|
63
|
-
* @description
|
|
63
|
+
* @description 全景标签在模型中可见,点击后进入全景看向标签
|
|
64
|
+
* @default false
|
|
64
65
|
*/
|
|
65
|
-
|
|
66
|
+
entryFromModel?: boolean;
|
|
66
67
|
/**
|
|
67
68
|
* @description 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见
|
|
68
69
|
* @default false
|
|
@@ -2,11 +2,11 @@ function o(e) {
|
|
|
2
2
|
return e.stickType ? e.stickType : e.pointType === "PointTag" && e.dimensionType === "3D" ? "3DPoint" : e.pointType === "PlaneTag" ? "Plane" : "2DPoint";
|
|
3
3
|
}
|
|
4
4
|
function p(e) {
|
|
5
|
-
var t, i,
|
|
5
|
+
var t, i, r, a;
|
|
6
6
|
if (e.stickType || (e.stickType = o(e)), e.contentType === "VRLink" || e.contentType === "PanoLink" || e.contentType === "Link") {
|
|
7
7
|
const n = e;
|
|
8
|
-
!((i = (t = n.data) == null ? void 0 : t.icon) != null && i.url) && !((
|
|
9
|
-
url: "//
|
|
8
|
+
!((i = (t = n.data) == null ? void 0 : t.icon) != null && i.url) && !((a = (r = n.style) == null ? void 0 : r.point) != null && a.url) && (n.data.icon = {
|
|
9
|
+
url: "//vr-static.realsee-cdn.cn/release/web/test.09dee741.png",
|
|
10
10
|
steps: 28
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
2
|
-
function
|
|
2
|
+
function d(e) {
|
|
3
3
|
const t = /* @__PURE__ */ new Map();
|
|
4
4
|
return e.forEach((a) => a.pipes.forEach((s) => t.set(s.id, s))), Array.from(t.values());
|
|
5
5
|
}
|
|
@@ -10,37 +10,37 @@ function v(e) {
|
|
|
10
10
|
);
|
|
11
11
|
return r || console.warn(`Cannot find pipeline with startLibraryID ${a} and endLibraryID ${s}`), r;
|
|
12
12
|
}).filter(c);
|
|
13
|
-
return
|
|
13
|
+
return d(t);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function b(e) {
|
|
16
16
|
if (e.quality === 0)
|
|
17
|
-
return "//
|
|
17
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/1.png";
|
|
18
18
|
if (e.quality === 1)
|
|
19
|
-
return "//
|
|
19
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/2.png";
|
|
20
20
|
if (e.quality === 2)
|
|
21
|
-
return "//
|
|
21
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/3.png";
|
|
22
22
|
if (e.quality === 3)
|
|
23
|
-
return "//
|
|
23
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/4.png";
|
|
24
24
|
if (e.quality === 4)
|
|
25
|
-
return "//
|
|
25
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/5.png";
|
|
26
26
|
if (e.isHot)
|
|
27
|
-
return "//
|
|
27
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/6.png";
|
|
28
28
|
}
|
|
29
29
|
function w(e, t) {
|
|
30
30
|
const a = e.ConnectsDataset.map((r) => {
|
|
31
|
-
const n = r.data,
|
|
32
|
-
const i = e.LinesDataset.find((
|
|
31
|
+
const n = r.data, l = r.start, f = r.end, u = { isHot: r.waterType === 5, quality: r.waterType }, p = n.map((o) => {
|
|
32
|
+
const i = e.LinesDataset.find((g) => g.id === o);
|
|
33
33
|
if (!i)
|
|
34
34
|
return null;
|
|
35
|
-
const
|
|
36
|
-
return { id: i.id, radius: y, water: u, path:
|
|
35
|
+
const m = i.data, y = t != null && t.getPipeRadius ? t.getPipeRadius(i) : 1.6 / 100, q = t != null && t.getPipeUrl ? t.getPipeUrl(u) : b(u);
|
|
36
|
+
return { id: i.id, radius: y, water: u, path: m, texture: q };
|
|
37
37
|
}).filter(c);
|
|
38
|
-
return { startLibraryID:
|
|
38
|
+
return { startLibraryID: l, endLibraryID: f, pipes: p };
|
|
39
39
|
});
|
|
40
|
-
return { pipes:
|
|
40
|
+
return { pipes: d(a), pipelines: a };
|
|
41
41
|
}
|
|
42
42
|
export {
|
|
43
43
|
w as format,
|
|
44
|
-
|
|
44
|
+
b as getDefaultPipeUrl,
|
|
45
45
|
v as getPipesFromLibrary
|
|
46
46
|
};
|