@realsee/dnalogel 3.81.27 → 3.81.28
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 -0
- package/dist/MeasurePluginV2/Magnifier.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +5 -2
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -0
- package/dist/PanoMeasurePluginV2/Controller.d.ts +8 -1
- package/dist/PanoMeasurePluginV2/PointSelector.d.ts +2 -1
- package/dist/PanoMeasurePluginV2/ShortcutKeyController.d.ts +5 -0
- package/dist/PanoMeasurePluginV2/controllers.d.ts +28 -2
- package/dist/index.cjs.js +99 -99
- package/dist/index.js +7383 -7113
- package/dist/index.umd.js +96 -96
- package/dist/shared-utils/three/EndpointPointerGesture.d.ts +31 -0
- package/dist/shared-utils/three/measureDrawing.d.ts +4 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +127 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1493 -0
- package/docs/classes/AnimationScriptAdapterSafetyError.html +4 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +59 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +71 -0
- package/docs/classes/CSS3DRender.html +100 -0
- package/docs/classes/DigitalHuman.html +43 -0
- package/docs/classes/DigitalPerformanceV2.DigitalPerformanceNameplate.html +25 -0
- package/docs/classes/DigitalPerformanceV2.DigitalPerformanceV2PluginController.html +178 -0
- package/docs/classes/DigitalPlayground.html +25 -0
- package/docs/classes/DigitalStateMachine.html +3 -0
- package/docs/classes/FireControl.html +56 -0
- package/docs/classes/FireScenePlayer.html +10 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +72 -0
- package/docs/classes/MeasureV2.EdgeSnapCache.html +8 -0
- package/docs/classes/MeasureV2.MeasureControllerV2.html +81 -0
- package/docs/classes/MeasureV2.MeasureMagnifier.html +54 -0
- package/docs/classes/ModelMakerPluginInstance.html +106 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +52 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +52 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +53 -0
- package/docs/classes/ModelRoomLabelController.html +19 -0
- package/docs/classes/MoveController.html +45 -0
- package/docs/classes/Object3DHelperController.html +45 -0
- package/docs/classes/PaintBrush.html +15 -0
- package/docs/classes/PanoMeasureControllerV2.html +98 -0
- package/docs/classes/PanoMeasurePluginLine.html +26 -0
- package/docs/classes/PanoMeasurePluginModel.html +23 -0
- package/docs/classes/PanoMeasurePluginPoint.html +7 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -0
- package/docs/classes/PanoTagPluginController.html +129 -0
- package/docs/classes/Sculpt.html +79 -0
- package/docs/classes/Util.BetterTween.html +6 -0
- package/docs/classes/Util.FiveDomEvents.html +13 -0
- package/docs/classes/Util.FivePuppet.html +20 -0
- package/docs/classes/Util.Interval.html +11 -0
- package/docs/classes/Util.LegacyPointHelper.html +7 -0
- package/docs/classes/Util.LightTag.html +47 -0
- package/docs/classes/Util.LineSegments.html +4 -0
- package/docs/classes/Util.Magnifier.html +42 -0
- package/docs/classes/Util.Object3D.html +8 -0
- package/docs/classes/Util.PointDomHelper.html +8 -0
- package/docs/classes/Util.PointHelper.html +10 -0
- package/docs/classes/Util.PointSelector.html +71 -0
- package/docs/classes/Util.PointSelectorHelper.html +17 -0
- package/docs/classes/Util.Rectangle.html +12 -0
- package/docs/classes/Util.sculpt.BaseEditor.html +17 -0
- package/docs/classes/Util.sculpt.BoxMesh.html +48 -0
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.CircleMesh.html +26 -0
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +26 -0
- package/docs/classes/Util.sculpt.CylinderMesh.html +25 -0
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.LineMesh.html +34 -0
- package/docs/classes/Util.sculpt.PointMesh.html +24 -0
- package/docs/classes/Util.sculpt.PolygonMesh.html +40 -0
- package/docs/classes/Util.sculpt.PrismMesh.html +48 -0
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.RectangleMesh.html +41 -0
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +44 -0
- package/docs/classes/WalkController.html +42 -0
- package/docs/enums/CameraMovementEffect.html +4 -0
- package/docs/enums/ContentType.html +36 -0
- package/docs/enums/DIRECTION.html +5 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/DimensionType.html +4 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/PaintBrushTypeEnum.html +4 -0
- package/docs/enums/PointType.html +4 -0
- package/docs/enums/Rotation.html +5 -0
- package/docs/functions/AreaMakerPlugin.html +1 -0
- package/docs/functions/CSS3DRenderPlugin.html +1 -0
- package/docs/functions/CameraMovementPlugin.html +2 -0
- package/docs/functions/CruisePlugin.html +1 -0
- package/docs/functions/CurrentPanoImagePlugin.html +1 -0
- package/docs/functions/DigitalPerformancePlugin.html +1 -0
- package/docs/functions/DigitalPerformanceV2.DigitalPerformanceV2Plugin.html +1 -0
- package/docs/functions/DigitalPerformanceV2.normalizeDigitalPerformanceName.html +2 -0
- package/docs/functions/FloorplanGuidePlugin.html +1 -0
- package/docs/functions/GuideLinePlugin.html +1 -0
- package/docs/functions/ItemLabelPlugin.html +1 -0
- package/docs/functions/MapviewFloorplanPlugin.html +1 -0
- package/docs/functions/MeasurePlugin.html +1 -0
- package/docs/functions/MeasureV2.MeasurePluginV2.html +1 -0
- package/docs/functions/MeasureV2.collectNearbyEdges.html +5 -0
- package/docs/functions/MeasureV2.drawMeasureOverlay.html +3 -0
- package/docs/functions/MeasureV2.getWorldNormal.html +6 -0
- package/docs/functions/MeasureV2.validatePolygon.html +1 -0
- package/docs/functions/ModelChassisCompassPlugin.html +2 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -0
- package/docs/functions/ModelFloorplanPlugin.html +1 -0
- package/docs/functions/ModelItemLabelPlugin.html +1 -0
- package/docs/functions/ModelMakerPlugin.html +1 -0
- package/docs/functions/ModelRoomLabelPlugin.html +1 -0
- package/docs/functions/ModelTVVideoPlugin.html +1 -0
- package/docs/functions/ModelViewPlugin.html +2 -0
- package/docs/functions/MovePlugin.html +1 -0
- package/docs/functions/Object3DHelperPlugin.html +1 -0
- package/docs/functions/PanoCompassPlugin.html +1 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -0
- package/docs/functions/PanoDoorLabelPlugin.html +1 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -0
- package/docs/functions/PanoMeasurePlugin.html +1 -0
- package/docs/functions/PanoMeasurePluginV2.html +1 -0
- package/docs/functions/PanoRulerPlugin.html +2 -0
- package/docs/functions/PanoRulerProPlugin.html +2 -0
- package/docs/functions/PanoSpatialTagPlugin.html +2 -0
- package/docs/functions/PanoTagPlugin.html +1 -0
- package/docs/functions/PanoVideoPlugin.html +10 -0
- package/docs/functions/PipelinePlugin.html +1 -0
- package/docs/functions/SculptPlugin.html +2 -0
- package/docs/functions/SculptPluginForFive.html +2 -0
- package/docs/functions/TopviewFloorplanPlugin.html +1 -0
- package/docs/functions/Util.awaitNextFrame.html +1 -0
- package/docs/functions/Util.blink.html +13 -0
- package/docs/functions/Util.blinkWithPreset.html +6 -0
- package/docs/functions/Util.bounding.html +1 -0
- package/docs/functions/Util.boundingBox.html +1 -0
- package/docs/functions/Util.boundingSphere.html +1 -0
- package/docs/functions/Util.boxVertex.html +7 -0
- package/docs/functions/Util.boxVertexes.html +1 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -0
- package/docs/functions/Util.cleanup.html +3 -0
- package/docs/functions/Util.convexHull.html +2 -0
- package/docs/functions/Util.equal.html +5 -0
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -0
- package/docs/functions/Util.generatePolygonGeometry.html +2 -0
- package/docs/functions/Util.getCoordsFromClient.html +1 -0
- package/docs/functions/Util.getCoordsFromElement.html +1 -0
- package/docs/functions/Util.getFrameTime.html +3 -0
- package/docs/functions/Util.getGeometryArea.html +1 -0
- package/docs/functions/Util.getGeometryInfo.html +1 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -0
- package/docs/functions/Util.initialCSS3DRender.html +1 -0
- package/docs/functions/Util.inside.html +1 -0
- package/docs/functions/Util.isModelLike.html +1 -0
- package/docs/functions/Util.isNil.html +2 -0
- package/docs/functions/Util.isPanoramaLike.html +1 -0
- package/docs/functions/Util.lookObject.html +7 -0
- package/docs/functions/Util.lookPoint.html +5 -0
- package/docs/functions/Util.nextFrame.html +1 -0
- package/docs/functions/Util.notNil.html +2 -0
- package/docs/functions/Util.reblink.html +13 -0
- package/docs/functions/Util.replaceStaticPrefix.html +8 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -0
- package/docs/functions/Util.sculpt.createBox.html +1 -0
- package/docs/functions/Util.sculpt.createCircle.html +1 -0
- package/docs/functions/Util.sculpt.createCylinder.html +1 -0
- package/docs/functions/Util.sculpt.createLine.html +2 -0
- package/docs/functions/Util.sculpt.createPoint.html +1 -0
- package/docs/functions/Util.sculpt.createPolygon.html +1 -0
- package/docs/functions/Util.sculpt.createPrism.html +1 -0
- package/docs/functions/Util.sculpt.createRectangle.html +2 -0
- package/docs/functions/Util.sculpt.transformUnit.html +4 -0
- package/docs/functions/Util.sculpt.transformUnitSquare.html +1 -0
- package/docs/functions/Util.tag.html +1 -0
- package/docs/functions/Util.triangleArea.html +2 -0
- package/docs/functions/Util.triangleCenter.html +2 -0
- package/docs/functions/Util.tweenProgress.html +1 -0
- package/docs/functions/Util.uuid.html +2 -0
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -0
- package/docs/functions/Util.worldBounding.html +1 -0
- package/docs/functions/Util.worldBoundingBox.html +1 -0
- package/docs/functions/Util.worldBoundingSphere.html +1 -0
- package/docs/functions/classifyMovementTrack.html +1 -0
- package/docs/functions/createPolyline.html +2 -0
- package/docs/functions/getAreaBox3.html +2 -0
- package/docs/functions/getAreaVertices.html +2 -0
- package/docs/functions/getEffectivePointActionDuration.html +1 -0
- package/docs/functions/getEntryArea.html +2 -0
- package/docs/functions/getMovementActionDuration.html +1 -0
- package/docs/functions/hasMovementV2Signal.html +1 -0
- package/docs/functions/isConverterSafeMovementMatrix.html +1 -0
- package/docs/functions/pluginFlag.html +1 -0
- package/docs/functions/transformAnimationDetailToDigitalScript.html +3 -0
- package/docs/functions/transformScriptData.html +4 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +81 -0
- package/docs/interfaces/AnimationScriptAdapterOptions.html +6 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +8 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +25 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +13 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +8 -0
- package/docs/interfaces/BoxAnimationConfig.html +6 -0
- package/docs/interfaces/BoxPosition.html +8 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +9 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +11 -0
- package/docs/interfaces/ChapterLocation.html +4 -0
- package/docs/interfaces/ChapterTimeInfo.html +7 -0
- package/docs/interfaces/ContentTypeMapInterface.html +83 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +8 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +8 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -0
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +6 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +16 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +19 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +20 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +14 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -0
- package/docs/interfaces/DigitalCameraKeyframe.html +4 -0
- package/docs/interfaces/DigitalCameraPlayer.html +4 -0
- package/docs/interfaces/DigitalCameraState.html +4 -0
- package/docs/interfaces/DigitalChapter.html +3 -0
- package/docs/interfaces/DigitalDataPlayer.html +4 -0
- package/docs/interfaces/DigitalDataState.html +4 -0
- package/docs/interfaces/DigitalEffectKeyframe.html +4 -0
- package/docs/interfaces/DigitalEffectState.html +8 -0
- package/docs/interfaces/DigitalItemKeyframe.html +6 -0
- package/docs/interfaces/DigitalItemState.html +7 -0
- package/docs/interfaces/DigitalModelKeyframe.html +9 -0
- package/docs/interfaces/DigitalModelPlayer.html +10 -0
- package/docs/interfaces/DigitalModelPlayerEffect.html +4 -0
- package/docs/interfaces/DigitalModelPlayerItem.html +6 -0
- package/docs/interfaces/DigitalModelState.html +8 -0
- package/docs/interfaces/DigitalPerformancePluginConfig.html +9 -0
- package/docs/interfaces/DigitalPerformanceV2.CameraState.html +13 -0
- package/docs/interfaces/DigitalPerformanceV2.DigitalCameraKeyframe.html +23 -0
- package/docs/interfaces/DigitalPerformanceV2.DigitalCameraPlayer.html +7 -0
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceNameplateBinding.html +5 -0
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceNameplateOptions.html +22 -0
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceNameplateRenderContext.html +5 -0
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceV2PluginConfig.html +15 -0
- package/docs/interfaces/DigitalPerformanceV2.GroupChapterTimeInfo.html +13 -0
- package/docs/interfaces/DigitalPerformanceV2.GroupProgress.html +18 -0
- package/docs/interfaces/DigitalPerformanceV2.V2Progress.html +10 -0
- package/docs/interfaces/DigitalScript.html +5 -0
- package/docs/interfaces/DigitalSubTitleKeyframe.html +7 -0
- package/docs/interfaces/DigitalSubTitlePlayer.html +4 -0
- package/docs/interfaces/DigitalSubTitleState.html +6 -0
- package/docs/interfaces/ExtendedAnimationConfig.html +5 -0
- package/docs/interfaces/FireArea.html +5 -0
- package/docs/interfaces/FireModel.html +9 -0
- package/docs/interfaces/FireSceneConfig.html +9 -0
- package/docs/interfaces/FireSequencePlayerOptions.html +4 -0
- package/docs/interfaces/FireSequenceStep.html +5 -0
- package/docs/interfaces/FireVector3.html +4 -0
- package/docs/interfaces/FloorplanBounding.html +9 -0
- package/docs/interfaces/FloorplanData.html +8 -0
- package/docs/interfaces/FloorplanEntrance.html +14 -0
- package/docs/interfaces/FloorplanExtraObject.html +9 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +5 -0
- package/docs/interfaces/FloorplanFloorData.html +9 -0
- package/docs/interfaces/FloorplanImagePosition.html +4 -0
- package/docs/interfaces/FloorplanObserver.html +9 -0
- package/docs/interfaces/FloorplanOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanPosition.html +4 -0
- package/docs/interfaces/FloorplanRoomItem.html +24 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -0
- package/docs/interfaces/FloorplanServerBounding.html +9 -0
- package/docs/interfaces/FloorplanServerComputedData.html +6 -0
- package/docs/interfaces/FloorplanServerData.html +5 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +6 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -0
- package/docs/interfaces/FloorplanServerEntrance.html +14 -0
- package/docs/interfaces/FloorplanServerFloorData.html +8 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -0
- package/docs/interfaces/FloorplanServerObserver.html +9 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +7 -0
- package/docs/interfaces/FloorplanServerPosition.html +4 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +27 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -0
- package/docs/interfaces/FloorplanServerStyledFloorplan.html +3 -0
- package/docs/interfaces/FloorplanServerStyledImage.html +6 -0
- package/docs/interfaces/GlobalProgress.html +7 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +7 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -0
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +5 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +32 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +42 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +57 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +13 -0
- package/docs/interfaces/HelperOffset.html +4 -0
- package/docs/interfaces/ImagePlaneGroup.html +3 -0
- package/docs/interfaces/ItemLabelPluginData.html +2 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +5 -0
- package/docs/interfaces/LegacyScriptTransformer.html +2 -0
- package/docs/interfaces/MeasureV2.EdgeSnapOptions.html +19 -0
- package/docs/interfaces/MeasureV2.MagnifierViewport.html +20 -0
- package/docs/interfaces/MeasureV2.MeasureMagnifierOptions.html +28 -0
- package/docs/interfaces/MeasureV2.ResolvedEdgeSnapOptions.html +11 -0
- package/docs/interfaces/MinMax.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +17 -0
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +18 -0
- package/docs/interfaces/ModelMakerPluginType.ModelMakerPluginConfig.html +19 -0
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +23 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +11 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +8 -0
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +11 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +5 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -0
- package/docs/interfaces/ModelViewPluginExportType.html +8 -0
- package/docs/interfaces/Object3DHelperState.html +4 -0
- package/docs/interfaces/ObjectHelperControllers.html +5 -0
- package/docs/interfaces/PaintBrushAction.html +14 -0
- package/docs/interfaces/PaintBrushConfigs.html +8 -0
- package/docs/interfaces/PaintBrushState.html +6 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +16 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +21 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -0
- package/docs/interfaces/PanoMeasurePluginV2Data.html +2 -0
- package/docs/interfaces/PanoMeasurePluginV2ServerData.html +2 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +6 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +5 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -0
- package/docs/interfaces/PanoRulerProPluginState.html +4 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +6 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +14 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -0
- package/docs/interfaces/PlaybackController.html +4 -0
- package/docs/interfaces/PlaybackManager.html +2 -0
- package/docs/interfaces/PlaybackSession.html +5 -0
- package/docs/interfaces/PluginEventMap.html +16 -0
- package/docs/interfaces/Point.html +4 -0
- package/docs/interfaces/ProgressBarEvents.html +7 -0
- package/docs/interfaces/Room.html +5 -0
- package/docs/interfaces/RoomInfo.html +3 -0
- package/docs/interfaces/RoomLabel.html +16 -0
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/interfaces/Scissor.html +13 -0
- package/docs/interfaces/SculptConfig.html +19 -0
- package/docs/interfaces/State.html +7 -0
- package/docs/interfaces/StyledFloorplan.html +3 -0
- package/docs/interfaces/StyledFloorplanImage.html +6 -0
- package/docs/interfaces/StyledFloorplanRoomLabel.html +8 -0
- package/docs/interfaces/TagCacheInterface.html +9 -0
- package/docs/interfaces/TagConfig.html +189 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -0
- package/docs/interfaces/TagIconAnimationConfig.html +7 -0
- package/docs/interfaces/TagIconUrl.html +22 -0
- package/docs/interfaces/TagObjectGroup.html +3 -0
- package/docs/interfaces/TagState.html +3 -0
- package/docs/interfaces/TagStyle.html +17 -0
- package/docs/interfaces/Tags.html +8 -0
- package/docs/interfaces/TemporaryState.html +2 -0
- package/docs/interfaces/TraceManager.html +6 -0
- package/docs/interfaces/TracePoint.html +3 -0
- package/docs/interfaces/Util.AdaptiveReadWindowOptions.html +10 -0
- package/docs/interfaces/Util.AnimeInstance.html +14 -0
- package/docs/interfaces/Util.BlinkAnimeOptions.html +21 -0
- package/docs/interfaces/Util.EventHandlerConfig.html +21 -0
- package/docs/interfaces/Util.FiveDomEvent.html +7 -0
- package/docs/interfaces/Util.FiveDomEventMap.html +20 -0
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.MagnifierParameter.html +22 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.ObjectInitialState.html +9 -0
- package/docs/interfaces/Util.PointIntersection.html +21 -0
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +6 -0
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +27 -0
- package/docs/modules/AreaMakerPluginType.html +17 -0
- package/docs/modules/CruisePluginTypes.html +14 -0
- package/docs/modules/CurrentPanoImagePluginType.html +6 -0
- package/docs/modules/DigitalPerformanceV2.html +22 -0
- package/docs/modules/GuideLineItem.html +2 -0
- package/docs/modules/GuideLineModeItem.html +3 -0
- package/docs/modules/GuideLinePluginType.html +25 -0
- package/docs/modules/MeasureV2.html +22 -0
- package/docs/modules/ModelMakerPluginType.html +22 -0
- package/docs/modules/PanoVideoPluginType.html +8 -0
- package/docs/modules/SculptData.html +9 -0
- package/docs/modules/SculptType.html +2 -0
- package/docs/modules/Util.html +92 -0
- package/docs/modules/Util.sculpt.html +27 -0
- package/docs/modules.html +390 -0
- package/docs/types/AddObject3DHelperConfig.html +19 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -0
- package/docs/types/ArrayPosition.html +1 -0
- package/docs/types/AudioAppearance.html +1 -0
- package/docs/types/BoxTag.html +2 -0
- package/docs/types/CSS3DRenderExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -0
- package/docs/types/CanonicalMovementTrackPlan.html +1 -0
- package/docs/types/ClassFunctionParameters.html +1 -0
- package/docs/types/Color.html +1 -0
- package/docs/types/ContentTypeConfigKey.html +1 -0
- package/docs/types/ContentTypeConfigKeySplit.html +1 -0
- package/docs/types/ContentTypeMap.html +1 -0
- package/docs/types/Create3DDomContainerReturnType.html +1 -0
- package/docs/types/Create3DElementReturnType.html +1 -0
- package/docs/types/CruisePluginExportType.html +1 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +6 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -0
- package/docs/types/DeprecatedTagProperty.html +3 -0
- package/docs/types/DigitalPerformancePluginExportInterface.html +1 -0
- package/docs/types/DigitalPerformancePluginParamsInterface.html +1 -0
- package/docs/types/DigitalPerformanceV2.CameraCoordinateSpace.html +7 -0
- package/docs/types/DigitalPerformanceV2.CameraTransition.html +7 -0
- package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginExportInterface.html +1 -0
- package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginParamsInterface.html +1 -0
- package/docs/types/DigitalPerformanceV2.V2ProgressListener.html +1 -0
- package/docs/types/Direction-1.html +1 -0
- package/docs/types/Direction4.html +1 -0
- package/docs/types/ElementRenderer.html +2 -0
- package/docs/types/FireModelType.html +5 -0
- package/docs/types/FireSequenceKind.html +3 -0
- package/docs/types/FireSpreadBounds.html +2 -0
- package/docs/types/FloorplanAffineTransform.html +1 -0
- package/docs/types/FloorplanGuidePluginParameterType.html +1 -0
- package/docs/types/FloorplanGuidePluginReturnType.html +1 -0
- package/docs/types/FloorplanRuleLabels.html +2 -0
- package/docs/types/FloorplanServerAffineTransform.html +1 -0
- package/docs/types/FloorplanServerRuleLabels.html +1 -0
- package/docs/types/GuideLinePluginExportType.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -0
- package/docs/types/GuideLinePluginType.PathItem.html +2 -0
- package/docs/types/GuideLinePluginType.PluginData.html +2 -0
- package/docs/types/GuideLinePluginType.RouteConfig.html +4 -0
- package/docs/types/HelperEventMap.html +1 -0
- package/docs/types/InternalHelperEventMap.html +1 -0
- package/docs/types/KeyframeType.html +1 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/MaskPosition.html +3 -0
- package/docs/types/MaskTag.html +2 -0
- package/docs/types/MeasureInteractionState.html +2 -0
- package/docs/types/MeasureV2.MeasureControllerV2Interface.html +1 -0
- package/docs/types/MeasureV2.MeasureEndReason.html +1 -0
- package/docs/types/MeasureV2.MeasurePluginConfig.html +10 -0
- package/docs/types/MeasureV2.MeasurePluginEventMap.html +1 -0
- package/docs/types/MeasureV2.MeasurePluginV2Config.html +6 -0
- package/docs/types/MeasureV2.MeasurePluginV2ParamsInterface.html +1 -0
- package/docs/types/MediaData.html +2 -0
- package/docs/types/MediaOperations.html +1 -0
- package/docs/types/MediaStore.html +1 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -0
- package/docs/types/ModelId.html +1 -0
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +2 -0
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -0
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -0
- package/docs/types/ModelMakerPluginType.TagOcclusionScope.html +2 -0
- package/docs/types/ModelMakerPluginType.TagOcclusionScopeConfig.html +2 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -0
- package/docs/types/MoveArgs.html +2 -0
- package/docs/types/MoveOpts.html +2 -0
- package/docs/types/MovementConfig.html +1 -0
- package/docs/types/MovementPosition.html +1 -0
- package/docs/types/MovementTrackClassification.html +1 -0
- package/docs/types/MovementTrackConflictReason.html +1 -0
- package/docs/types/MovementTrackProjection.html +1 -0
- package/docs/types/Object3DHelperEventMap.html +1 -0
- package/docs/types/ObjectFit.html +1 -0
- package/docs/types/PaintBrushEventMap.html +1 -0
- package/docs/types/PanoCompassPluginData.html +1 -0
- package/docs/types/PanoCompassPluginExportType.html +1 -0
- package/docs/types/PanoCompassPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -0
- package/docs/types/PanoIndex.html +1 -0
- package/docs/types/PanoMeasurePluginEvent.html +1 -0
- package/docs/types/PanoMeasurePluginV2Config.html +3 -0
- package/docs/types/PanoMeasurePluginV2Instance.html +1 -0
- package/docs/types/PanoMeasureReturnType.html +1 -0
- package/docs/types/PanoSpatialTagPluginId.html +1 -0
- package/docs/types/PanoTagPluginExportInterface.html +1 -0
- package/docs/types/PanoTagPluginParamsInterface.html +1 -0
- package/docs/types/PanoVideoPluginParameterType.html +1 -0
- package/docs/types/PanoVideoPluginReturnType.html +1 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -0
- package/docs/types/PipelinePluginParameterType.html +1 -0
- package/docs/types/PipelinePluginReturnType.html +1 -0
- package/docs/types/PlaneTag.html +2 -0
- package/docs/types/Point2DTag.html +2 -0
- package/docs/types/Point3DTag.html +2 -0
- package/docs/types/PointAction.html +1 -0
- package/docs/types/PointTagInstance.html +1 -0
- package/docs/types/PolygonPosition.html +3 -0
- package/docs/types/PolygonTag.html +2 -0
- package/docs/types/Position.html +1 -0
- package/docs/types/PositionFrom.html +1 -0
- package/docs/types/ProgressListener.html +1 -0
- package/docs/types/RotateArgs.html +2 -0
- package/docs/types/RotateOpts.html +2 -0
- package/docs/types/RuleLabelsKey.html +1 -0
- package/docs/types/RuleLabelsValue.html +1 -0
- package/docs/types/ScaleCallback.html +1 -0
- package/docs/types/ScalePosition.html +3 -0
- package/docs/types/SculptData.BoxData.html +1 -0
- package/docs/types/SculptData.CircleData.html +1 -0
- package/docs/types/SculptData.CylinderData.html +1 -0
- package/docs/types/SculptData.PointData.html +1 -0
- package/docs/types/SculptData.PolygonData.html +1 -0
- package/docs/types/SculptData.PolylineData.html +1 -0
- package/docs/types/SculptData.PrismData.html +1 -0
- package/docs/types/SculptData.RectangleData.html +1 -0
- package/docs/types/SculptType.Theme.html +10 -0
- package/docs/types/StateType.html +1 -0
- package/docs/types/StickType.html +1 -0
- package/docs/types/Tag.html +17 -0
- package/docs/types/Tag2D.html +2 -0
- package/docs/types/Tag3D.html +2 -0
- package/docs/types/TagClickParams.html +1 -0
- package/docs/types/TagConfigByKey.html +1 -0
- package/docs/types/TagContentType.html +1 -0
- package/docs/types/TagContentTypeMapping.html +1 -0
- package/docs/types/TagDimensionType.html +1 -0
- package/docs/types/TagElement.html +2 -0
- package/docs/types/TagEvents.html +1 -0
- package/docs/types/TagGLTFObject.html +1 -0
- package/docs/types/TagHooks.html +1 -0
- package/docs/types/TagId.html +1 -0
- package/docs/types/TagInstance.html +1 -0
- package/docs/types/TagPlacement.html +5 -0
- package/docs/types/TagPointType.html +2 -0
- package/docs/types/TagRendererMap.html +1 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/TrackPoint.html +1 -0
- package/docs/types/Util.ActionIfNoIntersection.html +1 -0
- package/docs/types/Util.AdherePoint.html +2 -0
- package/docs/types/Util.PointSelectorConfig.html +1 -0
- package/docs/types/Util.SupportedTarget.html +2 -0
- package/docs/types/Util.Target.html +2 -0
- package/docs/types/Util.ThreeObject.html +2 -0
- package/docs/types/WorkCode.html +1 -0
- package/docs/variables/DigitalPerformanceV2.DEFAULT_DIGITAL_PERFORMANCE_NAME_MAX_LENGTH.html +1 -0
- package/docs/variables/FIRE_ACTION_DURATION_MS.html +2 -0
- package/docs/variables/FIRE_SPREAD_SPEED.html +2 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -0
- package/docs/variables/MODEL_SCALE_RANGE.html +2 -0
- package/docs/variables/MOVEMENT_OCCURRENCE_EPSILON.html +1 -0
- package/docs/variables/MOVEMENT_POSITION_EPSILON.html +1 -0
- package/docs/variables/MOVEMENT_SCHEMA_VERSION.html +1 -0
- package/docs/variables/MeasureV2.DEFAULT_EDGE_SNAP_OPTIONS.html +1 -0
- package/docs/variables/MeasureV2.OVERLAY_STYLE.html +14 -0
- package/docs/variables/PLUGIN.html +1 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -0
- package/docs/variables/ROOM_TYPE_MAP.html +2 -0
- package/docs/variables/Util.ANIME_PRESETS.html +2 -0
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -0
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -0
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -0
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -0
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -0
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -0
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -0
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -0
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -0
- package/docs/variables/defaultGlobalConfig.html +1 -0
- package/docs/variables/itemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -0
- package/libs/MeasurePlugin/Controller.js +161 -161
- package/libs/MeasurePlugin/index.js +6 -4
- package/libs/MeasurePluginV2/Controller.js +35 -43
- package/libs/MeasurePluginV2/Magnifier.d.ts +1 -0
- package/libs/MeasurePluginV2/Magnifier.js +20 -12
- package/libs/MeasurePluginV2/PointSelector.js +78 -78
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +5 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +46 -42
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +13 -10
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -1
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +4 -1
- package/libs/PanoMeasurePluginV2/Controller.d.ts +8 -1
- package/libs/PanoMeasurePluginV2/Controller.js +51 -44
- package/libs/PanoMeasurePluginV2/PointSelector.d.ts +2 -1
- package/libs/PanoMeasurePluginV2/PointSelector.js +51 -48
- package/libs/PanoMeasurePluginV2/ShortcutKeyController.d.ts +5 -0
- package/libs/PanoMeasurePluginV2/ShortcutKeyController.js +25 -0
- package/libs/PanoMeasurePluginV2/controllers.d.ts +28 -2
- package/libs/PanoMeasurePluginV2/controllers.js +217 -49
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +199 -196
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/EndpointPointerGesture.d.ts +31 -0
- package/libs/shared-utils/three/EndpointPointerGesture.js +74 -0
- package/libs/shared-utils/three/measureDrawing.d.ts +4 -0
- package/libs/shared-utils/three/measureDrawing.js +11 -0
- package/package.json +1 -1
|
@@ -1,57 +1,60 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var w = Object.defineProperty, S = Object.defineProperties;
|
|
2
|
+
var C = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var v = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var f = (n, t, e) => t in n ?
|
|
4
|
+
var b = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var f = (n, t, e) => t in n ? w(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, l = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
b.call(t, e) && f(n, e, t[e]);
|
|
8
8
|
if (v)
|
|
9
9
|
for (var e of v(t))
|
|
10
|
-
|
|
10
|
+
D.call(t, e) && f(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
|
-
}, E = (n, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, E = (n, t) => S(n, C(t));
|
|
13
|
+
var h = (n, t, e) => (f(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
import { MeasurePointSelector as L } from "../MeasurePluginV2/PointSelector.js";
|
|
15
|
-
import { MeasureMagnifier as
|
|
16
|
-
import { MeasurePointHelperV2 as
|
|
17
|
-
import { EdgeSnapCache as
|
|
18
|
-
class
|
|
15
|
+
import { MeasureMagnifier as P, getMeasureMagnifierDefaults as I } from "../MeasurePluginV2/Magnifier.js";
|
|
16
|
+
import { MeasurePointHelperV2 as N } from "../MeasurePluginV2/PointHelper.js";
|
|
17
|
+
import { EdgeSnapCache as H } from "../MeasurePluginV2/edgeSnap.js";
|
|
18
|
+
class A extends P {
|
|
19
|
+
constructor(t, e) {
|
|
20
|
+
super(t, l(l({}, I()), e));
|
|
21
|
+
}
|
|
19
22
|
appendTo(t) {
|
|
20
23
|
return this.containerDom && this.canvas.parentNode !== this.containerDom && (this.containerDom = void 0), super.appendTo(t);
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
|
-
class
|
|
24
|
-
constructor(e,
|
|
25
|
-
var
|
|
26
|
-
super(e,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var
|
|
33
|
-
this.adhereEnabled = !e.shiftKey, this.adhereEnabled || this.clearDynamicAdhereLine(), (
|
|
26
|
+
class q extends L {
|
|
27
|
+
constructor(e, o, i, a, m) {
|
|
28
|
+
var p, u, g, y, M;
|
|
29
|
+
super(e, o);
|
|
30
|
+
h(this, "edgeCache", new H());
|
|
31
|
+
h(this, "suppliedNdc");
|
|
32
|
+
h(this, "overlayMagnifier");
|
|
33
|
+
h(this, "lastEdgeSnapEdgeCount", 0);
|
|
34
|
+
h(this, "onModifiersChanged", (e) => {
|
|
35
|
+
var o;
|
|
36
|
+
this.adhereEnabled = !e.shiftKey, this.adhereEnabled || this.clearDynamicAdhereLine(), (o = this.refreshManualInput) == null || o.call(this);
|
|
34
37
|
});
|
|
35
|
-
|
|
38
|
+
h(this, "onWindowBlur", () => {
|
|
36
39
|
var e;
|
|
37
40
|
this.adhereEnabled = !0, this.clearDynamicAdhereLine(), (e = this.refreshManualInput) == null || e.call(this);
|
|
38
41
|
});
|
|
39
|
-
this.sharedMagnifier =
|
|
40
|
-
const
|
|
41
|
-
return this.lastEdgeSnapEdgeCount =
|
|
42
|
+
this.sharedMagnifier = a, this.refreshManualInput = m, this.adhereLineProvider = ({ intersection: s }) => {
|
|
43
|
+
const c = this.edgeCache.query(e.model, s.point, i);
|
|
44
|
+
return this.lastEdgeSnapEdgeCount = c.length, c;
|
|
42
45
|
};
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
document.addEventListener("keydown", this.onModifiersChanged), document.addEventListener("keyup", this.onModifiersChanged), window.addEventListener("blur", this.onWindowBlur), r == null || r.dispose(),
|
|
46
|
-
const s = (y = (g = (
|
|
47
|
-
|
|
46
|
+
const d = this.pointSelectorHelper, r = d.magnifier;
|
|
47
|
+
if (a) {
|
|
48
|
+
document.addEventListener("keydown", this.onModifiersChanged), document.addEventListener("keyup", this.onModifiersChanged), window.addEventListener("blur", this.onWindowBlur), r == null || r.dispose(), d.magnifier = a;
|
|
49
|
+
const s = (y = (g = (p = o.helper) == null ? void 0 : p.container) != null ? g : (u = e.getElement()) == null ? void 0 : u.parentElement) != null ? y : document.body;
|
|
50
|
+
a.containerDom !== s && a.appendTo(s), this.overlayMagnifier = a;
|
|
48
51
|
} else if (r) {
|
|
49
|
-
const s = new
|
|
50
|
-
r.containerDom && s.appendTo(r.containerDom), r.state.enabled && s.enable(),
|
|
52
|
+
const s = new A(e, E(l(l({}, r.config), (M = o.helper) == null ? void 0 : M.magnifierParams), { width: r.width, height: r.height, scale: r.scale }));
|
|
53
|
+
r.containerDom && s.appendTo(r.containerDom), r.state.enabled && s.enable(), d.magnifier = s, r.dispose(), this.overlayMagnifier = s;
|
|
51
54
|
}
|
|
52
|
-
|
|
53
|
-
var
|
|
54
|
-
return (
|
|
55
|
+
d.pointHelper && (d.pointHelper.dispose(), d.pointHelper = new N(e)), this.on("intersectionUpdate", (s) => {
|
|
56
|
+
var c;
|
|
57
|
+
return (c = this.overlayMagnifier) == null ? void 0 : c.setIntersection(s != null ? s : null);
|
|
55
58
|
});
|
|
56
59
|
}
|
|
57
60
|
get mouseNdcPosition() {
|
|
@@ -59,12 +62,12 @@ class B extends L {
|
|
|
59
62
|
return (e = this.suppliedNdc) != null ? e : super.mouseNdcPosition;
|
|
60
63
|
}
|
|
61
64
|
/** Resolve fixed-center and endpoint-drag input without installing another pointer listener. */
|
|
62
|
-
resolveIntersection(e,
|
|
63
|
-
this.suppliedNdc =
|
|
65
|
+
resolveIntersection(e, o) {
|
|
66
|
+
this.suppliedNdc = o;
|
|
64
67
|
try {
|
|
65
68
|
this.pointSelectorHelper.enable(), this.updatePointSelectorHelperIntersect(e);
|
|
66
69
|
const i = this.pointSelectorHelper.position;
|
|
67
|
-
return e && i ?
|
|
70
|
+
return e && i ? l(l({}, e), i) : null;
|
|
68
71
|
} finally {
|
|
69
72
|
this.suppliedNdc = void 0;
|
|
70
73
|
}
|
|
@@ -74,15 +77,15 @@ class B extends L {
|
|
|
74
77
|
this.edgeCache.clear(), this.lastEdgeSnapEdgeCount = 0, this.clearDynamicAdhereLine(), (e = this.overlayMagnifier) == null || e.setIntersection(null);
|
|
75
78
|
}
|
|
76
79
|
dispose() {
|
|
77
|
-
const e = this.pointSelectorHelper,
|
|
78
|
-
this.sharedMagnifier && (document.removeEventListener("keydown", this.onModifiersChanged), document.removeEventListener("keyup", this.onModifiersChanged), window.removeEventListener("blur", this.onWindowBlur), this.pointSelectorHelper.magnifier = null, this.sharedMagnifier.setIntersection(null), this.sharedMagnifier.disable()), super.dispose(),
|
|
79
|
-
var
|
|
80
|
-
const
|
|
81
|
-
(
|
|
82
|
-
}), i != null && i.parent && i.parent.remove(i),
|
|
80
|
+
const e = this.pointSelectorHelper, o = this.sharedMagnifier ? null : e.magnifier, i = e.pointHelper, a = i == null ? void 0 : i.parent;
|
|
81
|
+
this.sharedMagnifier && (document.removeEventListener("keydown", this.onModifiersChanged), document.removeEventListener("keyup", this.onModifiersChanged), window.removeEventListener("blur", this.onWindowBlur), this.pointSelectorHelper.magnifier = null, this.sharedMagnifier.setIntersection(null), this.sharedMagnifier.disable()), super.dispose(), o == null || o.dispose(), i == null || i.traverse((m) => {
|
|
82
|
+
var p;
|
|
83
|
+
const d = m;
|
|
84
|
+
(p = d.geometry) == null || p.dispose(), (Array.isArray(d.material) ? d.material : d.material ? [d.material] : []).forEach((u) => u.dispose());
|
|
85
|
+
}), i != null && i.parent && i.parent.remove(i), a != null && a.parent && a.parent.remove(a);
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
A as PanoMagnifier,
|
|
90
|
+
q as PanoPointSelector
|
|
88
91
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ShortcutKeyController } from '../PanoMeasurePlugin/Controller/ShortcutKeyController';
|
|
2
|
+
/** V2 drawing uses the same undo/finish/cancel keys as spatial measurement. */
|
|
3
|
+
export declare class PanoShortcutKeyControllerV2 extends ShortcutKeyController {
|
|
4
|
+
protected handleKeyDown(event: KeyboardEvent): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ShortcutKeyController as l } from "../PanoMeasurePlugin/Controller/ShortcutKeyController.js";
|
|
2
|
+
import { PanoEditControllerV2 as s } from "./controllers.js";
|
|
3
|
+
class c extends l {
|
|
4
|
+
handleKeyDown(e) {
|
|
5
|
+
var t;
|
|
6
|
+
const r = e.target;
|
|
7
|
+
if (e.defaultPrevented || r != null && r.isContentEditable || (t = r == null ? void 0 : r.closest) != null && t.call(r, 'input, textarea, select, [contenteditable="true"]'))
|
|
8
|
+
return;
|
|
9
|
+
const o = this.measureController.controller;
|
|
10
|
+
if (o instanceof s) {
|
|
11
|
+
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "z" && !e.shiftKey) {
|
|
12
|
+
e.preventDefault(), o.revoke();
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (e.key === "Enter" || e.key === "Escape") {
|
|
16
|
+
e.preventDefault(), e.key === "Escape" && o.cancelDrawing(), this.measureController.save({ mode: "Watch" });
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
e.key === "Escape" && (e.preventDefault(), this.measureController.disable());
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
c as PanoShortcutKeyControllerV2
|
|
25
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Intersection, IntersectMeshInterface } from '@realsee/five';
|
|
2
|
-
import
|
|
2
|
+
import { Vector2 } from 'three';
|
|
3
3
|
import EditController from '../PanoMeasurePlugin/Controller/EditController';
|
|
4
4
|
import MixedController from '../PanoMeasurePlugin/Controller/MixedController';
|
|
5
5
|
import WatchController from '../PanoMeasurePlugin/Controller/WatchController';
|
|
@@ -7,13 +7,28 @@ import RangePieceController from '../PanoMeasurePlugin/Modules/rangePiece';
|
|
|
7
7
|
import type { ControllerParams } from '../PanoMeasurePlugin/Controller/BaseController';
|
|
8
8
|
import type { ResolvedEdgeSnapOptions } from '../MeasurePluginV2/edgeSnap';
|
|
9
9
|
import { PanoPointSelector } from './PointSelector';
|
|
10
|
+
import type { PointIntersection } from '../shared-utils/three/PointSelector';
|
|
10
11
|
export interface PanoControllerParamsV2 extends ControllerParams {
|
|
11
12
|
edgeSnapOptions: ResolvedEdgeSnapOptions;
|
|
13
|
+
quickMeasure?: boolean;
|
|
14
|
+
singleSegment?: boolean;
|
|
12
15
|
}
|
|
13
16
|
export declare class PanoEditControllerV2 extends EditController {
|
|
17
|
+
cancelDrawing(): void;
|
|
14
18
|
private readonly updateLivePreview;
|
|
19
|
+
private quickMeasure?;
|
|
20
|
+
private readonly rightAngleLines;
|
|
21
|
+
private shiftPressed;
|
|
22
|
+
private readonly singleSegment;
|
|
23
|
+
private readonly onAnchorChange;
|
|
24
|
+
private readonly onShift;
|
|
25
|
+
private readonly onBlur;
|
|
26
|
+
private readonly selectRightAngle;
|
|
15
27
|
constructor(params: PanoControllerParamsV2);
|
|
16
28
|
dispose(): void;
|
|
29
|
+
complete(): void;
|
|
30
|
+
private hideRightAngle;
|
|
31
|
+
private syncDrawing;
|
|
17
32
|
protected disposeMagnifier(): void;
|
|
18
33
|
get selector(): PanoPointSelector;
|
|
19
34
|
protected createPointSelector(params: ControllerParams): PanoPointSelector;
|
|
@@ -22,7 +37,7 @@ declare class PanoRangePieceV2 extends RangePieceController {
|
|
|
22
37
|
refresh(): void;
|
|
23
38
|
readonly selector: PanoPointSelector;
|
|
24
39
|
constructor(params: PanoControllerParamsV2);
|
|
25
|
-
protected getIntersection(): Intersection &
|
|
40
|
+
protected getIntersection(): Intersection & PointIntersection;
|
|
26
41
|
protected updateMouseGroup(intersection: Intersection, mesh?: IntersectMeshInterface): import("three").Group;
|
|
27
42
|
dispose(): void;
|
|
28
43
|
}
|
|
@@ -33,8 +48,19 @@ export declare class PanoMixedControllerV2 extends MixedController {
|
|
|
33
48
|
protected createRangePieceController(params: ControllerParams): PanoRangePieceV2;
|
|
34
49
|
}
|
|
35
50
|
export declare class PanoWatchControllerV2 extends WatchController {
|
|
51
|
+
protected get usePanEditing(): boolean;
|
|
36
52
|
readonly selector: PanoPointSelector;
|
|
53
|
+
private endpointGesture?;
|
|
54
|
+
private endpointEdit?;
|
|
55
|
+
private holdIndicator?;
|
|
56
|
+
private readonly preventGesture;
|
|
57
|
+
private readonly cancelEndpoint;
|
|
37
58
|
constructor(params: PanoControllerParamsV2);
|
|
59
|
+
private findEndpoint;
|
|
60
|
+
private moveEndpoint;
|
|
61
|
+
private updateEndpointLines;
|
|
62
|
+
private distanceText;
|
|
63
|
+
private finishEndpoint;
|
|
38
64
|
protected resolveIntersection(intersection: Intersection, mouse: Vector2): Intersection;
|
|
39
65
|
protected onPointEditEnd(): void;
|
|
40
66
|
dispose(): void;
|
|
@@ -1,33 +1,120 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var l = (
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
var A = Object.defineProperty, D = Object.defineProperties;
|
|
2
|
+
var I = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var x = Object.getOwnPropertySymbols;
|
|
4
|
+
var T = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var g = (h, r, e) => r in h ? A(h, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[r] = e, d = (h, r) => {
|
|
6
|
+
for (var e in r || (r = {}))
|
|
7
|
+
T.call(r, e) && g(h, e, r[e]);
|
|
8
|
+
if (x)
|
|
9
|
+
for (var e of x(r))
|
|
10
|
+
k.call(r, e) && g(h, e, r[e]);
|
|
11
|
+
return h;
|
|
12
|
+
}, p = (h, r) => D(h, I(r));
|
|
13
|
+
var l = (h, r, e) => (g(h, typeof r != "symbol" ? r + "" : r, e), e);
|
|
14
|
+
import { Color as R, Vector2 as b, Raycaster as G, Vector3 as U } from "three";
|
|
15
|
+
import N from "../PanoMeasurePlugin/Controller/EditController.js";
|
|
16
|
+
import O from "../PanoMeasurePlugin/Controller/MixedController.js";
|
|
17
|
+
import V from "../PanoMeasurePlugin/Controller/WatchController.js";
|
|
18
|
+
import q from "../PanoMeasurePlugin/Model/line.js";
|
|
19
|
+
import C from "../PanoMeasurePlugin/Model/point.js";
|
|
20
|
+
import F from "../PanoMeasurePlugin/Modules/rangePiece/index.js";
|
|
21
|
+
import { PanoPointSelector as m } from "./PointSelector.js";
|
|
22
|
+
import { QuickNormalMeasure as X } from "../MeasurePluginV2/normalMeasure.js";
|
|
23
|
+
import { getMeasureCorner as M, getMeasureAxes as Y } from "../shared-utils/three/measureDrawing.js";
|
|
24
|
+
import { EndpointPointerGesture as B, ENDPOINT_TOUCH_RADIUS as _, ENDPOINT_MOUSE_RADIUS as z } from "../shared-utils/three/EndpointPointerGesture.js";
|
|
25
|
+
import { getObjectVisible as H } from "../shared-utils/three/getObjectVisible.js";
|
|
26
|
+
function f(h) {
|
|
27
|
+
const r = h.mesh.line.material;
|
|
28
|
+
r.depthTest = !1, r.depthWrite = !1, r.transparent = !0, r.needsUpdate = !0;
|
|
22
29
|
}
|
|
23
|
-
class
|
|
30
|
+
class he extends N {
|
|
24
31
|
constructor(e) {
|
|
25
32
|
super(e);
|
|
26
33
|
l(this, "updateLivePreview", () => this.updateDashed());
|
|
27
|
-
|
|
34
|
+
l(this, "quickMeasure");
|
|
35
|
+
l(this, "rightAngleLines");
|
|
36
|
+
l(this, "shiftPressed", !1);
|
|
37
|
+
l(this, "singleSegment");
|
|
38
|
+
l(this, "onAnchorChange", () => this.syncDrawing());
|
|
39
|
+
l(this, "onShift", (e) => {
|
|
40
|
+
e.key === "Shift" && (this.shiftPressed = e.shiftKey, this.selector.refresh(), this.updateDashed());
|
|
41
|
+
});
|
|
42
|
+
l(this, "onBlur", () => {
|
|
43
|
+
this.shiftPressed = !1, this.hideRightAngle();
|
|
44
|
+
});
|
|
45
|
+
l(this, "selectRightAngle", (e) => {
|
|
46
|
+
if (this.singleSegment && this.currentMeasureType === "line" && this.polyline.lines.length)
|
|
47
|
+
return !1;
|
|
48
|
+
this.shiftPressed && this.currentMeasureType === "line" && this.lastPoint && e && !e.isAdsorbed && (e.point = M(this.lastPoint.position, e.point));
|
|
49
|
+
});
|
|
50
|
+
this.singleSegment = e.singleSegment === !0, f(this.dashed), f(this.perpendicularDashed), this.rightAngleLines = [0, 1].map(() => {
|
|
51
|
+
const i = new q(new C([0, 0, 0]), new C([0, 0, 0]), this.model);
|
|
52
|
+
return i.distanceItem.setCanSelect(!1), i.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new R(3407837) }), f(i), i.mesh.line.material.opacity = 0.5, this.group.add(i.mesh), i.distanceItem.appendTo(this.container), i.show(), i.hide(), i;
|
|
53
|
+
});
|
|
54
|
+
const t = this.updateDashed;
|
|
55
|
+
this.updateDashed = () => {
|
|
56
|
+
t(), this.syncDrawing();
|
|
57
|
+
}, this.hook.on("anchorChange", this.onAnchorChange), this.pointSelector.on("wantsSelect", this.selectRightAngle), document.addEventListener("keydown", this.onShift), document.addEventListener("keyup", this.onShift), window.addEventListener("blur", this.onBlur), this.syncDrawing(), this.pointSelector.on("intersectionUpdate", this.updateLivePreview), e.quickMeasure !== !1 && (this.quickMeasure = new X({
|
|
58
|
+
getCamera: () => this.five.camera,
|
|
59
|
+
getElement: () => this.five.getElement(),
|
|
60
|
+
raycast: (i) => this.five.model.intersectRaycaster(i),
|
|
61
|
+
getMeasuringPoints: () => {
|
|
62
|
+
if (this.currentMeasureType !== "line")
|
|
63
|
+
return null;
|
|
64
|
+
const i = this.polyline.points.map((n) => n.position);
|
|
65
|
+
return i.length ? i : this.lastPoint ? [this.lastPoint.position] : [];
|
|
66
|
+
},
|
|
67
|
+
finish: (i, n) => {
|
|
68
|
+
const s = this.pointSelector.position;
|
|
69
|
+
if (!s)
|
|
70
|
+
return !1;
|
|
71
|
+
this.pointSelector.pointSelectorHelper.position = p(d({}, s), { point: n.clone() });
|
|
72
|
+
const o = this.polyline;
|
|
73
|
+
return this.selectPoint(), this.disposed || this.singleSegment || (this.polyline === o && this.complete(), this.disposed) ? !1 : (this.selectPoint(), !0);
|
|
74
|
+
},
|
|
75
|
+
cancelStart: () => this.revoke()
|
|
76
|
+
}), this.quickMeasure.attach(this.pointSelector));
|
|
77
|
+
}
|
|
78
|
+
cancelDrawing() {
|
|
79
|
+
this.discardCurrentDrawing(), this.syncDrawing();
|
|
28
80
|
}
|
|
29
81
|
dispose() {
|
|
30
|
-
|
|
82
|
+
var e;
|
|
83
|
+
(e = this.quickMeasure) == null || e.detach(this.pointSelector), this.hook.off("anchorChange", this.onAnchorChange), this.pointSelector.off("wantsSelect", this.selectRightAngle), document.removeEventListener("keydown", this.onShift), document.removeEventListener("keyup", this.onShift), window.removeEventListener("blur", this.onBlur), this.rightAngleLines.forEach((t) => {
|
|
84
|
+
t.remove();
|
|
85
|
+
for (const i of [t.mesh, t.lightMesh])
|
|
86
|
+
i.traverse((n) => {
|
|
87
|
+
var c;
|
|
88
|
+
const s = n;
|
|
89
|
+
(c = s.geometry) == null || c.dispose(), (Array.isArray(s.material) ? s.material : s.material ? [s.material] : []).forEach((a) => a.dispose());
|
|
90
|
+
});
|
|
91
|
+
}), this.pointSelector.off("intersectionUpdate", this.updateLivePreview), super.dispose();
|
|
92
|
+
}
|
|
93
|
+
complete() {
|
|
94
|
+
this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), super.complete(), !this.disposed && (this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.syncDrawing());
|
|
95
|
+
}
|
|
96
|
+
hideRightAngle() {
|
|
97
|
+
this.rightAngleLines.forEach((e) => e.hide());
|
|
98
|
+
}
|
|
99
|
+
syncDrawing() {
|
|
100
|
+
var s, o, c, a;
|
|
101
|
+
if (this.disposed)
|
|
102
|
+
return;
|
|
103
|
+
const e = (s = this.lastPoint) == null ? void 0 : s.position;
|
|
104
|
+
this.currentMeasureType === "line" && (this.pointSelector.actionIfNoIntersection = (o = this.pointSelectorConfig.actionIfNoIntersection) != null ? o : e ? "virtualPoint" : "disable", this.pointSelector.adhereLine = e ? Y(e) : [], this.pointSelector.setAdherePoints(e ? [(a = (c = this.polyline.points[0]) == null ? void 0 : c.position) != null ? a : e] : null));
|
|
105
|
+
const t = this.pointSelector.position;
|
|
106
|
+
if (this.currentMeasureType !== "line" || !e || !t || t.isAdsorbed || e.equals(t.point)) {
|
|
107
|
+
this.hideRightAngle();
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const i = M(e, t.point), n = [[e, i], [i, t.point]];
|
|
111
|
+
this.rightAngleLines.forEach((u, L) => {
|
|
112
|
+
var S, P, w;
|
|
113
|
+
const [v, y] = n[L];
|
|
114
|
+
u.setPoints(v, y);
|
|
115
|
+
const E = v.distanceTo(y);
|
|
116
|
+
u.text = (w = (P = (S = this.config).getDistanceText) == null ? void 0 : P.call(S, E)) != null ? w : `${E.toFixed(2)}m`, u.show(), u.distanceItem.update(this.five);
|
|
117
|
+
});
|
|
31
118
|
}
|
|
32
119
|
// The V2 selector releases its owned lens; the shared panorama lens survives mode switches.
|
|
33
120
|
disposeMagnifier() {
|
|
@@ -36,21 +123,21 @@ class U extends C {
|
|
|
36
123
|
return this.pointSelector;
|
|
37
124
|
}
|
|
38
125
|
createPointSelector(e) {
|
|
39
|
-
var
|
|
40
|
-
return new
|
|
126
|
+
var t;
|
|
127
|
+
return new m(e.five, p(d({}, e.pointSelectorConfig), {
|
|
41
128
|
mode: e.editParams.pointSelectorMode,
|
|
42
|
-
helper:
|
|
129
|
+
helper: d({ magnifierParams: this.magnifierParams, container: e.container }, (t = e.pointSelectorConfig) == null ? void 0 : t.helper)
|
|
43
130
|
}), e.edgeSnapOptions);
|
|
44
131
|
}
|
|
45
132
|
}
|
|
46
|
-
class
|
|
133
|
+
class $ extends F {
|
|
47
134
|
constructor(e) {
|
|
48
|
-
var
|
|
135
|
+
var t;
|
|
49
136
|
super(e);
|
|
50
137
|
l(this, "selector");
|
|
51
|
-
this.selector = new
|
|
138
|
+
this.selector = new m(e.five, p(d({}, e.pointSelectorConfig), {
|
|
52
139
|
mode: "fixed",
|
|
53
|
-
helper:
|
|
140
|
+
helper: p(d({}, (t = e.pointSelectorConfig) == null ? void 0 : t.helper), { container: e.container })
|
|
54
141
|
}), e.edgeSnapOptions, e.magnifier, () => this.refresh());
|
|
55
142
|
}
|
|
56
143
|
refresh() {
|
|
@@ -60,48 +147,129 @@ class M extends x {
|
|
|
60
147
|
const e = super.getIntersection();
|
|
61
148
|
return this.centerMouseXY ? this.selector.resolveIntersection(e != null ? e : null, { x: (this.centerMouseXY.x + 1) / 2, y: (this.centerMouseXY.y + 1) / 2 }) : null;
|
|
62
149
|
}
|
|
63
|
-
updateMouseGroup(e,
|
|
64
|
-
const
|
|
65
|
-
return
|
|
150
|
+
updateMouseGroup(e, t) {
|
|
151
|
+
const i = super.updateMouseGroup(e, t);
|
|
152
|
+
return i.visible = !1, i;
|
|
66
153
|
}
|
|
67
154
|
dispose() {
|
|
68
155
|
this.selector.dispose(), super.dispose();
|
|
69
156
|
}
|
|
70
157
|
}
|
|
71
|
-
class
|
|
158
|
+
class ce extends O {
|
|
72
159
|
refreshPoint() {
|
|
73
160
|
this.rangePieceController.refresh();
|
|
74
161
|
}
|
|
75
|
-
constructor(
|
|
76
|
-
super(
|
|
162
|
+
constructor(r) {
|
|
163
|
+
super(r), f(this.dashed), f(this.perpendicularDashed);
|
|
77
164
|
}
|
|
78
165
|
get selector() {
|
|
79
166
|
return this.rangePieceController.selector;
|
|
80
167
|
}
|
|
81
|
-
createRangePieceController(
|
|
82
|
-
return new
|
|
168
|
+
createRangePieceController(r) {
|
|
169
|
+
return new $(r);
|
|
83
170
|
}
|
|
84
171
|
}
|
|
85
|
-
class
|
|
172
|
+
class le extends V {
|
|
86
173
|
constructor(e) {
|
|
87
|
-
var
|
|
174
|
+
var i;
|
|
88
175
|
super(e);
|
|
89
176
|
l(this, "selector");
|
|
90
|
-
this
|
|
177
|
+
l(this, "endpointGesture");
|
|
178
|
+
l(this, "endpointEdit");
|
|
179
|
+
l(this, "holdIndicator");
|
|
180
|
+
l(this, "preventGesture", () => !1);
|
|
181
|
+
l(this, "cancelEndpoint", () => {
|
|
182
|
+
var e;
|
|
183
|
+
return (e = this.endpointGesture) == null ? void 0 : e.cancel();
|
|
184
|
+
});
|
|
185
|
+
this.selector = new m(e.five, p(d({}, e.pointSelectorConfig), { helper: p(d({}, (i = e.pointSelectorConfig) == null ? void 0 : i.helper), { container: e.container }) }), e.edgeSnapOptions, e.magnifier);
|
|
186
|
+
const t = this.five.getElement();
|
|
187
|
+
t && (this.endpointGesture = new B(t, {
|
|
188
|
+
findTarget: (n) => this.findEndpoint(n),
|
|
189
|
+
begin: (n) => {
|
|
190
|
+
const s = this.model.getAllLines().filter((o) => o.points.includes(n));
|
|
191
|
+
return this.hook.emit("wantsDragLine", { point: n.id, lines: s.map((o) => o.id) }) || this.disposed ? !1 : (this.endpointEdit = {
|
|
192
|
+
point: n,
|
|
193
|
+
original: n.position.clone(),
|
|
194
|
+
lines: s,
|
|
195
|
+
opacity: s.map((o) => o.mesh.line.material.opacity),
|
|
196
|
+
texts: s.map((o) => o.text),
|
|
197
|
+
automatic: s.map((o) => o.text == null && this.config.defaultText == null || o.text === this.distanceText(o))
|
|
198
|
+
}, this.clearHighlightLines(), s.forEach((o) => {
|
|
199
|
+
o.mesh.setMaterial({ dashed: !0 }), o.mesh.line.material.opacity = 0.4, o.distanceItem.setCanSelect(!1);
|
|
200
|
+
}), this.five.on("wantsGesture", this.preventGesture), !0);
|
|
201
|
+
},
|
|
202
|
+
move: (n) => this.moveEndpoint(n),
|
|
203
|
+
finish: (n) => this.finishEndpoint(n),
|
|
204
|
+
holding: (n) => {
|
|
205
|
+
var o;
|
|
206
|
+
if ((o = this.holdIndicator) == null || o.remove(), this.holdIndicator = void 0, !n)
|
|
207
|
+
return;
|
|
208
|
+
const s = document.createElement("div");
|
|
209
|
+
s.style.cssText = `position:fixed;left:${n.clientX}px;top:${n.clientY}px;width:32px;height:32px;border:2px solid #33ffdd;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:10000`, document.body.append(s), this.holdIndicator = s;
|
|
210
|
+
}
|
|
211
|
+
})), this.five.on("pano.moveTo", this.cancelEndpoint), this.five.on("mode.change", this.cancelEndpoint), this.five.on("model.changeShownFloor", this.cancelEndpoint);
|
|
212
|
+
}
|
|
213
|
+
get usePanEditing() {
|
|
214
|
+
return !1;
|
|
215
|
+
}
|
|
216
|
+
findEndpoint(e) {
|
|
217
|
+
const t = this.five.getElement().getBoundingClientRect();
|
|
218
|
+
let i, n = e.pointerType === "touch" ? _ : z;
|
|
219
|
+
for (const s of this.model.getAllLines())
|
|
220
|
+
if (H(s.mesh))
|
|
221
|
+
for (const o of s.points) {
|
|
222
|
+
const c = o.position.clone().project(this.five.camera);
|
|
223
|
+
if (![c.x, c.y, c.z].every(Number.isFinite) || c.z < -1 || c.z > 1)
|
|
224
|
+
continue;
|
|
225
|
+
const a = Math.hypot(e.clientX - t.left - (c.x + 1) * t.width / 2, e.clientY - t.top - (1 - c.y) * t.height / 2);
|
|
226
|
+
a <= n && (i = o, n = a);
|
|
227
|
+
}
|
|
228
|
+
return i;
|
|
91
229
|
}
|
|
92
|
-
|
|
93
|
-
var
|
|
94
|
-
|
|
230
|
+
moveEndpoint(e) {
|
|
231
|
+
var a;
|
|
232
|
+
if (!this.endpointEdit)
|
|
233
|
+
return;
|
|
234
|
+
const t = this.five.getElement().getBoundingClientRect(), i = new b((e.clientX - t.left) / t.width * 2 - 1, 1 - (e.clientY - t.top) / t.height * 2), n = new G();
|
|
235
|
+
n.setFromCamera(i, this.five.camera);
|
|
236
|
+
const s = this.five.model.intersectRaycaster(n)[0], o = s != null ? s : { point: n.ray.at(5, new U()), distance: 5, raycaster: n, isVirtual: !0 };
|
|
237
|
+
this.mouseGroup.visible = !1;
|
|
238
|
+
const c = (a = this.selector.resolveIntersection(o, { x: (i.x + 1) / 2, y: (i.y + 1) / 2 })) != null ? a : o;
|
|
239
|
+
this.endpointEdit.point.position.copy(c.point), this.updateEndpointLines(this.endpointEdit.lines);
|
|
240
|
+
}
|
|
241
|
+
updateEndpointLines(e) {
|
|
242
|
+
e.forEach((t, i) => {
|
|
243
|
+
var o;
|
|
244
|
+
const [n, s] = t.points.map((c) => c.position);
|
|
245
|
+
t.mesh.setPoints(n, s), t.lightMesh.setPoints(n, s), (o = this.endpointEdit) != null && o.automatic[i] && (t.text = this.distanceText(t));
|
|
246
|
+
}), this.updateDistanceUI(), this.five.needsRender = !0;
|
|
247
|
+
}
|
|
248
|
+
distanceText(e) {
|
|
249
|
+
var i, n, s;
|
|
250
|
+
const t = e.points[0].position.distanceTo(e.points[1].position);
|
|
251
|
+
return (s = (n = (i = this.config).getDistanceText) == null ? void 0 : n.call(i, t)) != null ? s : `${t.toFixed(2)}m`;
|
|
252
|
+
}
|
|
253
|
+
finishEndpoint(e) {
|
|
254
|
+
const t = this.endpointEdit;
|
|
255
|
+
t && (this.endpointEdit = void 0, e || t.point.position.copy(t.original), t.lines.forEach((i, n) => {
|
|
256
|
+
e || (i.text = t.texts[n]), i.mesh.setMaterial({ dashed: !1 }), i.mesh.line.material.opacity = t.opacity[n], i.distanceItem.setCanSelect(!0);
|
|
257
|
+
}), this.updateEndpointLines(t.lines), this.five.off("wantsGesture", this.preventGesture), this.onPointEditEnd(), this.disposed || this.hook.emit("selectedChange", t.lines));
|
|
258
|
+
}
|
|
259
|
+
resolveIntersection(e, t) {
|
|
260
|
+
var i;
|
|
261
|
+
return this.mouseGroup.visible = !1, (i = this.selector.resolveIntersection(e, { x: (t.x + 1) / 2, y: (t.y + 1) / 2 })) != null ? i : e;
|
|
95
262
|
}
|
|
96
263
|
onPointEditEnd() {
|
|
97
264
|
this.selector.resetSnap(), this.selector.pointSelectorHelper.hide();
|
|
98
265
|
}
|
|
99
266
|
dispose() {
|
|
100
|
-
|
|
267
|
+
var e;
|
|
268
|
+
this.disposed = !0, (e = this.endpointGesture) == null || e.dispose(), this.five.off("pano.moveTo", this.cancelEndpoint), this.five.off("mode.change", this.cancelEndpoint), this.five.off("model.changeShownFloor", this.cancelEndpoint), this.selector.dispose(), super.dispose();
|
|
101
269
|
}
|
|
102
270
|
}
|
|
103
271
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
272
|
+
he as PanoEditControllerV2,
|
|
273
|
+
ce as PanoMixedControllerV2,
|
|
274
|
+
le as PanoWatchControllerV2
|
|
107
275
|
};
|