mxcad-app 1.0.62 → 1.0.63
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/chunks/index44.js.gz +0 -0
- package/dist/chunks/lib.js.gz +0 -0
- package/dist/chunks/mxcad.js.gz +0 -0
- package/dist/chunks/mxdraw.js.gz +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.d.ts +20 -20
- package/dist/index.umd.js.gz +0 -0
- package/dist/mxcad.d.ts +23 -3
- package/dist/mxcadAppAssets/mxUiConfig.json.gz +0 -0
- package/dist/mxcadAppAssets/wasm/2d/mxdrawassembly_min.js.gz +0 -0
- package/dist/mxcadAppAssets/wasm/2d/mxdrawassembly_min.wasm.gz +0 -0
- package/dist/mxcadAppAssets/wasm/2d-st/mxdrawassembly_min.js.gz +0 -0
- package/dist/mxcadAppAssets/wasm/2d-st/mxdrawassembly_minst.wasm.gz +0 -0
- package/dist/styles/style.css.gz +0 -0
- package/package.json +1 -1
|
Binary file
|
package/dist/chunks/lib.js.gz
CHANGED
|
Binary file
|
package/dist/chunks/mxcad.js.gz
CHANGED
|
Binary file
|
package/dist/chunks/mxdraw.js.gz
CHANGED
|
Binary file
|
package/dist/index.cjs.gz
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -241,16 +241,15 @@ declare module '@tiptap/core' {
|
|
|
241
241
|
|
|
242
242
|
declare module '@tiptap/core' {
|
|
243
243
|
interface Commands<ReturnType> {
|
|
244
|
-
|
|
244
|
+
fontSize: {
|
|
245
245
|
/**
|
|
246
246
|
* Set the font size attribute
|
|
247
247
|
*/
|
|
248
|
-
|
|
248
|
+
setFontSize: (size: string) => ReturnType;
|
|
249
249
|
/**
|
|
250
250
|
* Unset the font size attribute
|
|
251
251
|
*/
|
|
252
|
-
|
|
253
|
-
toggleStrike: () => ReturnType;
|
|
252
|
+
unsetFontSize: () => ReturnType;
|
|
254
253
|
};
|
|
255
254
|
}
|
|
256
255
|
}
|
|
@@ -258,25 +257,16 @@ declare module '@tiptap/core' {
|
|
|
258
257
|
|
|
259
258
|
declare module '@tiptap/core' {
|
|
260
259
|
interface Commands<ReturnType> {
|
|
261
|
-
|
|
260
|
+
Strike: {
|
|
262
261
|
/**
|
|
263
262
|
* Set the font size attribute
|
|
264
263
|
*/
|
|
265
|
-
|
|
264
|
+
setStrike: () => ReturnType;
|
|
266
265
|
/**
|
|
267
266
|
* Unset the font size attribute
|
|
268
267
|
*/
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
declare module "@tiptap/core" {
|
|
276
|
-
interface Commands<ReturnType> {
|
|
277
|
-
selectedText: {
|
|
278
|
-
setSelectedText: (from: number, to: number) => ReturnType;
|
|
279
|
-
unsetSelectedText: (from: number, to: number) => ReturnType;
|
|
268
|
+
unsetStrike: () => ReturnType;
|
|
269
|
+
toggleStrike: () => ReturnType;
|
|
280
270
|
};
|
|
281
271
|
}
|
|
282
272
|
}
|
|
@@ -295,15 +285,25 @@ declare module '@tiptap/core' {
|
|
|
295
285
|
|
|
296
286
|
declare module '@tiptap/core' {
|
|
297
287
|
interface Commands<ReturnType> {
|
|
298
|
-
|
|
288
|
+
TextDecoration: {
|
|
299
289
|
/**
|
|
300
290
|
* Set the font size attribute
|
|
301
291
|
*/
|
|
302
|
-
|
|
292
|
+
setTextDecoration: (textDecoration: string) => ReturnType;
|
|
303
293
|
/**
|
|
304
294
|
* Unset the font size attribute
|
|
305
295
|
*/
|
|
306
|
-
|
|
296
|
+
unsetTextDecoration: () => ReturnType;
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
declare module "@tiptap/core" {
|
|
303
|
+
interface Commands<ReturnType> {
|
|
304
|
+
selectedText: {
|
|
305
|
+
setSelectedText: (from: number, to: number) => ReturnType;
|
|
306
|
+
unsetSelectedText: (from: number, to: number) => ReturnType;
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
309
|
}
|
package/dist/index.umd.js.gz
CHANGED
|
Binary file
|
package/dist/mxcad.d.ts
CHANGED
|
@@ -9247,7 +9247,7 @@ declare module "mxcad" {
|
|
|
9247
9247
|
* @example
|
|
9248
9248
|
* ```ts
|
|
9249
9249
|
* import { McCmColor } from "mxcad"
|
|
9250
|
-
*
|
|
9250
|
+
* McCmColor(red,green,blue,alpha)
|
|
9251
9251
|
* const red_color:McCmColor = new McCmColor(255, 0, 0);
|
|
9252
9252
|
*
|
|
9253
9253
|
* const colorObj = { red:0, green:255, blue:0};
|
|
@@ -12416,6 +12416,18 @@ declare module "mxcad" {
|
|
|
12416
12416
|
*/
|
|
12417
12417
|
getSysVarDouble(varName: string): number;
|
|
12418
12418
|
/**
|
|
12419
|
+
* 进入块编辑状态
|
|
12420
|
+
*/
|
|
12421
|
+
startBlockEdit(idBlockRecord: McObjectId): boolean;
|
|
12422
|
+
/**
|
|
12423
|
+
* 退出块编辑状态
|
|
12424
|
+
*/
|
|
12425
|
+
endBlockEdit(): boolean;
|
|
12426
|
+
/**
|
|
12427
|
+
* 当前是否正在块编辑
|
|
12428
|
+
*/
|
|
12429
|
+
isBlockEditing(): boolean;
|
|
12430
|
+
/**
|
|
12419
12431
|
* 获取系统变量的点数值
|
|
12420
12432
|
* @param varName 变量名称
|
|
12421
12433
|
* @returns 变量的点数值
|
|
@@ -13091,6 +13103,14 @@ declare module "mxcad" {
|
|
|
13091
13103
|
* const mxcad:McObject = MxCpp.getCurrentMxCAD()
|
|
13092
13104
|
* mxcad.drawMText(0, -100, "控件:\\P多行文字测试", 50, 400, 0, 1);
|
|
13093
13105
|
* ```
|
|
13106
|
+
* ```ts 绘下标,下标方法
|
|
13107
|
+
* let mxcad = MxCpp.getCurrentMxCAD();
|
|
13108
|
+
* mxcad.newFile();
|
|
13109
|
+
* mxcad.drawMText(0,0,"\\A1;平方方法下标: m{\\H0.7x;\\S^2;}",15,500,0.0,7);
|
|
13110
|
+
* mxcad.drawMText(0,30,"\\A2;平方方法上标: m{\\H0.3x;\\S 2^;}",15,500,0.0,7);
|
|
13111
|
+
* mxcad.zoomAll();
|
|
13112
|
+
* mxcad.updateDisplay();
|
|
13113
|
+
* ```
|
|
13094
13114
|
*/
|
|
13095
13115
|
drawMText(dPosX: number, dPosY: number, sContents: string, dHeight: number, dWidth: number, dRotation: number, iAttachment: McDb.AttachmentPoint): McObjectId;
|
|
13096
13116
|
/**
|
|
@@ -14277,11 +14297,11 @@ declare module "mxcad" {
|
|
|
14277
14297
|
/**
|
|
14278
14298
|
*创建协同工作
|
|
14279
14299
|
*/
|
|
14280
|
-
createWrok(retCall?: (wrokId: number) => void): number;
|
|
14300
|
+
createWrok(retCall?: (wrokId: number) => void, sWorkName?: string): number;
|
|
14281
14301
|
/**
|
|
14282
14302
|
*得到当前正在协同的工作名列表
|
|
14283
14303
|
*/
|
|
14284
|
-
getWorks(retCall: (
|
|
14304
|
+
getWorks(retCall: (works: any[]) => void): number;
|
|
14285
14305
|
/**
|
|
14286
14306
|
*创建协同工作
|
|
14287
14307
|
*/
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/styles/style.css.gz
CHANGED
|
Binary file
|