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