mxdraw 0.1.292 → 0.1.294

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
@@ -1751,6 +1751,41 @@ interface iniConfig {
1751
1751
  }
1752
1752
  type MxFunType = MxFunClass;
1753
1753
 
1754
+ /** @module MxTempMarkDraw */
1755
+ /**
1756
+ * MxTempMarkDraw 绘制一个临时标记对象,该对象,在视区改变,或执行一个命令时会自动清除.
1757
+ *
1758
+ */
1759
+ declare class MxTempMarkDraw {
1760
+ private imp;
1761
+ constructor(imp: any);
1762
+ /**
1763
+ * 清除标记
1764
+ * @example
1765
+ */
1766
+ clear(): void;
1767
+ /**
1768
+ * 绘制直线
1769
+ * @example
1770
+ */
1771
+ drawLine(pt1: THREE.Vector3, pt2: THREE.Vector3, iColor?: number, opacity?: number): void;
1772
+ /**
1773
+ * 绘制圆
1774
+ * @example
1775
+ */
1776
+ drawCircle(cen: THREE.Vector3, dRadius: number, iColor: number): void;
1777
+ /**
1778
+ * 绘制对象
1779
+ * @example
1780
+ */
1781
+ drawEntity(obj: THREE.Object3D): void;
1782
+ /**
1783
+ * 绘制圆标记
1784
+ * @example
1785
+ */
1786
+ drawCircleMark(cen: THREE.Vector3, dRadius: number, iColor: number): void;
1787
+ }
1788
+
1754
1789
  /** @module MxDrawObject */
1755
1790
 
