mxdraw 0.1.122 → 0.1.124

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.
Files changed (126) hide show
  1. package/dist/lib/MxModule/Mx3PointArc/draw.d.ts +1 -0
  2. package/dist/lib/MxModule/Mx3PointArc/draw.js +1 -0
  3. package/dist/lib/MxModule/Mx3PointArc/index.d.ts +5 -1
  4. package/dist/lib/MxModule/Mx3PointArc/index.js +1 -1
  5. package/dist/lib/MxModule/MxDb2LineAngularDimension/draw.d.ts +2 -0
  6. package/dist/lib/MxModule/MxDb2LineAngularDimension/draw.js +1 -0
  7. package/dist/lib/MxModule/MxDb2LineAngularDimension/index.d.ts +5 -1
  8. package/dist/lib/MxModule/MxDb2LineAngularDimension/index.js +1 -1
  9. package/dist/lib/MxModule/MxDbAlignedDimension/draw.d.ts +2 -0
  10. package/dist/lib/MxModule/MxDbAlignedDimension/draw.js +1 -0
  11. package/dist/lib/MxModule/MxDbAlignedDimension/index.d.ts +5 -1
  12. package/dist/lib/MxModule/MxDbAlignedDimension/index.js +1 -1
  13. package/dist/lib/MxModule/MxDbAnyLine/draw.d.ts +1 -0
  14. package/dist/lib/MxModule/MxDbAnyLine/draw.js +1 -0
  15. package/dist/lib/MxModule/MxDbAnyLine/index.d.ts +5 -1
  16. package/dist/lib/MxModule/MxDbAnyLine/index.js +1 -1
  17. package/dist/lib/MxModule/MxDbArcShape/index.d.ts +2 -2
  18. package/dist/lib/MxModule/MxDbArcShape/index.js +1 -1
  19. package/dist/lib/MxModule/MxDbArcShapeDraw/draw.d.ts +1 -0
  20. package/dist/lib/MxModule/MxDbArcShapeDraw/draw.js +1 -0
  21. package/dist/lib/MxModule/MxDbArcShapeDraw/index.d.ts +6 -1
  22. package/dist/lib/MxModule/MxDbArcShapeDraw/index.js +1 -1
  23. package/dist/lib/MxModule/MxDbArea/draw.d.ts +1 -0
  24. package/dist/lib/MxModule/MxDbArea/draw.js +1 -0
  25. package/dist/lib/MxModule/MxDbArea/index.d.ts +5 -1
  26. package/dist/lib/MxModule/MxDbArea/index.js +1 -1
  27. package/dist/lib/MxModule/MxDbArrow/draw.d.ts +2 -0
  28. package/dist/lib/MxModule/MxDbArrow/draw.js +1 -0
  29. package/dist/lib/MxModule/MxDbArrow/index.d.ts +5 -1
  30. package/dist/lib/MxModule/MxDbArrow/index.js +1 -1
  31. package/dist/lib/MxModule/MxDbCircleArc/draw.d.ts +1 -0
  32. package/dist/lib/MxModule/MxDbCircleArc/draw.js +1 -0
  33. package/dist/lib/MxModule/MxDbCircleArc/index.d.ts +5 -1
  34. package/dist/lib/MxModule/MxDbCircleArc/index.js +1 -1
  35. package/dist/lib/MxModule/MxDbCloudLine/draw.d.ts +1 -0
  36. package/dist/lib/MxModule/MxDbCloudLine/draw.js +1 -0
  37. package/dist/lib/MxModule/MxDbCloudLine/index.d.ts +6 -1
  38. package/dist/lib/MxModule/MxDbCloudLine/index.js +1 -1
  39. package/dist/lib/MxModule/MxDbCoord/draw.d.ts +1 -0
  40. package/dist/lib/MxModule/MxDbCoord/draw.js +1 -0
  41. package/dist/lib/MxModule/MxDbCoord/index.d.ts +5 -2
  42. package/dist/lib/MxModule/MxDbCoord/index.js +1 -1
  43. package/dist/lib/MxModule/MxDbEllipse/draw.d.ts +1 -0
  44. package/dist/lib/MxModule/MxDbEllipse/draw.js +1 -0
  45. package/dist/lib/MxModule/MxDbEllipse/index.d.ts +5 -1
  46. package/dist/lib/MxModule/MxDbEllipse/index.js +1 -1
  47. package/dist/lib/MxModule/MxDbEllipseArc/draw.d.ts +1 -0
  48. package/dist/lib/MxModule/MxDbEllipseArc/draw.js +1 -0
  49. package/dist/lib/MxModule/MxDbEllipseArc/index.d.ts +8 -7
  50. package/dist/lib/MxModule/MxDbEllipseArc/index.js +1 -1
  51. package/dist/lib/MxModule/MxDbEntity/index.d.ts +11 -0
  52. package/dist/lib/MxModule/MxDbEntity/index.js +1 -1
  53. package/dist/lib/MxModule/MxDbGradientLine/index.d.ts +2 -1
  54. package/dist/lib/MxModule/MxDbGradientLine/index.js +1 -1
  55. package/dist/lib/MxModule/MxDbHatch/index.d.ts +2 -1
  56. package/dist/lib/MxModule/MxDbHatch/index.js +1 -1
  57. package/dist/lib/MxModule/MxDbImage/draw.d.ts +1 -0
  58. package/dist/lib/MxModule/MxDbImage/draw.js +1 -0
  59. package/dist/lib/MxModule/MxDbImage/index.d.ts +5 -2
  60. package/dist/lib/MxModule/MxDbImage/index.js +1 -1
  61. package/dist/lib/MxModule/MxDbLeadComment/draw.d.ts +1 -0
  62. package/dist/lib/MxModule/MxDbLeadComment/draw.js +1 -0
  63. package/dist/lib/MxModule/MxDbLeadComment/index.d.ts +5 -2
  64. package/dist/lib/MxModule/MxDbLeadComment/index.js +1 -1
  65. package/dist/lib/MxModule/MxDbLeadTag/draw.d.ts +1 -0
  66. package/dist/lib/MxModule/MxDbLeadTag/draw.js +1 -0
  67. package/dist/lib/MxModule/MxDbLeadTag/index.d.ts +5 -2
  68. package/dist/lib/MxModule/MxDbLeadTag/index.js +1 -1
  69. package/dist/lib/MxModule/MxDbLine/draw.d.ts +2 -0
  70. package/dist/lib/MxModule/MxDbLine/draw.js +1 -0
  71. package/dist/lib/MxModule/MxDbLine/index.d.ts +5 -2
  72. package/dist/lib/MxModule/MxDbLine/index.js +1 -1
  73. package/dist/lib/MxModule/MxDbLineShape/index.d.ts +2 -1
  74. package/dist/lib/MxModule/MxDbLineShape/index.js +1 -1
  75. package/dist/lib/MxModule/MxDbPolyline/draw.d.ts +1 -0
  76. package/dist/lib/MxModule/MxDbPolyline/draw.js +1 -0
  77. package/dist/lib/MxModule/MxDbPolyline/index.d.ts +5 -2
  78. package/dist/lib/MxModule/MxDbPolyline/index.js +1 -1
  79. package/dist/lib/MxModule/MxDbRect/draw.d.ts +1 -0
  80. package/dist/lib/MxModule/MxDbRect/draw.js +1 -0
  81. package/dist/lib/MxModule/MxDbRect/index.d.ts +5 -1
  82. package/dist/lib/MxModule/MxDbRect/index.js +1 -1
  83. package/dist/lib/MxModule/MxDbRectBoxLeadComment/draw.d.ts +1 -0
  84. package/dist/lib/MxModule/MxDbRectBoxLeadComment/draw.js +1 -0
  85. package/dist/lib/MxModule/MxDbRectBoxLeadComment/index.d.ts +5 -1
  86. package/dist/lib/MxModule/MxDbRectBoxLeadComment/index.js +1 -1
  87. package/dist/lib/MxModule/MxDbRegularPolygon/draw.d.ts +1 -0
  88. package/dist/lib/MxModule/MxDbRegularPolygon/draw.js +1 -0
  89. package/dist/lib/MxModule/MxDbRegularPolygon/index.d.ts +5 -1
  90. package/dist/lib/MxModule/MxDbRegularPolygon/index.js +1 -1
  91. package/dist/lib/MxModule/MxDbRegularPolygonShape/index.d.ts +2 -1
  92. package/dist/lib/MxModule/MxDbRegularPolygonShape/index.js +1 -1
  93. package/dist/lib/MxModule/MxDbRingShape/draw.d.ts +1 -0
  94. package/dist/lib/MxModule/MxDbRingShape/draw.js +1 -0
  95. package/dist/lib/MxModule/MxDbRingShape/index.d.ts +14 -1
  96. package/dist/lib/MxModule/MxDbRingShape/index.js +1 -1
  97. package/dist/lib/MxModule/MxDbSVG/draw.d.ts +1 -0
  98. package/dist/lib/MxModule/MxDbSVG/draw.js +1 -0
  99. package/dist/lib/MxModule/MxDbSVG/index.d.ts +5 -2
  100. package/dist/lib/MxModule/MxDbSVG/index.js +1 -1
  101. package/dist/lib/MxModule/MxDbShape/index.d.ts +3 -1
  102. package/dist/lib/MxModule/MxDbShape/index.js +1 -1
  103. package/dist/lib/MxModule/MxDbStarShape/draw.d.ts +1 -0
  104. package/dist/lib/MxModule/MxDbStarShape/draw.js +1 -0
  105. package/dist/lib/MxModule/MxDbStarShape/index.d.ts +17 -2
  106. package/dist/lib/MxModule/MxDbStarShape/index.js +1 -1
  107. package/dist/lib/MxModule/MxDbText/MxDbText.d.ts +3 -0
  108. package/dist/lib/MxModule/MxDbText/MxDbText.js +1 -1
  109. package/dist/lib/MxModule/MxDbText/draw.d.ts +1 -0
  110. package/dist/lib/MxModule/MxDbText/draw.js +1 -0
  111. package/dist/lib/MxModule/MxDbText/index.js +1 -1
  112. package/dist/lib/MxModule/MxPaintBrush/index.d.ts +44 -0
  113. package/dist/lib/MxModule/MxPaintBrush/index.js +1 -0
  114. package/dist/lib/MxModule/loadCoreCode/index.js +1 -1
  115. package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -1
  116. package/dist/lib/MxModule/store/Pubsub.d.ts +6 -0
  117. package/dist/lib/MxModule/store/Pubsub.js +1 -1
  118. package/dist/{index.d.ts → lib/MxModule.d.ts} +172 -22
  119. package/dist/lib/mxdraw.d.ts +1 -0
  120. package/dist/lib/mxdraw.js +1 -1
  121. package/dist/lib/tools/dynamicImport/index.js +1 -1
  122. package/dist/lib/tools/registerMxDbEntity/index.d.ts +5 -0
  123. package/dist/lib/tools/registerMxDbEntity/index.js +1 -0
  124. package/dist/mxdraw.es.js +1 -1
  125. package/dist/mxdraw.umd.js +1 -1
  126. package/package.json +1 -1
