@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,28 +1,28 @@
|
|
|
1
1
|
var x = Object.defineProperty, j = Object.defineProperties;
|
|
2
2
|
var G = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var E = Object.getOwnPropertySymbols;
|
|
4
4
|
var B = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var w = (
|
|
5
|
+
var w = (p, a, e) => a in p ? x(p, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[a] = e, k = (p, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
B.call(a, e) && w(
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
O.call(a, e) && w(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var o = (
|
|
7
|
+
B.call(a, e) && w(p, e, a[e]);
|
|
8
|
+
if (E)
|
|
9
|
+
for (var e of E(a))
|
|
10
|
+
O.call(a, e) && w(p, e, a[e]);
|
|
11
|
+
return p;
|
|
12
|
+
}, I = (p, a) => j(p, G(a));
|
|
13
|
+
var o = (p, a, e) => (w(p, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
import $ from "../Model/line.js";
|
|
15
|
-
import
|
|
15
|
+
import R 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
|
|
20
|
-
import { isIntersecting as
|
|
18
|
+
import { Polyline as T } from "../Model/polyline.js";
|
|
19
|
+
import D from "../Model/area.js";
|
|
20
|
+
import { isIntersecting as b } 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
|
-
import { Vector2 as
|
|
25
|
-
import
|
|
24
|
+
import { Vector2 as M } from "three";
|
|
25
|
+
import H 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 R(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 R(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;
|
|
@@ -198,16 +198,16 @@ class Wt extends z {
|
|
|
198
198
|
return [];
|
|
199
199
|
const { intersection: h, pointSelectorInstance: L } = s, g = L.pointSelectorHelper.pointHelper, m = new f.Vector3(0, 0, 1).applyQuaternion(g.quaternion);
|
|
200
200
|
if (m.x > 0.9999 || m.y > 0.9999 || m.z > 0.9999 || m.x < -0.9999 || m.y < -0.9999 || m.z < -0.9999) {
|
|
201
|
-
const
|
|
201
|
+
const A = h.point, v = this.lastPoint.position.clone().sub(A);
|
|
202
202
|
L.pointSelectorHelper.updateWithIntersect(h, { emitEvent: !1 });
|
|
203
203
|
const r = new f.Line3(
|
|
204
|
-
g.localToWorld(new f.Vector3(1, 0, 0)).add(
|
|
205
|
-
g.localToWorld(new f.Vector3(-1, 0, 0)).add(
|
|
206
|
-
),
|
|
207
|
-
g.localToWorld(new f.Vector3(0, 1, 0)).add(
|
|
208
|
-
g.localToWorld(new f.Vector3(0, -1, 0)).add(
|
|
209
|
-
),
|
|
210
|
-
return [
|
|
204
|
+
g.localToWorld(new f.Vector3(1, 0, 0)).add(v),
|
|
205
|
+
g.localToWorld(new f.Vector3(-1, 0, 0)).add(v)
|
|
206
|
+
), d = new f.Line3(
|
|
207
|
+
g.localToWorld(new f.Vector3(0, 1, 0)).add(v),
|
|
208
|
+
g.localToWorld(new f.Vector3(0, -1, 0)).add(v)
|
|
209
|
+
), S = r.closestPointToPoint(A, !1, new f.Vector3()), P = d.closestPointToPoint(A, !1, new f.Vector3());
|
|
210
|
+
return [S, P];
|
|
211
211
|
}
|
|
212
212
|
return [];
|
|
213
213
|
};
|
|
@@ -260,7 +260,7 @@ class Wt extends z {
|
|
|
260
260
|
this.perpendicularDashed.setPoints(s, h), this.perpendicularDashed.show();
|
|
261
261
|
} else
|
|
262
262
|
this.perpendicularDashed.hide();
|
|
263
|
-
const l = this.area.polyline.lines.map((s) => ({ start: s.points[0].position, end: s.points[1].position })), c =
|
|
263
|
+
const l = this.area.polyline.lines.map((s) => ({ start: s.points[0].position, end: s.points[1].position })), c = b({ start: e, end: t }, l), u = b({ start: t, end: this.area.points[0] }, l);
|
|
264
264
|
if (c || u)
|
|
265
265
|
this.area.hideArea(), this.hook.emit("allowAddPointStateChange", "forbid");
|
|
266
266
|
else {
|
|
@@ -275,33 +275,33 @@ class Wt extends z {
|
|
|
275
275
|
// ====================================================================================================================================
|
|
276
276
|
// 下面一堆高亮相关
|
|
277
277
|
o(this, "wantsTapGesture", (e) => {
|
|
278
|
-
var
|
|
278
|
+
var A, v;
|
|
279
279
|
if (this.editParams.pointSelectorMode === "cursor" || this.lastPoint)
|
|
280
280
|
return !1;
|
|
281
|
-
const t = this.model.areas.map((r) => e.intersectObject(r.polygon, !0)[0]).sort((r,
|
|
281
|
+
const t = this.model.areas.map((r) => e.intersectObject(r.polygon, !0)[0]).sort((r, d) => r.distance - d.distance), i = (v = (A = t[0]) == null ? void 0 : A.object) == null ? void 0 : v.parent;
|
|
282
282
|
if (i != null && i.isPolygonMesh) {
|
|
283
|
-
const r = this.model.areas.find((
|
|
283
|
+
const r = this.model.areas.find((d) => d.polygon === i);
|
|
284
284
|
if (r) {
|
|
285
|
-
const { x:
|
|
286
|
-
return this.chooseArea(r, { left:
|
|
285
|
+
const { x: d, y: S } = t[0].point.clone().project(this.five.camera), P = `${(d + 1) / 2 * 100}%`, C = `${(-S + 1) / 2 * 100}%`;
|
|
286
|
+
return this.chooseArea(r, { left: P, top: C }), !1;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
const [n] = Q(this.five).intersectRaycaster(e);
|
|
290
290
|
if (!n)
|
|
291
291
|
return;
|
|
292
|
-
const l = this.five.camera, c = n.point.clone().project(l), u = this.container.clientWidth, y = this.container.clientHeight, s = new
|
|
293
|
-
const [
|
|
294
|
-
if (!
|
|
292
|
+
const l = this.five.camera, c = n.point.clone().project(l), u = this.container.clientWidth, y = this.container.clientHeight, s = new M(c.x * u, c.y * y), h = this.model.getAllLines().map((r) => {
|
|
293
|
+
const [d, S] = r.points, P = d.position.clone().project(l), C = S.position.clone().project(l);
|
|
294
|
+
if (!H(P) && !H(C))
|
|
295
295
|
return null;
|
|
296
|
-
const V = new
|
|
296
|
+
const V = new M(P.x * u, P.y * y), W = new M(C.x * u, C.y * y);
|
|
297
297
|
return { id: r.id, points: [V, W] };
|
|
298
298
|
}).filter((r) => !!r);
|
|
299
299
|
if (h.length === 0)
|
|
300
300
|
return;
|
|
301
301
|
const g = h.map((r) => {
|
|
302
|
-
const
|
|
303
|
-
return { id: r.id, distance:
|
|
304
|
-
}).sort((r,
|
|
302
|
+
const d = _(s, r.points);
|
|
303
|
+
return { id: r.id, distance: d.distanceTo(s) };
|
|
304
|
+
}).sort((r, d) => r.distance - d.distance)[0];
|
|
305
305
|
if (g.distance > 20)
|
|
306
306
|
return;
|
|
307
307
|
const m = this.model.getAllLines().find(({ id: r }) => r === g.id);
|
|
@@ -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 T({ model: this.model }), this.area = new D(void 0, {
|
|
339
339
|
five: this.five,
|
|
340
340
|
model: this.model,
|
|
341
341
|
meshContainer: this.group,
|
|
@@ -348,8 +348,12 @@ class Wt extends z {
|
|
|
348
348
|
});
|
|
349
349
|
}), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsMoveToPano", this.wantsMoveToPano), this.five.on("wantsChangeMode", U), this.pointSelector.on("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.on("intersectionUpdate", this.checkMouseLeave), this.pointSelector.on("select", this.onSelect), this.pointSelector.on("wantsSelect", this.onWantsSelect), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.five.helperVisible = !1, this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
|
|
350
350
|
}
|
|
351
|
+
/** Drop only the unfinished drawing; keep imported and already completed rulers. */
|
|
352
|
+
discardCurrentDrawing() {
|
|
353
|
+
this.currentMeasureType === "area" ? (this.deleteArea(this.area), this.area = new D(void 0, { five: this.five, model: this.model, meshContainer: this.group, domContainer: this.container }), this.model.addArea(this.area)) : (this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), this.polyline.lines.forEach((e) => this.removeLine(e)), this.model.removePolyline(this.polyline), this.polyline = new T({ model: this.model }), this.model.addPolyline(this.polyline), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged)), this.lastPoint = null, this.pointSelector.setAdherePoints(null), this.dashed.hide(), this.perpendicularDashed.hide(), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.hook.emit("pointsChange", []), this.five.needsRender = !0;
|
|
354
|
+
}
|
|
351
355
|
createPointSelector(e) {
|
|
352
|
-
return new F(this.five,
|
|
356
|
+
return new F(this.five, I(k({}, this.pointSelectorConfig), {
|
|
353
357
|
mode: this.editParams.pointSelectorMode,
|
|
354
358
|
helper: k({ magnifierParams: this.magnifierParams, container: this.container }, this.pointSelectorConfig.helper)
|
|
355
359
|
}));
|
|
@@ -372,9 +376,9 @@ class Wt extends z {
|
|
|
372
376
|
this.onSelect();
|
|
373
377
|
}
|
|
374
378
|
complete() {
|
|
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
|
|
379
|
+
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 D(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) => {
|
|
376
380
|
e.hook.on("selected", this.chooseLine), e.distanceItem.setCanSelect(!0);
|
|
377
|
-
}), this.polyline = new
|
|
381
|
+
}), this.polyline = new T({ model: this.model }), this.model.addPolyline(this.polyline)), this.pointSelector.setAdherePoints(null), this.dashed.hide(), this.perpendicularDashed.hide(), this.lastPoint = void 0;
|
|
378
382
|
}
|
|
379
383
|
highlightArea(e) {
|
|
380
384
|
this.highlightLines(e.polyline.lines), this.five.needsRender = !0;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var s = (
|
|
3
|
-
var n = (
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var s = (o, e, t) => e in o ? r(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var n = (o, e, t) => (s(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
class l {
|
|
5
5
|
constructor(e, t) {
|
|
6
6
|
n(this, "five");
|
|
7
7
|
n(this, "measureController");
|
|
8
8
|
n(this, "onKeyDown", (e) => {
|
|
9
|
-
|
|
10
|
-
this.measureController.save().changeMode("Watch"), e.preventDefault();
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
if (e.code === "Escape")
|
|
14
|
-
return this.escape();
|
|
9
|
+
this.handleKeyDown(e);
|
|
15
10
|
});
|
|
16
11
|
n(this, "onMouseDown", (e) => {
|
|
17
12
|
e.button === 2 && (e.preventDefault(), this.measureController.save().changeMode("Watch"));
|
|
@@ -19,11 +14,19 @@ class l {
|
|
|
19
14
|
this.five = t, this.measureController = e, this.five.getElement() && document.body.addEventListener("keydown", this.onKeyDown);
|
|
20
15
|
}
|
|
21
16
|
dispose() {
|
|
22
|
-
|
|
17
|
+
document.body.removeEventListener("keydown", this.onKeyDown);
|
|
23
18
|
}
|
|
24
19
|
escape() {
|
|
25
20
|
return this.measureController.getCurrentMode() === "Watch" ? this.measureController.disable() : this.measureController.save().changeMode("Watch");
|
|
26
21
|
}
|
|
22
|
+
handleKeyDown(e) {
|
|
23
|
+
if (e.metaKey && e.code === "KeyS") {
|
|
24
|
+
this.measureController.save().changeMode("Watch"), e.preventDefault();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (e.code === "Escape")
|
|
28
|
+
return this.escape();
|
|
29
|
+
}
|
|
27
30
|
}
|
|
28
31
|
export {
|
|
29
32
|
l as ShortcutKeyController
|
|
@@ -3,6 +3,7 @@ import type { Intersection } from '@realsee/five';
|
|
|
3
3
|
import BaseController, { type ControllerParams } from './BaseController';
|
|
4
4
|
import { Vector2 } from 'three';
|
|
5
5
|
export default class WatchController extends BaseController {
|
|
6
|
+
protected get usePanEditing(): boolean;
|
|
6
7
|
type: string;
|
|
7
8
|
private deleteDom;
|
|
8
9
|
private choose;
|
|
@@ -235,13 +235,16 @@ class ke extends U {
|
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
237
|
const i = this.five.getElement();
|
|
238
|
-
if (i) {
|
|
238
|
+
if (i && this.usePanEditing) {
|
|
239
239
|
this.fiveElement = i;
|
|
240
240
|
const e = new G(i);
|
|
241
241
|
this.hammer = e, e.on("pan", this.onPan), e.on("panstart", this.onPanStart), e.on("panend", this.onPanEnd);
|
|
242
242
|
}
|
|
243
243
|
this.updateDistanceUI(), this.five.needsRender = !0, this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsPanGesture", this.wantsPanGesture), this.five.on("wantsChangeMode", D), this.model.hook.on("polylineRemoved", this.polylineRemoved);
|
|
244
244
|
}
|
|
245
|
+
get usePanEditing() {
|
|
246
|
+
return !0;
|
|
247
|
+
}
|
|
245
248
|
dispose() {
|
|
246
249
|
var t;
|
|
247
250
|
super.dispose(), this.deleteDom.dispose(), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.model.getAllLines().forEach((i) => i.hook.off("selected", this.chooseLine)), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsPanGesture", this.wantsPanGesture), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.off("wantsChangeMode", D), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (t = this.hammer) == null || t.destroy();
|
|
@@ -13,6 +13,7 @@ import type { Subscribe } from '../../shared-utils/Subscribe';
|
|
|
13
13
|
import type { Five } from '@realsee/five';
|
|
14
14
|
import { type UIControllerParams } from '../Modules/UIController';
|
|
15
15
|
import { type GuideControllerParams } from '../Modules/GuideController';
|
|
16
|
+
import { ShortcutKeyController } from './ShortcutKeyController';
|
|
16
17
|
import { Magnifier } from '../../shared-utils';
|
|
17
18
|
import type { MagnifierParameter } from '../../shared-utils';
|
|
18
19
|
import type Area from '../Model/area';
|
|
@@ -125,5 +126,6 @@ export default class PanoMeasureController extends BasePlugin.Controller<BasePlu
|
|
|
125
126
|
changeConfigs(config: Config): void;
|
|
126
127
|
/** 设置线段的文本 */
|
|
127
128
|
setCustomText(lineID: string, text: string): void;
|
|
129
|
+
protected createShortcutKeyController(): ShortcutKeyController;
|
|
128
130
|
protected createControllerParams(): ControllerParams;
|
|
129
131
|
}
|
|
@@ -278,7 +278,7 @@ class fi extends F {
|
|
|
278
278
|
*/
|
|
279
279
|
enable(t) {
|
|
280
280
|
var e, i, r;
|
|
281
|
-
this.hasOpen || (!this.container.parentElement && ((e = this.five.getElement()) != null && e.parentElement) && this.appendTo(this.five.getElement().parentElement), this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t == null ? void 0 : t.mode) !== "View" && ((i = this.useUIController) == null || i.show(), (r = this.useGuideController) == null || r.show()), this.shortcutKeyController =
|
|
281
|
+
this.hasOpen || (!this.container.parentElement && ((e = this.five.getElement()) != null && e.parentElement) && this.appendTo(this.five.getElement().parentElement), this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t == null ? void 0 : t.mode) !== "View" && ((i = this.useUIController) == null || i.show(), (r = this.useGuideController) == null || r.show()), this.shortcutKeyController = this.createShortcutKeyController(), this.hook.emit("enable", !0));
|
|
282
282
|
}
|
|
283
283
|
/** 进入编辑模式 */
|
|
284
284
|
edit(t) {
|
|
@@ -360,6 +360,9 @@ class fi extends F {
|
|
|
360
360
|
throw new Error("不存在的线段");
|
|
361
361
|
i.setText(e), (r = this.controller) == null || r.updateDistanceUI();
|
|
362
362
|
}
|
|
363
|
+
createShortcutKeyController() {
|
|
364
|
+
return new H(this, this.five);
|
|
365
|
+
}
|
|
363
366
|
createControllerParams() {
|
|
364
367
|
var i, r;
|
|
365
368
|
const t = (i = this.params.openParams) != null ? i : {}, e = (r = this.params.editParams) != null ? r : {};
|
|
@@ -9,10 +9,16 @@ import { type EdgeSnapOptions } from '../MeasurePluginV2/edgeSnap';
|
|
|
9
9
|
import type { MagnifierParameter } from '../shared-utils';
|
|
10
10
|
export type PanoMeasurePluginV2Config = PanoMeasureParameterType & {
|
|
11
11
|
edgeSnap?: boolean | EdgeSnapOptions;
|
|
12
|
+
/** Mouse double-click measures along the starting surface normal. Enabled by default, as in MeasurePluginV2. */
|
|
13
|
+
quickMeasure?: boolean;
|
|
14
|
+
/** Keep one editable segment until finish/cancel; useful for one-ruler forms. */
|
|
15
|
+
singleSegment?: boolean;
|
|
12
16
|
};
|
|
13
|
-
/**
|
|
17
|
+
/** Keeps panorama modes, events and serialization, with shared V2 picking and quick measurement. */
|
|
14
18
|
export declare class PanoMeasureControllerV2 extends PanoMeasureController {
|
|
15
19
|
private readonly edgeSnapOptions;
|
|
20
|
+
private readonly quickMeasureEnabled;
|
|
21
|
+
private readonly singleSegment;
|
|
16
22
|
private mobileStyle?;
|
|
17
23
|
private readonly mixedSavedPolylineIDs;
|
|
18
24
|
private readonly magnifierOptions;
|
|
@@ -29,6 +35,7 @@ export declare class PanoMeasureControllerV2 extends PanoMeasureController {
|
|
|
29
35
|
removePolyline(polyline: Parameters<PanoMeasureController['removePolyline']>[0]): void;
|
|
30
36
|
dispose(): void;
|
|
31
37
|
protected createControllerParams(): ControllerParams;
|
|
38
|
+
protected createShortcutKeyController(): any;
|
|
32
39
|
protected createMagnifier(five: Five, options: MagnifierParameter): PanoMagnifier;
|
|
33
40
|
protected createModeController(params: ControllerParams, Controller: ModeControllerConstructor): WatchController | EditController | MixedController | import("../PanoMeasurePlugin/Controller/ViewController").default;
|
|
34
41
|
}
|
|
@@ -1,48 +1,52 @@
|
|
|
1
1
|
var U = Object.defineProperty, B = Object.defineProperties;
|
|
2
2
|
var V = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var c = (
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
|
+
var q = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var c = (l, i, e) => i in l ? U(l, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[i] = e, n = (l, i) => {
|
|
6
6
|
for (var e in i || (i = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, s = (
|
|
13
|
-
var
|
|
7
|
+
q.call(i, e) && c(l, e, i[e]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var e of w(i))
|
|
10
|
+
R.call(i, e) && c(l, e, i[e]);
|
|
11
|
+
return l;
|
|
12
|
+
}, s = (l, i) => B(l, V(i));
|
|
13
|
+
var a = (l, i, e) => (c(l, typeof i != "symbol" ? i + "" : i, e), e);
|
|
14
14
|
import W from "../PanoMeasurePlugin/Controller/index.js";
|
|
15
15
|
import m from "../PanoMeasurePlugin/Controller/EditController.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { PanoMagnifier as
|
|
19
|
-
import { resolveEdgeSnapOptions as
|
|
20
|
-
import { isTouchDevice as
|
|
21
|
-
import { PanoEditControllerV2 as h, PanoMixedControllerV2 as
|
|
22
|
-
|
|
16
|
+
import D from "../PanoMeasurePlugin/Controller/MixedController.js";
|
|
17
|
+
import K from "../PanoMeasurePlugin/Controller/WatchController.js";
|
|
18
|
+
import { PanoMagnifier as O } from "./PointSelector.js";
|
|
19
|
+
import { resolveEdgeSnapOptions as j } from "../MeasurePluginV2/edgeSnap.js";
|
|
20
|
+
import { isTouchDevice as F } from "../shared-utils/isTouchDevice.js";
|
|
21
|
+
import { PanoEditControllerV2 as h, PanoMixedControllerV2 as d, PanoWatchControllerV2 as k } from "./controllers.js";
|
|
22
|
+
import { PanoShortcutKeyControllerV2 as L } from "./ShortcutKeyController.js";
|
|
23
|
+
class Z extends W {
|
|
23
24
|
constructor(e, o = {}) {
|
|
24
|
-
var f,
|
|
25
|
-
const t = (
|
|
25
|
+
var f, g, p, u, P, S, y, C, v, b, E, M, x, I;
|
|
26
|
+
const t = (g = (f = o.openParams) == null ? void 0 : f.isMobile) != null ? g : F, r = s(n({}, o), {
|
|
26
27
|
openParams: s(n({}, o.openParams), { isMobile: t }),
|
|
27
|
-
editParams: s(n({}, o.editParams), { pointSelectorMode: (u = (
|
|
28
|
+
editParams: s(n({}, o.editParams), { pointSelectorMode: (u = (p = o.editParams) == null ? void 0 : p.pointSelectorMode) != null ? u : t ? "fixed" : "cursor", autoEndConfig: t ? n({ line: 2 }, (P = o.editParams) == null ? void 0 : P.autoEndConfig) : (S = o.editParams) == null ? void 0 : S.autoEndConfig }),
|
|
28
29
|
useUIController: t && o.useUIController !== !1 ? n({ useNewUI: !0, mode: "mobile" }, typeof o.useUIController == "object" ? o.useUIController : {}) : o.useUIController,
|
|
29
30
|
pointSelectorConfig: s(n({}, o.pointSelectorConfig), {
|
|
30
|
-
helper: s(n({}, (
|
|
31
|
+
helper: s(n({}, (y = o.pointSelectorConfig) == null ? void 0 : y.helper), {
|
|
31
32
|
magnifierParams: n(n(n({}, t ? { width: 150, height: 150, dragEnabled: !1, autoFixPCPosition: !1, initialPosition: { left: "12px", top: "12px" } } : {}), o.magnifierParams), (v = (C = o.pointSelectorConfig) == null ? void 0 : C.helper) == null ? void 0 : v.magnifierParams)
|
|
32
33
|
})
|
|
33
34
|
})
|
|
34
35
|
});
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
this
|
|
36
|
+
o.singleSegment && (r.editParams = s(n({}, r.editParams), { autoEndConfig: s(n({}, (b = r.editParams) == null ? void 0 : b.autoEndConfig), { line: void 0 }) }));
|
|
37
|
+
super(e, r);
|
|
38
|
+
a(this, "edgeSnapOptions");
|
|
39
|
+
a(this, "quickMeasureEnabled");
|
|
40
|
+
a(this, "singleSegment");
|
|
41
|
+
a(this, "mobileStyle");
|
|
42
|
+
a(this, "mixedSavedPolylineIDs", /* @__PURE__ */ new WeakMap());
|
|
43
|
+
a(this, "magnifierOptions");
|
|
44
|
+
a(this, "magnifierReady");
|
|
45
|
+
this.edgeSnapOptions = j(o.edgeSnap), this.quickMeasureEnabled = o.quickMeasure !== !1, this.singleSegment = o.singleSegment === !0, this.magnifierOptions = (I = (x = r.magnifierParams) != null ? x : (M = (E = r.pointSelectorConfig) == null ? void 0 : E.helper) == null ? void 0 : M.magnifierParams) != null ? I : { width: 190, height: 190, scale: 2 }, this.magnifierReady = !!e.renderer;
|
|
42
46
|
}
|
|
43
47
|
get pointSelector() {
|
|
44
48
|
const e = this.controller;
|
|
45
|
-
return e instanceof h || e instanceof
|
|
49
|
+
return e instanceof h || e instanceof d || e instanceof k ? e.selector : void 0;
|
|
46
50
|
}
|
|
47
51
|
get lastEdgeSnapEdgeCount() {
|
|
48
52
|
var e, o;
|
|
@@ -53,10 +57,10 @@ class Q extends W {
|
|
|
53
57
|
}
|
|
54
58
|
setEdgeSnapEnabled(e) {
|
|
55
59
|
var o, t;
|
|
56
|
-
this.edgeSnapOptions.enabled = e, (o = this.pointSelector) == null || o.resetSnap(), this.controller instanceof
|
|
60
|
+
this.edgeSnapOptions.enabled = e, (o = this.pointSelector) == null || o.resetSnap(), this.controller instanceof d ? this.controller.refreshPoint() : (t = this.pointSelector) == null || t.refresh(), this.five.needsRender = !0;
|
|
57
61
|
}
|
|
58
62
|
clear() {
|
|
59
|
-
const e = this.controller instanceof h ? m : this.controller instanceof
|
|
63
|
+
const e = this.controller instanceof h ? m : this.controller instanceof d ? D : void 0;
|
|
60
64
|
if (e) {
|
|
61
65
|
const o = e === m ? "Edit" : "Mixed";
|
|
62
66
|
this.controller.dispose(), super.clear(), this.controller = this.createModeController(this.createControllerParams(), e), this.hooks.emit("modeChange", o), this.resetUIController();
|
|
@@ -69,23 +73,23 @@ class Q extends W {
|
|
|
69
73
|
}
|
|
70
74
|
save(e) {
|
|
71
75
|
var o;
|
|
72
|
-
if (this.controller instanceof
|
|
76
|
+
if (this.controller instanceof d) {
|
|
73
77
|
const t = this.controller.model;
|
|
74
|
-
for (const
|
|
75
|
-
t.getPolylineByID(
|
|
76
|
-
for (const
|
|
77
|
-
this.model.getPolylineByID(
|
|
78
|
-
this.mixedSavedPolylineIDs.set(this.controller, new Set(t.polylines.map((
|
|
78
|
+
for (const r of (o = this.mixedSavedPolylineIDs.get(this.controller)) != null ? o : [])
|
|
79
|
+
t.getPolylineByID(r) || this.removePolylineByID(r);
|
|
80
|
+
for (const r of t.polylines)
|
|
81
|
+
this.model.getPolylineByID(r.id) || this.model.addPolyline(r);
|
|
82
|
+
this.mixedSavedPolylineIDs.set(this.controller, new Set(t.polylines.map((r) => r.id)));
|
|
79
83
|
}
|
|
80
84
|
return super.save(e);
|
|
81
85
|
}
|
|
82
86
|
removePolylineByID(e) {
|
|
83
87
|
var t;
|
|
84
|
-
const o = (t = this.model.getPolylineByID(e)) != null ? t : this.controller instanceof
|
|
88
|
+
const o = (t = this.model.getPolylineByID(e)) != null ? t : this.controller instanceof d ? this.controller.model.getPolylineByID(e) : void 0;
|
|
85
89
|
o && this.removePolyline(o);
|
|
86
90
|
}
|
|
87
91
|
removePolyline(e) {
|
|
88
|
-
if (this.controller instanceof
|
|
92
|
+
if (this.controller instanceof d) {
|
|
89
93
|
const o = this.controller.model.getPolylineByID(e.id);
|
|
90
94
|
o && this.controller.model.removePolyline(o);
|
|
91
95
|
}
|
|
@@ -106,15 +110,18 @@ class Q extends W {
|
|
|
106
110
|
}
|
|
107
111
|
`, e.container.append(this.mobileStyle)), e;
|
|
108
112
|
}
|
|
113
|
+
createShortcutKeyController() {
|
|
114
|
+
return new L(this, this.five);
|
|
115
|
+
}
|
|
109
116
|
createMagnifier(e, o) {
|
|
110
|
-
return new
|
|
117
|
+
return new O(e, o);
|
|
111
118
|
}
|
|
112
119
|
createModeController(e, o) {
|
|
113
|
-
this.magnifierReady || (this.magnifier.dispose(), this.magnifier = new
|
|
114
|
-
const t = s(n({}, e), { edgeSnapOptions: this.edgeSnapOptions });
|
|
115
|
-
return o === m ? new h(t) : o ===
|
|
120
|
+
this.magnifierReady || (this.magnifier.dispose(), this.magnifier = new O(e.five, this.magnifierOptions), this.magnifier.setUserEnabled(this.magnifierEnabled), this.magnifierReady = !0, e = s(n({}, e), { magnifier: this.magnifier }));
|
|
121
|
+
const t = s(n({}, e), { edgeSnapOptions: this.edgeSnapOptions, quickMeasure: this.quickMeasureEnabled, singleSegment: this.singleSegment });
|
|
122
|
+
return o === m ? new h(t) : o === D ? new d(t) : o === K ? new k(t) : super.createModeController(e, o);
|
|
116
123
|
}
|
|
117
124
|
}
|
|
118
125
|
export {
|
|
119
|
-
|
|
126
|
+
Z as PanoMeasureControllerV2
|
|
120
127
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
2
|
import { MeasurePointSelector } from '../MeasurePluginV2/PointSelector';
|
|
3
|
-
import { MeasureMagnifier } from '../MeasurePluginV2/Magnifier';
|
|
3
|
+
import { MeasureMagnifier, type MeasureMagnifierOptions } from '../MeasurePluginV2/Magnifier';
|
|
4
4
|
import { type ResolvedEdgeSnapOptions } from '../MeasurePluginV2/edgeSnap';
|
|
5
5
|
import type { PointIntersection, PointSelectorConfig } from '../shared-utils/three/PointSelector';
|
|
6
6
|
/** The panorama entry uses the same snapping engine as spatial measurement V2. */
|
|
7
7
|
declare class PanoMagnifier extends MeasureMagnifier {
|
|
8
|
+
constructor(five: Five, options?: MeasureMagnifierOptions);
|
|
8
9
|
appendTo(element: Element): this;
|
|
9
10
|
}
|
|
10
11
|
export { PanoMagnifier };
|