mxcad-app 1.0.22 → 1.0.23

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.
Binary file
Binary file
package/dist/index.cjs.gz CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -236,11 +236,12 @@ declare module '@tiptap/core' {
236
236
  }
237
237
 
238
238
 
239
- declare module "@tiptap/core" {
239
+ declare module '@tiptap/core' {
240
240
  interface Commands<ReturnType> {
241
- selectedText: {
242
- setSelectedText: (from: number, to: number) => ReturnType;
243
- unsetSelectedText: (from: number, to: number) => ReturnType;
241
+ Underline: {
242
+ setUnderline: () => ReturnType;
243
+ unsetUnderline: () => ReturnType;
244
+ toggleUnderline: () => ReturnType;
244
245
  };
245
246
  }
246
247
  }
@@ -248,16 +249,16 @@ declare module "@tiptap/core" {
248
249
 
249
250
  declare module '@tiptap/core' {
250
251
  interface Commands<ReturnType> {
251
- Strike: {
252
+ Overline: {
252
253
  /**
253
254
  * Set the font size attribute
254
255
  */
255
- setStrike: () => ReturnType;
256
+ setOverline: () => ReturnType;
256
257
  /**
257
258
  * Unset the font size attribute
258
259
  */
259
- unsetStrike: () => ReturnType;
260
- toggleStrike: () => ReturnType;
260
+ unsetOverline: () => ReturnType;
261
+ toggleOverline: () => ReturnType;
261
262
  };
262
263
  }
263
264
  }
@@ -265,16 +266,15 @@ declare module '@tiptap/core' {
265
266
 
266
267
  declare module '@tiptap/core' {
267
268
  interface Commands<ReturnType> {
268
- Overline: {
269
+ fontSize: {
269
270
  /**
270
271
  * Set the font size attribute
271
272
  */
272
- setOverline: () => ReturnType;
273
+ setFontSize: (size: string) => ReturnType;
273
274
  /**
274
275
  * Unset the font size attribute
275
276
  */
276
- unsetOverline: () => ReturnType;
277
- toggleOverline: () => ReturnType;
277
+ unsetFontSize: () => ReturnType;
278
278
  };
279
279
  }
280
280
  }
@@ -282,26 +282,26 @@ declare module '@tiptap/core' {
282
282
 
283
283
  declare module '@tiptap/core' {
284
284
  interface Commands<ReturnType> {
285
- fontSize: {
285
+ Strike: {
286
286
  /**
287
287
  * Set the font size attribute
288
288
  */
289
- setFontSize: (size: string) => ReturnType;
289
+ setStrike: () => ReturnType;
290
290
  /**
291
291
  * Unset the font size attribute
292
292
  */
293
- unsetFontSize: () => ReturnType;
293
+ unsetStrike: () => ReturnType;
294
+ toggleStrike: () => ReturnType;
294
295
  };
295
296
  }
296
297
  }
297
298
 
298
299
 
299
- declare module '@tiptap/core' {
300
+ declare module "@tiptap/core" {
300
301
  interface Commands<ReturnType> {
301
- Underline: {
302
- setUnderline: () => ReturnType;
303
- unsetUnderline: () => ReturnType;
304
- toggleUnderline: () => ReturnType;
302
+ selectedText: {
303
+ setSelectedText: (from: number, to: number) => ReturnType;
304
+ unsetSelectedText: (from: number, to: number) => ReturnType;
305
305
  };
306
306
  }
307
307
  }
Binary file
package/dist/mxcad.d.ts CHANGED
@@ -13474,13 +13474,20 @@ declare module "mxcad" {
13474
13474
  constructor();
13475
13475
  private getTypeString;
13476
13476
  /**
13477
- * 把当前控件显示的内容和database的图纸进行比较
13477
+ * 把当前控件显示的内容和base_database的图纸进行比较,base_database可认为是原始图纸,当前控件上新绘制的对象就是新增对象。
13478
13478
  */
13479
- do(database: McDbDatabase): boolean;
13479
+ do(base_database: McDbDatabase): boolean;
13480
13480
  /**
13481
13481
  * 得到图纸比较结果
13482
13482
  */
13483
13483
  getResult(): any[];
13484
+ /**
13485
+ * 通过当前的比较结果,重新生成显示。用不同颜色标注修改地方。
13486
+ * 把修改的对象,用粉色显示
13487
+ * 增加的对象,用绿色显示
13488
+ * 删除的对象,用红色显示
13489
+ */
13490
+ regenDisplay(): boolean;
13484
13491
  }
13485
13492
  /**
13486
13493
  * MxModifyColor 批量修改图上对象颜色
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxcad-app",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "browser": "./dist/index.umd.js",