@realsee/dnalogel 2.21.0-dev.9 → 2.21.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/PanoCompassPlugin/typings.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +4 -15
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +18 -26
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +2 -9
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +9 -26
- package/dist/PanoMeasurePlugin/Model/index.d.ts +0 -10
- package/dist/PanoMeasurePlugin/Model/line.d.ts +1 -7
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +0 -4
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +4 -8
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +3 -10
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +0 -3
- package/dist/PanoMeasurePlugin/typings/data.d.ts +0 -24
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +3 -13
- package/dist/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +30 -0
- package/dist/{shared-utils → PanoMeasurePlugin/utils}/getIntersectionFromEvent.d.ts +1 -1
- package/{libs/shared-utils → dist/PanoMeasurePlugin/utils}/getPointFromHammerEvent.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -2
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +1 -2
- package/dist/base/BasePlugin.d.ts +4 -4
- package/dist/base/BasePluginWithData.d.ts +2 -1
- package/dist/index.cjs.js +67 -69
- package/dist/index.js +7095 -8835
- package/dist/index.umd.js +60 -62
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/dist/shared-utils/absoluteUrl.d.ts +2 -2
- package/dist/shared-utils/three/FivePointSelector.d.ts +36 -0
- package/dist/shared-utils/three/Magnifier.d.ts +0 -3
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -32
- package/docs/classes/CruisePluginController.html +26 -27
- package/docs/classes/GuideLineItem.GuideLineItem.html +20 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +35 -36
- package/docs/classes/Magnifier.html +20 -21
- package/docs/classes/ModelRoomLabelController.html +11 -12
- package/docs/classes/Object3DHelperController.html +25 -26
- package/docs/classes/PaintBrush.html +15 -16
- package/docs/classes/PanoMeasurePluginLine.html +106 -72
- package/docs/classes/PanoMeasurePluginModel.html +24 -82
- package/docs/classes/PanoMeasurePluginPoint.html +14 -15
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -39
- package/docs/classes/PanoTagPluginController.html +47 -48
- package/docs/classes/Util.BetterTween.html +9 -10
- package/docs/classes/{Util.PointSelectorHelper.html → Util.FivePointSelector.html} +26 -96
- package/docs/classes/Util.Interval.html +12 -13
- package/docs/classes/Util.Magnifier.html +17 -31
- package/docs/classes/Util.PointDomHelper.html +11 -12
- package/docs/classes/Util.PointHelper.html +11 -12
- package/docs/classes/Util.Rectangle.html +13 -14
- package/docs/enums/CameraMovementEffect.html +7 -8
- package/docs/enums/ContentType.html +20 -21
- package/docs/enums/DIRECTION.html +9 -10
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -10
- package/docs/enums/DimensionType.html +7 -8
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -9
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -10
- package/docs/enums/PaintBrushTypeEnum.html +8 -9
- package/docs/enums/PointType.html +7 -8
- package/docs/enums/Rotation.html +8 -9
- package/docs/functions/CSS3DRenderPlugin.html +4 -5
- package/docs/functions/CameraMovementPlugin.html +4 -5
- package/docs/functions/CruisePlugin.html +4 -5
- package/docs/functions/GuideLinePlugin.html +5 -6
- package/docs/functions/ItemLabelPlugin.html +4 -5
- package/docs/functions/MapviewFloorplanPlugin.html +4 -5
- package/docs/functions/ModelChassisCompassPlugin.html +4 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -5
- package/docs/functions/ModelFloorplanPlugin.html +4 -5
- package/docs/functions/ModelItemLabelPlugin.html +4 -5
- package/docs/functions/ModelRoomLabelPlugin.html +4 -5
- package/docs/functions/ModelTVVideoPlugin.html +4 -5
- package/docs/functions/ModelViewPlugin.html +4 -5
- package/docs/functions/Object3DHelperPlugin.html +4 -5
- package/docs/functions/PanoCompassPlugin.html +4 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -5
- package/docs/functions/PanoDoorLabelPlugin.html +4 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -5
- package/docs/functions/PanoMeasurePlugin.html +4 -5
- package/docs/functions/PanoRulerPlugin.html +4 -5
- package/docs/functions/PanoRulerProPlugin.html +4 -5
- package/docs/functions/PanoSpatialTagPlugin.html +4 -5
- package/docs/functions/PanoTagPlugin.html +4 -5
- package/docs/functions/PanoVideoPlugin.html +4 -5
- package/docs/functions/TopviewFloorplanPlugin.html +4 -5
- package/docs/functions/Util.absoluteUrl.html +5 -6
- package/docs/functions/Util.getCoordsFromClient.html +5 -6
- package/docs/functions/Util.getCoordsFromElement.html +5 -6
- package/docs/functions/Util.getFrameTime.html +5 -6
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -6
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -6
- package/docs/functions/Util.isAbsoluteURL.html +5 -6
- package/docs/functions/Util.isModelLike.html +5 -6
- package/docs/functions/Util.isNil.html +5 -6
- package/docs/functions/Util.isPanoramaLike.html +5 -6
- package/docs/functions/Util.nextFrame.html +5 -6
- package/docs/functions/Util.notNil.html +5 -6
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -6
- package/docs/functions/Util.tweenProgress.html +5 -6
- package/docs/functions/Util.uuid.html +5 -6
- package/docs/functions/pluginFlag.html +5 -6
- package/docs/index.html +5 -6
- package/docs/interfaces/AddTagConfig.html +6 -7
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -12
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -9
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -8
- package/docs/interfaces/CruisePluginTypes.Config.html +8 -9
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -13
- package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -21
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +12 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +14 -15
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +14 -15
- package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -10
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -8
- package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -12
- package/docs/interfaces/EventMap.html +15 -16
- package/docs/interfaces/FloorplanBounding.html +8 -9
- package/docs/interfaces/FloorplanData.html +10 -11
- package/docs/interfaces/FloorplanEntrance.html +11 -12
- package/docs/interfaces/FloorplanExtraObject.html +10 -11
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -9
- package/docs/interfaces/FloorplanFloorData.html +9 -10
- package/docs/interfaces/FloorplanImagePosition.html +7 -8
- package/docs/interfaces/FloorplanObserver.html +9 -10
- package/docs/interfaces/FloorplanOutlineItem.html +9 -10
- package/docs/interfaces/FloorplanPosition.html +7 -8
- package/docs/interfaces/FloorplanRoomItem.html +13 -14
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -8
- package/docs/interfaces/FloorplanServerBounding.html +8 -9
- package/docs/interfaces/FloorplanServerComputedData.html +10 -11
- package/docs/interfaces/FloorplanServerData.html +7 -8
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -11
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -9
- package/docs/interfaces/FloorplanServerEntrance.html +11 -12
- package/docs/interfaces/FloorplanServerFloorData.html +9 -10
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -8
- package/docs/interfaces/FloorplanServerObserver.html +9 -10
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -10
- package/docs/interfaces/FloorplanServerPosition.html +7 -8
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -15
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -8
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -9
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -11
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -9
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +13 -14
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -9
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -19
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +7 -8
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +18 -19
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -8
- package/docs/interfaces/GuideLinePluginType.PluginState.html +8 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +11 -12
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -10
- package/docs/interfaces/HelperOffset.html +8 -9
- package/docs/interfaces/ImagePlaneGroup.html +6 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -7
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -12
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -10
- package/docs/interfaces/MinMax.html +7 -8
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -8
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -9
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -9
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -9
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -7
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -12
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -8
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -7
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -10
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -9
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -7
- package/docs/interfaces/ModelViewPluginExportType.html +11 -12
- package/docs/interfaces/Object3DHelperState.html +8 -9
- package/docs/interfaces/ObjectHelperControllers.html +9 -10
- package/docs/interfaces/PaintBrushAction.html +12 -13
- package/docs/interfaces/PaintBrushConfigs.html +12 -13
- package/docs/interfaces/PaintBrushState.html +10 -11
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -11
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -6
- package/docs/interfaces/PanoMeasureParameterType.html +15 -23
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -9
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -8
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -8
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -9
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -11
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -8
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -9
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -10
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -8
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -8
- package/docs/interfaces/PanoRulerProPluginState.html +8 -9
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -6
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -12
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -11
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -14
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -11
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -14
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -12
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -11
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -7
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -9
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -7
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -10
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -7
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -9
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -11
- package/docs/interfaces/Point.html +8 -9
- package/docs/interfaces/Room.html +9 -10
- package/docs/interfaces/RoomInfo.html +7 -8
- package/docs/interfaces/RoomLabel.html +14 -15
- package/docs/interfaces/RoomRules.html +5 -6
- package/docs/interfaces/Rooms.html +5 -6
- package/docs/interfaces/Scissor.html +9 -10
- package/docs/interfaces/State.html +8 -9
- package/docs/interfaces/TagCacheInterface.html +12 -13
- package/docs/interfaces/TagConfig.html +13 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -7
- package/docs/interfaces/TagIconUrl.html +12 -13
- package/docs/interfaces/TagObjectGroup.html +6 -7
- package/docs/interfaces/TagStyle.html +6 -7
- package/docs/interfaces/Tags.html +9 -10
- package/docs/interfaces/TemporaryState.html +6 -7
- package/docs/interfaces/Util.MagnifierParameter.html +11 -12
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -9
- package/docs/modules/CruisePluginTypes.html +5 -6
- package/docs/modules/GuideLineItem.html +5 -6
- package/docs/modules/GuideLineModeItem.html +5 -6
- package/docs/modules/GuideLinePluginType.html +5 -6
- package/docs/modules/PanoVideoPluginType.html +5 -6
- package/docs/modules/Util.html +6 -8
- package/docs/modules.html +5 -6
- package/docs/types/ArrayPosition.html +5 -6
- package/docs/types/AudioAppearance.html +5 -6
- package/docs/types/AudioTagTypeConfigKey.html +5 -6
- package/docs/types/CSS3DRenderExportType.html +5 -6
- package/docs/types/CSS3DRenderPluginExportType.html +5 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -6
- package/docs/types/ClassFunctionParameters.html +5 -6
- package/docs/types/Color.html +5 -6
- package/docs/types/ContentTypeConfigKey.html +5 -6
- package/docs/types/ContentTypeConfigKeySplit.html +5 -6
- package/docs/types/ContentTypeMap.html +5 -6
- package/docs/types/Create3DDomContainerReturnType.html +5 -6
- package/docs/types/Create3DElementReturnType.html +5 -6
- package/docs/types/CruisePluginExportType.html +5 -6
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +5 -6
- package/docs/types/DeprecatedMediaPlaneProperty.html +5 -6
- package/docs/types/DeprecatedTagProperty.html +5 -6
- package/docs/types/Direction-1.html +5 -6
- package/docs/types/Direction4.html +5 -6
- package/docs/types/ElementRenderer.html +5 -6
- package/docs/types/FloorplanRuleLabels.html +5 -6
- package/docs/types/FloorplanServerRuleLabels.html +5 -6
- package/docs/types/GuideLinePluginExportType.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -6
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -6
- package/docs/types/GuideLinePluginType.PathItem.html +5 -6
- package/docs/types/GuideLinePluginType.PluginData.html +5 -6
- package/docs/types/HelperEventMap.html +5 -6
- package/docs/types/LoadTagConfig.html +5 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -6
- package/docs/types/MediaData.html +5 -6
- package/docs/types/MediaStore.html +5 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -6
- package/docs/types/MoveArgs.html +5 -6
- package/docs/types/MoveOpts.html +5 -6
- package/docs/types/Object3DHelperEventMap.html +5 -6
- package/docs/types/ObjectFit.html +5 -6
- package/docs/types/PaintBrushEventMap.html +5 -6
- package/docs/types/PanoCompassPluginData.html +5 -6
- package/docs/types/PanoCompassPluginExportType.html +5 -6
- package/docs/types/PanoCompassPluginParameterType.html +5 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -6
- package/docs/types/PanoIndex.html +5 -6
- package/docs/types/PanoMeasurePluginEvent.html +5 -6
- package/docs/types/PanoMeasureReturnType.html +5 -6
- package/docs/types/PanoSpatialTagPluginId.html +5 -6
- package/docs/types/PanoTagPluginExportInterface.html +5 -6
- package/docs/types/PanoTagPluginParamsInterface.html +5 -6
- package/docs/types/PanoVideoPluginParameterType.html +5 -6
- package/docs/types/PanoVideoPluginReturnType.html +5 -6
- package/docs/types/PartialObjectDeep.html +5 -6
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -6
- package/docs/types/PlaneTag.html +5 -6
- package/docs/types/Point2DTag.html +5 -6
- package/docs/types/Point3DTag.html +5 -6
- package/docs/types/PointTag.html +5 -6
- package/docs/types/PointTagInstance.html +5 -6
- package/docs/types/Position.html +5 -6
- package/docs/types/RotateArgs.html +5 -6
- package/docs/types/RotateOpts.html +5 -6
- package/docs/types/RuleLabelsKey.html +5 -6
- package/docs/types/RuleLabelsValue.html +5 -6
- package/docs/types/StickType.html +5 -6
- package/docs/types/Tag.html +5 -6
- package/docs/types/Tag2D.html +5 -6
- package/docs/types/Tag3D.html +5 -6
- package/docs/types/TagContentType.html +5 -6
- package/docs/types/TagDimensionType.html +5 -6
- package/docs/types/TagElement.html +5 -6
- package/docs/types/TagEvents.html +5 -6
- package/docs/types/TagGLTFObject.html +5 -6
- package/docs/types/TagHooks.html +5 -6
- package/docs/types/TagId.html +5 -6
- package/docs/types/TagInstance.html +5 -6
- package/docs/types/TagPointType.html +5 -6
- package/docs/types/TagRendererMap.html +5 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -6
- package/docs/types/WorkCode.html +5 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -6
- package/docs/variables/PLUGIN.html +5 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -6
- package/docs/variables/ROOM_TYPE_MAP.html +5 -6
- package/docs/variables/itemLabelPluginServerParams.html +5 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -6
- package/libs/ModelChassisCompassPlugin/Plugin.js +58 -56
- package/libs/Object3DHelperPlugin/Controller.js +2 -3
- package/libs/Object3DHelperPlugin/index.js +5 -6
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/typings.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +4 -15
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +34 -43
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +18 -26
- package/libs/PanoMeasurePlugin/Controller/EditController.js +92 -270
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +25 -26
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +4 -5
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +2 -9
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +54 -101
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +9 -26
- package/libs/PanoMeasurePlugin/Controller/index.js +91 -146
- package/libs/PanoMeasurePlugin/Model/index.d.ts +0 -10
- package/libs/PanoMeasurePlugin/Model/index.js +35 -58
- package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -7
- package/libs/PanoMeasurePlugin/Model/line.js +22 -36
- package/libs/PanoMeasurePlugin/Model/point.js +12 -17
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +0 -4
- package/libs/PanoMeasurePlugin/Model/polyline.js +3 -10
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +4 -8
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +37 -49
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +3 -10
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +37 -123
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +0 -3
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +63 -64
- package/libs/PanoMeasurePlugin/index.js +24 -72
- package/libs/PanoMeasurePlugin/typings/data.d.ts +0 -24
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +3 -13
- package/libs/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +30 -0
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +83 -0
- package/libs/{shared-utils → PanoMeasurePlugin/utils}/getIntersectionFromEvent.d.ts +1 -1
- package/{dist/shared-utils → libs/PanoMeasurePlugin/utils}/getPointFromHammerEvent.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -2
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +1 -2
- package/libs/base/BasePlugin.d.ts +4 -4
- package/libs/base/BasePlugin.js +3 -3
- package/libs/base/BasePluginWithData.d.ts +2 -1
- package/libs/index.js +121 -141
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +49 -29
- package/libs/shared-utils/absoluteUrl.d.ts +2 -2
- package/libs/shared-utils/index.js +9 -9
- package/libs/shared-utils/logger.js +2 -2
- package/libs/shared-utils/three/FivePointSelector.d.ts +36 -0
- package/libs/shared-utils/three/FivePointSelector.js +49 -0
- package/libs/shared-utils/three/Magnifier.d.ts +0 -3
- package/libs/shared-utils/three/Magnifier.js +13 -16
- package/libs/shared-utils/three/centerPoint.js +3 -1
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/libs/vendor/svelte/internal/index.js +345 -392
- package/package.json +2 -4
- package/dist/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +0 -1
- package/dist/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +0 -1
- package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +0 -1
- package/dist/PanoMeasurePlugin/Components/Common/Switcher1.svelte.d.ts +0 -1
- package/dist/PanoMeasurePlugin/Components/Common/icons/index.d.ts +0 -4
- package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +0 -1
- package/dist/PanoMeasurePlugin/Components/Controller1.svelte.d.ts +0 -1
- package/dist/PanoMeasurePlugin/Model/area.d.ts +0 -70
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +0 -14
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -12
- package/dist/PanoMeasurePlugin/utils/dom/areaDom.d.ts +0 -22
- package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +0 -29
- package/dist/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +0 -27
- package/dist/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +0 -6
- package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +0 -7
- package/dist/PanoMeasurePlugin/utils/isIntersecting.d.ts +0 -15
- package/dist/shared-utils/isTouchDevice.d.ts +0 -1
- package/dist/shared-utils/safeObj.d.ts +0 -1
- package/dist/shared-utils/three/IObject3D.d.ts +0 -7
- package/dist/shared-utils/three/PointSelector.d.ts +0 -66
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +0 -50
- package/docs/interfaces/Util.PointIntersection.html +0 -408
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +0 -57
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +0 -1
- package/libs/PanoMeasurePlugin/Components/Common/Exit.js +0 -42
- package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +0 -1
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +0 -246
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +0 -1
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +0 -211
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.svelte.d.ts +0 -1
- package/libs/PanoMeasurePlugin/Components/Common/icons/index.d.ts +0 -4
- package/libs/PanoMeasurePlugin/Components/Common/icons/index.js +0 -7
- package/libs/PanoMeasurePlugin/Components/Controller0.js +0 -240
- package/libs/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +0 -1
- package/libs/PanoMeasurePlugin/Components/Controller1.js +0 -399
- package/libs/PanoMeasurePlugin/Components/Controller1.svelte.d.ts +0 -1
- package/libs/PanoMeasurePlugin/Model/area.d.ts +0 -70
- package/libs/PanoMeasurePlugin/Model/area.js +0 -110
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +0 -14
- package/libs/PanoMeasurePlugin/Model/polygon.js +0 -44
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -12
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +0 -29
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.d.ts +0 -22
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +0 -50
- package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +0 -29
- package/libs/PanoMeasurePlugin/utils/dom/base.js +0 -78
- package/libs/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +0 -27
- package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +0 -62
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +0 -6
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +0 -13
- package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +0 -7
- package/libs/PanoMeasurePlugin/utils/geometryUtil.js +0 -39
- package/libs/PanoMeasurePlugin/utils/isIntersecting.d.ts +0 -15
- package/libs/PanoMeasurePlugin/utils/isIntersecting.js +0 -25
- package/libs/shared-utils/isTouchDevice.d.ts +0 -1
- package/libs/shared-utils/isTouchDevice.js +0 -4
- package/libs/shared-utils/safeObj.d.ts +0 -1
- package/libs/shared-utils/safeObj.js +0 -6
- package/libs/shared-utils/three/IObject3D.d.ts +0 -7
- package/libs/shared-utils/three/IObject3D.js +0 -25
- package/libs/shared-utils/three/PointSelector.d.ts +0 -66
- package/libs/shared-utils/three/PointSelector.js +0 -116
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +0 -50
- package/libs/shared-utils/three/PointSelectorHelper.js +0 -100
- /package/libs/{shared-utils → PanoMeasurePlugin/utils}/getIntersectionFromEvent.js +0 -0
- /package/libs/{shared-utils → PanoMeasurePlugin/utils}/getPointFromHammerEvent.js +0 -0
|
@@ -1,93 +1,56 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var d = Object.getOwnPropertySymbols;
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var p = (s, e, t) => e in s ? y(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, n = (s, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
6
|
+
M.call(e, t) && p(s, t, e[t]);
|
|
7
|
+
if (d)
|
|
8
|
+
for (var t of d(e))
|
|
9
|
+
P.call(e, t) && p(s, t, e[t]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
|
-
var i = (s, e, t) => (
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { omit as
|
|
19
|
-
import { Group as
|
|
20
|
-
import { Model as
|
|
21
|
-
import { Subscribe as
|
|
22
|
-
import { getMouseGroup as
|
|
23
|
-
import { UIController as
|
|
24
|
-
import { GuideController as
|
|
25
|
-
import { ShortcutKeyController as
|
|
26
|
-
import
|
|
27
|
-
import { Magnifier as B } from "../../shared-utils/three/Magnifier.js";
|
|
28
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
31
|
-
import { isTouchDevice as W } from "../../shared-utils/isTouchDevice.js";
|
|
12
|
+
var i = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
import I from "../Modules/Magnifier.js";
|
|
14
|
+
import a from "./EditController.js";
|
|
15
|
+
import f from "./ViewController.js";
|
|
16
|
+
import g from "./WatchController.js";
|
|
17
|
+
import l from "./MixedController.js";
|
|
18
|
+
import { omit as b } from "../../shared-utils/filter.js";
|
|
19
|
+
import { Group as w } from "three";
|
|
20
|
+
import { Model as v } from "../Model/index.js";
|
|
21
|
+
import { Subscribe as U } from "@realsee/five";
|
|
22
|
+
import { getMouseGroup as E } from "../utils/mouseGroup.js";
|
|
23
|
+
import { UIController as C } from "../Modules/UIController/index.js";
|
|
24
|
+
import { GuideController as k } from "../Modules/GuideController.js";
|
|
25
|
+
import { ShortcutKeyController as D } from "./ShortcutKeyController.js";
|
|
26
|
+
import "hammerjs";
|
|
32
27
|
import "../Model/line.js";
|
|
33
28
|
import "../../shared-utils/uuid.js";
|
|
34
29
|
import "../utils/line.js";
|
|
35
30
|
import "@realsee/five/line";
|
|
36
31
|
import "../utils/constants.js";
|
|
37
|
-
import "../utils/
|
|
38
|
-
import "../utils/dom/base.js";
|
|
32
|
+
import "../utils/distanceDom.js";
|
|
39
33
|
import "../utils/isNDCPointInScreen.js";
|
|
40
34
|
import "../Model/point.js";
|
|
41
35
|
import "../../shared-utils/removeArrayItem.js";
|
|
42
36
|
import "../../shared-utils/throttle.js";
|
|
43
37
|
import "./BaseController.js";
|
|
44
38
|
import "../utils/ironbox.js";
|
|
39
|
+
import "../utils/getIntersectionFromEvent.js";
|
|
40
|
+
import "../utils/getPointFromHammerEvent.js";
|
|
45
41
|
import "../Model/polyline.js";
|
|
46
|
-
import "../Model/area.js";
|
|
47
|
-
import "../Model/polygon.js";
|
|
48
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
49
|
-
import "../utils/generatePolygonGeometry.js";
|
|
50
|
-
import "earcut";
|
|
51
|
-
import "../utils/dom/areaDom.js";
|
|
52
|
-
import "../utils/geometryUtil.js";
|
|
53
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
54
|
-
import "../utils/isIntersecting.js";
|
|
55
|
-
import "../../shared-utils/three/PointSelector.js";
|
|
56
|
-
import "../../shared-utils/three/PointSelectorHelper.js";
|
|
57
|
-
import "../../shared-utils/three/getIntersect.js";
|
|
58
|
-
import "../../shared-utils/three/PointHelper.js";
|
|
59
|
-
import "../../shared-utils/three/Assets/index.js";
|
|
60
|
-
import "../../shared-utils/three/PointDomHelper.js";
|
|
61
|
-
import "hammerjs";
|
|
62
|
-
import "../Modules/rangePiece/html.js";
|
|
63
|
-
import "../../CSS3DRenderPlugin/index.js";
|
|
64
|
-
import "../../CSS3DRenderPlugin/Controller.js";
|
|
65
|
-
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
66
|
-
import "../../shared-utils/absoluteUrl.js";
|
|
67
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
68
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
69
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
70
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
71
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
72
|
-
import "../../shared-utils/Subscribe.js";
|
|
73
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
74
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
75
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
76
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
77
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
78
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
79
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
80
|
-
import "../../shared-utils/getIntersectionFromEvent.js";
|
|
81
|
-
import "../../shared-utils/getPointFromHammerEvent.js";
|
|
82
42
|
import "../Modules/DeleteDom/index.js";
|
|
83
43
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
84
44
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
85
45
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
86
|
-
import "../utils/findAssociatedLines.js";
|
|
87
46
|
import "../utils/math.js";
|
|
88
47
|
import "../utils/findClosestPoint.js";
|
|
89
48
|
import "../utils/ndc2Screen.js";
|
|
49
|
+
import "../utils/findAssociatedLines.js";
|
|
90
50
|
import "../Modules/rangePiece/index.js";
|
|
51
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
52
|
+
import "../Modules/rangePiece/html.js";
|
|
53
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
91
54
|
import "../../shared-utils/noop.js";
|
|
92
55
|
import "../utils/calculateThreeMouse.js";
|
|
93
56
|
import "../../shared-utils/tap.js";
|
|
@@ -97,81 +60,57 @@ import "../Modules/UIController/style.js";
|
|
|
97
60
|
import "../Modules/UIController/MainBtnController.js";
|
|
98
61
|
import "../Modules/UIController/mobileMainBtnController.js";
|
|
99
62
|
import "../Modules/UIController/Revoke/index.js";
|
|
100
|
-
|
|
101
|
-
import "../../vendor/svelte/internal/index.js";
|
|
102
|
-
import "../Components/Common/Switcher0.js";
|
|
103
|
-
import "../Components/Common/Exit.js";
|
|
104
|
-
import "../Components/Common/icons/index.js";
|
|
105
|
-
import "../Components/Controller1.js";
|
|
106
|
-
import "../Components/Common/Switcher1.js";
|
|
107
|
-
import "../Components/Common/CircleButton.js";
|
|
108
|
-
import "../../vendor/svelte/transition/index.js";
|
|
109
|
-
import "../../vendor/svelte/easing/index.js";
|
|
110
|
-
class Dt {
|
|
63
|
+
class Ee {
|
|
111
64
|
constructor(e, t) {
|
|
112
65
|
i(this, "hasOpen", !1);
|
|
113
|
-
i(this, "hook", new
|
|
66
|
+
i(this, "hook", new U());
|
|
114
67
|
i(this, "magnifier");
|
|
115
|
-
i(this, "controller", null);
|
|
116
|
-
/** 允许的测量类型 */
|
|
117
|
-
i(this, "allowMeasureType");
|
|
118
|
-
/** 当前的测量类型 */
|
|
119
|
-
i(this, "currentMeasureType");
|
|
120
68
|
i(this, "five");
|
|
121
69
|
i(this, "model");
|
|
122
70
|
i(this, "group");
|
|
123
71
|
i(this, "config");
|
|
124
72
|
i(this, "isMobile");
|
|
125
|
-
i(this, "fiveHelper");
|
|
126
73
|
i(this, "useUIController");
|
|
127
74
|
i(this, "params");
|
|
128
75
|
i(this, "useGuideController");
|
|
129
76
|
i(this, "container", document.createElement("div"));
|
|
130
77
|
i(this, "shortcutKeyController");
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
* @description 还原点位展示和默认鼠标 UI
|
|
134
|
-
*/
|
|
135
|
-
i(this, "disable", () => {
|
|
136
|
-
var e, t, o, r;
|
|
137
|
-
this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (o = this.useGuideController) == null || o.hide(), (r = this.shortcutKeyController) == null || r.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
138
|
-
});
|
|
139
|
-
i(this, "getCurrentMode", () => this.controller instanceof m ? "Edit" : this.controller instanceof v ? "Watch" : this.controller instanceof a ? "Mixed" : this.controller instanceof w ? "View" : null);
|
|
78
|
+
i(this, "controller", null);
|
|
79
|
+
i(this, "getCurrentMode", () => this.controller instanceof a ? "Edit" : this.controller instanceof g ? "Watch" : this.controller instanceof l ? "Mixed" : this.controller instanceof f ? "View" : null);
|
|
140
80
|
/** 变更场景
|
|
141
81
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
142
82
|
*/
|
|
143
83
|
i(this, "changeMode", (e) => {
|
|
144
|
-
var
|
|
84
|
+
var o;
|
|
145
85
|
if (!this.hasOpen || this.getCurrentMode() === e)
|
|
146
86
|
return;
|
|
147
|
-
(
|
|
87
|
+
(o = this.controller) == null || o.dispose();
|
|
148
88
|
const t = {
|
|
149
|
-
View:
|
|
150
|
-
Watch:
|
|
151
|
-
Edit:
|
|
152
|
-
Mixed:
|
|
89
|
+
View: f,
|
|
90
|
+
Watch: g,
|
|
91
|
+
Edit: a,
|
|
92
|
+
Mixed: l
|
|
153
93
|
};
|
|
154
94
|
if (!t[e])
|
|
155
95
|
throw new Error("不存在的 Mode");
|
|
156
|
-
const
|
|
157
|
-
this.controller = new t[e](
|
|
96
|
+
const r = this.createControllerParams();
|
|
97
|
+
this.controller = new t[e](r), this.hook.emit("modeChange", e);
|
|
158
98
|
});
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
i(this, "changeMeasureType", (e) => {
|
|
163
|
-
this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
|
|
164
|
-
});
|
|
165
|
-
var l, n, u, d, f, g, y, M, C;
|
|
166
|
-
this.five = e, this.params = t, this.config = D(t, ["openParams", "magnifierParams"]), this.model = new x(this.config), this.fiveHelper = new k(e), this.isMobile = (n = (l = t == null ? void 0 : t.openParams) == null ? void 0 : l.isMobile) != null ? n : !1, this.magnifier = new B(e, (u = t.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((f = (d = t.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (g = this.allowMeasureType[0]) != null ? g : "line", this.group = new U(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
167
|
-
const o = (M = (y = t.editParams) == null ? void 0 : y.pointSelectorMode) != null ? M : W ? "fixed" : "cursor", r = (C = this.params.openParams) != null ? C : {};
|
|
99
|
+
var o, h, c, u;
|
|
100
|
+
this.five = e, this.params = t, this.config = b(t, ["openParams", "magnifierParams"]), this.model = new v(this.config), this.isMobile = (h = (o = t == null ? void 0 : t.openParams) == null ? void 0 : o.isMobile) != null ? h : !1, this.magnifier = new I(e, (c = t.magnifierParams) != null ? c : { width: 190, height: 190, scale: 2 }), this.group = new w(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
101
|
+
const r = (u = this.params.openParams) != null ? u : {};
|
|
168
102
|
if (this.params.useUIController !== !1) {
|
|
169
|
-
const
|
|
170
|
-
|
|
103
|
+
const m = n({
|
|
104
|
+
container: this.container,
|
|
105
|
+
openParams: r
|
|
106
|
+
}, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
|
|
107
|
+
this.useUIController = new C(this, m);
|
|
171
108
|
}
|
|
172
109
|
if (this.params.useGuideController !== !1) {
|
|
173
|
-
const
|
|
174
|
-
|
|
110
|
+
const m = n({
|
|
111
|
+
container: this.container
|
|
112
|
+
}, typeof this.params.useGuideController == "object" ? this.params.useGuideController : {});
|
|
113
|
+
this.useGuideController = new k(this, m);
|
|
175
114
|
}
|
|
176
115
|
}
|
|
177
116
|
appendTo(e) {
|
|
@@ -194,24 +133,28 @@ class Dt {
|
|
|
194
133
|
*/
|
|
195
134
|
enable(e) {
|
|
196
135
|
var t;
|
|
197
|
-
this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), this.shortcutKeyController = new
|
|
136
|
+
this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), this.shortcutKeyController = new D(this, this.five), this.hook.emit("enable", !0));
|
|
137
|
+
}
|
|
138
|
+
/** 关闭插件功能
|
|
139
|
+
* @description 清除标尺线条
|
|
140
|
+
* @description 还原点位展示和默认鼠标 UI
|
|
141
|
+
*/
|
|
142
|
+
disable() {
|
|
143
|
+
var e, t, r, o;
|
|
144
|
+
this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (r = this.useGuideController) == null || r.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
198
145
|
}
|
|
199
146
|
/** 进入编辑模式 */
|
|
200
|
-
edit(
|
|
201
|
-
e
|
|
202
|
-
|
|
203
|
-
this.changeMode(t);
|
|
147
|
+
edit() {
|
|
148
|
+
const e = this.isMobile ? "Mixed" : "Edit";
|
|
149
|
+
this.changeMode(e);
|
|
204
150
|
}
|
|
205
151
|
/** 撤销编辑 */
|
|
206
152
|
revoke() {
|
|
207
|
-
this.controller instanceof
|
|
153
|
+
this.controller instanceof a && this.controller.revoke();
|
|
208
154
|
}
|
|
209
155
|
removePolyline(e) {
|
|
210
156
|
this.model.removePolyline(e);
|
|
211
157
|
}
|
|
212
|
-
removeArea(e) {
|
|
213
|
-
this.model.removeArea(e);
|
|
214
|
-
}
|
|
215
158
|
removePolylineByID(e) {
|
|
216
159
|
const t = this.model.getPolylineByID(e);
|
|
217
160
|
t && this.model.removePolyline(t);
|
|
@@ -237,34 +180,40 @@ class Dt {
|
|
|
237
180
|
* @description 以下情况可能报错
|
|
238
181
|
*/
|
|
239
182
|
save(e) {
|
|
240
|
-
var
|
|
241
|
-
if (!(this.controller instanceof
|
|
183
|
+
var o;
|
|
184
|
+
if (!(this.controller instanceof a) && !(this.controller instanceof l))
|
|
242
185
|
return this;
|
|
243
|
-
const t = (
|
|
244
|
-
return
|
|
245
|
-
this.model.addPolyline(
|
|
246
|
-
}), r.forEach((n) => {
|
|
247
|
-
n.showArea(), this.model.addArea(n);
|
|
186
|
+
const t = (o = e == null ? void 0 : e.mode) != null ? o : "View";
|
|
187
|
+
return this.controller.model.polylines.forEach((h) => {
|
|
188
|
+
this.model.addPolyline(h);
|
|
248
189
|
}), this.changeMode(t), this;
|
|
249
190
|
}
|
|
250
191
|
/** Mixed 模式才有用,添加起点 */
|
|
251
192
|
addStartPoint() {
|
|
252
|
-
this.controller instanceof
|
|
193
|
+
this.controller instanceof l && this.hook.emit("willChangeState", "watching", "editing");
|
|
253
194
|
}
|
|
254
195
|
/** Mixed 模式才有用,添加终点 */
|
|
255
196
|
addEndPoint() {
|
|
256
|
-
this.controller instanceof
|
|
197
|
+
this.controller instanceof l && this.hook.emit("willChangeState", "editing", "watching");
|
|
257
198
|
}
|
|
258
199
|
/** 导出数据 */
|
|
259
200
|
toJson() {
|
|
260
201
|
return this.model.toJson();
|
|
261
202
|
}
|
|
262
203
|
/**
|
|
263
|
-
* @deprecated 暂不支持
|
|
264
204
|
* @description 改变插件的模式(pc端模式或移动端模式)
|
|
265
205
|
* @param isMobile true为移动端模式,false为pc端
|
|
266
206
|
*/
|
|
267
207
|
changeIsMobile(e) {
|
|
208
|
+
var t;
|
|
209
|
+
if (this.isMobile = e, this.params.useUIController !== !1) {
|
|
210
|
+
(t = this.useUIController) == null || t.dispose();
|
|
211
|
+
const r = n({
|
|
212
|
+
container: this.container,
|
|
213
|
+
mode: this.isMobile ? "mobile" : "pc"
|
|
214
|
+
}, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
|
|
215
|
+
this.useUIController = new C(this, r);
|
|
216
|
+
}
|
|
268
217
|
}
|
|
269
218
|
changeConfigs(e) {
|
|
270
219
|
var t;
|
|
@@ -272,15 +221,15 @@ class Dt {
|
|
|
272
221
|
}
|
|
273
222
|
/** 设置线段的文本 */
|
|
274
223
|
setCustomText(e, t) {
|
|
275
|
-
var
|
|
276
|
-
const
|
|
277
|
-
if (!
|
|
224
|
+
var o;
|
|
225
|
+
const r = this.model.getLineByID(e);
|
|
226
|
+
if (!r)
|
|
278
227
|
throw new Error("不存在的线段");
|
|
279
|
-
|
|
228
|
+
r.setText(t), (o = this.controller) == null || o.updateDistanceUI();
|
|
280
229
|
}
|
|
281
230
|
createControllerParams() {
|
|
282
|
-
var
|
|
283
|
-
const e = (
|
|
231
|
+
var t;
|
|
232
|
+
const e = (t = this.params.openParams) != null ? t : {};
|
|
284
233
|
return e.isMobile = this.isMobile, {
|
|
285
234
|
five: this.five,
|
|
286
235
|
hook: this.hook,
|
|
@@ -289,16 +238,12 @@ class Dt {
|
|
|
289
238
|
config: this.config,
|
|
290
239
|
magnifier: this.magnifier,
|
|
291
240
|
container: this.container,
|
|
292
|
-
fiveHelper: this.fiveHelper,
|
|
293
241
|
openParams: e,
|
|
294
|
-
|
|
295
|
-
magnifierParams: this.params.magnifierParams,
|
|
296
|
-
getMeasureType: () => this.currentMeasureType,
|
|
297
|
-
mouseGroup: H(h({}, e.crossHairParameter)),
|
|
242
|
+
mouseGroup: E(n({}, e.crossHairParameter)),
|
|
298
243
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
299
244
|
};
|
|
300
245
|
}
|
|
301
246
|
}
|
|
302
247
|
export {
|
|
303
|
-
|
|
248
|
+
Ee as default
|
|
304
249
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Config } from '../typings';
|
|
2
2
|
import type { PluginData } from '../typings/data';
|
|
3
|
-
import type Area from './area';
|
|
4
3
|
import type Line from './line';
|
|
5
4
|
import { Polyline } from './polyline';
|
|
6
5
|
import { Subscribe } from '@realsee/five';
|
|
@@ -9,10 +8,6 @@ type IModelEvent = {
|
|
|
9
8
|
* @param line 被创建的线条
|
|
10
9
|
*/
|
|
11
10
|
polylineAdded: (line: Polyline) => void;
|
|
12
|
-
/** 新增面积
|
|
13
|
-
* @param area 被创建的面积
|
|
14
|
-
*/
|
|
15
|
-
areaAdded: (area: Area) => void;
|
|
16
11
|
/** 删除线条
|
|
17
12
|
* @param lines 被删除的线条数组
|
|
18
13
|
*/
|
|
@@ -21,23 +16,18 @@ type IModelEvent = {
|
|
|
21
16
|
export declare class Model {
|
|
22
17
|
readonly config?: Config;
|
|
23
18
|
readonly polylines: Polyline[];
|
|
24
|
-
readonly areas: Area[];
|
|
25
19
|
readonly hook: Subscribe<IModelEvent>;
|
|
26
20
|
constructor(config?: Config);
|
|
27
21
|
addPolyline(polyline: Polyline): void;
|
|
28
|
-
addArea(area: Area): void;
|
|
29
22
|
replacePolylineByID(id: string, polyline: Polyline): void;
|
|
30
23
|
removePolyline(polyline: Polyline): void;
|
|
31
|
-
removeArea(area: Area): void;
|
|
32
24
|
getPolylineByID(id: string): Polyline;
|
|
33
25
|
getPolylineByLine(line: Line): Polyline;
|
|
34
26
|
getLineByID(id: string): Line;
|
|
35
27
|
getAllLines(): Line[];
|
|
36
|
-
getAllAreas(): Area[];
|
|
37
28
|
getAllPoints(): import("./point").default[];
|
|
38
29
|
includes(item: Polyline): boolean;
|
|
39
30
|
clear(): void;
|
|
40
|
-
dispose(): void;
|
|
41
31
|
getClosestPoint(): void;
|
|
42
32
|
parse(data: PluginData): void;
|
|
43
33
|
toJson(): PluginData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { Polyline as
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var s = (o, i, e) => i in o ? n(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e;
|
|
3
|
+
var t = (o, i, e) => (s(o, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import { Polyline as r } from "./polyline.js";
|
|
5
5
|
import { Subscribe as p } from "@realsee/five";
|
|
6
6
|
import "./line.js";
|
|
7
7
|
import "../../shared-utils/uuid.js";
|
|
@@ -9,88 +9,65 @@ import "../utils/line.js";
|
|
|
9
9
|
import "@realsee/five/line";
|
|
10
10
|
import "../utils/constants.js";
|
|
11
11
|
import "three";
|
|
12
|
-
import "../utils/
|
|
13
|
-
import "../utils/dom/base.js";
|
|
12
|
+
import "../utils/distanceDom.js";
|
|
14
13
|
import "../utils/isNDCPointInScreen.js";
|
|
15
14
|
import "./point.js";
|
|
16
15
|
import "../../shared-utils/removeArrayItem.js";
|
|
17
16
|
class I {
|
|
18
|
-
constructor(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (this.includes(e)) {
|
|
17
|
+
constructor(i) {
|
|
18
|
+
t(this, "config");
|
|
19
|
+
t(this, "polylines", []);
|
|
20
|
+
t(this, "hook", new p());
|
|
21
|
+
this.config = i;
|
|
22
|
+
}
|
|
23
|
+
addPolyline(i) {
|
|
24
|
+
if (this.includes(i)) {
|
|
27
25
|
console.error(new Error("不能重复添加 polyline"));
|
|
28
26
|
return;
|
|
29
27
|
}
|
|
30
|
-
this.polylines.push(
|
|
28
|
+
this.polylines.push(i), this.hook.emit("polylineAdded", i);
|
|
31
29
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
this.areas.push(e), this.hook.emit("areaAdded", e);
|
|
30
|
+
replacePolylineByID(i, e) {
|
|
31
|
+
const l = this.getPolylineByID(i);
|
|
32
|
+
l == null || l.replace(e);
|
|
38
33
|
}
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
removePolyline(e) {
|
|
44
|
-
const i = this.polylines.findIndex(({ id: o }) => o === e.id);
|
|
45
|
-
if (i === -1) {
|
|
34
|
+
removePolyline(i) {
|
|
35
|
+
const e = this.polylines.findIndex(({ id: l }) => l === i.id);
|
|
36
|
+
if (e === -1) {
|
|
46
37
|
console.error(new Error("polyline 不存在"));
|
|
47
38
|
return;
|
|
48
39
|
}
|
|
49
|
-
this.polylines.splice(
|
|
40
|
+
this.polylines.splice(e, 1), this.hook.emit("polylineRemoved", i);
|
|
50
41
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (i === -1) {
|
|
54
|
-
console.error(new Error("area 不存在"));
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
this.areas.splice(i, 1);
|
|
58
|
-
}
|
|
59
|
-
getPolylineByID(e) {
|
|
60
|
-
return this.polylines.find((i) => i.id === e);
|
|
42
|
+
getPolylineByID(i) {
|
|
43
|
+
return this.polylines.find((e) => e.id === i);
|
|
61
44
|
}
|
|
62
|
-
getPolylineByLine(
|
|
63
|
-
return this.polylines.find((
|
|
45
|
+
getPolylineByLine(i) {
|
|
46
|
+
return this.polylines.find((e) => e.includes(i));
|
|
64
47
|
}
|
|
65
|
-
getLineByID(
|
|
66
|
-
return this.getAllLines().find((
|
|
48
|
+
getLineByID(i) {
|
|
49
|
+
return this.getAllLines().find((e) => e.id === i);
|
|
67
50
|
}
|
|
68
51
|
getAllLines() {
|
|
69
|
-
return this.polylines.map((
|
|
70
|
-
}
|
|
71
|
-
getAllAreas() {
|
|
72
|
-
return this.areas;
|
|
52
|
+
return this.polylines.map((i) => i.lines).flat(1);
|
|
73
53
|
}
|
|
74
54
|
getAllPoints() {
|
|
75
|
-
return this.polylines.map((
|
|
55
|
+
return this.polylines.map((i) => i.points).flat(1);
|
|
76
56
|
}
|
|
77
|
-
includes(
|
|
78
|
-
return this.polylines.find(({ id:
|
|
57
|
+
includes(i) {
|
|
58
|
+
return this.polylines.find(({ id: e }) => e === i.id) !== void 0;
|
|
79
59
|
}
|
|
80
60
|
clear() {
|
|
81
|
-
this.polylines.forEach((
|
|
82
|
-
}
|
|
83
|
-
dispose() {
|
|
84
|
-
this.clear();
|
|
61
|
+
this.polylines.forEach((i) => this.hook.emit("polylineRemoved", i)), this.polylines.splice(0, this.polylines.length);
|
|
85
62
|
}
|
|
86
63
|
getClosestPoint() {
|
|
87
64
|
}
|
|
88
|
-
parse(
|
|
89
|
-
this.clear(), this.polylines.push(...
|
|
65
|
+
parse(i) {
|
|
66
|
+
this.clear(), this.polylines.push(...i.polylines.map((e) => new r({ model: this }).fromJson(e))), this.polylines.forEach((e) => this.hook.emit("polylineAdded", e));
|
|
90
67
|
}
|
|
91
68
|
toJson() {
|
|
92
69
|
return {
|
|
93
|
-
polylines: this.polylines.map((
|
|
70
|
+
polylines: this.polylines.map((i) => i.toJson()).filter((i) => i.lines.length > 0)
|
|
94
71
|
};
|
|
95
72
|
}
|
|
96
73
|
}
|
|
@@ -4,8 +4,7 @@ import type { LineJson } from '../typings/data';
|
|
|
4
4
|
import type { Line as FiveLine } from '@realsee/five/line';
|
|
5
5
|
import type { Polyline } from './polyline';
|
|
6
6
|
import { Subscribe, type SubscribeEventMap } from '@realsee/five';
|
|
7
|
-
import { DistanceItem } from '../utils/
|
|
8
|
-
import type * as THREE from 'three';
|
|
7
|
+
import { type DistanceItem } from '../utils/distanceDom';
|
|
9
8
|
export interface ILineHook extends SubscribeEventMap {
|
|
10
9
|
selected: (line: Line) => void;
|
|
11
10
|
textChanged: (text: string | undefined) => void;
|
|
@@ -22,12 +21,7 @@ export default class Line {
|
|
|
22
21
|
readonly hook: Subscribe<ILineHook>;
|
|
23
22
|
readonly distanceItem: DistanceItem;
|
|
24
23
|
private polyline?;
|
|
25
|
-
private visible?;
|
|
26
24
|
constructor(point: Point, anotherPoint: Point, model: Model);
|
|
27
|
-
hide(): void;
|
|
28
|
-
show(): void;
|
|
29
|
-
setPoints(startPoint: THREE.Vector3, endPoint: THREE.Vector3): void;
|
|
30
|
-
remove(): void;
|
|
31
25
|
clear(): void;
|
|
32
26
|
isEmpty(): boolean;
|
|
33
27
|
getPolyline(): Polyline;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
|
-
var m = (s,
|
|
3
|
-
var e = (s,
|
|
4
|
-
import { uuid as
|
|
5
|
-
import { createLineMesh as
|
|
6
|
-
import { Subscribe as
|
|
7
|
-
import {
|
|
2
|
+
var m = (s, t, i) => t in s ? r(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
|
|
3
|
+
var e = (s, t, i) => (m(s, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
+
import { uuid as c } from "../../shared-utils/uuid.js";
|
|
5
|
+
import { createLineMesh as h } from "../utils/line.js";
|
|
6
|
+
import { Subscribe as d } from "@realsee/five";
|
|
7
|
+
import { createDistanceItem as p } from "../utils/distanceDom.js";
|
|
8
8
|
import "@realsee/five/line";
|
|
9
9
|
import "../utils/constants.js";
|
|
10
10
|
import "three";
|
|
11
|
-
import "../utils/dom/base.js";
|
|
12
11
|
import "../utils/isNDCPointInScreen.js";
|
|
13
12
|
class l {
|
|
14
|
-
constructor(
|
|
13
|
+
constructor(t, i, o) {
|
|
15
14
|
e(this, "id");
|
|
16
15
|
e(this, "selected", !1);
|
|
17
16
|
e(this, "text");
|
|
@@ -23,27 +22,14 @@ class l {
|
|
|
23
22
|
e(this, "hook");
|
|
24
23
|
e(this, "distanceItem");
|
|
25
24
|
e(this, "polyline");
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (this.id = p(), this.model = h, i.id === t.id)
|
|
25
|
+
var n;
|
|
26
|
+
if (this.id = c(), this.model = o, t.id === i.id)
|
|
29
27
|
throw new Error("无效的线段, 一个点无法构成线段");
|
|
30
|
-
typeof
|
|
28
|
+
typeof o.config.defaultText == "string" && (this.text = o.config.defaultText), this.hook = new d(), this.points = [t, i], this.mesh = h(this, "normal"), this.lightMesh = h(this, "light"), this.distanceItem = p({
|
|
31
29
|
line: this,
|
|
32
30
|
clickCallback: () => this.hook.emit("selected", this),
|
|
33
|
-
userDistanceItem: (
|
|
34
|
-
}),
|
|
35
|
-
}
|
|
36
|
-
hide() {
|
|
37
|
-
this.visible && (this.visible = !1, this.mesh.visible = !1, this.distanceItem.hide());
|
|
38
|
-
}
|
|
39
|
-
show() {
|
|
40
|
-
this.visible || (this.visible = !0, this.mesh.visible = !0, this.distanceItem.show());
|
|
41
|
-
}
|
|
42
|
-
setPoints(i, t) {
|
|
43
|
-
this.points[0].position.copy(i), this.points[1].position.copy(t), this.mesh.setPoints(i, t);
|
|
44
|
-
}
|
|
45
|
-
remove() {
|
|
46
|
-
this.mesh.parent && this.mesh.parent.remove(this.mesh), this.distanceItem.remove();
|
|
31
|
+
userDistanceItem: (n = this.model.config) != null && n.userDistanceItemCreator ? this.model.config.userDistanceItemCreator() : void 0
|
|
32
|
+
}), t.lines.push(this), i.lines.push(this);
|
|
47
33
|
}
|
|
48
34
|
clear() {
|
|
49
35
|
this.selected = !1, this.polyline = void 0;
|
|
@@ -54,22 +40,22 @@ class l {
|
|
|
54
40
|
getPolyline() {
|
|
55
41
|
if (this.polyline)
|
|
56
42
|
return this.polyline;
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
59
|
-
return this.polyline =
|
|
43
|
+
const t = this.model.polylines.find((i) => i.lines.includes(this));
|
|
44
|
+
if (t)
|
|
45
|
+
return this.polyline = t, t;
|
|
60
46
|
}
|
|
61
|
-
findAnotherPoint(
|
|
62
|
-
return this.points.find(({ id:
|
|
47
|
+
findAnotherPoint(t) {
|
|
48
|
+
return this.points.find(({ id: i }) => i !== t.id);
|
|
63
49
|
}
|
|
64
|
-
setText(
|
|
65
|
-
this.text =
|
|
50
|
+
setText(t) {
|
|
51
|
+
this.text = t, this.hook.emit("textChanged", t);
|
|
66
52
|
}
|
|
67
53
|
toJson() {
|
|
68
|
-
return { id: this.id, points: this.points.map((
|
|
54
|
+
return { id: this.id, points: this.points.map((t) => t.toJson()), text: this.text };
|
|
69
55
|
}
|
|
70
56
|
clone() {
|
|
71
|
-
const
|
|
72
|
-
return
|
|
57
|
+
const t = new l(this.points[0].clone(), this.points[1].clone(), this.model);
|
|
58
|
+
return t.text = this.text, t;
|
|
73
59
|
}
|
|
74
60
|
}
|
|
75
61
|
export {
|