mxcad-app 1.0.34 → 1.0.35

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
Binary file
package/dist/index.cjs.gz CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -220,17 +220,22 @@ declare module '@howdyjs/to-drag' {
220
220
  }
221
221
 
222
222
 
223
+ declare module "@tiptap/core" {
224
+ interface Commands<ReturnType> {
225
+ selectedText: {
226
+ setSelectedText: (from: number, to: number) => ReturnType;
227
+ unsetSelectedText: (from: number, to: number) => ReturnType;
228
+ };
229
+ }
230
+ }
231
+
232
+
223
233
  declare module '@tiptap/core' {
224
234
  interface Commands<ReturnType> {
225
- fontSize: {
226
- /**
227
- * Set the font size attribute
228
- */
229
- setFontSize: (size: string) => ReturnType;
230
- /**
231
- * Unset the font size attribute
232
- */
233
- unsetFontSize: () => ReturnType;
235
+ Underline: {
236
+ setUnderline: () => ReturnType;
237
+ unsetUnderline: () => ReturnType;
238
+ toggleUnderline: () => ReturnType;
234
239
  };
235
240
  }
236
241
  }
@@ -255,10 +260,16 @@ declare module '@tiptap/core' {
255
260
 
256
261
  declare module '@tiptap/core' {
257
262
  interface Commands<ReturnType> {
258
- Underline: {
259
- setUnderline: () => ReturnType;
260
- unsetUnderline: () => ReturnType;
261
- toggleUnderline: () => ReturnType;
263
+ Overline: {
264
+ /**
265
+ * Set the font size attribute
266
+ */
267
+ setOverline: () => ReturnType;
268
+ /**
269
+ * Unset the font size attribute
270
+ */
271
+ unsetOverline: () => ReturnType;
272
+ toggleOverline: () => ReturnType;
262
273
  };
263
274
  }
264
275
  }
@@ -266,25 +277,15 @@ declare module '@tiptap/core' {
266
277
 
267
278
  declare module '@tiptap/core' {
268
279
  interface Commands<ReturnType> {
269
- TextDecoration: {
280
+ fontSize: {
270
281
  /**
271
282
  * Set the font size attribute
272
283
  */
273
- setTextDecoration: (textDecoration: string) => ReturnType;
284
+ setFontSize: (size: string) => ReturnType;
274
285
  /**
275
286
  * Unset the font size attribute
276
287
  */
277
- unsetTextDecoration: () => ReturnType;
278
- };
279
- }
280
- }
281
-
282
-
283
- declare module "@tiptap/core" {
284
- interface Commands<ReturnType> {
285
- selectedText: {
286
- setSelectedText: (from: number, to: number) => ReturnType;
287
- unsetSelectedText: (from: number, to: number) => ReturnType;
288
+ unsetFontSize: () => ReturnType;
288
289
  };
289
290
  }
290
291
  }
@@ -292,16 +293,15 @@ declare module "@tiptap/core" {
292
293
 
293
294
  declare module '@tiptap/core' {
294
295
  interface Commands<ReturnType> {
295
- Overline: {
296
+ TextDecoration: {
296
297
  /**
297
298
  * Set the font size attribute
298
299
  */
299
- setOverline: () => ReturnType;
300
+ setTextDecoration: (textDecoration: string) => ReturnType;
300
301
  /**
301
302
  * Unset the font size attribute
302
303
  */
303
- unsetOverline: () => ReturnType;
304
- toggleOverline: () => ReturnType;
304
+ unsetTextDecoration: () => ReturnType;
305
305
  };
306
306
  }
307
307
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c4 as e, c3 as p, c5 as s } from "./chunks/lib.js";
1
+ import { c5 as e, c4 as p, c6 as s } from "./chunks/lib.js";
2
2
  export {
3
3
  e as MxCADView,
4
4
  p as default,
Binary file
package/dist/mxcad.d.ts CHANGED
@@ -2762,11 +2762,16 @@ declare module "mxcad" {
2762
2762
  * const ret = await MxCADUtility.getCorner("测试");
2763
2763
  * if (!ret) return;
2764
2764
  * console.log(ret.pt1, ret.pt2)
2765
+ * pt4----pt2
2766
+ * | |
2767
+ * pt1----pt3
2765
2768
  * ```
2766
2769
  * */
2767
2770
  getCorner(strPrompt?: string, pt1?: McGePoint3d, detailedResult?: (retcode: DetailedResult) => any, drawSelectCroner?: boolean, isDisableAllTrace?: boolean, init?: (getPoint: MxCADUiPrPoint) => any): Promise<{
2768
2771
  pt1: McGePoint3d;
2769
2772
  pt2: McGePoint3d;
2773
+ pt3: McGePoint3d;
2774
+ pt4: McGePoint3d;
2770
2775
  } | null>;
2771
2776
  /** 获取多个实体形成的包围盒
2772
2777
  * @param aryId 实体对象ID数组
@@ -11673,6 +11678,14 @@ declare module "mxcad" {
11673
11678
  * ```
11674
11679
  */
11675
11680
  getMxDrawObject(): MxDrawObject;
11681
+ /**
11682
+ * 返回与MxCAD当前视区旋转矩阵
11683
+ * @returns McGeMatrix3d对象
11684
+ * @example
11685
+ * ```ts
11686
+ * ```
11687
+ */
11688
+ getMxCADViewSpinMatrix(): McGeMatrix3d;
11676
11689
  /**
11677
11690
  * 返回与MxCAD对象绑定的MxDraw对象。
11678
11691
  * @returns MxDraw对象
@@ -11685,6 +11698,10 @@ declare module "mxcad" {
11685
11698
  * ```
11686
11699
  */
11687
11700
  get mxdraw(): MxDrawObject;
11701
+ /**
11702
+ * 把mxcad设置当前的cad对象
11703
+ */
11704
+ makeCurrent(): void;
11688
11705
  /**
11689
11706
  * 获取内部实现对象
11690
11707
  * @returns 内部实现对象
@@ -13561,6 +13578,24 @@ declare module "mxcad" {
13561
13578
  * ```
13562
13579
  */
13563
13580
  getCurrentMxCAD(): McObject;
13581
+ /**
13582
+ * 返回当前活动的CAD对象
13583
+ * @example
13584
+ * ```ts
13585
+ * import { MxCpp } from "mxcad";
13586
+ * const mxcad = MxCpp.getCurrentMxCAD();
13587
+ * ```
13588
+ */
13589
+ get mxcad(): McObject;
13590
+ /**
13591
+ * 返回当前活动的CAD对象的数据库对象.
13592
+ * @example
13593
+ * ```ts
13594
+ * import { MxCpp } from "mxcad";
13595
+ * const dataBase = MxCpp.getCurrentDatabase();
13596
+ * ```
13597
+ */
13598
+ get currentDatabase(): McDbDatabase;
13564
13599
  /**
13565
13600
  * 返回当前活动的CAD对象的数据库对象.
13566
13601
  * @example
Binary file
package/dist/mxdraw.d.ts CHANGED
@@ -497,7 +497,7 @@ declare module "mxdraw" {
497
497
  * ```
498
498
  *
499
499
  */
500
- drawSolid(points: THREE.Vector3[]): void;
500
+ drawSolid(points: THREE.Vector3[], depthTest?: boolean): void;
501
501
  /**
502
502
  *把一个对象的绘图属性设置到当前绘图上下文
503
503
  * @returns
@@ -5096,6 +5096,7 @@ declare module "mxdraw" {
5096
5096
  */
5097
5097
  class MxDbHatch extends MxDbEntity {
5098
5098
  points: THREE.Vector3[];
5099
+ depthTest: boolean;
5099
5100
  worldDraw(pWorldDraw: McGiWorldDraw): void;
5100
5101
  getTypeName(): string;
5101
5102
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxcad-app",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -55,6 +55,7 @@
55
55
  "dist",
56
56
  "LICENSE",
57
57
  "LICENSE_CN",
58
+ "THIRD-PARTY-NOTICES.txt",
58
59
  "README.md",
59
60
  "packToolPlugin",
60
61
  "package.json",