@realsee/dnalogel 3.81.26 → 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 +13 -0
- package/dist/MeasurePluginV2/Magnifier.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +6 -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 +7393 -7116
- 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/BaseController.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +4 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +6 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +49 -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 +33 -30
- 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,41 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
z.call(
|
|
1
|
+
var T = Object.defineProperty, A = Object.defineProperties;
|
|
2
|
+
var N = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var x = Object.getOwnPropertySymbols;
|
|
4
|
+
var V = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var k = (y, u, e) => u in y ? T(y, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : y[u] = e, c = (y, u) => {
|
|
6
|
+
for (var e in u || (u = {}))
|
|
7
|
+
V.call(u, e) && k(y, e, u[e]);
|
|
8
|
+
if (x)
|
|
9
|
+
for (var e of x(u))
|
|
10
|
+
z.call(u, e) && k(y, e, u[e]);
|
|
11
11
|
return y;
|
|
12
|
-
}, E = (y,
|
|
13
|
-
var o = (y,
|
|
14
|
-
import * as
|
|
12
|
+
}, E = (y, u) => A(y, N(u));
|
|
13
|
+
var o = (y, u, e) => (k(y, typeof u != "symbol" ? u + "" : u, e), e);
|
|
14
|
+
import * as I from "three";
|
|
15
15
|
import "../shared-utils/tag.js";
|
|
16
16
|
import "../vendor/hammerjs/hammer.js";
|
|
17
|
-
import { Subscribe as
|
|
18
|
-
import { PointSelector as
|
|
19
|
-
import { getObjectVisible as
|
|
17
|
+
import { Subscribe as W } from "../shared-utils/Subscribe.js";
|
|
18
|
+
import { PointSelector as G } from "../shared-utils/three/PointSelector/index.js";
|
|
19
|
+
import { getObjectVisible as X } from "../shared-utils/three/getObjectVisible.js";
|
|
20
20
|
import "../shared-utils/three/CSS3DRenderer/index.js";
|
|
21
21
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
-
import { LineMesh as
|
|
22
|
+
import { LineMesh as F } from "../Sculpt/Meshes/Line.js";
|
|
23
23
|
import "../shared-utils/three/core/Sphere.js";
|
|
24
24
|
import "../shared-utils/three/blink.js";
|
|
25
25
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
26
26
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
27
27
|
import "../vendor/earcut/src/earcut.js";
|
|
28
|
-
import { FiveDomEvents as
|
|
28
|
+
import { FiveDomEvents as Y } from "../shared-utils/five/FiveDomEvents.js";
|
|
29
29
|
import "../shared-utils/five/FivePuppet.js";
|
|
30
|
-
import { isMeasureMesh as
|
|
31
|
-
import { PointMesh as
|
|
32
|
-
import { LineWithDotsMesh as
|
|
30
|
+
import { isMeasureMesh as R, MeasureMesh as H } from "./utils/MeasureMesh.js";
|
|
31
|
+
import { PointMesh as B } from "../Sculpt/Meshes/Point.js";
|
|
32
|
+
import { LineWithDotsMesh as j } from "../Sculpt/Meshes/LineWithDots.js";
|
|
33
33
|
import { hotkeys as m } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
34
|
-
import { PolygonMesh as
|
|
35
|
-
import { validatePolygon as
|
|
36
|
-
import { IObject3D as
|
|
37
|
-
import { Cursor as
|
|
38
|
-
import { THREERaycaster as
|
|
34
|
+
import { PolygonMesh as $ } from "../Sculpt/Meshes/Polygon.js";
|
|
35
|
+
import { validatePolygon as K } from "./utils/validatePolygon.js";
|
|
36
|
+
import { IObject3D as q } from "../shared-utils/three/IObject3D.js";
|
|
37
|
+
import { Cursor as J } from "../Sculpt/utils/Modules/Cursor.js";
|
|
38
|
+
import { THREERaycaster as Q } from "../shared-utils/three/core/Raycaster.js";
|
|
39
|
+
import { getMeasureAxes as Z, getMeasureCorner as U } from "../shared-utils/three/measureDrawing.js";
|
|
40
|
+
import { ENDPOINT_TOUCH_RADIUS as ee, ENDPOINT_MOUSE_RADIUS as te, ENDPOINT_HOLD_MS as ne, ENDPOINT_HOLD_MOVE as ie } from "../shared-utils/three/EndpointPointerGesture.js";
|
|
39
41
|
import "../shared-utils/positionToVector3.js";
|
|
40
42
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
41
43
|
import "../shared-utils/five/getFiveModel.js";
|
|
@@ -97,7 +99,7 @@ import "../shared-utils/three/geometryUtil.js";
|
|
|
97
99
|
import "../shared-utils/three/vectorIsEqual.js";
|
|
98
100
|
import "../Sculpt/utils/Modules/DeleteButtonBgBorder.js";
|
|
99
101
|
import "../Sculpt/utils/Modules/DeleteIconSVG.js";
|
|
100
|
-
class
|
|
102
|
+
class Tt extends W {
|
|
101
103
|
constructor(e, t) {
|
|
102
104
|
super();
|
|
103
105
|
o(this, "name", "MeasurePlugin");
|
|
@@ -151,105 +153,107 @@ class Ct extends O {
|
|
|
151
153
|
*/
|
|
152
154
|
o(this, "unselectAllMeasureMeshes", () => {
|
|
153
155
|
this.group.children.forEach((e) => {
|
|
154
|
-
|
|
156
|
+
R(e) && e.unselect();
|
|
155
157
|
});
|
|
156
158
|
});
|
|
157
159
|
/**
|
|
158
160
|
* @description 开始测量
|
|
159
161
|
*/
|
|
160
162
|
o(this, "measure", () => {
|
|
161
|
-
var
|
|
163
|
+
var v;
|
|
162
164
|
if (this.currentMeasureMesh)
|
|
163
165
|
return;
|
|
164
|
-
(
|
|
165
|
-
let e = new
|
|
166
|
+
(v = this.cleanupPendingPress) == null || v.call(this), this.repositioningState && this.cancelRepositioning(), this.listener.addMeasureListener(), m.unbind("delete, backspace", this.deleteSelectedMesh), this.unselectAllMeasureMeshes(), this.cursor.removeDeleteButton();
|
|
167
|
+
let e = new H({
|
|
166
168
|
lineStyle: this.lineStyle,
|
|
167
169
|
polygonStyle: this.polygonStyle
|
|
168
170
|
});
|
|
169
171
|
this.currentMeasureMesh = e, e.line.setStyle({ cssStyle: "pointer-events: none;" }), this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
|
|
170
|
-
const t = new
|
|
172
|
+
const t = new B({ occlusionMode: "depthTest", occlusionVisibility: !0 }), n = new j(E(c({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), i = new $(this.polygonStyle), r = new F(E(c({}, this.lineStyle), {
|
|
171
173
|
lineOpacity: 0.5,
|
|
172
174
|
lineColor: 3407837,
|
|
173
175
|
dashed: !0,
|
|
174
176
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
175
|
-
})),
|
|
177
|
+
})), h = new F(E(c({}, this.lineStyle), {
|
|
176
178
|
lineOpacity: 0.5,
|
|
177
179
|
lineColor: 3407837,
|
|
178
180
|
dashed: !0,
|
|
179
181
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
180
|
-
})), l = new
|
|
181
|
-
let s = null, d = !1,
|
|
182
|
-
const
|
|
183
|
-
|
|
184
|
-
}, M = (
|
|
185
|
-
|
|
186
|
-
},
|
|
187
|
-
|
|
182
|
+
})), l = new B({ occlusionMode: "depthTest", occlusionVisibility: !0, color: 3407837, opacity: 0.5 });
|
|
183
|
+
let s = null, d = !1, g = !1;
|
|
184
|
+
const f = (a) => {
|
|
185
|
+
a.key === "Shift" && (g = !0);
|
|
186
|
+
}, M = (a) => {
|
|
187
|
+
a.key === "Shift" && (g = !1);
|
|
188
|
+
}, _ = () => {
|
|
189
|
+
g = !1;
|
|
190
|
+
}, S = () => {
|
|
191
|
+
t.removeFromParent(), n.removeFromParent(), i.removeFromParent(), r.removeFromParent(), h.removeFromParent(), l.removeFromParent();
|
|
188
192
|
};
|
|
189
|
-
this.group.add(e), document.addEventListener("keydown",
|
|
190
|
-
const b = (
|
|
191
|
-
if (!
|
|
192
|
-
|
|
193
|
+
this.group.add(e), document.addEventListener("keydown", f), document.addEventListener("keyup", M), window.addEventListener("blur", _);
|
|
194
|
+
const b = (a) => {
|
|
195
|
+
if (!a) {
|
|
196
|
+
S(), s = null, d = !1;
|
|
193
197
|
return;
|
|
194
198
|
}
|
|
195
|
-
if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(t), t.position.copy(
|
|
196
|
-
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", t.removeFromParent(), this.group.addIfNotExists(n), n.setStyle(E(
|
|
197
|
-
r.removeFromParent(),
|
|
199
|
+
if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(t), t.position.copy(a.point), s = null, d = !1), e.points.length >= 1)
|
|
200
|
+
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", t.removeFromParent(), this.group.addIfNotExists(n), n.setStyle(E(c({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), n.setPoints([e.points.at(-1), a.point]), a.isAdsorbed)
|
|
201
|
+
r.removeFromParent(), h.removeFromParent(), l.removeFromParent(), s = null, d = !1;
|
|
198
202
|
else {
|
|
199
|
-
const
|
|
200
|
-
if (Math.abs(
|
|
201
|
-
const
|
|
202
|
-
r.setStyle(E(
|
|
203
|
+
const p = e.points.at(-1);
|
|
204
|
+
if (Math.abs(a.point.y - p.y) > 0.2) {
|
|
205
|
+
const P = U(p, a.point);
|
|
206
|
+
r.setStyle(E(c({}, this.lineStyle), {
|
|
203
207
|
lineOpacity: 0.5,
|
|
204
208
|
lineColor: 3407837,
|
|
205
209
|
dashed: !0,
|
|
206
210
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
207
|
-
})),
|
|
211
|
+
})), h.setStyle(E(c({}, this.lineStyle), {
|
|
208
212
|
lineOpacity: 0.5,
|
|
209
213
|
lineColor: 3407837,
|
|
210
214
|
dashed: !0,
|
|
211
215
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
212
|
-
})), r.setPoints([
|
|
216
|
+
})), r.setPoints([p, P]), h.setPoints([P, a.point]), l.position.copy(P), s = P.clone(), d = !0;
|
|
213
217
|
} else {
|
|
214
|
-
|
|
215
|
-
|
|
218
|
+
const P = U(p, a.point);
|
|
219
|
+
r.setStyle(E(c({}, this.lineStyle), {
|
|
216
220
|
lineOpacity: 0.5,
|
|
217
221
|
lineColor: 3407837,
|
|
218
222
|
dashed: !0,
|
|
219
223
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
220
|
-
})),
|
|
224
|
+
})), h.setStyle(E(c({}, this.lineStyle), {
|
|
221
225
|
lineOpacity: 0.5,
|
|
222
226
|
lineColor: 3407837,
|
|
223
227
|
dashed: !0,
|
|
224
228
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
225
|
-
})), r.setPoints([
|
|
229
|
+
})), r.setPoints([p, P]), h.setPoints([P, a.point]), l.position.copy(P), s = P.clone(), d = !0;
|
|
226
230
|
}
|
|
227
|
-
this.group.addIfNotExists(r,
|
|
231
|
+
this.group.addIfNotExists(r, h, l);
|
|
228
232
|
}
|
|
229
233
|
if (e.points.length >= 2) {
|
|
230
|
-
const
|
|
231
|
-
|
|
234
|
+
const p = [...e.points, a.point];
|
|
235
|
+
K(p) ? (i.setStyle(c({}, this.polygonStyle)), i.setPoints(p), this.group.addIfNotExists(i)) : i.removeFromParent();
|
|
232
236
|
}
|
|
233
|
-
}, L = (
|
|
234
|
-
if (!
|
|
237
|
+
}, L = (a) => {
|
|
238
|
+
if (!a)
|
|
235
239
|
return;
|
|
236
|
-
let
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
var
|
|
240
|
-
e == null || e.setPoints(e.points.slice(0, -1)),
|
|
241
|
-
},
|
|
240
|
+
let p = a.point;
|
|
241
|
+
g && d && s && e.points.length >= 1 && (p = s.clone()), S(), e.setPoints([...e.points, p]), this.updateSelectAdsorbedHelper(), this.publishInteraction("drawing"), e.isPolygon && (this.currentEndReason = "polygon", this.pointSelector.disable());
|
|
242
|
+
}, w = () => {
|
|
243
|
+
var a, p;
|
|
244
|
+
e == null || e.setPoints(e.points.slice(0, -1)), S(), (p = (a = this.pointSelector.pointSelectorHelper) == null ? void 0 : a.magnifier) == null || p.render(), this.updateSelectAdsorbedHelper(), this.publishInteraction("drawing"), this.five.needsRender = !0;
|
|
245
|
+
}, C = (a) => {
|
|
242
246
|
if (this.currentMeasureMesh !== e)
|
|
243
247
|
return;
|
|
244
|
-
e.line.setStyle({ cssStyle: "pointer-events: auto;" }), e.__five_pano_index = this.five.panoIndex, this.addMeshEventListeners(e),
|
|
245
|
-
const
|
|
246
|
-
|
|
247
|
-
},
|
|
248
|
-
this.continueMeasureFrom = void 0, this.pointSelector.off("intersectionUpdate", b), this.pointSelector.off("select", L), this.pointSelector.off("disable",
|
|
249
|
-
let
|
|
250
|
-
|
|
248
|
+
e.line.setStyle({ cssStyle: "pointer-events: auto;" }), e.__five_pano_index = this.five.panoIndex, this.addMeshEventListeners(e), S();
|
|
249
|
+
const p = new H({ lineStyle: this.lineStyle, polygonStyle: this.polygonStyle });
|
|
250
|
+
p.line.setStyle({ cssStyle: "pointer-events: none;" }), p.setPoints([a.clone()]), this.group.add(p), e = p, this.currentMeasureMesh = p, this.pointSelector.actionIfNoIntersection = "virtualPoint", this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
|
|
251
|
+
}, D = () => {
|
|
252
|
+
this.continueMeasureFrom = void 0, this.pointSelector.off("intersectionUpdate", b), this.pointSelector.off("select", L), this.pointSelector.off("disable", D), this.off("undo", w), document.removeEventListener("keydown", f), document.removeEventListener("keyup", M), window.removeEventListener("blur", _), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), S();
|
|
253
|
+
let a = this.currentEndReason, p = !0;
|
|
254
|
+
a === "escape" ? (e.removeFromParent(), p = !1) : e.points.length < 2 ? (e.removeFromParent(), a = "points_insufficient", p = !1) : this.addMeshEventListeners(e), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.removeMeasureListener(), m("delete, backspace", this.deleteSelectedMesh), this.publishInteraction("idle"), this.emit("measureEnd", a, p ? e.points : []), this.currentEndReason = "enter";
|
|
251
255
|
};
|
|
252
|
-
this.continueMeasureFrom =
|
|
256
|
+
this.continueMeasureFrom = C, this.on("undo", w), this.pointSelector.on("intersectionUpdate", b), this.pointSelector.on("select", L), this.pointSelector.on("disable", D), this.pointSelector.enable(), this.publishInteraction("drawing");
|
|
253
257
|
});
|
|
254
258
|
/**
|
|
255
259
|
* @description 结束测量
|
|
@@ -287,13 +291,13 @@ class Ct extends O {
|
|
|
287
291
|
*/
|
|
288
292
|
o(this, "setLengthEnable", (e) => {
|
|
289
293
|
this.lineStyle.lengthEnable = e, this.polygonStyle.lengthEnable = e, this.group.children.forEach((t) => {
|
|
290
|
-
|
|
291
|
-
lineStyle:
|
|
292
|
-
polygonStyle:
|
|
294
|
+
R(t) && (t.changeConfig({
|
|
295
|
+
lineStyle: c({}, this.lineStyle),
|
|
296
|
+
polygonStyle: c({}, this.polygonStyle)
|
|
293
297
|
}), this.addMeshEventListeners(t));
|
|
294
298
|
}), this.currentMeasureMesh && this.currentMeasureMesh.changeConfig({
|
|
295
|
-
lineStyle:
|
|
296
|
-
polygonStyle:
|
|
299
|
+
lineStyle: c({}, this.lineStyle),
|
|
300
|
+
polygonStyle: c({}, this.polygonStyle)
|
|
297
301
|
}), this.five.needsRender = !0;
|
|
298
302
|
});
|
|
299
303
|
/**
|
|
@@ -304,16 +308,16 @@ class Ct extends O {
|
|
|
304
308
|
if (this._config && (this._config.unit = e), this.lineStyle.lengthUnit = e, this.polygonStyle.lengthUnit = e, this.group.children.forEach((t) => {
|
|
305
309
|
try {
|
|
306
310
|
t.changeConfig({
|
|
307
|
-
lineStyle:
|
|
308
|
-
polygonStyle:
|
|
311
|
+
lineStyle: c({}, this.lineStyle),
|
|
312
|
+
polygonStyle: c({}, this.polygonStyle)
|
|
309
313
|
}), this.addMeshEventListeners(t);
|
|
310
314
|
} catch (n) {
|
|
311
315
|
}
|
|
312
316
|
}), this.currentMeasureMesh)
|
|
313
317
|
try {
|
|
314
318
|
this.currentMeasureMesh.changeConfig({
|
|
315
|
-
lineStyle:
|
|
316
|
-
polygonStyle:
|
|
319
|
+
lineStyle: c({}, this.lineStyle),
|
|
320
|
+
polygonStyle: c({}, this.polygonStyle)
|
|
317
321
|
});
|
|
318
322
|
} catch (t) {
|
|
319
323
|
}
|
|
@@ -328,16 +332,16 @@ class Ct extends O {
|
|
|
328
332
|
if (this._config && (this._config.precision = e), this.lineStyle.precision = e, this.group.children.forEach((t) => {
|
|
329
333
|
try {
|
|
330
334
|
t.changeConfig({
|
|
331
|
-
lineStyle:
|
|
332
|
-
polygonStyle:
|
|
335
|
+
lineStyle: c({}, this.lineStyle),
|
|
336
|
+
polygonStyle: c({}, this.polygonStyle)
|
|
333
337
|
}), this.addMeshEventListeners(t);
|
|
334
338
|
} catch (n) {
|
|
335
339
|
}
|
|
336
340
|
}), this.currentMeasureMesh)
|
|
337
341
|
try {
|
|
338
342
|
this.currentMeasureMesh.changeConfig({
|
|
339
|
-
lineStyle:
|
|
340
|
-
polygonStyle:
|
|
343
|
+
lineStyle: c({}, this.lineStyle),
|
|
344
|
+
polygonStyle: c({}, this.polygonStyle)
|
|
341
345
|
});
|
|
342
346
|
} catch (t) {
|
|
343
347
|
}
|
|
@@ -367,7 +371,7 @@ class Ct extends O {
|
|
|
367
371
|
*/
|
|
368
372
|
o(this, "clear", () => {
|
|
369
373
|
var e;
|
|
370
|
-
(e = this.cleanupPendingPress) == null || e.call(this), this.cancelRepositioning(), this.currentMeasureMesh = null, this.pointSelector.disable(), this.group.children.filter(
|
|
374
|
+
(e = this.cleanupPendingPress) == null || e.call(this), this.cancelRepositioning(), this.currentMeasureMesh = null, this.pointSelector.disable(), this.group.children.filter(R).forEach(this.removeMeshEventListeners), this.group.removeChildren(), this.cursor.removeDeleteButton(), this.publishInteraction("idle");
|
|
371
375
|
});
|
|
372
376
|
o(this, "dispose", () => {
|
|
373
377
|
var e, t;
|
|
@@ -381,7 +385,7 @@ class Ct extends O {
|
|
|
381
385
|
removeClickListener: () => {
|
|
382
386
|
this.group.children.forEach((e) => {
|
|
383
387
|
var t, n;
|
|
384
|
-
|
|
388
|
+
R(e) && ((t = e.line.doms) == null || t.forEach((i) => {
|
|
385
389
|
i != null && i.container && (i.container.onclick = null, i.container.onmouseenter = null, i.container.onmouseleave = null);
|
|
386
390
|
}), (n = e.polygon.areaDom) != null && n.container && (e.polygon.areaDom.container.onclick = null, e.polygon.areaDom.container.onmouseenter = null, e.polygon.areaDom.container.onmouseleave = null));
|
|
387
391
|
}), this.fiveDomEvents.clear(), this.five.off("panoArrived", this.onMoveToPano), this.five.off("modeChange", this.onModeChange), m.unbind("delete, backspace", this.deleteSelectedMesh);
|
|
@@ -397,7 +401,7 @@ class Ct extends O {
|
|
|
397
401
|
o(this, "onMoveToPano", (e) => {
|
|
398
402
|
var i;
|
|
399
403
|
(i = this.cleanupPendingPress) == null || i.call(this), this.cancelRepositioning();
|
|
400
|
-
const t = this.group.children.filter((r) => r !== this.currentMeasureMesh &&
|
|
404
|
+
const t = this.group.children.filter((r) => r !== this.currentMeasureMesh && R(r)), n = new Q();
|
|
401
405
|
t.forEach((r) => {
|
|
402
406
|
var l;
|
|
403
407
|
if (r.unselect(), r.__five_pano_index === e) {
|
|
@@ -405,14 +409,14 @@ class Ct extends O {
|
|
|
405
409
|
return;
|
|
406
410
|
}
|
|
407
411
|
((l = r.line.points) == null ? void 0 : l.some((s) => {
|
|
408
|
-
var
|
|
412
|
+
var b, L;
|
|
409
413
|
const d = s.clone().sub(this.five.camera.position).normalize();
|
|
410
414
|
n.set(this.five.camera.position, d);
|
|
411
|
-
const
|
|
412
|
-
if (!
|
|
415
|
+
const g = (L = (b = this.five.model.intersectRaycaster(n)) == null ? void 0 : b[0]) == null ? void 0 : L.point;
|
|
416
|
+
if (!g)
|
|
413
417
|
return !0;
|
|
414
|
-
const
|
|
415
|
-
return
|
|
418
|
+
const f = 0.01, M = s.distanceTo(this.five.camera.position);
|
|
419
|
+
return g.distanceTo(this.five.camera.position) + f > M;
|
|
416
420
|
})) ? r.visible = !0 : r.visible = !1, this.five.needsRender = !0;
|
|
417
421
|
});
|
|
418
422
|
});
|
|
@@ -425,7 +429,7 @@ class Ct extends O {
|
|
|
425
429
|
o(this, "onClick", ({ origDomEvent: e, target: t }) => {
|
|
426
430
|
var s;
|
|
427
431
|
const n = t;
|
|
428
|
-
if (!
|
|
432
|
+
if (!R(n))
|
|
429
433
|
return;
|
|
430
434
|
if (n.selected) {
|
|
431
435
|
n.unselect(), this.cursor.removeDeleteButton();
|
|
@@ -435,14 +439,14 @@ class Ct extends O {
|
|
|
435
439
|
if (e && ("touches" in e && e.touches && e.touches[0] ? (i = e.touches[0].clientX, r = e.touches[0].clientY) : "clientX" in e && "clientY" in e && (i = e.clientX, r = e.clientY)), i === void 0 || r === void 0)
|
|
436
440
|
return;
|
|
437
441
|
this.unselectAllMeasureMeshes(), n.select();
|
|
438
|
-
const
|
|
442
|
+
const h = () => {
|
|
439
443
|
this.removeMeshEventListeners(n), n.removeFromParent(), this.publishInteraction("idle"), this.cursor.removeDeleteButton(), this.five.needsRender = !0;
|
|
440
444
|
}, l = ((s = this.five.getElement()) == null ? void 0 : s.parentElement) || document.body;
|
|
441
445
|
this.cursor.showDeleteButton({
|
|
442
446
|
clientX: i,
|
|
443
447
|
clientY: r,
|
|
444
448
|
container: l,
|
|
445
|
-
onClick:
|
|
449
|
+
onClick: h
|
|
446
450
|
}), this.five.once("cameraUpdate", () => {
|
|
447
451
|
n.unselect(), this.cursor.removeDeleteButton();
|
|
448
452
|
});
|
|
@@ -487,14 +491,10 @@ class Ct extends O {
|
|
|
487
491
|
if (this.currentMeasureMesh.points.length >= 1) {
|
|
488
492
|
this.pointSelector.setAdherePoints([this.currentMeasureMesh.points[0]]);
|
|
489
493
|
const e = this.currentMeasureMesh.points.at(-1);
|
|
490
|
-
this.pointSelector.adhereLine = [
|
|
491
|
-
new u.Line3(new u.Vector3(1, 0, 0).add(e), new u.Vector3(-1, 0, 0).add(e)),
|
|
492
|
-
new u.Line3(new u.Vector3(0, 1, 0).add(e), new u.Vector3(0, -1, 0).add(e)),
|
|
493
|
-
new u.Line3(new u.Vector3(0, 0, 1).add(e), new u.Vector3(0, 0, -1).add(e))
|
|
494
|
-
], this.pointSelector.adherePlane = [];
|
|
494
|
+
this.pointSelector.adhereLine = Z(e), this.pointSelector.adherePlane = [];
|
|
495
495
|
}
|
|
496
496
|
if (this.currentMeasureMesh.points.length >= 3) {
|
|
497
|
-
const e = new
|
|
497
|
+
const e = new I.Plane().setFromCoplanarPoints(
|
|
498
498
|
this.currentMeasureMesh.points[0],
|
|
499
499
|
this.currentMeasureMesh.points[1],
|
|
500
500
|
this.currentMeasureMesh.points[2]
|
|
@@ -514,16 +514,16 @@ class Ct extends O {
|
|
|
514
514
|
if (e.button !== 0 || !e.isPrimary || this.currentMeasureMesh || this.repositioningState)
|
|
515
515
|
return;
|
|
516
516
|
const t = this.five.getElement().getBoundingClientRect();
|
|
517
|
-
let n, i = e.pointerType === "touch" ?
|
|
518
|
-
for (const
|
|
519
|
-
for (const l of
|
|
520
|
-
if (!
|
|
517
|
+
let n, i = e.pointerType === "touch" ? ee : te;
|
|
518
|
+
for (const h of this.group.children)
|
|
519
|
+
for (const l of h.line.pointMeshes) {
|
|
520
|
+
if (!X(l))
|
|
521
521
|
continue;
|
|
522
|
-
const s = l.getWorldPosition(new
|
|
522
|
+
const s = l.getWorldPosition(new I.Vector3()).project(this.five.camera);
|
|
523
523
|
if (s.z < -1 || s.z > 1)
|
|
524
524
|
continue;
|
|
525
|
-
const d = t.left + (s.x + 1) * t.width / 2,
|
|
526
|
-
|
|
525
|
+
const d = t.left + (s.x + 1) * t.width / 2, g = t.top + (1 - s.y) * t.height / 2, f = Math.hypot(e.clientX - d, e.clientY - g);
|
|
526
|
+
f <= i && (n = l, i = f);
|
|
527
527
|
}
|
|
528
528
|
n ? (r = this.endpointPressHandlers.get(n)) == null || r(e) : this.interactionResult && this.publishInteraction("idle");
|
|
529
529
|
});
|
|
@@ -531,33 +531,33 @@ class Ct extends O {
|
|
|
531
531
|
var n;
|
|
532
532
|
const t = this.five.getElement();
|
|
533
533
|
t !== this.endpointPointerElement && ((n = this.endpointPointerElement) == null || n.removeEventListener("pointerdown", this.onEndpointPointerDown, !0), this.endpointPointerElement = t, t == null || t.addEventListener("pointerdown", this.onEndpointPointerDown, !0)), e.line.pointMeshes.forEach((i, r) => {
|
|
534
|
-
const
|
|
534
|
+
const h = e.isPolygon && r >= e.points.length - 1 ? 0 : r;
|
|
535
535
|
let l = !1, s;
|
|
536
|
-
const d = (
|
|
537
|
-
var
|
|
538
|
-
(
|
|
539
|
-
const M = { x:
|
|
536
|
+
const d = (f) => {
|
|
537
|
+
var D;
|
|
538
|
+
(D = this.cleanupPendingPress) == null || D.call(this), l = !1;
|
|
539
|
+
const M = { x: f.clientX, y: f.clientY };
|
|
540
540
|
this.showLongPressIndicator(i, M);
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
},
|
|
546
|
-
|
|
547
|
-
},
|
|
548
|
-
|
|
549
|
-
},
|
|
550
|
-
s == null || s(!1), l = !0, this.startRepositioning(e,
|
|
551
|
-
},
|
|
552
|
-
s = (
|
|
553
|
-
clearTimeout(C), document.removeEventListener("pointermove",
|
|
554
|
-
}, this.cleanupPendingPress = s, document.addEventListener("pointermove",
|
|
555
|
-
},
|
|
541
|
+
const _ = (v) => {
|
|
542
|
+
v.pointerId === f.pointerId && (!(v.buttons & 1) || Math.hypot(v.clientX - M.x, v.clientY - M.y) > ie) && (s == null || s());
|
|
543
|
+
}, S = (v) => {
|
|
544
|
+
v.pointerId === f.pointerId && (s == null || s());
|
|
545
|
+
}, b = (v) => {
|
|
546
|
+
v.pointerId !== f.pointerId && (s == null || s());
|
|
547
|
+
}, L = (v) => {
|
|
548
|
+
v.key === "Escape" && (s == null || s());
|
|
549
|
+
}, w = () => s == null ? void 0 : s(), C = setTimeout(() => {
|
|
550
|
+
s == null || s(!1), l = !0, this.startRepositioning(e, h, !0, M, f);
|
|
551
|
+
}, ne);
|
|
552
|
+
s = (v = !0) => {
|
|
553
|
+
clearTimeout(C), document.removeEventListener("pointermove", _, !0), document.removeEventListener("pointerup", S, !0), document.removeEventListener("pointercancel", S, !0), document.removeEventListener("pointerdown", b, !0), document.removeEventListener("keydown", L), window.removeEventListener("blur", w), this.hideLongPressIndicator(), this.cleanupPendingPress === s && (this.cleanupPendingPress = void 0, v && this.publishInteraction("idle"));
|
|
554
|
+
}, this.cleanupPendingPress = s, document.addEventListener("pointermove", _, !0), document.addEventListener("pointerup", S, !0), document.addEventListener("pointercancel", S, !0), document.addEventListener("pointerdown", b, !0), document.addEventListener("keydown", L), window.addEventListener("blur", w), this.publishInteraction("holding");
|
|
555
|
+
}, g = (f) => {
|
|
556
556
|
if (l)
|
|
557
|
-
return
|
|
557
|
+
return f.stopPropagation(), l = !1, !1;
|
|
558
558
|
};
|
|
559
|
-
this.endpointPressHandlers.set(i, d), this.fiveDomEvents.addEventListener(i, "click",
|
|
560
|
-
this.cleanupPendingPress === s && (s == null || s()), this.endpointPressHandlers.delete(i), this.fiveDomEvents.removeEventListener(i, "click",
|
|
559
|
+
this.endpointPressHandlers.set(i, d), this.fiveDomEvents.addEventListener(i, "click", g), i.__longPressCleanup = () => {
|
|
560
|
+
this.cleanupPendingPress === s && (s == null || s()), this.endpointPressHandlers.delete(i), this.fiveDomEvents.removeEventListener(i, "click", g);
|
|
561
561
|
};
|
|
562
562
|
});
|
|
563
563
|
});
|
|
@@ -567,7 +567,7 @@ class Ct extends O {
|
|
|
567
567
|
*/
|
|
568
568
|
o(this, "load", (e) => {
|
|
569
569
|
this.clear(), e.forEach((t) => {
|
|
570
|
-
const n = new
|
|
570
|
+
const n = new H({
|
|
571
571
|
lineStyle: this.lineStyle,
|
|
572
572
|
polygonStyle: this.polygonStyle
|
|
573
573
|
});
|
|
@@ -582,7 +582,7 @@ class Ct extends O {
|
|
|
582
582
|
measureMesh: e,
|
|
583
583
|
pointIndex: t,
|
|
584
584
|
originalOpacity: e.line.lineOpacity,
|
|
585
|
-
originalMeshState: e.points.map((
|
|
585
|
+
originalMeshState: e.points.map((h) => h.clone()),
|
|
586
586
|
isDragMode: n,
|
|
587
587
|
mouseDownPosition: i || void 0,
|
|
588
588
|
hasMoved: !1
|
|
@@ -597,23 +597,23 @@ class Ct extends O {
|
|
|
597
597
|
n === 0 ? t[r] = t[0].clone() : n === r && (t[0] = t[r].clone());
|
|
598
598
|
}
|
|
599
599
|
if (e.points = t, i && this.repositioningState) {
|
|
600
|
-
if (
|
|
600
|
+
if (F.prototype.setPoints.call(e.line, t), n !== void 0 && e.line.pointMeshes) {
|
|
601
601
|
const r = t[n];
|
|
602
602
|
if (e.isPolygon && t.length > 3) {
|
|
603
|
-
const
|
|
603
|
+
const h = t.length - 1;
|
|
604
604
|
if (n === 0) {
|
|
605
|
-
const l = e.line.pointMeshes[0], s = e.line.pointMeshes[
|
|
605
|
+
const l = e.line.pointMeshes[0], s = e.line.pointMeshes[h];
|
|
606
606
|
l && l.position.copy(r), s && s.position.copy(r);
|
|
607
|
-
} else if (n ===
|
|
608
|
-
const l = e.line.pointMeshes[0], s = e.line.pointMeshes[
|
|
607
|
+
} else if (n === h) {
|
|
608
|
+
const l = e.line.pointMeshes[0], s = e.line.pointMeshes[h];
|
|
609
609
|
l && l.position.copy(r), s && s.position.copy(r);
|
|
610
610
|
} else {
|
|
611
611
|
const l = e.line.pointMeshes[n];
|
|
612
612
|
l && l.position.copy(r);
|
|
613
613
|
}
|
|
614
614
|
} else {
|
|
615
|
-
const
|
|
616
|
-
|
|
615
|
+
const h = e.line.pointMeshes[n];
|
|
616
|
+
h && h.position.copy(r);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
e.isPolygon && e.polygon.setPoints(t);
|
|
@@ -691,25 +691,25 @@ class Ct extends O {
|
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
693
|
l.preventDefault();
|
|
694
|
-
const s = t.getBoundingClientRect(), d = new
|
|
695
|
-
d.setFromCamera(new
|
|
694
|
+
const s = t.getBoundingClientRect(), d = new I.Raycaster();
|
|
695
|
+
d.setFromCamera(new I.Vector2(
|
|
696
696
|
(l.clientX - s.left) / s.width * 2 - 1,
|
|
697
697
|
-((l.clientY - s.top) / s.height) * 2 + 1
|
|
698
698
|
), this.five.camera);
|
|
699
|
-
const
|
|
700
|
-
this.onRepositioningMove(
|
|
701
|
-
point: d.ray.at(5, new
|
|
699
|
+
const g = this.five.model.intersectRaycaster(d)[0];
|
|
700
|
+
this.onRepositioningMove(g ? E(c({}, g), { raycaster: d }) : {
|
|
701
|
+
point: d.ray.at(5, new I.Vector3()),
|
|
702
702
|
distance: 5,
|
|
703
703
|
raycaster: d,
|
|
704
704
|
isVirtual: !0
|
|
705
705
|
});
|
|
706
706
|
}, r = (l) => {
|
|
707
707
|
l.pointerId === e.pointerId && (l.type === "pointerup" ? this.confirmRepositioningOnDragEnd() : this.cancelRepositioning());
|
|
708
|
-
},
|
|
708
|
+
}, h = (l) => {
|
|
709
709
|
l.pointerId !== e.pointerId && this.cancelRepositioning();
|
|
710
710
|
};
|
|
711
|
-
document.addEventListener("pointermove", i, { capture: !0, passive: !1 }), document.addEventListener("pointerup", r, !0), document.addEventListener("pointercancel", r, !0), document.addEventListener("pointerdown",
|
|
712
|
-
document.removeEventListener("pointermove", i, !0), document.removeEventListener("pointerup", r, !0), document.removeEventListener("pointercancel", r, !0), document.removeEventListener("pointerdown",
|
|
711
|
+
document.addEventListener("pointermove", i, { capture: !0, passive: !1 }), document.addEventListener("pointerup", r, !0), document.addEventListener("pointercancel", r, !0), document.addEventListener("pointerdown", h, !0), n == null || n.addEventListener("lostpointercapture", this.cancelRepositioning), window.addEventListener("blur", this.cancelRepositioning), this.cleanupRepositioningListeners = () => {
|
|
712
|
+
document.removeEventListener("pointermove", i, !0), document.removeEventListener("pointerup", r, !0), document.removeEventListener("pointercancel", r, !0), document.removeEventListener("pointerdown", h, !0), n == null || n.removeEventListener("lostpointercapture", this.cancelRepositioning), window.removeEventListener("blur", this.cancelRepositioning), n != null && n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId);
|
|
713
713
|
}, n == null || n.setPointerCapture(e.pointerId);
|
|
714
714
|
});
|
|
715
715
|
/**
|
|
@@ -739,7 +739,7 @@ class Ct extends O {
|
|
|
739
739
|
if (t)
|
|
740
740
|
i.style.left = `${t.x}px`, i.style.top = `${t.y}px`, i.style.transform = "translate(-50%, -50%)";
|
|
741
741
|
else {
|
|
742
|
-
const
|
|
742
|
+
const h = e.getWorldPosition(new I.Vector3()).clone().project(this.five.camera), l = n.getBoundingClientRect(), s = (h.x + 1) * l.width / 2 + l.left, d = (-h.y + 1) * l.height / 2 + l.top;
|
|
743
743
|
i.style.left = `${s}px`, i.style.top = `${d}px`, i.style.transform = "translate(-50%, -50%)";
|
|
744
744
|
}
|
|
745
745
|
document.body.appendChild(i), this.longPressIndicator = i;
|
|
@@ -763,7 +763,7 @@ class Ct extends O {
|
|
|
763
763
|
});
|
|
764
764
|
this.five = e;
|
|
765
765
|
const n = { unit: "m", lengthEnable: !0, precision: 2 };
|
|
766
|
-
this.config = t ?
|
|
766
|
+
this.config = t ? c(c({}, n), t) : n, this.group = new q(), this.group.name = "MeasureGroup", this.group.__five__ = this.five, this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), m("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
|
|
767
767
|
}
|
|
768
768
|
get interactionState() {
|
|
769
769
|
var e, t;
|
|
@@ -789,22 +789,22 @@ class Ct extends O {
|
|
|
789
789
|
this._magnifierEnabled = e, (t = this._pointSelector) == null || t.pointSelectorHelper.setMagnifierEnabled(e);
|
|
790
790
|
}
|
|
791
791
|
createPointSelector() {
|
|
792
|
-
return new
|
|
792
|
+
return new G(this.five, { mode: "cursor", helper: { pointHelper: "highlight" }, skipPanorama: !0 });
|
|
793
793
|
}
|
|
794
794
|
get fiveDomEvents() {
|
|
795
|
-
return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new
|
|
795
|
+
return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new Y(this.five, { fiveModels: null }), this._fiveDomEvents);
|
|
796
796
|
}
|
|
797
797
|
get cursor() {
|
|
798
|
-
return this._cursor ? this._cursor : (this._cursor = new
|
|
798
|
+
return this._cursor ? this._cursor : (this._cursor = new J(), this._cursor);
|
|
799
799
|
}
|
|
800
800
|
get config() {
|
|
801
801
|
return this._config;
|
|
802
802
|
}
|
|
803
803
|
set config(e) {
|
|
804
804
|
var t, n;
|
|
805
|
-
this._config = e, this.lineStyle.lengthUnit = e.unit, this.polygonStyle.lengthUnit = e.unit, e.lengthEnable !== void 0 && (this.lineStyle.lengthEnable = e.lengthEnable, this.polygonStyle.lengthEnable = e.lengthEnable), e.precision !== void 0 && (this.lineStyle.precision = e.precision), (n = (t = this.group) == null ? void 0 : t.children) == null || n.filter(
|
|
805
|
+
this._config = e, this.lineStyle.lengthUnit = e.unit, this.polygonStyle.lengthUnit = e.unit, e.lengthEnable !== void 0 && (this.lineStyle.lengthEnable = e.lengthEnable, this.polygonStyle.lengthEnable = e.lengthEnable), e.precision !== void 0 && (this.lineStyle.precision = e.precision), (n = (t = this.group) == null ? void 0 : t.children) == null || n.filter(R).forEach((i) => i.changeConfig({ lineStyle: this.lineStyle, polygonStyle: this.polygonStyle }));
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
export {
|
|
809
|
-
|
|
809
|
+
Tt as MeasureController
|
|
810
810
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MeasureController as t } from "./Controller.js";
|
|
2
|
-
import { validatePolygon as
|
|
2
|
+
import { validatePolygon as Oo } from "./utils/validatePolygon.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "../shared-utils/tag.js";
|
|
5
5
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -84,9 +84,11 @@ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
|
84
84
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
85
85
|
import "../Sculpt/utils/Modules/DeleteButtonBgBorder.js";
|
|
86
86
|
import "../Sculpt/utils/Modules/DeleteIconSVG.js";
|
|
87
|
+
import "../shared-utils/three/measureDrawing.js";
|
|
88
|
+
import "../shared-utils/three/EndpointPointerGesture.js";
|
|
87
89
|
import "../shared-utils/three/vectorIsEqual.js";
|
|
88
|
-
const
|
|
90
|
+
const Ko = (o, r) => new t(o, r);
|
|
89
91
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
+
Ko as MeasurePlugin,
|
|
93
|
+
Oo as validatePolygon
|
|
92
94
|
};
|