mxcad-app 1.0.55 → 1.0.56

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,23 +236,6 @@ declare module '@tiptap/core' {
236
236
  }
237
237
 
238
238
 
239
- declare module '@tiptap/core' {
240
- interface Commands<ReturnType> {
241
- Overline: {
242
- /**
243
- * Set the font size attribute
244
- */
245
- setOverline: () => ReturnType;
246
- /**
247
- * Unset the font size attribute
248
- */
249
- unsetOverline: () => ReturnType;
250
- toggleOverline: () => ReturnType;
251
- };
252
- }
253
- }
254
-
255
-
256
239
  declare module '@tiptap/core' {
257
240
  interface Commands<ReturnType> {
258
241
  Strike: {
@@ -281,6 +264,22 @@ declare module '@tiptap/core' {
281
264
  }
282
265
 
283
266
 
267
+ declare module '@tiptap/core' {
268
+ interface Commands<ReturnType> {
269
+ fontSize: {
270
+ /**
271
+ * Set the font size attribute
272
+ */
273
+ setFontSize: (size: string) => ReturnType;
274
+ /**
275
+ * Unset the font size attribute
276
+ */
277
+ unsetFontSize: () => ReturnType;
278
+ };
279
+ }
280
+ }
281
+
282
+
284
283
  declare module "@tiptap/core" {
285
284
  interface Commands<ReturnType> {
286
285
  selectedText: {
@@ -293,15 +292,16 @@ declare module "@tiptap/core" {
293
292
 
294
293
  declare module '@tiptap/core' {
295
294
  interface Commands<ReturnType> {
296
- fontSize: {
295
+ Overline: {
297
296
  /**
298
297
  * Set the font size attribute
299
298
  */
300
- setFontSize: (size: string) => ReturnType;
299
+ setOverline: () => ReturnType;
301
300
  /**
302
301
  * Unset the font size attribute
303
302
  */
304
- unsetFontSize: () => ReturnType;
303
+ unsetOverline: () => ReturnType;
304
+ toggleOverline: () => ReturnType;
305
305
  };
306
306
  }
307
307
  }
Binary file
package/dist/mxcad.d.ts CHANGED
@@ -636,6 +636,13 @@ declare module "mxcad" {
636
636
  */
637
637
  getGripPoints(): McGePoint3dArray;
638
638
  /**
639
+ * 获取对象的夹点对应的编辑基点索引。
640
+ * @example
641
+ * ```ts
642
+ * ```
643
+ */
644
+ getGripEditBasePointsIndex(): number[];
645
+ /**
639
646
  * @internal
640
647
  * MxCAD辅助,内部使用
641
648
  * ```
@@ -14660,6 +14667,11 @@ declare module "mxcad" {
14660
14667
  * @returns 夹点对象数组
14661
14668
  */
14662
14669
  getGripPoints(): McGePoint3dArray;
14670
+ /**
14671
+ * 获取自定义对象的夹点。
14672
+ * @returns 夹点对象数组
14673
+ */
14674
+ getGripEditBasePointsIndex(): number[];
14663
14675
  /**
14664
14676
  * 获取自定义对象矩阵坐标变换
14665
14677
  */
package/dist/mxdraw.d.ts CHANGED
@@ -1384,6 +1384,16 @@ declare module "mxdraw" {
1384
1384
  * ```
1385
1385
  */
1386
1386
  addCommand: (cmdName: string, fun: Function, cmdFlag?: number) => void;
1387
+ /**
1388
+ * 删除一个已经注册的命令
1389
+ * @param cmdName 命令名
1390
+ * @return void
1391
+ * @example
1392
+ * ``` typescript
1393
+ * })
1394
+ * ```
1395
+ */
1396
+ removeCommand: (cmdName: string) => void;
1387
1397
  /**
1388
1398
  * 执行命令
1389
1399
  * @param cmdName 命令名
@@ -1930,7 +1940,7 @@ declare module "mxdraw" {
1930
1940
  removeViewObject(obj: THREE.Object3D): void;
1931
1941
  removeObject(obj: THREE.Object3D, isRemoveSelectObject?: boolean): void;
1932
1942
  saveMxEntityToJson(isSaveToDWG?: boolean): object;
1933
- loadMxEntityFromJson(dataString: object): Promise<boolean>;
1943
+ loadMxEntityFromJson(dataString: object, isClear: boolean): Promise<boolean>;
1934
1944
  eraseAllMxEntity(): void;
1935
1945
  makeCurrent(): void;
1936
1946
  getViewCenterDocCoord(): THREE.Vector3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxcad-app",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",