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