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