@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
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Z = Object.defineProperty, _ = Object.defineProperties;
|
|
2
|
+
var G = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var y = Object.getOwnPropertySymbols;
|
|
4
|
+
var D = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var x = (u, i, e) => i in u ? Z(u, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[i] = e, p = (u, i) => {
|
|
6
6
|
for (var e in i || (i = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, M = (
|
|
13
|
-
var
|
|
7
|
+
D.call(i, e) && x(u, e, i[e]);
|
|
8
|
+
if (y)
|
|
9
|
+
for (var e of y(i))
|
|
10
|
+
j.call(i, e) && x(u, e, i[e]);
|
|
11
|
+
return u;
|
|
12
|
+
}, M = (u, i) => _(u, G(i));
|
|
13
|
+
var B = (u, i) => {
|
|
14
14
|
var e = {};
|
|
15
|
-
for (var t in
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
for (var t of
|
|
19
|
-
i.indexOf(t) < 0 &&
|
|
15
|
+
for (var t in u)
|
|
16
|
+
D.call(u, t) && i.indexOf(t) < 0 && (e[t] = u[t]);
|
|
17
|
+
if (u != null && y)
|
|
18
|
+
for (var t of y(u))
|
|
19
|
+
i.indexOf(t) < 0 && j.call(u, t) && (e[t] = u[t]);
|
|
20
20
|
return e;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
22
|
+
var f = (u, i, e) => (x(u, typeof i != "symbol" ? i + "" : i, e), e);
|
|
23
|
+
var I = (u, i, e) => new Promise((t, r) => {
|
|
24
|
+
var n = (s) => {
|
|
25
25
|
try {
|
|
26
|
-
o(e.next(
|
|
27
|
-
} catch (
|
|
28
|
-
|
|
26
|
+
o(e.next(s));
|
|
27
|
+
} catch (a) {
|
|
28
|
+
r(a);
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, l = (s) => {
|
|
31
31
|
try {
|
|
32
|
-
o(e.throw(
|
|
33
|
-
} catch (
|
|
34
|
-
|
|
32
|
+
o(e.throw(s));
|
|
33
|
+
} catch (a) {
|
|
34
|
+
r(a);
|
|
35
35
|
}
|
|
36
|
-
}, o = (
|
|
37
|
-
o((e = e.apply(
|
|
36
|
+
}, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
|
|
37
|
+
o((e = e.apply(u, i)).next());
|
|
38
38
|
});
|
|
39
|
-
import { Subscribe as
|
|
40
|
-
import { calculateTagConfig as
|
|
41
|
-
import { getTagStickType as
|
|
42
|
-
import {
|
|
43
|
-
import * as
|
|
39
|
+
import { Subscribe as K } from "../../../shared-utils/Subscribe.js";
|
|
40
|
+
import { calculateTagConfig as U } from "../../utils/tag/calculateTagConfig.js";
|
|
41
|
+
import { getTagStickType as Y } from "../../utils/tag/format.js";
|
|
42
|
+
import { isPanoramaLike as w, isModelLike as T } from "../../../shared-utils/five/mode.js";
|
|
43
|
+
import * as S from "three";
|
|
44
44
|
import "hammerjs";
|
|
45
45
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
46
46
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
47
47
|
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
48
|
import "../../../shared-utils/three/THREESphere.js";
|
|
49
|
-
import { blink as
|
|
50
|
-
import { vectorToCoordinates as
|
|
51
|
-
import { transformPosition as
|
|
52
|
-
import { isNil as
|
|
49
|
+
import { blink as ee, reblink as ie } from "../../../shared-utils/three/blink.js";
|
|
50
|
+
import { vectorToCoordinates as te } from "../../../shared-utils/vectorToCoordinate.js";
|
|
51
|
+
import { transformPosition as A } from "../../../shared-utils/five/transformPosition.js";
|
|
52
|
+
import { isNil as O, notNil as R } from "../../../shared-utils/isNil.js";
|
|
53
53
|
import { lookPoint as ne } from "../../../shared-utils/five/lookPoint.js";
|
|
54
54
|
import { uuid as se } from "../../../shared-utils/uuid.js";
|
|
55
|
-
import { objectAssignDeepExports as
|
|
55
|
+
import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
56
56
|
import { anyPositionToVector3 as E } from "../../../shared-utils/positionToVector3.js";
|
|
57
57
|
import { getTagPosition as L, getTagCenterPosition as $ } from "../../utils/tagPosition.js";
|
|
58
|
-
import { checkRange as
|
|
58
|
+
import { checkRange as P } from "../../utils/checkRange.js";
|
|
59
59
|
import { centerPoint as oe } from "../../../shared-utils/three/centerPoint.js";
|
|
60
60
|
import { isMediaPlaneTag as re, isMediaModelTag as V } from "../../utils/tag/tagCheck.js";
|
|
61
61
|
import { getUrlExt as N } from "../../../shared-utils/url/getUrl.js";
|
|
@@ -64,7 +64,6 @@ import { safeObj as z } from "../../../shared-utils/safeObj.js";
|
|
|
64
64
|
import { toArray as ae } from "../../../shared-utils/util.js";
|
|
65
65
|
import { Cache as fe } from "../../utils/Cache.js";
|
|
66
66
|
import { sleep as de } from "../../../CruisePlugin/utils/sleep.js";
|
|
67
|
-
import { canVisibleInModel as ce } from "../../utils/tag/canVisibleInModel.js";
|
|
68
67
|
import "../../../shared-utils/typescript/entries.js";
|
|
69
68
|
import "../../utils/tag/adaptConfig.js";
|
|
70
69
|
import "../../typings/tag/TagConfig.js";
|
|
@@ -85,57 +84,58 @@ import "../../../shared-utils/Utils/FiveUtil.js";
|
|
|
85
84
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
86
85
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
87
86
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
class
|
|
87
|
+
const C = new S.Raycaster();
|
|
88
|
+
C.params.Points.threshold = 0.1;
|
|
89
|
+
class ri {
|
|
91
90
|
constructor(i, e) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
91
|
+
f(this, "plugin");
|
|
92
|
+
f(this, "id");
|
|
93
|
+
f(this, "contentType");
|
|
94
|
+
f(this, "stickType");
|
|
95
|
+
f(this, "enabled");
|
|
96
|
+
f(this, "config");
|
|
97
|
+
f(this, "data");
|
|
98
|
+
f(this, "state");
|
|
99
|
+
f(this, "temporaryState", { visible: !0 });
|
|
100
|
+
f(this, "originPosition");
|
|
101
|
+
f(this, "position");
|
|
102
|
+
f(this, "fiveState");
|
|
103
|
+
f(this, "model");
|
|
104
|
+
f(this, "matrix");
|
|
105
|
+
f(this, "screenPosition");
|
|
106
|
+
f(this, "normal");
|
|
107
|
+
f(this, "mediaPlane");
|
|
108
|
+
f(this, "hooks");
|
|
109
|
+
f(this, "zIndex");
|
|
110
|
+
f(this, "play");
|
|
111
|
+
f(this, "pause");
|
|
112
|
+
f(this, "tag3DContentSvelte");
|
|
113
|
+
f(this, "dom");
|
|
114
|
+
f(this, "contentDom");
|
|
115
|
+
f(this, "initialConfig");
|
|
116
|
+
f(this, "computedConfig");
|
|
117
|
+
f(this, "cache");
|
|
118
|
+
f(this, "entryFromModel");
|
|
119
|
+
var s, a, c, g;
|
|
120
120
|
this.plugin = i;
|
|
121
|
-
const t =
|
|
121
|
+
const t = Y(e);
|
|
122
122
|
e.stickType = t;
|
|
123
|
-
const
|
|
124
|
-
e.initialConfig =
|
|
125
|
-
const
|
|
126
|
-
e.config = o, this.id = (
|
|
123
|
+
const r = JSON.parse(JSON.stringify(e.data)), n = (s = e.initialConfig) != null ? s : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
|
|
124
|
+
e.initialConfig = n;
|
|
125
|
+
const l = U(e, i.config), o = this.getConfig(e);
|
|
126
|
+
e.config = o, this.id = (a = e.id) != null ? a : se(), this.enabled = (c = e.enabled) != null ? c : !0, this.contentType = e.contentType, this.data = (g = o.initialData) != null && g.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
|
|
127
127
|
visible: void 0,
|
|
128
128
|
unfolded: !this.can("fold")
|
|
129
129
|
}, o.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
|
|
130
130
|
const d = e.originPosition;
|
|
131
131
|
if (!d)
|
|
132
132
|
return;
|
|
133
|
-
const
|
|
134
|
-
return Array.isArray(d) && d.length === 4 ? d.map(E).map((
|
|
133
|
+
const m = i.workUtil.transform;
|
|
134
|
+
return Array.isArray(d) && d.length === 4 ? d.map(E).map((h) => A(h, m).toArray()) : A(E(d), m).toArray();
|
|
135
135
|
})(), this.matrix = e.matrix ? (() => {
|
|
136
|
-
const d = new
|
|
136
|
+
const d = new S.Matrix4().fromArray(e.matrix);
|
|
137
137
|
return d.premultiply(i.workUtil.transform), d.elements;
|
|
138
|
-
})() : e.matrix, this.initialConfig =
|
|
138
|
+
})() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new K(), Object.keys(e).forEach((d) => {
|
|
139
139
|
this[d] === void 0 && e[d] !== void 0 && (this[d] = e[d]);
|
|
140
140
|
});
|
|
141
141
|
}
|
|
@@ -153,9 +153,9 @@ class ai {
|
|
|
153
153
|
return oe(...Array.isArray(i) ? i : [i]);
|
|
154
154
|
}
|
|
155
155
|
get currentConfig() {
|
|
156
|
-
var
|
|
157
|
-
const i =
|
|
158
|
-
return (
|
|
156
|
+
var r, n;
|
|
157
|
+
const i = U(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (r = i.configWithFiveMode) == null ? void 0 : r[e];
|
|
158
|
+
return (n = t != null ? t : i) != null ? n : {};
|
|
159
159
|
}
|
|
160
160
|
get currentVisible() {
|
|
161
161
|
return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
|
|
@@ -173,22 +173,22 @@ class ai {
|
|
|
173
173
|
* @description 找到标签
|
|
174
174
|
*/
|
|
175
175
|
find(i) {
|
|
176
|
-
return
|
|
177
|
-
var
|
|
176
|
+
return I(this, null, function* () {
|
|
177
|
+
var r;
|
|
178
178
|
const e = this.fiveState;
|
|
179
179
|
if (!this.fiveState)
|
|
180
180
|
return;
|
|
181
|
-
const t = (
|
|
181
|
+
const t = (r = i == null ? void 0 : i.targetMode) != null ? r : this.five.state.mode;
|
|
182
182
|
if (t === "Panorama") {
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
183
|
+
const n = e == null ? void 0 : e.panoIndex;
|
|
184
|
+
if (O(n))
|
|
185
185
|
return;
|
|
186
|
-
const
|
|
187
|
-
this.five.setState(
|
|
186
|
+
const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
|
|
187
|
+
this.five.setState(p({
|
|
188
188
|
mode: "Panorama",
|
|
189
189
|
workCode: this.workUtil.workCode,
|
|
190
|
-
panoIndex:
|
|
191
|
-
},
|
|
190
|
+
panoIndex: n
|
|
191
|
+
}, te(o))), yield this.five.ready();
|
|
192
192
|
} else
|
|
193
193
|
t === "Mapview" && (yield ne(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
|
|
194
194
|
});
|
|
@@ -197,25 +197,25 @@ class ai {
|
|
|
197
197
|
* @description 闪烁
|
|
198
198
|
*/
|
|
199
199
|
blink(i) {
|
|
200
|
-
return
|
|
201
|
-
var o,
|
|
202
|
-
const e = (o = this.enabled) != null ? o : !0, t = (
|
|
203
|
-
|
|
204
|
-
const
|
|
205
|
-
var
|
|
206
|
-
const
|
|
207
|
-
return
|
|
200
|
+
return I(this, null, function* () {
|
|
201
|
+
var o, s;
|
|
202
|
+
const e = (o = this.enabled) != null ? o : !0, t = (s = this.state) == null ? void 0 : s.visible, r = e && t;
|
|
203
|
+
r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.plugin.render(), yield de(0), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
204
|
+
const n = (() => {
|
|
205
|
+
var c;
|
|
206
|
+
const a = [];
|
|
207
|
+
return a.push(this.dom), this.stickType !== "2DPoint" && a.push(this.contentDom), a.push((c = this.model) == null ? void 0 : c.object), a.push(this.mediaPlane), a.filter(Boolean);
|
|
208
208
|
})();
|
|
209
|
-
if (!
|
|
209
|
+
if (!n.length)
|
|
210
210
|
return;
|
|
211
|
-
yield (
|
|
211
|
+
yield (r ? ee : ie)(n, p({
|
|
212
212
|
begin: () => {
|
|
213
|
-
|
|
213
|
+
r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
214
214
|
},
|
|
215
215
|
updateRender: () => {
|
|
216
216
|
this.five.needsRender = !0;
|
|
217
217
|
}
|
|
218
|
-
}, i)).finished, e === !1 && (this.enabled = !1), t === !1 && this.updateVisible(),
|
|
218
|
+
}, i)).finished, e === !1 && (this.enabled = !1), t === !1 && this.updateVisible(), r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
@@ -223,6 +223,11 @@ class ai {
|
|
|
223
223
|
*/
|
|
224
224
|
unfold() {
|
|
225
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* @description 展开自己,收起其他标签
|
|
228
|
+
*/
|
|
229
|
+
unfoldAndFoldOthers() {
|
|
230
|
+
}
|
|
226
231
|
/**
|
|
227
232
|
* @description 收起
|
|
228
233
|
*/
|
|
@@ -257,7 +262,7 @@ class ai {
|
|
|
257
262
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
258
263
|
*/
|
|
259
264
|
setData(i, e = !0) {
|
|
260
|
-
e ? this.data =
|
|
265
|
+
e ? this.data = b(this.data, i) : this.data = p(p({}, this.data), i), this.hooks.emit("dataChanged", this.data);
|
|
261
266
|
}
|
|
262
267
|
/**
|
|
263
268
|
* @description 修改标签位置
|
|
@@ -270,7 +275,7 @@ class ai {
|
|
|
270
275
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
271
276
|
*/
|
|
272
277
|
set(i, e = !0) {
|
|
273
|
-
this.plugin.tagsLengthWillUpdate = !0, e ?
|
|
278
|
+
this.plugin.tagsLengthWillUpdate = !0, e ? b(this, i) : Object.assign(this, i), this.cache.clear();
|
|
274
279
|
}
|
|
275
280
|
updateConfig() {
|
|
276
281
|
var t;
|
|
@@ -278,8 +283,8 @@ class ai {
|
|
|
278
283
|
this.computedConfig = i;
|
|
279
284
|
const e = this.getConfig();
|
|
280
285
|
if (this.config = e, this.config.initialData) {
|
|
281
|
-
const
|
|
282
|
-
this.data = (t = e.initialData) != null && t.important ?
|
|
286
|
+
const r = JSON.parse(JSON.stringify(this.data));
|
|
287
|
+
this.data = (t = e.initialData) != null && t.important ? b(this.data, r, e.initialData) : b(this.data, e.initialData, r);
|
|
283
288
|
}
|
|
284
289
|
this.cache.clear();
|
|
285
290
|
}
|
|
@@ -291,20 +296,20 @@ class ai {
|
|
|
291
296
|
this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
|
|
292
297
|
}
|
|
293
298
|
getConfig(i, e) {
|
|
294
|
-
var
|
|
295
|
-
const t =
|
|
296
|
-
return (
|
|
299
|
+
var l, o, s;
|
|
300
|
+
const t = U(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (o = t.configWithFiveMode) == null ? void 0 : o[r];
|
|
301
|
+
return (s = n != null ? n : t) != null ? s : {};
|
|
297
302
|
}
|
|
298
303
|
getDistance(i, e = 3) {
|
|
299
|
-
const t =
|
|
300
|
-
return !
|
|
304
|
+
const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, o = this.centerPosition;
|
|
305
|
+
return !l || !o ? -1 : l.distanceTo(o);
|
|
301
306
|
}
|
|
302
307
|
getVisible(i) {
|
|
303
308
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
304
309
|
return !1;
|
|
305
|
-
const e =
|
|
310
|
+
const e = p(p({}, this.five.getCurrentState()), i);
|
|
306
311
|
let t = this.cache.getVisible(this, e);
|
|
307
|
-
return
|
|
312
|
+
return O(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
|
|
308
313
|
}
|
|
309
314
|
getUnfoldedByPanoIndex(i) {
|
|
310
315
|
if (!this.currentVisible)
|
|
@@ -358,132 +363,159 @@ class ai {
|
|
|
358
363
|
return i != null ? i : "Dom";
|
|
359
364
|
}
|
|
360
365
|
computeVisible(i) {
|
|
361
|
-
const e =
|
|
366
|
+
const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e, n = [];
|
|
362
367
|
return (() => {
|
|
363
|
-
var
|
|
364
|
-
const
|
|
365
|
-
if (typeof
|
|
368
|
+
var a, g, d;
|
|
369
|
+
const s = (a = this.getConfig().visibleConfig) != null ? a : {};
|
|
370
|
+
if (typeof s == "function")
|
|
366
371
|
return {
|
|
367
|
-
value:
|
|
368
|
-
checkedList:
|
|
372
|
+
value: s(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
|
|
373
|
+
checkedList: n,
|
|
369
374
|
reason: "config function result"
|
|
370
375
|
};
|
|
371
376
|
{
|
|
372
|
-
if (
|
|
373
|
-
return { value: !1, checkedList:
|
|
374
|
-
if (
|
|
375
|
-
return { value: !0, checkedList:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
if (
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
checkedList:
|
|
383
|
-
reason: "current mode is not included in visibleFiveMode",
|
|
384
|
-
visibleFiveMode: n.visibleFiveMode,
|
|
385
|
-
mode: s
|
|
386
|
-
};
|
|
387
|
-
if (n.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (s === "Floorplan" || s === "Mapview")) {
|
|
388
|
-
const d = this.computeVisibleByFloorIndex(), { value: y } = d, C = O(d, ["value"]);
|
|
389
|
-
if (y === !1)
|
|
390
|
-
return h({ value: !1, checkedList: r, reason: "followModelVisibility check failed" }, C);
|
|
377
|
+
if (s.keep === "hidden")
|
|
378
|
+
return { value: !1, checkedList: n, reason: "config.keep is hidden" };
|
|
379
|
+
if (s.keep === "visible")
|
|
380
|
+
return { value: !0, checkedList: n, reason: "config.keep is visible" };
|
|
381
|
+
const m = this.computeVisibleByFiveMode(s, r);
|
|
382
|
+
if ((m == null ? void 0 : m.value) === !1)
|
|
383
|
+
return m;
|
|
384
|
+
if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
|
|
385
|
+
const c = this.computeVisibleByFloorIndex(), { value: h } = c, v = B(c, ["value"]);
|
|
386
|
+
if (h === !1)
|
|
387
|
+
return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
|
|
391
388
|
}
|
|
392
|
-
if (
|
|
393
|
-
if (
|
|
389
|
+
if (w(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
|
|
390
|
+
if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
|
|
394
391
|
return {
|
|
395
392
|
value: !1,
|
|
396
|
-
checkedList:
|
|
397
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${
|
|
393
|
+
checkedList: n,
|
|
394
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${s.visiblePanoIndex}`
|
|
398
395
|
};
|
|
399
|
-
if (
|
|
396
|
+
if (s.visiblePanoIndex === "current" && t !== ((g = this.fiveState) == null ? void 0 : g.panoIndex))
|
|
400
397
|
return {
|
|
401
398
|
value: !1,
|
|
402
|
-
checkedList:
|
|
403
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(
|
|
399
|
+
checkedList: n,
|
|
400
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(d = this.fiveState) == null ? void 0 : d.panoIndex}`
|
|
404
401
|
};
|
|
405
402
|
}
|
|
406
|
-
if (
|
|
407
|
-
const
|
|
408
|
-
if (
|
|
403
|
+
if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
|
|
404
|
+
const h = this.getDistance(e, 1);
|
|
405
|
+
if (P(h, s.visibleDistance) === !1)
|
|
409
406
|
return {
|
|
410
407
|
value: !1,
|
|
411
|
-
checkedList:
|
|
408
|
+
checkedList: n,
|
|
412
409
|
panoIndex: t,
|
|
413
|
-
visibleDistance:
|
|
414
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
410
|
+
visibleDistance: s.visibleDistance,
|
|
411
|
+
reason: `distance is not in visibleDistance. distance: ${h}, visibleDistance: ${s.visibleDistance.min} - ${s.visibleDistance.max}`
|
|
415
412
|
};
|
|
416
413
|
}
|
|
417
|
-
if (
|
|
418
|
-
if (
|
|
414
|
+
if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
|
|
415
|
+
if (n.push("intersectRaycaster"), t === void 0)
|
|
419
416
|
return {
|
|
420
417
|
value: !1,
|
|
421
|
-
checkedList:
|
|
418
|
+
checkedList: n,
|
|
422
419
|
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
423
420
|
};
|
|
424
|
-
const
|
|
425
|
-
if (
|
|
426
|
-
return Object.assign(
|
|
421
|
+
const h = this.computeVisibleByIntersect(t);
|
|
422
|
+
if (h.value === !1)
|
|
423
|
+
return Object.assign(h, { checkedList: n });
|
|
427
424
|
}
|
|
428
425
|
return {
|
|
429
426
|
value: !0,
|
|
430
|
-
checkedList:
|
|
427
|
+
checkedList: n,
|
|
431
428
|
reason: "all check passed"
|
|
432
429
|
};
|
|
433
430
|
}
|
|
434
431
|
})();
|
|
435
432
|
}
|
|
433
|
+
/**
|
|
434
|
+
* @description 计算标签可见性
|
|
435
|
+
*/
|
|
436
|
+
computeVisibleByFiveMode(i, e) {
|
|
437
|
+
const t = () => {
|
|
438
|
+
var l, o;
|
|
439
|
+
let n = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
|
|
440
|
+
if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
|
|
441
|
+
return n.includes(e);
|
|
442
|
+
if (n === "ModelLike")
|
|
443
|
+
return T(e);
|
|
444
|
+
if (n === "PanoramaLike")
|
|
445
|
+
return !w(e);
|
|
446
|
+
if (n === "all")
|
|
447
|
+
return !0;
|
|
448
|
+
if (typeof n == "string")
|
|
449
|
+
return n === e;
|
|
450
|
+
};
|
|
451
|
+
if ((() => {
|
|
452
|
+
var l;
|
|
453
|
+
const n = t();
|
|
454
|
+
if (R((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
|
|
455
|
+
if (T(e) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, T(e))
|
|
456
|
+
return !0;
|
|
457
|
+
} else
|
|
458
|
+
this.entryFromModel = !1;
|
|
459
|
+
return n;
|
|
460
|
+
})() === !1)
|
|
461
|
+
return {
|
|
462
|
+
value: !1,
|
|
463
|
+
reason: "current mode is not included in visibleFiveMode",
|
|
464
|
+
visibleFiveMode: i.visibleFiveMode,
|
|
465
|
+
mode: e
|
|
466
|
+
};
|
|
467
|
+
}
|
|
436
468
|
/** 通过射线检测标签可用性 */
|
|
437
469
|
computeVisibleByIntersect(i) {
|
|
438
|
-
var
|
|
439
|
-
const e = z(z((
|
|
440
|
-
if (
|
|
470
|
+
var s, a, c, g;
|
|
471
|
+
const e = z(z((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = w(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
472
|
+
if (r === void 0)
|
|
441
473
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
442
|
-
const
|
|
474
|
+
const n = ae(
|
|
443
475
|
(() => {
|
|
444
|
-
var
|
|
445
|
-
const d = (
|
|
476
|
+
var m;
|
|
477
|
+
const d = (m = e.checkPoints) != null ? m : "center";
|
|
446
478
|
return d === "center" ? $(this) : d === "corner" ? L(this) : Array.isArray(d) ? d : [];
|
|
447
479
|
})()
|
|
448
480
|
);
|
|
449
|
-
let
|
|
450
|
-
for (const d of
|
|
451
|
-
const
|
|
452
|
-
let
|
|
453
|
-
|
|
454
|
-
const [
|
|
455
|
-
|
|
456
|
-
const
|
|
481
|
+
let l = 0, o = 0;
|
|
482
|
+
for (const d of n) {
|
|
483
|
+
const m = new S.Vector3().subVectors(d, r).normalize();
|
|
484
|
+
let h;
|
|
485
|
+
C.set(r, m);
|
|
486
|
+
const [v] = this.fiveUtil.model.intersectRaycaster(C);
|
|
487
|
+
h = v == null ? void 0 : v.distance;
|
|
488
|
+
const k = (() => {
|
|
457
489
|
if (!V(this))
|
|
458
490
|
return;
|
|
459
|
-
const
|
|
491
|
+
const q = this.plugin.tags.filter(V).map((X) => {
|
|
460
492
|
var F;
|
|
461
|
-
return (F =
|
|
462
|
-
}).filter(
|
|
463
|
-
return
|
|
464
|
-
})(),
|
|
465
|
-
|
|
466
|
-
const
|
|
467
|
-
if (
|
|
493
|
+
return (F = X.model) == null ? void 0 : F.object;
|
|
494
|
+
}).filter(R), [Q] = C.intersectObjects(q, !0);
|
|
495
|
+
return Q;
|
|
496
|
+
})(), J = r.distanceTo(d), W = (a = e.distanceAccuracy) != null ? a : 0.01;
|
|
497
|
+
h = Math.min(h != null ? h : 1 / 0, (c = k == null ? void 0 : k.distance) != null ? c : 1 / 0), h + W >= J ? l++ : o++;
|
|
498
|
+
const H = (g = e.needPassed) != null ? g : 1;
|
|
499
|
+
if (l >= H)
|
|
468
500
|
return { value: !0 };
|
|
469
501
|
}
|
|
470
502
|
return o === 0 ? { value: !0 } : {
|
|
471
503
|
value: !1,
|
|
472
504
|
reason: {
|
|
473
505
|
type: "intersectRaycaster check failed",
|
|
474
|
-
passedCount:
|
|
506
|
+
passedCount: l,
|
|
475
507
|
needPassed: e.needPassed,
|
|
476
508
|
model: this.fiveUtil.model.name
|
|
477
509
|
}
|
|
478
510
|
};
|
|
479
511
|
}
|
|
480
512
|
computeVisibleByFloorIndex() {
|
|
481
|
-
var
|
|
513
|
+
var r, n, l, o, s, a, c;
|
|
482
514
|
let i = 0;
|
|
483
|
-
const e = (
|
|
484
|
-
e !== void 0 ? i = (
|
|
515
|
+
const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
|
|
516
|
+
e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = le(
|
|
485
517
|
this.workUtil.work,
|
|
486
|
-
(
|
|
518
|
+
(c = (a = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? a : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? c : $(this)
|
|
487
519
|
);
|
|
488
520
|
const t = this.fiveUtil.model.shownFloor;
|
|
489
521
|
return {
|
|
@@ -504,7 +536,7 @@ class ai {
|
|
|
504
536
|
return !1;
|
|
505
537
|
if (e.keep === "unfolded")
|
|
506
538
|
return !0;
|
|
507
|
-
if (e.unfoldDistance &&
|
|
539
|
+
if (e.unfoldDistance && P(this.getDistance({ panoIndex: i }), e.unfoldDistance) === !1)
|
|
508
540
|
return !1;
|
|
509
541
|
}
|
|
510
542
|
}
|
|
@@ -522,24 +554,24 @@ class ai {
|
|
|
522
554
|
return;
|
|
523
555
|
if (i.autoUnfold.strategy === "ScreenPostion") {
|
|
524
556
|
const t = this.computeTagProject();
|
|
525
|
-
if (t &&
|
|
557
|
+
if (t && P(t.x, i.autoUnfold.autoUnfoldProjectX) === !1)
|
|
526
558
|
return !1;
|
|
527
559
|
}
|
|
528
560
|
if (i.autoUnfold.strategy === "MinimumDistance") {
|
|
529
|
-
const
|
|
530
|
-
const
|
|
531
|
-
if (!
|
|
561
|
+
const n = this.plugin.filterPointTag.filter((o) => o.currentVisible).filter((o) => {
|
|
562
|
+
const s = this.computeTagProject();
|
|
563
|
+
if (!s)
|
|
532
564
|
return !1;
|
|
533
|
-
const { x:
|
|
534
|
-
return !(Math.abs(
|
|
565
|
+
const { x: a, y: c, z: g } = s;
|
|
566
|
+
return !(Math.abs(g) > 1 || Math.abs(a) > 1 || Math.abs(c) > 1);
|
|
535
567
|
}).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
|
|
536
|
-
var
|
|
537
|
-
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((
|
|
538
|
-
}).map((o) => M(
|
|
539
|
-
const
|
|
540
|
-
return !(
|
|
541
|
-
}).sort((o,
|
|
542
|
-
if (
|
|
568
|
+
var s, a;
|
|
569
|
+
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((a = o.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
|
|
570
|
+
}).map((o) => M(p({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
|
|
571
|
+
const a = s.autoUnfold.distance;
|
|
572
|
+
return !(a && P(o, a) === !1);
|
|
573
|
+
}).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
|
|
574
|
+
if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
543
575
|
return !1;
|
|
544
576
|
}
|
|
545
577
|
return i.autoUnfold.strategy !== "FoldWhenMove";
|
|
@@ -549,22 +581,22 @@ class ai {
|
|
|
549
581
|
const i = this.centerPosition;
|
|
550
582
|
if (!i)
|
|
551
583
|
return;
|
|
552
|
-
const { x: e, y: t, z:
|
|
553
|
-
if (!(
|
|
554
|
-
return { x: e, y: t, z:
|
|
584
|
+
const { x: e, y: t, z: r } = i.project(this.five.camera);
|
|
585
|
+
if (!(r > 1))
|
|
586
|
+
return { x: e, y: t, z: r };
|
|
555
587
|
}
|
|
556
588
|
addObjectClickHandler(i, e, t) {
|
|
557
589
|
if (!e || !this.plugin.domEvents)
|
|
558
590
|
return () => {
|
|
559
591
|
};
|
|
560
|
-
const
|
|
561
|
-
if (!
|
|
592
|
+
const r = () => !(!i.currentVisible || i.loading), n = (l) => {
|
|
593
|
+
if (!r())
|
|
562
594
|
return !1;
|
|
563
|
-
t(
|
|
595
|
+
t(l.origDomEvent);
|
|
564
596
|
};
|
|
565
|
-
return this.plugin.domEvents.addEventListener(e, "click",
|
|
566
|
-
var
|
|
567
|
-
(
|
|
597
|
+
return this.plugin.domEvents.addEventListener(e, "click", n), () => {
|
|
598
|
+
var l;
|
|
599
|
+
(l = this.plugin.domEvents) == null || l.removeEventListener(e, "click", n);
|
|
568
600
|
};
|
|
569
601
|
}
|
|
570
602
|
whyHide() {
|
|
@@ -575,7 +607,7 @@ class ai {
|
|
|
575
607
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
576
608
|
if (!this.enabled)
|
|
577
609
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
578
|
-
const i = M(
|
|
610
|
+
const i = M(p({}, this.computeVisible()), {
|
|
579
611
|
tagInstance: this
|
|
580
612
|
});
|
|
581
613
|
return i.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: i } : this.state.visible ? { reason: "应该是能看见才对", info: i } : i.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: i } : { reason: (e = i.reason.type) != null ? e : i.reason, info: i };
|
|
@@ -590,5 +622,5 @@ class ai {
|
|
|
590
622
|
}
|
|
591
623
|
}
|
|
592
624
|
export {
|
|
593
|
-
|
|
625
|
+
ri as BaseTag
|
|
594
626
|
};
|