@realsee/dnalogel 3.81.26-alpha.2 → 3.81.27
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/CHANGELOG.md +8 -2
- package/README.md +0 -1
- package/dist/MeasurePlugin/Controller.d.ts +8 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +8 -0
- package/dist/index.cjs.js +94 -94
- package/dist/index.d.ts +0 -1
- package/dist/index.js +5599 -5682
- package/dist/index.umd.js +87 -87
- package/dist/shared-utils/three/Magnifier.d.ts +11 -0
- package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +3 -0
- package/libs/MeasurePlugin/Controller.d.ts +8 -0
- package/libs/MeasurePlugin/Controller.js +86 -73
- package/libs/MeasurePluginV2/Controller.js +15 -15
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +4 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +13 -10
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +8 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +53 -40
- package/libs/PanoMeasurePluginV2/Controller.js +9 -9
- package/libs/base/BasePlugin.js +5 -5
- package/libs/index.d.ts +0 -1
- package/libs/index.js +196 -200
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Magnifier.d.ts +11 -0
- package/libs/shared-utils/three/Magnifier.js +25 -10
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +3 -0
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +30 -21
- package/package.json +1 -1
- package/dist/PanoPatchPlugin/Controller.d.ts +0 -37
- package/dist/PanoPatchPlugin/constants.d.ts +0 -16
- package/dist/PanoPatchPlugin/geometry.d.ts +0 -18
- package/dist/PanoPatchPlugin/index.d.ts +0 -2
- package/dist/PanoPatchPlugin/typings.d.ts +0 -15
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +0 -127
- package/docs/assets/icons.js +0 -18
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -60
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1493
- package/docs/classes/AnimationScriptAdapterSafetyError.html +0 -4
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -59
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -71
- package/docs/classes/CSS3DRender.html +0 -100
- package/docs/classes/DigitalHuman.html +0 -43
- package/docs/classes/DigitalPerformanceV2.DigitalPerformanceNameplate.html +0 -25
- package/docs/classes/DigitalPerformanceV2.DigitalPerformanceV2PluginController.html +0 -178
- package/docs/classes/DigitalPlayground.html +0 -25
- package/docs/classes/DigitalStateMachine.html +0 -3
- package/docs/classes/FireControl.html +0 -56
- package/docs/classes/FireScenePlayer.html +0 -10
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -72
- package/docs/classes/MeasureV2.EdgeSnapCache.html +0 -8
- package/docs/classes/MeasureV2.MeasureControllerV2.html +0 -77
- package/docs/classes/MeasureV2.MeasureMagnifier.html +0 -50
- package/docs/classes/ModelMakerPluginInstance.html +0 -106
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +0 -53
- package/docs/classes/ModelRoomLabelController.html +0 -19
- package/docs/classes/MoveController.html +0 -45
- package/docs/classes/Object3DHelperController.html +0 -45
- package/docs/classes/PaintBrush.html +0 -15
- package/docs/classes/PanoMeasureControllerV2.html +0 -94
- package/docs/classes/PanoMeasurePluginLine.html +0 -26
- package/docs/classes/PanoMeasurePluginModel.html +0 -23
- package/docs/classes/PanoMeasurePluginPoint.html +0 -7
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -27
- package/docs/classes/PanoPatchPluginController.html +0 -17
- package/docs/classes/PanoTagPluginController.html +0 -129
- package/docs/classes/Sculpt.html +0 -79
- package/docs/classes/Util.BetterTween.html +0 -6
- package/docs/classes/Util.FiveDomEvents.html +0 -13
- package/docs/classes/Util.FivePuppet.html +0 -20
- package/docs/classes/Util.Interval.html +0 -11
- package/docs/classes/Util.LegacyPointHelper.html +0 -7
- package/docs/classes/Util.LightTag.html +0 -47
- package/docs/classes/Util.LineSegments.html +0 -4
- package/docs/classes/Util.Magnifier.html +0 -38
- package/docs/classes/Util.Object3D.html +0 -8
- package/docs/classes/Util.PointDomHelper.html +0 -8
- package/docs/classes/Util.PointHelper.html +0 -10
- package/docs/classes/Util.PointSelector.html +0 -71
- package/docs/classes/Util.PointSelectorHelper.html +0 -14
- package/docs/classes/Util.Rectangle.html +0 -12
- package/docs/classes/Util.sculpt.BaseEditor.html +0 -17
- package/docs/classes/Util.sculpt.BoxMesh.html +0 -48
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleMesh.html +0 -26
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +0 -26
- package/docs/classes/Util.sculpt.CylinderMesh.html +0 -25
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.LineMesh.html +0 -34
- package/docs/classes/Util.sculpt.PointMesh.html +0 -24
- package/docs/classes/Util.sculpt.PolygonMesh.html +0 -40
- package/docs/classes/Util.sculpt.PrismMesh.html +0 -48
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleMesh.html +0 -41
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +0 -44
- package/docs/classes/WalkController.html +0 -42
- package/docs/enums/CameraMovementEffect.html +0 -4
- package/docs/enums/ContentType.html +0 -36
- package/docs/enums/DIRECTION.html +0 -5
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/DimensionType.html +0 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/PaintBrushTypeEnum.html +0 -4
- package/docs/enums/PointType.html +0 -4
- package/docs/enums/Rotation.html +0 -5
- package/docs/functions/AreaMakerPlugin.html +0 -1
- package/docs/functions/CSS3DRenderPlugin.html +0 -1
- package/docs/functions/CameraMovementPlugin.html +0 -2
- package/docs/functions/CruisePlugin.html +0 -1
- package/docs/functions/CurrentPanoImagePlugin.html +0 -1
- package/docs/functions/DigitalPerformancePlugin.html +0 -1
- package/docs/functions/DigitalPerformanceV2.DigitalPerformanceV2Plugin.html +0 -1
- package/docs/functions/DigitalPerformanceV2.normalizeDigitalPerformanceName.html +0 -2
- package/docs/functions/FloorplanGuidePlugin.html +0 -1
- package/docs/functions/GuideLinePlugin.html +0 -1
- package/docs/functions/ItemLabelPlugin.html +0 -1
- package/docs/functions/MapviewFloorplanPlugin.html +0 -1
- package/docs/functions/MeasurePlugin.html +0 -1
- package/docs/functions/MeasureV2.MeasurePluginV2.html +0 -1
- package/docs/functions/MeasureV2.collectNearbyEdges.html +0 -5
- package/docs/functions/MeasureV2.drawMeasureOverlay.html +0 -3
- package/docs/functions/MeasureV2.getWorldNormal.html +0 -6
- package/docs/functions/MeasureV2.validatePolygon.html +0 -1
- package/docs/functions/ModelChassisCompassPlugin.html +0 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -2
- package/docs/functions/ModelFloorplanPlugin.html +0 -1
- package/docs/functions/ModelItemLabelPlugin.html +0 -1
- package/docs/functions/ModelMakerPlugin.html +0 -1
- package/docs/functions/ModelRoomLabelPlugin.html +0 -1
- package/docs/functions/ModelTVVideoPlugin.html +0 -1
- package/docs/functions/ModelViewPlugin.html +0 -2
- package/docs/functions/MovePlugin.html +0 -1
- package/docs/functions/Object3DHelperPlugin.html +0 -1
- package/docs/functions/PanoCompassPlugin.html +0 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -2
- package/docs/functions/PanoDoorLabelPlugin.html +0 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -1
- package/docs/functions/PanoMeasurePlugin.html +0 -1
- package/docs/functions/PanoMeasurePluginV2.html +0 -1
- package/docs/functions/PanoRulerPlugin.html +0 -2
- package/docs/functions/PanoRulerProPlugin.html +0 -2
- package/docs/functions/PanoSpatialTagPlugin.html +0 -2
- package/docs/functions/PanoTagPlugin.html +0 -1
- package/docs/functions/PanoVideoPlugin.html +0 -10
- package/docs/functions/PipelinePlugin.html +0 -1
- package/docs/functions/SculptPlugin.html +0 -2
- package/docs/functions/SculptPluginForFive.html +0 -2
- package/docs/functions/TopviewFloorplanPlugin.html +0 -1
- package/docs/functions/Util.awaitNextFrame.html +0 -1
- package/docs/functions/Util.blink.html +0 -13
- package/docs/functions/Util.blinkWithPreset.html +0 -6
- package/docs/functions/Util.bounding.html +0 -1
- package/docs/functions/Util.boundingBox.html +0 -1
- package/docs/functions/Util.boundingSphere.html +0 -1
- package/docs/functions/Util.boxVertex.html +0 -7
- package/docs/functions/Util.boxVertexes.html +0 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -2
- package/docs/functions/Util.cleanup.html +0 -3
- package/docs/functions/Util.convexHull.html +0 -2
- package/docs/functions/Util.equal.html +0 -5
- package/docs/functions/Util.fiveModelIsLoaded.html +0 -2
- package/docs/functions/Util.generatePolygonGeometry.html +0 -2
- package/docs/functions/Util.getCoordsFromClient.html +0 -1
- package/docs/functions/Util.getCoordsFromElement.html +0 -1
- package/docs/functions/Util.getFrameTime.html +0 -3
- package/docs/functions/Util.getGeometryArea.html +0 -1
- package/docs/functions/Util.getGeometryInfo.html +0 -1
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -1
- package/docs/functions/Util.initialCSS3DRender.html +0 -1
- package/docs/functions/Util.inside.html +0 -1
- package/docs/functions/Util.isModelLike.html +0 -1
- package/docs/functions/Util.isNil.html +0 -2
- package/docs/functions/Util.isPanoramaLike.html +0 -1
- package/docs/functions/Util.lookObject.html +0 -7
- package/docs/functions/Util.lookPoint.html +0 -5
- package/docs/functions/Util.nextFrame.html +0 -1
- package/docs/functions/Util.notNil.html +0 -2
- package/docs/functions/Util.reblink.html +0 -13
- package/docs/functions/Util.replaceStaticPrefix.html +0 -8
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -5
- package/docs/functions/Util.sculpt.createBox.html +0 -1
- package/docs/functions/Util.sculpt.createCircle.html +0 -1
- package/docs/functions/Util.sculpt.createCylinder.html +0 -1
- package/docs/functions/Util.sculpt.createLine.html +0 -2
- package/docs/functions/Util.sculpt.createPoint.html +0 -1
- package/docs/functions/Util.sculpt.createPolygon.html +0 -1
- package/docs/functions/Util.sculpt.createPrism.html +0 -1
- package/docs/functions/Util.sculpt.createRectangle.html +0 -2
- package/docs/functions/Util.sculpt.transformUnit.html +0 -4
- package/docs/functions/Util.sculpt.transformUnitSquare.html +0 -1
- package/docs/functions/Util.tag.html +0 -1
- package/docs/functions/Util.triangleArea.html +0 -2
- package/docs/functions/Util.triangleCenter.html +0 -2
- package/docs/functions/Util.tweenProgress.html +0 -1
- package/docs/functions/Util.uuid.html +0 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +0 -2
- package/docs/functions/Util.worldBounding.html +0 -1
- package/docs/functions/Util.worldBoundingBox.html +0 -1
- package/docs/functions/Util.worldBoundingSphere.html +0 -1
- package/docs/functions/classifyMovementTrack.html +0 -1
- package/docs/functions/createPolyline.html +0 -2
- package/docs/functions/getAreaBox3.html +0 -2
- package/docs/functions/getAreaVertices.html +0 -2
- package/docs/functions/getEffectivePointActionDuration.html +0 -1
- package/docs/functions/getEntryArea.html +0 -2
- package/docs/functions/getMovementActionDuration.html +0 -1
- package/docs/functions/hasMovementV2Signal.html +0 -1
- package/docs/functions/isConverterSafeMovementMatrix.html +0 -1
- package/docs/functions/pluginFlag.html +0 -1
- package/docs/functions/transformAnimationDetailToDigitalScript.html +0 -3
- package/docs/functions/transformScriptData.html +0 -4
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -82
- package/docs/interfaces/AnimationScriptAdapterOptions.html +0 -6
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -8
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -25
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -20
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -13
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -9
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -8
- package/docs/interfaces/BoxAnimationConfig.html +0 -6
- package/docs/interfaces/BoxPosition.html +0 -8
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -9
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -11
- package/docs/interfaces/ChapterLocation.html +0 -4
- package/docs/interfaces/ChapterTimeInfo.html +0 -7
- package/docs/interfaces/ContentTypeMapInterface.html +0 -83
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -8
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -33
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -6
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -16
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -19
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -20
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -14
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -4
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -7
- package/docs/interfaces/DigitalCameraKeyframe.html +0 -4
- package/docs/interfaces/DigitalCameraPlayer.html +0 -4
- package/docs/interfaces/DigitalCameraState.html +0 -4
- package/docs/interfaces/DigitalChapter.html +0 -3
- package/docs/interfaces/DigitalDataPlayer.html +0 -4
- package/docs/interfaces/DigitalDataState.html +0 -4
- package/docs/interfaces/DigitalEffectKeyframe.html +0 -4
- package/docs/interfaces/DigitalEffectState.html +0 -8
- package/docs/interfaces/DigitalItemKeyframe.html +0 -6
- package/docs/interfaces/DigitalItemState.html +0 -7
- package/docs/interfaces/DigitalModelKeyframe.html +0 -9
- package/docs/interfaces/DigitalModelPlayer.html +0 -10
- package/docs/interfaces/DigitalModelPlayerEffect.html +0 -4
- package/docs/interfaces/DigitalModelPlayerItem.html +0 -6
- package/docs/interfaces/DigitalModelState.html +0 -8
- package/docs/interfaces/DigitalPerformancePluginConfig.html +0 -9
- package/docs/interfaces/DigitalPerformanceV2.CameraState.html +0 -13
- package/docs/interfaces/DigitalPerformanceV2.DigitalCameraKeyframe.html +0 -23
- package/docs/interfaces/DigitalPerformanceV2.DigitalCameraPlayer.html +0 -7
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceNameplateBinding.html +0 -5
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceNameplateOptions.html +0 -22
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceNameplateRenderContext.html +0 -5
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceV2PluginConfig.html +0 -15
- package/docs/interfaces/DigitalPerformanceV2.GroupChapterTimeInfo.html +0 -13
- package/docs/interfaces/DigitalPerformanceV2.GroupProgress.html +0 -18
- package/docs/interfaces/DigitalPerformanceV2.V2Progress.html +0 -10
- package/docs/interfaces/DigitalScript.html +0 -5
- package/docs/interfaces/DigitalSubTitleKeyframe.html +0 -7
- package/docs/interfaces/DigitalSubTitlePlayer.html +0 -4
- package/docs/interfaces/DigitalSubTitleState.html +0 -6
- package/docs/interfaces/ExtendedAnimationConfig.html +0 -5
- package/docs/interfaces/FireArea.html +0 -5
- package/docs/interfaces/FireModel.html +0 -9
- package/docs/interfaces/FireSceneConfig.html +0 -9
- package/docs/interfaces/FireSequencePlayerOptions.html +0 -4
- package/docs/interfaces/FireSequenceStep.html +0 -5
- package/docs/interfaces/FireVector3.html +0 -4
- package/docs/interfaces/FloorplanBounding.html +0 -9
- package/docs/interfaces/FloorplanData.html +0 -8
- package/docs/interfaces/FloorplanEntrance.html +0 -14
- package/docs/interfaces/FloorplanExtraObject.html +0 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -5
- package/docs/interfaces/FloorplanFloorData.html +0 -9
- package/docs/interfaces/FloorplanImagePosition.html +0 -4
- package/docs/interfaces/FloorplanObserver.html +0 -9
- package/docs/interfaces/FloorplanOutlineItem.html +0 -6
- package/docs/interfaces/FloorplanPosition.html +0 -4
- package/docs/interfaces/FloorplanRoomItem.html +0 -24
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -6
- package/docs/interfaces/FloorplanServerBounding.html +0 -9
- package/docs/interfaces/FloorplanServerComputedData.html +0 -6
- package/docs/interfaces/FloorplanServerData.html +0 -5
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -6
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -4
- package/docs/interfaces/FloorplanServerEntrance.html +0 -14
- package/docs/interfaces/FloorplanServerFloorData.html +0 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -4
- package/docs/interfaces/FloorplanServerObserver.html +0 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -7
- package/docs/interfaces/FloorplanServerPosition.html +0 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -27
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -6
- package/docs/interfaces/FloorplanServerStyledFloorplan.html +0 -3
- package/docs/interfaces/FloorplanServerStyledImage.html +0 -6
- package/docs/interfaces/GlobalProgress.html +0 -7
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -4
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -7
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -13
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +0 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -32
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -5
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -42
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -57
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -13
- package/docs/interfaces/HelperOffset.html +0 -4
- package/docs/interfaces/ImagePlaneGroup.html +0 -3
- package/docs/interfaces/ItemLabelPluginData.html +0 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -5
- package/docs/interfaces/LegacyScriptTransformer.html +0 -2
- package/docs/interfaces/MeasureV2.EdgeSnapOptions.html +0 -19
- package/docs/interfaces/MeasureV2.MagnifierViewport.html +0 -20
- package/docs/interfaces/MeasureV2.MeasureMagnifierOptions.html +0 -28
- package/docs/interfaces/MeasureV2.ResolvedEdgeSnapOptions.html +0 -11
- package/docs/interfaces/MinMax.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +0 -17
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -18
- package/docs/interfaces/ModelMakerPluginType.ModelMakerPluginConfig.html +0 -19
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +0 -23
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -11
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.State.html +0 -8
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +0 -11
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -5
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -3
- package/docs/interfaces/ModelViewPluginExportType.html +0 -8
- package/docs/interfaces/Object3DHelperState.html +0 -4
- package/docs/interfaces/ObjectHelperControllers.html +0 -5
- package/docs/interfaces/PaintBrushAction.html +0 -14
- package/docs/interfaces/PaintBrushConfigs.html +0 -8
- package/docs/interfaces/PaintBrushState.html +0 -6
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -16
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -1
- package/docs/interfaces/PanoMeasureParameterType.html +0 -21
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -7
- package/docs/interfaces/PanoMeasurePluginV2Data.html +0 -2
- package/docs/interfaces/PanoMeasurePluginV2ServerData.html +0 -2
- package/docs/interfaces/PanoPatch.html +0 -8
- package/docs/interfaces/PanoPatchCandidate.html +0 -5
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -6
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -5
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -3
- package/docs/interfaces/PanoRulerProPluginState.html +0 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -6
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -14
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -13
- package/docs/interfaces/PlaybackController.html +0 -4
- package/docs/interfaces/PlaybackManager.html +0 -2
- package/docs/interfaces/PlaybackSession.html +0 -5
- package/docs/interfaces/PluginEventMap.html +0 -16
- package/docs/interfaces/Point.html +0 -4
- package/docs/interfaces/ProgressBarEvents.html +0 -7
- package/docs/interfaces/Room.html +0 -5
- package/docs/interfaces/RoomInfo.html +0 -3
- package/docs/interfaces/RoomLabel.html +0 -16
- package/docs/interfaces/RoomRules.html +0 -1
- package/docs/interfaces/Rooms.html +0 -1
- package/docs/interfaces/Scissor.html +0 -13
- package/docs/interfaces/SculptConfig.html +0 -19
- package/docs/interfaces/State.html +0 -7
- package/docs/interfaces/StyledFloorplan.html +0 -3
- package/docs/interfaces/StyledFloorplanImage.html +0 -6
- package/docs/interfaces/StyledFloorplanRoomLabel.html +0 -8
- package/docs/interfaces/TagCacheInterface.html +0 -9
- package/docs/interfaces/TagConfig.html +0 -189
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
- package/docs/interfaces/TagIconAnimationConfig.html +0 -7
- package/docs/interfaces/TagIconUrl.html +0 -22
- package/docs/interfaces/TagObjectGroup.html +0 -3
- package/docs/interfaces/TagState.html +0 -3
- package/docs/interfaces/TagStyle.html +0 -17
- package/docs/interfaces/Tags.html +0 -8
- package/docs/interfaces/TemporaryState.html +0 -2
- package/docs/interfaces/TraceManager.html +0 -6
- package/docs/interfaces/TracePoint.html +0 -3
- package/docs/interfaces/Util.AdaptiveReadWindowOptions.html +0 -10
- package/docs/interfaces/Util.AnimeInstance.html +0 -14
- package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -21
- package/docs/interfaces/Util.EventHandlerConfig.html +0 -21
- package/docs/interfaces/Util.FiveDomEvent.html +0 -7
- package/docs/interfaces/Util.FiveDomEventMap.html +0 -20
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.MagnifierParameter.html +0 -22
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.ObjectInitialState.html +0 -9
- package/docs/interfaces/Util.PointIntersection.html +0 -21
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +0 -6
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -27
- package/docs/modules/AreaMakerPluginType.html +0 -17
- package/docs/modules/CruisePluginTypes.html +0 -14
- package/docs/modules/CurrentPanoImagePluginType.html +0 -6
- package/docs/modules/DigitalPerformanceV2.html +0 -22
- package/docs/modules/GuideLineItem.html +0 -2
- package/docs/modules/GuideLineModeItem.html +0 -3
- package/docs/modules/GuideLinePluginType.html +0 -25
- package/docs/modules/MeasureV2.html +0 -22
- package/docs/modules/ModelMakerPluginType.html +0 -22
- package/docs/modules/PanoVideoPluginType.html +0 -8
- package/docs/modules/SculptData.html +0 -9
- package/docs/modules/SculptType.html +0 -2
- package/docs/modules/Util.html +0 -92
- package/docs/modules/Util.sculpt.html +0 -27
- package/docs/modules.html +0 -393
- package/docs/types/AddObject3DHelperConfig.html +0 -19
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -7
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -2
- package/docs/types/ArrayPosition.html +0 -1
- package/docs/types/AudioAppearance.html +0 -1
- package/docs/types/BoxTag.html +0 -2
- package/docs/types/CSS3DRenderExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -1
- package/docs/types/CanonicalMovementTrackPlan.html +0 -1
- package/docs/types/ClassFunctionParameters.html +0 -1
- package/docs/types/Color.html +0 -1
- package/docs/types/ContentTypeConfigKey.html +0 -1
- package/docs/types/ContentTypeConfigKeySplit.html +0 -1
- package/docs/types/ContentTypeMap.html +0 -1
- package/docs/types/Create3DDomContainerReturnType.html +0 -1
- package/docs/types/Create3DElementReturnType.html +0 -1
- package/docs/types/CruisePluginExportType.html +0 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -3
- package/docs/types/DeprecatedTagProperty.html +0 -3
- package/docs/types/DigitalPerformancePluginExportInterface.html +0 -1
- package/docs/types/DigitalPerformancePluginParamsInterface.html +0 -1
- package/docs/types/DigitalPerformanceV2.CameraCoordinateSpace.html +0 -7
- package/docs/types/DigitalPerformanceV2.CameraTransition.html +0 -7
- package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginExportInterface.html +0 -1
- package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginParamsInterface.html +0 -1
- package/docs/types/DigitalPerformanceV2.V2ProgressListener.html +0 -1
- package/docs/types/Direction-1.html +0 -1
- package/docs/types/Direction4.html +0 -1
- package/docs/types/ElementRenderer.html +0 -2
- package/docs/types/FireModelType.html +0 -5
- package/docs/types/FireSequenceKind.html +0 -3
- package/docs/types/FireSpreadBounds.html +0 -2
- package/docs/types/FloorplanAffineTransform.html +0 -1
- package/docs/types/FloorplanGuidePluginParameterType.html +0 -1
- package/docs/types/FloorplanGuidePluginReturnType.html +0 -1
- package/docs/types/FloorplanRuleLabels.html +0 -2
- package/docs/types/FloorplanServerAffineTransform.html +0 -1
- package/docs/types/FloorplanServerRuleLabels.html +0 -1
- package/docs/types/GuideLinePluginExportType.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -2
- package/docs/types/GuideLinePluginType.PathItem.html +0 -2
- package/docs/types/GuideLinePluginType.PluginData.html +0 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +0 -4
- package/docs/types/HelperEventMap.html +0 -1
- package/docs/types/InternalHelperEventMap.html +0 -1
- package/docs/types/KeyframeType.html +0 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/MaskPosition.html +0 -3
- package/docs/types/MaskTag.html +0 -2
- package/docs/types/MeasureInteractionState.html +0 -2
- package/docs/types/MeasureV2.MeasureControllerV2Interface.html +0 -1
- package/docs/types/MeasureV2.MeasureEndReason.html +0 -1
- package/docs/types/MeasureV2.MeasurePluginConfig.html +0 -10
- package/docs/types/MeasureV2.MeasurePluginEventMap.html +0 -1
- package/docs/types/MeasureV2.MeasurePluginV2Config.html +0 -6
- package/docs/types/MeasureV2.MeasurePluginV2ParamsInterface.html +0 -1
- package/docs/types/MediaData.html +0 -2
- package/docs/types/MediaOperations.html +0 -1
- package/docs/types/MediaStore.html +0 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -1
- package/docs/types/ModelId.html +0 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +0 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +0 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +0 -2
- package/docs/types/ModelMakerPluginType.TagOcclusionScope.html +0 -2
- package/docs/types/ModelMakerPluginType.TagOcclusionScopeConfig.html +0 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -1
- package/docs/types/MoveArgs.html +0 -2
- package/docs/types/MoveOpts.html +0 -2
- package/docs/types/MovementConfig.html +0 -1
- package/docs/types/MovementPosition.html +0 -1
- package/docs/types/MovementTrackClassification.html +0 -1
- package/docs/types/MovementTrackConflictReason.html +0 -1
- package/docs/types/MovementTrackProjection.html +0 -1
- package/docs/types/Object3DHelperEventMap.html +0 -1
- package/docs/types/ObjectFit.html +0 -1
- package/docs/types/PaintBrushEventMap.html +0 -1
- package/docs/types/PanoCompassPluginData.html +0 -1
- package/docs/types/PanoCompassPluginExportType.html +0 -1
- package/docs/types/PanoCompassPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -1
- package/docs/types/PanoIndex.html +0 -1
- package/docs/types/PanoMeasurePluginEvent.html +0 -1
- package/docs/types/PanoMeasurePluginV2Config.html +0 -1
- package/docs/types/PanoMeasurePluginV2Instance.html +0 -1
- package/docs/types/PanoMeasureReturnType.html +0 -1
- package/docs/types/PanoSpatialTagPluginId.html +0 -1
- package/docs/types/PanoTagPluginExportInterface.html +0 -1
- package/docs/types/PanoTagPluginParamsInterface.html +0 -1
- package/docs/types/PanoVideoPluginParameterType.html +0 -1
- package/docs/types/PanoVideoPluginReturnType.html +0 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -2
- package/docs/types/PipelinePluginParameterType.html +0 -1
- package/docs/types/PipelinePluginReturnType.html +0 -1
- package/docs/types/PlaneTag.html +0 -2
- package/docs/types/Point2DTag.html +0 -2
- package/docs/types/Point3DTag.html +0 -2
- package/docs/types/PointAction.html +0 -1
- package/docs/types/PointTagInstance.html +0 -1
- package/docs/types/PolygonPosition.html +0 -3
- package/docs/types/PolygonTag.html +0 -2
- package/docs/types/Position.html +0 -1
- package/docs/types/PositionFrom.html +0 -1
- package/docs/types/ProgressListener.html +0 -1
- package/docs/types/RotateArgs.html +0 -2
- package/docs/types/RotateOpts.html +0 -2
- package/docs/types/RuleLabelsKey.html +0 -1
- package/docs/types/RuleLabelsValue.html +0 -1
- package/docs/types/ScaleCallback.html +0 -1
- package/docs/types/ScalePosition.html +0 -3
- package/docs/types/SculptData.BoxData.html +0 -1
- package/docs/types/SculptData.CircleData.html +0 -1
- package/docs/types/SculptData.CylinderData.html +0 -1
- package/docs/types/SculptData.PointData.html +0 -1
- package/docs/types/SculptData.PolygonData.html +0 -1
- package/docs/types/SculptData.PolylineData.html +0 -1
- package/docs/types/SculptData.PrismData.html +0 -1
- package/docs/types/SculptData.RectangleData.html +0 -1
- package/docs/types/SculptType.Theme.html +0 -10
- package/docs/types/StateType.html +0 -1
- package/docs/types/StickType.html +0 -1
- package/docs/types/Tag.html +0 -17
- package/docs/types/Tag2D.html +0 -2
- package/docs/types/Tag3D.html +0 -2
- package/docs/types/TagClickParams.html +0 -1
- package/docs/types/TagConfigByKey.html +0 -1
- package/docs/types/TagContentType.html +0 -1
- package/docs/types/TagContentTypeMapping.html +0 -1
- package/docs/types/TagDimensionType.html +0 -1
- package/docs/types/TagElement.html +0 -2
- package/docs/types/TagEvents.html +0 -1
- package/docs/types/TagGLTFObject.html +0 -1
- package/docs/types/TagHooks.html +0 -1
- package/docs/types/TagId.html +0 -1
- package/docs/types/TagInstance.html +0 -1
- package/docs/types/TagPlacement.html +0 -5
- package/docs/types/TagPointType.html +0 -2
- package/docs/types/TagRendererMap.html +0 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/TrackPoint.html +0 -1
- package/docs/types/Util.ActionIfNoIntersection.html +0 -1
- package/docs/types/Util.AdherePoint.html +0 -2
- package/docs/types/Util.PointSelectorConfig.html +0 -1
- package/docs/types/Util.SupportedTarget.html +0 -2
- package/docs/types/Util.Target.html +0 -2
- package/docs/types/Util.ThreeObject.html +0 -2
- package/docs/types/WorkCode.html +0 -1
- package/docs/variables/DigitalPerformanceV2.DEFAULT_DIGITAL_PERFORMANCE_NAME_MAX_LENGTH.html +0 -1
- package/docs/variables/FIRE_ACTION_DURATION_MS.html +0 -2
- package/docs/variables/FIRE_SPREAD_SPEED.html +0 -2
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -2
- package/docs/variables/MODEL_SCALE_RANGE.html +0 -2
- package/docs/variables/MOVEMENT_OCCURRENCE_EPSILON.html +0 -1
- package/docs/variables/MOVEMENT_POSITION_EPSILON.html +0 -1
- package/docs/variables/MOVEMENT_SCHEMA_VERSION.html +0 -1
- package/docs/variables/MeasureV2.DEFAULT_EDGE_SNAP_OPTIONS.html +0 -1
- package/docs/variables/MeasureV2.OVERLAY_STYLE.html +0 -14
- package/docs/variables/PLUGIN.html +0 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -2
- package/docs/variables/ROOM_TYPE_MAP.html +0 -2
- package/docs/variables/Util.ANIME_PRESETS.html +0 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +0 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +0 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +0 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +0 -2
- package/docs/variables/defaultGlobalConfig.html +0 -1
- package/docs/variables/itemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -1
- package/libs/PanoPatchPlugin/Controller.d.ts +0 -37
- package/libs/PanoPatchPlugin/Controller.js +0 -143
- package/libs/PanoPatchPlugin/constants.d.ts +0 -16
- package/libs/PanoPatchPlugin/constants.js +0 -10
- package/libs/PanoPatchPlugin/geometry.d.ts +0 -18
- package/libs/PanoPatchPlugin/geometry.js +0 -32
- package/libs/PanoPatchPlugin/index.d.ts +0 -2
- package/libs/PanoPatchPlugin/index.js +0 -8
- package/libs/PanoPatchPlugin/typings.d.ts +0 -15
- package/libs/PanoPatchPlugin/typings.js +0 -1
|
@@ -66,6 +66,10 @@ export declare class Magnifier {
|
|
|
66
66
|
state: {
|
|
67
67
|
enabled: boolean;
|
|
68
68
|
};
|
|
69
|
+
/** 用户开关:false 时不显示放大镜,但保留内部启用状态,便于恢复 */
|
|
70
|
+
private userEnabled;
|
|
71
|
+
/** 生命周期是否处于启用状态(由 PointSelectorHelper 等调用 enable/disable 驱动) */
|
|
72
|
+
private lifecycleEnabled;
|
|
69
73
|
/** 读回像素的分辨率倍数;运行时可能因读回失败被降级为 1 */
|
|
70
74
|
readPixelsPixelRatio: number;
|
|
71
75
|
private five;
|
|
@@ -88,6 +92,13 @@ export declare class Magnifier {
|
|
|
88
92
|
constructor(five: Five, options: MagnifierParameter);
|
|
89
93
|
enable(): this;
|
|
90
94
|
disable(): this;
|
|
95
|
+
/**
|
|
96
|
+
* 用户级开关:只影响放大镜是否显示,不改变选点流程。
|
|
97
|
+
* 与 enable/disable 的区别是它不会被选点器内部的 show/hide 覆盖。
|
|
98
|
+
*/
|
|
99
|
+
setUserEnabled(enabled: boolean): this;
|
|
100
|
+
get isUserEnabled(): boolean;
|
|
101
|
+
private hideCanvas;
|
|
91
102
|
dispose(): void;
|
|
92
103
|
/** 把放大镜放到某一个容器中 */
|
|
93
104
|
appendTo(element: Element): this;
|
|
@@ -61,6 +61,9 @@ export declare class PointSelectorHelper {
|
|
|
61
61
|
private group;
|
|
62
62
|
constructor(five: Five, options?: PointSelectorHelperConfig);
|
|
63
63
|
show: () => void;
|
|
64
|
+
/** 用户级放大镜开关:关闭后放大镜不再显示,选点流程不受影响 */
|
|
65
|
+
setMagnifierEnabled(enabled: boolean): void;
|
|
66
|
+
get isMagnifierEnabled(): boolean;
|
|
64
67
|
hide: () => void;
|
|
65
68
|
enable(): void;
|
|
66
69
|
disable(): void;
|
|
@@ -37,6 +37,14 @@ export declare class MeasureController extends Subscribe<MeasurePluginEventMap>
|
|
|
37
37
|
private publishInteraction;
|
|
38
38
|
get pointSelector(): PointSelector;
|
|
39
39
|
private _pointSelector;
|
|
40
|
+
/** 放大镜用户开关,默认开启;关闭后选点流程不变,只是不显示放大镜 */
|
|
41
|
+
private _magnifierEnabled;
|
|
42
|
+
get magnifierEnabled(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 开关放大镜(用户可见的「开启放大器」)。
|
|
45
|
+
* 运行时生效,也在下次创建选点器时沿用,不需要重新开始测量。
|
|
46
|
+
*/
|
|
47
|
+
setMagnifierEnabled(enabled: boolean): void;
|
|
40
48
|
protected createPointSelector(): PointSelector;
|
|
41
49
|
private get fiveDomEvents();
|
|
42
50
|
private _fiveDomEvents;
|
|
@@ -2,15 +2,15 @@ var V = Object.defineProperty, U = Object.defineProperties;
|
|
|
2
2
|
var A = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var F = Object.getOwnPropertySymbols;
|
|
4
4
|
var T = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var D = (
|
|
5
|
+
var D = (y, f, e) => f in y ? V(y, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : y[f] = e, p = (y, f) => {
|
|
6
6
|
for (var e in f || (f = {}))
|
|
7
|
-
T.call(f, e) && D(
|
|
7
|
+
T.call(f, e) && D(y, e, f[e]);
|
|
8
8
|
if (F)
|
|
9
9
|
for (var e of F(f))
|
|
10
|
-
z.call(f, e) && D(
|
|
11
|
-
return
|
|
12
|
-
}, E = (
|
|
13
|
-
var o = (
|
|
10
|
+
z.call(f, e) && D(y, e, f[e]);
|
|
11
|
+
return y;
|
|
12
|
+
}, E = (y, f) => U(y, A(f));
|
|
13
|
+
var o = (y, f, e) => (D(y, typeof f != "symbol" ? f + "" : f, e), e);
|
|
14
14
|
import * as u from "three";
|
|
15
15
|
import "../shared-utils/tag.js";
|
|
16
16
|
import "../vendor/hammerjs/hammer.js";
|
|
@@ -30,7 +30,7 @@ import "../shared-utils/five/FivePuppet.js";
|
|
|
30
30
|
import { isMeasureMesh as w, MeasureMesh as x } from "./utils/MeasureMesh.js";
|
|
31
31
|
import { PointMesh as H } from "../Sculpt/Meshes/Point.js";
|
|
32
32
|
import { LineWithDotsMesh as X } from "../Sculpt/Meshes/LineWithDots.js";
|
|
33
|
-
import { hotkeys as
|
|
33
|
+
import { hotkeys as m } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
34
34
|
import { PolygonMesh as Y } from "../Sculpt/Meshes/Polygon.js";
|
|
35
35
|
import { validatePolygon as j } from "./utils/validatePolygon.js";
|
|
36
36
|
import { IObject3D as $ } from "../shared-utils/three/IObject3D.js";
|
|
@@ -97,7 +97,7 @@ import "../shared-utils/three/geometryUtil.js";
|
|
|
97
97
|
import "../shared-utils/three/vectorIsEqual.js";
|
|
98
98
|
import "../Sculpt/utils/Modules/DeleteButtonBgBorder.js";
|
|
99
99
|
import "../Sculpt/utils/Modules/DeleteIconSVG.js";
|
|
100
|
-
class
|
|
100
|
+
class Ct extends O {
|
|
101
101
|
constructor(e, t) {
|
|
102
102
|
super();
|
|
103
103
|
o(this, "name", "MeasurePlugin");
|
|
@@ -122,6 +122,8 @@ class _t extends O {
|
|
|
122
122
|
this.interactionPhase = e, this.interactionResult = t, this.emit("interactionChange", this.interactionState);
|
|
123
123
|
});
|
|
124
124
|
o(this, "_pointSelector");
|
|
125
|
+
/** 放大镜用户开关,默认开启;关闭后选点流程不变,只是不显示放大镜 */
|
|
126
|
+
o(this, "_magnifierEnabled", !0);
|
|
125
127
|
o(this, "_fiveDomEvents");
|
|
126
128
|
o(this, "_cursor");
|
|
127
129
|
o(this, "_config");
|
|
@@ -156,10 +158,10 @@ class _t extends O {
|
|
|
156
158
|
* @description 开始测量
|
|
157
159
|
*/
|
|
158
160
|
o(this, "measure", () => {
|
|
159
|
-
var
|
|
161
|
+
var _;
|
|
160
162
|
if (this.currentMeasureMesh)
|
|
161
163
|
return;
|
|
162
|
-
(
|
|
164
|
+
(_ = this.cleanupPendingPress) == null || _.call(this), this.repositioningState && this.cancelRepositioning(), this.listener.addMeasureListener(), m.unbind("delete, backspace", this.deleteSelectedMesh), this.unselectAllMeasureMeshes(), this.cursor.removeDeleteButton();
|
|
163
165
|
let e = new x({
|
|
164
166
|
lineStyle: this.lineStyle,
|
|
165
167
|
polygonStyle: this.polygonStyle
|
|
@@ -170,7 +172,7 @@ class _t extends O {
|
|
|
170
172
|
lineColor: 3407837,
|
|
171
173
|
dashed: !0,
|
|
172
174
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
173
|
-
})),
|
|
175
|
+
})), a = new k(E(p({}, this.lineStyle), {
|
|
174
176
|
lineOpacity: 0.5,
|
|
175
177
|
lineColor: 3407837,
|
|
176
178
|
dashed: !0,
|
|
@@ -182,72 +184,72 @@ class _t extends O {
|
|
|
182
184
|
}, M = (h) => {
|
|
183
185
|
h.key === "Shift" && (v = !1);
|
|
184
186
|
}, P = () => {
|
|
185
|
-
t.removeFromParent(), n.removeFromParent(), i.removeFromParent(), r.removeFromParent(),
|
|
187
|
+
t.removeFromParent(), n.removeFromParent(), i.removeFromParent(), r.removeFromParent(), a.removeFromParent(), l.removeFromParent();
|
|
186
188
|
};
|
|
187
189
|
this.group.add(e), document.addEventListener("keydown", g), document.addEventListener("keyup", M);
|
|
188
|
-
const
|
|
190
|
+
const b = (h) => {
|
|
189
191
|
if (!h) {
|
|
190
192
|
P(), s = null, d = !1;
|
|
191
193
|
return;
|
|
192
194
|
}
|
|
193
195
|
if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(t), t.position.copy(h.point), s = null, d = !1), e.points.length >= 1)
|
|
194
196
|
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", t.removeFromParent(), this.group.addIfNotExists(n), n.setStyle(E(p({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), n.setPoints([e.points.at(-1), h.point]), h.isAdsorbed)
|
|
195
|
-
r.removeFromParent(),
|
|
197
|
+
r.removeFromParent(), a.removeFromParent(), l.removeFromParent(), s = null, d = !1;
|
|
196
198
|
else {
|
|
197
|
-
const
|
|
198
|
-
if (Math.abs(h.point.y -
|
|
199
|
-
const S = new u.Vector3(h.point.x,
|
|
199
|
+
const c = e.points.at(-1);
|
|
200
|
+
if (Math.abs(h.point.y - c.y) > 0.2) {
|
|
201
|
+
const S = new u.Vector3(h.point.x, c.y, h.point.z);
|
|
200
202
|
r.setStyle(E(p({}, this.lineStyle), {
|
|
201
203
|
lineOpacity: 0.5,
|
|
202
204
|
lineColor: 3407837,
|
|
203
205
|
dashed: !0,
|
|
204
206
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
205
|
-
})),
|
|
207
|
+
})), a.setStyle(E(p({}, this.lineStyle), {
|
|
206
208
|
lineOpacity: 0.5,
|
|
207
209
|
lineColor: 3407837,
|
|
208
210
|
dashed: !0,
|
|
209
211
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
210
|
-
})), r.setPoints([
|
|
212
|
+
})), r.setPoints([c, S]), a.setPoints([S, h.point]), l.position.copy(S), s = S.clone(), d = !0;
|
|
211
213
|
} else {
|
|
212
214
|
let S = new u.Vector3();
|
|
213
|
-
Math.abs(h.point.x -
|
|
215
|
+
Math.abs(h.point.x - c.x) < Math.abs(h.point.z - c.z) ? S = new u.Vector3(h.point.x, c.y, c.z) : S = new u.Vector3(c.x, c.y, h.point.z), r.setStyle(E(p({}, this.lineStyle), {
|
|
214
216
|
lineOpacity: 0.5,
|
|
215
217
|
lineColor: 3407837,
|
|
216
218
|
dashed: !0,
|
|
217
219
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
218
|
-
})),
|
|
220
|
+
})), a.setStyle(E(p({}, this.lineStyle), {
|
|
219
221
|
lineOpacity: 0.5,
|
|
220
222
|
lineColor: 3407837,
|
|
221
223
|
dashed: !0,
|
|
222
224
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
223
|
-
})), r.setPoints([
|
|
225
|
+
})), r.setPoints([c, S]), a.setPoints([S, h.point]), l.position.copy(S), s = S.clone(), d = !0;
|
|
224
226
|
}
|
|
225
|
-
this.group.addIfNotExists(r,
|
|
227
|
+
this.group.addIfNotExists(r, a, l);
|
|
226
228
|
}
|
|
227
229
|
if (e.points.length >= 2) {
|
|
228
|
-
const
|
|
229
|
-
j(
|
|
230
|
+
const c = [...e.points, h.point];
|
|
231
|
+
j(c) ? (i.setStyle(p({}, this.polygonStyle)), i.setPoints(c), this.group.addIfNotExists(i)) : i.removeFromParent();
|
|
230
232
|
}
|
|
231
|
-
},
|
|
233
|
+
}, L = (h) => {
|
|
232
234
|
if (!h)
|
|
233
235
|
return;
|
|
234
|
-
let
|
|
235
|
-
v && d && s && e.points.length >= 1 && (
|
|
236
|
+
let c = h.point;
|
|
237
|
+
v && d && s && e.points.length >= 1 && (c = s.clone()), P(), e.setPoints([...e.points, c]), this.updateSelectAdsorbedHelper(), this.publishInteraction("drawing"), e.isPolygon && (this.currentEndReason = "polygon", this.pointSelector.disable());
|
|
236
238
|
}, R = () => {
|
|
237
|
-
var h,
|
|
238
|
-
e == null || e.setPoints(e.points.slice(0, -1)), P(), (
|
|
239
|
-
},
|
|
239
|
+
var h, c;
|
|
240
|
+
e == null || e.setPoints(e.points.slice(0, -1)), P(), (c = (h = this.pointSelector.pointSelectorHelper) == null ? void 0 : h.magnifier) == null || c.render(), this.updateSelectAdsorbedHelper(), this.publishInteraction("drawing"), this.five.needsRender = !0;
|
|
241
|
+
}, I = (h) => {
|
|
240
242
|
if (this.currentMeasureMesh !== e)
|
|
241
243
|
return;
|
|
242
244
|
e.line.setStyle({ cssStyle: "pointer-events: auto;" }), e.__five_pano_index = this.five.panoIndex, this.addMeshEventListeners(e), P();
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
},
|
|
246
|
-
this.continueMeasureFrom = void 0, this.pointSelector.off("intersectionUpdate",
|
|
247
|
-
let h = this.currentEndReason,
|
|
248
|
-
h === "escape" ? (e.removeFromParent(),
|
|
245
|
+
const c = new x({ lineStyle: this.lineStyle, polygonStyle: this.polygonStyle });
|
|
246
|
+
c.line.setStyle({ cssStyle: "pointer-events: none;" }), c.setPoints([h.clone()]), this.group.add(c), e = c, this.currentMeasureMesh = c, this.pointSelector.actionIfNoIntersection = "virtualPoint", this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
|
|
247
|
+
}, C = () => {
|
|
248
|
+
this.continueMeasureFrom = void 0, this.pointSelector.off("intersectionUpdate", b), this.pointSelector.off("select", L), this.pointSelector.off("disable", C), this.off("undo", R), document.removeEventListener("keydown", g), document.removeEventListener("keyup", M), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), P();
|
|
249
|
+
let h = this.currentEndReason, c = !0;
|
|
250
|
+
h === "escape" ? (e.removeFromParent(), c = !1) : e.points.length < 2 ? (e.removeFromParent(), h = "points_insufficient", c = !1) : this.addMeshEventListeners(e), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.removeMeasureListener(), m("delete, backspace", this.deleteSelectedMesh), this.publishInteraction("idle"), this.emit("measureEnd", h, c ? e.points : []), this.currentEndReason = "enter";
|
|
249
251
|
};
|
|
250
|
-
this.continueMeasureFrom =
|
|
252
|
+
this.continueMeasureFrom = I, this.on("undo", R), this.pointSelector.on("intersectionUpdate", b), this.pointSelector.on("select", L), this.pointSelector.on("disable", C), this.pointSelector.enable(), this.publishInteraction("drawing");
|
|
251
253
|
});
|
|
252
254
|
/**
|
|
253
255
|
* @description 结束测量
|
|
@@ -374,7 +376,7 @@ class _t extends O {
|
|
|
374
376
|
o(this, "listener", {
|
|
375
377
|
// 点击事件
|
|
376
378
|
addClickListener: () => {
|
|
377
|
-
this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange),
|
|
379
|
+
this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), m("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
|
|
378
380
|
},
|
|
379
381
|
removeClickListener: () => {
|
|
380
382
|
this.group.children.forEach((e) => {
|
|
@@ -382,14 +384,14 @@ class _t extends O {
|
|
|
382
384
|
w(e) && ((t = e.line.doms) == null || t.forEach((i) => {
|
|
383
385
|
i != null && i.container && (i.container.onclick = null, i.container.onmouseenter = null, i.container.onmouseleave = null);
|
|
384
386
|
}), (n = e.polygon.areaDom) != null && n.container && (e.polygon.areaDom.container.onclick = null, e.polygon.areaDom.container.onmouseenter = null, e.polygon.areaDom.container.onmouseleave = null));
|
|
385
|
-
}), this.fiveDomEvents.clear(), this.five.off("panoArrived", this.onMoveToPano), this.five.off("modeChange", this.onModeChange),
|
|
387
|
+
}), this.fiveDomEvents.clear(), this.five.off("panoArrived", this.onMoveToPano), this.five.off("modeChange", this.onModeChange), m.unbind("delete, backspace", this.deleteSelectedMesh);
|
|
386
388
|
},
|
|
387
389
|
// 绘制快捷键
|
|
388
390
|
addMeasureListener: () => {
|
|
389
|
-
|
|
391
|
+
m("ctrl+z, command+z", this.undo), m("esc", this.cancel), m("enter", this.endMeasureByEnter), this.five.on("mode.change", this.endMeasureByModeChange), this.five.on("pano.moveTo", this.endMeasureByPanoMove), this.five.on("model.changeShownFloor", this.endMeasureByFloorChange);
|
|
390
392
|
},
|
|
391
393
|
removeMeasureListener: () => {
|
|
392
|
-
|
|
394
|
+
m.unbind("ctrl+z, command+z", this.undo), m.unbind("esc", this.cancel), m.unbind("enter", this.endMeasureByEnter), this.five.off("mode.change", this.endMeasureByModeChange), this.five.off("pano.moveTo", this.endMeasureByPanoMove), this.five.off("model.changeShownFloor", this.endMeasureByFloorChange);
|
|
393
395
|
}
|
|
394
396
|
});
|
|
395
397
|
o(this, "onMoveToPano", (e) => {
|
|
@@ -403,10 +405,10 @@ class _t extends O {
|
|
|
403
405
|
return;
|
|
404
406
|
}
|
|
405
407
|
((l = r.line.points) == null ? void 0 : l.some((s) => {
|
|
406
|
-
var
|
|
408
|
+
var L, R;
|
|
407
409
|
const d = s.clone().sub(this.five.camera.position).normalize();
|
|
408
410
|
n.set(this.five.camera.position, d);
|
|
409
|
-
const v = (R = (
|
|
411
|
+
const v = (R = (L = this.five.model.intersectRaycaster(n)) == null ? void 0 : L[0]) == null ? void 0 : R.point;
|
|
410
412
|
if (!v)
|
|
411
413
|
return !0;
|
|
412
414
|
const g = 0.01, M = s.distanceTo(this.five.camera.position);
|
|
@@ -433,14 +435,14 @@ class _t extends O {
|
|
|
433
435
|
if (e && ("touches" in e && e.touches && e.touches[0] ? (i = e.touches[0].clientX, r = e.touches[0].clientY) : "clientX" in e && "clientY" in e && (i = e.clientX, r = e.clientY)), i === void 0 || r === void 0)
|
|
434
436
|
return;
|
|
435
437
|
this.unselectAllMeasureMeshes(), n.select();
|
|
436
|
-
const
|
|
438
|
+
const a = () => {
|
|
437
439
|
this.removeMeshEventListeners(n), n.removeFromParent(), this.publishInteraction("idle"), this.cursor.removeDeleteButton(), this.five.needsRender = !0;
|
|
438
440
|
}, l = ((s = this.five.getElement()) == null ? void 0 : s.parentElement) || document.body;
|
|
439
441
|
this.cursor.showDeleteButton({
|
|
440
442
|
clientX: i,
|
|
441
443
|
clientY: r,
|
|
442
444
|
container: l,
|
|
443
|
-
onClick:
|
|
445
|
+
onClick: a
|
|
444
446
|
}), this.five.once("cameraUpdate", () => {
|
|
445
447
|
n.unselect(), this.cursor.removeDeleteButton();
|
|
446
448
|
});
|
|
@@ -513,8 +515,8 @@ class _t extends O {
|
|
|
513
515
|
return;
|
|
514
516
|
const t = this.five.getElement().getBoundingClientRect();
|
|
515
517
|
let n, i = e.pointerType === "touch" ? 30 : 12;
|
|
516
|
-
for (const
|
|
517
|
-
for (const l of
|
|
518
|
+
for (const a of this.group.children)
|
|
519
|
+
for (const l of a.line.pointMeshes) {
|
|
518
520
|
if (!G(l))
|
|
519
521
|
continue;
|
|
520
522
|
const s = l.getWorldPosition(new u.Vector3()).project(this.five.camera);
|
|
@@ -529,27 +531,27 @@ class _t extends O {
|
|
|
529
531
|
var n;
|
|
530
532
|
const t = this.five.getElement();
|
|
531
533
|
t !== this.endpointPointerElement && ((n = this.endpointPointerElement) == null || n.removeEventListener("pointerdown", this.onEndpointPointerDown, !0), this.endpointPointerElement = t, t == null || t.addEventListener("pointerdown", this.onEndpointPointerDown, !0)), e.line.pointMeshes.forEach((i, r) => {
|
|
532
|
-
const
|
|
534
|
+
const a = e.isPolygon && r >= e.points.length - 1 ? 0 : r;
|
|
533
535
|
let l = !1, s;
|
|
534
536
|
const d = (g) => {
|
|
535
|
-
var
|
|
536
|
-
(
|
|
537
|
+
var _;
|
|
538
|
+
(_ = this.cleanupPendingPress) == null || _.call(this), l = !1;
|
|
537
539
|
const M = { x: g.clientX, y: g.clientY };
|
|
538
540
|
this.showLongPressIndicator(i, M);
|
|
539
541
|
const P = (h) => {
|
|
540
542
|
h.pointerId === g.pointerId && (!(h.buttons & 1) || Math.hypot(h.clientX - M.x, h.clientY - M.y) > 10) && (s == null || s());
|
|
541
|
-
}, L = (h) => {
|
|
542
|
-
h.pointerId === g.pointerId && (s == null || s());
|
|
543
543
|
}, b = (h) => {
|
|
544
|
+
h.pointerId === g.pointerId && (s == null || s());
|
|
545
|
+
}, L = (h) => {
|
|
544
546
|
h.pointerId !== g.pointerId && (s == null || s());
|
|
545
547
|
}, R = (h) => {
|
|
546
548
|
h.key === "Escape" && (s == null || s());
|
|
547
|
-
},
|
|
548
|
-
s == null || s(!1), l = !0, this.startRepositioning(e,
|
|
549
|
+
}, I = () => s == null ? void 0 : s(), C = setTimeout(() => {
|
|
550
|
+
s == null || s(!1), l = !0, this.startRepositioning(e, a, !0, M, g);
|
|
549
551
|
}, 500);
|
|
550
552
|
s = (h = !0) => {
|
|
551
|
-
clearTimeout(
|
|
552
|
-
}, this.cleanupPendingPress = s, document.addEventListener("pointermove", P, !0), document.addEventListener("pointerup",
|
|
553
|
+
clearTimeout(C), document.removeEventListener("pointermove", P, !0), document.removeEventListener("pointerup", b, !0), document.removeEventListener("pointercancel", b, !0), document.removeEventListener("pointerdown", L, !0), document.removeEventListener("keydown", R), window.removeEventListener("blur", I), this.hideLongPressIndicator(), this.cleanupPendingPress === s && (this.cleanupPendingPress = void 0, h && this.publishInteraction("idle"));
|
|
554
|
+
}, this.cleanupPendingPress = s, document.addEventListener("pointermove", P, !0), document.addEventListener("pointerup", b, !0), document.addEventListener("pointercancel", b, !0), document.addEventListener("pointerdown", L, !0), document.addEventListener("keydown", R), window.addEventListener("blur", I), this.publishInteraction("holding");
|
|
553
555
|
}, v = (g) => {
|
|
554
556
|
if (l)
|
|
555
557
|
return g.stopPropagation(), l = !1, !1;
|
|
@@ -580,11 +582,11 @@ class _t extends O {
|
|
|
580
582
|
measureMesh: e,
|
|
581
583
|
pointIndex: t,
|
|
582
584
|
originalOpacity: e.line.lineOpacity,
|
|
583
|
-
originalMeshState: e.points.map((
|
|
585
|
+
originalMeshState: e.points.map((a) => a.clone()),
|
|
584
586
|
isDragMode: n,
|
|
585
587
|
mouseDownPosition: i || void 0,
|
|
586
588
|
hasMoved: !1
|
|
587
|
-
}, this.applyRepositioningStyle(e, !0), this.five.on("wantsGesture", this.preventFiveGestures), n ? this.enableGlobalPointerTracking(r) : (this.pointSelector.actionIfNoIntersection = "virtualPoint", this.pointSelector.enable(), this.pointSelector.on("intersectionUpdate", this.onRepositioningMove), this.pointSelector.on("select", this.onRepositioningConfirm), this.pointSelector.on("disable", this.cancelRepositioning)), this.repositioningState && (
|
|
589
|
+
}, this.applyRepositioningStyle(e, !0), this.five.on("wantsGesture", this.preventFiveGestures), n ? this.enableGlobalPointerTracking(r) : (this.pointSelector.actionIfNoIntersection = "virtualPoint", this.pointSelector.enable(), this.pointSelector.on("intersectionUpdate", this.onRepositioningMove), this.pointSelector.on("select", this.onRepositioningConfirm), this.pointSelector.on("disable", this.cancelRepositioning)), this.repositioningState && (m("esc", this.cancelRepositioning), this.publishInteraction("editing")));
|
|
588
590
|
});
|
|
589
591
|
/**
|
|
590
592
|
* Helper method to safely update polygon points while maintaining closure
|
|
@@ -598,20 +600,20 @@ class _t extends O {
|
|
|
598
600
|
if (k.prototype.setPoints.call(e.line, t), n !== void 0 && e.line.pointMeshes) {
|
|
599
601
|
const r = t[n];
|
|
600
602
|
if (e.isPolygon && t.length > 3) {
|
|
601
|
-
const
|
|
603
|
+
const a = t.length - 1;
|
|
602
604
|
if (n === 0) {
|
|
603
|
-
const l = e.line.pointMeshes[0], s = e.line.pointMeshes[
|
|
605
|
+
const l = e.line.pointMeshes[0], s = e.line.pointMeshes[a];
|
|
604
606
|
l && l.position.copy(r), s && s.position.copy(r);
|
|
605
|
-
} else if (n ===
|
|
606
|
-
const l = e.line.pointMeshes[0], s = e.line.pointMeshes[
|
|
607
|
+
} else if (n === a) {
|
|
608
|
+
const l = e.line.pointMeshes[0], s = e.line.pointMeshes[a];
|
|
607
609
|
l && l.position.copy(r), s && s.position.copy(r);
|
|
608
610
|
} else {
|
|
609
611
|
const l = e.line.pointMeshes[n];
|
|
610
612
|
l && l.position.copy(r);
|
|
611
613
|
}
|
|
612
614
|
} else {
|
|
613
|
-
const
|
|
614
|
-
|
|
615
|
+
const a = e.line.pointMeshes[n];
|
|
616
|
+
a && a.position.copy(r);
|
|
615
617
|
}
|
|
616
618
|
}
|
|
617
619
|
e.isPolygon && e.polygon.setPoints(t);
|
|
@@ -703,11 +705,11 @@ class _t extends O {
|
|
|
703
705
|
});
|
|
704
706
|
}, r = (l) => {
|
|
705
707
|
l.pointerId === e.pointerId && (l.type === "pointerup" ? this.confirmRepositioningOnDragEnd() : this.cancelRepositioning());
|
|
706
|
-
},
|
|
708
|
+
}, a = (l) => {
|
|
707
709
|
l.pointerId !== e.pointerId && this.cancelRepositioning();
|
|
708
710
|
};
|
|
709
|
-
document.addEventListener("pointermove", i, { capture: !0, passive: !1 }), document.addEventListener("pointerup", r, !0), document.addEventListener("pointercancel", r, !0), document.addEventListener("pointerdown",
|
|
710
|
-
document.removeEventListener("pointermove", i, !0), document.removeEventListener("pointerup", r, !0), document.removeEventListener("pointercancel", r, !0), document.removeEventListener("pointerdown",
|
|
711
|
+
document.addEventListener("pointermove", i, { capture: !0, passive: !1 }), document.addEventListener("pointerup", r, !0), document.addEventListener("pointercancel", r, !0), document.addEventListener("pointerdown", a, !0), n == null || n.addEventListener("lostpointercapture", this.cancelRepositioning), window.addEventListener("blur", this.cancelRepositioning), this.cleanupRepositioningListeners = () => {
|
|
712
|
+
document.removeEventListener("pointermove", i, !0), document.removeEventListener("pointerup", r, !0), document.removeEventListener("pointercancel", r, !0), document.removeEventListener("pointerdown", a, !0), n == null || n.removeEventListener("lostpointercapture", this.cancelRepositioning), window.removeEventListener("blur", this.cancelRepositioning), n != null && n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId);
|
|
711
713
|
}, n == null || n.setPointerCapture(e.pointerId);
|
|
712
714
|
});
|
|
713
715
|
/**
|
|
@@ -737,7 +739,7 @@ class _t extends O {
|
|
|
737
739
|
if (t)
|
|
738
740
|
i.style.left = `${t.x}px`, i.style.top = `${t.y}px`, i.style.transform = "translate(-50%, -50%)";
|
|
739
741
|
else {
|
|
740
|
-
const
|
|
742
|
+
const a = e.getWorldPosition(new u.Vector3()).clone().project(this.five.camera), l = n.getBoundingClientRect(), s = (a.x + 1) * l.width / 2 + l.left, d = (-a.y + 1) * l.height / 2 + l.top;
|
|
741
743
|
i.style.left = `${s}px`, i.style.top = `${d}px`, i.style.transform = "translate(-50%, -50%)";
|
|
742
744
|
}
|
|
743
745
|
document.body.appendChild(i), this.longPressIndicator = i;
|
|
@@ -757,11 +759,11 @@ class _t extends O {
|
|
|
757
759
|
*/
|
|
758
760
|
o(this, "cleanupRepositioning", () => {
|
|
759
761
|
var e;
|
|
760
|
-
(e = this.cleanupRepositioningListeners) == null || e.call(this), this.cleanupRepositioningListeners = void 0, this.repositioningState && (this.repositioningState.isDragMode || (this.pointSelector.off("intersectionUpdate", this.onRepositioningMove), this.pointSelector.off("select", this.onRepositioningConfirm), this.pointSelector.off("disable", this.cancelRepositioning), this.pointSelector.disable())), this.five.off("wantsGesture", this.preventFiveGestures),
|
|
762
|
+
(e = this.cleanupRepositioningListeners) == null || e.call(this), this.cleanupRepositioningListeners = void 0, this.repositioningState && (this.repositioningState.isDragMode || (this.pointSelector.off("intersectionUpdate", this.onRepositioningMove), this.pointSelector.off("select", this.onRepositioningConfirm), this.pointSelector.off("disable", this.cancelRepositioning), this.pointSelector.disable())), this.five.off("wantsGesture", this.preventFiveGestures), m.unbind("esc", this.cancelRepositioning), this.repositioningState = null, this.five.needsRender = !0;
|
|
761
763
|
});
|
|
762
764
|
this.five = e;
|
|
763
765
|
const n = { unit: "m", lengthEnable: !0, precision: 2 };
|
|
764
|
-
this.config = t ? p(p({}, n), t) : n, this.group = new $(), this.group.name = "MeasureGroup", this.group.__five__ = this.five, this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange),
|
|
766
|
+
this.config = t ? p(p({}, n), t) : n, this.group = new $(), this.group.name = "MeasureGroup", this.group.__five__ = this.five, this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), m("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
|
|
765
767
|
}
|
|
766
768
|
get interactionState() {
|
|
767
769
|
var e, t;
|
|
@@ -773,7 +775,18 @@ class _t extends O {
|
|
|
773
775
|
};
|
|
774
776
|
}
|
|
775
777
|
get pointSelector() {
|
|
776
|
-
return this._pointSelector ? this._pointSelector : (this._pointSelector = this.createPointSelector(), this._pointSelector);
|
|
778
|
+
return this._pointSelector ? this._pointSelector : (this._pointSelector = this.createPointSelector(), this._pointSelector.pointSelectorHelper.setMagnifierEnabled(this._magnifierEnabled), this._pointSelector);
|
|
779
|
+
}
|
|
780
|
+
get magnifierEnabled() {
|
|
781
|
+
return this._magnifierEnabled;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* 开关放大镜(用户可见的「开启放大器」)。
|
|
785
|
+
* 运行时生效,也在下次创建选点器时沿用,不需要重新开始测量。
|
|
786
|
+
*/
|
|
787
|
+
setMagnifierEnabled(e) {
|
|
788
|
+
var t;
|
|
789
|
+
this._magnifierEnabled = e, (t = this._pointSelector) == null || t.pointSelectorHelper.setMagnifierEnabled(e);
|
|
777
790
|
}
|
|
778
791
|
createPointSelector() {
|
|
779
792
|
return new N(this.five, { mode: "cursor", helper: { pointHelper: "highlight" }, skipPanorama: !0 });
|
|
@@ -793,5 +806,5 @@ class _t extends O {
|
|
|
793
806
|
}
|
|
794
807
|
}
|
|
795
808
|
export {
|
|
796
|
-
|
|
809
|
+
Ct as MeasureController
|
|
797
810
|
};
|
|
@@ -2,15 +2,15 @@ var l = Object.defineProperty, c = Object.defineProperties;
|
|
|
2
2
|
var g = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var d = Object.getOwnPropertySymbols;
|
|
4
4
|
var m = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var o = (
|
|
5
|
+
var o = (s, a, t) => a in s ? l(s, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[a] = t, u = (s, a) => {
|
|
6
6
|
for (var t in a || (a = {}))
|
|
7
|
-
m.call(a, t) && o(
|
|
7
|
+
m.call(a, t) && o(s, t, a[t]);
|
|
8
8
|
if (d)
|
|
9
9
|
for (var t of d(a))
|
|
10
|
-
M.call(a, t) && o(
|
|
11
|
-
return
|
|
12
|
-
}, p = (
|
|
13
|
-
var
|
|
10
|
+
M.call(a, t) && o(s, t, a[t]);
|
|
11
|
+
return s;
|
|
12
|
+
}, p = (s, a) => c(s, g(a));
|
|
13
|
+
var r = (s, a, t) => (o(s, typeof a != "symbol" ? a + "" : a, t), t);
|
|
14
14
|
import { MeasurePointSelector as v } from "./PointSelector.js";
|
|
15
15
|
import { MeasureController as f } from "../MeasurePlugin/Controller.js";
|
|
16
16
|
import { isTouchDevice as S } from "../shared-utils/isTouchDevice.js";
|
|
@@ -25,14 +25,14 @@ class D extends f {
|
|
|
25
25
|
constructor(t, e) {
|
|
26
26
|
super(t, e);
|
|
27
27
|
/** 最近一次查询到的候选边数量,示例页 / 调试用 */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
r(this, "lastEdgeSnapEdgeCount", 0);
|
|
29
|
+
r(this, "v2Five");
|
|
30
|
+
r(this, "v2Magnifier");
|
|
31
|
+
r(this, "v2Attached", !1);
|
|
32
|
+
r(this, "edgeSnapOptions");
|
|
33
|
+
r(this, "edgeSnapCache", new k());
|
|
34
|
+
r(this, "quickMeasureEnabled");
|
|
35
|
+
r(this, "quickMeasure");
|
|
36
36
|
this.v2Five = t, this.edgeSnapOptions = w(e == null ? void 0 : e.edgeSnap), this.quickMeasureEnabled = (e == null ? void 0 : e.quickMeasure) !== !1;
|
|
37
37
|
const i = this.measure;
|
|
38
38
|
this.measure = () => {
|
|
@@ -84,7 +84,7 @@ class D extends f {
|
|
|
84
84
|
// 远点自动提高光学倍率,放大镜里看到的物体大小基本恒定
|
|
85
85
|
adaptiveReadWindow: !0
|
|
86
86
|
}));
|
|
87
|
-
e.containerDom && i.appendTo(e.containerDom), e.state.enabled && i.enable(), t.magnifier = i, e.dispose(), this.v2Magnifier = i;
|
|
87
|
+
i.setUserEnabled(this.magnifierEnabled), e.containerDom && i.appendTo(e.containerDom), e.state.enabled && i.enable(), t.magnifier = i, e.dispose(), this.v2Magnifier = i;
|
|
88
88
|
}
|
|
89
89
|
attachPointHelper(t) {
|
|
90
90
|
const e = t.pointHelper, i = new P(this.v2Five);
|
|
@@ -50,6 +50,8 @@ export default class BaseController {
|
|
|
50
50
|
protected get currentMeasureType(): MeasureType;
|
|
51
51
|
private getMeasureType;
|
|
52
52
|
constructor(params: ControllerParams);
|
|
53
|
+
/** 同步当前模式使用的放大镜用户开关。 */
|
|
54
|
+
setMagnifierEnabled(enabled: boolean): void;
|
|
53
55
|
updateDistanceUI: () => void;
|
|
54
56
|
updateAreaUI: () => void;
|
|
55
57
|
protected removeLine(line: Line): void;
|
|
@@ -65,6 +65,10 @@ class V {
|
|
|
65
65
|
get currentMeasureType() {
|
|
66
66
|
return this.getMeasureType();
|
|
67
67
|
}
|
|
68
|
+
/** 同步当前模式使用的放大镜用户开关。 */
|
|
69
|
+
setMagnifierEnabled(e) {
|
|
70
|
+
this.magnifier.setUserEnabled(e);
|
|
71
|
+
}
|
|
68
72
|
removeLine(e) {
|
|
69
73
|
this.group.remove(e.mesh, e.lightMesh), e.distanceItem.remove(), this.five.needsRender = !0;
|
|
70
74
|
}
|
|
@@ -18,6 +18,7 @@ export default class EditController extends BaseController {
|
|
|
18
18
|
private onIntersectionUpdate;
|
|
19
19
|
constructor(params: ControllerParams);
|
|
20
20
|
protected createPointSelector(_params: ControllerParams): PointSelector;
|
|
21
|
+
setMagnifierEnabled(enabled: boolean): void;
|
|
21
22
|
protected disposeMagnifier(): void;
|
|
22
23
|
dispose(): void;
|
|
23
24
|
getEditingLines(): Line[];
|
|
@@ -12,17 +12,17 @@ var w = (d, a, e) => a in d ? x(d, a, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, M = (d, a) => j(d, G(a));
|
|
13
13
|
var o = (d, a, e) => (w(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
import $ from "../Model/line.js";
|
|
15
|
-
import
|
|
15
|
+
import E from "../Model/point.js";
|
|
16
16
|
import { throttle as q } from "../../shared-utils/throttle.js";
|
|
17
17
|
import z from "./BaseController.js";
|
|
18
|
-
import { Polyline as
|
|
19
|
-
import
|
|
18
|
+
import { Polyline as I } from "../Model/polyline.js";
|
|
19
|
+
import b from "../Model/area.js";
|
|
20
20
|
import { isIntersecting as H } from "../utils/isIntersecting.js";
|
|
21
21
|
import { PointSelector as F } from "../../shared-utils/three/PointSelector/index.js";
|
|
22
22
|
import N from "../Modules/DeleteDom/index.js";
|
|
23
23
|
import * as f from "three";
|
|
24
24
|
import { Vector2 as T } from "three";
|
|
25
|
-
import
|
|
25
|
+
import R from "../utils/isNDCPointInScreen.js";
|
|
26
26
|
import { closestPointOnLine as _ } from "../utils/math.js";
|
|
27
27
|
import { getFiveModel as Q } from "../../shared-utils/five/getFiveModel.js";
|
|
28
28
|
import "../../shared-utils/tag.js";
|
|
@@ -136,7 +136,7 @@ class Wt extends z {
|
|
|
136
136
|
this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.remove(), this.five.needsRender = !0, this.hook.emit("revoke", { isEmpty: !0 });
|
|
137
137
|
return;
|
|
138
138
|
} else
|
|
139
|
-
this.lastPoint = new
|
|
139
|
+
this.lastPoint = new E(this.area.points[this.area.points.length - 1]), this.updateDashed();
|
|
140
140
|
this.five.needsRender = !0;
|
|
141
141
|
}
|
|
142
142
|
});
|
|
@@ -189,7 +189,7 @@ class Wt extends z {
|
|
|
189
189
|
})();
|
|
190
190
|
if (!e)
|
|
191
191
|
return;
|
|
192
|
-
const t = new
|
|
192
|
+
const t = new E(e), i = this.lastPoint;
|
|
193
193
|
if (i != null && i.position && t.position.equals(i == null ? void 0 : i.position))
|
|
194
194
|
return;
|
|
195
195
|
this.lastPoint = t;
|
|
@@ -291,7 +291,7 @@ class Wt extends z {
|
|
|
291
291
|
return;
|
|
292
292
|
const l = this.five.camera, c = n.point.clone().project(l), u = this.container.clientWidth, y = this.container.clientHeight, s = new T(c.x * u, c.y * y), h = this.model.getAllLines().map((r) => {
|
|
293
293
|
const [p, A] = r.points, v = p.position.clone().project(l), C = A.position.clone().project(l);
|
|
294
|
-
if (!
|
|
294
|
+
if (!R(v) && !R(C))
|
|
295
295
|
return null;
|
|
296
296
|
const V = new T(v.x * u, v.y * y), W = new T(C.x * u, C.y * y);
|
|
297
297
|
return { id: r.id, points: [V, W] };
|
|
@@ -335,7 +335,7 @@ class Wt extends z {
|
|
|
335
335
|
const i = t.type === "area", n = Array.isArray(t) && ((l = t[0]) == null ? void 0 : l.type) === "line";
|
|
336
336
|
i && this.unHighlightArea(t), n && this.unHighlightLines(t);
|
|
337
337
|
}
|
|
338
|
-
}).appendTo(this.container), this.pointSelector = this.createPointSelector(e), this.pointSelector.enable(), this.polyline = new
|
|
338
|
+
}).appendTo(this.container), this.pointSelector = this.createPointSelector(e), this.pointSelector.enable(), this.polyline = new I({ model: this.model }), this.area = new b(void 0, {
|
|
339
339
|
five: this.five,
|
|
340
340
|
model: this.model,
|
|
341
341
|
meshContainer: this.group,
|
|
@@ -354,6 +354,9 @@ class Wt extends z {
|
|
|
354
354
|
helper: k({ magnifierParams: this.magnifierParams, container: this.container }, this.pointSelectorConfig.helper)
|
|
355
355
|
}));
|
|
356
356
|
}
|
|
357
|
+
setMagnifierEnabled(e) {
|
|
358
|
+
super.setMagnifierEnabled(e), this.pointSelector.pointSelectorHelper.setMagnifierEnabled(e);
|
|
359
|
+
}
|
|
357
360
|
disposeMagnifier() {
|
|
358
361
|
this.magnifier.dispose();
|
|
359
362
|
}
|
|
@@ -369,9 +372,9 @@ class Wt extends z {
|
|
|
369
372
|
this.onSelect();
|
|
370
373
|
}
|
|
371
374
|
complete() {
|
|
372
|
-
this.hook.emit("complete"), this.currentMeasureType === "area" ? (this.area.points.length < 3 ? this.deleteArea(this.area) : (this.area.showArea(), this.area.complete(), this.area.hook.on("selected", this.chooseArea)), this.area = new
|
|
375
|
+
this.hook.emit("complete"), this.currentMeasureType === "area" ? (this.area.points.length < 3 ? this.deleteArea(this.area) : (this.area.showArea(), this.area.complete(), this.area.hook.on("selected", this.chooseArea)), this.area = new b(void 0, { five: this.five, model: this.model, meshContainer: this.group, domContainer: this.container }), this.model.addArea(this.area)) : this.currentMeasureType === "line" && (this.polyline.lines.forEach((e) => {
|
|
373
376
|
e.hook.on("selected", this.chooseLine), e.distanceItem.setCanSelect(!0);
|
|
374
|
-
}), this.polyline = new
|
|
377
|
+
}), this.polyline = new I({ model: this.model }), this.model.addPolyline(this.polyline)), this.pointSelector.setAdherePoints(null), this.dashed.hide(), this.perpendicularDashed.hide(), this.lastPoint = void 0;
|
|
375
378
|
}
|
|
376
379
|
highlightArea(e) {
|
|
377
380
|
this.highlightLines(e.polyline.lines), this.five.needsRender = !0;
|
|
@@ -36,6 +36,14 @@ export default class PanoMeasureController extends BasePlugin.Controller<BasePlu
|
|
|
36
36
|
hook: Subscribe<PanoMeasurePluginEvent>;
|
|
37
37
|
magnifier: Magnifier;
|
|
38
38
|
controller: WatchController | EditController | MixedController | ViewController | null;
|
|
39
|
+
/** 放大镜用户开关,默认开启;关闭后选点流程不变,只是不显示放大镜 */
|
|
40
|
+
private _magnifierEnabled;
|
|
41
|
+
get magnifierEnabled(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 开关放大镜(用户可见的「开启放大器」)。
|
|
44
|
+
* 运行时生效,不影响选点与测量流程。
|
|
45
|
+
*/
|
|
46
|
+
setMagnifierEnabled(enabled: boolean): void;
|
|
39
47
|
/** 允许的测量类型 */
|
|
40
48
|
allowMeasureType: Array<MeasureType>;
|
|
41
49
|
/** 当前的测量类型 */
|