@@ -15,4 +15,10 @@ export default class PubSub {
15
15
  * @param data 载荷
16
16
  */
17
17
  emit<T>(event: string | number, ...data: T | any): any[];
18
+ /**
19
+ * 销毁事件
20
+ * @param event 事件名称
21
+ * @param callback 事件方法
22
+ */
23
+ off(event: string, callback: Function): void;
18
24
  }
@@ -1 +1 @@
1
- export default class PubSub{constructor(){this.events={}}on(e,t){let s=this;return s.events.hasOwnProperty(e)||(s.events[e]=[]),s.events[e].push(t)}emit(e,...t){return this.events.hasOwnProperty(e)?this.events[e].map(e=>e(...t)):[]}};
1
+ export default class PubSub{constructor(){this.events={}}on(e,t){let s=this;return s.events.hasOwnProperty(e)||(s.events[e]=[]),s.events[e].push(t)}emit(e,...t){return this.events.hasOwnProperty(e)?this.events[e].map(e=>e(...t)):[]}off(e,t){if(this.events[e]){const s=this.events[e].indexOf(t);this.events[e].splice(s,1)}}};
@@ -467,6 +467,17 @@ interface McGiWorldDraw {
467
467
  * ```
468
468
  */
469
469
  declare abstract class MxDbEntity {
470
+ constructor();
471
+ /** 该类注册的cmd命令名称 */
472
+ static cmd: string;
473
+ /** 该类注册的cmd命令绘制函数 */
474
+ static draw: Function;
475
+ /** 该类是否已注册 */
476
+ static isRegister: boolean;
477
+ /** 注册该类的cmd命令和初始化 (引入该类时自动注册 当该类的isRegister为ture时表示已经注册) */
478
+ static register(): void;
479
+ /** 使用该类的cmd命令 执行默认的绘制功能 */
480
+ static use(): Promise<void>;
470
481
  /**
471
482
  * 颜色值
472
483
  * */
@@ -2568,6 +2579,12 @@ declare class PubSub {
2568
2579
  * @param data 载荷
2569
2580
  */
2570
2581
  emit<T>(event: string | number, ...data: T | any): any[];
2582
+ /**
2583
+ * 销毁事件
2584
+ * @param event 事件名称
2585
+ * @param callback 事件方法
2586
+ */
2587
+ off(event: string, callback: Function): void;
2571
2588
  }
2572
2589
 
2573
2590
  declare class Store<T extends {}> {
@@ -2879,6 +2896,48 @@ declare class MrxDbgUtilsClass {
2879
2896
  }
2880
2897
  declare const MrxDbgUtils: MrxDbgUtilsClass;
2881
2898
 
2899
+ interface MxPaintBrushPropsType {
2900
+ /** 基础颜色 */
2901
+ color?: MxColorType;
2902
+ /** 渲染顺序 */
2903
+ renderOrder?: number;
2904
+ /** 透明度 */
2905
+ opacity?: number;
2906
+ /** 是否可见 */
2907
+ visible?: boolean;
2908
+ /** 线段宽度 */
2909
+ dLineWidth?: number;
2910
+ /** 线段宽度是否按照屏幕尺寸计算 */
2911
+ lineWidthByPixels?: boolean;
2912
+ /** 实线虚线总段数 破折号之间的长度和间距。
2913
+ * @describe
2914
+ * 0: 表示实线了, 0.1:有10段, 0.5:表示有两段 1: 有一段*/
2915
+ dashArray?: number;
2916
+ /** 虚线长度和实线长度的比率 (0 -全实线,1 -全虚线[不可见])
2917
+ * @describe
2918
+ * 例如取值为0.5, 虚线长度 / (实线长度 + 虚线长度) = 0.5,表示,实线与虚线长度相等*/
2919
+ dDashRatio?: number;
2920
+ /** 设置图层 */
2921
+ layer?: string;
2922
+ /** 自定义数据(必须保证JSON.parse(JSON.stringify(userData))不报错) */
2923
+ userData?: {
2924
+ [key: string]: any;
2925
+ };
2926
+ /** 其它自定义对象上的属性 */
2927
+ [propName: string]: any;
2928
+ }
2929
+ /** 自定义对象绘制时使用全局默认属性的画笔对象 */
2930
+ declare const MxPaintBrush: {
2931
+ /** 获取当前的画笔属性 */
2932
+ getProps(): MxPaintBrushPropsType;
2933
+ /** 设置当前画笔属性 */
2934
+ setProps(props: MxPaintBrushPropsType): MxPaintBrushPropsType;
2935
+ /** 使用画笔设置自定义对象的默认属性
2936
+ * @param entity MxDbEntity类的实例
2937
+ * */
2938
+ use(entity: MxDbEntity): MxDbEntity & MxPaintBrushPropsType;
2939
+ };
2940
+
2882
2941
  /**
2883
2942
  * McEdGetPointWorldDrawObject 用于构建一个动态绘制回调对象
2884
2943
  * @example ```typescript
@@ -3114,12 +3173,14 @@ declare class MrxDbgUiPrPoint {
3114
3173
  getInputToucheType(): number;
3115
3174
  }
3116
3175
 
3117
- /** @module MxDbImage*/
3118
-
3176
+ declare function drawMxDbImage(): void;
3177
+
3119
3178
  /**
3120
3179
  * MxDbImage 图片对象.
3121
3180
  */
3122
3181
  declare class MxDbImage extends MxDbEntity {
3182
+ static cmd: string;
3183
+ static draw: typeof drawMxDbImage;
3123
3184
  private pt1;
3124
3185
  private pt2;
3125
3186
  private imagePath;
@@ -3199,12 +3260,14 @@ declare class MxDbSVGText {
3199
3260
  _underLine: THREE.Line | null;
3200
3261
  }
3201
3262
 
3202
- /** @module MxDbSVG*/
3203
-
3263
+ declare function drawMxDbSVG(): Promise<void>;
3264
+
3204
3265
  /**
3205
3266
  * MxDbSVG 绘制SVG图形.
3206
3267
  */
3207
3268
  declare class MxDbSVG extends MxDbEntity {
3269
+ static cmd: string;
3270
+ static draw: typeof drawMxDbSVG;
3208
3271
  private svgPos;
3209
3272
  private svg;
3210
3273
  private svgPath;
@@ -3291,12 +3354,14 @@ declare class MxDbSVG extends MxDbEntity {
3291
3354
  protected onViewChange(): boolean;
3292
3355
  }
3293
3356
 
3294
- /** @module MxDbPolyline*/
3295
-
3357
+ declare function drawMxDbPolyline(): void;
3358
+
3296
3359
  /**
3297
3360
  * MxDbPolyline 多义线对象(多个点构成的线段)
3298
3361
  */
3299
3362
  declare class MxDbPolyline extends MxDbEntity {
3363
+ static cmd: string;
3364
+ static draw: typeof drawMxDbPolyline;
3300
3365
  /** 顶点位置集合 */
3301
3366
  points: THREE.Vector3[];
3302
3367
  getTypeName(): string;
@@ -3318,7 +3383,11 @@ declare class MxDbPolyline extends MxDbEntity {
3318
3383
  setPointAt(index: number, pt: THREE.Vector3): boolean;
3319
3384
  }
3320
3385
 
3386
+ declare function drawMxDb2LineAngularDimension(): MxDb2LineAngularDimension;
3387
+
3321
3388
  declare class MxDb2LineAngularDimension extends MxDbEntity {
3389
+ static cmd: string;
3390
+ static draw: typeof drawMxDb2LineAngularDimension;
3322
3391
  /**
3323
3392
  * MxDb2LineAngularDimension
3324
3393
  * 显示角度测量的图形
@@ -3495,7 +3564,9 @@ declare class MxDbShape extends MxDbEntity {
3495
3564
  isFill: boolean;
3496
3565
  setIsFill(isFill: boolean): this;
3497
3566
  /** 填充图片路径 */
3498
- fillImageSrc?: string;
3567
+ protected _fillImageSrc: string | false | null;
3568
+ get fillImageSrc(): string | false | null;
3569
+ set fillImageSrc(src: string | false | null);
3499
3570
  setFillImageSrc(fillImageSrc: string): this;
3500
3571
  /**
3501
3572
  * fillImageParam 填充背景图片的参数设置(如果使用了滤镜则部分参数功能失效)
@@ -3610,8 +3681,12 @@ declare class MxDbCircleShape extends MxDbEllipseShape {
3610
3681
  setYRadius(yRadius: number): this;
3611
3682
  }
3612
3683
 
3684
+ declare function drawMx3PointArc(): void;
3685
+
3613
3686
  /** 三点动态绘制圆弧 point1圆弧起始点 point2是圆弧结束点, point3圆弧任意一点 */
3614
3687
  declare class Mx3PointArc extends MxDbCircleShape {
3688
+ static cmd: string;
3689
+ static draw: typeof drawMx3PointArc;
3615
3690
  constructor();
3616
3691
  point1: three.Vector3;
3617
3692
  point2: three.Vector3;
@@ -3633,12 +3708,14 @@ declare class Mx3PointArc extends MxDbCircleShape {
3633
3708
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
3634
3709
  }
3635
3710
 
3636
- /** @module MxDbCoord*/
3637
-
3711
+ declare function drawMxDbCoord(): void;
3712
+
3638
3713
  /**
3639
3714
  * MxDbCoord 引线坐标测量
3640
3715
  */
3641
3716
  declare class MxDbCoord extends MxDbEntity {
3717
+ static cmd: string;
3718
+ static draw: typeof drawMxDbCoord;
3642
3719
  /** 测量点位置 */
3643
3720
  point1: THREE.Vector3;
3644
3721
  /** 测量结果显示位置 */
@@ -3653,12 +3730,15 @@ declare class MxDbCoord extends MxDbEntity {
3653
3730
  getTypeName(): string;
3654
3731
  }
3655
3732
 
3656
- /** @module MxDbLine*/
3657
-
3733
+ /** 绘制 MxDbLine */
3734
+ declare function drawMxDbLine(): Promise<void>;
3735
+
3658
3736
  /**
3659
3737
  * MxDbLine 直线对象.
3660
3738
  */
3661
3739
  declare class MxDbLine extends MxDbEntity {
3740
+ static cmd: string;
3741
+ static draw: typeof drawMxDbLine;
3662
3742
  /** 直线的开始点 */
3663
3743
  pt1: THREE.Vector3;
3664
3744
  /** 直线的结束点 */
@@ -3684,10 +3764,14 @@ declare class MxDbLine extends MxDbEntity {
3684
3764
  getGetLength(): number;
3685
3765
  }
3686
3766
 
3767
+ declare function drawMxDbRect(): Promise<void>;
3768
+
3687
3769
  /**
3688
3770
  * MxRectEntity 矩形对象.
3689
3771
  */
3690
3772
  declare class MxDbRect extends MxDbEntity {
3773
+ static cmd: string;
3774
+ static draw: typeof drawMxDbRect;
3691
3775
  private cornerRadius;
3692
3776
  /**
3693
3777
  * pt1: 构成矩形的第一个点
@@ -3740,12 +3824,16 @@ declare class MxDbRect extends MxDbEntity {
3740
3824
  getFillImagePath(): string | undefined;
3741
3825
  }
3742
3826
 
3827
+ declare function drawMxDbAlignedDimension(): MxDbAlignedDimension;
3828
+
3743
3829
  /** @module MxDbAlignedDimension*/
3744
3830
 
3745
3831
  /**
3746
3832
  * MxDbAlignedDimension 尺寸标注
3747
3833
  */
3748
3834
  declare class MxDbAlignedDimension extends MxDbEntity {
3835
+ static cmd: string;
3836
+ static draw: typeof drawMxDbAlignedDimension;
3749
3837
  /**
3750
3838
  * MxDbAlignedDimension
3751
3839
  * 尺寸标注
@@ -3802,10 +3890,14 @@ declare class MxDbAlignedDimension extends MxDbEntity {
3802
3890
  create(): MxDbAlignedDimension;
3803
3891
  }
3804
3892
 
3893
+ declare function drawMxDbArea(): void;
3894
+
3805
3895
  /**
3806
3896
  * MxDbArea 任意不规则多边形
3807
3897
  * */
3808
3898
  declare class MxDbArea extends MxDbEntity {
3899
+ static cmd: string;
3900
+ static draw: typeof drawMxDbArea;
3809
3901
  /** 构成多边形的顶点集合 */
3810
3902
  points: Array<THREE.Vector3>;
3811
3903
  isFill: boolean;
@@ -3837,10 +3929,14 @@ declare class MxDbArea extends MxDbEntity {
3837
3929
  clearPoint(): void;
3838
3930
  }
3839
3931
 
3932
+ declare function drawMxDbLeadTag(): Promise<void>;
3933
+
3840
3934
  /**
3841
3935
  * MxDbLeadTag 引出标注
3842
3936
  * */
3843
3937
  declare class MxDbLeadTag extends MxDbEntity {
3938
+ static cmd: string;
3939
+ static draw: typeof drawMxDbLeadTag;
3844
3940
  point: three.Vector3;
3845
3941
  leadLen: number;
3846
3942
  text: string;
@@ -3855,6 +3951,8 @@ declare class MxDbLeadTag extends MxDbEntity {
3855
3951
  dwgOut(obj: any): any;
3856
3952
  }
3857
3953
 
3954
+ declare function drawMxDbAnyLine(): void;
3955
+
3858
3956
  /** @module MxDbAnyLine*/
3859
3957
 
3860
3958
  /**
@@ -3862,6 +3960,8 @@ declare class MxDbLeadTag extends MxDbEntity {
3862
3960
  * 任意线段
3863
3961
  */
3864
3962
  declare class MxDbAnyLine extends MxDbEntity {
3963
+ static cmd: string;
3964
+ static draw: typeof drawMxDbAnyLine;
3865
3965
  /** 构成线段的顶点坐标集合 */
3866
3966
  points: THREE.Vector3[];
3867
3967
  getTypeName(): string;
@@ -3879,10 +3979,15 @@ declare class MxDbAnyLine extends MxDbEntity {
3879
3979
  dwgOut(obj: any): object;
3880
3980
  }
3881
3981
 
3982
+ declare function drawMxDbCloudLine(): void;
3983
+
3882
3984
  /**
3883
3985
  * MxDbCloudLine 对象. 绘制任意的云线
3884
3986
  */
3885
3987
  declare class MxDbCloudLine extends MxDbEntity {
3988
+ static isRegister: boolean;
3989
+ static cmd: string;
3990
+ static draw: typeof drawMxDbCloudLine;
3886
3991
  private points;
3887
3992
  private radius;
3888
3993
  private cachePoint;
@@ -3924,7 +4029,11 @@ declare class MxDbCloudLine extends MxDbEntity {
3924
4029
  dwgOut(obj: any): object;
3925
4030
  }
3926
4031
 
4032
+ declare function drawMxDbRegularPolygon(): void;
4033
+
3927
4034
  declare class MxDbRegularPolygon extends MxDbShape {
4035
+ static cmd: string;
4036
+ static draw: typeof drawMxDbRegularPolygon;
3928
4037
  /** 正多边形的中心点位置 */
3929
4038
  centerPoint: three.Vector3;
3930
4039
  /** 正多边形两条边之间的交点位置 */
@@ -3941,12 +4050,14 @@ declare class MxDbRegularPolygon extends MxDbShape {
3941
4050
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
3942
4051
  }
3943
4052
 
3944
- /** @module MxDbLeadComment*/
3945
-
4053
+ declare function drawMxDbLeadComment(): void;
4054
+
3946
4055
  /**
3947
4056
  * MxDbLeadComment 引线文字标注
3948
4057
  * */
3949
4058
  declare class MxDbLeadComment extends MxDbEntity {
4059
+ static cmd: string;
4060
+ static draw: typeof drawMxDbLeadComment;
3950
4061
  /** 标注点 */
3951
4062
  point1: THREE.Vector3;
3952
4063
  /** 文字显示位置 */
@@ -3968,10 +4079,14 @@ declare class MxDbLeadComment extends MxDbEntity {
3968
4079
  protected onViewChange(): boolean;
3969
4080
  }
3970
4081
 
4082
+ declare function drawMxDbRectBoxLeadComment(): void;
4083
+
3971
4084
  /**
3972
4085
  * MxDbRectBoxLeadComment 引线审图标注
3973
4086
  * */
3974
4087
  declare class MxDbRectBoxLeadComment extends MxDbEntity {
4088
+ static cmd: string;
4089
+ static draw: typeof drawMxDbRectBoxLeadComment;
3975
4090
  /** 云线矩形的对角点1 */
3976
4091
  point1: THREE.Vector3;
3977
4092
  /** 云线矩形的对角点2 */
@@ -3998,8 +4113,12 @@ declare class MxDbRectBoxLeadComment extends MxDbEntity {
3998
4113
  protected onViewChange(): boolean;
3999
4114
  }
4000
4115
 
4116
+ declare function drawMxDbEllipse(): void;
4117
+
4001
4118
  /** 通过两个构成矩形的点绘制椭圆形 */
4002
4119
  declare class MxDbEllipse extends MxDbEllipseShape {
4120
+ static cmd: string;
4121
+ static draw: typeof drawMxDbEllipse;
4003
4122
  constructor();
4004
4123
  getTypeName(): string;
4005
4124
  create(): MxDbEllipse;
@@ -4016,6 +4135,8 @@ declare class MxDbEllipse extends MxDbEllipseShape {
4016
4135
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4017
4136
  }
4018
4137
 
4138
+ declare function drawMxDbText(): Promise<void>;
4139
+
4019
4140
  declare type SpriteTextColorType = THREE.Color | string | number | CanvasGradient | CanvasPattern | undefined;
4020
4141
  declare type SpriteTextObj = SpriteText;
4021
4142
  declare type TextFontWeight = 'normal' | 'bold' | 'lighter' | 'bolder' | 'inherit' | number;
@@ -4097,6 +4218,8 @@ interface SpriteTextOptions {
4097
4218
  * ```
4098
4219
  */
4099
4220
  declare class MxDbText extends MxDbEntity {
4221
+ static cmd: string;
4222
+ static draw: typeof drawMxDbText;
4100
4223
  /** 文字所在位置*/
4101
4224
  position: three.Vector3;
4102
4225
  setPosition(position: THREE.Vector3): this;
@@ -4291,11 +4414,15 @@ declare class MxDbGradientLine extends MxDbEntity {
4291
4414
  dwgOut(obj: any): object;
4292
4415
  }
4293
4416
 
4417
+ declare function drawMxDbEllipseArc(): void;
4418
+
4419
+ /**
4420
+ * 根据中心点、椭圆开始点和结束点确定椭圆弧
4421
+ * */
4294
4422
  declare class MxDbEllipseArc extends MxDbEllipseShape {
4423
+ static cmd: string;
4424
+ static draw: typeof drawMxDbEllipseArc;
4295
4425
  getTypeName(): string;
4296
- /**
4297
- * 根据中心点、椭圆开始点和结束点确定椭圆弧
4298
- * */
4299
4426
  constructor();
4300
4427
  /** 椭圆弧决定开始点 控制x轴半径和开始角度 */
4301
4428
  startPoint: THREE.Vector3;
@@ -4303,15 +4430,16 @@ declare class MxDbEllipseArc extends MxDbEllipseShape {
4303
4430
  /** 椭圆弧决定结束点 控制y轴半径和结束角度*/
4304
4431
  endPoint: THREE.Vector3;
4305
4432
  setEndPoint(endPoint: THREE.Vector3): this;
4306
- /** 控制椭圆弧旋转角度的点 */
4307
- rotationPoint: THREE.Vector3;
4308
- setRotationPoint(rotationPoint: THREE.Vector3): this;
4309
4433
  worldDraw(pWorldDraw: McGiWorldDraw): void;
4310
4434
  getGripPoints(): three.Vector3[];
4311
4435
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4312
4436
  }
4313
4437
 
4438
+ declare function drawMxDbCircleArc(): void;
4439
+
4314
4440
  declare class MxDbCircleArc extends MxDbCircleShape {
4441
+ static cmd: string;
4442
+ static draw: typeof drawMxDbCircleArc;
4315
4443
  /** 根据圆心、起始点、结束点位置动态绘制圆弧 **/
4316
4444
  constructor();
4317
4445
  getTypeName(): string;
@@ -4331,7 +4459,6 @@ declare class MxDbArcShape extends MxDbCircleArc {
4331
4459
  /** 环形 */
4332
4460
  constructor();
4333
4461
  getTypeName(): string;
4334
- create(): MxDbArcShape;
4335
4462
  center: three.Vector3;
4336
4463
  innerRadius: number;
4337
4464
  outerRadius: number;
@@ -4341,7 +4468,12 @@ declare class MxDbArcShape extends MxDbCircleArc {
4341
4468
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4342
4469
  }
4343
4470
 
4471
+ declare function drawMxDbArcShape(): void;
4472
+
4344
4473
  declare class MxDbArcShapeDraw extends MxDbArcShape {
4474
+ static isRegister: boolean;
4475
+ static cmd: string;
4476
+ static draw: typeof drawMxDbArcShape;
4345
4477
  getTypeName(): string;
4346
4478
  /** 绘制弧形 */
4347
4479
  constructor();
@@ -4352,19 +4484,31 @@ declare class MxDbArcShapeDraw extends MxDbArcShape {
4352
4484
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4353
4485
  }
4354
4486
 
4487
+ declare function drawMxDbRingShape(): void;
4488
+
4355
4489
  /** 环形 */
4356
4490
  declare class MxDbRingShape extends MxDbArcShape {
4491
+ static isRegister: boolean;
4492
+ static cmd: string;
4493
+ static draw: typeof drawMxDbRingShape;
4357
4494
  getTypeName(): string;
4358
4495
  worldDraw(pWorldDraw: McGiWorldDraw): void;
4359
4496
  }
4360
4497
 
4498
+ declare function drawMxDbStarShape(): void;
4499
+
4500
+ /** 星形 */
4361
4501
  declare class MxDbStarShape extends MxDbShape {
4502
+ static cmd: string;
4503
+ static draw: typeof drawMxDbStarShape;
4362
4504
  getTypeName(): string;
4363
- /** 星形 */
4364
4505
  constructor();
4365
4506
  center: three.Vector3;
4507
+ /** 顶点数量 */
4366
4508
  numPoints: number;
4509
+ /** 内部半径 */
4367
4510
  innerRadius: number;
4511
+ /** 外部半径 */
4368
4512
  outerRadius: number;
4369
4513
  worldDraw(pWorldDraw: McGiWorldDraw): void;
4370
4514
  getGripPoints(): THREE.Vector3[];
@@ -4388,7 +4532,11 @@ declare class MxDbRegularPolygonShape extends MxDbShape {
4388
4532
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4389
4533
  }
4390
4534
 
4535
+ declare function drawMxDbArrow(): void;
4536
+
4391
4537
  declare class MxDbArrow extends MxDbShape {
4538
+ static cmd: string;
4539
+ static draw: typeof drawMxDbArrow;
4392
4540
  /** 箭头图形 */
4393
4541
  constructor();
4394
4542
  /** 开始是否为尖角 */
@@ -4436,6 +4584,7 @@ declare const Mx_MxType: typeof MxType;
4436
4584
  declare const Mx_Mxassembly: typeof Mxassembly;
4437
4585
  declare const Mx_McGeTool: typeof McGeTool;
4438
4586
  declare const Mx_MrxDbgUtils: typeof MrxDbgUtils;
4587
+ declare const Mx_MxPaintBrush: typeof MxPaintBrush;
4439
4588
  type Mx_MrxDbgUiPrPoint = MrxDbgUiPrPoint;
4440
4589
  declare const Mx_MrxDbgUiPrPoint: typeof MrxDbgUiPrPoint;
4441
4590
  type Mx_McEdGetPointWorldDrawObject = McEdGetPointWorldDrawObject;
@@ -4534,6 +4683,7 @@ declare namespace Mx {
4534
4683
  Mx_Mxassembly as Mxassembly,
4535
4684
  Mx_McGeTool as McGeTool,
4536
4685
  Mx_MrxDbgUtils as MrxDbgUtils,
4686
+ Mx_MxPaintBrush as MxPaintBrush,
4537
4687
  Mx_MrxDbgUiPrPoint as MrxDbgUiPrPoint,
4538
4688
  Mx_McEdGetPointWorldDrawObject as McEdGetPointWorldDrawObject,
4539
4689
  Mx_MrxDbgUiPrBaseReturn as MrxDbgUiPrBaseReturn,
@@ -4590,4 +4740,4 @@ declare global {
4590
4740
  }
4591
4741
  }
4592
4742
 
4593
- export { McEdGetPointWorldDrawObject, McGePoint3d, McGePoint3dArray, McGeTool, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MrxDbgUiPrPoint, MrxDbgUtils, Mx3PointArc, MxCADObject, 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, MxDbStarShape, MxDbText, MxDrawObject, MxFilters, MxFun, MxThreeJS, MxType, Mxassembly, Mx as default, loadCoreCode, store, useCanvasResizeListener };
4743
+ export { McEdGetPointWorldDrawObject, McGePoint3d, McGePoint3dArray, McGeTool, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MrxDbgUiPrPoint, MrxDbgUtils, Mx3PointArc, MxCADObject, 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, MxDbStarShape, MxDbText, MxDrawObject, MxFilters, MxFun, MxPaintBrush, MxThreeJS, MxType, Mxassembly, Mx as default, loadCoreCode, store, useCanvasResizeListener };
@@ -7,6 +7,7 @@ export { default as MxType } from './MxModule/MxType';
7
7
  export { default as Mxassembly } from './MxModule/Mxassembly';
8
8
  export { default as McGeTool } from './MxModule/McGeTool';
9
9
  export { default as MrxDbgUtils } from './MxModule/MrxDbgUtils';
10
+ export { default as MxPaintBrush } from './MxModule/MxPaintBrush';
10
11
  export { default as MrxDbgUiPrPoint } from './MxModule/MrxDbgUiPrPoint';
11
12
  export { default as McEdGetPointWorldDrawObject } from './MxModule/McEdGetPointWorldDrawObject';
12
13
  export { default as MrxDbgUiPrBaseReturn } from './MxModule/MrxDbgUiPrBaseReturn';
@@ -1 +1 @@
1
- export{default as loadCoreCode}from"./MxModule/loadCoreCode";export{default as useCanvasResizeListener}from"./MxModule/useCanvasResizeListener";export{default as store}from"./MxModule/store";export{default as MxFun}from"./MxModule/MxFun";export{default as MxThreeJS}from"./MxModule/MxThreeJS";export{default as MxType}from"./MxModule/MxType";export{default as Mxassembly}from"./MxModule/Mxassembly";export{default as McGeTool}from"./MxModule/McGeTool";export{default as MrxDbgUtils}from"./MxModule/MrxDbgUtils";export{default as MrxDbgUiPrPoint}from"./MxModule/MrxDbgUiPrPoint";export{default as McEdGetPointWorldDrawObject}from"./MxModule/McEdGetPointWorldDrawObject";export{default as MrxDbgUiPrBaseReturn}from"./MxModule/MrxDbgUiPrBaseReturn";export{default as MxDbEntity}from"./MxModule/MxDbEntity";export{default as MxDbImage}from"./MxModule/MxDbImage";export{default as MxDbSVG}from"./MxModule/MxDbSVG";export{default as MxDbSVGText}from"./MxModule/MxDbSVGText";export{default as MxDbPolyline}from"./MxModule/MxDbPolyline";export{default as MxDb2LineAngularDimension}from"./MxModule/MxDb2LineAngularDimension";export{default as Mx3PointArc}from"./MxModule/Mx3PointArc";export{default as MxDbCoord}from"./MxModule/MxDbCoord";export{default as MxDbLine}from"./MxModule/MxDbLine";export{default as MxDbRect}from"./MxModule/MxDbRect";export{default as MxDbAlignedDimension}from"./MxModule/MxDbAlignedDimension";export{default as MxFilters}from"./MxModule/MxFilters";export{default as McGiWorldDrawType}from"./MxModule/McGiWorldDrawType";export{default as MxDbArea}from"./MxModule/MxDbArea";export{default as MxDbLeadTag}from"./MxModule/MxDbLeadTag";export{default as MxDbAnyLine}from"./MxModule/MxDbAnyLine";export{default as MxDbCloudLine}from"./MxModule/MxDbCloudLine";export{default as MxDbRegularPolygon}from"./MxModule/MxDbRegularPolygon";export{default as MxDbLeadComment}from"./MxModule/MxDbLeadComment";export{default as MxDbRectBoxLeadComment}from"./MxModule/MxDbRectBoxLeadComment";export{default as MxDbEllipse}from"./MxModule/MxDbEllipse";export{default as MxDbText}from"./MxModule/MxDbText";export{default as MxDrawObject}from"./MxModule/MxDrawObject";export{default as MxDbHatch}from"./MxModule/MxDbHatch";export{default as MxDbDatabase}from"./MxModule/MxDbDatabase";export{default as MxCADObject}from"./MxModule/MxCADObject";export{default as MxDbGradientLine}from"./MxModule/MxDbGradientLine";export{default as MxDbShape}from"./MxModule/MxDbShape";export{default as MxDbEllipseShape}from"./MxModule/MxDbEllipseShape";export{default as MxDbEllipseArc}from"./MxModule/MxDbEllipseArc";export{default as MxDbCircleShape}from"./MxModule/MxDbCircleShape";export{default as MxDbCircleArc}from"./MxModule/MxDbCircleArc";export{default as MxDbArcShapeDraw}from"./MxModule/MxDbArcShapeDraw";export{default as MxDbRingShape}from"./MxModule/MxDbRingShape";export{default as MxDbStarShape}from"./MxModule/MxDbStarShape";export{default as MxDbRegularPolygonShape}from"./MxModule/MxDbRegularPolygonShape";export{default as MxDbArrow}from"./MxModule/MxDbArrow";export{default as MxDbLineShape}from"./MxModule/MxDbLineShape";
1
+ export{default as loadCoreCode}from"./MxModule/loadCoreCode";export{default as useCanvasResizeListener}from"./MxModule/useCanvasResizeListener";export{default as store}from"./MxModule/store";export{default as MxFun}from"./MxModule/MxFun";export{default as MxThreeJS}from"./MxModule/MxThreeJS";export{default as MxType}from"./MxModule/MxType";export{default as Mxassembly}from"./MxModule/Mxassembly";export{default as McGeTool}from"./MxModule/McGeTool";export{default as MrxDbgUtils}from"./MxModule/MrxDbgUtils";export{default as MxPaintBrush}from"./MxModule/MxPaintBrush";export{default as MrxDbgUiPrPoint}from"./MxModule/MrxDbgUiPrPoint";export{default as McEdGetPointWorldDrawObject}from"./MxModule/McEdGetPointWorldDrawObject";export{default as MrxDbgUiPrBaseReturn}from"./MxModule/MrxDbgUiPrBaseReturn";export{default as MxDbEntity}from"./MxModule/MxDbEntity";export{default as MxDbImage}from"./MxModule/MxDbImage";export{default as MxDbSVG}from"./MxModule/MxDbSVG";export{default as MxDbSVGText}from"./MxModule/MxDbSVGText";export{default as MxDbPolyline}from"./MxModule/MxDbPolyline";export{default as MxDb2LineAngularDimension}from"./MxModule/MxDb2LineAngularDimension";export{default as Mx3PointArc}from"./MxModule/Mx3PointArc";export{default as MxDbCoord}from"./MxModule/MxDbCoord";export{default as MxDbLine}from"./MxModule/MxDbLine";export{default as MxDbRect}from"./MxModule/MxDbRect";export{default as MxDbAlignedDimension}from"./MxModule/MxDbAlignedDimension";export{default as MxFilters}from"./MxModule/MxFilters";export{default as McGiWorldDrawType}from"./MxModule/McGiWorldDrawType";export{default as MxDbArea}from"./MxModule/MxDbArea";export{default as MxDbLeadTag}from"./MxModule/MxDbLeadTag";export{default as MxDbAnyLine}from"./MxModule/MxDbAnyLine";export{default as MxDbCloudLine}from"./MxModule/MxDbCloudLine";export{default as MxDbRegularPolygon}from"./MxModule/MxDbRegularPolygon";export{default as MxDbLeadComment}from"./MxModule/MxDbLeadComment";export{default as MxDbRectBoxLeadComment}from"./MxModule/MxDbRectBoxLeadComment";export{default as MxDbEllipse}from"./MxModule/MxDbEllipse";export{default as MxDbText}from"./MxModule/MxDbText";export{default as MxDrawObject}from"./MxModule/MxDrawObject";export{default as MxDbHatch}from"./MxModule/MxDbHatch";export{default as MxDbDatabase}from"./MxModule/MxDbDatabase";export{default as MxCADObject}from"./MxModule/MxCADObject";export{default as MxDbGradientLine}from"./MxModule/MxDbGradientLine";export{default as MxDbShape}from"./MxModule/MxDbShape";export{default as MxDbEllipseShape}from"./MxModule/MxDbEllipseShape";export{default as MxDbEllipseArc}from"./MxModule/MxDbEllipseArc";export{default as MxDbCircleShape}from"./MxModule/MxDbCircleShape";export{default as MxDbCircleArc}from"./MxModule/MxDbCircleArc";export{default as MxDbArcShapeDraw}from"./MxModule/MxDbArcShapeDraw";export{default as MxDbRingShape}from"./MxModule/MxDbRingShape";export{default as MxDbStarShape}from"./MxModule/MxDbStarShape";export{default as MxDbRegularPolygonShape}from"./MxModule/MxDbRegularPolygonShape";export{default as MxDbArrow}from"./MxModule/MxDbArrow";export{default as MxDbLineShape}from"./MxModule/MxDbLineShape";
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,o,r){return new(o||(o=Promise))(function(i,a){function n(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof o?t:new o(function(e){e(t)})).then(n,l)}c((r=r.apply(e,t||[])).next())})};export function dynamicImport(e){return __awaiter(this,void 0,void 0,function*(){let t;switch(e){case"jquery":t=yield dynamicImportJquery();break;case"element-resize-event-polyfill":t=yield dynamicImportResize()}return t})};function dynamicImportResize(){return __awaiter(this,void 0,void 0,function*(){try{const e=yield import("element-resize-event-polyfill");return e.default?e.default:e}catch(e){console.log("import动态导入:element-resize-event-polyfill失败!",e)}})}function dynamicImportJquery(){return __awaiter(this,void 0,void 0,function*(){try{const e=yield import("jquery");return e.default?e.default:e}catch(e){console.log("import动态导入:jquery失败!",e)}})}let _mapDynamicCreate=null;function intiDynamicCreateMxObject(){_mapDynamicCreate||((_mapDynamicCreate={}).MxDbArea=(()=>import("../../MxModule/MxDbArea")),_mapDynamicCreate.MxDbLeadTag=(()=>import("../../MxModule/MxDbLeadTag")),_mapDynamicCreate.MxDbCoord=(()=>import("../../MxModule/MxDbCoord")),_mapDynamicCreate.MxDb2LineAngularDimension=(()=>import("../../MxModule/MxDb2LineAngularDimension")),_mapDynamicCreate.Mx3PointArc=(()=>import("../../MxModule/Mx3PointArc")),_mapDynamicCreate.MxDbAnyLine=(()=>import("../../MxModule/MxDbAnyLine")),_mapDynamicCreate.MxDbCloudLine=(()=>import("../../MxModule/MxDbCloudLine")),_mapDynamicCreate.MxDbLeadComment=(()=>import("../../MxModule/MxDbLeadComment")),_mapDynamicCreate.MxDbRectBoxLeadComment=(()=>import("../../MxModule/MxDbRectBoxLeadComment")),_mapDynamicCreate.MxDbEllipse=(()=>import("../../MxModule/MxDbEllipse")),_mapDynamicCreate.MxDbText=(()=>import("../../MxModule/MxDbText")),_mapDynamicCreate.MxDbRegularPolygon=(()=>import("../../MxModule/MxDbRegularPolygon")),_mapDynamicCreate.MxDbHatch=(()=>import("../../MxModule/MxDbHatch")))}export function dynamicCreateMxObject(e){return __awaiter(this,void 0,void 0,function*(){let t;switch(intiDynamicCreateMxObject(),e){case"MxDbSVG":try{t=yield import("../../MxModule/MxDbSVG")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbImage":try{t=yield import("../../MxModule/MxDbImage")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbLine":try{t=yield import("../../MxModule/MxDbLine")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbRect":try{t=yield import("../../MxModule/MxDbRect")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbSVGText":try{t=yield import("../../MxModule/MxDbSVGText")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbPolyline":try{t=yield import("../../MxModule/MxDbPolyline")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbAlignedDimension":try{t=yield import("../../MxModule/MxDbAlignedDimension")}catch(t){console.log("import:"+e+"error!",t)}}if(!t&&_mapDynamicCreate[e])try{t=yield _mapDynamicCreate[e]()}catch(t){console.log("import:"+e+"error!",t)}return t?t.default?t.default:t:(console.log("mx dynmac load:"+e+" failed"),null)})};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,o,i){return new(o||(o=Promise))(function(r,a){function n(e){try{m(i.next(e))}catch(e){a(e)}}function c(e){try{m(i.throw(e))}catch(e){a(e)}}function m(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o(function(e){e(t)})).then(n,c)}m((i=i.apply(e,t||[])).next())})};export function dynamicImport(e){return __awaiter(this,void 0,void 0,function*(){let t;switch(e){case"jquery":t=yield dynamicImportJquery();break;case"element-resize-event-polyfill":t=yield dynamicImportResize()}return t})};function dynamicImportResize(){return __awaiter(this,void 0,void 0,function*(){try{const e=yield import("element-resize-event-polyfill");return e.default?e.default:e}catch(e){console.log("import动态导入:element-resize-event-polyfill失败!",e)}})}function dynamicImportJquery(){return __awaiter(this,void 0,void 0,function*(){try{const e=yield import("jquery");return e.default?e.default:e}catch(e){console.log("import动态导入:jquery失败!",e)}})}let _mapDynamicCreate=null;function intiDynamicCreateMxObject(){_mapDynamicCreate||((_mapDynamicCreate={}).MxDbArea=(()=>import("../../MxModule/MxDbArea")),_mapDynamicCreate.MxDbLeadTag=(()=>import("../../MxModule/MxDbLeadTag")),_mapDynamicCreate.MxDbCoord=(()=>import("../../MxModule/MxDbCoord")),_mapDynamicCreate.MxDb2LineAngularDimension=(()=>import("../../MxModule/MxDb2LineAngularDimension")),_mapDynamicCreate.Mx3PointArc=(()=>import("../../MxModule/Mx3PointArc")),_mapDynamicCreate.MxDbAnyLine=(()=>import("../../MxModule/MxDbAnyLine")),_mapDynamicCreate.MxDbCloudLine=(()=>import("../../MxModule/MxDbCloudLine")),_mapDynamicCreate.MxDbLeadComment=(()=>import("../../MxModule/MxDbLeadComment")),_mapDynamicCreate.MxDbRectBoxLeadComment=(()=>import("../../MxModule/MxDbRectBoxLeadComment")),_mapDynamicCreate.MxDbEllipse=(()=>import("../../MxModule/MxDbEllipse")),_mapDynamicCreate.MxDbText=(()=>import("../../MxModule/MxDbText")),_mapDynamicCreate.MxDbRegularPolygon=(()=>import("../../MxModule/MxDbRegularPolygon")),_mapDynamicCreate.MxDbHatch=(()=>import("../../MxModule/MxDbHatch")),_mapDynamicCreate.MxDbHatch=(()=>import("../../MxModule/MxDbHatch")))}export function dynamicCreateMxObject(e){return __awaiter(this,void 0,void 0,function*(){let t;switch(intiDynamicCreateMxObject(),e){case"MxDbSVG":try{t=yield import("../../MxModule/MxDbSVG")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbImage":try{t=yield import("../../MxModule/MxDbImage")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbRect":try{t=yield import("../../MxModule/MxDbRect")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbSVGText":try{t=yield import("../../MxModule/MxDbSVGText")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbPolyline":try{t=yield import("../../MxModule/MxDbPolyline")}catch(t){console.log("import:"+e+"error!",t)}break;case"MxDbAlignedDimension":try{t=yield import("../../MxModule/MxDbAlignedDimension")}catch(t){console.log("import:"+e+"error!",t)}}if(!t&&_mapDynamicCreate[e])try{t=yield _mapDynamicCreate[e]()}catch(t){console.log("import:"+e+"error!",t)}return t?t.default?t.default:t:(console.log("mx dynmac load:"+e+" failed"),null)})};
@@ -0,0 +1,5 @@
1
+ import type MxDbEntity from "../../MxModule/MxDbEntity";
2
+ /** 触发注册MxDbEntity的注册事件 */
3
+ export declare function registerMxDbEntity(): void;
4
+ /** 添加注册MxDbEntity到注册函数列表*/
5
+ export declare function addRegisterMxDbEntity(modelEntity: typeof MxDbEntity): void;
@@ -0,0 +1 @@
1
+ import store from"../../MxModule/store";export function registerMxDbEntity(){store.events.emit("MxDbEntityRegister")};const registerList=[];export function addRegisterMxDbEntity(t){const e=()=>{!t.isRegister&&t.register&&t.register(),store.events.off("stateChange",e)};registerList.push(e)};const callRegisterMxDbEntityLists=()=>{registerList.forEach(t=>{t&&t()})};store.events.on("MxDbEntityRegister",callRegisterMxDbEntityLists);