mxdraw 0.1.176 → 0.1.177

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/mxdraw.d.ts CHANGED
@@ -3182,6 +3182,18 @@ declare class McEdGetPointWorldDrawObject {
3182
3182
  *
3183
3183
  */
3184
3184
  drawLine(pt1: THREE.Vector3, pt2: THREE.Vector3): void;
3185
+ /**
3186
+ * 绘制矩形框
3187
+ * @param pt1 矩形框对角点1
3188
+ * @param pt2 矩形框对角点2
3189
+ * @returns void
3190
+ * @example
3191
+ * ``` typescript
3192
+ * pWorldDraw.drawRect(new HTREE.Vector3(0,100,5), new HTREE.Vector3(0,600,5))
3193
+ * ```
3194
+ *
3195
+ */
3196
+ drawRect(pt1: THREE.Vector3, pt2: THREE.Vector3): void;
3185
3197
  /**
3186
3198
  * 绘制一个Three.js对象.
3187
3199
  * @param ent THREE.Object3D对象
@@ -4977,6 +4989,137 @@ declare class MxDbSplineCurve extends MxDbEntity {
4977
4989
  getTypeName(): string;
4978
4990
  }
4979
4991
 
4992
+ /** @module MrxDbgUiPrDistClass */
4993
+
4994
+ /**
4995
+ * MrxDbgUiPrDist 用于构建一个取点对象
4996
+ * @example ```typescript
4997
+ * new Mx.MrxDbgUiPrPoint()
4998
+ * ```
4999
+ */
5000
+ declare class MrxDbgUiPrDist {
5001
+ private imp;
5002
+ private status;
5003
+ constructor();
5004
+ /**
5005
+ * 返回关键字列表
5006
+ * @returns 关键词列表
5007
+ */
5008
+ keyWords(): string;
5009
+ /**
5010
+ * 设置关键字列表
5011
+ * @param keyWordList 关键词列表
5012
+ * @returns void
5013
+ */
5014
+ setKeyWords(keyWordList: string): void;
5015
+ /**
5016
+ * 提示字符串
5017
+ * @returns 提示消息
5018
+ */
5019
+ message(): string;
5020
+ /**
5021
+ * 设置提示字符串
5022
+ * @param message 提示消息
5023
+ * @returns 提示消息
5024
+ */
5025
+ setMessage(message: string): void;
5026
+ /**
5027
+ * 返回用户选择的关键字
5028
+ * @returns 选择的关键字
5029
+ */
5030
+ keyWordPicked(): string;
5031
+ /**
5032
+ * 测试某一个关键字是否被用户选择
5033
+ * @param matchKeyWord 要检测的关键字
5034
+ * @returns true为真
5035
+ */
5036
+ isKeyWordPicked(matchKeyWord: string): boolean;
5037
+ /**
5038
+ * 设置交互过程的动态绘制调用对象
5039
+ * @param pDraw {@link McEdGetPointWorldDrawObject | 动态绘制调用对象}
5040
+ * @returns void
5041
+ */
5042
+ setUserDraw(pDraw: McEdGetPointWorldDrawObject | ((currentPoint: THREE.Vector3, pWorldDraw: McEdGetPointWorldDrawObject) => void)): void;
5043
+ /**
5044
+ * 得以获取的距离
5045
+ */
5046
+ value(): number;
5047
+ /**
5048
+ * 得到动态拖动的基点
5049
+ * @returns 基点 THREE.THREE.Vector3
5050
+ */
5051
+ basePt(): THREE.Vector3;
5052
+ /**
5053
+ * 设置动态拖动的基点
5054
+ * @param basePt 基点 THREE.THREE.Vector3
5055
+ * @returns 点对象 DWG图纸坐标
5056
+ */
5057
+ setBasePt(basePt: THREE.Vector3): void;
5058
+ /**
5059
+ * 设置使用动态拖动的基点
5060
+ * @param useIt 是否设置 默认为false
5061
+ * @returns void
5062
+ */
5063
+ setUseBasePt(useIt: boolean): void;
5064
+ /**
5065
+ * 返回交互操作退出的详细原因
5066
+ */
5067
+ getDetailedResult(): DetailedResult;
5068
+ getStatus(): MrxDbgUiPrBaseReturn;
5069
+ /**
5070
+ * 开始动态拖动
5071
+ * @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
5072
+ * @returns void
5073
+ */
5074
+ go(retcall?: (status: MrxDbgUiPrBaseReturn) => void): Promise<THREE.Vector3 | null>;
5075
+ /**
5076
+ * 把动态绘制的对象,保留到图上。
5077
+ * @param callAddEntity 回调参数ent 类型:THREE.THREE.Object3D
5078
+ * @returns 点对象 DWG图纸坐标
5079
+ */
5080
+ drawReserve(callAddEntity?: (ent: THREE.Object3D) => void): void;
5081
+ /**
5082
+ * 设置需要的Touche输入类型,默认值是 {@link MxType.InputToucheType.kGetBegan}
5083
+ */
5084
+ setInputToucheType(toucheType: number): void;
5085
+ /**
5086
+ * 返回需要的Touche输入类型
5087
+ */
5088
+ getInputToucheType(): number;
5089
+ /**
5090
+ * 设置光标类型
5091
+ */
5092
+ setCursorType(type: MxCursorType): void;
5093
+ /**
5094
+ * 返回光标类型
5095
+ */
5096
+ getCursorType(): MxCursorType;
5097
+ /**
5098
+ * 设置动态输入类型
5099
+ */
5100
+ setDynamicInputType(type: DynamicInputType): void;
5101
+ /**
5102
+ * 返回动态输入类型
5103
+ */
5104
+ getDynamicInputType(): DynamicInputType;
5105
+ /**
5106
+ * 是否禁用动态输入框
5107
+ */
5108
+ isDisableDynInput(): boolean;
5109
+ /**
5110
+ * 设置是否禁用动态输入框
5111
+ */
5112
+ setDisableDynInput(isDisable: boolean): void;
5113
+ /**
5114
+ * 设置是否禁用捕捉
5115
+ */
5116
+ setDisableOsnap(isDisable: boolean): void;
5117
+ /**
5118
+ * 是否禁用捕捉
5119
+ */
5120
+ isDisableOsnap(): boolean;
5121
+ }
5122
+
4980
5123
  declare const Mx_loadCoreCode: typeof loadCoreCode;
4981
5124
  declare const Mx_useCanvasResizeListener: typeof useCanvasResizeListener;
4982
5125
  declare const Mx_store: typeof store;
@@ -5086,6 +5229,8 @@ type Mx_DetailedResult = DetailedResult;
5086
5229
  declare const Mx_DetailedResult: typeof DetailedResult;
5087
5230
  type Mx_DynamicInputType = DynamicInputType;
5088
5231
  declare const Mx_DynamicInputType: typeof DynamicInputType;
5232
+ type Mx_MrxDbgUiPrDist = MrxDbgUiPrDist;
5233
+ declare const Mx_MrxDbgUiPrDist: typeof MrxDbgUiPrDist;
5089
5234
  declare namespace Mx {
5090
5235
  export {
5091
5236
  Mx_loadCoreCode as loadCoreCode,
@@ -5150,6 +5295,7 @@ declare namespace Mx {
5150
5295
  Mx_MxCursorType as MxCursorType,
5151
5296
  Mx_DetailedResult as DetailedResult,
5152
5297
  Mx_DynamicInputType as DynamicInputType,
5298
+ Mx_MrxDbgUiPrDist as MrxDbgUiPrDist,
5153
5299
  };
5154
5300
  }
5155
5301
 
@@ -5160,4 +5306,4 @@ declare global {
5160
5306
  }
5161
5307
  }
5162
5308
 
5163
- export { DetailedResult, DynamicInputType, Layer, McEdGetPointWorldDrawObject, McGePoint3d, McGePoint3dArray, McGeTool, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MrxDbgUiPrPoint, MrxDbgUtils, Mx2PointArc, Mx3PointArc, MxCADObject, MxCursorType, MxDb2LineAngularDimension, MxDbAlignedDimension, MxDbAnyLine, MxDbArcShapeDraw, MxDbArea, MxDbArrow, MxDbCircleArc, MxDbCircleShape, MxDbCloudLine, MxDbCoord, MxDbDatabase, MxDbEllipse, MxDbEllipseArc, MxDbEllipseShape, MxDbEntity, MxDbGradientLine, MxDbGroup, MxDbHatch, MxDbImage, MxDbLayerTableRecord, MxDbLeadComment, MxDbLeadTag, MxDbLine, MxDbLineShape, MxDbPolyline, MxDbRect, MxDbRectBoxLeadComment, MxDbRegularPolygon, MxDbRegularPolygonShape, MxDbRingShape, MxDbSVG, MxDbSVGText, MxDbShape, MxDbSplineCurve, MxDbStarShape, MxDbText, MxDrawObject, MxFilters, MxFun, MxPaintBrush, MxThreeJS, MxType, Mxassembly, Mx as default, loadCoreCode, store, useCanvasResizeListener };
5309
+ export { DetailedResult, DynamicInputType, Layer, McEdGetPointWorldDrawObject, McGePoint3d, McGePoint3dArray, McGeTool, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MrxDbgUiPrDist, MrxDbgUiPrPoint, MrxDbgUtils, Mx2PointArc, Mx3PointArc, MxCADObject, MxCursorType, MxDb2LineAngularDimension, MxDbAlignedDimension, MxDbAnyLine, MxDbArcShapeDraw, MxDbArea, MxDbArrow, MxDbCircleArc, MxDbCircleShape, MxDbCloudLine, MxDbCoord, MxDbDatabase, MxDbEllipse, MxDbEllipseArc, MxDbEllipseShape, MxDbEntity, MxDbGradientLine, MxDbGroup, MxDbHatch, MxDbImage, MxDbLayerTableRecord, MxDbLeadComment, MxDbLeadTag, MxDbLine, MxDbLineShape, MxDbPolyline, MxDbRect, MxDbRectBoxLeadComment, MxDbRegularPolygon, MxDbRegularPolygonShape, MxDbRingShape, MxDbSVG, MxDbSVGText, MxDbShape, MxDbSplineCurve, MxDbStarShape, MxDbText, MxDrawObject, MxFilters, MxFun, MxPaintBrush, MxThreeJS, MxType, Mxassembly, Mx as default, loadCoreCode, store, useCanvasResizeListener };