1756
1791
  interface MxDrawObjectType {
@@ -1766,7 +1801,7 @@ interface MxDrawObjectType {
1766
1801
  createCanvasImageData(fun: (imageData: string) => void, param?: object): void;
1767
1802
  setViewColor(color: number): void;
1768
1803
  setSize(width: number, height: number): void;
1769
- getIntersectObjects(ptMouse: THREE.Vector2): THREE.Intersection[];
1804
+ getIntersectObjects(ptMouse: THREE.Vector3): THREE.Intersection[];
1770
1805
  getViewWidth(): number;
1771
1806
  getViewHeight(): number;
1772
1807
  zoomInitialStates(): void;
@@ -1973,7 +2008,7 @@ declare class MxDrawObject extends Node<MxDrawEvents, Node<any, any>> {
1973
2008
  * Mx.MxFun.getCurrentDraw().getIntersectObjects(new THREE.Vector2(2, 3))
1974
2009
  * ```
1975
2010
  */
1976
- getIntersectObjects(ptMouse: THREE.Vector2): THREE.Intersection[];
2011
+ getIntersectObjects(ptMouse: THREE.Vector3): THREE.Intersection[];
1977
2012
  /**
1978
2013
  * 添加THREE.Object3D对象到当前场景
1979
2014
  * @param obj THREE.Object3D
@@ -2592,6 +2627,14 @@ declare class MxDrawObject extends Node<MxDrawEvents, Node<any, any>> {
2592
2627
  * ```
2593
2628
  */
2594
2629
  getMxDatabase(): MxDbDatabase;
2630
+ /**
2631
+ * 得到临时标记绘制对象
2632
+ * @example
2633
+ * ```typescript
2634
+ *
2635
+ * ```
2636
+ */
2637
+ getTempMarkDraw(): MxTempMarkDraw;
2595
2638
  /**
2596
2639
  * 设置鼠标中键的滚动的缩放比例,在PC上,默认值4,手机上默认值,1.5
2597
2640
  * 返回之前设置值。
@@ -5507,6 +5550,8 @@ type Mx_MrxDbgUiPrKeyWord = MrxDbgUiPrKeyWord;
5507
5550
  declare const Mx_MrxDbgUiPrKeyWord: typeof MrxDbgUiPrKeyWord;
5508
5551
  type Mx_MrxDbgUiPrAngle = MrxDbgUiPrAngle;
5509
5552
  declare const Mx_MrxDbgUiPrAngle: typeof MrxDbgUiPrAngle;
5553
+ type Mx_MxTempMarkDraw = MxTempMarkDraw;
5554
+ declare const Mx_MxTempMarkDraw: typeof MxTempMarkDraw;
5510
5555
  declare namespace Mx {
5511
5556
  export {
5512
5557
  Mx_loadCoreCode as loadCoreCode,
@@ -5577,6 +5622,7 @@ declare namespace Mx {
5577
5622
  Mx_MrxDbgUiPrString as MrxDbgUiPrString,
5578
5623
  Mx_MrxDbgUiPrKeyWord as MrxDbgUiPrKeyWord,
5579
5624
  Mx_MrxDbgUiPrAngle as MrxDbgUiPrAngle,
5625
+ Mx_MxTempMarkDraw as MxTempMarkDraw,
5580
5626
  };
5581
5627
  }
5582
5628
 
@@ -5587,4 +5633,4 @@ declare global {
5587
5633
  }
5588
5634
  }
5589
5635
 
5590
- export { DetailedResult, DynamicInputType, Layer, McEdGetPointWorldDrawObject, McGePoint3d, McGePoint3dArray, McGeTool, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrAngle, MrxDbgUiPrBase, MrxDbgUiPrBaseReturn, MrxDbgUiPrDist, MrxDbgUiPrInt, MrxDbgUiPrKeyWord, MrxDbgUiPrPoint, MrxDbgUiPrString, MrxDbgUtils, Mx2PointArc, Mx3PointArc, MxCursorType, MxDb2LineAngularDimension, MxDbAlignedDimension, MxDbAnyLine, MxDbArcShapeDraw, MxDbArea, MxDbArrow, MxDbCircleArc, MxDbCircleShape, MxDbCloudLine, MxDbCoord, MxDbDatabase, MxDbEllipse, MxDbEllipseArc, MxDbEllipseShape, MxDbEntity, MxDbGradientLine, MxDbGroup, MxDbHatch, MxDbImage, MxDbLayerTableRecord, MxDbLeadComment, MxDbLeadTag, MxDbLine, MxDbLineShape, MxDbPolyline, MxDbRect, MxDbRectBoxLeadComment, MxDbRegularPolygon, MxDbRegularPolygonShape, MxDbRingShape, MxDbSVG, MxDbSVGText, MxDbShape, MxDbSplineCurve, MxDbStarShape, MxDbText, MxDrawObject, MxFilters, MxFun, MxPaintBrush, MxThreeJS, MxType, Mxassembly, UserInputControls, Mx as default, loadCoreCode, store, useCanvasResizeListener };
5636
+ export { DetailedResult, DynamicInputType, Layer, McEdGetPointWorldDrawObject, McGePoint3d, McGePoint3dArray, McGeTool, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrAngle, MrxDbgUiPrBase, MrxDbgUiPrBaseReturn, MrxDbgUiPrDist, MrxDbgUiPrInt, MrxDbgUiPrKeyWord, MrxDbgUiPrPoint, MrxDbgUiPrString, MrxDbgUtils, Mx2PointArc, Mx3PointArc, MxCursorType, MxDb2LineAngularDimension, MxDbAlignedDimension, MxDbAnyLine, MxDbArcShapeDraw, MxDbArea, MxDbArrow, MxDbCircleArc, MxDbCircleShape, MxDbCloudLine, MxDbCoord, MxDbDatabase, MxDbEllipse, MxDbEllipseArc, MxDbEllipseShape, MxDbEntity, MxDbGradientLine, MxDbGroup, MxDbHatch, MxDbImage, MxDbLayerTableRecord, MxDbLeadComment, MxDbLeadTag, MxDbLine, MxDbLineShape, MxDbPolyline, MxDbRect, MxDbRectBoxLeadComment, MxDbRegularPolygon, MxDbRegularPolygonShape, MxDbRingShape, MxDbSVG, MxDbSVGText, MxDbShape, MxDbSplineCurve, MxDbStarShape, MxDbText, MxDrawObject, MxFilters, MxFun, MxPaintBrush, MxTempMarkDraw, MxThreeJS, MxType, Mxassembly, UserInputControls, Mx as default, loadCoreCode, store, useCanvasResizeListener };