@realsee/dnalogel 3.64.4 → 3.64.5-alpha.1
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/dist/MeasurePlugin/Controller.d.ts +11 -1
- package/dist/MeasurePlugin/utils/MeasureMesh.d.ts +7 -2
- package/dist/Sculpt/Meshes/Line.d.ts +6 -2
- package/dist/Sculpt/Meshes/Point.d.ts +4 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +4 -0
- package/dist/Sculpt/typings/style.d.ts +1 -1
- package/dist/Sculpt/utils/renderDom.d.ts +19 -0
- package/dist/Sculpt/utils/unit.d.ts +2 -0
- package/dist/index.cjs.js +70 -70
- package/dist/index.js +8349 -8258
- package/dist/index.umd.js +59 -59
- package/dist/shared-utils/five/FiveDomEvents.d.ts +2 -2
- package/dist/shared-utils/three/PointSelector/index.d.ts +4 -4
- package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
- package/docs/classes/ModelMakerPluginInstance.html +15 -15
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/classes/MoveController.html +17 -17
- package/docs/classes/Object3DHelperController.html +15 -15
- package/docs/classes/PaintBrush.html +5 -5
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +34 -34
- package/docs/classes/Sculpt.html +23 -23
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +4 -4
- package/docs/classes/Util.FivePuppet.html +3 -3
- package/docs/classes/Util.Interval.html +5 -5
- package/docs/classes/Util.LightTag.html +15 -15
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +6 -6
- package/docs/classes/Util.Object3D.html +4 -4
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +16 -16
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +5 -5
- package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
- package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
- package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.LineMesh.html +10 -6
- package/docs/classes/Util.sculpt.PointMesh.html +10 -6
- package/docs/classes/Util.sculpt.PolygonMesh.html +11 -7
- package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMesh.html +12 -8
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +12 -8
- package/docs/classes/WalkController.html +18 -18
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +15 -15
- package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +5 -5
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +8 -8
- package/docs/interfaces/FloorplanExtraObject.html +5 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +8 -8
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +5 -5
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +8 -8
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +9 -9
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -20
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +6 -6
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +6 -6
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
- package/docs/interfaces/PluginEventMap.html +4 -4
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +6 -6
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +5 -5
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
- package/docs/interfaces/Util.MagnifierParameter.html +5 -5
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +11 -11
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/SculptType.Theme.html +2 -2
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/AreaMakerPlugin/Controller.js +4 -2
- package/libs/AreaMakerPlugin/index.js +4 -2
- package/libs/AreaMakerPlugin/utils/Item.js +4 -2
- package/libs/CSS3DRenderPlugin/Controller.js +4 -2
- package/libs/CSS3DRenderPlugin/index.js +7 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
- package/libs/CruisePlugin/BaseController.js +14 -12
- package/libs/CruisePlugin/Move.js +4 -2
- package/libs/CruisePlugin/Work.js +4 -2
- package/libs/CruisePlugin/index.js +8 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
- package/libs/CurrentPanoImagePlugin/index.js +5 -3
- package/libs/GuideLinePlugin/Controller.js +6 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +4 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -2
- package/libs/GuideLinePlugin/index.js +8 -6
- package/libs/MeasurePlugin/Controller.d.ts +11 -1
- package/libs/MeasurePlugin/Controller.js +114 -83
- package/libs/MeasurePlugin/index.js +4 -3
- package/libs/MeasurePlugin/utils/MeasureMesh.d.ts +7 -2
- package/libs/MeasurePlugin/utils/MeasureMesh.js +36 -24
- package/libs/ModelMakerPlugin/Controller.js +4 -3
- package/libs/ModelMakerPlugin/index.js +4 -3
- package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +4 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +4 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +4 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
- package/libs/ModelTVVideoPlugin/index.js +4 -2
- package/libs/ModelViewPlugin/Plugin.js +5 -3
- package/libs/ModelViewPlugin/index.js +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +17 -15
- package/libs/Object3DHelperPlugin/index.js +7 -5
- package/libs/PanoCompassPlugin/Controller.js +4 -2
- package/libs/PanoCompassPlugin/index.js +5 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +4 -2
- package/libs/PanoDoorLabelPlugin/index.js +5 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +4 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +4 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +45 -43
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +4 -2
- package/libs/PanoMeasurePlugin/Model/area.js +13 -11
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +4 -2
- package/libs/PanoMeasurePlugin/index.js +15 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
- package/libs/PanoRulerProPlugin/Controller.js +4 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +4 -2
- package/libs/PanoRulerProPlugin/index.js +5 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +65 -63
- package/libs/PanoSpatialTagPlugin/index.js +2 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +59 -57
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -2
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +4 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +4 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +28 -26
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +4 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
- package/libs/PanoTagPlugin/controller/index.js +7 -5
- package/libs/PanoTagPlugin/index.js +13 -11
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +18 -16
- package/libs/PanoVideoPlugin/Controller.js +4 -2
- package/libs/PanoVideoPlugin/VideoMeshController.js +4 -2
- package/libs/PanoVideoPlugin/index.js +7 -5
- package/libs/PipelinePlugin/Controller.js +21 -19
- package/libs/PipelinePlugin/index.js +5 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +24 -22
- package/libs/Sculpt/Meshes/Line.d.ts +6 -2
- package/libs/Sculpt/Meshes/Line.js +109 -102
- package/libs/Sculpt/Meshes/Point.d.ts +4 -0
- package/libs/Sculpt/Meshes/Point.js +72 -62
- package/libs/Sculpt/Meshes/Polygon.d.ts +4 -0
- package/libs/Sculpt/Meshes/Polygon.js +57 -48
- package/libs/Sculpt/Meshes/Polyline.js +22 -25
- package/libs/Sculpt/Objects/Base/index.js +10 -13
- package/libs/Sculpt/typings/style.d.ts +1 -1
- package/libs/Sculpt/utils/renderDom.d.ts +19 -0
- package/libs/Sculpt/utils/renderDom.js +22 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +22 -21
- package/libs/Sculpt/utils/unit.d.ts +2 -0
- package/libs/Sculpt/utils/unit.js +26 -0
- package/libs/base/BasePlugin.js +3 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +4 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
- package/libs/index.js +147 -146
- package/libs/shared-utils/five/FiveDomEvents.d.ts +2 -2
- package/libs/shared-utils/five/FiveDomEvents.js +71 -69
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +4 -4
- package/libs/shared-utils/three/PointSelector/index.js +6 -5
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -3
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +91 -91
- package/package.json +1 -1
- package/libs/Sculpt/utils/removeAllTag.js +0 -13
|
@@ -83,6 +83,8 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
83
83
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
84
84
|
import "../shared-utils/three/core/Line2.js";
|
|
85
85
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
86
|
+
import "../Sculpt/utils/unit.js";
|
|
87
|
+
import "../Sculpt/utils/renderDom.js";
|
|
86
88
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
87
89
|
import "../shared-utils/isTouchDevice.js";
|
|
88
90
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -91,7 +93,7 @@ import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
|
91
93
|
import "../Sculpt/utils/three/rayOnLine.js";
|
|
92
94
|
import "@realsee/five";
|
|
93
95
|
import "../shared-utils/isTruelyObject.js";
|
|
94
|
-
class
|
|
96
|
+
class Ue extends M {
|
|
95
97
|
constructor(e, i) {
|
|
96
98
|
super(e);
|
|
97
99
|
// ==================== public properties ====================
|
|
@@ -322,5 +324,5 @@ class Ie extends M {
|
|
|
322
324
|
}
|
|
323
325
|
}
|
|
324
326
|
export {
|
|
325
|
-
|
|
327
|
+
Ue as CurrentPanoImagePluginController
|
|
326
328
|
};
|
|
@@ -52,6 +52,8 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
52
52
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
53
53
|
import "../shared-utils/three/core/Line2.js";
|
|
54
54
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
55
|
+
import "../Sculpt/utils/unit.js";
|
|
56
|
+
import "../Sculpt/utils/renderDom.js";
|
|
55
57
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
56
58
|
import "../shared-utils/isTouchDevice.js";
|
|
57
59
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -64,8 +66,8 @@ import "../shared-utils/animationFrame/index.js";
|
|
|
64
66
|
import "../shared-utils/equal.js";
|
|
65
67
|
import "../shared-utils/isTruelyObject.js";
|
|
66
68
|
import "../shared-utils/three/loadTexture.js";
|
|
67
|
-
const
|
|
69
|
+
const cr = (r, o) => new t(r, o);
|
|
68
70
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
cr as CurrentPanoImagePlugin,
|
|
72
|
+
cr as default
|
|
71
73
|
};
|
|
@@ -86,6 +86,8 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
86
86
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
87
87
|
import "../shared-utils/three/core/Line2.js";
|
|
88
88
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
89
|
+
import "../Sculpt/utils/unit.js";
|
|
90
|
+
import "../Sculpt/utils/renderDom.js";
|
|
89
91
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
90
92
|
import "../shared-utils/isTouchDevice.js";
|
|
91
93
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -244,8 +246,8 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
244
246
|
import "../CruisePlugin/utils/safeCall.js";
|
|
245
247
|
import "../CruisePlugin/utils/sleep.js";
|
|
246
248
|
import "../shared-utils/five/fiveLoaded.js";
|
|
247
|
-
const b = "GuideLinePlugin", g = `${b}`,
|
|
248
|
-
class
|
|
249
|
+
const b = "GuideLinePlugin", g = `${b}`, qo = (p) => `${g}--${p}`;
|
|
250
|
+
class zo extends P {
|
|
249
251
|
constructor(t, i) {
|
|
250
252
|
super(t, i);
|
|
251
253
|
h(this, "name", b);
|
|
@@ -385,6 +387,6 @@ class Ro extends P {
|
|
|
385
387
|
}
|
|
386
388
|
}
|
|
387
389
|
export {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
+
zo as default,
|
|
391
|
+
qo as pluginFlag
|
|
390
392
|
};
|
|
@@ -5,7 +5,7 @@ import "../shared-utils/five/changeMode.js";
|
|
|
5
5
|
import "../CruisePlugin/Move.js";
|
|
6
6
|
import "../CruisePlugin/Work.js";
|
|
7
7
|
import "../shared-utils/Subscribe.js";
|
|
8
|
-
import { GuideLineItem as
|
|
8
|
+
import { GuideLineItem as pr } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -66,6 +66,8 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
66
66
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
67
67
|
import "../shared-utils/three/core/Line2.js";
|
|
68
68
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
69
|
+
import "../Sculpt/utils/unit.js";
|
|
70
|
+
import "../Sculpt/utils/renderDom.js";
|
|
69
71
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
70
72
|
import "../shared-utils/isTouchDevice.js";
|
|
71
73
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -216,5 +218,5 @@ import "../CruisePlugin/utils/safeCall.js";
|
|
|
216
218
|
import "../CruisePlugin/utils/sleep.js";
|
|
217
219
|
import "../shared-utils/five/fiveLoaded.js";
|
|
218
220
|
export {
|
|
219
|
-
|
|
221
|
+
pr as GuideLineItem
|
|
220
222
|
};
|
|
@@ -20,7 +20,7 @@ import "./Components/Tag.js";
|
|
|
20
20
|
import "./utils/index.js";
|
|
21
21
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
22
22
|
import "./utils/createPath.js";
|
|
23
|
-
import { GuideLineModeItem as
|
|
23
|
+
import { GuideLineModeItem as Pm } from "./GuideLineModeItem/index.js";
|
|
24
24
|
import "../vendor/polyline-normals/index.js";
|
|
25
25
|
import "../vendor/polyline-miter-util/index.js";
|
|
26
26
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -69,6 +69,8 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
69
69
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
70
70
|
import "../shared-utils/three/core/Line2.js";
|
|
71
71
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
72
|
+
import "../Sculpt/utils/unit.js";
|
|
73
|
+
import "../Sculpt/utils/renderDom.js";
|
|
72
74
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
73
75
|
import "../shared-utils/isTouchDevice.js";
|
|
74
76
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -198,5 +200,5 @@ import "../PanoTagPlugin/Components/TagContainer.js";
|
|
|
198
200
|
import "../PanoTagPlugin/Components/TagItem.js";
|
|
199
201
|
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
200
202
|
export {
|
|
201
|
-
|
|
203
|
+
Pm as GuideLineModeItem
|
|
202
204
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as ur } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as Lr } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -55,6 +55,8 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
55
55
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
56
56
|
import "../shared-utils/three/core/Line2.js";
|
|
57
57
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
58
|
+
import "../Sculpt/utils/unit.js";
|
|
59
|
+
import "../Sculpt/utils/renderDom.js";
|
|
58
60
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
59
61
|
import "../shared-utils/isTouchDevice.js";
|
|
60
62
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -215,10 +217,10 @@ import "../shared-utils/five/changeMode.js";
|
|
|
215
217
|
import "../shared-utils/nearlyEqual.js";
|
|
216
218
|
import "../CruisePlugin/Move.js";
|
|
217
219
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
218
|
-
const r = (i, o) => new t(i, o),
|
|
220
|
+
const r = (i, o) => new t(i, o), er = r;
|
|
219
221
|
export {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
+
ur as GuideLineItem,
|
|
223
|
+
Lr as GuideLineModeItem,
|
|
222
224
|
r as GuideLinePlugin,
|
|
223
|
-
|
|
225
|
+
er as default
|
|
224
226
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
|
+
import { PointSelector } from '../shared-utils';
|
|
2
3
|
import { type PolygonStyle } from '../Sculpt/Meshes/Polygon';
|
|
3
4
|
import { Subscribe } from '../shared-utils/Subscribe';
|
|
4
5
|
import type { LineMeshStyle } from '../Sculpt/typings';
|
|
@@ -12,12 +13,13 @@ export declare class MeasureController extends Subscribe<Event> {
|
|
|
12
13
|
private five;
|
|
13
14
|
private group;
|
|
14
15
|
private currentMeasureMesh?;
|
|
15
|
-
|
|
16
|
+
get pointSelector(): PointSelector;
|
|
16
17
|
private _pointSelector;
|
|
17
18
|
private get fiveDomEvents();
|
|
18
19
|
private _fiveDomEvents;
|
|
19
20
|
private get cursor();
|
|
20
21
|
private _cursor;
|
|
22
|
+
private unbindHotKey;
|
|
21
23
|
constructor(five: Five);
|
|
22
24
|
/**
|
|
23
25
|
* @description 开始测量
|
|
@@ -27,6 +29,10 @@ export declare class MeasureController extends Subscribe<Event> {
|
|
|
27
29
|
* @description 结束测量
|
|
28
30
|
*/
|
|
29
31
|
endMeasure: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* @description 取消本次测量
|
|
34
|
+
*/
|
|
35
|
+
cancel: () => void;
|
|
30
36
|
/**
|
|
31
37
|
* @description 撤销上一步
|
|
32
38
|
*/
|
|
@@ -36,7 +42,11 @@ export declare class MeasureController extends Subscribe<Event> {
|
|
|
36
42
|
*/
|
|
37
43
|
clear: () => void;
|
|
38
44
|
dispose: () => void;
|
|
45
|
+
private addEventListener;
|
|
46
|
+
private removeEventListener;
|
|
39
47
|
private onClick;
|
|
48
|
+
private onHover;
|
|
49
|
+
private onUnHover;
|
|
40
50
|
private updateSelectAdsorbedHelper;
|
|
41
51
|
}
|
|
42
52
|
export {};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _ = Object.defineProperty, D = Object.defineProperties;
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
|
+
var L = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var M = (s, o, e) => o in s ? _(s, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[o] = e, v = (s, o) => {
|
|
6
|
+
for (var e in o || (o = {}))
|
|
7
|
+
L.call(o, e) && M(s, e, o[e]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var e of w(o))
|
|
10
|
+
H.call(o, e) && M(s, e, o[e]);
|
|
11
|
+
return s;
|
|
12
|
+
}, f = (s, o) => D(s, F(o));
|
|
13
|
+
var t = (s, o, e) => (M(s, typeof o != "symbol" ? o + "" : o, e), e);
|
|
14
14
|
import * as r from "three";
|
|
15
15
|
import "../shared-utils/tag.js";
|
|
16
16
|
import "../vendor/hammerjs/hammer.js";
|
|
17
|
-
import { Subscribe as
|
|
18
|
-
import { PointSelector as
|
|
17
|
+
import { Subscribe as I } from "../shared-utils/Subscribe.js";
|
|
18
|
+
import { PointSelector as V } from "../shared-utils/three/PointSelector/index.js";
|
|
19
19
|
import "../shared-utils/three/CSS3DRenderer/index.js";
|
|
20
20
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
21
|
-
import { IObject3D as
|
|
21
|
+
import { IObject3D as x } from "../shared-utils/three/IObject3D.js";
|
|
22
22
|
import "@realsee/five/line";
|
|
23
23
|
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
24
24
|
import "../shared-utils/three/core/Sphere.js";
|
|
25
25
|
import "../vendor/animejs/lib/anime.es.js";
|
|
26
|
-
import { FiveDomEvents as
|
|
26
|
+
import { FiveDomEvents as U } from "../shared-utils/five/FiveDomEvents.js";
|
|
27
27
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
28
28
|
import "../shared-utils/five/FivePuppet.js";
|
|
29
|
-
import { MeasureMesh as
|
|
29
|
+
import { MeasureMesh as z } from "./utils/MeasureMesh.js";
|
|
30
30
|
import { PointMesh as k } from "../Sculpt/Meshes/Point.js";
|
|
31
|
-
import { LineWithDotsMesh as
|
|
32
|
-
import { hotkeys as
|
|
33
|
-
import { PolygonMesh as
|
|
34
|
-
import { validatePolygon as
|
|
35
|
-
import { Cursor as
|
|
31
|
+
import { LineWithDotsMesh as P } from "../Sculpt/Meshes/LineWithDots.js";
|
|
32
|
+
import { hotkeys as a } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
33
|
+
import { PolygonMesh as A } from "../Sculpt/Meshes/Polygon.js";
|
|
34
|
+
import { validatePolygon as N } from "./utils/validatePolygon.js";
|
|
35
|
+
import { Cursor as C } from "../Sculpt/utils/Modules/Cursor.js";
|
|
36
36
|
import "../shared-utils/positionToVector3.js";
|
|
37
37
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
38
38
|
import "../shared-utils/five/getFiveModel.js";
|
|
@@ -70,6 +70,8 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
70
70
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
71
71
|
import "../shared-utils/three/core/Line2.js";
|
|
72
72
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
73
|
+
import "../Sculpt/utils/unit.js";
|
|
74
|
+
import "../Sculpt/utils/renderDom.js";
|
|
73
75
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
74
76
|
import "../shared-utils/isTouchDevice.js";
|
|
75
77
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -79,7 +81,6 @@ import "../Sculpt/utils/three/rayOnLine.js";
|
|
|
79
81
|
import "@realsee/five";
|
|
80
82
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
81
83
|
import "./Controller.js";
|
|
82
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
83
84
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
84
85
|
import "../shared-utils/three/earcut3D.js";
|
|
85
86
|
import "../vendor/earcut/src/earcut.js";
|
|
@@ -92,106 +93,134 @@ const S = {
|
|
|
92
93
|
lengthEnable: !0,
|
|
93
94
|
occlusionVisibility: !0,
|
|
94
95
|
lengthUnit: "m"
|
|
95
|
-
},
|
|
96
|
+
}, B = {
|
|
96
97
|
lengthEnable: !0,
|
|
97
98
|
occlusionVisibility: !0,
|
|
98
99
|
opacity: 0.2,
|
|
99
100
|
lengthUnit: "m"
|
|
100
101
|
};
|
|
101
|
-
class mt extends
|
|
102
|
+
class mt extends I {
|
|
102
103
|
constructor(e) {
|
|
103
104
|
super();
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
t(this, "name", "MeasurePlugin");
|
|
106
|
+
t(this, "five");
|
|
107
|
+
t(this, "group");
|
|
108
|
+
t(this, "currentMeasureMesh");
|
|
109
|
+
t(this, "_pointSelector");
|
|
110
|
+
t(this, "_fiveDomEvents");
|
|
111
|
+
t(this, "_cursor");
|
|
112
|
+
t(this, "unbindHotKey");
|
|
111
113
|
/**
|
|
112
114
|
* @description 开始测量
|
|
113
115
|
*/
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
t(this, "measure", () => {
|
|
117
|
+
this.removeEventListener();
|
|
118
|
+
const e = new z();
|
|
119
|
+
this.currentMeasureMesh = e, this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
|
|
120
|
+
const p = new k(), m = new P(f(v({}, S), { dashed: !0 })), c = new A(B), h = new P(f(v({}, S), { lineOpacity: 0.5, dashed: !0 })), l = new P(f(v({}, S), { lineOpacity: 0.5, dashed: !0 })), d = () => {
|
|
121
|
+
p.removeFromParent(), m.removeFromParent(), c.removeFromParent(), h.removeFromParent(), l.removeFromParent();
|
|
122
|
+
};
|
|
118
123
|
this.group.add(e);
|
|
119
|
-
const
|
|
124
|
+
const g = (i) => {
|
|
120
125
|
if (!i) {
|
|
121
|
-
|
|
126
|
+
d();
|
|
122
127
|
return;
|
|
123
128
|
}
|
|
124
|
-
if (e.points.length === 0 && (
|
|
125
|
-
if (
|
|
126
|
-
h.removeFromParent(),
|
|
129
|
+
if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(p), p.position.copy(i.point)), e.points.length >= 1)
|
|
130
|
+
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", p.removeFromParent(), this.group.addIfNotExists(m), m.setPoints([e.points.at(-1), i.point]), i.isAdsorbed)
|
|
131
|
+
h.removeFromParent(), l.removeFromParent();
|
|
127
132
|
else {
|
|
128
|
-
const
|
|
129
|
-
if (Math.abs(i.point.y -
|
|
130
|
-
const
|
|
131
|
-
h.setPoints([
|
|
133
|
+
const n = e.points.at(-1);
|
|
134
|
+
if (Math.abs(i.point.y - n.y) > 0.2) {
|
|
135
|
+
const u = new r.Vector3(i.point.x, n.y, i.point.z);
|
|
136
|
+
h.setPoints([n, u]), l.setPoints([u, i.point]);
|
|
132
137
|
} else {
|
|
133
|
-
let
|
|
134
|
-
Math.abs(i.point.x -
|
|
138
|
+
let u = new r.Vector3();
|
|
139
|
+
Math.abs(i.point.x - n.x) < Math.abs(i.point.z - n.z) ? u = new r.Vector3(i.point.x, n.y, n.z) : u = new r.Vector3(n.x, n.y, i.point.z), h.setPoints([n, u]), l.setPoints([u, i.point]);
|
|
135
140
|
}
|
|
136
|
-
this.group.addIfNotExists(h,
|
|
141
|
+
this.group.addIfNotExists(h, l);
|
|
137
142
|
}
|
|
138
143
|
if (e.points.length >= 2) {
|
|
139
|
-
const
|
|
140
|
-
|
|
144
|
+
const n = [...e.points, i.point];
|
|
145
|
+
N(n) ? (c.setPoints(n), this.group.addIfNotExists(c)) : c.removeFromParent();
|
|
141
146
|
}
|
|
142
|
-
},
|
|
143
|
-
e.setPoints([...e.points, i.point]), this.updateSelectAdsorbedHelper(), e.isPolygon && this.pointSelector.disable();
|
|
144
|
-
},
|
|
145
|
-
this.pointSelector.off("intersectionUpdate",
|
|
147
|
+
}, E = (i) => {
|
|
148
|
+
i && (d(), e.setPoints([...e.points, i.point]), this.updateSelectAdsorbedHelper(), e.isPolygon && this.pointSelector.disable());
|
|
149
|
+
}, b = () => {
|
|
150
|
+
this.pointSelector.off("intersectionUpdate", g), this.pointSelector.off("select", E), this.pointSelector.off("disable", b), d(), e.points.length < 2 && e.removeFromParent(), this.currentMeasureMesh = null, this.addEventListener(), this.emit("measureEnd");
|
|
146
151
|
};
|
|
147
|
-
this.pointSelector.on("intersectionUpdate",
|
|
152
|
+
this.pointSelector.on("intersectionUpdate", g), this.pointSelector.on("select", E), this.pointSelector.on("disable", b), this.pointSelector.enable();
|
|
148
153
|
});
|
|
149
154
|
/**
|
|
150
155
|
* @description 结束测量
|
|
151
156
|
*/
|
|
152
|
-
|
|
153
|
-
this.pointSelector.disable()
|
|
157
|
+
t(this, "endMeasure", () => {
|
|
158
|
+
this.pointSelector.disable();
|
|
159
|
+
});
|
|
160
|
+
/**
|
|
161
|
+
* @description 取消本次测量
|
|
162
|
+
*/
|
|
163
|
+
t(this, "cancel", () => {
|
|
164
|
+
var e;
|
|
165
|
+
(e = this.currentMeasureMesh) == null || e.removeFromParent(), this.pointSelector.disable();
|
|
154
166
|
});
|
|
155
167
|
/**
|
|
156
168
|
* @description 撤销上一步
|
|
157
169
|
*/
|
|
158
|
-
|
|
170
|
+
t(this, "undo", () => {
|
|
159
171
|
var e;
|
|
160
172
|
(e = this.currentMeasureMesh) == null || e.setPoints(this.currentMeasureMesh.points.slice(0, -1)), this.pointSelector.emit("intersectionUpdate", this.pointSelector.position), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
|
|
161
173
|
});
|
|
162
174
|
/**
|
|
163
175
|
* @description 清空所有测量内容
|
|
164
176
|
*/
|
|
165
|
-
|
|
177
|
+
t(this, "clear", () => {
|
|
166
178
|
this.currentMeasureMesh = null, this.pointSelector.disable(), this.group.children.forEach((e) => e.removeFromParent());
|
|
167
179
|
});
|
|
168
|
-
|
|
169
|
-
|
|
180
|
+
t(this, "dispose", () => {
|
|
181
|
+
this.unbindHotKey(), this.pointSelector.disable(), this.clear();
|
|
170
182
|
});
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
183
|
+
t(this, "addEventListener", () => {
|
|
184
|
+
this.group.children.forEach((e) => {
|
|
185
|
+
this.fiveDomEvents.addEventListener(e, "click", this.onClick), this.fiveDomEvents.addEventListener(e, "hover", this.onHover), this.fiveDomEvents.addEventListener(e, "unHover", this.onUnHover);
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
t(this, "removeEventListener", () => {
|
|
189
|
+
this.fiveDomEvents.clear();
|
|
190
|
+
});
|
|
191
|
+
t(this, "onClick", ({ origDomEvent: e, target: p }) => {
|
|
192
|
+
const m = p;
|
|
193
|
+
if (!m)
|
|
176
194
|
return;
|
|
177
|
-
let
|
|
178
|
-
|
|
179
|
-
n = n.parent;
|
|
180
|
-
if (!n)
|
|
195
|
+
let c, h;
|
|
196
|
+
if (e instanceof TouchEvent ? (c = e.touches[0].clientX, h = e.touches[0].clientY) : e instanceof MouseEvent && (c = e.clientX, h = e.clientY), c === void 0 || h === void 0)
|
|
181
197
|
return;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
198
|
+
this.group.children.forEach((d) => d.unselect()), m.select();
|
|
199
|
+
const l = () => {
|
|
200
|
+
m.removeFromParent(), this.cursor.removeDeleteButton(), this.five.needsRender = !0, a.unbind("delete, backspace");
|
|
201
|
+
};
|
|
202
|
+
a("delete, backspace", l), this.cursor.showDeleteButton({
|
|
203
|
+
clientX: c,
|
|
185
204
|
clientY: h,
|
|
186
205
|
container: this.five.getElement().parentElement,
|
|
187
|
-
onClick:
|
|
188
|
-
u.removeFromParent(), this.five.needsRender = !0;
|
|
189
|
-
}
|
|
206
|
+
onClick: l
|
|
190
207
|
}), this.five.once("cameraUpdate", () => {
|
|
191
|
-
|
|
208
|
+
m.unselect(), this.cursor.removeDeleteButton();
|
|
192
209
|
});
|
|
193
210
|
});
|
|
194
|
-
|
|
211
|
+
t(this, "onHover", ({ target: e }) => {
|
|
212
|
+
if (this.currentMeasureMesh)
|
|
213
|
+
return;
|
|
214
|
+
const p = e;
|
|
215
|
+
p && p.hover();
|
|
216
|
+
});
|
|
217
|
+
t(this, "onUnHover", ({ target: e }) => {
|
|
218
|
+
if (this.currentMeasureMesh)
|
|
219
|
+
return;
|
|
220
|
+
const p = e;
|
|
221
|
+
p && p.unhover();
|
|
222
|
+
});
|
|
223
|
+
t(this, "updateSelectAdsorbedHelper", () => {
|
|
195
224
|
if (!this.currentMeasureMesh || this.currentMeasureMesh.points.length === 0) {
|
|
196
225
|
this.pointSelector.setAdherePoints(null), this.pointSelector.adhereLine = [], this.pointSelector.adherePlane = [];
|
|
197
226
|
return;
|
|
@@ -215,20 +244,22 @@ class mt extends L {
|
|
|
215
244
|
} else
|
|
216
245
|
this.pointSelector.adherePlane = [];
|
|
217
246
|
});
|
|
218
|
-
this.five = e, this.group = new
|
|
247
|
+
this.five = e, this.group = new x(), this.group.name = "MeasureGroup", this.five.scene.add(this.group), a("ctrl+z, command+z", this.undo), a("esc", this.cancel), a("enter", this.endMeasure), this.unbindHotKey = () => {
|
|
248
|
+
a.unbind("ctrl+z, command+z"), a.unbind("esc"), a.unbind("enter");
|
|
249
|
+
};
|
|
219
250
|
}
|
|
220
251
|
get pointSelector() {
|
|
221
|
-
return this._pointSelector ? this._pointSelector : (this._pointSelector = new
|
|
252
|
+
return this._pointSelector ? this._pointSelector : (this._pointSelector = new V(this.five, { mode: "cursor", helper: { pointHelper: "highlight" } }), this._pointSelector);
|
|
222
253
|
}
|
|
223
254
|
get fiveDomEvents() {
|
|
224
|
-
return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new
|
|
255
|
+
return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new U(this.five), this._fiveDomEvents);
|
|
225
256
|
}
|
|
226
257
|
get cursor() {
|
|
227
|
-
return this._cursor ? this._cursor : (this._cursor = new
|
|
258
|
+
return this._cursor ? this._cursor : (this._cursor = new C(), this._cursor);
|
|
228
259
|
}
|
|
229
260
|
}
|
|
230
261
|
export {
|
|
231
262
|
mt as MeasureController,
|
|
232
263
|
S as lineStyle,
|
|
233
|
-
|
|
264
|
+
B as polygonStyle
|
|
234
265
|
};
|
|
@@ -51,6 +51,8 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
51
51
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
52
52
|
import "../shared-utils/three/core/Line2.js";
|
|
53
53
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
54
|
+
import "../Sculpt/utils/unit.js";
|
|
55
|
+
import "../Sculpt/utils/renderDom.js";
|
|
54
56
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
55
57
|
import "../shared-utils/isTouchDevice.js";
|
|
56
58
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -62,7 +64,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
62
64
|
import "./utils/MeasureMesh.js";
|
|
63
65
|
import "../Sculpt/Meshes/LineWithDots.js";
|
|
64
66
|
import "../Sculpt/Meshes/Point.js";
|
|
65
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
66
67
|
import "../Sculpt/Meshes/Polygon.js";
|
|
67
68
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
68
69
|
import "../shared-utils/three/earcut3D.js";
|
|
@@ -75,7 +76,7 @@ import "./utils/validatePolygon.js";
|
|
|
75
76
|
import "../shared-utils/three/vectorIsEqual.js";
|
|
76
77
|
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
77
78
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
78
|
-
const
|
|
79
|
+
const vr = (r) => new o(r);
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
vr as MeasurePlugin
|
|
81
82
|
};
|
|
@@ -5,10 +5,15 @@ export declare class MeasureMesh extends IObject3D {
|
|
|
5
5
|
readonly isMeasureMesh = true;
|
|
6
6
|
points: THREE.Vector3[];
|
|
7
7
|
isPolygon: boolean;
|
|
8
|
+
private selected;
|
|
8
9
|
private line;
|
|
9
10
|
private polygon;
|
|
10
11
|
constructor();
|
|
11
12
|
setPoints(points: THREE.Vector3[]): void;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
select(): void;
|
|
14
|
+
unselect(): void;
|
|
15
|
+
hover(): void;
|
|
16
|
+
unhover(): void;
|
|
17
|
+
private highlight;
|
|
18
|
+
private unhighlight;
|
|
14
19
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
|
-
var s = (r,
|
|
3
|
-
var
|
|
4
|
-
import { IObject3D as
|
|
5
|
-
import { LineWithDotsMesh as
|
|
6
|
-
import { PolygonMesh as
|
|
7
|
-
import { validatePolygon as
|
|
8
|
-
import { lineStyle as g, polygonStyle as
|
|
2
|
+
var s = (r, t, i) => t in r ? m(r, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[t] = i;
|
|
3
|
+
var o = (r, t, i) => (s(r, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
+
import { IObject3D as h } from "../../shared-utils/three/IObject3D.js";
|
|
5
|
+
import { LineWithDotsMesh as e } from "../../Sculpt/Meshes/LineWithDots.js";
|
|
6
|
+
import { PolygonMesh as l } from "../../Sculpt/Meshes/Polygon.js";
|
|
7
|
+
import { validatePolygon as n } from "./validatePolygon.js";
|
|
8
|
+
import { lineStyle as g, polygonStyle as u } from "../Controller.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "../../shared-utils/positionToVector3.js";
|
|
11
11
|
import "../../Sculpt/Meshes/Point.js";
|
|
@@ -58,13 +58,14 @@ import "../../shared-utils/three/core/LineGeometry.js";
|
|
|
58
58
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
59
59
|
import "../../shared-utils/three/core/Line2.js";
|
|
60
60
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
61
|
+
import "../../Sculpt/utils/unit.js";
|
|
62
|
+
import "../../Sculpt/utils/renderDom.js";
|
|
61
63
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
62
64
|
import "../../shared-utils/isTouchDevice.js";
|
|
63
65
|
import "../../shared-utils/five/getPosition.js";
|
|
64
66
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
65
67
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
66
68
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
67
|
-
import "../../Sculpt/utils/removeAllTag.js";
|
|
68
69
|
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
69
70
|
import "../../shared-utils/three/earcut3D.js";
|
|
70
71
|
import "../../vendor/earcut/src/earcut.js";
|
|
@@ -78,31 +79,42 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
78
79
|
import "./MeasureMesh.js";
|
|
79
80
|
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
80
81
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
81
|
-
class
|
|
82
|
+
class Ci extends h {
|
|
82
83
|
constructor() {
|
|
83
84
|
super();
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
});
|
|
85
|
+
o(this, "name", "MeasureMesh");
|
|
86
|
+
o(this, "isMeasureMesh", !0);
|
|
87
|
+
o(this, "points", []);
|
|
88
|
+
o(this, "isPolygon", !1);
|
|
89
|
+
o(this, "selected", !1);
|
|
90
|
+
o(this, "line", new e(g));
|
|
91
|
+
o(this, "polygon", new l(u));
|
|
92
|
+
this.add(this.line);
|
|
93
93
|
}
|
|
94
|
-
setPoints(
|
|
95
|
-
this.points =
|
|
96
|
-
const p =
|
|
94
|
+
setPoints(i) {
|
|
95
|
+
this.points = i, this.line.setPoints(this.points);
|
|
96
|
+
const p = n(this.points);
|
|
97
97
|
this.isPolygon = p, p && (this.addIfNotExists(this.polygon), this.polygon.setPoints(this.points));
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
this.
|
|
99
|
+
select() {
|
|
100
|
+
this.highlight(3373055), this.selected = !0;
|
|
101
|
+
}
|
|
102
|
+
unselect() {
|
|
103
|
+
this.unhighlight(), this.selected = !1;
|
|
104
|
+
}
|
|
105
|
+
hover() {
|
|
106
|
+
this.selected || this.highlight();
|
|
107
|
+
}
|
|
108
|
+
unhover() {
|
|
109
|
+
this.selected || this.unhighlight();
|
|
110
|
+
}
|
|
111
|
+
highlight(i) {
|
|
112
|
+
this.line.highlight({ color: i }), this.polygon.highlight({ color: i });
|
|
101
113
|
}
|
|
102
114
|
unhighlight() {
|
|
103
115
|
this.line.unhighlight(), this.polygon.unhighlight();
|
|
104
116
|
}
|
|
105
117
|
}
|
|
106
118
|
export {
|
|
107
|
-
|
|
119
|
+
Ci as MeasureMesh
|
|
108
120
|
};
|