mxdraw 0.1.218 → 0.1.220
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 +21 -2
- 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
|
@@ -163,6 +163,18 @@ declare enum MxCloneType {
|
|
|
163
163
|
/** 保存数据到DWG文件 */
|
|
164
164
|
kSaveDwgClone = 4
|
|
165
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* 命令标记
|
|
168
|
+
* @example ```typescript
|
|
169
|
+
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
declare enum MxCommandFlag {
|
|
173
|
+
MCRX_CMD_MODAL = 0,
|
|
174
|
+
MCRX_CMD_TRANSPARENT = 1,
|
|
175
|
+
MCRX_CMD_NO_UNDO_MARKER = 2,
|
|
176
|
+
MCRX_CMD_NOPRV = 4
|
|
177
|
+
}
|
|
166
178
|
/**
|
|
167
179
|
* 控件对象缺省的绘制顺序
|
|
168
180
|
* @example ```typescript
|
|
@@ -190,6 +202,8 @@ type UnstableColor = MxColorType | undefined;
|
|
|
190
202
|
|
|
191
203
|
type MxType_MxCloneType = MxCloneType;
|
|
192
204
|
declare const MxType_MxCloneType: typeof MxCloneType;
|
|
205
|
+
type MxType_MxCommandFlag = MxCommandFlag;
|
|
206
|
+
declare const MxType_MxCommandFlag: typeof MxCommandFlag;
|
|
193
207
|
type MxType_MxDefaultRenderOrder = MxDefaultRenderOrder;
|
|
194
208
|
declare const MxType_MxDefaultRenderOrder: typeof MxDefaultRenderOrder;
|
|
195
209
|
type MxType_InputToucheType = InputToucheType;
|
|
@@ -199,6 +213,7 @@ type MxType_UnstableColor = UnstableColor;
|
|
|
199
213
|
declare namespace MxType {
|
|
200
214
|
export {
|
|
201
215
|
MxType_MxCloneType as MxCloneType,
|
|
216
|
+
MxType_MxCommandFlag as MxCommandFlag,
|
|
202
217
|
MxType_MxDefaultRenderOrder as MxDefaultRenderOrder,
|
|
203
218
|
MxType_InputToucheType as InputToucheType,
|
|
204
219
|
MxType_MxColorType as MxColorType,
|
|
@@ -1280,7 +1295,7 @@ declare class MxFunClass {
|
|
|
1280
1295
|
/**
|
|
1281
1296
|
* 注册命令
|
|
1282
1297
|
* @param cmdName 命令名
|
|
1283
|
-
* @param fun
|
|
1298
|
+
* @param fun 命令函数,cmdFlag取值MxCommandFlag枚举的逻辑或
|
|
1284
1299
|
* @return void
|
|
1285
1300
|
* @example
|
|
1286
1301
|
* ``` typescript
|
|
@@ -1289,7 +1304,7 @@ declare class MxFunClass {
|
|
|
1289
1304
|
* })
|
|
1290
1305
|
* ```
|
|
1291
1306
|
*/
|
|
1292
|
-
addCommand: (cmdName: string, fun: Function) => void;
|
|
1307
|
+
addCommand: (cmdName: string, fun: Function, cmdFlag?: number) => void;
|
|
1293
1308
|
/**
|
|
1294
1309
|
* 执行命令
|
|
1295
1310
|
* @param cmdName 命令名
|
|
@@ -1685,6 +1700,10 @@ declare class MxFunClass {
|
|
|
1685
1700
|
* 把一个颜色变量转成一个数组颜色
|
|
1686
1701
|
* */
|
|
1687
1702
|
getNumberColor: (iColor: number | string | THREE.Color) => number;
|
|
1703
|
+
/**
|
|
1704
|
+
* 发送一个消息到ifarme的父窗口
|
|
1705
|
+
* */
|
|
1706
|
+
postMessageToParentFrame: (param: any) => boolean;
|
|
1688
1707
|
}
|
|
1689
1708
|
declare const MxFun: MxFunClass;
|
|
1690
1709
|
|