mxcad 1.0.66 → 1.0.67
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/mxcad.d.ts +101 -2
- package/dist/mxcad.es.js +337 -251
- package/dist/mxcad.umd.js +24 -24
- package/dist/wasm/2d/mxdrawassembly_min.js +553 -547
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +540 -534
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -235,6 +235,100 @@ export declare class McGeMatrix3d {
|
|
|
235
235
|
*/
|
|
236
236
|
getData(row: number, col: number): number;
|
|
237
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* 整数数组
|
|
240
|
+
*/
|
|
241
|
+
export declare class McGeLongArray {
|
|
242
|
+
imp: any;
|
|
243
|
+
/**
|
|
244
|
+
* 构造函数。
|
|
245
|
+
*/
|
|
246
|
+
constructor(imp?: object);
|
|
247
|
+
/**
|
|
248
|
+
* 复制对象的值
|
|
249
|
+
*/
|
|
250
|
+
copy(val: McGeLongArray): this;
|
|
251
|
+
/**
|
|
252
|
+
* 添加一个值
|
|
253
|
+
*/
|
|
254
|
+
append(val: number): void;
|
|
255
|
+
/**
|
|
256
|
+
* 返回数组长度
|
|
257
|
+
*/
|
|
258
|
+
length(): number;
|
|
259
|
+
/**
|
|
260
|
+
* 得到数据元素的值
|
|
261
|
+
*/
|
|
262
|
+
at(index: number): number;
|
|
263
|
+
/**
|
|
264
|
+
* 设置数据元素的值
|
|
265
|
+
*/
|
|
266
|
+
setAt(index: number, val: number): void;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* 表示字符串的数组
|
|
270
|
+
*/
|
|
271
|
+
export declare class McGeStringArray {
|
|
272
|
+
imp: any;
|
|
273
|
+
/**
|
|
274
|
+
* 构造函数。
|
|
275
|
+
*/
|
|
276
|
+
constructor(imp?: object);
|
|
277
|
+
/**
|
|
278
|
+
* 复制对象的值
|
|
279
|
+
*/
|
|
280
|
+
copy(val: McGeStringArray): this;
|
|
281
|
+
/**
|
|
282
|
+
* 添加一个值
|
|
283
|
+
*/
|
|
284
|
+
append(val: number): void;
|
|
285
|
+
/**
|
|
286
|
+
* 返回数组长度
|
|
287
|
+
*/
|
|
288
|
+
length(): number;
|
|
289
|
+
/**
|
|
290
|
+
* 得到数据元素的值
|
|
291
|
+
*/
|
|
292
|
+
at(index: number, decodeFromGb2312?: boolean): string;
|
|
293
|
+
/**
|
|
294
|
+
* 设置数据元素的值
|
|
295
|
+
*/
|
|
296
|
+
setAt(index: number, val: string, decodeFromGb2312?: boolean): void;
|
|
297
|
+
/**
|
|
298
|
+
* 遍历数组
|
|
299
|
+
*/
|
|
300
|
+
forEach(call: (val: string, index: number) => void, decodeFromGb2312?: boolean): void;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* 表示三维点的数组
|
|
304
|
+
*/
|
|
305
|
+
export declare class McGePoint3dArray {
|
|
306
|
+
imp: any;
|
|
307
|
+
/**
|
|
308
|
+
* 构造函数。
|
|
309
|
+
*/
|
|
310
|
+
constructor(imp?: object);
|
|
311
|
+
/**
|
|
312
|
+
* 复制对象的值
|
|
313
|
+
*/
|
|
314
|
+
copy(val: McGePoint3dArray): this;
|
|
315
|
+
/**
|
|
316
|
+
* 添加一个值
|
|
317
|
+
*/
|
|
318
|
+
append(val: McGePoint3d): void;
|
|
319
|
+
/**
|
|
320
|
+
* 返回数组长度
|
|
321
|
+
*/
|
|
322
|
+
length(): number;
|
|
323
|
+
/**
|
|
324
|
+
* 得到数据元素的值
|
|
325
|
+
*/
|
|
326
|
+
at(index: number): McGePoint3d;
|
|
327
|
+
/**
|
|
328
|
+
* 设置数据元素的值
|
|
329
|
+
*/
|
|
330
|
+
setAt(index: number, val: McGePoint3d): void;
|
|
331
|
+
}
|
|
238
332
|
/**
|
|
239
333
|
* 表示一个 Rx 对象的基类。
|
|
240
334
|
*/
|
|
@@ -425,7 +519,7 @@ export declare class McDrawResbuf extends McRxObject {
|
|
|
425
519
|
* @param lItem 数据项索引。
|
|
426
520
|
* @returns 包含字符串和返回值的对象。
|
|
427
521
|
*/
|
|
428
|
-
AtString(lItem: number): {
|
|
522
|
+
AtString(lItem: number, decodeFromGb2312?: boolean): {
|
|
429
523
|
val: string;
|
|
430
524
|
ret: number;
|
|
431
525
|
};
|
|
@@ -470,7 +564,7 @@ export declare class McDrawResbuf extends McRxObject {
|
|
|
470
564
|
* @param lDataType 数据类型。
|
|
471
565
|
* @returns 添加的数据项索引。
|
|
472
566
|
*/
|
|
473
|
-
AddString(str: string, lDataType?: number): number;
|
|
567
|
+
AddString(str: string, lDataType?: number, decodeFromGb2312?: boolean): number;
|
|
474
568
|
/**
|
|
475
569
|
* 添加点坐标到 resbuf 中。
|
|
476
570
|
* @param pt 点坐标。
|
|
@@ -2236,6 +2330,11 @@ export declare class McObject {
|
|
|
2236
2330
|
* @param pObjectImp - 待销毁的 McRxObjectImp 对象
|
|
2237
2331
|
*/
|
|
2238
2332
|
DestroyObject(pObjectImp: McRxObjectImp): void;
|
|
2333
|
+
/**
|
|
2334
|
+
* 得到所有布局名
|
|
2335
|
+
*/
|
|
2336
|
+
GetAllLayoutName(): McGeStringArray;
|
|
2337
|
+
SetCurrentLayout(layoutName: string): void;
|
|
2239
2338
|
}
|
|
2240
2339
|
/**
|
|
2241
2340
|
* McAppType 类,提供了 MxCAD 的一些基本操作。
|