mxcad-app 1.0.61 → 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 +28 -28
- 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
|
@@ -224,15 +224,16 @@ declare module '@howdyjs/to-drag' {
|
|
|
224
224
|
|
|
225
225
|
declare module '@tiptap/core' {
|
|
226
226
|
interface Commands<ReturnType> {
|
|
227
|
-
|
|
227
|
+
Overline: {
|
|
228
228
|
/**
|
|
229
229
|
* Set the font size attribute
|
|
230
230
|
*/
|
|
231
|
-
|
|
231
|
+
setOverline: () => ReturnType;
|
|
232
232
|
/**
|
|
233
233
|
* Unset the font size attribute
|
|
234
234
|
*/
|
|
235
|
-
|
|
235
|
+
unsetOverline: () => ReturnType;
|
|
236
|
+
toggleOverline: () => ReturnType;
|
|
236
237
|
};
|
|
237
238
|
}
|
|
238
239
|
}
|
|
@@ -240,37 +241,15 @@ declare module '@tiptap/core' {
|
|
|
240
241
|
|
|
241
242
|
declare module '@tiptap/core' {
|
|
242
243
|
interface Commands<ReturnType> {
|
|
243
|
-
|
|
244
|
+
fontSize: {
|
|
244
245
|
/**
|
|
245
246
|
* Set the font size attribute
|
|
246
247
|
*/
|
|
247
|
-
|
|
248
|
+
setFontSize: (size: string) => ReturnType;
|
|
248
249
|
/**
|
|
249
250
|
* Unset the font size attribute
|
|
250
251
|
*/
|
|
251
|
-
|
|
252
|
-
toggleOverline: () => ReturnType;
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
declare module '@tiptap/core' {
|
|
259
|
-
interface Commands<ReturnType> {
|
|
260
|
-
Underline: {
|
|
261
|
-
setUnderline: () => ReturnType;
|
|
262
|
-
unsetUnderline: () => ReturnType;
|
|
263
|
-
toggleUnderline: () => ReturnType;
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
declare module "@tiptap/core" {
|
|
270
|
-
interface Commands<ReturnType> {
|
|
271
|
-
selectedText: {
|
|
272
|
-
setSelectedText: (from: number, to: number) => ReturnType;
|
|
273
|
-
unsetSelectedText: (from: number, to: number) => ReturnType;
|
|
252
|
+
unsetFontSize: () => ReturnType;
|
|
274
253
|
};
|
|
275
254
|
}
|
|
276
255
|
}
|
|
@@ -293,6 +272,17 @@ declare module '@tiptap/core' {
|
|
|
293
272
|
}
|
|
294
273
|
|
|
295
274
|
|
|
275
|
+
declare module '@tiptap/core' {
|
|
276
|
+
interface Commands<ReturnType> {
|
|
277
|
+
Underline: {
|
|
278
|
+
setUnderline: () => ReturnType;
|
|
279
|
+
unsetUnderline: () => ReturnType;
|
|
280
|
+
toggleUnderline: () => ReturnType;
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
|
|
296
286
|
declare module '@tiptap/core' {
|
|
297
287
|
interface Commands<ReturnType> {
|
|
298
288
|
TextDecoration: {
|
|
@@ -307,3 +297,13 @@ declare module '@tiptap/core' {
|
|
|
307
297
|
};
|
|
308
298
|
}
|
|
309
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
|
+
};
|
|
308
|
+
}
|
|
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
|