mxcad-app 1.0.54 → 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
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,6 @@ declare module '@howdyjs/to-drag' {
220
220
  }
221
221
 
222
222
 
223
- declare module '@tiptap/core' {
224
- interface Commands<ReturnType> {
225
- Underline: {
226
- setUnderline: () => ReturnType;
227
- unsetUnderline: () => ReturnType;
228
- toggleUnderline: () => ReturnType;
229
- };
230
- }
231
- }
232
-
233
-
234
223
  declare module '@tiptap/core' {
235
224
  interface Commands<ReturnType> {
236
225
  TextDecoration: {
@@ -264,6 +253,17 @@ declare module '@tiptap/core' {
264
253
  }
265
254
 
266
255
 
256
+ declare module '@tiptap/core' {
257
+ interface Commands<ReturnType> {
258
+ Underline: {
259
+ setUnderline: () => ReturnType;
260
+ unsetUnderline: () => ReturnType;
261
+ toggleUnderline: () => ReturnType;
262
+ };
263
+ }
264
+ }
265
+
266
+
267
267
  declare module '@tiptap/core' {
268
268
  interface Commands<ReturnType> {
269
269
  fontSize: {
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
  * ```
@@ -4314,6 +4321,14 @@ declare module "mxcad" {
4314
4321
  * ```
4315
4322
  */
4316
4323
  set linetype(val: string);
4324
+ /**
4325
+ * 得到对象厚度
4326
+ */
4327
+ get thickness(): number;
4328
+ /**
4329
+ * 设置对象厚度
4330
+ */
4331
+ set thickness(val: number);
4317
4332
  /**
4318
4333
  * 得到对象线型比例
4319
4334
  */
@@ -12306,8 +12321,8 @@ declare module "mxcad" {
12306
12321
  /**
12307
12322
  * 将文件保存并转换为网络路径下载
12308
12323
  * @param sSaveProgramUrl 后端 POST请求接口, 接口具体实现: 先下载MxDraw云图开发包<https://www.mxdraw.com/download.html>并解压
12309
- * 找到MxDrawCloudServer\Bin\MxCAD\MxCADSaveFile\server.js 可以找到对应的实现接口"/mxcad/savefiledwg",
12310
- * "/mxcad/savefiledwg":保存dwg文件到服务器
12324
+ * 找到MxDrawCloudServer\Bin\MxCAD\MxCADSaveFile\server.js 可以找到对应的实现接口"/mxcad/savedwg",
12325
+ * "/mxcad/savedwg":保存dwg文件到服务器
12311
12326
  * "/mxcad/savefile":保存mxweb文件到服务器
12312
12327
  * "/mxcad/savepdf":保存pdf文件到服务器
12313
12328
  * 如果没有找到则在该项目下寻找这个接口的定义, 必须符合该接口的定义才能作为参数
@@ -12317,7 +12332,7 @@ declare module "mxcad" {
12317
12332
  * ```ts
12318
12333
  * import { MxCpp, McObject } from "mxcad"
12319
12334
  * const mxcad:McObject = MxCpp.getCurrentMxCAD()
12320
- * MxCpp.getCurrentMxCAD().saveFileToUrl("http://localhost:1337/mxcad/savefiledwg", (iResult, sserverResult) => {
12335
+ * MxCpp.getCurrentMxCAD().saveFileToUrl("http://localhost:1337/mxcad/savedwg", (iResult, sserverResult) => {
12321
12336
  * let ret = JSON.parse(sserverResult);
12322
12337
  * if (ret.ret == "ok") {
12323
12338
  * console.log(ret.file)
@@ -14652,6 +14667,11 @@ declare module "mxcad" {
14652
14667
  * @returns 夹点对象数组
14653
14668
  */
14654
14669
  getGripPoints(): McGePoint3dArray;
14670
+ /**
14671
+ * 获取自定义对象的夹点。
14672
+ * @returns 夹点对象数组
14673
+ */
14674
+ getGripEditBasePointsIndex(): number[];
14655
14675
  /**
14656
14676
  * 获取自定义对象矩阵坐标变换
14657
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;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxcad-app",
3
- "version": "1.0.54",
3
+ "version": "1.0.56",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",