@realsee/dnalogel 3.20.7 → 3.21.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/README.md +1 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +25 -18
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
- package/dist/Sculpt/Meshes/Area.d.ts +30 -0
- package/dist/Sculpt/Meshes/Box.d.ts +35 -0
- package/dist/Sculpt/Meshes/Circle.d.ts +26 -0
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
- package/dist/Sculpt/Meshes/Cylinder.d.ts +34 -0
- package/dist/Sculpt/Meshes/Line.d.ts +27 -0
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +30 -0
- package/dist/Sculpt/Meshes/Point.d.ts +22 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +31 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +34 -0
- package/dist/Sculpt/Meshes/Prism.d.ts +31 -0
- package/dist/Sculpt/Meshes/Rectangle.d.ts +24 -0
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
- package/dist/Sculpt/Modules/Cursor.d.ts +13 -0
- package/dist/Sculpt/Modules/Global.d.ts +20 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +21 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +60 -0
- package/dist/Sculpt/Objects/Box/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Box/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Circle/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Circle/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +30 -0
- package/dist/Sculpt/Objects/Point/Editor.d.ts +8 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +35 -0
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +31 -0
- package/dist/Sculpt/Objects/Prism/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +29 -0
- package/dist/Sculpt/index.d.ts +184 -0
- package/dist/Sculpt/typings/index.d.ts +16 -0
- package/dist/Sculpt/typings/utils.type.d.ts +12 -0
- package/dist/Sculpt/utils/color.d.ts +40 -0
- package/dist/Sculpt/utils/data.d.ts +7 -0
- package/dist/Sculpt/utils/getBetterNormal.d.ts +2 -0
- package/dist/Sculpt/utils/radiusToSegments.d.ts +1 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
- package/dist/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +5 -0
- package/dist/index.cjs.js +70 -70
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11538 -9326
- package/dist/index.umd.js +63 -63
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
- package/dist/shared-utils/audio.d.ts +3 -1
- package/dist/shared-utils/five/FiveDomEvents.d.ts +50 -13
- package/dist/shared-utils/five/getPosition.d.ts +14 -0
- package/dist/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
- package/dist/shared-utils/positionToVector3.d.ts +1 -0
- package/dist/shared-utils/three/IObject3D.d.ts +4 -0
- package/dist/shared-utils/three/Magnifier.d.ts +33 -19
- package/dist/shared-utils/three/PointSelector.d.ts +25 -11
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +2 -0
- package/{libs/PanoMeasurePlugin/utils → dist/shared-utils/three}/geometryUtil.d.ts +1 -1
- package/dist/shared-utils/three/getIntersect.d.ts +16 -2
- package/dist/shared-utils/three/getNormal.d.ts +1 -1
- package/dist/shared-utils/three/recurveFindObject.d.ts +2 -0
- package/dist/shared-utils/three/vector3ToArray.d.ts +3 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +9 -4
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +9 -4
- package/docs/classes/CSS3DRender.html +10 -5
- package/docs/classes/GuideLineItem.GuideLineItem.html +10 -5
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +10 -5
- package/docs/classes/ModelRoomLabelController.html +10 -5
- package/docs/classes/MoveController.html +10 -5
- package/docs/classes/Object3DHelperController.html +26 -39
- package/docs/classes/PaintBrush.html +10 -5
- package/docs/classes/PanoMeasurePluginLine.html +10 -5
- package/docs/classes/PanoMeasurePluginModel.html +10 -5
- package/docs/classes/PanoMeasurePluginPoint.html +10 -5
- package/docs/classes/PanoMeasurePluginPolyline.html +10 -5
- package/docs/classes/PanoTagPluginController.html +10 -5
- package/docs/classes/Sculpt.html +847 -0
- package/docs/classes/Util.BetterTween.html +10 -5
- package/docs/classes/Util.Interval.html +10 -5
- package/docs/classes/Util.LineSegments.html +10 -5
- package/docs/classes/Util.Magnifier.html +82 -58
- package/docs/classes/Util.Object3D.html +10 -5
- package/docs/classes/Util.PointDomHelper.html +10 -5
- package/docs/classes/Util.PointHelper.html +10 -5
- package/docs/classes/Util.PointSelectorHelper.html +23 -18
- package/docs/classes/Util.Rectangle.html +10 -5
- package/docs/classes/WalkController.html +10 -5
- package/docs/enums/CameraMovementEffect.html +10 -5
- package/docs/enums/ContentType.html +10 -5
- package/docs/enums/DIRECTION.html +10 -5
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -5
- package/docs/enums/DimensionType.html +10 -5
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -5
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -5
- package/docs/enums/PaintBrushTypeEnum.html +10 -5
- package/docs/enums/PointType.html +10 -5
- package/docs/enums/Rotation.html +10 -5
- package/docs/functions/AreaMakerPlugin.html +10 -5
- package/docs/functions/CSS3DRenderPlugin.html +10 -5
- package/docs/functions/CameraMovementPlugin.html +10 -5
- package/docs/functions/CruisePlugin.html +10 -5
- package/docs/functions/CurrentPanoImagePlugin.html +10 -5
- package/docs/functions/GuideLinePlugin.html +10 -5
- package/docs/functions/ItemLabelPlugin.html +10 -5
- package/docs/functions/MapviewFloorplanPlugin.html +10 -5
- package/docs/functions/ModelChassisCompassPlugin.html +10 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
- package/docs/functions/ModelFloorplanPlugin.html +10 -5
- package/docs/functions/ModelItemLabelPlugin.html +10 -5
- package/docs/functions/ModelRoomLabelPlugin.html +10 -5
- package/docs/functions/ModelTVVideoPlugin.html +10 -5
- package/docs/functions/ModelViewPlugin.html +10 -5
- package/docs/functions/MovePlugin.html +10 -5
- package/docs/functions/Object3DHelperPlugin.html +10 -5
- package/docs/functions/PanoCompassPlugin.html +10 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
- package/docs/functions/PanoDoorLabelPlugin.html +10 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
- package/docs/functions/PanoMeasurePlugin.html +10 -5
- package/docs/functions/PanoRulerPlugin.html +10 -5
- package/docs/functions/PanoRulerProPlugin.html +10 -5
- package/docs/functions/PanoSpatialTagPlugin.html +10 -5
- package/docs/functions/PanoTagPlugin.html +10 -5
- package/docs/functions/PanoVideoPlugin.html +10 -5
- package/docs/functions/PipelinePlugin.html +10 -5
- package/docs/functions/TopviewFloorplanPlugin.html +10 -5
- package/docs/functions/Util.absoluteUrl.html +10 -5
- package/docs/functions/Util.checkFiveModelLoaded.html +10 -5
- package/docs/functions/Util.equal.html +10 -5
- package/docs/functions/Util.getCoordsFromClient.html +10 -5
- package/docs/functions/Util.getCoordsFromElement.html +10 -5
- package/docs/functions/Util.getFrameTime.html +10 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +17 -7
- package/docs/functions/Util.getRaycasterFromFivePointer.html +10 -5
- package/docs/functions/Util.isAbsoluteURL.html +10 -5
- package/docs/functions/Util.isModelLike.html +10 -5
- package/docs/functions/Util.isNil.html +10 -5
- package/docs/functions/Util.isPanoramaLike.html +10 -5
- package/docs/functions/Util.nextFrame.html +10 -5
- package/docs/functions/Util.notNil.html +10 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +10 -5
- package/docs/functions/Util.tweenProgress.html +10 -5
- package/docs/functions/Util.uuid.html +10 -5
- package/docs/functions/pluginFlag.html +10 -5
- package/docs/index.html +12 -6
- package/docs/interfaces/AddTagConfig.html +10 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.Params.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.State.html +9 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -5
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -5
- package/docs/interfaces/CameraMovementPluginExportType.html +10 -5
- package/docs/interfaces/CruisePluginTypes.Config.html +9 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +9 -4
- package/docs/interfaces/CruisePluginTypes.EventMap.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginState.html +9 -4
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +10 -5
- package/docs/interfaces/EventMap.html +10 -5
- package/docs/interfaces/FloorplanBounding.html +10 -5
- package/docs/interfaces/FloorplanData.html +10 -5
- package/docs/interfaces/FloorplanEntrance.html +10 -5
- package/docs/interfaces/FloorplanExtraObject.html +10 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -5
- package/docs/interfaces/FloorplanFloorData.html +10 -5
- package/docs/interfaces/FloorplanImagePosition.html +10 -5
- package/docs/interfaces/FloorplanObserver.html +10 -5
- package/docs/interfaces/FloorplanOutlineItem.html +10 -5
- package/docs/interfaces/FloorplanPosition.html +10 -5
- package/docs/interfaces/FloorplanRoomItem.html +10 -5
- package/docs/interfaces/FloorplanRoomLabelItem.html +10 -5
- package/docs/interfaces/FloorplanServerBounding.html +10 -5
- package/docs/interfaces/FloorplanServerComputedData.html +10 -5
- package/docs/interfaces/FloorplanServerData.html +10 -5
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -5
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -5
- package/docs/interfaces/FloorplanServerEntrance.html +10 -5
- package/docs/interfaces/FloorplanServerFloorData.html +10 -5
- package/docs/interfaces/FloorplanServerImagePosition.html +10 -5
- package/docs/interfaces/FloorplanServerObserver.html +10 -5
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -5
- package/docs/interfaces/FloorplanServerPosition.html +10 -5
- package/docs/interfaces/FloorplanServerRoomItem.html +10 -5
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -5
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -5
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -4
- package/docs/interfaces/GuideLinePluginType.EventMap.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +9 -4
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -4
- package/docs/interfaces/HelperOffset.html +10 -5
- package/docs/interfaces/ImagePlaneGroup.html +10 -5
- package/docs/interfaces/ItemLabelPluginData.html +10 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -5
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -5
- package/docs/interfaces/MinMax.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginData.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -5
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -5
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginData.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -5
- package/docs/interfaces/ModelRoomLabelPluginData.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +10 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -5
- package/docs/interfaces/Object3DHelperState.html +14 -9
- package/docs/interfaces/ObjectHelperControllers.html +16 -11
- package/docs/interfaces/PaintBrushAction.html +10 -5
- package/docs/interfaces/PaintBrushConfigs.html +10 -5
- package/docs/interfaces/PaintBrushState.html +10 -5
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -5
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
- package/docs/interfaces/PanoMeasureParameterType.html +10 -5
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -5
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -5
- package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -5
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -5
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -5
- package/docs/interfaces/PanoRulerPluginOptions.html +10 -5
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginOptions.html +10 -5
- package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginState.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -5
- package/docs/interfaces/Point.html +10 -5
- package/docs/interfaces/Room.html +10 -5
- package/docs/interfaces/RoomInfo.html +10 -5
- package/docs/interfaces/RoomLabel.html +10 -5
- package/docs/interfaces/RoomRules.html +10 -5
- package/docs/interfaces/Rooms.html +10 -5
- package/docs/interfaces/Scissor.html +10 -5
- package/docs/interfaces/State.html +10 -5
- package/docs/interfaces/TagCacheInterface.html +10 -5
- package/docs/interfaces/TagConfig.html +12 -7
- package/docs/interfaces/TagGLTFObjectGroup.html +10 -5
- package/docs/interfaces/TagIconUrl.html +10 -5
- package/docs/interfaces/TagObjectGroup.html +10 -5
- package/docs/interfaces/TagStyle.html +10 -5
- package/docs/interfaces/Tags.html +10 -5
- package/docs/interfaces/TemporaryState.html +10 -5
- package/docs/interfaces/Util.MagnifierParameter.html +32 -22
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -5
- package/docs/interfaces/Util.PointIntersection.html +19 -7
- package/docs/modules/AreaMakerPluginType.html +9 -4
- package/docs/modules/CruisePluginTypes.html +9 -4
- package/docs/modules/CurrentPanoImagePluginType.html +10 -5
- package/docs/modules/GuideLineItem.html +10 -5
- package/docs/modules/GuideLineModeItem.html +10 -5
- package/docs/modules/GuideLinePluginType.html +9 -4
- package/docs/modules/PanoVideoPluginType.html +10 -5
- package/docs/modules/Util.html +10 -5
- package/docs/modules.html +22 -9
- package/docs/types/AddObject3DHelperConfig.html +310 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +9 -4
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +9 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +9 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +9 -4
- package/docs/types/ArrayPosition.html +10 -5
- package/docs/types/AudioAppearance.html +10 -5
- package/docs/types/AudioTagTypeConfigKey.html +10 -5
- package/docs/types/CSS3DRenderExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
- package/docs/types/ClassFunctionParameters.html +10 -5
- package/docs/types/Color.html +10 -5
- package/docs/types/ContentTypeConfigKey.html +10 -5
- package/docs/types/ContentTypeConfigKeySplit.html +10 -5
- package/docs/types/ContentTypeMap.html +10 -5
- package/docs/types/Create3DDomContainerReturnType.html +10 -5
- package/docs/types/Create3DElementReturnType.html +10 -5
- package/docs/types/CruisePluginExportType.html +10 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +9 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +9 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +10 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +10 -5
- package/docs/types/DeprecatedTagProperty.html +10 -5
- package/docs/types/Direction-1.html +10 -5
- package/docs/types/Direction4.html +10 -5
- package/docs/types/ElementRenderer.html +10 -5
- package/docs/types/FloorplanRuleLabels.html +10 -5
- package/docs/types/FloorplanServerRuleLabels.html +10 -5
- package/docs/types/GuideLinePluginExportType.html +10 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +9 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +9 -4
- package/docs/types/GuideLinePluginType.PathItem.html +9 -4
- package/docs/types/GuideLinePluginType.PluginData.html +9 -4
- package/docs/types/HelperEventMap.html +10 -5
- package/docs/types/InternalHelperEventMap.html +22 -9
- package/docs/types/LoadTagConfig.html +10 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/MediaData.html +10 -5
- package/docs/types/MediaStore.html +10 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
- package/docs/types/ModelId.html +10 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
- package/docs/types/MoveArgs.html +10 -5
- package/docs/types/MoveOpts.html +10 -5
- package/docs/types/Object3DHelperEventMap.html +11 -6
- package/docs/types/ObjectFit.html +10 -5
- package/docs/types/PaintBrushEventMap.html +10 -5
- package/docs/types/PanoCompassPluginData.html +10 -5
- package/docs/types/PanoCompassPluginExportType.html +10 -5
- package/docs/types/PanoCompassPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
- package/docs/types/PanoIndex.html +10 -5
- package/docs/types/PanoMeasurePluginEvent.html +10 -5
- package/docs/types/PanoMeasureReturnType.html +10 -5
- package/docs/types/PanoSpatialTagPluginId.html +10 -5
- package/docs/types/PanoTagPluginExportInterface.html +10 -5
- package/docs/types/PanoTagPluginParamsInterface.html +10 -5
- package/docs/types/PanoVideoPluginParameterType.html +10 -5
- package/docs/types/PanoVideoPluginReturnType.html +10 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +10 -5
- package/docs/types/PipelinePluginParameterType.html +10 -5
- package/docs/types/PipelinePluginReturnType.html +10 -5
- package/docs/types/PlaneTag.html +10 -5
- package/docs/types/Point2DTag.html +10 -5
- package/docs/types/Point3DTag.html +10 -5
- package/docs/types/PointTag.html +10 -5
- package/docs/types/PointTagInstance.html +10 -5
- package/docs/types/Position.html +10 -5
- package/docs/types/PositionFrom.html +297 -0
- package/docs/types/RotateArgs.html +10 -5
- package/docs/types/RotateOpts.html +10 -5
- package/docs/types/RuleLabelsKey.html +10 -5
- package/docs/types/RuleLabelsValue.html +10 -5
- package/docs/types/ScaleCallback.html +309 -0
- package/docs/types/ScalePosition.html +298 -0
- package/docs/types/StickType.html +10 -5
- package/docs/types/Tag.html +10 -5
- package/docs/types/Tag2D.html +10 -5
- package/docs/types/Tag3D.html +10 -5
- package/docs/types/TagConfigByKey.html +10 -5
- package/docs/types/TagContentType.html +10 -5
- package/docs/types/TagContentTypeMapping.html +10 -5
- package/docs/types/TagDimensionType.html +10 -5
- package/docs/types/TagElement.html +10 -5
- package/docs/types/TagEvents.html +10 -5
- package/docs/types/TagGLTFObject.html +10 -5
- package/docs/types/TagHooks.html +10 -5
- package/docs/types/TagId.html +10 -5
- package/docs/types/TagInstance.html +10 -5
- package/docs/types/TagPointType.html +10 -5
- package/docs/types/TagRendererMap.html +10 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/WorkCode.html +10 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
- package/docs/variables/PLUGIN.html +11 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
- package/docs/variables/ROOM_TYPE_MAP.html +10 -5
- package/docs/variables/defaultGlobalConfig.html +10 -5
- package/docs/variables/itemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
- package/libs/GuideLinePlugin/Controller.js +15 -15
- package/libs/Object3DHelperPlugin/Controller.d.ts +25 -18
- package/libs/Object3DHelperPlugin/Controller.js +91 -91
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +22 -18
- package/libs/Object3DHelperPlugin/index.js +8 -6
- package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -7
- package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -7
- package/libs/PanoMeasurePlugin/Controller/EditController.js +7 -8
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +7 -7
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +5 -5
- package/libs/PanoMeasurePlugin/Model/area.js +2 -2
- package/libs/PanoMeasurePlugin/Model/polygon.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +22 -156
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -7
- package/libs/PanoMeasurePlugin/index.js +24 -25
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -13
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +20 -10
- package/libs/Sculpt/Meshes/Area.d.ts +30 -0
- package/libs/Sculpt/Meshes/Area.js +56 -0
- package/libs/Sculpt/Meshes/Box.d.ts +35 -0
- package/libs/Sculpt/Meshes/Box.js +88 -0
- package/libs/Sculpt/Meshes/Circle.d.ts +26 -0
- package/libs/Sculpt/Meshes/Circle.js +42 -0
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
- package/libs/Sculpt/Meshes/CircleWithEdge.js +41 -0
- package/libs/Sculpt/Meshes/Cylinder.d.ts +34 -0
- package/libs/Sculpt/Meshes/Cylinder.js +88 -0
- package/libs/Sculpt/Meshes/Line.d.ts +27 -0
- package/libs/Sculpt/Meshes/Line.js +108 -0
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +30 -0
- package/libs/Sculpt/Meshes/LineWithDots.js +70 -0
- package/libs/Sculpt/Meshes/Point.d.ts +22 -0
- package/libs/Sculpt/Meshes/Point.js +74 -0
- package/libs/Sculpt/Meshes/Polygon.d.ts +31 -0
- package/libs/Sculpt/Meshes/Polygon.js +52 -0
- package/libs/Sculpt/Meshes/Polyline.d.ts +34 -0
- package/libs/Sculpt/Meshes/Polyline.js +105 -0
- package/libs/Sculpt/Meshes/Prism.d.ts +31 -0
- package/libs/Sculpt/Meshes/Prism.js +78 -0
- package/libs/Sculpt/Meshes/Rectangle.d.ts +24 -0
- package/libs/Sculpt/Meshes/Rectangle.js +49 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +49 -0
- package/libs/Sculpt/Modules/Cursor.d.ts +13 -0
- package/libs/Sculpt/Modules/Cursor.js +37 -0
- package/libs/Sculpt/Modules/Global.d.ts +20 -0
- package/libs/Sculpt/Modules/Global.js +45 -0
- package/libs/Sculpt/Objects/Base/Editor.d.ts +21 -0
- package/libs/Sculpt/Objects/Base/Editor.js +52 -0
- package/libs/Sculpt/Objects/Base/index.d.ts +60 -0
- package/libs/Sculpt/Objects/Base/index.js +77 -0
- package/libs/Sculpt/Objects/Box/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Box/Editor.js +44 -0
- package/libs/Sculpt/Objects/Box/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Box/index.js +107 -0
- package/libs/Sculpt/Objects/Circle/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Circle/Editor.js +9 -0
- package/libs/Sculpt/Objects/Circle/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Circle/index.js +114 -0
- package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Cylinder/Editor.js +41 -0
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +30 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +100 -0
- package/libs/Sculpt/Objects/Point/Editor.d.ts +8 -0
- package/libs/Sculpt/Objects/Point/Editor.js +25 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +35 -0
- package/libs/Sculpt/Objects/Point/index.js +92 -0
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
- package/libs/Sculpt/Objects/Polygon/Editor.js +23 -0
- package/libs/Sculpt/Objects/Polygon/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Polygon/index.js +113 -0
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
- package/libs/Sculpt/Objects/Polyline/Editor.js +68 -0
- package/libs/Sculpt/Objects/Polyline/index.d.ts +31 -0
- package/libs/Sculpt/Objects/Polyline/index.js +96 -0
- package/libs/Sculpt/Objects/Prism/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Prism/Editor.js +44 -0
- package/libs/Sculpt/Objects/Prism/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Prism/index.js +105 -0
- package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Rectangle/Editor.js +9 -0
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +29 -0
- package/libs/Sculpt/Objects/Rectangle/index.js +105 -0
- package/libs/Sculpt/index.d.ts +184 -0
- package/libs/Sculpt/index.js +209 -0
- package/libs/Sculpt/typings/index.d.ts +16 -0
- package/libs/Sculpt/typings/utils.type.d.ts +12 -0
- package/libs/Sculpt/utils/color.d.ts +40 -0
- package/libs/Sculpt/utils/color.js +7 -0
- package/libs/Sculpt/utils/data.d.ts +7 -0
- package/libs/Sculpt/utils/getBetterNormal.d.ts +2 -0
- package/libs/Sculpt/utils/getBetterNormal.js +8 -0
- package/libs/Sculpt/utils/radiusToSegments.d.ts +1 -0
- package/libs/Sculpt/utils/radiusToSegments.js +6 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +58 -0
- package/libs/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
- package/libs/Sculpt/utils/three/RectangleGeometry.js +19 -0
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +5 -0
- package/libs/Sculpt/utils/three/rayOnLine.js +8 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +172 -127
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +95 -80
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +40 -35
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +9 -9
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +54 -53
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +49 -15
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +16 -12
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +8 -5
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +21 -12
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +38 -5
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +22 -21
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +7 -0
- package/libs/shared-utils/Subscribe.js +1 -1
- package/libs/shared-utils/audio.d.ts +3 -1
- package/libs/shared-utils/audio.js +4 -3
- package/libs/shared-utils/five/FiveDomEvents.d.ts +50 -13
- package/libs/shared-utils/five/FiveDomEvents.js +135 -90
- package/libs/shared-utils/five/getPosition.d.ts +14 -0
- package/libs/shared-utils/five/getPosition.js +45 -0
- package/libs/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
- package/libs/shared-utils/five/getRaycasterByNdcPosition.js +8 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/positionToVector3.d.ts +1 -0
- package/libs/shared-utils/positionToVector3.js +7 -4
- package/libs/shared-utils/three/IObject3D.d.ts +4 -0
- package/libs/shared-utils/three/IObject3D.js +22 -9
- package/libs/shared-utils/three/Magnifier.d.ts +33 -19
- package/libs/shared-utils/three/Magnifier.js +112 -70
- package/libs/shared-utils/three/PointSelector.d.ts +25 -11
- package/libs/shared-utils/three/PointSelector.js +70 -78
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +2 -0
- package/libs/shared-utils/three/PointSelectorHelper.js +14 -14
- package/libs/shared-utils/three/generatePolygonGeometry.js +15 -0
- package/{dist/PanoMeasurePlugin/utils → libs/shared-utils/three}/geometryUtil.d.ts +1 -1
- package/libs/shared-utils/three/geometryUtil.js +37 -0
- package/libs/shared-utils/three/getIntersect.d.ts +16 -2
- package/libs/shared-utils/three/getIntersect.js +20 -5
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.js +8 -7
- package/libs/shared-utils/three/recurveFindObject.d.ts +2 -0
- package/libs/shared-utils/three/recurveFindObject.js +6 -0
- package/libs/shared-utils/three/vector3ToArray.d.ts +3 -0
- package/libs/shared-utils/three/vector3ToArray.js +6 -0
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +372 -0
- package/package.json +4 -3
- package/dist/shared-utils/getIntersectionFromEvent.d.ts +0 -4
- package/docs/classes/Magnifier.html +0 -485
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +0 -13
- package/libs/PanoMeasurePlugin/utils/geometryUtil.js +0 -39
- package/libs/shared-utils/getIntersectionFromEvent.d.ts +0 -4
- package/libs/shared-utils/getIntersectionFromEvent.js +0 -9
- /package/dist/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
- /package/libs/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<a href="https://realsee.js.org/"><img src="https://vrlab-public.ljcdn.com/common/file/web/ea031fa5-ad82-46b3-86c8-7b20ec1e635a.jpg" width="60" /></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
<p align="center">
|
|
6
7
|
<a href="https://www.npmjs.com/package/@realsee/dnalogel">
|
|
7
8
|
<img src="https://img.shields.io/npm/v/@realsee/dnalogel.svg" alt="npm version" >
|
|
@@ -2,9 +2,32 @@ import type { Five } from '@realsee/five';
|
|
|
2
2
|
import * as BasePlugin from '../base/BasePlugin';
|
|
3
3
|
import type * as THREE from 'three';
|
|
4
4
|
import { Object3DHelper } from '../shared-utils/Object3DHelper/index';
|
|
5
|
-
import type { Object3DHelperState, ObjectHelperControllers } from '../shared-utils/Object3DHelper/typings';
|
|
5
|
+
import type { Object3DHelperState, ObjectHelperControllers, PositionFrom, ScaleCallback, ScalePosition } from '../shared-utils/Object3DHelper/typings';
|
|
6
6
|
import type { HelperConfig, HelperOffset, Object3DHelperPluginEventMap, Object3DHelperPluginState } from './typings';
|
|
7
7
|
export declare const PLUGIN = "Object3DHelperPlugin";
|
|
8
|
+
export type AddObject3DHelperConfig = {
|
|
9
|
+
positionFrom?: PositionFrom;
|
|
10
|
+
offset?: HelperOffset;
|
|
11
|
+
yAxis?: THREE.Vector3;
|
|
12
|
+
xAxis?: THREE.Vector3;
|
|
13
|
+
zAxis?: THREE.Vector3;
|
|
14
|
+
moveHelper?: HelperConfig<{
|
|
15
|
+
xArrowEnable?: boolean;
|
|
16
|
+
yArrowEnable?: boolean;
|
|
17
|
+
zArrowEnable?: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
rotateHelper?: HelperConfig<{
|
|
20
|
+
yzCircleEnable?: boolean;
|
|
21
|
+
xzCircleEnable?: boolean;
|
|
22
|
+
xyCircleEnable?: boolean;
|
|
23
|
+
angleTipsEnable?: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
scaleHelper?: HelperConfig<{
|
|
26
|
+
positions?: Array<ScalePosition> | (() => Array<ScalePosition>);
|
|
27
|
+
scaleCallback?: ScaleCallback;
|
|
28
|
+
}>;
|
|
29
|
+
boundingBoxHelper?: HelperConfig;
|
|
30
|
+
};
|
|
8
31
|
export declare class Object3DHelperController extends BasePlugin.Controller<Object3DHelperPluginState, Object3DHelperPluginEventMap> {
|
|
9
32
|
name: string;
|
|
10
33
|
state: Object3DHelperState;
|
|
@@ -57,23 +80,7 @@ export declare class Object3DHelperController extends BasePlugin.Controller<Obje
|
|
|
57
80
|
* @param { boolean } config.rotateHelper 旋转helper
|
|
58
81
|
* @param { boolean } config.scaleHelper 缩放helper
|
|
59
82
|
*/
|
|
60
|
-
addObject3DHelper(object3D: THREE.Object3D,
|
|
61
|
-
moveHelper?: HelperConfig<{
|
|
62
|
-
offset?: HelperOffset;
|
|
63
|
-
xArrowEnable?: boolean;
|
|
64
|
-
yArrowEnable?: boolean;
|
|
65
|
-
zArrowEnable?: boolean;
|
|
66
|
-
}>;
|
|
67
|
-
rotateHelper?: HelperConfig<{
|
|
68
|
-
offset?: HelperOffset;
|
|
69
|
-
yzCircleEnable?: boolean;
|
|
70
|
-
xzCircleEnable?: boolean;
|
|
71
|
-
xyCircleEnable?: boolean;
|
|
72
|
-
angleTipsEnable?: boolean;
|
|
73
|
-
}>;
|
|
74
|
-
scaleHelper?: HelperConfig;
|
|
75
|
-
boundingBoxHelper?: HelperConfig;
|
|
76
|
-
}): ObjectHelperControllers | undefined;
|
|
83
|
+
addObject3DHelper(object3D: THREE.Object3D, paramsConfig?: AddObject3DHelperConfig): ObjectHelperControllers | undefined;
|
|
77
84
|
removeObject3DHelper(object3D: THREE.Object3D): void;
|
|
78
85
|
private handleEnable;
|
|
79
86
|
private handleVisible;
|
|
@@ -9,6 +9,7 @@ declare class ControllerWrapper<HelperControllerInterface extends new (...params
|
|
|
9
9
|
private five;
|
|
10
10
|
constructor(five: Five, HelperController: HelperControllerInterface, object: THREE.Object3D, helperObject3D: InstanceType<HelperControllerInterface>['helperObject3D'], HelperControllerConfig?: ConstructorParameters<HelperControllerInterface>[1], hooks?: Subscribe<any>, internalHooks?: Subscribe<any>);
|
|
11
11
|
dispose(): void;
|
|
12
|
+
private onFiveWantsUpdateCameraDistance;
|
|
12
13
|
private onFiveWantsTapGesture;
|
|
13
14
|
private onFiveWantsGesture;
|
|
14
15
|
private onFiveIntersectionOnModelUpdate;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import * as THREE from 'three';
|
|
4
|
-
import { Subscribe, type SubscribeEventMap } from '@realsee/five';
|
|
5
|
-
interface MagnifierEvent extends SubscribeEventMap {
|
|
6
|
-
wantsPanGesture: (event: (typeof Hammer)['Input']) => boolean;
|
|
7
|
-
}
|
|
8
|
-
/** 放大镜配置参数 */
|
|
1
|
+
import { Magnifier } from '../../shared-utils';
|
|
2
|
+
export default Magnifier;
|
|
9
3
|
export interface MagnifierParameter {
|
|
10
4
|
width?: number;
|
|
11
5
|
height?: number;
|
|
@@ -23,50 +17,3 @@ export interface MagnifierParameter {
|
|
|
23
17
|
export interface MagnifierState {
|
|
24
18
|
enabled: boolean;
|
|
25
19
|
}
|
|
26
|
-
export default class Magnifier {
|
|
27
|
-
width: number;
|
|
28
|
-
height: number;
|
|
29
|
-
containerDom?: Element;
|
|
30
|
-
hooks: Subscribe<MagnifierEvent>;
|
|
31
|
-
canvas: HTMLCanvasElement;
|
|
32
|
-
private five;
|
|
33
|
-
private scale;
|
|
34
|
-
private config;
|
|
35
|
-
private offset;
|
|
36
|
-
private context;
|
|
37
|
-
private renderCenter;
|
|
38
|
-
private hammer?;
|
|
39
|
-
private state;
|
|
40
|
-
private offsetRange?;
|
|
41
|
-
private isPanning;
|
|
42
|
-
constructor(five: Five, options: MagnifierParameter);
|
|
43
|
-
dispose(): void;
|
|
44
|
-
enable(): this;
|
|
45
|
-
disable(): this;
|
|
46
|
-
/** 把放大镜放到某一个容器中 */
|
|
47
|
-
appendTo(element: Element): this;
|
|
48
|
-
/** 清除放大镜渲染内容 */
|
|
49
|
-
clear(): this;
|
|
50
|
-
/** 放大传入点位周围的内容 */
|
|
51
|
-
renderWithPoint(point: THREE.Vector3): void;
|
|
52
|
-
/** 放大传入点位周围的内容 */
|
|
53
|
-
renderWithScreenPoint(point: {
|
|
54
|
-
x: number;
|
|
55
|
-
y: number;
|
|
56
|
-
}): void;
|
|
57
|
-
resetOffset(): void;
|
|
58
|
-
getCurrentState(): MagnifierState;
|
|
59
|
-
protected getRenderCenter(): THREE.Vector3 | {
|
|
60
|
-
x: number;
|
|
61
|
-
y: number;
|
|
62
|
-
};
|
|
63
|
-
private _appendTo;
|
|
64
|
-
private autoFixPCPosition;
|
|
65
|
-
private render;
|
|
66
|
-
private initStyle;
|
|
67
|
-
private getPanOffset;
|
|
68
|
-
private onPanstart;
|
|
69
|
-
private onPan;
|
|
70
|
-
private onPanend;
|
|
71
|
-
}
|
|
72
|
-
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { LineStyle } from '../utils/color';
|
|
2
|
+
import { type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
3
|
+
import { PolylineWithDotsMesh } from './Polyline';
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
import PolygonMesh from './Polygon';
|
|
6
|
+
import type { PointsData } from '../utils/data';
|
|
7
|
+
import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
8
|
+
export type AreaStyle = ColoredMeshStyle & LineStyle;
|
|
9
|
+
export type AreaData = PointsData;
|
|
10
|
+
export declare class AreaMesh extends PolylineWithDotsMesh {
|
|
11
|
+
name: string;
|
|
12
|
+
polygon: PolygonMesh;
|
|
13
|
+
get color(): THREE.Color;
|
|
14
|
+
get opacity(): number;
|
|
15
|
+
/** 多边形前三个点组成的平面,用来使得后面加的点也落在这个平面上 */
|
|
16
|
+
private planeHelper;
|
|
17
|
+
private planeHelperNeedUpdate;
|
|
18
|
+
constructor(params?: Partial<AreaStyle & AreaData>);
|
|
19
|
+
setStyle(params: Partial<AreaStyle>): void;
|
|
20
|
+
setPoints(points: AnyPositions, autoClosed?: boolean): void;
|
|
21
|
+
getGeometryInfo(): {
|
|
22
|
+
center: THREE.Vector3;
|
|
23
|
+
area: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @description: 获取一个点投影在当前平面上的点
|
|
27
|
+
*/
|
|
28
|
+
projectPoint(point: THREE.Vector3): THREE.Vector3;
|
|
29
|
+
private updatePlaneHelper;
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
2
|
+
import { type AnyPositions, type AnyPosition } from '../../shared-utils/positionToVector3';
|
|
3
|
+
import type * as THREE from 'three';
|
|
4
|
+
import type { LineStyle } from '../utils/color';
|
|
5
|
+
import { RectangleWithEdgeMesh } from './RectangleWithEdge';
|
|
6
|
+
import { RectangleMesh } from './Rectangle';
|
|
7
|
+
import type { PointsData } from '../utils/data';
|
|
8
|
+
import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
9
|
+
export type BoxStyle = ColoredMeshStyle & LineStyle;
|
|
10
|
+
export type BoxData = PointsData & {
|
|
11
|
+
heightPoint: AnyPosition;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @description: Box
|
|
15
|
+
*/
|
|
16
|
+
export declare class BoxMesh extends IObject3D {
|
|
17
|
+
name: string;
|
|
18
|
+
get planes(): RectangleMesh[];
|
|
19
|
+
bottomPlane: RectangleWithEdgeMesh;
|
|
20
|
+
topPlane: RectangleWithEdgeMesh;
|
|
21
|
+
heightPoint: THREE.Vector3;
|
|
22
|
+
protected edgePlanes: RectangleWithEdgeMesh[];
|
|
23
|
+
get color(): THREE.Color;
|
|
24
|
+
get lineColor(): THREE.Color;
|
|
25
|
+
get lineWidth(): number;
|
|
26
|
+
get occlusionVisibility(): boolean;
|
|
27
|
+
constructor(params?: Partial<BoxStyle & BoxData>);
|
|
28
|
+
setPoints(params: Partial<BoxData>): void;
|
|
29
|
+
setBottomPoints(points: AnyPositions): void;
|
|
30
|
+
setTopHeightPoint(point: AnyPosition): void;
|
|
31
|
+
setEdgePlanes(): void;
|
|
32
|
+
setStyle(style: Partial<BoxStyle>): void;
|
|
33
|
+
highlight(): void;
|
|
34
|
+
unhighlight(): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { type OcclusionStyle } from '../utils/color';
|
|
3
|
+
import ColoredMesh, { type ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
4
|
+
import { type AnyPosition } from '../../shared-utils/positionToVector3';
|
|
5
|
+
export type CircleStyle = ColoredMeshStyle & OcclusionStyle;
|
|
6
|
+
export type CircleData = {
|
|
7
|
+
center: AnyPosition;
|
|
8
|
+
normal: AnyPosition;
|
|
9
|
+
radius: number;
|
|
10
|
+
};
|
|
11
|
+
type Params = Partial<CircleStyle & CircleData>;
|
|
12
|
+
export declare class CircleMesh extends ColoredMesh {
|
|
13
|
+
get center(): THREE.Vector3;
|
|
14
|
+
get normal(): THREE.Vector3;
|
|
15
|
+
private set normal(value);
|
|
16
|
+
get radius(): number;
|
|
17
|
+
meshFont: THREE.Mesh<THREE.CircleGeometry, THREE.MeshBasicMaterial>;
|
|
18
|
+
private _normal;
|
|
19
|
+
private opacityBeforeHighlight;
|
|
20
|
+
private highlighted;
|
|
21
|
+
constructor(params?: Params);
|
|
22
|
+
setPoints(params: CircleData): void;
|
|
23
|
+
highlight(): void;
|
|
24
|
+
unhighlight(): void;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LineStyle } from '../utils/color';
|
|
2
|
+
import { CircleMesh, type CircleData, type CircleStyle } from './Circle';
|
|
3
|
+
export type CircleWithEdgeMeshStyle = CircleStyle & LineStyle;
|
|
4
|
+
export declare class CircleWithEdgeMesh extends CircleMesh {
|
|
5
|
+
private edgeLine;
|
|
6
|
+
constructor(params?: Partial<CircleWithEdgeMeshStyle & CircleData>);
|
|
7
|
+
setPoints(...params: Parameters<InstanceType<typeof CircleMesh>['setPoints']>): void;
|
|
8
|
+
setStyle(style: Partial<CircleWithEdgeMeshStyle>): void;
|
|
9
|
+
highlight(): void;
|
|
10
|
+
unhighlight(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import { CircleWithEdgeMesh, type CircleWithEdgeMeshStyle } from './CircleWithEdge';
|
|
4
|
+
import ColoredMesh from '../utils/three/ColoredMesh';
|
|
5
|
+
import { type AnyPosition } from '../../shared-utils/positionToVector3';
|
|
6
|
+
export type CylinderStyle = CircleWithEdgeMeshStyle;
|
|
7
|
+
export interface CylinderData {
|
|
8
|
+
bottomCenter: AnyPosition;
|
|
9
|
+
topCenter: AnyPosition;
|
|
10
|
+
radius: number;
|
|
11
|
+
}
|
|
12
|
+
type Params = Partial<CylinderStyle & CylinderData>;
|
|
13
|
+
export declare class CylinderMesh extends IObject3D {
|
|
14
|
+
get bottomCenter(): THREE.Vector3;
|
|
15
|
+
get topCenter(): THREE.Vector3;
|
|
16
|
+
get normal(): THREE.Vector3;
|
|
17
|
+
get radius(): number;
|
|
18
|
+
get color(): THREE.Color;
|
|
19
|
+
bottomCircle: CircleWithEdgeMesh;
|
|
20
|
+
topCircle: CircleWithEdgeMesh;
|
|
21
|
+
protected edgeMesh: ColoredMesh;
|
|
22
|
+
private opacityBeforeHighlight;
|
|
23
|
+
private highlighted;
|
|
24
|
+
private params;
|
|
25
|
+
constructor(params?: Params);
|
|
26
|
+
setPoints(params: CylinderData): void;
|
|
27
|
+
setTopCenter(center: THREE.Vector3): void;
|
|
28
|
+
setBottomCenter(center: THREE.Vector3): void;
|
|
29
|
+
setStyle(style: CylinderStyle): void;
|
|
30
|
+
highlight(): void;
|
|
31
|
+
unhighlight(): void;
|
|
32
|
+
private setEdgeMesh;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { type OcclusionStyle, type LineStyle } from '../utils/color';
|
|
3
|
+
import { type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
4
|
+
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
5
|
+
import type { PointsData } from '../utils/data';
|
|
6
|
+
export type LineMeshStyle = LineStyle & {
|
|
7
|
+
dashed?: boolean;
|
|
8
|
+
} & OcclusionStyle;
|
|
9
|
+
export type LineData = PointsData;
|
|
10
|
+
export declare class LineMesh extends IObject3D {
|
|
11
|
+
name: string;
|
|
12
|
+
points: THREE.Vector3[];
|
|
13
|
+
get lineWidth(): number;
|
|
14
|
+
get color(): THREE.Color;
|
|
15
|
+
get dashed(): boolean;
|
|
16
|
+
get occlusionVisibility(): boolean;
|
|
17
|
+
protected highlighted: boolean;
|
|
18
|
+
private line;
|
|
19
|
+
private backLine;
|
|
20
|
+
private opacityBeforeHighlight;
|
|
21
|
+
constructor(params?: Partial<LineMeshStyle & LineData>);
|
|
22
|
+
setPoints(points: AnyPositions): void;
|
|
23
|
+
setResolution(width: number, height: number): void;
|
|
24
|
+
setStyle(params: Partial<LineMeshStyle>): void;
|
|
25
|
+
highlight(): void;
|
|
26
|
+
unhighlight(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
2
|
+
import { PointMesh } from './Point';
|
|
3
|
+
import { LineMesh, type LineMeshStyle } from './Line';
|
|
4
|
+
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
5
|
+
import type { PointsData } from '../utils/data';
|
|
6
|
+
type Style = LineMeshStyle & {
|
|
7
|
+
pointVisibility?: boolean | {
|
|
8
|
+
startPoint?: boolean;
|
|
9
|
+
endPoint?: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Represents a mesh that consists of a line with dots at the start and end points.
|
|
14
|
+
*/
|
|
15
|
+
export declare class LineWithDotsMesh extends LineMesh {
|
|
16
|
+
name: string;
|
|
17
|
+
pointGroup: IObject3D;
|
|
18
|
+
style: Style;
|
|
19
|
+
get startPoint(): PointMesh;
|
|
20
|
+
get endPoint(): PointMesh;
|
|
21
|
+
get visiblePointMeshes(): PointMesh[];
|
|
22
|
+
get pointMeshes(): PointMesh[];
|
|
23
|
+
constructor(params?: Partial<Style & PointsData>);
|
|
24
|
+
setPoints(points: AnyPositions): void;
|
|
25
|
+
setStyle: (style: Partial<Style>) => void;
|
|
26
|
+
highlight: () => void;
|
|
27
|
+
unhighlight: () => void;
|
|
28
|
+
private updateEdgePointsVisibility;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { type ColorStyle, type OcclusionStyle } from '../utils/color';
|
|
3
|
+
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
4
|
+
import type { PointData } from '../utils/data';
|
|
5
|
+
export type { PointData } from '../utils/data';
|
|
6
|
+
export declare const circleImageURL: string;
|
|
7
|
+
export type PointStyle = ColorStyle & {
|
|
8
|
+
size: number;
|
|
9
|
+
} & OcclusionStyle;
|
|
10
|
+
export declare class PointMesh extends IObject3D {
|
|
11
|
+
name: string;
|
|
12
|
+
get color(): THREE.Color;
|
|
13
|
+
get size(): number;
|
|
14
|
+
private opacityBeforeHighlight;
|
|
15
|
+
private highlighted;
|
|
16
|
+
private fontMesh;
|
|
17
|
+
private backgroundMesh;
|
|
18
|
+
constructor(params?: Partial<PointStyle & PointData>);
|
|
19
|
+
setStyle(params: Partial<PointStyle>): void;
|
|
20
|
+
highlight(): void;
|
|
21
|
+
unhighlight(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
3
|
+
import ColoredMesh, { type ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
4
|
+
import type { PointsData } from '../utils/data';
|
|
5
|
+
export declare const blankGeometry: THREE.BufferGeometry & {
|
|
6
|
+
isBlank: true;
|
|
7
|
+
};
|
|
8
|
+
export type PolygonStyle = ColoredMeshStyle;
|
|
9
|
+
export type PolygonData = PointsData;
|
|
10
|
+
export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
|
|
11
|
+
name: string;
|
|
12
|
+
get isBlank(): boolean;
|
|
13
|
+
points: THREE.Vector3[];
|
|
14
|
+
planeHelperNeedUpdate: boolean;
|
|
15
|
+
private planeHelper;
|
|
16
|
+
private opacityBeforeHighlight;
|
|
17
|
+
private highlighted;
|
|
18
|
+
constructor(params?: Partial<PolygonStyle & PolygonData>);
|
|
19
|
+
setPoints(points: AnyPositions): void;
|
|
20
|
+
getGeometryInfo(): {
|
|
21
|
+
center: THREE.Vector3;
|
|
22
|
+
area: number;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @description: 获取一个点投影在当前平面上的点
|
|
26
|
+
*/
|
|
27
|
+
projectPoint(point: THREE.Vector3): THREE.Vector3;
|
|
28
|
+
highlight(): void;
|
|
29
|
+
unhighlight(): void;
|
|
30
|
+
private updatePlaneHelper;
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
2
|
+
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
3
|
+
import { LineWithDotsMesh } from './LineWithDots';
|
|
4
|
+
import { LineMesh, type LineMeshStyle } from './Line';
|
|
5
|
+
import type { PointsData } from '../utils/data';
|
|
6
|
+
import * as THREE from 'three';
|
|
7
|
+
export type PolylineStyle = LineMeshStyle;
|
|
8
|
+
export type PolylineData = PointsData;
|
|
9
|
+
export declare abstract class PolylineBaseMesh<WithDots extends boolean = true> extends IObject3D {
|
|
10
|
+
name: string;
|
|
11
|
+
get lineColor(): THREE.Color;
|
|
12
|
+
get lineWidth(): number;
|
|
13
|
+
get dashed(): boolean;
|
|
14
|
+
get occlusionVisibility(): boolean;
|
|
15
|
+
get points(): THREE.Vector3[];
|
|
16
|
+
lines: Array<WithDots extends true ? LineWithDotsMesh : LineMesh>;
|
|
17
|
+
private withDots;
|
|
18
|
+
private paramsStyle;
|
|
19
|
+
constructor(params?: Partial<PolylineStyle & PolylineData & {
|
|
20
|
+
withDots: WithDots extends true ? true : false;
|
|
21
|
+
}>);
|
|
22
|
+
setPoints(points: AnyPositions): void;
|
|
23
|
+
setStyle(style: Partial<PolylineStyle>): void;
|
|
24
|
+
highlight(): void;
|
|
25
|
+
unhighlight(): void;
|
|
26
|
+
}
|
|
27
|
+
export declare class PolylineMesh extends PolylineBaseMesh<false> {
|
|
28
|
+
name: string;
|
|
29
|
+
constructor(...params: ConstructorParameters<typeof PolylineBaseMesh>);
|
|
30
|
+
}
|
|
31
|
+
export declare class PolylineWithDotsMesh extends PolylineBaseMesh<true> {
|
|
32
|
+
name: string;
|
|
33
|
+
constructor(...params: ConstructorParameters<typeof PolylineBaseMesh>);
|
|
34
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
2
|
+
import { type AnyPosition, type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
3
|
+
import { AreaMesh, type AreaData } from './Area';
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
import type { LineStyle } from '../utils/color';
|
|
6
|
+
import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
7
|
+
export type PrismStyle = ColoredMeshStyle & LineStyle;
|
|
8
|
+
export interface PrismData extends AreaData {
|
|
9
|
+
heightPoint: AnyPosition;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @description: 多棱柱
|
|
13
|
+
*/
|
|
14
|
+
export declare class PrismMesh extends IObject3D {
|
|
15
|
+
name: string;
|
|
16
|
+
heightPoint: THREE.Vector3;
|
|
17
|
+
bottomPolygon: AreaMesh;
|
|
18
|
+
topPolygon: AreaMesh;
|
|
19
|
+
get color(): THREE.Color;
|
|
20
|
+
get lineWidth(): number;
|
|
21
|
+
get lineColor(): THREE.Color;
|
|
22
|
+
private edgePlanes;
|
|
23
|
+
constructor(params?: Partial<PrismData & PrismStyle>);
|
|
24
|
+
setStyle(params: Partial<PrismStyle>): void;
|
|
25
|
+
setPoints(params: Partial<PrismData>): void;
|
|
26
|
+
highlight(): void;
|
|
27
|
+
unhighlight(): void;
|
|
28
|
+
setBottomPoints(points: AnyPositions): void;
|
|
29
|
+
setTopHeightPoint(heightPoint: THREE.Vector3): void;
|
|
30
|
+
private setEdgePlanes;
|
|
31
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import PolygonMesh from './Polygon';
|
|
4
|
+
import { RectangleGeometry } from '../utils/three/RectangleGeometry';
|
|
5
|
+
import type { PointsData } from '../utils/data';
|
|
6
|
+
import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
7
|
+
export type RectangleStyle = ColoredMeshStyle;
|
|
8
|
+
export type RectangleData = PointsData;
|
|
9
|
+
/**
|
|
10
|
+
* @description: 矩形
|
|
11
|
+
*/
|
|
12
|
+
export declare class RectangleMesh extends PolygonMesh {
|
|
13
|
+
name: string;
|
|
14
|
+
meshFont: THREE.Mesh<RectangleGeometry, THREE.MeshBasicMaterial>;
|
|
15
|
+
meshBackground: THREE.Mesh<RectangleGeometry, THREE.MeshBasicMaterial>;
|
|
16
|
+
get color(): THREE.Color;
|
|
17
|
+
/**
|
|
18
|
+
* @description: 构造矩形所需的三个点
|
|
19
|
+
*/
|
|
20
|
+
get builtPoints(): THREE.Vector3[];
|
|
21
|
+
get sortedPoint(): THREE.Vector3[];
|
|
22
|
+
constructor(params?: Partial<RectangleStyle & RectangleData>);
|
|
23
|
+
setPoints(points: AnyPositions): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AnyPositions } from '../../shared-utils/positionToVector3';
|
|
2
|
+
import { RectangleMesh, type RectangleData, type RectangleStyle } from './Rectangle';
|
|
3
|
+
import { PolylineMesh } from './Polyline';
|
|
4
|
+
import type { LineStyle } from '../utils/color';
|
|
5
|
+
import * as THREE from 'three';
|
|
6
|
+
export type RectangleWithEdgeMeshStyle = RectangleStyle & LineStyle;
|
|
7
|
+
/**
|
|
8
|
+
* @description: 带边线的矩形
|
|
9
|
+
*/
|
|
10
|
+
export declare class RectangleWithEdgeMesh extends RectangleMesh {
|
|
11
|
+
name: string;
|
|
12
|
+
get lineWidth(): number;
|
|
13
|
+
get lineColor(): THREE.Color;
|
|
14
|
+
protected line: PolylineMesh;
|
|
15
|
+
constructor(params?: Partial<RectangleWithEdgeMeshStyle & RectangleData>);
|
|
16
|
+
setPoints(points: AnyPositions): void;
|
|
17
|
+
setStyle(style: Partial<RectangleWithEdgeMeshStyle>): void;
|
|
18
|
+
highlight(): void;
|
|
19
|
+
unhighlight(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type CursorType = 'auto' | 'pen' | 'pen-forbidden' | 'pen-crosshair' | 'pne-polygon' | 'pen-circle' | 'crosshair-rectangle' | 'crosshair-circle';
|
|
2
|
+
export declare class Cursor {
|
|
3
|
+
private container;
|
|
4
|
+
constructor(container: HTMLElement);
|
|
5
|
+
/**
|
|
6
|
+
* @param type - The type of the cursor.
|
|
7
|
+
*/
|
|
8
|
+
setType(type: CursorType): void;
|
|
9
|
+
tip(tip: string): () => void;
|
|
10
|
+
closeTip(): void;
|
|
11
|
+
reset(): void;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import { Cursor } from './Cursor';
|
|
3
|
+
import { PointSelector } from '../../shared-utils/three/PointSelector';
|
|
4
|
+
import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
|
|
5
|
+
import { Object3DHelperController } from '../../Object3DHelperPlugin';
|
|
6
|
+
declare class GlobalModules {
|
|
7
|
+
five: Five;
|
|
8
|
+
_cursor: Cursor;
|
|
9
|
+
_pointSelector: PointSelector;
|
|
10
|
+
_fiveDomEvents: FiveDomEvents;
|
|
11
|
+
_object3DHelper: Object3DHelperController;
|
|
12
|
+
inited: boolean;
|
|
13
|
+
get cursor(): Cursor;
|
|
14
|
+
get pointSelector(): PointSelector;
|
|
15
|
+
get fiveDomEvents(): FiveDomEvents;
|
|
16
|
+
get object3DHelper(): Object3DHelperController;
|
|
17
|
+
init: (five: Five) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const globalModules: GlobalModules;
|
|
20
|
+
export { globalModules };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as THREE from 'three';
|
|
2
|
+
import { IObject3D } from '../../../shared-utils/three/IObject3D';
|
|
3
|
+
import type { AddObject3DHelperConfig } from '../../../Object3DHelperPlugin';
|
|
4
|
+
export declare class BaseEditor<OriginObject extends THREE.Object3D = THREE.Object3D> extends IObject3D {
|
|
5
|
+
protected originObject: OriginObject;
|
|
6
|
+
constructor(originObject: OriginObject);
|
|
7
|
+
/**
|
|
8
|
+
* @description: 开启编辑器
|
|
9
|
+
*/
|
|
10
|
+
enable(): void;
|
|
11
|
+
/**
|
|
12
|
+
* @description: 禁用编辑器
|
|
13
|
+
*/
|
|
14
|
+
disable(): void;
|
|
15
|
+
}
|
|
16
|
+
export declare class BaseEditorWithObjectHelper<OriginObject extends THREE.Object3D = THREE.Object3D> extends BaseEditor<OriginObject> {
|
|
17
|
+
private objectHelperConfig;
|
|
18
|
+
constructor(originObject: OriginObject, objectHelperConfig?: AddObject3DHelperConfig | (() => AddObject3DHelperConfig));
|
|
19
|
+
enable(): void;
|
|
20
|
+
disable(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { FiveDomEventMap } from '../../../shared-utils/five/FiveDomEvents';
|
|
2
|
+
import { IObject3D } from '../../../shared-utils/three/IObject3D';
|
|
3
|
+
import type { BaseEditor } from './Editor';
|
|
4
|
+
import type { RequiredDeep } from 'type-fest';
|
|
5
|
+
import type * as THREE from 'three';
|
|
6
|
+
export interface BaseImportData {
|
|
7
|
+
id?: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}
|
|
10
|
+
export interface BaseExportData extends RequiredDeep<BaseImportData> {
|
|
11
|
+
}
|
|
12
|
+
export interface BaseObjectConfig {
|
|
13
|
+
/**
|
|
14
|
+
* @description: 是否可以编辑
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
canEdit: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @description: 是否以一种半透明的方式显示遮挡的部分
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
occlusionVisibility: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @description: 基础对象
|
|
26
|
+
*/
|
|
27
|
+
export declare abstract class BaseObject<ImportData extends BaseImportData = BaseImportData, ExportData extends BaseExportData = any, Config extends BaseObjectConfig = BaseObjectConfig> extends IObject3D {
|
|
28
|
+
name: string;
|
|
29
|
+
readonly isSculptObject = true;
|
|
30
|
+
draggable: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @description: 是否被选中
|
|
33
|
+
*/
|
|
34
|
+
selected: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @description: 配置
|
|
37
|
+
*/
|
|
38
|
+
config: Config;
|
|
39
|
+
protected editor: BaseEditor;
|
|
40
|
+
abstract type: string;
|
|
41
|
+
/**
|
|
42
|
+
* @description: 物体导出数据
|
|
43
|
+
*/
|
|
44
|
+
abstract get data(): ExportData;
|
|
45
|
+
protected get baseData(): {
|
|
46
|
+
id: string;
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
protected get pointSelector(): import("../../../shared-utils/three/PointSelector").PointSelector;
|
|
50
|
+
constructor(data?: Partial<ImportData>, config?: Partial<Config>);
|
|
51
|
+
on: <T extends keyof FiveDomEventMap>(event: T, callback: FiveDomEventMap[T]) => void;
|
|
52
|
+
off: (event: keyof FiveDomEventMap, callback: (e: import("../../../shared-utils/five/FiveDomEvents").FiveDomEvent) => any, ...args: any[]) => void;
|
|
53
|
+
stopCreating(): void;
|
|
54
|
+
delete(): void;
|
|
55
|
+
highlight(): void;
|
|
56
|
+
unhighlight(): void;
|
|
57
|
+
protected applyObjectMatrixWorld<P extends THREE.Vector3 | THREE.Vector3[]>(point: P): P;
|
|
58
|
+
protected applyObjectQuaternion<P extends THREE.Vector3 | THREE.Vector3[]>(point: P): P;
|
|
59
|
+
abstract create(...args: any): any;
|
|
60
|
+
}
|