mxdraw 0.1.170 → 0.1.172

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
  * */
@@ -2109,6 +2109,14 @@ declare class MxDrawObject extends Node<MxDrawEvents, Node<any, any>> {
2109
2109
  * ```
2110
2110
  */
2111
2111
  setIniset(options: iniConfig): void;
2112
+ /**
2113
+ * 返回当前视区的显示范围
2114
+ * @returns {minPt:THREE.Vector3,maxPt:THREE.Vector3}
2115
+ */
2116
+ getGetViewDocCoord(): {
2117
+ minPt: THREE.Vector3;
2118
+ maxPt: THREE.Vector3;
2119
+ };
2112
2120
  /**
2113
2121
  * 屏幕坐标到ThreeJS坐标
2114
2122
  * @returns THREE.Vector3
@@ -3857,6 +3865,7 @@ declare class MxDbShape extends MxDbEntity {
3857
3865
  getClosedPoints(points: THREE.Vector3[]): three.Vector3[];
3858
3866
  /** 获取长度 */
3859
3867
  getTotalLength(): number | undefined;
3868
+ getGetLength(): number;
3860
3869
  /** 获取面积 */
3861
3870
  getArea(): number;
3862
3871
  worldDraw(pWorldDraw: McGiWorldDraw): void;
@@ -3940,6 +3949,9 @@ declare class Mx3PointArc extends MxDbCircleShape {
3940
3949
  point3: three.Vector3;
3941
3950
  /** 自动确定顺逆时针绘制 */
3942
3951
  autoClockwise: boolean;
3952
+ closed: boolean;
3953
+ /** 圆心角 */
3954
+ centralAngle: number;
3943
3955
  getTypeName(): string;
3944
3956
  create(): Mx3PointArc;
3945
3957
  worldDraw(pWorldDraw: McGiWorldDraw): void;
@@ -3952,6 +3964,10 @@ declare class Mx3PointArc extends MxDbCircleShape {
3952
3964
  upDateRadius(point: THREE.Vector3): number;
3953
3965
  /** 根据 三个控制点到圆心的角度 更新顺逆时针绘制 */
3954
3966
  upDataClockwise(angle1: number, angle2: number, angle3: number): void;
3967
+ /** 更新数据信息 */
3968
+ updateDataInfo(): void;
3969
+ /** 获取圆弧线中点坐标 */
3970
+ getArcMidPoint(): three.Vector3;
3955
3971
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
3956
3972
  }
3957
3973
 
@@ -4800,6 +4816,7 @@ declare class MxDbArrow extends MxDbShape {
4800
4816
  getArrowVertex(p1: THREE.Vector3, p2: THREE.Vector3, isSharpCorner?: boolean): three.Vector3[] | undefined;
4801
4817
  getGripPoints(): THREE.Vector3[];
4802
4818
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4819
+ getCornerRadiusPoints(points: THREE.Vector3[]): three.Vector3[];
4803
4820
  }
4804
4821
 
4805
4822
  /** 线形状 */