@realsee/dnalogel 2.21.1 → 2.22.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CruisePlugin/index.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +1 -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/Switcher1.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/Controller1.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Tip.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -4
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +27 -18
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +9 -2
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +26 -9
- package/dist/PanoMeasurePlugin/Model/area.d.ts +74 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +10 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +7 -1
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +14 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +8 -4
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +16 -12
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +10 -3
- package/dist/PanoMeasurePlugin/typings/data.d.ts +24 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +17 -3
- package/dist/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/dom/areaDom.d.ts +22 -0
- package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +29 -0
- package/dist/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +27 -0
- package/dist/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +6 -0
- package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +7 -0
- package/dist/PanoMeasurePlugin/utils/isIntersecting.d.ts +15 -0
- package/dist/PanoMeasurePlugin/utils/line.d.ts +2 -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/index.cjs.js +70 -66
- package/dist/index.js +8919 -6984
- package/dist/index.umd.js +64 -60
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -7
- package/{libs/PanoMeasurePlugin/utils → dist/shared-utils}/getIntersectionFromEvent.d.ts +1 -1
- package/dist/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
- package/dist/shared-utils/isTouchDevice.d.ts +1 -0
- package/dist/shared-utils/safeObj.d.ts +1 -0
- package/dist/shared-utils/three/IObject3D.d.ts +7 -0
- package/dist/shared-utils/three/Magnifier.d.ts +5 -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 +32 -32
- package/docs/classes/CruisePluginController.html +27 -27
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +36 -36
- package/docs/classes/Magnifier.html +21 -21
- package/docs/classes/ModelRoomLabelController.html +12 -12
- package/docs/classes/Object3DHelperController.html +26 -26
- package/docs/classes/PaintBrush.html +16 -16
- package/docs/classes/PanoMeasurePluginLine.html +72 -107
- package/docs/classes/PanoMeasurePluginModel.html +82 -25
- package/docs/classes/PanoMeasurePluginPoint.html +15 -15
- package/docs/classes/PanoMeasurePluginPolyline.html +39 -27
- package/docs/classes/PanoTagPluginController.html +52 -52
- package/docs/classes/Util.BetterTween.html +10 -10
- package/docs/classes/Util.Interval.html +13 -13
- package/docs/classes/Util.Magnifier.html +52 -19
- package/docs/classes/Util.PointDomHelper.html +12 -12
- package/docs/classes/Util.PointHelper.html +12 -12
- package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +68 -29
- package/docs/classes/Util.Rectangle.html +14 -14
- package/docs/enums/CameraMovementEffect.html +8 -8
- package/docs/enums/ContentType.html +21 -21
- package/docs/enums/DIRECTION.html +10 -10
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -10
- package/docs/enums/DimensionType.html +8 -8
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -9
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -10
- package/docs/enums/PaintBrushTypeEnum.html +9 -9
- package/docs/enums/PointType.html +8 -8
- package/docs/enums/Rotation.html +9 -9
- package/docs/functions/CSS3DRenderPlugin.html +5 -5
- package/docs/functions/CameraMovementPlugin.html +5 -5
- package/docs/functions/CruisePlugin.html +9 -7
- package/docs/functions/GuideLinePlugin.html +6 -6
- package/docs/functions/ItemLabelPlugin.html +5 -5
- package/docs/functions/MapviewFloorplanPlugin.html +5 -5
- package/docs/functions/ModelChassisCompassPlugin.html +5 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
- package/docs/functions/ModelFloorplanPlugin.html +5 -5
- package/docs/functions/ModelItemLabelPlugin.html +5 -5
- package/docs/functions/ModelRoomLabelPlugin.html +5 -5
- package/docs/functions/ModelTVVideoPlugin.html +5 -5
- package/docs/functions/ModelViewPlugin.html +5 -5
- package/docs/functions/Object3DHelperPlugin.html +5 -5
- package/docs/functions/PanoCompassPlugin.html +5 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
- package/docs/functions/PanoDoorLabelPlugin.html +5 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
- package/docs/functions/PanoMeasurePlugin.html +5 -5
- package/docs/functions/PanoRulerPlugin.html +5 -5
- package/docs/functions/PanoRulerProPlugin.html +5 -5
- package/docs/functions/PanoSpatialTagPlugin.html +5 -5
- package/docs/functions/PanoTagPlugin.html +5 -5
- package/docs/functions/PanoVideoPlugin.html +5 -5
- package/docs/functions/TopviewFloorplanPlugin.html +5 -5
- package/docs/functions/Util.absoluteUrl.html +6 -6
- package/docs/functions/Util.getCoordsFromClient.html +6 -6
- package/docs/functions/Util.getCoordsFromElement.html +6 -6
- package/docs/functions/Util.getFrameTime.html +6 -6
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -6
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -6
- package/docs/functions/Util.isAbsoluteURL.html +6 -6
- package/docs/functions/Util.isModelLike.html +6 -6
- package/docs/functions/Util.isNil.html +6 -6
- package/docs/functions/Util.isPanoramaLike.html +6 -6
- package/docs/functions/Util.nextFrame.html +6 -6
- package/docs/functions/Util.notNil.html +6 -6
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -6
- package/docs/functions/Util.tweenProgress.html +6 -6
- package/docs/functions/Util.uuid.html +6 -6
- package/docs/functions/pluginFlag.html +6 -6
- package/docs/index.html +6 -6
- package/docs/interfaces/AddTagConfig.html +7 -7
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -12
- package/docs/interfaces/CSS3DRenderPluginState.html +9 -9
- package/docs/interfaces/CameraMovementPluginExportType.html +8 -8
- package/docs/interfaces/CruisePluginTypes.Config.html +9 -9
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -13
- package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -21
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -15
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -15
- package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -10
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -12
- package/docs/interfaces/EventMap.html +16 -16
- package/docs/interfaces/FloorplanBounding.html +9 -9
- package/docs/interfaces/FloorplanData.html +11 -11
- package/docs/interfaces/FloorplanEntrance.html +12 -12
- package/docs/interfaces/FloorplanExtraObject.html +11 -11
- package/docs/interfaces/FloorplanExtraObject3D.html +9 -9
- package/docs/interfaces/FloorplanFloorData.html +10 -10
- package/docs/interfaces/FloorplanImagePosition.html +8 -8
- package/docs/interfaces/FloorplanObserver.html +10 -10
- package/docs/interfaces/FloorplanOutlineItem.html +10 -10
- package/docs/interfaces/FloorplanPosition.html +8 -8
- package/docs/interfaces/FloorplanRoomItem.html +14 -14
- package/docs/interfaces/FloorplanRoomLabelItem.html +8 -8
- package/docs/interfaces/FloorplanServerBounding.html +9 -9
- package/docs/interfaces/FloorplanServerComputedData.html +11 -11
- package/docs/interfaces/FloorplanServerData.html +8 -8
- package/docs/interfaces/FloorplanServerDoorItem.html +11 -11
- package/docs/interfaces/FloorplanServerDoorPosition.html +9 -9
- package/docs/interfaces/FloorplanServerEntrance.html +12 -12
- package/docs/interfaces/FloorplanServerFloorData.html +10 -10
- package/docs/interfaces/FloorplanServerImagePosition.html +8 -8
- package/docs/interfaces/FloorplanServerObserver.html +10 -10
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -10
- package/docs/interfaces/FloorplanServerPosition.html +8 -8
- package/docs/interfaces/FloorplanServerRoomItem.html +15 -15
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -8
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -9
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -11
- package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -9
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -14
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -9
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +19 -19
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -8
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -19
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -8
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +12 -12
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -10
- package/docs/interfaces/HelperOffset.html +9 -9
- package/docs/interfaces/ImagePlaneGroup.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +7 -7
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -12
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -10
- package/docs/interfaces/MinMax.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginData.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -9
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -9
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -9
- package/docs/interfaces/ModelItemLabelPluginData.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -12
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/ModelRoomLabelPluginData.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -10
- package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -7
- package/docs/interfaces/ModelViewPluginExportType.html +12 -12
- package/docs/interfaces/Object3DHelperState.html +9 -9
- package/docs/interfaces/ObjectHelperControllers.html +10 -10
- package/docs/interfaces/PaintBrushAction.html +13 -13
- package/docs/interfaces/PaintBrushConfigs.html +13 -13
- package/docs/interfaces/PaintBrushState.html +11 -11
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -11
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -6
- package/docs/interfaces/PanoMeasureParameterType.html +23 -16
- package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -9
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -8
- package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -9
- package/docs/interfaces/PanoRulerPluginExportType.html +11 -11
- package/docs/interfaces/PanoRulerPluginOptions.html +8 -8
- package/docs/interfaces/PanoRulerPluginParameterType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerProPluginOptions.html +8 -8
- package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginState.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -6
- package/docs/interfaces/PanoSpatialTagPluginData.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -14
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -14
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -11
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -11
- package/docs/interfaces/Point.html +9 -9
- package/docs/interfaces/Room.html +10 -10
- package/docs/interfaces/RoomInfo.html +8 -8
- package/docs/interfaces/RoomLabel.html +15 -15
- package/docs/interfaces/RoomRules.html +6 -6
- package/docs/interfaces/Rooms.html +6 -6
- package/docs/interfaces/Scissor.html +10 -10
- package/docs/interfaces/State.html +9 -9
- package/docs/interfaces/TagCacheInterface.html +13 -13
- package/docs/interfaces/TagConfig.html +15 -15
- package/docs/interfaces/TagGLTFObjectGroup.html +7 -7
- package/docs/interfaces/TagIconUrl.html +13 -13
- package/docs/interfaces/TagObjectGroup.html +7 -7
- package/docs/interfaces/TagStyle.html +7 -7
- package/docs/interfaces/Tags.html +10 -10
- package/docs/interfaces/TemporaryState.html +7 -7
- package/docs/interfaces/Util.MagnifierParameter.html +12 -12
- package/docs/interfaces/Util.MouseGroupParameter.html +9 -9
- package/docs/interfaces/Util.PointIntersection.html +407 -0
- package/docs/modules/CruisePluginTypes.html +6 -6
- package/docs/modules/GuideLineItem.html +6 -6
- package/docs/modules/GuideLineModeItem.html +6 -6
- package/docs/modules/GuideLinePluginType.html +6 -6
- package/docs/modules/PanoVideoPluginType.html +6 -6
- package/docs/modules/Util.html +8 -7
- package/docs/modules.html +6 -7
- package/docs/types/ArrayPosition.html +6 -6
- package/docs/types/AudioAppearance.html +6 -6
- package/docs/types/AudioTagTypeConfigKey.html +6 -6
- package/docs/types/CSS3DRenderExportType.html +6 -6
- package/docs/types/CSS3DRenderPluginExportType.html +6 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -6
- package/docs/types/ClassFunctionParameters.html +6 -6
- package/docs/types/Color.html +6 -6
- package/docs/types/ContentTypeConfigKey.html +6 -6
- package/docs/types/ContentTypeConfigKeySplit.html +6 -6
- package/docs/types/ContentTypeMap.html +6 -6
- package/docs/types/Create3DDomContainerReturnType.html +6 -6
- package/docs/types/Create3DElementReturnType.html +6 -6
- package/docs/types/CruisePluginExportType.html +6 -6
- package/docs/types/CruisePluginTypes.CruiseData.html +6 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +6 -6
- package/docs/types/DeprecatedMediaPlaneProperty.html +6 -6
- package/docs/types/DeprecatedTagProperty.html +6 -6
- package/docs/types/Direction-1.html +6 -6
- package/docs/types/Direction4.html +6 -6
- package/docs/types/ElementRenderer.html +6 -6
- package/docs/types/FloorplanRuleLabels.html +6 -6
- package/docs/types/FloorplanServerRuleLabels.html +6 -6
- package/docs/types/GuideLinePluginExportType.html +6 -6
- package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -6
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -6
- package/docs/types/GuideLinePluginType.PathItem.html +6 -6
- package/docs/types/GuideLinePluginType.PluginData.html +6 -6
- package/docs/types/HelperEventMap.html +6 -6
- package/docs/types/LoadTagConfig.html +6 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -6
- package/docs/types/MediaData.html +6 -6
- package/docs/types/MediaStore.html +6 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -6
- package/docs/types/MoveArgs.html +6 -6
- package/docs/types/MoveOpts.html +6 -6
- package/docs/types/Object3DHelperEventMap.html +6 -6
- package/docs/types/ObjectFit.html +6 -6
- package/docs/types/PaintBrushEventMap.html +6 -6
- package/docs/types/PanoCompassPluginData.html +6 -6
- package/docs/types/PanoCompassPluginExportType.html +6 -6
- package/docs/types/PanoCompassPluginParameterType.html +6 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -6
- package/docs/types/PanoIndex.html +6 -6
- package/docs/types/PanoMeasurePluginEvent.html +6 -6
- package/docs/types/PanoMeasureReturnType.html +6 -6
- package/docs/types/PanoSpatialTagPluginId.html +6 -6
- package/docs/types/PanoTagPluginExportInterface.html +6 -6
- package/docs/types/PanoTagPluginParamsInterface.html +6 -6
- package/docs/types/PanoVideoPluginParameterType.html +6 -6
- package/docs/types/PanoVideoPluginReturnType.html +6 -6
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -6
- package/docs/types/PlaneTag.html +6 -6
- package/docs/types/Point2DTag.html +6 -6
- package/docs/types/Point3DTag.html +6 -6
- package/docs/types/PointTag.html +6 -6
- package/docs/types/PointTagInstance.html +6 -6
- package/docs/types/Position.html +6 -6
- package/docs/types/RotateArgs.html +6 -6
- package/docs/types/RotateOpts.html +6 -6
- package/docs/types/RuleLabelsKey.html +6 -6
- package/docs/types/RuleLabelsValue.html +6 -6
- package/docs/types/StickType.html +6 -6
- package/docs/types/Tag.html +6 -6
- package/docs/types/Tag2D.html +6 -6
- package/docs/types/Tag3D.html +6 -6
- package/docs/types/TagContentType.html +6 -6
- package/docs/types/TagDimensionType.html +6 -6
- package/docs/types/TagElement.html +6 -6
- package/docs/types/TagEvents.html +6 -6
- package/docs/types/TagGLTFObject.html +6 -6
- package/docs/types/TagHooks.html +6 -6
- package/docs/types/TagId.html +6 -6
- package/docs/types/TagInstance.html +6 -6
- package/docs/types/TagPointType.html +6 -6
- package/docs/types/TagRendererMap.html +6 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -6
- package/docs/types/WorkCode.html +6 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -6
- package/docs/variables/PLUGIN.html +6 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -6
- package/docs/variables/ROOM_TYPE_MAP.html +6 -6
- package/docs/variables/itemLabelPluginServerParams.html +6 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -6
- package/libs/CruisePlugin/index.d.ts +2 -1
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +93 -0
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +1 -0
- 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 +246 -0
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +211 -0
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.svelte.d.ts +1 -0
- 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 +252 -0
- package/libs/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Controller1.js +395 -0
- package/libs/PanoMeasurePlugin/Components/Controller1.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Tip.js +128 -0
- package/libs/PanoMeasurePlugin/Components/Tip.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -4
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +43 -34
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +27 -18
- package/libs/PanoMeasurePlugin/Controller/EditController.js +285 -92
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +27 -25
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +6 -4
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +9 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +101 -54
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +26 -9
- package/libs/PanoMeasurePlugin/Controller/index.js +138 -81
- package/libs/PanoMeasurePlugin/Model/area.d.ts +74 -0
- package/libs/PanoMeasurePlugin/Model/area.js +117 -0
- package/libs/PanoMeasurePlugin/Model/index.d.ts +10 -0
- package/libs/PanoMeasurePlugin/Model/index.js +61 -37
- package/libs/PanoMeasurePlugin/Model/line.d.ts +7 -1
- package/libs/PanoMeasurePlugin/Model/line.js +37 -22
- package/libs/PanoMeasurePlugin/Model/point.js +17 -12
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +14 -0
- package/libs/PanoMeasurePlugin/Model/polygon.js +44 -0
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +11 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +8 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +49 -37
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +16 -12
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +41 -39
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +10 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +123 -37
- package/libs/PanoMeasurePlugin/index.js +73 -24
- package/libs/PanoMeasurePlugin/typings/data.d.ts +24 -0
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +17 -3
- package/libs/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.d.ts +22 -0
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +50 -0
- package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +29 -0
- package/libs/PanoMeasurePlugin/utils/dom/base.js +78 -0
- package/libs/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +27 -0
- package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +63 -0
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +6 -0
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +13 -0
- package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +7 -0
- package/libs/PanoMeasurePlugin/utils/geometryUtil.js +39 -0
- package/libs/PanoMeasurePlugin/utils/isIntersecting.d.ts +15 -0
- package/libs/PanoMeasurePlugin/utils/isIntersecting.js +25 -0
- package/libs/PanoMeasurePlugin/utils/line.d.ts +2 -1
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -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/base/BasePlugin.js +1 -1
- package/libs/index.js +142 -122
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -7
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +29 -49
- package/{dist/PanoMeasurePlugin/utils → libs/shared-utils}/getIntersectionFromEvent.d.ts +1 -1
- package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
- package/libs/shared-utils/index.js +9 -9
- package/libs/shared-utils/isTouchDevice.d.ts +1 -0
- package/libs/shared-utils/isTouchDevice.js +4 -0
- package/libs/shared-utils/logger.js +2 -2
- package/libs/shared-utils/safeObj.d.ts +1 -0
- package/libs/shared-utils/safeObj.js +6 -0
- package/libs/shared-utils/three/IObject3D.d.ts +7 -0
- package/libs/shared-utils/three/IObject3D.js +25 -0
- package/libs/shared-utils/three/Magnifier.d.ts +5 -0
- package/libs/shared-utils/three/Magnifier.js +22 -14
- 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/centerPoint.js +1 -3
- 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 +4 -2
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -30
- package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/docs/types/PartialObjectDeep.html +0 -360
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -30
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +0 -83
- 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
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { SvelteComponent as Z, init as x, safe_not_equal as ee, append_styles as te, element as C, space as $, create_component as I, attr as _, toggle_class as R, insert as B, append as v, mount_component as K, transition_in as h, transition_out as k, check_outros as z, detach as D, destroy_component as q, onMount as oe, onDestroy as re, add_render_callback as O, create_bidirectional_transition as E, text as N, set_style as Q, listen as V, group_outros as A } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import ie from "./Common/Switcher1.js";
|
|
3
|
+
import le from "./Common/CircleButton.js";
|
|
4
|
+
import F from "../Controller/EditController.js";
|
|
5
|
+
import ne from "./Common/Exit.js";
|
|
6
|
+
import { fade as S } from "../../vendor/svelte/transition/index.js";
|
|
7
|
+
import { IconUndo as se, IconOk as ae } from "./Common/icons/index.js";
|
|
8
|
+
import "../Modules/UIController/mobileHTML.js";
|
|
9
|
+
import "../../vendor/svelte/easing/index.js";
|
|
10
|
+
import "../Model/line.js";
|
|
11
|
+
import "../../shared-utils/uuid.js";
|
|
12
|
+
import "../utils/line.js";
|
|
13
|
+
import "@realsee/five/line";
|
|
14
|
+
import "../utils/constants.js";
|
|
15
|
+
import "three";
|
|
16
|
+
import "@realsee/five";
|
|
17
|
+
import "../utils/dom/distanceItem.js";
|
|
18
|
+
import "../utils/dom/base.js";
|
|
19
|
+
import "../utils/isNDCPointInScreen.js";
|
|
20
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
21
|
+
import "../Model/point.js";
|
|
22
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
23
|
+
import "../../shared-utils/throttle.js";
|
|
24
|
+
import "../Controller/BaseController.js";
|
|
25
|
+
import "../utils/ironbox.js";
|
|
26
|
+
import "../Model/polyline.js";
|
|
27
|
+
import "../Model/area.js";
|
|
28
|
+
import "../Model/polygon.js";
|
|
29
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
30
|
+
import "../utils/generatePolygonGeometry.js";
|
|
31
|
+
import "earcut";
|
|
32
|
+
import "../utils/dom/areaDom.js";
|
|
33
|
+
import "../utils/geometryUtil.js";
|
|
34
|
+
import "../utils/isIntersecting.js";
|
|
35
|
+
import "../../shared-utils/three/PointSelector.js";
|
|
36
|
+
import "../../shared-utils/three/PointSelectorHelper.js";
|
|
37
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
38
|
+
import "hammerjs";
|
|
39
|
+
import "../../shared-utils/three/PointHelper.js";
|
|
40
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
41
|
+
import "../../shared-utils/three/PointDomHelper.js";
|
|
42
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
43
|
+
import "../Modules/rangePiece/html.js";
|
|
44
|
+
import "../../CSS3DRenderPlugin/index.js";
|
|
45
|
+
import "../../CSS3DRenderPlugin/Controller.js";
|
|
46
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
47
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
48
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
49
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
50
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
51
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
52
|
+
import "../../shared-utils/Subscribe.js";
|
|
53
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
54
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
57
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
58
|
+
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
59
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
60
|
+
import "../../shared-utils/absoluteUrl.js";
|
|
61
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
62
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
63
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
64
|
+
import "../../shared-utils/getIntersectionFromEvent.js";
|
|
65
|
+
import "../../shared-utils/getPointFromHammerEvent.js";
|
|
66
|
+
import "../../shared-utils/three/getIntersect.js";
|
|
67
|
+
import "../Modules/DeleteDom/index.js";
|
|
68
|
+
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
69
|
+
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
70
|
+
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
71
|
+
import "../utils/findAssociatedLines.js";
|
|
72
|
+
import "../utils/math.js";
|
|
73
|
+
function pe(o) {
|
|
74
|
+
te(o, "svelte-ldjbp8", "*.forbid.svelte-ldjbp8.svelte-ldjbp8{pointer-events:none !important;opacity:0.5}.Measure-Controller.svelte-ldjbp8.svelte-ldjbp8{pointer-events:none;position:relative;width:100%;height:100%;z-index:2;color:white}.Measure-Controller.svelte-ldjbp8 .mode-switcher.svelte-ldjbp8{margin-top:2.25rem}.Measure-Controller.svelte-ldjbp8 .bottom.svelte-ldjbp8{position:absolute;width:100%;bottom:0}.Measure-Controller.svelte-ldjbp8 .bottom .mask.svelte-ldjbp8{position:absolute;bottom:0;width:100%;height:12.5rem;background-size:100%;z-index:-1;background-image:linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5))}.Measure-Controller.svelte-ldjbp8 .bottom .center.svelte-ldjbp8{display:flex;flex-direction:column;align-items:center;margin-bottom:2.5rem}.Measure-Controller.svelte-ldjbp8 .controller.svelte-ldjbp8{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-ldjbp8 .controller .button.svelte-ldjbp8{cursor:pointer;display:flex;align-items:center;height:2.5rem;padding-left:1rem;padding-right:1rem;border-radius:624.9375rem;font-size:0.875rem;color:#fff;background-color:rgba(0, 0, 0, 0.2)}.Measure-Controller.svelte-ldjbp8 .controller .button .icon.svelte-ldjbp8{width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-size:100%;margin:0 0.25rem}.Measure-Controller.svelte-ldjbp8 .controller .main-button.svelte-ldjbp8{margin-left:1.75rem;margin-right:1.75rem;font-size:0.875rem;font-weight:bold}");
|
|
75
|
+
}
|
|
76
|
+
function G(o) {
|
|
77
|
+
let t, l;
|
|
78
|
+
return t = new ne({
|
|
79
|
+
props: {
|
|
80
|
+
onClick: (
|
|
81
|
+
/*measureController*/
|
|
82
|
+
o[0].disable
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
}), {
|
|
86
|
+
c() {
|
|
87
|
+
I(t.$$.fragment);
|
|
88
|
+
},
|
|
89
|
+
m(e, i) {
|
|
90
|
+
K(t, e, i), l = !0;
|
|
91
|
+
},
|
|
92
|
+
p(e, i) {
|
|
93
|
+
const n = {};
|
|
94
|
+
i & /*measureController*/
|
|
95
|
+
1 && (n.onClick = /*measureController*/
|
|
96
|
+
e[0].disable), t.$set(n);
|
|
97
|
+
},
|
|
98
|
+
i(e) {
|
|
99
|
+
l || (h(t.$$.fragment, e), l = !0);
|
|
100
|
+
},
|
|
101
|
+
o(e) {
|
|
102
|
+
k(t.$$.fragment, e), l = !1;
|
|
103
|
+
},
|
|
104
|
+
d(e) {
|
|
105
|
+
q(t, e);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function H(o) {
|
|
110
|
+
let t, l, e, i;
|
|
111
|
+
return l = new ie({
|
|
112
|
+
props: {
|
|
113
|
+
options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
|
|
114
|
+
defaultKey: (
|
|
115
|
+
/*measureController*/
|
|
116
|
+
o[0].currentMeasureType
|
|
117
|
+
),
|
|
118
|
+
onChange: (
|
|
119
|
+
/*measureController*/
|
|
120
|
+
o[0].changeMeasureType
|
|
121
|
+
)
|
|
122
|
+
}
|
|
123
|
+
}), {
|
|
124
|
+
c() {
|
|
125
|
+
t = C("div"), I(l.$$.fragment), _(t, "class", "mode-switcher svelte-ldjbp8");
|
|
126
|
+
},
|
|
127
|
+
m(n, p) {
|
|
128
|
+
B(n, t, p), K(l, t, null), i = !0;
|
|
129
|
+
},
|
|
130
|
+
p(n, p) {
|
|
131
|
+
o = n;
|
|
132
|
+
const b = {};
|
|
133
|
+
p & /*measureController*/
|
|
134
|
+
1 && (b.defaultKey = /*measureController*/
|
|
135
|
+
o[0].currentMeasureType), p & /*measureController*/
|
|
136
|
+
1 && (b.onChange = /*measureController*/
|
|
137
|
+
o[0].changeMeasureType), l.$set(b);
|
|
138
|
+
},
|
|
139
|
+
i(n) {
|
|
140
|
+
i || (h(l.$$.fragment, n), n && O(() => {
|
|
141
|
+
i && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
|
|
142
|
+
}), i = !0);
|
|
143
|
+
},
|
|
144
|
+
o(n) {
|
|
145
|
+
k(l.$$.fragment, n), n && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), i = !1;
|
|
146
|
+
},
|
|
147
|
+
d(n) {
|
|
148
|
+
n && D(t), q(l), n && e && e.end();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function J(o) {
|
|
153
|
+
let t, l, e, i, n, p, b;
|
|
154
|
+
return {
|
|
155
|
+
c() {
|
|
156
|
+
t = C("div"), l = C("div"), e = N(`
|
|
157
|
+
撤销`), _(l, "class", "icon svelte-ldjbp8"), Q(l, "background-image", `url(${se})`), _(t, "class", "button svelte-ldjbp8"), R(
|
|
158
|
+
t,
|
|
159
|
+
"forbid",
|
|
160
|
+
/*buttonState*/
|
|
161
|
+
o[2] === "start"
|
|
162
|
+
);
|
|
163
|
+
},
|
|
164
|
+
m(r, u) {
|
|
165
|
+
B(r, t, u), v(t, l), v(t, e), n = !0, p || (b = V(
|
|
166
|
+
t,
|
|
167
|
+
"click",
|
|
168
|
+
/*click_handler*/
|
|
169
|
+
o[12]
|
|
170
|
+
), p = !0);
|
|
171
|
+
},
|
|
172
|
+
p(r, u) {
|
|
173
|
+
o = r, (!n || u & /*buttonState*/
|
|
174
|
+
4) && R(
|
|
175
|
+
t,
|
|
176
|
+
"forbid",
|
|
177
|
+
/*buttonState*/
|
|
178
|
+
o[2] === "start"
|
|
179
|
+
);
|
|
180
|
+
},
|
|
181
|
+
i(r) {
|
|
182
|
+
n || (r && O(() => {
|
|
183
|
+
n && (i || (i = E(t, S, { duration: P }, !0)), i.run(1));
|
|
184
|
+
}), n = !0);
|
|
185
|
+
},
|
|
186
|
+
o(r) {
|
|
187
|
+
r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), n = !1;
|
|
188
|
+
},
|
|
189
|
+
d(r) {
|
|
190
|
+
r && D(t), r && i && i.end(), p = !1, b();
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
function L(o) {
|
|
195
|
+
let t, l, e, i, n, p, b;
|
|
196
|
+
return {
|
|
197
|
+
c() {
|
|
198
|
+
t = C("div"), l = C("div"), e = N(`
|
|
199
|
+
结束`), _(l, "class", "icon svelte-ldjbp8"), Q(l, "background-image", `url(${ae})`), _(t, "class", "button svelte-ldjbp8");
|
|
200
|
+
},
|
|
201
|
+
m(r, u) {
|
|
202
|
+
B(r, t, u), v(t, l), v(t, e), n = !0, p || (b = V(
|
|
203
|
+
t,
|
|
204
|
+
"click",
|
|
205
|
+
/*complete*/
|
|
206
|
+
o[9]
|
|
207
|
+
), p = !0);
|
|
208
|
+
},
|
|
209
|
+
p(r, u) {
|
|
210
|
+
o = r;
|
|
211
|
+
},
|
|
212
|
+
i(r) {
|
|
213
|
+
n || (r && O(() => {
|
|
214
|
+
n && (i || (i = E(t, S, { duration: P }, !0)), i.run(1));
|
|
215
|
+
}), n = !0);
|
|
216
|
+
},
|
|
217
|
+
o(r) {
|
|
218
|
+
r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), n = !1;
|
|
219
|
+
},
|
|
220
|
+
d(r) {
|
|
221
|
+
r && D(t), r && i && i.end(), p = !1, b();
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
function me(o) {
|
|
226
|
+
let t, l, e, i, n, p, b, r, u, j, w, y, T, a = (
|
|
227
|
+
/*showExit*/
|
|
228
|
+
o[1] && G(o)
|
|
229
|
+
), m = (
|
|
230
|
+
/*measureController*/
|
|
231
|
+
o[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
232
|
+
o[2] === "start" && H(o)
|
|
233
|
+
), f = (
|
|
234
|
+
/*showButton*/
|
|
235
|
+
o[3] && J(o)
|
|
236
|
+
);
|
|
237
|
+
w = new le({
|
|
238
|
+
props: {
|
|
239
|
+
onClick: (
|
|
240
|
+
/*func*/
|
|
241
|
+
o[13]
|
|
242
|
+
),
|
|
243
|
+
text: (
|
|
244
|
+
/*buttonTextMap*/
|
|
245
|
+
o[5][
|
|
246
|
+
/*buttonState*/
|
|
247
|
+
o[2]
|
|
248
|
+
]
|
|
249
|
+
),
|
|
250
|
+
color: (
|
|
251
|
+
/*buttonColorMap*/
|
|
252
|
+
o[6][
|
|
253
|
+
/*buttonState*/
|
|
254
|
+
o[2]
|
|
255
|
+
]
|
|
256
|
+
)
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
let d = (
|
|
260
|
+
/*showButton*/
|
|
261
|
+
o[3] && L(o)
|
|
262
|
+
);
|
|
263
|
+
return {
|
|
264
|
+
c() {
|
|
265
|
+
t = C("div"), a && a.c(), l = $(), e = C("div"), i = C("div"), n = $(), p = C("div"), m && m.c(), b = $(), r = C("div"), f && f.c(), u = $(), j = C("div"), I(w.$$.fragment), y = $(), d && d.c(), _(i, "class", "mask svelte-ldjbp8"), _(j, "class", "main-button svelte-ldjbp8"), R(j, "forbid", !/*allowAddPoint*/
|
|
266
|
+
o[4]), _(r, "class", "controller svelte-ldjbp8"), _(p, "class", "center svelte-ldjbp8"), _(e, "class", "bottom svelte-ldjbp8"), _(t, "class", "Measure-Controller svelte-ldjbp8");
|
|
267
|
+
},
|
|
268
|
+
m(s, c) {
|
|
269
|
+
B(s, t, c), a && a.m(t, null), v(t, l), v(t, e), v(e, i), v(e, n), v(e, p), m && m.m(p, null), v(p, b), v(p, r), f && f.m(r, null), v(r, u), v(r, j), K(w, j, null), v(r, y), d && d.m(r, null), T = !0;
|
|
270
|
+
},
|
|
271
|
+
p(s, [c]) {
|
|
272
|
+
/*showExit*/
|
|
273
|
+
s[1] ? a ? (a.p(s, c), c & /*showExit*/
|
|
274
|
+
2 && h(a, 1)) : (a = G(s), a.c(), h(a, 1), a.m(t, l)) : a && (A(), k(a, 1, 1, () => {
|
|
275
|
+
a = null;
|
|
276
|
+
}), z()), /*measureController*/
|
|
277
|
+
s[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
278
|
+
s[2] === "start" ? m ? (m.p(s, c), c & /*measureController, buttonState*/
|
|
279
|
+
5 && h(m, 1)) : (m = H(s), m.c(), h(m, 1), m.m(p, b)) : m && (A(), k(m, 1, 1, () => {
|
|
280
|
+
m = null;
|
|
281
|
+
}), z()), /*showButton*/
|
|
282
|
+
s[3] ? f ? (f.p(s, c), c & /*showButton*/
|
|
283
|
+
8 && h(f, 1)) : (f = J(s), f.c(), h(f, 1), f.m(r, u)) : f && (A(), k(f, 1, 1, () => {
|
|
284
|
+
f = null;
|
|
285
|
+
}), z());
|
|
286
|
+
const M = {};
|
|
287
|
+
c & /*buttonState*/
|
|
288
|
+
4 && (M.onClick = /*func*/
|
|
289
|
+
s[13]), c & /*buttonState*/
|
|
290
|
+
4 && (M.text = /*buttonTextMap*/
|
|
291
|
+
s[5][
|
|
292
|
+
/*buttonState*/
|
|
293
|
+
s[2]
|
|
294
|
+
]), c & /*buttonState*/
|
|
295
|
+
4 && (M.color = /*buttonColorMap*/
|
|
296
|
+
s[6][
|
|
297
|
+
/*buttonState*/
|
|
298
|
+
s[2]
|
|
299
|
+
]), w.$set(M), (!T || c & /*allowAddPoint*/
|
|
300
|
+
16) && R(j, "forbid", !/*allowAddPoint*/
|
|
301
|
+
s[4]), /*showButton*/
|
|
302
|
+
s[3] ? d ? (d.p(s, c), c & /*showButton*/
|
|
303
|
+
8 && h(d, 1)) : (d = L(s), d.c(), h(d, 1), d.m(r, null)) : d && (A(), k(d, 1, 1, () => {
|
|
304
|
+
d = null;
|
|
305
|
+
}), z());
|
|
306
|
+
},
|
|
307
|
+
i(s) {
|
|
308
|
+
T || (h(a), h(m), h(f), h(w.$$.fragment, s), h(d), T = !0);
|
|
309
|
+
},
|
|
310
|
+
o(s) {
|
|
311
|
+
k(a), k(m), k(f), k(w.$$.fragment, s), k(d), T = !1;
|
|
312
|
+
},
|
|
313
|
+
d(s) {
|
|
314
|
+
s && D(t), a && a.d(), m && m.d(), f && f.d(), q(w), d && d.d();
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
const P = 100;
|
|
319
|
+
function fe(o, t, l) {
|
|
320
|
+
let { measureController: e } = t, { showExit: i = !1 } = t;
|
|
321
|
+
const n = {
|
|
322
|
+
start: "开始",
|
|
323
|
+
add: "添加",
|
|
324
|
+
end: "结束",
|
|
325
|
+
complete: "完成"
|
|
326
|
+
}, p = {
|
|
327
|
+
start: "white",
|
|
328
|
+
add: "white",
|
|
329
|
+
end: "blue",
|
|
330
|
+
complete: "blue"
|
|
331
|
+
};
|
|
332
|
+
let b = !1, r = !0, u = "start", j = e.currentMeasureType;
|
|
333
|
+
const w = () => {
|
|
334
|
+
e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (a("add"), y());
|
|
335
|
+
}, y = () => {
|
|
336
|
+
e.controller instanceof F && e.controller.selectPoint();
|
|
337
|
+
}, T = () => {
|
|
338
|
+
e.controller instanceof F && e.controller.complete();
|
|
339
|
+
}, a = (g) => {
|
|
340
|
+
l(2, u = g);
|
|
341
|
+
}, m = () => {
|
|
342
|
+
y(), M("allow");
|
|
343
|
+
}, f = () => {
|
|
344
|
+
a("complete");
|
|
345
|
+
}, d = () => {
|
|
346
|
+
e.currentMeasureType === "area" && u === "complete" && a("add");
|
|
347
|
+
}, s = (g) => {
|
|
348
|
+
g.length;
|
|
349
|
+
}, c = () => {
|
|
350
|
+
a("start"), M("allow");
|
|
351
|
+
}, M = (g) => {
|
|
352
|
+
l(4, r = g === "allow");
|
|
353
|
+
}, U = (g) => {
|
|
354
|
+
l(11, j = g);
|
|
355
|
+
}, W = (g) => {
|
|
356
|
+
g.isEmpty && a("start");
|
|
357
|
+
};
|
|
358
|
+
oe(() => {
|
|
359
|
+
e.hook.on("revoke", W), e.hook.on("measureTypeChange", U), e.hook.on("modeChange", c), e.hook.on("pointsChange", s), e.hook.on("allowAddPointStateChange", M), e.hook.on("readyComplete", f), e.hook.on("notReadyComplete", d), e.hook.on("complete", c);
|
|
360
|
+
}), re(() => {
|
|
361
|
+
e.hook.off("measureTypeChange", U), e.hook.off("modeChange", c), e.hook.off("allowAddPointStateChange", M), e.hook.off("readyComplete", f), e.hook.off("pointsChange", s), e.hook.off("notReadyComplete", d), e.hook.off("complete", c);
|
|
362
|
+
});
|
|
363
|
+
const X = () => e.revoke(), Y = () => {
|
|
364
|
+
u === "start" ? w() : u === "add" ? y() : (u === "end" || u === "complete") && m();
|
|
365
|
+
};
|
|
366
|
+
return o.$$set = (g) => {
|
|
367
|
+
"measureController" in g && l(0, e = g.measureController), "showExit" in g && l(1, i = g.showExit);
|
|
368
|
+
}, o.$$.update = () => {
|
|
369
|
+
o.$$.dirty & /*currentMeasureType, buttonState*/
|
|
370
|
+
2052 && l(3, b = j === "area" && u !== "start");
|
|
371
|
+
}, [
|
|
372
|
+
e,
|
|
373
|
+
i,
|
|
374
|
+
u,
|
|
375
|
+
b,
|
|
376
|
+
r,
|
|
377
|
+
n,
|
|
378
|
+
p,
|
|
379
|
+
w,
|
|
380
|
+
y,
|
|
381
|
+
T,
|
|
382
|
+
m,
|
|
383
|
+
j,
|
|
384
|
+
X,
|
|
385
|
+
Y
|
|
386
|
+
];
|
|
387
|
+
}
|
|
388
|
+
class $t extends Z {
|
|
389
|
+
constructor(t) {
|
|
390
|
+
super(), x(this, t, fe, me, ee, { measureController: 0, showExit: 1 }, pe);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
export {
|
|
394
|
+
$t as default
|
|
395
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponentTyped as default } from 'svelte/internal';
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { SvelteComponent as D, init as q, safe_not_equal as E, append_styles as N, empty as O, insert as M, transition_in as m, transition_out as _, check_outros as P, detach as w, onMount as W, onDestroy as j, element as b, text as A, attr as g, append as v, set_data as B, add_render_callback as F, create_bidirectional_transition as y, group_outros as G, binding_callbacks as H } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { fade as C } from "../../vendor/svelte/transition/index.js";
|
|
3
|
+
import "../../vendor/svelte/easing/index.js";
|
|
4
|
+
function I(s) {
|
|
5
|
+
N(s, "svelte-1kdvs98", ".Measure-Tips.svelte-1kdvs98.svelte-1kdvs98{box-sizing:border-box;position:absolute;pointer-events:none;top:0;width:100%;padding:0 2.5rem}.Measure-Tips.svelte-1kdvs98 .text.svelte-1kdvs98{text-align:center;position:relative;max-width:100%;top:3.125rem;color:#fff;word-break:break-all;word-wrap:break-word;text-shadow:0 0.0625rem 0.375rem rgba(0, 0, 0, 0.5);font-size:1.25rem}");
|
|
6
|
+
}
|
|
7
|
+
function T(s) {
|
|
8
|
+
let n, i, e, t, r;
|
|
9
|
+
return {
|
|
10
|
+
c() {
|
|
11
|
+
n = b("div"), i = b("div"), e = A(
|
|
12
|
+
/*tip*/
|
|
13
|
+
s[2]
|
|
14
|
+
), g(i, "class", "text svelte-1kdvs98"), g(n, "class", "Measure-Tips svelte-1kdvs98");
|
|
15
|
+
},
|
|
16
|
+
m(l, a) {
|
|
17
|
+
M(l, n, a), v(n, i), v(i, e), s[6](i), r = !0;
|
|
18
|
+
},
|
|
19
|
+
p(l, a) {
|
|
20
|
+
(!r || a & /*tip*/
|
|
21
|
+
4) && B(
|
|
22
|
+
e,
|
|
23
|
+
/*tip*/
|
|
24
|
+
l[2]
|
|
25
|
+
);
|
|
26
|
+
},
|
|
27
|
+
i(l) {
|
|
28
|
+
r || (F(() => {
|
|
29
|
+
r && (t || (t = y(n, C, {}, !0)), t.run(1));
|
|
30
|
+
}), r = !0);
|
|
31
|
+
},
|
|
32
|
+
o(l) {
|
|
33
|
+
t || (t = y(n, C, {}, !1)), t.run(0), r = !1;
|
|
34
|
+
},
|
|
35
|
+
d(l) {
|
|
36
|
+
l && w(n), s[6](null), l && t && t.end();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function J(s) {
|
|
41
|
+
let n, i, e = (
|
|
42
|
+
/*visible*/
|
|
43
|
+
s[0] && T(s)
|
|
44
|
+
);
|
|
45
|
+
return {
|
|
46
|
+
c() {
|
|
47
|
+
e && e.c(), n = O();
|
|
48
|
+
},
|
|
49
|
+
m(t, r) {
|
|
50
|
+
e && e.m(t, r), M(t, n, r), i = !0;
|
|
51
|
+
},
|
|
52
|
+
p(t, [r]) {
|
|
53
|
+
/*visible*/
|
|
54
|
+
t[0] ? e ? (e.p(t, r), r & /*visible*/
|
|
55
|
+
1 && m(e, 1)) : (e = T(t), e.c(), m(e, 1), e.m(n.parentNode, n)) : e && (G(), _(e, 1, 1, () => {
|
|
56
|
+
e = null;
|
|
57
|
+
}), P());
|
|
58
|
+
},
|
|
59
|
+
i(t) {
|
|
60
|
+
i || (m(e), i = !0);
|
|
61
|
+
},
|
|
62
|
+
o(t) {
|
|
63
|
+
_(e), i = !1;
|
|
64
|
+
},
|
|
65
|
+
d(t) {
|
|
66
|
+
e && e.d(t), t && w(n);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function K(s, n, i) {
|
|
71
|
+
let { measureController: e } = n, { tips: t } = n, { tipStyle: r = {} } = n, { visible: l = !0 } = n, a = null;
|
|
72
|
+
const x = (o) => {
|
|
73
|
+
const z = e.currentMeasureType;
|
|
74
|
+
let u = "";
|
|
75
|
+
return u = t[o], u === void 0 && (u = t[z][o]), u;
|
|
76
|
+
}, c = (o) => {
|
|
77
|
+
i(2, d = x(o));
|
|
78
|
+
}, f = () => {
|
|
79
|
+
i(2, d = "");
|
|
80
|
+
};
|
|
81
|
+
let d = "";
|
|
82
|
+
const p = (o) => {
|
|
83
|
+
o === "Edit" && e.changeMeasureType ? c("start") : f();
|
|
84
|
+
}, h = () => {
|
|
85
|
+
e.getCurrentMode() === "Watch" && f();
|
|
86
|
+
}, k = (o) => {
|
|
87
|
+
e.currentMeasureType === "area" && (o.length >= 2 ? c("close") : o.length === 0 ? c("start") : f());
|
|
88
|
+
};
|
|
89
|
+
W(() => {
|
|
90
|
+
p(e.getCurrentMode()), e.hook.on("modeChange", p), e.hook.on("complete", h), e.hook.on("pointsChange", k), e.hook.on("measureTypeChange", f);
|
|
91
|
+
}), j(() => {
|
|
92
|
+
e.hook.off("modeChange", p), e.hook.off("complete", h), e.hook.off("pointsChange", k), e.hook.off("measureTypeChange", f), f();
|
|
93
|
+
});
|
|
94
|
+
function S(o) {
|
|
95
|
+
H[o ? "unshift" : "push"](() => {
|
|
96
|
+
a = o, i(1, a), i(5, r);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return s.$$set = (o) => {
|
|
100
|
+
"measureController" in o && i(3, e = o.measureController), "tips" in o && i(4, t = o.tips), "tipStyle" in o && i(5, r = o.tipStyle), "visible" in o && i(0, l = o.visible);
|
|
101
|
+
}, s.$$.update = () => {
|
|
102
|
+
if (s.$$.dirty & /*textDom, tipStyle*/
|
|
103
|
+
34 && a)
|
|
104
|
+
for (const o in r)
|
|
105
|
+
r.hasOwnProperty(o) && i(1, a.style[o] = r[o], a);
|
|
106
|
+
}, [l, a, d, e, t, r, S];
|
|
107
|
+
}
|
|
108
|
+
class U extends D {
|
|
109
|
+
constructor(n) {
|
|
110
|
+
super(), q(
|
|
111
|
+
this,
|
|
112
|
+
n,
|
|
113
|
+
K,
|
|
114
|
+
J,
|
|
115
|
+
E,
|
|
116
|
+
{
|
|
117
|
+
measureController: 3,
|
|
118
|
+
tips: 4,
|
|
119
|
+
tipStyle: 5,
|
|
120
|
+
visible: 0
|
|
121
|
+
},
|
|
122
|
+
I
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
U as default
|
|
128
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponentTyped as default } from 'svelte/internal';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { Group } from 'three';
|
|
1
|
+
import { type Group } from 'three';
|
|
3
2
|
import type { Model } from '../Model';
|
|
4
3
|
import type { Config } from '../typings';
|
|
5
4
|
import type { PanoMeasurePluginEvent } from '../typings/event.type';
|
|
6
|
-
import type { UserDistanceItem } from '../utils/
|
|
5
|
+
import type { UserDistanceItem } from '../utils/dom/distanceItem';
|
|
7
6
|
import type { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
|
|
8
|
-
import type { OpenParameter } from '../typings/data';
|
|
7
|
+
import type { OpenParameter, EditParameter, MeasureType } from '../typings/data';
|
|
9
8
|
import Line from '../Model/line';
|
|
9
|
+
import type { Magnifier } from '../../shared-utils';
|
|
10
10
|
export interface ControllerParams {
|
|
11
11
|
five: Five;
|
|
12
12
|
group: Group;
|
|
@@ -16,6 +16,9 @@ export interface ControllerParams {
|
|
|
16
16
|
container: Element;
|
|
17
17
|
magnifier: Magnifier;
|
|
18
18
|
openParams: OpenParameter;
|
|
19
|
+
editParams: EditParameter;
|
|
20
|
+
magnifierParams: ConstructorParameters<typeof Magnifier>[1];
|
|
21
|
+
getMeasureType: () => MeasureType;
|
|
19
22
|
hook: Subscribe<PanoMeasurePluginEvent>;
|
|
20
23
|
userDistanceItemCreator?: () => UserDistanceItem;
|
|
21
24
|
}
|
|
@@ -25,13 +28,18 @@ export default class BaseController {
|
|
|
25
28
|
protected group: Group;
|
|
26
29
|
protected config: Config;
|
|
27
30
|
protected dashed: Line;
|
|
31
|
+
protected perpendicularDashed: Line;
|
|
28
32
|
protected disposed: boolean;
|
|
29
33
|
protected isMobile: boolean;
|
|
34
|
+
protected editParams: EditParameter;
|
|
35
|
+
protected magnifierParams: ConstructorParameters<typeof Magnifier>[1];
|
|
30
36
|
protected mouseGroup: Group;
|
|
31
37
|
protected container: Element;
|
|
32
38
|
protected hook: ControllerParams['hook'];
|
|
33
39
|
protected magnifier: ControllerParams['magnifier'];
|
|
34
40
|
protected userDistanceItemCreator: ControllerParams['userDistanceItemCreator'];
|
|
41
|
+
protected get currentMeasureType(): MeasureType;
|
|
42
|
+
private getMeasureType;
|
|
35
43
|
constructor(params: ControllerParams);
|
|
36
44
|
updateDistanceUI: () => void;
|
|
37
45
|
protected removeLine(line: Line): void;
|
|
@@ -1,60 +1,69 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import h from "../Model/
|
|
6
|
-
import
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var u = (s, e, i) => e in s ? m(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i;
|
|
3
|
+
var t = (s, e, i) => (u(s, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
import { Color as l } from "three";
|
|
5
|
+
import h from "../Model/line.js";
|
|
6
|
+
import r from "../Model/point.js";
|
|
7
|
+
import { preventDefault as n } from "../utils/ironbox.js";
|
|
7
8
|
import "../../shared-utils/uuid.js";
|
|
8
9
|
import "../utils/line.js";
|
|
9
10
|
import "@realsee/five/line";
|
|
10
11
|
import "../utils/constants.js";
|
|
11
|
-
import "three";
|
|
12
12
|
import "@realsee/five";
|
|
13
|
-
import "../utils/
|
|
13
|
+
import "../utils/dom/distanceItem.js";
|
|
14
|
+
import "../utils/dom/base.js";
|
|
14
15
|
import "../utils/isNDCPointInScreen.js";
|
|
16
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
15
17
|
import "../../shared-utils/removeArrayItem.js";
|
|
16
|
-
class
|
|
18
|
+
class S {
|
|
17
19
|
constructor(e) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
t(this, "model");
|
|
21
|
+
t(this, "five");
|
|
22
|
+
t(this, "group");
|
|
23
|
+
t(this, "config");
|
|
24
|
+
t(this, "dashed");
|
|
25
|
+
t(this, "perpendicularDashed");
|
|
26
|
+
t(this, "disposed", !1);
|
|
27
|
+
t(this, "isMobile");
|
|
28
|
+
t(this, "editParams");
|
|
29
|
+
t(this, "magnifierParams");
|
|
30
|
+
t(this, "mouseGroup");
|
|
31
|
+
t(this, "container");
|
|
32
|
+
t(this, "hook");
|
|
33
|
+
t(this, "magnifier");
|
|
34
|
+
t(this, "userDistanceItemCreator");
|
|
35
|
+
t(this, "getMeasureType");
|
|
36
|
+
t(this, "updateDistanceUI", () => {
|
|
31
37
|
this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
|
|
32
38
|
});
|
|
33
|
-
var
|
|
34
|
-
this.five = e.five, this.hook = e.hook, this.model = e.model, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.isMobile = (
|
|
35
|
-
const
|
|
36
|
-
|
|
39
|
+
var a, o;
|
|
40
|
+
this.five = e.five, this.hook = e.hook, this.model = e.model, this.getMeasureType = e.getMeasureType, this.config = e.config, this.magnifierParams = e.magnifierParams, this.editParams = e.editParams, this.magnifier = e.magnifier, this.container = e.container, this.isMobile = (o = (a = e.openParams) == null ? void 0 : a.isMobile) != null ? o : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new l(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
41
|
+
const i = this.five.getElement();
|
|
42
|
+
i && (i.addEventListener("touchstart", n), i.addEventListener("contextmenu", n));
|
|
43
|
+
}
|
|
44
|
+
get currentMeasureType() {
|
|
45
|
+
return this.getMeasureType();
|
|
37
46
|
}
|
|
38
47
|
removeLine(e) {
|
|
39
48
|
this.group.remove(e.mesh, e.lightMesh), e.distanceItem.remove(), this.five.needsRender = !0;
|
|
40
49
|
}
|
|
41
|
-
updateMouseGroup(e,
|
|
50
|
+
updateMouseGroup(e, i) {
|
|
42
51
|
if (!e)
|
|
43
52
|
return this.mouseGroup;
|
|
44
|
-
if (this.mouseGroup.position.copy(e.point),
|
|
45
|
-
this.mouseGroup.quaternion.copy(
|
|
53
|
+
if (this.mouseGroup.position.copy(e.point), i)
|
|
54
|
+
this.mouseGroup.quaternion.copy(i.quaternion);
|
|
46
55
|
else if (e.face) {
|
|
47
|
-
const
|
|
48
|
-
this.mouseGroup.lookAt(
|
|
56
|
+
const o = e.face.normal.clone().multiplyScalar(0.05), d = e.point.clone().add(o).clone().add(o);
|
|
57
|
+
this.mouseGroup.lookAt(d);
|
|
49
58
|
}
|
|
50
59
|
return this.mouseGroup;
|
|
51
60
|
}
|
|
52
61
|
dispose() {
|
|
53
|
-
this.disposed = !0, this.magnifier.disable(), this.model.getAllLines().forEach((
|
|
62
|
+
this.disposed = !0, this.magnifier.disable(), this.model.getAllLines().forEach((i) => this.removeLine(i)), this.model.areas.forEach((i) => i.remove());
|
|
54
63
|
const e = this.five.getElement();
|
|
55
|
-
e && (e.removeEventListener("touchstart",
|
|
64
|
+
e && (e.removeEventListener("touchstart", n), e.removeEventListener("contextmenu", n));
|
|
56
65
|
}
|
|
57
66
|
}
|
|
58
67
|
export {
|
|
59
|
-
|
|
68
|
+
S as default
|
|
60
69
|
};
|