mxcad-app 1.0.40 → 1.0.41

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
Binary file
Binary file
Binary file
Binary file
package/dist/index.cjs.gz CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -220,23 +220,6 @@ declare module '@howdyjs/to-drag' {
220
220
  }
221
221
 
222
222
 
223
- declare module '@tiptap/core' {
224
- interface Commands<ReturnType> {
225
- Overline: {
226
- /**
227
- * Set the font size attribute
228
- */
229
- setOverline: () => ReturnType;
230
- /**
231
- * Unset the font size attribute
232
- */
233
- unsetOverline: () => ReturnType;
234
- toggleOverline: () => ReturnType;
235
- };
236
- }
237
- }
238
-
239
-
240
223
  declare module '@tiptap/core' {
241
224
  interface Commands<ReturnType> {
242
225
  Underline: {
@@ -248,11 +231,17 @@ declare module '@tiptap/core' {
248
231
  }
249
232
 
250
233
 
251
- declare module "@tiptap/core" {
234
+ declare module '@tiptap/core' {
252
235
  interface Commands<ReturnType> {
253
- selectedText: {
254
- setSelectedText: (from: number, to: number) => ReturnType;
255
- unsetSelectedText: (from: number, to: number) => ReturnType;
236
+ fontSize: {
237
+ /**
238
+ * Set the font size attribute
239
+ */
240
+ setFontSize: (size: string) => ReturnType;
241
+ /**
242
+ * Unset the font size attribute
243
+ */
244
+ unsetFontSize: () => ReturnType;
256
245
  };
257
246
  }
258
247
  }
@@ -260,16 +249,26 @@ declare module "@tiptap/core" {
260
249
 
261
250
  declare module '@tiptap/core' {
262
251
  interface Commands<ReturnType> {
263
- Strike: {
252
+ Overline: {
264
253
  /**
265
254
  * Set the font size attribute
266
255
  */
267
- setStrike: () => ReturnType;
256
+ setOverline: () => ReturnType;
268
257
  /**
269
258
  * Unset the font size attribute
270
259
  */
271
- unsetStrike: () => ReturnType;
272
- toggleStrike: () => ReturnType;
260
+ unsetOverline: () => ReturnType;
261
+ toggleOverline: () => ReturnType;
262
+ };
263
+ }
264
+ }
265
+
266
+
267
+ declare module "@tiptap/core" {
268
+ interface Commands<ReturnType> {
269
+ selectedText: {
270
+ setSelectedText: (from: number, to: number) => ReturnType;
271
+ unsetSelectedText: (from: number, to: number) => ReturnType;
273
272
  };
274
273
  }
275
274
  }
@@ -277,15 +276,15 @@ declare module '@tiptap/core' {
277
276
 
278
277
  declare module '@tiptap/core' {
279
278
  interface Commands<ReturnType> {
280
- fontSize: {
279
+ TextDecoration: {
281
280
  /**
282
281
  * Set the font size attribute
283
282
  */
284
- setFontSize: (size: string) => ReturnType;
283
+ setTextDecoration: (textDecoration: string) => ReturnType;
285
284
  /**
286
285
  * Unset the font size attribute
287
286
  */
288
- unsetFontSize: () => ReturnType;
287
+ unsetTextDecoration: () => ReturnType;
289
288
  };
290
289
  }
291
290
  }
@@ -293,15 +292,16 @@ declare module '@tiptap/core' {
293
292
 
294
293
  declare module '@tiptap/core' {
295
294
  interface Commands<ReturnType> {
296
- TextDecoration: {
295
+ Strike: {
297
296
  /**
298
297
  * Set the font size attribute
299
298
  */
300
- setTextDecoration: (textDecoration: string) => ReturnType;
299
+ setStrike: () => ReturnType;
301
300
  /**
302
301
  * Unset the font size attribute
303
302
  */
304
- unsetTextDecoration: () => ReturnType;
303
+ unsetStrike: () => ReturnType;
304
+ toggleStrike: () => ReturnType;
305
305
  };
306
306
  }
307
307
  }
Binary file
package/dist/mxcad.d.ts CHANGED
@@ -2724,7 +2724,7 @@ declare module "mxcad" {
2724
2724
  console.log(objIds);
2725
2725
  * ```
2726
2726
  */
2727
- getCurrentSelect(filter?: MxCADResbuf | null, returnMxCADObject?: boolean, returnMxDrawObject?: boolean, whenEmptyReturnPrvSelect?: boolean, isFilterLockLayer?: boolean): McObjectId[];
2727
+ getCurrentSelect(filter?: MxCADResbuf | null | Object, returnMxCADObject?: boolean, returnMxDrawObject?: boolean, whenEmptyReturnPrvSelect?: boolean, isFilterLockLayer?: boolean): McObjectId[];
2728
2728
  /** 用户选择
2729
2729
  * @param strPrompt 字符串提示
2730
2730
  * @param filter 过滤对象
@@ -2738,7 +2738,7 @@ declare module "mxcad" {
2738
2738
  console.log(aryId);
2739
2739
  * ```
2740
2740
  * */
2741
- userSelect(strPrompt?: string, filter?: MxCADResbuf | null, init?: (ss: MxCADSelectionSet, getPoint: MrxDbgUiPrPoint) => any, isRetCurrentSelect?: boolean, isFilterLockLayer?: boolean): Promise<McObjectId[]>;
2741
+ userSelect(strPrompt?: string | Object, filter?: MxCADResbuf | null, init?: (ss: MxCADSelectionSet, getPoint: MrxDbgUiPrPoint) => any, isRetCurrentSelect?: boolean, isFilterLockLayer?: boolean): Promise<McObjectId[]>;
2742
2742
  /**
2743
2743
  * 初始化
2744
2744
  * @example
@@ -3108,7 +3108,7 @@ declare module "mxcad" {
3108
3108
  console.log(ids);
3109
3109
  * ```
3110
3110
  * */
3111
- userSelect(strPrompt?: string, filter?: MxCADResbuf | null, init?: (getPoint: MrxDbgUiPrPoint) => any): Promise<boolean>;
3111
+ userSelect(strPrompt?: string | Object, filter?: MxCADResbuf | null, init?: (getPoint: MrxDbgUiPrPoint) => any): Promise<boolean>;
3112
3112
  fenceSelect(strPrompt?: string, filter?: MxCADResbuf | null, init?: (getPoint: MrxDbgUiPrPoint) => any): Promise<boolean>;
3113
3113
  }
3114
3114
  /** MxCADUiPrBase 作为 MxCADUiPr* 系列的基类,提供了一些基础的功能。 */
@@ -11949,6 +11949,12 @@ declare module "mxcad" {
11949
11949
  * ```
11950
11950
  */
11951
11951
  newFile(): boolean;
11952
+ /**
11953
+ * 当回当前打开的文件的在md5码。
11954
+ * @example
11955
+ * ```
11956
+ */
11957
+ getCurrentOpenFileMd5(): string;
11952
11958
  /**
11953
11959
  * 插件图块文件
11954
11960
  * @param sFileUrl 网络文件路径 该文件为mxweb格式
package/dist/mxdraw.d.ts CHANGED
@@ -1799,7 +1799,7 @@ declare module "mxdraw" {
1799
1799
  EnableIntelliSelect?: boolean;
1800
1800
  /** 启动O 捕捉功能 */
1801
1801
  EnableOsnapFunction?: boolean;
1802
- /** 启动夹点编辑,true,1表示启用,0,fase表示禁用,2表示只显示夹点,但响应夹点编辑. */
1802
+ /** 启动夹点编辑,true,1表示启用,0,fase表示禁用,2表示只显示夹点,但不响应夹点编辑. */
1803
1803
  EnableGripEdit?: boolean | number;
1804
1804
  /** 启动多选,框选功能,默认值是false */
1805
1805
  multipleSelect?: boolean;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxcad-app",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",