@realsee/dnalogel 2.21.0-dev.0 → 2.21.0-dev.11
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/Components/Tip.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 +13 -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 +16 -12
- 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 +8 -1
- 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/PanoTagPlugin/controller/index.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -4
- package/dist/base/BasePlugin.d.ts +4 -1
- package/dist/components/PaintBrush/style.d.ts +1 -1
- package/dist/index.cjs.js +72 -68
- package/dist/index.js +8323 -7015
- 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 +92 -0
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +41 -0
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/dist/typings/typings.d.ts +4 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +34 -33
- package/docs/classes/CruisePluginController.html +48 -45
- package/docs/classes/GuideLineItem.GuideLineItem.html +23 -22
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +90 -34
- package/docs/classes/Magnifier.html +23 -22
- package/docs/classes/ModelRoomLabelController.html +14 -13
- package/docs/classes/Object3DHelperController.html +47 -44
- package/docs/classes/PaintBrush.html +18 -17
- package/docs/classes/PanoMeasurePluginLine.html +48 -27
- package/docs/classes/PanoMeasurePluginModel.html +44 -28
- package/docs/classes/PanoMeasurePluginPoint.html +17 -16
- package/docs/classes/PanoMeasurePluginPolyline.html +30 -29
- package/docs/classes/PanoTagPluginController.html +73 -70
- package/docs/classes/Util.BetterTween.html +12 -11
- package/docs/classes/Util.Interval.html +15 -14
- package/docs/classes/Util.Magnifier.html +42 -21
- package/docs/classes/Util.PointDomHelper.html +14 -13
- package/docs/classes/Util.PointHelper.html +14 -13
- package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +70 -30
- package/docs/classes/Util.Rectangle.html +16 -15
- package/docs/enums/CameraMovementEffect.html +10 -9
- package/docs/enums/ContentType.html +23 -22
- package/docs/enums/DIRECTION.html +12 -11
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +12 -11
- package/docs/enums/DimensionType.html +10 -9
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +11 -10
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +12 -11
- package/docs/enums/PaintBrushTypeEnum.html +11 -10
- package/docs/enums/PointType.html +10 -9
- package/docs/enums/Rotation.html +11 -10
- package/docs/functions/CSS3DRenderPlugin.html +7 -6
- package/docs/functions/CameraMovementPlugin.html +7 -6
- package/docs/functions/CruisePlugin.html +7 -6
- package/docs/functions/GuideLinePlugin.html +8 -7
- package/docs/functions/ItemLabelPlugin.html +7 -6
- package/docs/functions/MapviewFloorplanPlugin.html +7 -6
- package/docs/functions/ModelChassisCompassPlugin.html +7 -6
- package/docs/functions/ModelEntryDoorGuidePlugin.html +7 -6
- package/docs/functions/ModelFloorplanPlugin.html +7 -6
- package/docs/functions/ModelItemLabelPlugin.html +7 -6
- package/docs/functions/ModelRoomLabelPlugin.html +7 -6
- package/docs/functions/ModelTVVideoPlugin.html +7 -6
- package/docs/functions/ModelViewPlugin.html +7 -6
- package/docs/functions/Object3DHelperPlugin.html +7 -6
- package/docs/functions/PanoCompassPlugin.html +7 -6
- package/docs/functions/PanoCursorRaycasterPlugin.html +7 -6
- package/docs/functions/PanoDoorLabelPlugin.html +7 -6
- package/docs/functions/PanoFloorplanRadarPlugin.html +7 -6
- package/docs/functions/PanoMeasurePlugin.html +7 -6
- package/docs/functions/PanoRulerPlugin.html +7 -6
- package/docs/functions/PanoRulerProPlugin.html +7 -6
- package/docs/functions/PanoSpatialTagPlugin.html +7 -6
- package/docs/functions/PanoTagPlugin.html +7 -6
- package/docs/functions/PanoVideoPlugin.html +7 -6
- package/docs/functions/TopviewFloorplanPlugin.html +7 -6
- package/docs/{types/PartialObjectDeep.html → functions/Util.absoluteUrl.html} +151 -141
- package/docs/functions/Util.getCoordsFromClient.html +8 -7
- package/docs/functions/Util.getCoordsFromElement.html +8 -7
- package/docs/functions/Util.getFrameTime.html +8 -7
- package/docs/functions/Util.getIntersectFromRelativePosition.html +8 -7
- package/docs/functions/Util.getRaycasterFromFivePointer.html +8 -7
- package/docs/functions/Util.isAbsoluteURL.html +8 -7
- package/docs/functions/Util.isModelLike.html +8 -7
- package/docs/functions/Util.isNil.html +8 -7
- package/docs/functions/Util.isPanoramaLike.html +8 -7
- package/docs/functions/Util.nextFrame.html +8 -7
- package/docs/functions/Util.notNil.html +8 -7
- package/docs/functions/Util.requestAnimationFrameInterval.html +8 -7
- package/docs/functions/Util.tweenProgress.html +8 -7
- package/docs/functions/Util.uuid.html +8 -7
- package/docs/functions/pluginFlag.html +8 -7
- package/docs/index.html +8 -7
- package/docs/interfaces/AddTagConfig.html +9 -8
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +14 -13
- package/docs/interfaces/CSS3DRenderPluginState.html +11 -10
- package/docs/interfaces/CameraMovementPluginExportType.html +10 -9
- package/docs/interfaces/CruisePluginTypes.Config.html +11 -10
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +15 -14
- package/docs/interfaces/CruisePluginTypes.EventMap.html +23 -22
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +17 -16
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +17 -16
- package/docs/interfaces/CruisePluginTypes.PluginData.html +12 -11
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +10 -9
- package/docs/interfaces/CruisePluginTypes.PluginState.html +14 -13
- package/docs/interfaces/EventMap.html +18 -17
- package/docs/interfaces/FloorplanBounding.html +11 -10
- package/docs/interfaces/FloorplanData.html +13 -12
- package/docs/interfaces/FloorplanEntrance.html +14 -13
- package/docs/interfaces/FloorplanExtraObject.html +13 -12
- package/docs/interfaces/FloorplanExtraObject3D.html +11 -10
- package/docs/interfaces/FloorplanFloorData.html +12 -11
- package/docs/interfaces/FloorplanImagePosition.html +10 -9
- package/docs/interfaces/FloorplanObserver.html +12 -11
- package/docs/interfaces/FloorplanOutlineItem.html +12 -11
- package/docs/interfaces/FloorplanPosition.html +10 -9
- package/docs/interfaces/FloorplanRoomItem.html +16 -15
- package/docs/interfaces/FloorplanRoomLabelItem.html +10 -9
- package/docs/interfaces/FloorplanServerBounding.html +11 -10
- package/docs/interfaces/FloorplanServerComputedData.html +13 -12
- package/docs/interfaces/FloorplanServerData.html +10 -9
- package/docs/interfaces/FloorplanServerDoorItem.html +13 -12
- package/docs/interfaces/FloorplanServerDoorPosition.html +11 -10
- package/docs/interfaces/FloorplanServerEntrance.html +14 -13
- package/docs/interfaces/FloorplanServerFloorData.html +12 -11
- package/docs/interfaces/FloorplanServerImagePosition.html +10 -9
- package/docs/interfaces/FloorplanServerObserver.html +12 -11
- package/docs/interfaces/FloorplanServerOutlineItem.html +12 -11
- package/docs/interfaces/FloorplanServerPosition.html +10 -9
- package/docs/interfaces/FloorplanServerRoomItem.html +17 -16
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -9
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +11 -10
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +13 -12
- package/docs/interfaces/GuideLinePluginType.EventMap.html +16 -15
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +11 -10
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +16 -15
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +11 -10
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +21 -20
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +10 -9
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +21 -20
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +10 -9
- package/docs/interfaces/GuideLinePluginType.PluginState.html +11 -10
- package/docs/interfaces/GuideLinePluginType.Route.html +14 -13
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +12 -11
- package/docs/interfaces/HelperOffset.html +11 -10
- package/docs/interfaces/ImagePlaneGroup.html +9 -8
- package/docs/interfaces/ItemLabelPluginData.html +9 -8
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +14 -13
- package/docs/interfaces/ItemLabelPluginParametersType.html +12 -11
- package/docs/interfaces/MinMax.html +10 -9
- package/docs/interfaces/ModelChassisCompassPluginData.html +10 -9
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +11 -10
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -9
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +11 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +11 -10
- package/docs/interfaces/ModelItemLabelPluginData.html +9 -8
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +14 -13
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -9
- package/docs/interfaces/ModelRoomLabelPluginData.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginData.html +12 -11
- package/docs/interfaces/ModelTVVideoPluginExportType.html +11 -10
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +9 -8
- package/docs/interfaces/ModelViewPluginExportType.html +14 -13
- package/docs/interfaces/Object3DHelperState.html +11 -10
- package/docs/interfaces/ObjectHelperControllers.html +12 -11
- package/docs/interfaces/PaintBrushAction.html +15 -14
- package/docs/interfaces/PaintBrushConfigs.html +15 -14
- package/docs/interfaces/PaintBrushState.html +13 -12
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +13 -12
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +8 -7
- package/docs/interfaces/PanoMeasureParameterType.html +18 -17
- package/docs/interfaces/PanoMeasurePluginLineJson.html +11 -10
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -9
- package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -9
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +11 -10
- package/docs/interfaces/PanoRulerPluginExportType.html +13 -12
- package/docs/interfaces/PanoRulerPluginOptions.html +10 -9
- package/docs/interfaces/PanoRulerPluginParameterType.html +11 -10
- package/docs/interfaces/PanoRulerProPluginExportType.html +12 -11
- package/docs/interfaces/PanoRulerProPluginOptions.html +10 -9
- package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -9
- package/docs/interfaces/PanoRulerProPluginState.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +8 -7
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +8 -7
- package/docs/interfaces/PanoSpatialTagPluginData.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +13 -12
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +16 -15
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +13 -12
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +16 -15
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +13 -12
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +12 -11
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -12
- package/docs/interfaces/Point.html +11 -10
- package/docs/interfaces/Room.html +12 -11
- package/docs/interfaces/RoomInfo.html +10 -9
- package/docs/interfaces/RoomLabel.html +17 -16
- package/docs/interfaces/RoomRules.html +8 -7
- package/docs/interfaces/Rooms.html +8 -7
- package/docs/interfaces/Scissor.html +12 -11
- package/docs/interfaces/State.html +11 -10
- package/docs/interfaces/TagCacheInterface.html +15 -14
- package/docs/interfaces/TagConfig.html +17 -16
- package/docs/interfaces/TagGLTFObjectGroup.html +9 -8
- package/docs/interfaces/TagIconUrl.html +15 -14
- package/docs/interfaces/TagObjectGroup.html +9 -8
- package/docs/interfaces/TagStyle.html +9 -8
- package/docs/interfaces/Tags.html +12 -11
- package/docs/interfaces/TemporaryState.html +9 -8
- package/docs/interfaces/Util.MagnifierParameter.html +14 -13
- package/docs/interfaces/Util.MouseGroupParameter.html +11 -10
- package/docs/interfaces/Util.PointIntersection.html +407 -0
- package/docs/modules/CruisePluginTypes.html +8 -7
- package/docs/modules/GuideLineItem.html +8 -7
- package/docs/modules/GuideLineModeItem.html +8 -7
- package/docs/modules/GuideLinePluginType.html +8 -7
- package/docs/modules/PanoVideoPluginType.html +8 -7
- package/docs/modules/Util.html +11 -8
- package/docs/modules.html +7 -7
- package/docs/types/ArrayPosition.html +8 -7
- package/docs/types/AudioAppearance.html +8 -7
- package/docs/types/AudioTagTypeConfigKey.html +8 -7
- package/docs/types/CSS3DRenderExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginParameterType.html +8 -7
- package/docs/types/ClassFunctionParameters.html +8 -7
- package/docs/types/Color.html +8 -7
- package/docs/types/ContentTypeConfigKey.html +8 -7
- package/docs/types/ContentTypeConfigKeySplit.html +8 -7
- package/docs/types/ContentTypeMap.html +8 -7
- package/docs/types/Create3DDomContainerReturnType.html +8 -7
- package/docs/types/Create3DElementReturnType.html +8 -7
- package/docs/types/CruisePluginExportType.html +8 -7
- package/docs/types/CruisePluginTypes.CruiseData.html +8 -7
- package/docs/types/CruisePluginTypes.MoveEffect.html +8 -7
- package/docs/types/DeprecatedMediaPlaneProperty.html +8 -7
- package/docs/types/DeprecatedTagProperty.html +8 -7
- package/docs/types/Direction-1.html +8 -7
- package/docs/types/Direction4.html +8 -7
- package/docs/types/ElementRenderer.html +8 -7
- package/docs/types/FloorplanRuleLabels.html +8 -7
- package/docs/types/FloorplanServerRuleLabels.html +8 -7
- package/docs/types/GuideLinePluginExportType.html +8 -7
- package/docs/types/GuideLinePluginType.GuideLineItem.html +8 -7
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +8 -7
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +8 -7
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +8 -7
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +8 -7
- package/docs/types/GuideLinePluginType.PathItem.html +8 -7
- package/docs/types/GuideLinePluginType.PluginData.html +8 -7
- package/docs/types/HelperEventMap.html +8 -7
- package/docs/types/LoadTagConfig.html +8 -7
- package/docs/types/MapviewFloorplanPluginParameterType.html +8 -7
- package/docs/types/MapviewFloorplanPluginReturnType.html +8 -7
- package/docs/types/MediaData.html +8 -7
- package/docs/types/MediaStore.html +8 -7
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +8 -7
- package/docs/types/ModelFloorplanPluginParameterType.html +8 -7
- package/docs/types/ModelFloorplanPluginReturnType.html +8 -7
- package/docs/types/ModelRoomLabelPluginParameters.html +8 -7
- package/docs/types/ModelRoomLabelPluginReturnType.html +8 -7
- package/docs/types/MoveArgs.html +8 -7
- package/docs/types/MoveOpts.html +8 -7
- package/docs/types/Object3DHelperEventMap.html +8 -7
- package/docs/types/ObjectFit.html +8 -7
- package/docs/types/PaintBrushEventMap.html +8 -7
- package/docs/types/PanoCompassPluginData.html +8 -7
- package/docs/types/PanoCompassPluginExportType.html +8 -7
- package/docs/types/PanoCompassPluginParameterType.html +8 -7
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +8 -7
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +8 -7
- package/docs/types/PanoIndex.html +8 -7
- package/docs/types/PanoMeasurePluginEvent.html +8 -7
- package/docs/types/PanoMeasureReturnType.html +8 -7
- package/docs/types/PanoSpatialTagPluginId.html +8 -7
- package/docs/types/PanoTagPluginExportInterface.html +8 -7
- package/docs/types/PanoTagPluginParamsInterface.html +8 -7
- package/docs/types/PanoVideoPluginParameterType.html +8 -7
- package/docs/types/PanoVideoPluginReturnType.html +8 -7
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +8 -7
- package/docs/types/PlaneTag.html +8 -7
- package/docs/types/Point2DTag.html +8 -7
- package/docs/types/Point3DTag.html +8 -7
- package/docs/types/PointTag.html +8 -7
- package/docs/types/PointTagInstance.html +8 -7
- package/docs/types/Position.html +8 -7
- package/docs/types/RotateArgs.html +8 -7
- package/docs/types/RotateOpts.html +8 -7
- package/docs/types/RuleLabelsKey.html +8 -7
- package/docs/types/RuleLabelsValue.html +8 -7
- package/docs/types/StickType.html +8 -7
- package/docs/types/Tag.html +8 -7
- package/docs/types/Tag2D.html +8 -7
- package/docs/types/Tag3D.html +8 -7
- package/docs/types/TagContentType.html +8 -7
- package/docs/types/TagDimensionType.html +8 -7
- package/docs/types/TagElement.html +8 -7
- package/docs/types/TagEvents.html +8 -7
- package/docs/types/TagGLTFObject.html +8 -7
- package/docs/types/TagHooks.html +8 -7
- package/docs/types/TagId.html +8 -7
- package/docs/types/TagInstance.html +8 -7
- package/docs/types/TagPointType.html +8 -7
- package/docs/types/TagRendererMap.html +8 -7
- package/docs/types/TopviewFloorplanPluginParameterType.html +8 -7
- package/docs/types/TopviewFloorplanPluginReturnType.html +8 -7
- package/docs/types/WorkCode.html +8 -7
- package/docs/variables/FLOOR_TYPE_MAP.html +8 -7
- package/docs/variables/PLUGIN.html +8 -7
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +8 -7
- package/docs/variables/ROOM_TYPE_MAP.html +8 -7
- package/docs/variables/itemLabelPluginServerParams.html +8 -7
- package/docs/variables/modelItemLabelPluginServerParams.html +8 -7
- package/docs/variables/modelRoomLabelPluginServerParams.html +8 -7
- 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 +76 -40
- 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 +355 -108
- package/libs/PanoMeasurePlugin/Components/Tip.js +154 -0
- package/libs/PanoMeasurePlugin/Components/Tip.svelte.d.ts +1 -0
- 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 +237 -126
- 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 +107 -91
- package/libs/PanoMeasurePlugin/Model/area.d.ts +13 -1
- package/libs/PanoMeasurePlugin/Model/area.js +56 -37
- 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 +16 -12
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +67 -40
- 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 +57 -37
- package/libs/PanoMeasurePlugin/typings/data.d.ts +8 -2
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +8 -1
- 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.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -4
- 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 +130 -123
- 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 +92 -0
- package/libs/shared-utils/three/PointSelector.js +187 -0
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +41 -0
- package/libs/shared-utils/three/PointSelectorHelper.js +50 -0
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/libs/typings/typings.d.ts +4 -0
- 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/PointHelper.js";
|
|
58
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
59
|
+
import "../../shared-utils/three/PointDomHelper.js";
|
|
60
|
+
import "hammerjs";
|
|
61
|
+
import "../Modules/rangePiece/html.js";
|
|
62
|
+
import "../../CSS3DRenderPlugin/index.js";
|
|
63
|
+
import "../../CSS3DRenderPlugin/Controller.js";
|
|
64
|
+
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
65
|
+
import "../../shared-utils/absoluteUrl.js";
|
|
66
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
67
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
68
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
69
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
70
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
71
|
+
import "../../shared-utils/Subscribe.js";
|
|
72
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
73
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
74
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
75
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
76
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
77
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
78
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
79
|
+
import "../../shared-utils/getIntersectionFromEvent.js";
|
|
80
|
+
import "../../shared-utils/getPointFromHammerEvent.js";
|
|
81
|
+
import "../../shared-utils/three/getIntersect.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,32 @@ 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
|
-
import "../../
|
|
84
|
-
import "
|
|
85
|
-
|
|
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
|
+
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
111
|
+
import "../Components/Tip.js";
|
|
112
|
+
class xt {
|
|
93
113
|
constructor(e, t) {
|
|
94
114
|
i(this, "hasOpen", !1);
|
|
95
|
-
i(this, "hook", new
|
|
115
|
+
i(this, "hook", new G());
|
|
96
116
|
i(this, "magnifier");
|
|
97
117
|
i(this, "controller", null);
|
|
118
|
+
/** 允许的测量类型 */
|
|
119
|
+
i(this, "allowMeasureType");
|
|
98
120
|
/** 当前的测量类型 */
|
|
99
121
|
i(this, "currentMeasureType");
|
|
100
122
|
i(this, "five");
|
|
101
123
|
i(this, "model");
|
|
102
124
|
i(this, "group");
|
|
103
125
|
i(this, "config");
|
|
104
|
-
/** 允许的测量类型 */
|
|
105
|
-
i(this, "allowMeasureType");
|
|
106
126
|
i(this, "isMobile");
|
|
107
127
|
i(this, "fiveHelper");
|
|
108
128
|
i(this, "useUIController");
|
|
@@ -110,25 +130,33 @@ class nt {
|
|
|
110
130
|
i(this, "useGuideController");
|
|
111
131
|
i(this, "container", document.createElement("div"));
|
|
112
132
|
i(this, "shortcutKeyController");
|
|
113
|
-
|
|
133
|
+
/** 关闭插件功能
|
|
134
|
+
* @description 清除标尺线条
|
|
135
|
+
* @description 还原点位展示和默认鼠标 UI
|
|
136
|
+
*/
|
|
137
|
+
i(this, "disable", () => {
|
|
138
|
+
var e, t, r, o;
|
|
139
|
+
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);
|
|
140
|
+
});
|
|
141
|
+
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
142
|
/** 变更场景
|
|
115
143
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
116
144
|
*/
|
|
117
145
|
i(this, "changeMode", (e) => {
|
|
118
|
-
var
|
|
146
|
+
var o;
|
|
119
147
|
if (!this.hasOpen || this.getCurrentMode() === e)
|
|
120
148
|
return;
|
|
121
|
-
(
|
|
149
|
+
(o = this.controller) == null || o.dispose();
|
|
122
150
|
const t = {
|
|
123
|
-
View:
|
|
124
|
-
Watch:
|
|
125
|
-
Edit:
|
|
151
|
+
View: w,
|
|
152
|
+
Watch: v,
|
|
153
|
+
Edit: h,
|
|
126
154
|
Mixed: a
|
|
127
155
|
};
|
|
128
156
|
if (!t[e])
|
|
129
157
|
throw new Error("不存在的 Mode");
|
|
130
|
-
const
|
|
131
|
-
this.controller = new t[e](
|
|
158
|
+
const r = this.createControllerParams();
|
|
159
|
+
this.controller = new t[e](r), this.hook.emit("modeChange", e);
|
|
132
160
|
});
|
|
133
161
|
/**
|
|
134
162
|
* @description: 切换测量的类型
|
|
@@ -136,16 +164,16 @@ class nt {
|
|
|
136
164
|
i(this, "changeMeasureType", (e) => {
|
|
137
165
|
this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
|
|
138
166
|
});
|
|
139
|
-
var
|
|
140
|
-
this.five = e, this.params = t, this.config =
|
|
141
|
-
const o = (
|
|
167
|
+
var l, n, u, d, f, g, y, M, C;
|
|
168
|
+
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";
|
|
169
|
+
const r = (M = (y = t.editParams) == null ? void 0 : y.pointSelectorMode) != null ? M : W ? "fixed" : "cursor", o = (C = this.params.openParams) != null ? C : {};
|
|
142
170
|
if (this.params.useUIController !== !1) {
|
|
143
|
-
const p =
|
|
144
|
-
this.useUIController = new
|
|
171
|
+
const p = m({ container: this.container, openParams: o, pointSelectorMode: r }, b(this.params.useUIController));
|
|
172
|
+
this.useUIController = new S(this, p);
|
|
145
173
|
}
|
|
146
174
|
if (this.params.useGuideController !== !1) {
|
|
147
|
-
const p =
|
|
148
|
-
this.useGuideController = new
|
|
175
|
+
const p = m({ container: this.container, pointSelectorMode: r }, b(this.params.useGuideController));
|
|
176
|
+
this.useGuideController = new L(this, p);
|
|
149
177
|
}
|
|
150
178
|
}
|
|
151
179
|
appendTo(e) {
|
|
@@ -168,15 +196,7 @@ class nt {
|
|
|
168
196
|
*/
|
|
169
197
|
enable(e) {
|
|
170
198
|
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);
|
|
199
|
+
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
200
|
}
|
|
181
201
|
/** 进入编辑模式 */
|
|
182
202
|
edit(e) {
|
|
@@ -186,11 +206,14 @@ class nt {
|
|
|
186
206
|
}
|
|
187
207
|
/** 撤销编辑 */
|
|
188
208
|
revoke() {
|
|
189
|
-
this.controller instanceof
|
|
209
|
+
this.controller instanceof h && this.controller.revoke();
|
|
190
210
|
}
|
|
191
211
|
removePolyline(e) {
|
|
192
212
|
this.model.removePolyline(e);
|
|
193
213
|
}
|
|
214
|
+
removeArea(e) {
|
|
215
|
+
this.model.removeArea(e);
|
|
216
|
+
}
|
|
194
217
|
removePolylineByID(e) {
|
|
195
218
|
const t = this.model.getPolylineByID(e);
|
|
196
219
|
t && this.model.removePolyline(t);
|
|
@@ -217,13 +240,13 @@ class nt {
|
|
|
217
240
|
*/
|
|
218
241
|
save(e) {
|
|
219
242
|
var l;
|
|
220
|
-
if (!(this.controller instanceof
|
|
243
|
+
if (!(this.controller instanceof h) && !(this.controller instanceof a))
|
|
221
244
|
return this;
|
|
222
|
-
const t = (l = e == null ? void 0 : e.mode) != null ? l : "View",
|
|
223
|
-
return
|
|
245
|
+
const t = (l = e == null ? void 0 : e.mode) != null ? l : "View", r = this.controller.model.polylines, o = this.controller.model.areas;
|
|
246
|
+
return r.forEach((n) => {
|
|
224
247
|
this.model.addPolyline(n);
|
|
225
|
-
}),
|
|
226
|
-
n.
|
|
248
|
+
}), this.controller instanceof h ? this.controller.complete() : o.forEach((n) => {
|
|
249
|
+
n.showArea(), this.model.addArea(n);
|
|
227
250
|
}), this.changeMode(t), this;
|
|
228
251
|
}
|
|
229
252
|
/** Mixed 模式才有用,添加起点 */
|
|
@@ -239,19 +262,11 @@ class nt {
|
|
|
239
262
|
return this.model.toJson();
|
|
240
263
|
}
|
|
241
264
|
/**
|
|
265
|
+
* @deprecated 暂不支持
|
|
242
266
|
* @description 改变插件的模式(pc端模式或移动端模式)
|
|
243
267
|
* @param isMobile true为移动端模式,false为pc端
|
|
244
268
|
*/
|
|
245
269
|
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
270
|
}
|
|
256
271
|
changeConfigs(e) {
|
|
257
272
|
var t;
|
|
@@ -259,15 +274,15 @@ class nt {
|
|
|
259
274
|
}
|
|
260
275
|
/** 设置线段的文本 */
|
|
261
276
|
setCustomText(e, t) {
|
|
262
|
-
var
|
|
263
|
-
const
|
|
264
|
-
if (!
|
|
277
|
+
var o;
|
|
278
|
+
const r = this.model.getLineByID(e);
|
|
279
|
+
if (!r)
|
|
265
280
|
throw new Error("不存在的线段");
|
|
266
|
-
|
|
281
|
+
r.setText(t), (o = this.controller) == null || o.updateDistanceUI();
|
|
267
282
|
}
|
|
268
283
|
createControllerParams() {
|
|
269
|
-
var
|
|
270
|
-
const e = (
|
|
284
|
+
var r, o;
|
|
285
|
+
const e = (r = this.params.openParams) != null ? r : {}, t = (o = this.params.editParams) != null ? o : {};
|
|
271
286
|
return e.isMobile = this.isMobile, {
|
|
272
287
|
five: this.five,
|
|
273
288
|
hook: this.hook,
|
|
@@ -279,12 +294,13 @@ class nt {
|
|
|
279
294
|
fiveHelper: this.fiveHelper,
|
|
280
295
|
openParams: e,
|
|
281
296
|
editParams: t,
|
|
297
|
+
magnifierParams: this.params.magnifierParams,
|
|
282
298
|
getMeasureType: () => this.currentMeasureType,
|
|
283
|
-
mouseGroup:
|
|
299
|
+
mouseGroup: H(m({}, e.crossHairParameter)),
|
|
284
300
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
285
301
|
};
|
|
286
302
|
}
|
|
287
303
|
}
|
|
288
304
|
export {
|
|
289
|
-
|
|
305
|
+
xt as default
|
|
290
306
|
};
|
|
@@ -18,9 +18,14 @@ 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>;
|
|
25
|
+
/**
|
|
26
|
+
* @description: 多边形的端点是否闭合
|
|
27
|
+
*/
|
|
28
|
+
get isClosed(): boolean;
|
|
24
29
|
/** 多边形mesh */
|
|
25
30
|
polygon: PolygonMesh;
|
|
26
31
|
/** 多边形顶点 */
|
|
@@ -43,7 +48,14 @@ export default class Area {
|
|
|
43
48
|
five?: Five;
|
|
44
49
|
});
|
|
45
50
|
addPoints(point: THREE.Vector3): void;
|
|
46
|
-
|
|
51
|
+
/**
|
|
52
|
+
* @description: 移除最后一个添加的点
|
|
53
|
+
*/
|
|
54
|
+
popPoint(): void;
|
|
55
|
+
/**
|
|
56
|
+
* @description: 自动补全多边形的各个边
|
|
57
|
+
*/
|
|
58
|
+
complete(): void;
|
|
47
59
|
hideArea(): void;
|
|
48
60
|
showArea(): void;
|
|
49
61
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
|
-
var d = (
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
2
|
+
var d = (s, t, i) => t in s ? m(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
|
|
3
|
+
var e = (s, t, i) => (d(s, typeof t != "symbol" ? t + "" : t, i), i);
|
|
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,55 +21,74 @@ 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
|
|
25
|
-
constructor(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
class O {
|
|
25
|
+
constructor(t, i) {
|
|
26
|
+
e(this, "id", f());
|
|
27
|
+
e(this, "selected", !1);
|
|
28
|
+
e(this, "text");
|
|
29
|
+
e(this, "type", "area");
|
|
30
|
+
e(this, "lightMesh");
|
|
31
|
+
e(this, "areaItem");
|
|
32
|
+
e(this, "hook", new c());
|
|
32
33
|
/** 多边形mesh */
|
|
33
|
-
|
|
34
|
+
e(this, "polygon");
|
|
34
35
|
/** 多边形顶点 */
|
|
35
|
-
|
|
36
|
+
e(this, "points", []);
|
|
36
37
|
/** 多边形前三个点组成的平面,用来使得后面加的点也落在这个平面上 */
|
|
37
|
-
|
|
38
|
+
e(this, "planeHelper");
|
|
38
39
|
/** 多边形边框 */
|
|
39
|
-
|
|
40
|
+
e(this, "polyline");
|
|
40
41
|
/** 多边形mesh容器 */
|
|
41
|
-
|
|
42
|
+
e(this, "meshContainer");
|
|
42
43
|
/** 多边形dom容器 */
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
e(this, "domContainer");
|
|
45
|
+
e(this, "five");
|
|
46
|
+
e(this, "model");
|
|
46
47
|
/**
|
|
47
48
|
* @description: five camera update 时,更新Dom的位置
|
|
48
49
|
*/
|
|
49
|
-
|
|
50
|
-
this.five && (this.polyline.lines.forEach((
|
|
50
|
+
e(this, "updateDom", () => {
|
|
51
|
+
this.five && (this.polyline.lines.forEach((t) => t.distanceItem.update(this.five)), this.areaItem.updateDomPosition(this.five));
|
|
51
52
|
});
|
|
52
53
|
var n;
|
|
53
|
-
|
|
54
|
+
t && (this.points = t), this.model = i.model, this.polygon = new v(t), this.polyline = new y({ model: i.model }), this.areaItem = new C({
|
|
54
55
|
area: this,
|
|
55
|
-
clickCallback: (a,
|
|
56
|
-
const
|
|
57
|
-
this.hook.emit("selected", this, { left:
|
|
56
|
+
clickCallback: (a, o) => {
|
|
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
|
}
|
|
61
|
-
|
|
62
|
+
/**
|
|
63
|
+
* @description: 多边形的端点是否闭合
|
|
64
|
+
*/
|
|
65
|
+
get isClosed() {
|
|
66
|
+
var t;
|
|
67
|
+
return this.points.length >= 4 && ((t = this.points.at(0)) == null ? void 0 : t.equals(this.points.at(-1)));
|
|
68
|
+
}
|
|
69
|
+
addPoints(t) {
|
|
62
70
|
var a;
|
|
63
|
-
this.points = this.points.concat(
|
|
71
|
+
this.points = this.points.concat(t);
|
|
64
72
|
const i = this.points.at(-2), n = this.points.at(-1);
|
|
65
73
|
if (i && n) {
|
|
66
|
-
const
|
|
67
|
-
this.polyline.addLine(
|
|
74
|
+
const o = new u(new p(i), new p(n), this.polyline.model);
|
|
75
|
+
this.polyline.addLine(o), this.meshContainer.add(o.mesh), this.five && (o.distanceItem.setCanSelect(!1), o.distanceItem.appendTo(this.domContainer), o.distanceItem.update(this.five));
|
|
68
76
|
}
|
|
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
|
|
77
|
+
(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);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @description: 移除最后一个添加的点
|
|
81
|
+
*/
|
|
82
|
+
popPoint() {
|
|
83
|
+
this.points.pop();
|
|
84
|
+
const t = this.polyline.lines.pop();
|
|
85
|
+
t == null || t.remove(), this.polygon.updatePoints(this.points), this.areaItem.updateArea(this.five), this.points.length < 3 && (this.planeHelper = null);
|
|
70
86
|
}
|
|
71
|
-
|
|
72
|
-
|
|
87
|
+
/**
|
|
88
|
+
* @description: 自动补全多边形的各个边
|
|
89
|
+
*/
|
|
90
|
+
complete() {
|
|
91
|
+
this.points.at(-1).equals(this.points[0]) || this.addPoints(this.points[0]);
|
|
73
92
|
}
|
|
74
93
|
hideArea() {
|
|
75
94
|
this.polygon.visible = !1, this.areaItem.hide();
|
|
@@ -80,11 +99,11 @@ class V {
|
|
|
80
99
|
/**
|
|
81
100
|
* @description: 获取一个点投影在当前平面上的点
|
|
82
101
|
*/
|
|
83
|
-
projectPoint(
|
|
84
|
-
return this.planeHelper ? this.planeHelper.projectPoint(
|
|
102
|
+
projectPoint(t) {
|
|
103
|
+
return t && (this.planeHelper ? this.planeHelper.projectPoint(t, new h.Vector3()) : t);
|
|
85
104
|
}
|
|
86
105
|
remove() {
|
|
87
|
-
this.polygon.removeFromParent(), this.areaItem.remove(), this.polyline.lines.forEach((
|
|
106
|
+
this.polygon.removeFromParent(), this.areaItem.remove(), this.polyline.lines.forEach((t) => t.remove());
|
|
88
107
|
}
|
|
89
108
|
/**
|
|
90
109
|
* @todo: 没写完
|
|
@@ -94,5 +113,5 @@ class V {
|
|
|
94
113
|
}
|
|
95
114
|
}
|
|
96
115
|
export {
|
|
97
|
-
|
|
116
|
+
O as default
|
|
98
117
|
};
|
|
@@ -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;
|