mxcad-app 1.0.58 → 1.0.60
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/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 +25 -24
- package/dist/index.umd.js.gz +0 -0
- package/dist/mxcad.d.ts +25 -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/mxdraw.d.ts +1 -1
- package/package.json +1 -1
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
|
@@ -201,6 +201,7 @@ declare interface MxCADViewConfig {
|
|
|
201
201
|
rootContainer?: string | HTMLElement;
|
|
202
202
|
openFile?: string;
|
|
203
203
|
map?: boolean;
|
|
204
|
+
requestHeaders?: any;
|
|
204
205
|
}
|
|
205
206
|
|
|
206
207
|
export { }
|
|
@@ -222,16 +223,15 @@ declare module '@howdyjs/to-drag' {
|
|
|
222
223
|
|
|
223
224
|
declare module '@tiptap/core' {
|
|
224
225
|
interface Commands<ReturnType> {
|
|
225
|
-
|
|
226
|
+
TextDecoration: {
|
|
226
227
|
/**
|
|
227
228
|
* Set the font size attribute
|
|
228
229
|
*/
|
|
229
|
-
|
|
230
|
+
setTextDecoration: (textDecoration: string) => ReturnType;
|
|
230
231
|
/**
|
|
231
232
|
* Unset the font size attribute
|
|
232
233
|
*/
|
|
233
|
-
|
|
234
|
-
toggleStrike: () => ReturnType;
|
|
234
|
+
unsetTextDecoration: () => ReturnType;
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -239,10 +239,16 @@ declare module '@tiptap/core' {
|
|
|
239
239
|
|
|
240
240
|
declare module '@tiptap/core' {
|
|
241
241
|
interface Commands<ReturnType> {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
Overline: {
|
|
243
|
+
/**
|
|
244
|
+
* Set the font size attribute
|
|
245
|
+
*/
|
|
246
|
+
setOverline: () => ReturnType;
|
|
247
|
+
/**
|
|
248
|
+
* Unset the font size attribute
|
|
249
|
+
*/
|
|
250
|
+
unsetOverline: () => ReturnType;
|
|
251
|
+
toggleOverline: () => ReturnType;
|
|
246
252
|
};
|
|
247
253
|
}
|
|
248
254
|
}
|
|
@@ -250,16 +256,16 @@ declare module '@tiptap/core' {
|
|
|
250
256
|
|
|
251
257
|
declare module '@tiptap/core' {
|
|
252
258
|
interface Commands<ReturnType> {
|
|
253
|
-
|
|
259
|
+
Strike: {
|
|
254
260
|
/**
|
|
255
261
|
* Set the font size attribute
|
|
256
262
|
*/
|
|
257
|
-
|
|
263
|
+
setStrike: () => ReturnType;
|
|
258
264
|
/**
|
|
259
265
|
* Unset the font size attribute
|
|
260
266
|
*/
|
|
261
|
-
|
|
262
|
-
|
|
267
|
+
unsetStrike: () => ReturnType;
|
|
268
|
+
toggleStrike: () => ReturnType;
|
|
263
269
|
};
|
|
264
270
|
}
|
|
265
271
|
}
|
|
@@ -267,15 +273,15 @@ declare module '@tiptap/core' {
|
|
|
267
273
|
|
|
268
274
|
declare module '@tiptap/core' {
|
|
269
275
|
interface Commands<ReturnType> {
|
|
270
|
-
|
|
276
|
+
fontSize: {
|
|
271
277
|
/**
|
|
272
278
|
* Set the font size attribute
|
|
273
279
|
*/
|
|
274
|
-
|
|
280
|
+
setFontSize: (size: string) => ReturnType;
|
|
275
281
|
/**
|
|
276
282
|
* Unset the font size attribute
|
|
277
283
|
*/
|
|
278
|
-
|
|
284
|
+
unsetFontSize: () => ReturnType;
|
|
279
285
|
};
|
|
280
286
|
}
|
|
281
287
|
}
|
|
@@ -293,15 +299,10 @@ declare module "@tiptap/core" {
|
|
|
293
299
|
|
|
294
300
|
declare module '@tiptap/core' {
|
|
295
301
|
interface Commands<ReturnType> {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
setFontSize: (size: string) => ReturnType;
|
|
301
|
-
/**
|
|
302
|
-
* Unset the font size attribute
|
|
303
|
-
*/
|
|
304
|
-
unsetFontSize: () => ReturnType;
|
|
302
|
+
Underline: {
|
|
303
|
+
setUnderline: () => ReturnType;
|
|
304
|
+
unsetUnderline: () => ReturnType;
|
|
305
|
+
toggleUnderline: () => ReturnType;
|
|
305
306
|
};
|
|
306
307
|
}
|
|
307
308
|
}
|
package/dist/index.umd.js.gz
CHANGED
|
Binary file
|
package/dist/mxcad.d.ts
CHANGED
|
@@ -12945,6 +12945,27 @@ declare module "mxcad" {
|
|
|
12945
12945
|
* ```
|
|
12946
12946
|
*/
|
|
12947
12947
|
loadImage(imageUrl: string, call: (image: any) => void, imageFileName?: string, fileType?: string): void;
|
|
12948
|
+
/**
|
|
12949
|
+
* 加载Base64图片。
|
|
12950
|
+
* @param imageUrl 图片路径
|
|
12951
|
+
* @param call 回调函数
|
|
12952
|
+
* @example
|
|
12953
|
+
* ```ts
|
|
12954
|
+
import { MxCpp, McObject } from "mxcad"
|
|
12955
|
+
const mxcad: McObject = MxCpp.getCurrentMxCAD()
|
|
12956
|
+
mxcad.loadImage(imagUrl, (image) => {
|
|
12957
|
+
if (!image) {
|
|
12958
|
+
console.log("loadImage failed");
|
|
12959
|
+
return;
|
|
12960
|
+
}
|
|
12961
|
+
let width = mxcad.mxdraw.viewCoordLong2Cad(100);
|
|
12962
|
+
let height = (image.height / image.width) * width;
|
|
12963
|
+
idImage = mxcad.drawImage((pt as any).x, (pt as any).y, width, height, 0, imagUrl,true);
|
|
12964
|
+
mxcad.updateDisplay();
|
|
12965
|
+
});
|
|
12966
|
+
* ```
|
|
12967
|
+
*/
|
|
12968
|
+
loadImageBase64(sImageBase64: string, imageFileName: string, call: (image: any) => void): void;
|
|
12948
12969
|
/**
|
|
12949
12970
|
* 绘制一个图片
|
|
12950
12971
|
* @param dPosX 图片 X 坐标
|
|
@@ -13361,6 +13382,10 @@ declare module "mxcad" {
|
|
|
13361
13382
|
* 得到当前布局ID
|
|
13362
13383
|
*/
|
|
13363
13384
|
getCurrentLayoutId(): McObjectId;
|
|
13385
|
+
/**
|
|
13386
|
+
* 得到当前openWebFile打开的文件,的文件名,如果打开是一个流数据,该变量会取服务器返回请求头的filename的值。
|
|
13387
|
+
*/
|
|
13388
|
+
GetDocumentFileName(): string;
|
|
13364
13389
|
/**
|
|
13365
13390
|
* 返加MxCpp对象,它会在MxDraw模块中调用。
|
|
13366
13391
|
*/
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/mxdraw.d.ts
CHANGED
|
@@ -1030,7 +1030,7 @@ declare module "mxdraw" {
|
|
|
1030
1030
|
msCmdTip: string;
|
|
1031
1031
|
msCmdDisplay: string;
|
|
1032
1032
|
msCmdText: string;
|
|
1033
|
-
}) => void) | undefined
|
|
1033
|
+
}) => void) | undefined | Array<any>;
|
|
1034
1034
|
mxFunObject: undefined;
|
|
1035
1035
|
mountUpDisplayFun: (fun: ((data: {
|
|
1036
1036
|
msCmdTip: string;
|