mxcad-app 1.0.64 → 1.0.66

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.
Files changed (66) hide show
  1. package/dist/chunks/es.regexp.constructor.js.gz +0 -0
  2. package/dist/chunks/hooks.js +1 -1
  3. package/dist/chunks/hooks2.js.gz +0 -0
  4. package/dist/chunks/hooks3.js +1 -1
  5. package/dist/chunks/identificationFrame.js.gz +0 -0
  6. package/dist/chunks/index.js.gz +0 -0
  7. package/dist/chunks/index10.js.gz +0 -0
  8. package/dist/chunks/index11.js.gz +0 -0
  9. package/dist/chunks/index12.js.gz +0 -0
  10. package/dist/chunks/index13.js.gz +0 -0
  11. package/dist/chunks/index14.js.gz +0 -0
  12. package/dist/chunks/index15.js.gz +0 -0
  13. package/dist/chunks/index16.js.gz +0 -0
  14. package/dist/chunks/index17.js.gz +0 -0
  15. package/dist/chunks/index18.js.gz +0 -0
  16. package/dist/chunks/index19.js.gz +0 -0
  17. package/dist/chunks/index2.js.gz +0 -0
  18. package/dist/chunks/index20.js.gz +0 -0
  19. package/dist/chunks/index21.js.gz +0 -0
  20. package/dist/chunks/index22.js.gz +0 -0
  21. package/dist/chunks/index23.js.gz +0 -0
  22. package/dist/chunks/index24.js.gz +0 -0
  23. package/dist/chunks/index25.js.gz +0 -0
  24. package/dist/chunks/index26.js.gz +0 -0
  25. package/dist/chunks/index27.js.gz +0 -0
  26. package/dist/chunks/index28.js.gz +0 -0
  27. package/dist/chunks/index29.js.gz +0 -0
  28. package/dist/chunks/index3.js.gz +0 -0
  29. package/dist/chunks/index30.js.gz +0 -0
  30. package/dist/chunks/index31.js.gz +0 -0
  31. package/dist/chunks/index32.js.gz +0 -0
  32. package/dist/chunks/index33.js.gz +0 -0
  33. package/dist/chunks/index34.js.gz +0 -0
  34. package/dist/chunks/index35.js.gz +0 -0
  35. package/dist/chunks/index36.js.gz +0 -0
  36. package/dist/chunks/index37.js.gz +0 -0
  37. package/dist/chunks/index38.js.gz +0 -0
  38. package/dist/chunks/index39.js.gz +0 -0
  39. package/dist/chunks/index4.js.gz +0 -0
  40. package/dist/chunks/index40.js.gz +0 -0
  41. package/dist/chunks/index41.js.gz +0 -0
  42. package/dist/chunks/index44.js.gz +0 -0
  43. package/dist/chunks/index45.js.gz +0 -0
  44. package/dist/chunks/index5.js.gz +0 -0
  45. package/dist/chunks/index6.js.gz +0 -0
  46. package/dist/chunks/index7.js.gz +0 -0
  47. package/dist/chunks/index8.js.gz +0 -0
  48. package/dist/chunks/index9.js.gz +0 -0
  49. package/dist/chunks/lib.js.gz +0 -0
  50. package/dist/chunks/mapbox.js.gz +0 -0
  51. package/dist/chunks/mxcad.js.gz +0 -0
  52. package/dist/chunks/mxdraw.js.gz +0 -0
  53. package/dist/chunks/useMultilineTextDialog.js +1 -1
  54. package/dist/chunks/vuetify.js.gz +0 -0
  55. package/dist/index.cjs.gz +0 -0
  56. package/dist/index.d.ts +68 -20
  57. package/dist/index.js +4 -4
  58. package/dist/index.umd.js.gz +0 -0
  59. package/dist/mxcad.d.ts +2 -2
  60. package/dist/mxcadAppAssets/vuetifyThemeConfig.json.gz +0 -0
  61. package/dist/mxcadAppAssets/wasm/2d/mxdrawassembly_min.js.gz +0 -0
  62. package/dist/mxcadAppAssets/wasm/2d/mxdrawassembly_min.wasm.gz +0 -0
  63. package/dist/mxcadAppAssets/wasm/2d-st/mxdrawassembly_min.js.gz +0 -0
  64. package/dist/mxcadAppAssets/wasm/2d-st/mxdrawassembly_minst.wasm.gz +0 -0
  65. package/dist/styles/style.css.gz +0 -0
  66. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { bA as e } from "./lib.js";
