mxdraw 0.1.171 → 0.1.173

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/mxdraw.d.ts CHANGED
@@ -1715,7 +1715,7 @@ declare class MxFunClass {
1715
1715
  /**
1716
1716
  * 返回mxfun.min.js中的THREE.JS对象,可以用它来创建mxfun.min.js中THREE对象。
1717
1717
  * */
1718
- getMxFunTHREE: () => any;
1718
+ getMxFunTHREE: () => typeof three;
1719
1719
  /**
1720
1720
  * 返回mxfun.min.js中的ThreeJsTool对象
1721
1721
  * */
@@ -3239,7 +3239,7 @@ declare class McEdGetPointWorldDrawObject {
3239
3239
  * pWorldDraw.getColor()
3240
3240
  * ```
3241
3241
  */
3242
- getColor(): void;
3242
+ getColor(): number | string | THREE.Color;
3243
3243
  /**
3244
3244
  * 动态绘制一个自定义实体
3245
3245
  * @returns
@@ -3387,7 +3387,6 @@ declare class MrxDbgUiPrPoint {
3387
3387
  drawReserve(callAddEntity?: (ent: THREE.Object3D) => void): void;
3388
3388
  /**
3389
3389
  * 设置需要的Touche输入类型,默认值是 {@link MxType.InputToucheType.kGetBegan}
3390
- *
3391
3390
  */
3392
3391
  setInputToucheType(toucheType: number): void;
3393
3392
  /**
@@ -3865,6 +3864,7 @@ declare class MxDbShape extends MxDbEntity {
3865
3864
  getClosedPoints(points: THREE.Vector3[]): three.Vector3[];
3866
3865
  /** 获取长度 */
3867
3866
  getTotalLength(): number | undefined;
3867
+ getGetLength(): number;
3868
3868
  /** 获取面积 */
3869
3869
  getArea(): number;
3870
3870
  worldDraw(pWorldDraw: McGiWorldDraw): void;
@@ -3881,7 +3881,7 @@ declare class MxDbShape extends MxDbEntity {
3881
3881
  declare class MxDbEllipseShape extends MxDbShape {
3882
3882
  constructor();
3883
3883
  getTypeName(): string;
3884
- /** 弧中心点 */
3884
+ /** 圆心 */
3885
3885
  center: three.Vector3;
3886
3886
  setCenter(center: THREE.Vector3): this;
3887
3887
  /** X轴椭圆弧半径 默认当前坐标转换下的10像素 */
@@ -3942,24 +3942,32 @@ declare function drawMx3PointArc(): void;
3942
3942
  declare class Mx3PointArc extends MxDbCircleShape {
3943
3943
  static cmd: string;
3944
3944
  static draw: typeof drawMx3PointArc;
3945
+ static isRegister: boolean;
3945
3946
  constructor();
3946
3947
  point1: three.Vector3;
3947
3948
  point2: three.Vector3;
3948
3949
  point3: three.Vector3;
3949
3950
  /** 自动确定顺逆时针绘制 */
3950
3951
  autoClockwise: boolean;
3952
+ closed: boolean;
3953
+ /** 圆心角 */
3954
+ centralAngle: number;
3951
3955
  getTypeName(): string;
3952
3956
  create(): Mx3PointArc;
3953
3957
  worldDraw(pWorldDraw: McGiWorldDraw): void;
3954
3958
  getGripPoints(): THREE.Vector3[];
3955
3959
  /** 计算三个控制点的角度 */
3956
- compute3PointAngle(): number[];
3960
+ compute3PointAngle(point1?: three.Vector3, point2?: three.Vector3, point3?: three.Vector3): number[];
3957
3961
  /** 根据三个控制点更新圆心 */
3958
- upDateCenter(point1: THREE.Vector3, point2: THREE.Vector3, point3: THREE.Vector3): three.Vector3;
3962
+ upDateCenter(point1?: three.Vector3, point2?: three.Vector3, point3?: three.Vector3): three.Vector3;
3959
3963
  /** 根据圆心和一个控制点自动更新半径大小 */
3960
- upDateRadius(point: THREE.Vector3): number;
3964
+ upDateRadius(point?: three.Vector3): number;
3961
3965
  /** 根据 三个控制点到圆心的角度 更新顺逆时针绘制 */
3962
3966
  upDataClockwise(angle1: number, angle2: number, angle3: number): void;
3967
+ /** 更新数据信息 */
3968
+ updateDataInfo(): void;
3969
+ /** 获取圆弧线中点坐标 */
3970
+ getArcMidPoint(): three.Vector3;
3963
3971
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
3964
3972
  }
3965
3973
 
@@ -4808,6 +4816,7 @@ declare class MxDbArrow extends MxDbShape {
4808
4816
  getArrowVertex(p1: THREE.Vector3, p2: THREE.Vector3, isSharpCorner?: boolean): three.Vector3[] | undefined;
4809
4817
  getGripPoints(): THREE.Vector3[];
4810
4818
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4819
+ getCornerRadiusPoints(points: THREE.Vector3[]): three.Vector3[];
4811
4820
  }
4812
4821
 
4813
4822
  /** 线形状 */