mxcad 1.0.67 → 1.0.68

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.
package/dist/mxcad.d.ts CHANGED
@@ -654,20 +654,20 @@ export declare class McDbEntity extends McDbObject {
654
654
  */
655
655
  get colorIndex(): number;
656
656
  /**
657
- * 设置对象颜色索引
658
- */
657
+ * 设置对象颜色索引
658
+ */
659
659
  set colorIndex(val: number);
660
660
  /**
661
- * 得到对象图层名
662
- */
661
+ * 得到对象图层名
662
+ */
663
663
  get layer(): string;
664
664
  /**
665
- * 设置对象图层名
666
- */
665
+ * 设置对象图层名
666
+ */
667
667
  set layer(val: string);
668
668
  /**
669
- * 得到对象线型比例
670
- */
669
+ * 得到对象线型比例
670
+ */
671
671
  get linetypeScale(): number;
672
672
  /**
673
673
  * 设置对象线型比例
@@ -690,8 +690,8 @@ export declare class McDbEntity extends McDbObject {
690
690
  */
691
691
  set lineweight(val: number);
692
692
  /**
693
- * 得到对象文字样式
694
- */
693
+ * 得到对象文字样式
694
+ */
695
695
  get textStyle(): string;
696
696
  /**
697
697
  * 设置对象文字样式
@@ -714,16 +714,16 @@ export declare class McDbEntity extends McDbObject {
714
714
  */
715
715
  Mirror(point1: McGePoint3d, point2: McGePoint3d): boolean;
716
716
  /**
717
- *缩放对象
718
- */
717
+ *缩放对象
718
+ */
719
719
  ScaleEntity(basePoint: McGePoint3d, dScaleFactor: number): boolean;
720
720
  /**
721
721
  *变换对象
722
722
  */
723
723
  TransformBy(transformationMatrix: McGeMatrix3d): boolean;
724
724
  /**
725
- *得到对象的最小外包
726
- */
725
+ *得到对象的最小外包
726
+ */
727
727
  GetBoundingBox(): {
728
728
  minPt: McGePoint3d;
729
729
  maxPt: McGePoint3d;
@@ -792,22 +792,22 @@ export declare class McDbCurve extends McDbEntity {
792
792
  ret: number;
793
793
  };
794
794
  /**
795
- * 得到曲线的开始点
796
- */
795
+ * 得到曲线的开始点
796
+ */
797
797
  getStartPoint(): {
798
798
  val: McGePoint3d;
799
799
  ret: number;
800
800
  };
801
801
  /**
802
- * 得到曲线的结束点
803
- */
802
+ * 得到曲线的结束点
803
+ */
804
804
  getEndPoint(): {
805
805
  val: McGePoint3d;
806
806
  ret: number;
807
807
  };
808
808
  /**
809
- * 得到曲线参数所在的点坐标
810
- */
809
+ * 得到曲线参数所在的点坐标
810
+ */
811
811
  getPointAtParam(param: number): {
812
812
  val: McGePoint3d;
813
813
  ret: number;
@@ -820,8 +820,8 @@ export declare class McDbCurve extends McDbEntity {
820
820
  ret: number;
821
821
  };
822
822
  /**
823
- * 通过曲线参数得到曲线的一阶导数
824
- */
823
+ * 通过曲线参数得到曲线的一阶导数
824
+ */
825
825
  getFirstDeriv(param: number): {
826
826
  val: McGeVector3d;
827
827
  ret: number;
@@ -875,7 +875,7 @@ export declare class McDbLine extends McDbCurve {
875
875
  * 构造函数。
876
876
  * @param imp C++ 实现对象。
877
877
  */
878
- constructor(imp?: any);
878
+ constructor(x1?: object | number, y1?: object | number, z1?: number, x2?: number, y2?: number, z2?: number);
879
879
  /**
880
880
  * 获取起点。
881
881
  */
@@ -1454,8 +1454,8 @@ export declare class McDbArc extends McDbCurve {
1454
1454
  */
1455
1455
  set radius(r: number);
1456
1456
  /**
1457
- * 获取圆半径。
1458
- */
1457
+ * 获取圆半径。
1458
+ */
1459
1459
  get startAngle(): number;
1460
1460
  /**
1461
1461
  * 设置圆半径。
@@ -1463,14 +1463,18 @@ export declare class McDbArc extends McDbCurve {
1463
1463
  */
1464
1464
  set startAngle(r: number);
1465
1465
  /**
1466
- * 获取圆半径。
1467
- */
1466
+ * 获取圆半径。
1467
+ */
1468
1468
  get endAngle(): number;
1469
1469
  /**
1470
1470
  * 设置圆半径。
1471
1471
  * @param r 圆半径。
1472
1472
  */
1473
1473
  set endAngle(r: number);
1474
+ /**
1475
+ * 3点计算圆弧
1476
+ */
1477
+ computeArc(dStartPointX: number, dStartPointY: number, dMidPointX: number, dMidPointY: number, dEndPointX: number, dEndPointY: number): boolean;
1474
1478
  }
1475
1479
  /**
1476
1480
  * McDb 命名空间包含 AutoCAD 中的一些常用枚举。
@@ -1775,13 +1779,17 @@ export declare class McDbDatabase extends McRxObject {
1775
1779
  */
1776
1780
  SetCurrentlyLayerName(sName: string): void;
1777
1781
  /**
1778
- * 获取当前真彩色。
1779
- * @returns 当前真彩色。
1782
+ * 获取当前CAD颜色。
1783
+ * @returns 当前CAD颜色。
1780
1784
  */
1781
1785
  GetCurrentlyTrueColor(): McCmColor;
1782
1786
  /**
1783
- * 设置当前真彩色。
1784
- * @param color 真彩色。
1787
+ * 获取当前绘图使用的颜色
1788
+ */
1789
+ GetCurrentlyDrawColor(): THREE.Color;
1790
+ /**
1791
+ * 设置当前CAD颜色。
1792
+ * @param color CAD颜色。
1785
1793
  */
1786
1794
  SetCurrentlyTrueColor(color: McCmColor): any;
1787
1795
  /**
@@ -2430,6 +2438,14 @@ export declare class MxCppType {
2430
2438
  * @returns {McGePoint3d} McGePoint3d 实例
2431
2439
  */
2432
2440
  NewMcGePoint3d(pt?: any, isDoc?: boolean): McGePoint3d;
2441
+ /**
2442
+ * 返回当前活动的CAD对象
2443
+ */
2444
+ GetCurrentMxCAD(): McObject;
2445
+ /**
2446
+ * 返回当前活动的CAD对象的数据库对象.
2447
+ */
2448
+ GetCurrentDatabase(): McDbDatabase;
2433
2449
  }
2434
2450
  export declare let MxCpp: MxCppType;
2435
2451
  export declare function loadMxCADassembly(call?: (MxCpp: MxCppType) => void, locateFile?: (fileName: string, base?: string | URL) => string, wasmBinary?: ArrayBuffer, fontspath?: string, networkFonts?: string[]): Promise<MxCppType>;