1
+ import { bC as e } from "./lib.js";
2
2
  var i = function() {
3
3
  return {
4
4
  dialog: e
Binary file
@@ -1,4 +1,4 @@
1
- import { bB as e } from "./lib.js";
1
+ import { bD as e } from "./lib.js";
2
2
  var r = function() {
3
3
  return {
4
4
  dialog: e
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { bx as n, _ as c, j as t } from "./lib.js";
1
+ import { bz as n, _ as c, j as t } from "./lib.js";
2
2
  var l = function(o) {
3
3
  return new Promise(/* @__PURE__ */ function() {
4
4
  var u = c(/* @__PURE__ */ t.mark(function r(a) {
Binary file
package/dist/index.cjs.gz CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -25,6 +25,21 @@ declare interface AppConfig {
25
25
  themeConfig?: string;
26
26
  }
27
27
 
28
+ declare interface CutBox {
29
+ imgBase64: string;
30
+ param: CutBoxParam;
31
+ exportStatus: 'ready' | 'exporting' | 'success' | 'error';
32
+ fileName?: string;
33
+ selected?: boolean;
34
+ }
35
+
36
+ declare interface CutBoxParam {
37
+ bd_pt1_x: string;
38
+ bd_pt1_y: string;
39
+ bd_pt2_x: string;
40
+ bd_pt2_y: string;
41
+ }
42
+
28
43
  /**
29
44
  * 事件总线类
30
45
  */
@@ -62,6 +77,10 @@ declare class MxCADApp extends MxCADEvents {
62
77
  setStaticAssetPath(url: string): void;
63
78
  getStaticAssetPath(): string;
64
79
  initConfig(config: AppConfig): void;
80
+ /** 设置打印配置和回调 */
81
+ initPrintConfig(config: MxCADPrintCallConfig): void;
82
+ /** 设置剪切图纸设置和回调 */
83
+ initCutConfig(config: MxCADCutCallConfig): void;
65
84
  /** 获取mxcad-app使用的vuetify实例 */
66
85
  getVuetify(): Promise<{
67
86
  install: (app: App) => void;
@@ -161,6 +180,13 @@ declare namespace mxcadApp_2 {
161
180
  }
162
181
  export default mxcadApp_2;
163
182
 
183
+ declare type MxCADCutCallBack = (data: Blob, box: CutBox) => (void | string) | Promise<void | string>;
184
+
185
+ declare interface MxCADCutCallConfig {
186
+ /** 剪切图纸回调函数 */
187
+ callback: MxCADCutCallBack;
188
+ }
189
+
164
190
  declare class MxCADEvents extends EventBus<MxCADEventsMap> {
165
191
  /**
166
192
  * 创建vue app 实例
@@ -185,6 +211,28 @@ declare interface MxCADEventsMap {
185
211
  "mountedVueApp": App;
186
212
  }
187
213
 
214
+ declare type MxCADPrintCallBack = (data: Blob, param: MxCADPrintParam) => (void | string) | Promise<void | string>;
215
+
216
+ declare interface MxCADPrintCallConfig {
217
+ /** 打印预览回调函数 */
218
+ callback: MxCADPrintCallBack;
219
+ }
220
+
221
+ declare interface MxCADPrintParam {
222
+ width: string;
223
+ height: string;
224
+ roate_angle: number;
225
+ view_angle: number;
226
+ bd_pt1_x: string;
227
+ bd_pt1_y: string;
228
+ bd_pt2_x: string;
229
+ bd_pt2_y: string;
230
+ colorPolicy: 'mono' | 'default';
231
+ open_file_md5: string;
232
+ layout_name?: string;
233
+ create_clip_block?: boolean;
234
+ }
235
+
188
236
  export declare class MxCADView {
189
237
  constructor(config?: MxCADViewConfig);
190
238
  private vueApp?;
@@ -222,17 +270,28 @@ declare module '@howdyjs/to-drag' {
222
270
  }
223
271
 
224
272
 
273
+ declare module "@tiptap/core" {
274
+ interface Commands<ReturnType> {
275
+ selectedText: {
276
+ setSelectedText: (from: number, to: number) => ReturnType;
277
+ unsetSelectedText: (from: number, to: number) => ReturnType;
278
+ };
279
+ }
280
+ }
281
+
282
+
225
283
  declare module '@tiptap/core' {
226
284
  interface Commands<ReturnType> {
227
- TextDecoration: {
285
+ Overline: {
228
286
  /**
229
287
  * Set the font size attribute
230
288
  */
231
- setTextDecoration: (textDecoration: string) => ReturnType;
289
+ setOverline: () => ReturnType;
232
290
  /**
233
291
  * Unset the font size attribute
234
292
  */
235
- unsetTextDecoration: () => ReturnType;
293
+ unsetOverline: () => ReturnType;
294
+ toggleOverline: () => ReturnType;
236
295
  };
237
296
  }
238
297
  }
@@ -249,16 +308,6 @@ declare module '@tiptap/core' {
249
308
  }
250
309
 
251
310
 
252
- declare module "@tiptap/core" {
253
- interface Commands<ReturnType> {
254
- selectedText: {
255
- setSelectedText: (from: number, to: number) => ReturnType;
256
- unsetSelectedText: (from: number, to: number) => ReturnType;
257
- };
258
- }
259
- }
260
-
261
-
262
311
  declare module '@tiptap/core' {
263
312
  interface Commands<ReturnType> {
264
313
  Strike: {
@@ -278,15 +327,15 @@ declare module '@tiptap/core' {
278
327
 
279
328
  declare module '@tiptap/core' {
280
329
  interface Commands<ReturnType> {
281
- fontSize: {
330
+ TextDecoration: {
282
331
  /**
283
332
  * Set the font size attribute
284
333
  */
285
- setFontSize: (size: string) => ReturnType;
334
+ setTextDecoration: (textDecoration: string) => ReturnType;
286
335
  /**
287
336
  * Unset the font size attribute
288
337
  */
289
- unsetFontSize: () => ReturnType;
338
+ unsetTextDecoration: () => ReturnType;
290
339
  };
291
340
  }
292
341
  }
@@ -294,16 +343,15 @@ declare module '@tiptap/core' {
294
343
 
295
344
  declare module '@tiptap/core' {
296
345
  interface Commands<ReturnType> {
297
- Overline: {
346
+ fontSize: {
298
347
  /**
299
348
  * Set the font size attribute
300
349
  */
301
- setOverline: () => ReturnType;
350
+ setFontSize: (size: string) => ReturnType;
302
351
  /**
303
352
  * Unset the font size attribute
304
353
  */
305
- unsetOverline: () => ReturnType;
306
- toggleOverline: () => ReturnType;
354
+ unsetFontSize: () => ReturnType;
307
355
  };
308
356
  }
309
357
  }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { cy as x, cx as e, cz as p } from "./chunks/lib.js";
1
+ import { cA as e, cz as p, cB as s } from "./chunks/lib.js";
2
2
  export {
3
- x as MxCADView,
4
- e as default,
5
- p as mxcadApp
3
+ e as MxCADView,
4
+ p as default,
5
+ s as mxcadApp
6
6
  };
Binary file
package/dist/mxcad.d.ts CHANGED
@@ -14434,7 +14434,7 @@ declare module "mxcad" {
14434
14434
  /**
14435
14435
  *创建协同工作
14436
14436
  */
14437
- createWrok(retCall?: (wrokId: number) => void, sWorkName?: string): number;
14437
+ createWrok(retCall?: (wrokId: number) => void, sWorkData?: string, sUserId?: string, sUserData?: string): number;
14438
14438
  /**
14439
14439
  *得到当前正在协同的工作名列表
14440
14440
  */
@@ -14442,7 +14442,7 @@ declare module "mxcad" {
14442
14442
  /**
14443
14443
  *创建协同工作
14444
14444
  */
14445
- joinWork(workId: number, retCall?: (iRet: number) => void): number;
14445
+ joinWork(workId: number, retCall?: (iRet: number) => void, sUserId?: string, sUserData?: string): number;
14446
14446
  /**
14447
14447
  *初始化参数
14448
14448
  *比如:{server_addres:"http://localhost:3091"}
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxcad-app",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",