@realsee/dnalogel 3.12.0-dev.0 → 3.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/DebugUtil.d.ts +6 -0
- package/dist/index.cjs.js +31 -31
- package/dist/index.js +876 -853
- package/dist/index.umd.js +31 -31
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +8 -7
- package/libs/PanoTagPlugin/controller/TagUtil.js +98 -96
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/index.js +30 -26
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/utils/DebugUtil.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/DebugUtil.js +25 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +40 -40
- package/libs/index.js +121 -120
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -120
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -730
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -693
- package/docs/classes/CSS3DRender.html +0 -777
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -480
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -860
- package/docs/classes/Magnifier.html +0 -484
- package/docs/classes/ModelRoomLabelController.html +0 -402
- package/docs/classes/MoveController.html +0 -680
- package/docs/classes/Object3DHelperController.html +0 -644
- package/docs/classes/PaintBrush.html +0 -506
- package/docs/classes/PanoMeasurePluginLine.html +0 -526
- package/docs/classes/PanoMeasurePluginModel.html +0 -575
- package/docs/classes/PanoMeasurePluginPoint.html +0 -366
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -571
- package/docs/classes/PanoTagPluginController.html +0 -1131
- package/docs/classes/Util.BetterTween.html +0 -420
- package/docs/classes/Util.Interval.html +0 -436
- package/docs/classes/Util.LineSegments.html +0 -388
- package/docs/classes/Util.Magnifier.html +0 -507
- package/docs/classes/Util.Object3D.html +0 -410
- package/docs/classes/Util.PointDomHelper.html +0 -411
- package/docs/classes/Util.PointHelper.html +0 -402
- package/docs/classes/Util.PointSelectorHelper.html +0 -458
- package/docs/classes/Util.Rectangle.html +0 -459
- package/docs/classes/WalkController.html +0 -699
- package/docs/enums/CameraMovementEffect.html +0 -314
- package/docs/enums/ContentType.html +0 -460
- package/docs/enums/DIRECTION.html +0 -324
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -324
- package/docs/enums/DimensionType.html +0 -314
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -317
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -324
- package/docs/enums/PaintBrushTypeEnum.html +0 -317
- package/docs/enums/PointType.html +0 -314
- package/docs/enums/Rotation.html +0 -321
- package/docs/functions/AreaMakerPlugin.html +0 -294
- package/docs/functions/CSS3DRenderPlugin.html +0 -292
- package/docs/functions/CameraMovementPlugin.html +0 -297
- package/docs/functions/CruisePlugin.html +0 -294
- package/docs/functions/CurrentPanoImagePlugin.html +0 -294
- package/docs/functions/GuideLinePlugin.html +0 -294
- package/docs/functions/ItemLabelPlugin.html +0 -294
- package/docs/functions/MapviewFloorplanPlugin.html +0 -294
- package/docs/functions/ModelChassisCompassPlugin.html +0 -297
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -297
- package/docs/functions/ModelFloorplanPlugin.html +0 -294
- package/docs/functions/ModelItemLabelPlugin.html +0 -294
- package/docs/functions/ModelRoomLabelPlugin.html +0 -292
- package/docs/functions/ModelTVVideoPlugin.html +0 -294
- package/docs/functions/ModelViewPlugin.html +0 -297
- package/docs/functions/MovePlugin.html +0 -294
- package/docs/functions/Object3DHelperPlugin.html +0 -292
- package/docs/functions/PanoCompassPlugin.html +0 -294
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -298
- package/docs/functions/PanoDoorLabelPlugin.html +0 -294
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -294
- package/docs/functions/PanoMeasurePlugin.html +0 -294
- package/docs/functions/PanoRulerPlugin.html +0 -297
- package/docs/functions/PanoRulerProPlugin.html +0 -297
- package/docs/functions/PanoSpatialTagPlugin.html +0 -297
- package/docs/functions/PanoTagPlugin.html +0 -299
- package/docs/functions/PanoVideoPlugin.html +0 -303
- package/docs/functions/PipelinePlugin.html +0 -292
- package/docs/functions/TopviewFloorplanPlugin.html +0 -294
- package/docs/functions/Util.absoluteUrl.html +0 -330
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -333
- package/docs/functions/Util.equal.html +0 -342
- package/docs/functions/Util.getCoordsFromClient.html +0 -332
- package/docs/functions/Util.getCoordsFromElement.html +0 -332
- package/docs/functions/Util.getFrameTime.html +0 -324
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -332
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -332
- package/docs/functions/Util.isAbsoluteURL.html +0 -325
- package/docs/functions/Util.isModelLike.html +0 -325
- package/docs/functions/Util.isNil.html +0 -333
- package/docs/functions/Util.isPanoramaLike.html +0 -325
- package/docs/functions/Util.nextFrame.html +0 -338
- package/docs/functions/Util.notNil.html +0 -333
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -354
- package/docs/functions/Util.tweenProgress.html +0 -327
- package/docs/functions/Util.uuid.html +0 -323
- package/docs/functions/pluginFlag.html +0 -292
- package/docs/index.html +0 -358
- package/docs/interfaces/AddTagConfig.html +0 -307
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -339
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -625
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -338
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -396
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -381
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -338
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -331
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -330
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -359
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -453
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -329
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -362
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -363
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -365
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -723
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -389
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -425
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -415
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -355
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -323
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -391
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -386
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -525
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -327
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -319
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -341
- package/docs/interfaces/EventMap.html +0 -546
- package/docs/interfaces/FloorplanBounding.html +0 -336
- package/docs/interfaces/FloorplanData.html +0 -339
- package/docs/interfaces/FloorplanEntrance.html +0 -364
- package/docs/interfaces/FloorplanExtraObject.html +0 -354
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -343
- package/docs/interfaces/FloorplanFloorData.html +0 -332
- package/docs/interfaces/FloorplanImagePosition.html +0 -318
- package/docs/interfaces/FloorplanObserver.html +0 -336
- package/docs/interfaces/FloorplanOutlineItem.html +0 -332
- package/docs/interfaces/FloorplanPosition.html +0 -318
- package/docs/interfaces/FloorplanRoomItem.html +0 -383
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -324
- package/docs/interfaces/FloorplanServerBounding.html +0 -336
- package/docs/interfaces/FloorplanServerComputedData.html +0 -335
- package/docs/interfaces/FloorplanServerData.html +0 -318
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -335
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -321
- package/docs/interfaces/FloorplanServerEntrance.html +0 -364
- package/docs/interfaces/FloorplanServerFloorData.html +0 -332
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -318
- package/docs/interfaces/FloorplanServerObserver.html +0 -336
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -332
- package/docs/interfaces/FloorplanServerPosition.html +0 -318
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -395
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -324
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -327
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -366
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -530
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -361
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -352
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -419
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -341
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -351
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -487
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -348
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -487
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -313
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -334
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -359
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -375
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -357
- package/docs/interfaces/HelperOffset.html +0 -336
- package/docs/interfaces/ImagePlaneGroup.html +0 -310
- package/docs/interfaces/ItemLabelPluginData.html +0 -307
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -392
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -328
- package/docs/interfaces/MinMax.html +0 -314
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -314
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -350
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -314
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -321
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -358
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -307
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -392
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -314
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -307
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -328
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -352
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -307
- package/docs/interfaces/ModelViewPluginExportType.html +0 -420
- package/docs/interfaces/Object3DHelperState.html +0 -321
- package/docs/interfaces/ObjectHelperControllers.html +0 -328
- package/docs/interfaces/PaintBrushAction.html +0 -367
- package/docs/interfaces/PaintBrushConfigs.html +0 -365
- package/docs/interfaces/PaintBrushState.html +0 -349
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -429
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -286
- package/docs/interfaces/PanoMeasureParameterType.html +0 -453
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -321
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -318
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -314
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -324
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -381
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -330
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -321
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -357
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -327
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -314
- package/docs/interfaces/PanoRulerProPluginState.html +0 -321
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -300
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -289
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -357
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -339
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -435
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -335
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -356
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -342
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -335
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -327
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -345
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -318
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -424
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -318
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -353
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -372
- package/docs/interfaces/Point.html +0 -321
- package/docs/interfaces/Room.html +0 -328
- package/docs/interfaces/RoomInfo.html +0 -314
- package/docs/interfaces/RoomLabel.html +0 -390
- package/docs/interfaces/RoomRules.html +0 -289
- package/docs/interfaces/Rooms.html +0 -289
- package/docs/interfaces/Scissor.html +0 -348
- package/docs/interfaces/State.html +0 -335
- package/docs/interfaces/TagCacheInterface.html +0 -366
- package/docs/interfaces/TagConfig.html +0 -569
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -310
- package/docs/interfaces/TagIconUrl.html +0 -367
- package/docs/interfaces/TagObjectGroup.html +0 -310
- package/docs/interfaces/TagStyle.html +0 -320
- package/docs/interfaces/Tags.html +0 -2824
- package/docs/interfaces/TemporaryState.html +0 -307
- package/docs/interfaces/Util.MagnifierParameter.html +0 -395
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -354
- package/docs/interfaces/Util.PointIntersection.html +0 -369
- package/docs/modules/AreaMakerPluginType.html +0 -329
- package/docs/modules/CruisePluginTypes.html +0 -332
- package/docs/modules/CurrentPanoImagePluginType.html +0 -301
- package/docs/modules/GuideLineItem.html +0 -293
- package/docs/modules/GuideLineModeItem.html +0 -298
- package/docs/modules/GuideLinePluginType.html +0 -354
- package/docs/modules/PanoVideoPluginType.html +0 -305
- package/docs/modules/Util.html +0 -355
- package/docs/modules.html +0 -562
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -358
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -324
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -306
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -306
- package/docs/types/ArrayPosition.html +0 -283
- package/docs/types/AudioAppearance.html +0 -283
- package/docs/types/AudioTagTypeConfigKey.html +0 -283
- package/docs/types/CSS3DRenderExportType.html +0 -283
- package/docs/types/CSS3DRenderPluginExportType.html +0 -283
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -283
- package/docs/types/ClassFunctionParameters.html +0 -290
- package/docs/types/Color.html +0 -283
- package/docs/types/ContentTypeConfigKey.html +0 -283
- package/docs/types/ContentTypeConfigKeySplit.html +0 -283
- package/docs/types/ContentTypeMap.html +0 -283
- package/docs/types/Create3DDomContainerReturnType.html +0 -283
- package/docs/types/Create3DElementReturnType.html +0 -283
- package/docs/types/CruisePluginExportType.html +0 -283
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -322
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -299
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -283
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -295
- package/docs/types/DeprecatedTagProperty.html +0 -298
- package/docs/types/Direction-1.html +0 -283
- package/docs/types/Direction4.html +0 -283
- package/docs/types/ElementRenderer.html +0 -307
- package/docs/types/FloorplanRuleLabels.html +0 -286
- package/docs/types/FloorplanServerRuleLabels.html +0 -283
- package/docs/types/GuideLinePluginExportType.html +0 -283
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -356
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -377
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -310
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -313
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -313
- package/docs/types/GuideLinePluginType.PathItem.html +0 -313
- package/docs/types/GuideLinePluginType.PluginData.html +0 -322
- package/docs/types/HelperEventMap.html +0 -521
- package/docs/types/LoadTagConfig.html +0 -283
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -283
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -283
- package/docs/types/MediaData.html +0 -304
- package/docs/types/MediaStore.html +0 -288
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -290
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -283
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -283
- package/docs/types/ModelId.html +0 -283
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -283
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -283
- package/docs/types/MoveArgs.html +0 -293
- package/docs/types/MoveOpts.html +0 -291
- package/docs/types/Object3DHelperEventMap.html +0 -376
- package/docs/types/ObjectFit.html +0 -283
- package/docs/types/PaintBrushEventMap.html +0 -314
- package/docs/types/PanoCompassPluginData.html +0 -283
- package/docs/types/PanoCompassPluginExportType.html +0 -283
- package/docs/types/PanoCompassPluginParameterType.html +0 -283
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -283
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -283
- package/docs/types/PanoIndex.html +0 -283
- package/docs/types/PanoMeasurePluginEvent.html +0 -283
- package/docs/types/PanoMeasureReturnType.html +0 -283
- package/docs/types/PanoSpatialTagPluginId.html +0 -283
- package/docs/types/PanoTagPluginExportInterface.html +0 -283
- package/docs/types/PanoTagPluginParamsInterface.html +0 -283
- package/docs/types/PanoVideoPluginParameterType.html +0 -283
- package/docs/types/PanoVideoPluginReturnType.html +0 -283
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -291
- package/docs/types/PipelinePluginParameterType.html +0 -283
- package/docs/types/PipelinePluginReturnType.html +0 -283
- package/docs/types/PlaneTag.html +0 -291
- package/docs/types/Point2DTag.html +0 -291
- package/docs/types/Point3DTag.html +0 -291
- package/docs/types/PointTag.html +0 -288
- package/docs/types/PointTagInstance.html +0 -288
- package/docs/types/Position.html +0 -283
- package/docs/types/RotateArgs.html +0 -295
- package/docs/types/RotateOpts.html +0 -291
- package/docs/types/RuleLabelsKey.html +0 -283
- package/docs/types/RuleLabelsValue.html +0 -283
- package/docs/types/StickType.html +0 -283
- package/docs/types/Tag.html +0 -349
- package/docs/types/Tag2D.html +0 -291
- package/docs/types/Tag3D.html +0 -291
- package/docs/types/TagConfigByKey.html +0 -288
- package/docs/types/TagContentType.html +0 -283
- package/docs/types/TagContentTypeMapping.html +0 -283
- package/docs/types/TagDimensionType.html +0 -285
- package/docs/types/TagElement.html +0 -293
- package/docs/types/TagEvents.html +0 -336
- package/docs/types/TagGLTFObject.html +0 -306
- package/docs/types/TagHooks.html +0 -283
- package/docs/types/TagId.html +0 -283
- package/docs/types/TagInstance.html +0 -361
- package/docs/types/TagPointType.html +0 -286
- package/docs/types/TagRendererMap.html +0 -290
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -283
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -283
- package/docs/types/WorkCode.html +0 -283
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -293
- package/docs/variables/PLUGIN.html +0 -283
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -286
- package/docs/variables/ROOM_TYPE_MAP.html +0 -293
- package/docs/variables/defaultGlobalConfig.html +0 -283
- package/docs/variables/itemLabelPluginServerParams.html +0 -290
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -290
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -290
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var E = Object.defineProperty, I = Object.defineProperties;
|
|
2
2
|
var R = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
4
|
var B = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (d, a, e) => a in d ?
|
|
5
|
+
var u = (d, a, e) => a in d ? E(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, g = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
7
|
B.call(a, e) && u(d, e, a[e]);
|
|
8
8
|
if (A)
|
|
9
9
|
for (var e of A(a))
|
|
10
10
|
F.call(a, e) && u(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
12
|
+
}, b = (d, a) => I(d, R(a));
|
|
13
13
|
var l = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var c = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
@@ -27,14 +27,14 @@ var c = (d, a, e) => new Promise((t, i) => {
|
|
|
27
27
|
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
|
|
28
28
|
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as v from "three";
|
|
31
31
|
import { Subscribe as M } from "@realsee/five";
|
|
32
32
|
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
33
|
import { addDebugPoints as O } from "../utils/addDebugPoints.js";
|
|
34
|
-
import { arrayPositionToVector3 as
|
|
35
|
-
import { isMediaModelTag as
|
|
36
|
-
import { debounce as
|
|
37
|
-
import { throttle as
|
|
34
|
+
import { arrayPositionToVector3 as D } from "../../shared-utils/positionToVector3.js";
|
|
35
|
+
import { isMediaModelTag as V, isModelTag as _ } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { debounce as k } from "../utils/debounce.js";
|
|
37
|
+
import { throttle as P } from "../utils/throttle.js";
|
|
38
38
|
import L from "../utils/tag/format.js";
|
|
39
39
|
import { generateBlankAudio as N, AudioNamespace as G } from "../../shared-utils/audio.js";
|
|
40
40
|
import { resizeObserver as S } from "../../shared-utils/dom/resizeObserver.js";
|
|
@@ -47,6 +47,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
|
47
47
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
48
|
import { tweenProgress as W } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
49
49
|
import { waitFiveModelLoaded as J } from "../../shared-utils/five/fiveModelLoad.js";
|
|
50
|
+
import { DebugUtil as j } from "../utils/DebugUtil.js";
|
|
50
51
|
import "./TagComputer.js";
|
|
51
52
|
import "../utils/tagPosition.js";
|
|
52
53
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -171,8 +172,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
171
172
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
172
173
|
import "@realsee/five/gltf-loader";
|
|
173
174
|
import "../../shared-utils/animationFrame/index.js";
|
|
174
|
-
const w = "Dnalogel-PanoTagPlugin",
|
|
175
|
-
class
|
|
175
|
+
const w = "Dnalogel-PanoTagPlugin", Fi = (d) => `${w}--${d}`;
|
|
176
|
+
class Mi extends z {
|
|
176
177
|
constructor(e, t) {
|
|
177
178
|
super(e);
|
|
178
179
|
/** state */
|
|
@@ -181,6 +182,7 @@ class Bi extends z {
|
|
|
181
182
|
l(this, "params");
|
|
182
183
|
/** debug */
|
|
183
184
|
l(this, "debug");
|
|
185
|
+
l(this, "debugUtil", new j(this));
|
|
184
186
|
/** 更改 tag 模型 */
|
|
185
187
|
l(this, "changeTagModel", (e, t) => c(this, null, function* () {
|
|
186
188
|
e.data = f({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
@@ -207,7 +209,7 @@ class Bi extends z {
|
|
|
207
209
|
l(this, "updateVisible", () => {
|
|
208
210
|
const e = this.five.getCurrentState().mode;
|
|
209
211
|
this.tags.forEach((t) => {
|
|
210
|
-
|
|
212
|
+
V(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
211
213
|
}), this.setVisible(), this.updateRenderAllTags();
|
|
212
214
|
});
|
|
213
215
|
l(this, "handleFiveWantsMoveToPano", (e) => {
|
|
@@ -248,13 +250,13 @@ class Bi extends z {
|
|
|
248
250
|
});
|
|
249
251
|
l(this, "handleFivePanoArrived", () => c(this, null, function* () {
|
|
250
252
|
this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
251
|
-
e.temporaryState =
|
|
252
|
-
}), this.tags.filter(
|
|
253
|
+
e.temporaryState = b(g({}, e.temporaryState), { visible: !0 });
|
|
254
|
+
}), this.tags.filter(_).filter((e) => {
|
|
253
255
|
var t;
|
|
254
256
|
return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
255
257
|
}).forEach((e) => {
|
|
256
258
|
var h;
|
|
257
|
-
const t = new
|
|
259
|
+
const t = new v.Mesh(new v.BoxGeometry(), new v.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
|
|
258
260
|
if (!i)
|
|
259
261
|
return;
|
|
260
262
|
t.position.copy(i.position), t.quaternion.copy(i.quaternion);
|
|
@@ -307,8 +309,10 @@ class Bi extends z {
|
|
|
307
309
|
return c(this, null, function* () {
|
|
308
310
|
const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
309
311
|
var T, y, C;
|
|
310
|
-
const n = JSON.parse(JSON.stringify(o.data)), r = o.config ? JSON.parse(JSON.stringify(o.config)) :
|
|
311
|
-
|
|
312
|
+
const n = JSON.parse(JSON.stringify(o.data)), r = o.config ? JSON.parse(JSON.stringify(o.config)) : {};
|
|
313
|
+
o.initialConfig = r;
|
|
314
|
+
const h = this.calculateTagConfig(o), p = this.getTagConfig(o);
|
|
315
|
+
return o.config = p, b(g({}, o), {
|
|
312
316
|
enabled: (T = o.enabled) != null ? T : !0,
|
|
313
317
|
id: (y = o.id) != null ? y : x(),
|
|
314
318
|
data: (C = p.initialData) != null && C.important ? f(o.data, n, p.initialData) : f(o.data, p.initialData, n),
|
|
@@ -320,7 +324,7 @@ class Bi extends z {
|
|
|
320
324
|
originPosition: o.position,
|
|
321
325
|
position: (() => {
|
|
322
326
|
const m = this.getTransformedPostion(o.position);
|
|
323
|
-
return Array.isArray(m) ? m.map((
|
|
327
|
+
return Array.isArray(m) ? m.map((U) => U.toArray()) : m.toArray();
|
|
324
328
|
})(),
|
|
325
329
|
initialConfig: r,
|
|
326
330
|
computedConfig: h,
|
|
@@ -349,7 +353,7 @@ class Bi extends z {
|
|
|
349
353
|
* @description: 改变全局配置
|
|
350
354
|
*/
|
|
351
355
|
changeGlobalConfig(e, t = !0) {
|
|
352
|
-
t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.updateRenderAllTags();
|
|
356
|
+
t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
353
357
|
}
|
|
354
358
|
/**
|
|
355
359
|
* @description: 改变类型配置
|
|
@@ -423,7 +427,7 @@ class Bi extends z {
|
|
|
423
427
|
*/
|
|
424
428
|
changeTagNormalById(e, t) {
|
|
425
429
|
const i = this.getTagById(e);
|
|
426
|
-
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal =
|
|
430
|
+
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = D(t));
|
|
427
431
|
}
|
|
428
432
|
/**
|
|
429
433
|
* @description: 改变data
|
|
@@ -445,7 +449,7 @@ class Bi extends z {
|
|
|
445
449
|
changeTagById(e, t, i = !0) {
|
|
446
450
|
const s = this.getTagById(e);
|
|
447
451
|
let o = !1;
|
|
448
|
-
t && (t.data && (o = !0), i ? f(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal =
|
|
452
|
+
t && (t.data && (o = !0), i ? f(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = D(t.normal)), this.setVisible(), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
|
|
449
453
|
}
|
|
450
454
|
/**
|
|
451
455
|
* @description: 销毁tag
|
|
@@ -493,7 +497,7 @@ class Bi extends z {
|
|
|
493
497
|
addEventListener() {
|
|
494
498
|
const { five: e, hooks: t } = this;
|
|
495
499
|
let i = !1;
|
|
496
|
-
const s =
|
|
500
|
+
const s = P(() => {
|
|
497
501
|
i || (i = !0, e.ready().then(() => {
|
|
498
502
|
this.onFiveEveryReady(), i = !1;
|
|
499
503
|
}));
|
|
@@ -518,12 +522,12 @@ class Bi extends z {
|
|
|
518
522
|
}, i = () => {
|
|
519
523
|
this.state.enabled && this.hide();
|
|
520
524
|
}, { observe: s, unobserve: o } = S(
|
|
521
|
-
|
|
525
|
+
P(() => {
|
|
522
526
|
this.store.resizeObserverDisposer && i();
|
|
523
527
|
}, 500),
|
|
524
528
|
e
|
|
525
529
|
), { observe: n, unobserve: r } = S(
|
|
526
|
-
|
|
530
|
+
k(() => t(), 400),
|
|
527
531
|
e
|
|
528
532
|
);
|
|
529
533
|
return s(), n(), () => {
|
|
@@ -546,7 +550,7 @@ class Bi extends z {
|
|
|
546
550
|
}
|
|
547
551
|
}
|
|
548
552
|
export {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
553
|
+
Mi as PanoTagPluginController,
|
|
554
|
+
Mi as default,
|
|
555
|
+
Fi as pluginFlag
|
|
552
556
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as Rt } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as Ut } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Wt, DimensionType as Xt, PointType as Yt } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "@realsee/five";
|
|
7
7
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -145,14 +145,15 @@ import "@realsee/five/gltf-loader";
|
|
|
145
145
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
146
146
|
import "../shared-utils/animationFrame/index.js";
|
|
147
147
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
148
|
-
|
|
148
|
+
import "./utils/DebugUtil.js";
|
|
149
|
+
const Nt = (o, t) => new r(o, t);
|
|
149
150
|
export {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
Wt as ContentType,
|
|
152
|
+
Xt as DimensionType,
|
|
153
|
+
Nt as PanoTagPlugin,
|
|
153
154
|
r as PanoTagPluginController,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
Yt as PointType,
|
|
156
|
+
Nt as default,
|
|
157
|
+
Ut as defaultGlobalConfig,
|
|
158
|
+
Rt as pluginFlag
|
|
158
159
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var t = (s, i, e) => i in s ? l(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
|
|
3
|
+
var n = (s, i, e) => (t(s, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import { safeObj as a } from "../../shared-utils/safeObj.js";
|
|
5
|
+
class r {
|
|
6
|
+
constructor(i) {
|
|
7
|
+
n(this, "plugin");
|
|
8
|
+
this.plugin = i;
|
|
9
|
+
}
|
|
10
|
+
closeIntersectRaycaster() {
|
|
11
|
+
this.plugin.tags.forEach((i) => {
|
|
12
|
+
var e;
|
|
13
|
+
a((e = i == null ? void 0 : i.initialConfig) == null ? void 0 : e.visibleConfig).intersectRaycaster && (i.initialConfig.visibleConfig.intersectRaycaster.enabled = !1);
|
|
14
|
+
}), this.plugin.changeGlobalConfig({
|
|
15
|
+
visibleConfig: {
|
|
16
|
+
intersectRaycaster: {
|
|
17
|
+
enabled: !1
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
r as DebugUtil
|
|
25
|
+
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -2,16 +2,16 @@ var g = Object.defineProperty, w = Object.defineProperties;
|
|
|
2
2
|
var v = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var b = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (r,
|
|
6
|
-
for (var t in
|
|
7
|
-
A.call(
|
|
5
|
+
var u = (r, e, t) => e in r ? g(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, p = (r, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
A.call(e, t) && u(r, t, e[t]);
|
|
8
8
|
if (b)
|
|
9
|
-
for (var t of b(
|
|
10
|
-
S.call(
|
|
9
|
+
for (var t of b(e))
|
|
10
|
+
S.call(e, t) && u(r, t, e[t]);
|
|
11
11
|
return r;
|
|
12
|
-
}, f = (r,
|
|
13
|
-
var o = (r,
|
|
14
|
-
var c = (r,
|
|
12
|
+
}, f = (r, e) => w(r, v(e));
|
|
13
|
+
var o = (r, e, t) => (u(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
var c = (r, e, t) => new Promise((i, s) => {
|
|
15
15
|
var a = (n) => {
|
|
16
16
|
try {
|
|
17
17
|
d(t.next(n));
|
|
@@ -24,8 +24,8 @@ var c = (r, i, t) => new Promise((e, s) => {
|
|
|
24
24
|
} catch (l) {
|
|
25
25
|
s(l);
|
|
26
26
|
}
|
|
27
|
-
}, d = (n) => n.done ?
|
|
28
|
-
d((t = t.apply(r,
|
|
27
|
+
}, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(a, h);
|
|
28
|
+
d((t = t.apply(r, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import _ from "./Components/Main.js";
|
|
31
31
|
import { equal as y } from "../../shared-utils/equal.js";
|
|
@@ -70,7 +70,7 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
70
70
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
71
71
|
import "../Assets/floorplanExtraObject.js";
|
|
72
72
|
class mt extends O {
|
|
73
|
-
constructor(t,
|
|
73
|
+
constructor(t, i) {
|
|
74
74
|
super(t);
|
|
75
75
|
// =============== public properties =================
|
|
76
76
|
o(this, "name", "panoFloorplanRadarPlugin");
|
|
@@ -96,8 +96,8 @@ class mt extends O {
|
|
|
96
96
|
});
|
|
97
97
|
o(this, "_disable", (t) => {
|
|
98
98
|
var s;
|
|
99
|
-
const { userAction:
|
|
100
|
-
(s = this.app) == null || s.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction:
|
|
99
|
+
const { userAction: i } = t;
|
|
100
|
+
(s = this.app) == null || s.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: i });
|
|
101
101
|
});
|
|
102
102
|
this.five = t;
|
|
103
103
|
const s = {
|
|
@@ -105,49 +105,49 @@ class mt extends O {
|
|
|
105
105
|
highlightEnable: !0,
|
|
106
106
|
cameraImageUrl: D,
|
|
107
107
|
missingFloorImageUrl: this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
|
|
108
|
-
}, a = p(p({}, s),
|
|
109
|
-
this.state = { enabled: !0, visible: !0, config: a },
|
|
108
|
+
}, a = p(p({}, s), i == null ? void 0 : i.configs);
|
|
109
|
+
this.state = { enabled: !0, visible: !0, config: a }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), t.once("dispose", this.dispose);
|
|
110
110
|
}
|
|
111
|
-
load(t,
|
|
111
|
+
load(t, i, s = !0) {
|
|
112
112
|
return c(this, null, function* () {
|
|
113
113
|
function a(l) {
|
|
114
114
|
return Object.prototype.hasOwnProperty.apply(l, ["version"]);
|
|
115
115
|
}
|
|
116
116
|
const h = JSON.parse(JSON.stringify(t)), d = a(h) ? h.data : h, n = this.data;
|
|
117
|
-
this.data = yield m(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n),
|
|
117
|
+
this.data = yield m(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), i && this.updateState(i, s), this.render();
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
show() {
|
|
121
121
|
return c(this, arguments, function* (t = {}) {
|
|
122
122
|
if (this.state.visible)
|
|
123
123
|
return;
|
|
124
|
-
const
|
|
125
|
-
this.updateState({ visible: !0 },
|
|
124
|
+
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
125
|
+
this.updateState({ visible: !0 }, i), this._show({ userAction: i });
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
hide() {
|
|
129
129
|
return c(this, arguments, function* (t = {}) {
|
|
130
130
|
if (!this.state.visible)
|
|
131
131
|
return;
|
|
132
|
-
const
|
|
133
|
-
this.updateState({ visible: !1 },
|
|
132
|
+
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
133
|
+
this.updateState({ visible: !1 }, i), this._hide({ userAction: i });
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
enable(t = {}) {
|
|
137
137
|
if (this.state.enabled)
|
|
138
138
|
return;
|
|
139
|
-
const
|
|
140
|
-
this.updateState({ enabled: !0 }, t.userAction ||
|
|
139
|
+
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
140
|
+
this.updateState({ enabled: !0 }, t.userAction || i), this._enable({ userAction: i });
|
|
141
141
|
}
|
|
142
142
|
disable(t = {}) {
|
|
143
143
|
if (!this.state.enabled)
|
|
144
144
|
return;
|
|
145
|
-
const
|
|
146
|
-
this.updateState({ enabled: !1 }, t.userAction ||
|
|
145
|
+
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
146
|
+
this.updateState({ enabled: !1 }, t.userAction || i), this._disable({ userAction: i });
|
|
147
147
|
}
|
|
148
148
|
/** 更改插件 State */
|
|
149
|
-
setState(t,
|
|
150
|
-
const s = this.state, a =
|
|
149
|
+
setState(t, i = {}) {
|
|
150
|
+
const s = this.state, a = i.userAction !== void 0 ? i.userAction : !0;
|
|
151
151
|
if (this.updateState(t, a), t.enabled !== void 0 && s.enabled !== t.enabled) {
|
|
152
152
|
const h = { userAction: a };
|
|
153
153
|
t.enabled ? this._enable(h) : this._disable(h);
|
|
@@ -159,10 +159,10 @@ class mt extends O {
|
|
|
159
159
|
}
|
|
160
160
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
161
161
|
appendTo(t) {
|
|
162
|
-
this.wrapper = t, this.render();
|
|
162
|
+
this.wrapper !== t && this.app && (this.app.$destroy(), this.app = void 0), this.wrapper = t, this.render();
|
|
163
163
|
}
|
|
164
|
-
changeConfigs(t,
|
|
165
|
-
this.setState({ config: t }, { userAction:
|
|
164
|
+
changeConfigs(t, i = !0) {
|
|
165
|
+
this.setState({ config: t }, { userAction: i }), this.render();
|
|
166
166
|
}
|
|
167
167
|
setExtraObjectsWith3DPositions(t) {
|
|
168
168
|
this.data && (this.extraObjects = x(t, this.five, this.data), this.render());
|
|
@@ -173,31 +173,31 @@ class mt extends O {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
_enable(t) {
|
|
176
|
-
const { userAction:
|
|
177
|
-
this.hooks.emit("enable", { userAction:
|
|
176
|
+
const { userAction: i } = t;
|
|
177
|
+
this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i });
|
|
178
178
|
}
|
|
179
179
|
_show(t) {
|
|
180
180
|
if (this.disposed || !this.state.enabled)
|
|
181
181
|
return;
|
|
182
|
-
const { userAction:
|
|
183
|
-
this.hooks.emit("show", { userAction:
|
|
182
|
+
const { userAction: i } = t;
|
|
183
|
+
this.hooks.emit("show", { userAction: i }), this.render();
|
|
184
184
|
}
|
|
185
185
|
_hide(t) {
|
|
186
186
|
if (this.disposed || !this.state.enabled)
|
|
187
187
|
return;
|
|
188
|
-
const { userAction:
|
|
189
|
-
this.hooks.emit("hide", { userAction:
|
|
188
|
+
const { userAction: i } = t;
|
|
189
|
+
this.hooks.emit("hide", { userAction: i }), this.render();
|
|
190
190
|
}
|
|
191
|
-
updateState(t,
|
|
191
|
+
updateState(t, i) {
|
|
192
192
|
const s = this.state, a = t.config ? p(p({}, s.config), t.config) : s.config;
|
|
193
|
-
this.state = f(p(p({}, this.state), t), { config: a }), !y(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction:
|
|
193
|
+
this.state = f(p(p({}, this.state), t), { config: a }), !y(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
194
194
|
}
|
|
195
195
|
render() {
|
|
196
196
|
if (this.disposed || !this.state.enabled)
|
|
197
197
|
return;
|
|
198
198
|
if (!this.wrapper && this.wrapperSelector) {
|
|
199
|
-
const
|
|
200
|
-
this.wrapper =
|
|
199
|
+
const i = document.querySelector(this.wrapperSelector);
|
|
200
|
+
this.wrapper = i;
|
|
201
201
|
}
|
|
202
202
|
if (!this.data || !this.wrapper)
|
|
203
203
|
return;
|