@realsee/dnalogel 3.81.27 → 3.81.29
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 +12 -0
- package/README.md +1 -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/PanoPatchPlugin/Controller.d.ts +38 -0
- package/dist/PanoPatchPlugin/constants.d.ts +15 -0
- package/dist/PanoPatchPlugin/geometry.d.ts +14 -0
- package/dist/PanoPatchPlugin/index.d.ts +2 -0
- package/dist/PanoPatchPlugin/typings.d.ts +15 -0
- package/dist/index.cjs.js +99 -99
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8007 -7608
- 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/PanoPatchPluginController.html +17 -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 +82 -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/PanoPatch.html +8 -0
- package/docs/interfaces/PanoPatchCandidate.html +5 -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 +393 -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/PanoPatchPlugin/Controller.d.ts +38 -0
- package/libs/PanoPatchPlugin/Controller.js +135 -0
- package/libs/PanoPatchPlugin/constants.d.ts +15 -0
- package/libs/PanoPatchPlugin/constants.js +10 -0
- package/libs/PanoPatchPlugin/geometry.d.ts +14 -0
- package/libs/PanoPatchPlugin/geometry.js +28 -0
- package/libs/PanoPatchPlugin/index.d.ts +2 -0
- package/libs/PanoPatchPlugin/index.js +8 -0
- package/libs/PanoPatchPlugin/typings.d.ts +15 -0
- package/libs/PanoPatchPlugin/typings.js +1 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +203 -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,27 +1,24 @@
|
|
|
1
1
|
var l = Object.defineProperty, c = Object.defineProperties;
|
|
2
2
|
var g = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var p = Object.getOwnPropertySymbols;
|
|
4
4
|
var m = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
m.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
M.call(
|
|
5
|
+
var u = (s, i, t) => i in s ? l(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, o = (s, i) => {
|
|
6
|
+
for (var t in i || (i = {}))
|
|
7
|
+
m.call(i, t) && u(s, t, i[t]);
|
|
8
|
+
if (p)
|
|
9
|
+
for (var t of p(i))
|
|
10
|
+
M.call(i, t) && u(s, t, i[t]);
|
|
11
11
|
return s;
|
|
12
|
-
},
|
|
13
|
-
var r = (s,
|
|
12
|
+
}, d = (s, i) => c(s, g(i));
|
|
13
|
+
var r = (s, i, t) => (u(s, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
14
|
import { MeasurePointSelector as v } from "./PointSelector.js";
|
|
15
15
|
import { MeasureController as f } from "../MeasurePlugin/Controller.js";
|
|
16
16
|
import { isTouchDevice as S } from "../shared-utils/isTouchDevice.js";
|
|
17
|
-
import { MeasureMagnifier as E } from "./Magnifier.js";
|
|
18
|
-
import { MeasurePointHelperV2 as
|
|
19
|
-
import { EdgeSnapCache as
|
|
20
|
-
import { QuickNormalMeasure as
|
|
21
|
-
|
|
22
|
-
return typeof window == "undefined" ? 1 : Math.min(2, Math.max(1, Math.ceil(window.devicePixelRatio || 1)));
|
|
23
|
-
}
|
|
24
|
-
class D extends f {
|
|
17
|
+
import { MeasureMagnifier as E, getMeasureMagnifierDefaults as k } from "./Magnifier.js";
|
|
18
|
+
import { MeasurePointHelperV2 as C } from "./PointHelper.js";
|
|
19
|
+
import { EdgeSnapCache as F, resolveEdgeSnapOptions as P } from "./edgeSnap.js";
|
|
20
|
+
import { QuickNormalMeasure as b } from "./normalMeasure.js";
|
|
21
|
+
class R extends f {
|
|
25
22
|
constructor(t, e) {
|
|
26
23
|
super(t, e);
|
|
27
24
|
/** 最近一次查询到的候选边数量,示例页 / 调试用 */
|
|
@@ -30,14 +27,14 @@ class D extends f {
|
|
|
30
27
|
r(this, "v2Magnifier");
|
|
31
28
|
r(this, "v2Attached", !1);
|
|
32
29
|
r(this, "edgeSnapOptions");
|
|
33
|
-
r(this, "edgeSnapCache", new
|
|
30
|
+
r(this, "edgeSnapCache", new F());
|
|
34
31
|
r(this, "quickMeasureEnabled");
|
|
35
32
|
r(this, "quickMeasure");
|
|
36
|
-
this.v2Five = t, this.edgeSnapOptions =
|
|
37
|
-
const
|
|
33
|
+
this.v2Five = t, this.edgeSnapOptions = P(e == null ? void 0 : e.edgeSnap), this.quickMeasureEnabled = (e == null ? void 0 : e.quickMeasure) !== !1;
|
|
34
|
+
const a = this.measure;
|
|
38
35
|
this.measure = () => {
|
|
39
36
|
var h;
|
|
40
|
-
this.edgeSnapCache.clear(), this.lastEdgeSnapEdgeCount = 0, this.pointSelector.clearDynamicAdhereLine(), (h = this.quickMeasure) == null || h.reset(),
|
|
37
|
+
this.edgeSnapCache.clear(), this.lastEdgeSnapEdgeCount = 0, this.pointSelector.clearDynamicAdhereLine(), (h = this.quickMeasure) == null || h.reset(), a();
|
|
41
38
|
};
|
|
42
39
|
const n = this.dispose;
|
|
43
40
|
this.dispose = () => {
|
|
@@ -57,7 +54,7 @@ class D extends f {
|
|
|
57
54
|
return this.v2Magnifier;
|
|
58
55
|
}
|
|
59
56
|
createPointSelector() {
|
|
60
|
-
return new v(this.v2Five, { mode: "cursor", helper:
|
|
57
|
+
return new v(this.v2Five, { mode: "cursor", helper: o({ pointHelper: "highlight" }, S ? { magnifierParams: { width: 150, height: 150, dragEnabled: !1, autoFixPCPosition: !1, initialPosition: { left: "12px", top: "12px" } } } : {}), skipPanorama: !1 });
|
|
61
58
|
}
|
|
62
59
|
get pointSelector() {
|
|
63
60
|
const t = super.pointSelector;
|
|
@@ -65,44 +62,39 @@ class D extends f {
|
|
|
65
62
|
}
|
|
66
63
|
attachOverlayRenderers(t) {
|
|
67
64
|
const e = t.pointSelectorHelper;
|
|
68
|
-
this.attachMagnifier(e), this.attachPointHelper(e), this.attachEdgeSnap(t), this.attachQuickMeasure(t), t.on("intersectionUpdate", (
|
|
65
|
+
this.attachMagnifier(e), this.attachPointHelper(e), this.attachEdgeSnap(t), this.attachQuickMeasure(t), t.on("intersectionUpdate", (a) => {
|
|
69
66
|
var n;
|
|
70
|
-
(n = this.v2Magnifier) == null || n.setIntersection(
|
|
67
|
+
(n = this.v2Magnifier) == null || n.setIntersection(a != null ? a : null);
|
|
71
68
|
});
|
|
72
69
|
}
|
|
73
70
|
attachMagnifier(t) {
|
|
74
71
|
const e = t.magnifier;
|
|
75
72
|
if (!e)
|
|
76
73
|
return;
|
|
77
|
-
const
|
|
74
|
+
const a = new E(this.v2Five, o(d(o({}, e.config), {
|
|
78
75
|
width: e.width,
|
|
79
76
|
height: e.height,
|
|
80
|
-
scale: e.scale
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
closeupMode: "rotate",
|
|
84
|
-
// 远点自动提高光学倍率,放大镜里看到的物体大小基本恒定
|
|
85
|
-
adaptiveReadWindow: !0
|
|
86
|
-
}));
|
|
87
|
-
i.setUserEnabled(this.magnifierEnabled), e.containerDom && i.appendTo(e.containerDom), e.state.enabled && i.enable(), t.magnifier = i, e.dispose(), this.v2Magnifier = i;
|
|
77
|
+
scale: e.scale
|
|
78
|
+
}), k()));
|
|
79
|
+
a.setUserEnabled(this.magnifierEnabled), e.containerDom && a.appendTo(e.containerDom), e.state.enabled && a.enable(), t.magnifier = a, e.dispose(), this.v2Magnifier = a;
|
|
88
80
|
}
|
|
89
81
|
attachPointHelper(t) {
|
|
90
|
-
const e = t.pointHelper,
|
|
91
|
-
t.pointHelper =
|
|
82
|
+
const e = t.pointHelper, a = new C(this.v2Five);
|
|
83
|
+
t.pointHelper = a, e == null || e.dispose(), e != null && e.parent && e.parent.remove(e);
|
|
92
84
|
}
|
|
93
85
|
/** 双击快速测量:只在测量过程中生效,选点链路仍由原 MeasureController 负责 */
|
|
94
86
|
attachQuickMeasure(t) {
|
|
95
|
-
this.quickMeasureEnabled && (this.quickMeasure = new
|
|
87
|
+
this.quickMeasureEnabled && (this.quickMeasure = new b({
|
|
96
88
|
getCamera: () => this.v2Five.camera,
|
|
97
89
|
getElement: () => this.v2Five.getElement(),
|
|
98
90
|
raycast: (e) => this.v2Five.model.intersectRaycaster(e),
|
|
99
91
|
getMeasuringPoints: () => {
|
|
100
|
-
var e,
|
|
101
|
-
return (
|
|
92
|
+
var e, a;
|
|
93
|
+
return (a = (e = this.currentMeasureMesh) == null ? void 0 : e.points) != null ? a : null;
|
|
102
94
|
},
|
|
103
|
-
finish: (e,
|
|
95
|
+
finish: (e, a) => {
|
|
104
96
|
const n = this.currentMeasureMesh;
|
|
105
|
-
return n ? (n.setPoints([e,
|
|
97
|
+
return n ? (n.setPoints([e, a]), this.continueMeasureFrom ? (this.continueMeasureFrom(a), !0) : (this.endMeasure(), !1)) : !1;
|
|
106
98
|
},
|
|
107
99
|
cancelStart: () => this.undo()
|
|
108
100
|
}), this.quickMeasure.attach(t));
|
|
@@ -115,11 +107,11 @@ class D extends f {
|
|
|
115
107
|
t.adhereLineProvider = ({ intersection: e }) => {
|
|
116
108
|
if (!(e != null && e.point))
|
|
117
109
|
return [];
|
|
118
|
-
const
|
|
119
|
-
return this.lastEdgeSnapEdgeCount =
|
|
110
|
+
const a = this.edgeSnapCache.query(this.v2Five.model, e.point, this.edgeSnapOptions);
|
|
111
|
+
return this.lastEdgeSnapEdgeCount = a.length, a;
|
|
120
112
|
};
|
|
121
113
|
}
|
|
122
114
|
}
|
|
123
115
|
export {
|
|
124
|
-
|
|
116
|
+
R as MeasureControllerV2
|
|
125
117
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var v = (s, i, e) => i in s ? m(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
|
|
3
3
|
var a = (s, i, e) => (v(s, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
-
import * as
|
|
4
|
+
import * as u from "three";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
6
6
|
import { Magnifier as y } from "../shared-utils/three/Magnifier.js";
|
|
7
7
|
import "../shared-utils/three/PointSelector/index.js";
|
|
@@ -15,8 +15,15 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
15
15
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
16
16
|
import "../vendor/earcut/src/earcut.js";
|
|
17
17
|
import "../shared-utils/five/FivePuppet.js";
|
|
18
|
-
import { CLOSEUP_MAX_DEVIATION as f, resolveCloseupView as
|
|
19
|
-
import { drawMeasureOverlay as
|
|
18
|
+
import { CLOSEUP_MAX_DEVIATION as f, resolveCloseupView as M } from "./closeupView.js";
|
|
19
|
+
import { drawMeasureOverlay as x, getWorldNormal as g } from "./PointOverlay.js";
|
|
20
|
+
function D() {
|
|
21
|
+
return {
|
|
22
|
+
readPixelsPixelRatio: typeof window == "undefined" ? 1 : Math.min(2, Math.max(1, Math.ceil(window.devicePixelRatio || 1))),
|
|
23
|
+
closeupMode: "rotate",
|
|
24
|
+
adaptiveReadWindow: !0
|
|
25
|
+
};
|
|
26
|
+
}
|
|
20
27
|
class U extends y {
|
|
21
28
|
constructor(e, t) {
|
|
22
29
|
var r;
|
|
@@ -82,7 +89,7 @@ class U extends y {
|
|
|
82
89
|
if (!t)
|
|
83
90
|
return;
|
|
84
91
|
const r = this.getOverlayContext();
|
|
85
|
-
r &&
|
|
92
|
+
r && x(r, t, e);
|
|
86
93
|
}
|
|
87
94
|
/**
|
|
88
95
|
* 近景 3D 视角:读像素前调整相机取向,让视线朝落点所在表面的法线偏一点
|
|
@@ -110,7 +117,7 @@ class U extends y {
|
|
|
110
117
|
return;
|
|
111
118
|
const h = e.point && e.point.distanceTo(t) < 1e-4 ? g(e) : null;
|
|
112
119
|
r.updateMatrixWorld();
|
|
113
|
-
const l = this.closeupMode === "rotate", o = l ? Math.max(0, Math.min(f,
|
|
120
|
+
const l = this.closeupMode === "rotate", o = l ? Math.max(0, Math.min(f, u.MathUtils.degToRad(r.fov || 60) / 2 - u.MathUtils.degToRad(4))) : void 0, n = M({
|
|
114
121
|
point: t,
|
|
115
122
|
normal: h,
|
|
116
123
|
cameraPosition: r.position,
|
|
@@ -122,9 +129,9 @@ class U extends y {
|
|
|
122
129
|
if (!n)
|
|
123
130
|
return;
|
|
124
131
|
this.closeupState = n.state;
|
|
125
|
-
const c = r.position.clone(),
|
|
132
|
+
const c = r.position.clone(), d = r.quaternion.clone();
|
|
126
133
|
return r.position.copy(n.position), r.quaternion.copy(n.quaternion), r.updateMatrixWorld(!0), () => {
|
|
127
|
-
r.position.copy(c), r.quaternion.copy(
|
|
134
|
+
r.position.copy(c), r.quaternion.copy(d), r.updateMatrixWorld(!0);
|
|
128
135
|
};
|
|
129
136
|
}
|
|
130
137
|
/** 只记录投影要用的矩阵;Five 的相机 clone() 开销大,也不保证可用 */
|
|
@@ -133,7 +140,7 @@ class U extends y {
|
|
|
133
140
|
const e = this.overlayFive.camera;
|
|
134
141
|
if (!e)
|
|
135
142
|
return;
|
|
136
|
-
const t = (r = this.overlayCamera) != null ? r : this.overlayCamera = new
|
|
143
|
+
const t = (r = this.overlayCamera) != null ? r : this.overlayCamera = new u.Camera();
|
|
137
144
|
t.matrixWorld.copy(e.matrixWorld), t.matrixWorldInverse.copy(e.matrixWorldInverse), t.projectionMatrix.copy(e.projectionMatrix), t.projectionMatrixInverse.copy(e.projectionMatrixInverse), t.position.copy(e.position);
|
|
138
145
|
}
|
|
139
146
|
getOverlayContext() {
|
|
@@ -148,11 +155,11 @@ class U extends y {
|
|
|
148
155
|
const e = this.overlayFive;
|
|
149
156
|
if (!e.renderer || !e.camera)
|
|
150
157
|
return null;
|
|
151
|
-
const t = this.getRenderCenter(), r = e.renderer.getSize(new
|
|
158
|
+
const t = this.getRenderCenter(), r = e.renderer.getSize(new u.Vector2()), [h, l] = (() => {
|
|
152
159
|
var c;
|
|
153
160
|
if (t.isVector3) {
|
|
154
|
-
const
|
|
155
|
-
return [(
|
|
161
|
+
const d = t.clone().project((c = this.overlayCamera) != null ? c : e.camera);
|
|
162
|
+
return [(d.x + 1) / 2 * r.x, (d.y + 1) / 2 * r.y];
|
|
156
163
|
}
|
|
157
164
|
return [t.x, r.y - t.y];
|
|
158
165
|
})(), o = this.getReadWindowInfo();
|
|
@@ -171,5 +178,6 @@ class U extends y {
|
|
|
171
178
|
}
|
|
172
179
|
}
|
|
173
180
|
export {
|
|
174
|
-
U as MeasureMagnifier
|
|
181
|
+
U as MeasureMagnifier,
|
|
182
|
+
D as getMeasureMagnifierDefaults
|
|
175
183
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
var H = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var z = Object.getOwnPropertySymbols;
|
|
3
3
|
var F = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var N = (
|
|
4
|
+
var N = (f, s, e) => s in f ? H(f, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : f[s] = e, j = (f, s) => {
|
|
5
5
|
for (var e in s || (s = {}))
|
|
6
|
-
F.call(s, e) && N(
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
k.call(s, e) && N(
|
|
10
|
-
return
|
|
6
|
+
F.call(s, e) && N(f, e, s[e]);
|
|
7
|
+
if (z)
|
|
8
|
+
for (var e of z(s))
|
|
9
|
+
k.call(s, e) && N(f, e, s[e]);
|
|
10
|
+
return f;
|
|
11
11
|
};
|
|
12
|
-
var R = (
|
|
12
|
+
var R = (f, s, e) => (N(f, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
13
|
import { CURSOR_NOT_ALLOW_URL as U } from "../shared-utils/three/PointSelector/utils/contents.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as i from "three";
|
|
15
15
|
import { PointSelector as B } from "../shared-utils/three/PointSelector/index.js";
|
|
16
16
|
import { getRaycasterByNdcPosition as Y } from "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
17
|
-
const T = new
|
|
18
|
-
function
|
|
19
|
-
const { rayOrigin: s, rayDirection: e, line: t, clampToLine:
|
|
17
|
+
const T = new i.Vector3(), I = new i.Vector3(), v = new i.Vector3(), E = new i.Vector3(), K = 4, W = 0.6, q = 60;
|
|
18
|
+
function C(f) {
|
|
19
|
+
const { rayOrigin: s, rayDirection: e, line: t, clampToLine: m } = f;
|
|
20
20
|
T.subVectors(t.end, t.start);
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
21
|
+
const l = T.lengthSq();
|
|
22
|
+
if (l < 1e-12)
|
|
23
23
|
return 0;
|
|
24
24
|
I.subVectors(s, t.start);
|
|
25
|
-
const a = e.dot(T),
|
|
25
|
+
const a = e.dot(T), P = e.dot(I), y = T.dot(I), b = l - a * a;
|
|
26
26
|
let h;
|
|
27
27
|
if (b < 1e-9) {
|
|
28
|
-
const
|
|
29
|
-
h =
|
|
28
|
+
const d = new i.Vector3().subVectors(t.start, s).cross(e).length(), c = new i.Vector3().subVectors(t.end, s).cross(e).length();
|
|
29
|
+
h = d <= c ? 0 : 1;
|
|
30
30
|
} else
|
|
31
|
-
h = (
|
|
32
|
-
return
|
|
31
|
+
h = (y - a * P) / b;
|
|
32
|
+
return m ? Math.min(1, Math.max(0, h)) : h;
|
|
33
33
|
}
|
|
34
34
|
class Z extends B {
|
|
35
35
|
constructor() {
|
|
@@ -62,33 +62,33 @@ class Z extends B {
|
|
|
62
62
|
this.adhereEnabled = !0, this.clearDynamicAdhereLine();
|
|
63
63
|
});
|
|
64
64
|
R(this, "updatePointSelectorHelperIntersect", (e) => {
|
|
65
|
-
var
|
|
65
|
+
var m, l, a, P, y, b, h, d;
|
|
66
66
|
if (!e) {
|
|
67
67
|
this.dynamicAdhereLine = null, this.pointSelectorHelper.hide(), this.pointSelectorHelper.position = e, this.emit("intersectionUpdate", e), this.five.getElement().style.cursor = U;
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
|
|
71
|
-
const t =
|
|
71
|
+
const t = j({}, e);
|
|
72
72
|
if (this.adhereEnabled && this.mouseNdcPosition && this.five.renderer && typeof this.adhereRadius == "number") {
|
|
73
73
|
const c = {
|
|
74
74
|
x: this.mouseNdcPosition.x,
|
|
75
75
|
y: 1 - this.mouseNdcPosition.y
|
|
76
|
-
}, w = this.five.renderer.getSize(new
|
|
76
|
+
}, w = this.five.renderer.getSize(new i.Vector2()), g = (l = (m = this.adhereLineProvider) == null ? void 0 : m.call(this, { intersection: e, pointSelector: this })) != null ? l : [];
|
|
77
77
|
if (typeof this.adherePoints == "function" || this.adherePlane.length > 0 || this.adhereLine.length > 0 || g.length > 0 || this.dynamicAdhereLine !== null) {
|
|
78
|
-
for (const
|
|
79
|
-
const o =
|
|
80
|
-
let L =
|
|
81
|
-
(!this.plane || this.plane.distanceToPoint(L) < 0.01) && (L = (
|
|
78
|
+
for (const n of this.adherePlane) {
|
|
79
|
+
const o = n.distanceToPoint(e.point);
|
|
80
|
+
let L = n.projectPoint(e.point, new i.Vector3());
|
|
81
|
+
(!this.plane || this.plane.distanceToPoint(L) < 0.01) && (L = (P = (a = this.plane) == null ? void 0 : a.projectPoint(L, new i.Vector3())) != null ? P : L, o < this.adhereRadius && (t.point = L.clone(), t.adherePoint = L.clone(), this.plane || (t.face = new i.Face3(0, 0, 0, n.normal.clone())), t.isAdsorbed = !0));
|
|
82
82
|
}
|
|
83
|
-
for (const
|
|
83
|
+
for (const n of this.adhereLine) {
|
|
84
84
|
const o = this.getLineAdhereResult({
|
|
85
|
-
adhereLine:
|
|
85
|
+
adhereLine: n,
|
|
86
86
|
point: e.point,
|
|
87
87
|
clampToLine: !1,
|
|
88
88
|
mouseNdcPosition: c,
|
|
89
89
|
size: w
|
|
90
90
|
});
|
|
91
|
-
o && (t.point = o.point, t.adhereLine =
|
|
91
|
+
o && (t.point = o.point, t.adhereLine = n.clone(), t.isAdsorbed = !0);
|
|
92
92
|
}
|
|
93
93
|
const A = this.getBestDynamicAdhereResult({
|
|
94
94
|
lines: g,
|
|
@@ -97,36 +97,36 @@ class Z extends B {
|
|
|
97
97
|
size: w
|
|
98
98
|
});
|
|
99
99
|
A && (t.point = A.point, t.adhereLine = A.line.clone(), t.isAdsorbed = !0);
|
|
100
|
-
for (const
|
|
101
|
-
const o =
|
|
102
|
-
if (o.IsAlwaysVisible =
|
|
100
|
+
for (const n of (b = (y = this.adherePoints) == null ? void 0 : y.call(this, { intersection: e, pointSelectorInstance: this })) != null ? b : []) {
|
|
101
|
+
const o = n instanceof i.Face3 ? new i.Vector3(n.a, n.b, n.c) : n;
|
|
102
|
+
if (o.IsAlwaysVisible = n.IsAlwaysVisible, this.plane && this.plane.distanceToPoint(o) > 0.01)
|
|
103
103
|
continue;
|
|
104
104
|
if (o.distanceTo(e.point) < this.adhereRadius) {
|
|
105
|
-
t.point = (
|
|
105
|
+
t.point = (d = (h = this.plane) == null ? void 0 : h.projectPoint(o, new i.Vector3())) != null ? d : o.clone(), !this.plane && n instanceof i.Face3 && (t.face = n), t.isAdsorbed = !0;
|
|
106
106
|
break;
|
|
107
107
|
} else {
|
|
108
108
|
const r = o.clone().project(this.five.camera);
|
|
109
109
|
if (r.z > 1)
|
|
110
110
|
continue;
|
|
111
|
-
const
|
|
111
|
+
const p = this.five.renderer.getSize(new i.Vector2()), D = {
|
|
112
112
|
x: (r.x + 1) / 2,
|
|
113
113
|
y: (1 - r.y) / 2
|
|
114
114
|
}, V = {
|
|
115
|
-
x: Math.abs(D.x - c.x) *
|
|
116
|
-
y: Math.abs(D.y - c.y) *
|
|
115
|
+
x: Math.abs(D.x - c.x) * p.width,
|
|
116
|
+
y: Math.abs(D.y - c.y) * p.height
|
|
117
117
|
};
|
|
118
118
|
if (V.x < 10 && V.y < 10) {
|
|
119
|
-
let
|
|
119
|
+
let x = !1;
|
|
120
120
|
if (o.IsAlwaysVisible)
|
|
121
|
-
|
|
121
|
+
x = !0;
|
|
122
122
|
else {
|
|
123
|
-
const M = new
|
|
123
|
+
const M = new i.Raycaster();
|
|
124
124
|
M.setFromCamera(o.clone(), this.five.camera);
|
|
125
|
-
const
|
|
126
|
-
|
|
125
|
+
const S = this.five.model.intersectRaycaster(M)[0], _ = 0.1, O = this.five.camera.position.distanceTo(o);
|
|
126
|
+
S && S.distance < O + _ && (x = !0);
|
|
127
127
|
}
|
|
128
|
-
if (
|
|
129
|
-
t.point = o.clone(), !this.plane &&
|
|
128
|
+
if (x) {
|
|
129
|
+
t.point = o.clone(), !this.plane && n instanceof i.Face3 && (t.face = n), t.isAdsorbed = !0;
|
|
130
130
|
break;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -158,27 +158,27 @@ class Z extends B {
|
|
|
158
158
|
* @description 计算一条静态吸附线的吸附结果(3D 距离优先,其次屏幕距离)
|
|
159
159
|
*/
|
|
160
160
|
getLineAdhereResult(e) {
|
|
161
|
-
var w, g,
|
|
162
|
-
const { adhereLine: t, point:
|
|
163
|
-
if (
|
|
164
|
-
return this.plane && Math.abs(this.plane.distanceToPoint(
|
|
165
|
-
const b =
|
|
161
|
+
var w, g, u, A;
|
|
162
|
+
const { adhereLine: t, point: m, clampToLine: l, mouseNdcPosition: a, size: P } = e, y = t.closestPointToPoint(m, l, new i.Vector3());
|
|
163
|
+
if (y.distanceTo(m) < this.adhereRadius)
|
|
164
|
+
return this.plane && Math.abs(this.plane.distanceToPoint(y)) > 0.01 ? null : { point: (g = (w = this.plane) == null ? void 0 : w.projectPoint(y, new i.Vector3())) != null ? g : y };
|
|
165
|
+
const b = m.clone().sub(this.five.camera.position).normalize(), h = new i.Vector3().lerpVectors(
|
|
166
166
|
t.start,
|
|
167
167
|
t.end,
|
|
168
|
-
|
|
168
|
+
C({
|
|
169
169
|
rayOrigin: this.five.camera.position,
|
|
170
170
|
rayDirection: b,
|
|
171
171
|
line: t,
|
|
172
|
-
clampToLine:
|
|
172
|
+
clampToLine: l
|
|
173
173
|
})
|
|
174
|
-
),
|
|
175
|
-
if (
|
|
174
|
+
), d = h.clone().project(this.five.camera);
|
|
175
|
+
if (![d.x, d.y, d.z].every(Number.isFinite) || d.z < -1 || d.z > 1)
|
|
176
176
|
return null;
|
|
177
177
|
const c = {
|
|
178
|
-
x: Math.abs((
|
|
179
|
-
y: Math.abs((1 -
|
|
178
|
+
x: Math.abs((d.x + 1) / 2 - a.x) * P.width,
|
|
179
|
+
y: Math.abs((1 - d.y) / 2 - a.y) * P.height
|
|
180
180
|
};
|
|
181
|
-
return c.x >= 10 || c.y >= 10 || this.plane && Math.abs(this.plane.distanceToPoint(h)) > 0.01 ? null : { point: (A = (
|
|
181
|
+
return c.x >= 10 || c.y >= 10 || this.plane && Math.abs(this.plane.distanceToPoint(h)) > 0.01 ? null : { point: (A = (u = this.plane) == null ? void 0 : u.projectPoint(h, new i.Vector3())) != null ? A : h };
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* @description 在动态吸附线(模型边)中选出屏幕上离光标最近的一条。
|
|
@@ -190,47 +190,47 @@ class Z extends B {
|
|
|
190
190
|
*/
|
|
191
191
|
getBestDynamicAdhereResult(e) {
|
|
192
192
|
var o, L;
|
|
193
|
-
const { lines: t, point:
|
|
193
|
+
const { lines: t, point: m, mouseNdcPosition: l, size: a } = e;
|
|
194
194
|
if (t.length === 0 && !this.dynamicAdhereLine)
|
|
195
195
|
return this.dynamicAdhereLine = null, null;
|
|
196
|
-
const
|
|
197
|
-
const D =
|
|
198
|
-
|
|
199
|
-
const V =
|
|
200
|
-
if (V > this.dynamicAdhereMaxDistance || this.plane && Math.abs(this.plane.distanceToPoint(
|
|
196
|
+
const P = Y(this.five, { x: l.x, y: 1 - l.y }), y = P.ray.origin, b = P.ray.direction, h = l.x * a.width, d = l.y * a.height, c = [], w = (r, p) => {
|
|
197
|
+
const D = C({ rayOrigin: y, rayDirection: b, line: r, clampToLine: !0 });
|
|
198
|
+
v.lerpVectors(r.start, r.end, D);
|
|
199
|
+
const V = v.distanceTo(m);
|
|
200
|
+
if (V > this.dynamicAdhereMaxDistance || this.plane && Math.abs(this.plane.distanceToPoint(v)) > 0.01 || (E.copy(v).project(this.five.camera), E.z > 1))
|
|
201
201
|
return null;
|
|
202
|
-
const
|
|
203
|
-
(
|
|
204
|
-
(1 -
|
|
205
|
-
),
|
|
206
|
-
return
|
|
202
|
+
const x = Math.hypot(
|
|
203
|
+
(E.x + 1) / 2 * a.width - h,
|
|
204
|
+
(1 - E.y) / 2 * a.height - d
|
|
205
|
+
), S = 1 - 0.6 * (this.dynamicAdhereMaxDistance > 0 ? Math.min(1, V / this.dynamicAdhereMaxDistance) : 0), _ = (p ? this.dynamicAdhereKeepScreenRadius : this.dynamicAdhereScreenRadius) * S;
|
|
206
|
+
return x > _ ? null : { line: r, t: D, screenDistance: x, depthDistance: V, isSticky: p };
|
|
207
207
|
}, g = this.dynamicAdhereLine;
|
|
208
208
|
if (g) {
|
|
209
209
|
const r = w(g, !0);
|
|
210
210
|
r && c.push(r);
|
|
211
211
|
}
|
|
212
212
|
for (const r of t) {
|
|
213
|
-
const
|
|
214
|
-
|
|
213
|
+
const p = w(r, !1);
|
|
214
|
+
p && c.push(p);
|
|
215
215
|
}
|
|
216
216
|
if (c.length === 0)
|
|
217
217
|
return this.dynamicAdhereLine = null, null;
|
|
218
|
-
let
|
|
218
|
+
let u = null;
|
|
219
219
|
const A = c.find((r) => r.isSticky);
|
|
220
|
-
if (A && A.screenDistance <= this.dynamicAdhereScreenRadius * W && (
|
|
220
|
+
if (A && A.screenDistance <= this.dynamicAdhereScreenRadius * W && (u = A), !u) {
|
|
221
221
|
let r = 1 / 0;
|
|
222
|
-
for (const
|
|
223
|
-
const D =
|
|
224
|
-
D < r && (r = D,
|
|
222
|
+
for (const p of c) {
|
|
223
|
+
const D = p.screenDistance + p.depthDistance * q - (p.isSticky ? K : 0);
|
|
224
|
+
D < r && (r = D, u = p);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
if (!
|
|
227
|
+
if (!u)
|
|
228
228
|
return this.dynamicAdhereLine = null, null;
|
|
229
|
-
this.dynamicAdhereLine =
|
|
230
|
-
const
|
|
229
|
+
this.dynamicAdhereLine = u.line.clone();
|
|
230
|
+
const n = new i.Vector3().lerpVectors(u.line.start, u.line.end, u.t);
|
|
231
231
|
return {
|
|
232
|
-
line:
|
|
233
|
-
point: (L = (o = this.plane) == null ? void 0 : o.projectPoint(
|
|
232
|
+
line: u.line,
|
|
233
|
+
point: (L = (o = this.plane) == null ? void 0 : o.projectPoint(n, new i.Vector3())) != null ? L : n
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Line from '../Model/line';
|
|
2
|
+
import Point from '../Model/point';
|
|
2
3
|
import BaseController from './BaseController';
|
|
3
4
|
import type { ControllerParams } from './BaseController';
|
|
4
5
|
import { Polyline } from '../Model/polyline';
|
|
@@ -11,12 +12,14 @@ export default class EditController extends BaseController {
|
|
|
11
12
|
private hasAppendDashed;
|
|
12
13
|
private fiveElement?;
|
|
13
14
|
/** 上一个端点位置 */
|
|
14
|
-
|
|
15
|
+
protected lastPoint: Point | null;
|
|
15
16
|
protected pointSelector: PointSelector;
|
|
16
17
|
private deleteDom;
|
|
17
18
|
/** 根据 intersection 更新放大镜和吸附点 */
|
|
18
19
|
private onIntersectionUpdate;
|
|
19
20
|
constructor(params: ControllerParams);
|
|
21
|
+
/** Drop only the unfinished drawing; keep imported and already completed rulers. */
|
|
22
|
+
protected discardCurrentDrawing(): void;
|
|
20
23
|
protected createPointSelector(_params: ControllerParams): PointSelector;
|
|
21
24
|
setMagnifierEnabled(enabled: boolean): void;
|
|
22
25
|
protected disposeMagnifier(): void;
|
|
@@ -36,7 +39,7 @@ export default class EditController extends BaseController {
|
|
|
36
39
|
complete(): void;
|
|
37
40
|
private checkMouseLeave;
|
|
38
41
|
/** 编辑线条发生改变时通知外部 */
|
|
39
|
-
|
|
42
|
+
protected onLineChanged: () => void;
|
|
40
43
|
private onWantsSelect;
|
|
41
44
|
private wantsMoveToPano;
|
|
42
45
|
/**
|