mxdraw 0.1.123 → 0.1.125

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 (127) 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 -1
  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 +7 -3
  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.js +1 -1
  102. package/dist/lib/MxModule/MxDbStarShape/draw.d.ts +1 -0
  103. package/dist/lib/MxModule/MxDbStarShape/draw.js +1 -0
  104. package/dist/lib/MxModule/MxDbStarShape/index.d.ts +13 -1
  105. package/dist/lib/MxModule/MxDbStarShape/index.js +1 -1
  106. package/dist/lib/MxModule/MxDbText/MxDbText.d.ts +3 -0
  107. package/dist/lib/MxModule/MxDbText/MxDbText.js +1 -1
  108. package/dist/lib/MxModule/MxDbText/draw.d.ts +1 -0
  109. package/dist/lib/MxModule/MxDbText/draw.js +1 -0
  110. package/dist/lib/MxModule/MxDbText/index.js +1 -1
  111. package/dist/lib/MxModule/MxDrawObject/index.d.ts +9 -0
  112. package/dist/lib/MxModule/MxDrawObject/index.js +1 -1
  113. package/dist/lib/MxModule/MxPaintBrush/index.d.ts +44 -0
  114. package/dist/lib/MxModule/MxPaintBrush/index.js +1 -0
  115. package/dist/lib/MxModule/loadCoreCode/index.js +1 -1
  116. package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -1
  117. package/dist/lib/MxModule/store/Pubsub.d.ts +6 -0
  118. package/dist/lib/MxModule/store/Pubsub.js +1 -1
  119. package/dist/{index.d.ts → lib/MxModule.d.ts} +173 -15
  120. package/dist/lib/mxdraw.d.ts +1 -0
  121. package/dist/lib/mxdraw.js +1 -1
  122. package/dist/lib/tools/dynamicImport/index.js +1 -1
  123. package/dist/lib/tools/registerMxDbEntity/index.d.ts +5 -0
  124. package/dist/lib/tools/registerMxDbEntity/index.js +1 -0
  125. package/dist/mxdraw.es.js +1 -1
  126. package/dist/mxdraw.umd.js +1 -1
  127. 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
  * */
@@ -1780,6 +1791,15 @@ declare class MxDrawObject {
1780
1791
  * ```
1781
1792
  */
1782
1793
  getDtabaseJsonString(): string;
1794
+ /**
1795
+ * 跳转另一个布局页面.
1796
+ * @example
1797
+ * ```typescript
1798
+ *
1799
+ *
1800
+ * ```
1801
+ */
1802
+ gotoLayout(layout: string): void;
1783
1803
  }
1784
1804
 
1785
1805
  /**
@@ -2568,6 +2588,12 @@ declare class PubSub {
2568
2588
  * @param data 载荷
2569
2589
  */
2570
2590
  emit<T>(event: string | number, ...data: T | any): any[];
2591
+ /**
2592
+ * 销毁事件
2593
+ * @param event 事件名称
2594
+ * @param callback 事件方法
2595
+ */
2596
+ off(event: string, callback: Function): void;
2571
2597
  }
2572
2598
 
2573
2599
  declare class Store<T extends {}> {
@@ -2879,6 +2905,48 @@ declare class MrxDbgUtilsClass {
2879
2905
  }
2880
2906
  declare const MrxDbgUtils: MrxDbgUtilsClass;
2881
2907
 
2908
+ interface MxPaintBrushPropsType {
2909
+ /** 基础颜色 */
2910
+ color?: MxColorType;
2911
+ /** 渲染顺序 */
2912
+ renderOrder?: number;
2913
+ /** 透明度 */
2914
+ opacity?: number;
2915
+ /** 是否可见 */
2916
+ visible?: boolean;
2917
+ /** 线段宽度 */
2918
+ dLineWidth?: number;
2919
+ /** 线段宽度是否按照屏幕尺寸计算 */
2920
+ lineWidthByPixels?: boolean;
2921
+ /** 实线虚线总段数 破折号之间的长度和间距。
2922
+ * @describe
2923
+ * 0: 表示实线了, 0.1:有10段, 0.5:表示有两段 1: 有一段*/
2924
+ dashArray?: number;
2925
+ /** 虚线长度和实线长度的比率 (0 -全实线,1 -全虚线[不可见])
2926
+ * @describe
2927
+ * 例如取值为0.5, 虚线长度 / (实线长度 + 虚线长度) = 0.5,表示,实线与虚线长度相等*/
2928
+ dDashRatio?: number;
2929
+ /** 设置图层 */
2930
+ layer?: string;
2931
+ /** 自定义数据(必须保证JSON.parse(JSON.stringify(userData))不报错) */
2932
+ userData?: {
2933
+ [key: string]: any;
2934
+ };
2935
+ /** 其它自定义对象上的属性 */
2936
+ [propName: string]: any;
2937
+ }
2938
+ /** 自定义对象绘制时使用全局默认属性的画笔对象 */
2939
+ declare const MxPaintBrush: {
2940
+ /** 获取当前的画笔属性 */
2941
+ getProps(): MxPaintBrushPropsType;
2942
+ /** 设置当前画笔属性 */
2943
+ setProps(props: MxPaintBrushPropsType): MxPaintBrushPropsType;
2944
+ /** 使用画笔设置自定义对象的默认属性
2945
+ * @param entity MxDbEntity类的实例
2946
+ * */
2947
+ use(entity: MxDbEntity): MxDbEntity & MxPaintBrushPropsType;
2948
+ };
2949
+
2882
2950
  /**
2883
2951
  * McEdGetPointWorldDrawObject 用于构建一个动态绘制回调对象
2884
2952
  * @example ```typescript
@@ -3114,12 +3182,14 @@ declare class MrxDbgUiPrPoint {
3114
3182
  getInputToucheType(): number;
3115
3183
  }
3116
3184
 
3117
- /** @module MxDbImage*/
3118
-
3185
+ declare function drawMxDbImage(): void;
3186
+
3119
3187
  /**
3120
3188
  * MxDbImage 图片对象.
3121
3189
  */
3122
3190
  declare class MxDbImage extends MxDbEntity {
3191
+ static cmd: string;
3192
+ static draw: typeof drawMxDbImage;
3123
3193
  private pt1;
3124
3194
  private pt2;
3125
3195
  private imagePath;
@@ -3199,12 +3269,14 @@ declare class MxDbSVGText {
3199
3269
  _underLine: THREE.Line | null;
3200
3270
  }
3201
3271
 
3202
- /** @module MxDbSVG*/
3203
-
3272
+ declare function drawMxDbSVG(): Promise<void>;
3273
+
3204
3274
  /**
3205
3275
  * MxDbSVG 绘制SVG图形.
3206
3276
  */
3207
3277
  declare class MxDbSVG extends MxDbEntity {
3278
+ static cmd: string;
3279
+ static draw: typeof drawMxDbSVG;
3208
3280
  private svgPos;
3209
3281
  private svg;
3210
3282
  private svgPath;
@@ -3291,12 +3363,14 @@ declare class MxDbSVG extends MxDbEntity {
3291
3363
  protected onViewChange(): boolean;
3292
3364
  }
3293
3365
 
3294
- /** @module MxDbPolyline*/
3295
-
3366
+ declare function drawMxDbPolyline(): void;
3367
+
3296
3368
  /**
3297
3369
  * MxDbPolyline 多义线对象(多个点构成的线段)
3298
3370
  */
3299
3371
  declare class MxDbPolyline extends MxDbEntity {
3372
+ static cmd: string;
3373
+ static draw: typeof drawMxDbPolyline;
3300
3374
  /** 顶点位置集合 */
3301
3375
  points: THREE.Vector3[];
3302
3376
  getTypeName(): string;
@@ -3318,7 +3392,11 @@ declare class MxDbPolyline extends MxDbEntity {
3318
3392
  setPointAt(index: number, pt: THREE.Vector3): boolean;
3319
3393
  }
3320
3394
 
3395
+ declare function drawMxDb2LineAngularDimension(): MxDb2LineAngularDimension;
3396
+
3321
3397
  declare class MxDb2LineAngularDimension extends MxDbEntity {
3398
+ static cmd: string;
3399
+ static draw: typeof drawMxDb2LineAngularDimension;
3322
3400
  /**
3323
3401
  * MxDb2LineAngularDimension
3324
3402
  * 显示角度测量的图形
@@ -3612,8 +3690,12 @@ declare class MxDbCircleShape extends MxDbEllipseShape {
3612
3690
  setYRadius(yRadius: number): this;
3613
3691
  }
3614
3692
 
3693
+ declare function drawMx3PointArc(): void;
3694
+
3615
3695
  /** 三点动态绘制圆弧 point1圆弧起始点 point2是圆弧结束点, point3圆弧任意一点 */
3616
3696
  declare class Mx3PointArc extends MxDbCircleShape {
3697
+ static cmd: string;
3698
+ static draw: typeof drawMx3PointArc;
3617
3699
  constructor();
3618
3700
  point1: three.Vector3;
3619
3701
  point2: three.Vector3;
@@ -3635,12 +3717,14 @@ declare class Mx3PointArc extends MxDbCircleShape {
3635
3717
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
3636
3718
  }
3637
3719
 
3638
- /** @module MxDbCoord*/
3639
-
3720
+ declare function drawMxDbCoord(): void;
3721
+
3640
3722
  /**
3641
3723
  * MxDbCoord 引线坐标测量
3642
3724
  */
3643
3725
  declare class MxDbCoord extends MxDbEntity {
3726
+ static cmd: string;
3727
+ static draw: typeof drawMxDbCoord;
3644
3728
  /** 测量点位置 */
3645
3729
  point1: THREE.Vector3;
3646
3730
  /** 测量结果显示位置 */
@@ -3655,12 +3739,15 @@ declare class MxDbCoord extends MxDbEntity {
3655
3739
  getTypeName(): string;
3656
3740
  }
3657
3741
 
3658
- /** @module MxDbLine*/
3659
-
3742
+ /** 绘制 MxDbLine */
3743
+ declare function drawMxDbLine(): Promise<void>;
3744
+
3660
3745
  /**
3661
3746
  * MxDbLine 直线对象.
3662
3747
  */
3663
3748
  declare class MxDbLine extends MxDbEntity {
3749
+ static cmd: string;
3750
+ static draw: typeof drawMxDbLine;
3664
3751
  /** 直线的开始点 */
3665
3752
  pt1: THREE.Vector3;
3666
3753
  /** 直线的结束点 */
@@ -3686,10 +3773,14 @@ declare class MxDbLine extends MxDbEntity {
3686
3773
  getGetLength(): number;
3687
3774
  }
3688
3775
 
3776
+ declare function drawMxDbRect(): Promise<void>;
3777
+
3689
3778
  /**
3690
3779
  * MxRectEntity 矩形对象.
3691
3780
  */
3692
3781
  declare class MxDbRect extends MxDbEntity {
3782
+ static cmd: string;
3783
+ static draw: typeof drawMxDbRect;
3693
3784
  private cornerRadius;
3694
3785
  /**
3695
3786
  * pt1: 构成矩形的第一个点
@@ -3742,12 +3833,16 @@ declare class MxDbRect extends MxDbEntity {
3742
3833
  getFillImagePath(): string | undefined;
3743
3834
  }
3744
3835
 
3836
+ declare function drawMxDbAlignedDimension(): MxDbAlignedDimension;
3837
+
3745
3838
  /** @module MxDbAlignedDimension*/
3746
3839
 
3747
3840
  /**
3748
3841
  * MxDbAlignedDimension 尺寸标注
3749
3842
  */
3750
3843
  declare class MxDbAlignedDimension extends MxDbEntity {
3844
+ static cmd: string;
3845
+ static draw: typeof drawMxDbAlignedDimension;
3751
3846
  /**
3752
3847
  * MxDbAlignedDimension
3753
3848
  * 尺寸标注
@@ -3804,10 +3899,14 @@ declare class MxDbAlignedDimension extends MxDbEntity {
3804
3899
  create(): MxDbAlignedDimension;
3805
3900
  }
3806
3901
 
3902
+ declare function drawMxDbArea(): void;
3903
+
3807
3904
  /**
3808
3905
  * MxDbArea 任意不规则多边形
3809
3906
  * */
3810
3907
  declare class MxDbArea extends MxDbEntity {
3908
+ static cmd: string;
3909
+ static draw: typeof drawMxDbArea;
3811
3910
  /** 构成多边形的顶点集合 */
3812
3911
  points: Array<THREE.Vector3>;
3813
3912
  isFill: boolean;
@@ -3839,10 +3938,14 @@ declare class MxDbArea extends MxDbEntity {
3839
3938
  clearPoint(): void;
3840
3939
  }
3841
3940
 
3941
+ declare function drawMxDbLeadTag(): Promise<void>;
3942
+
3842
3943
  /**
3843
3944
  * MxDbLeadTag 引出标注
3844
3945
  * */
3845
3946
  declare class MxDbLeadTag extends MxDbEntity {
3947
+ static cmd: string;
3948
+ static draw: typeof drawMxDbLeadTag;
3846
3949
  point: three.Vector3;
3847
3950
  leadLen: number;
3848
3951
  text: string;
@@ -3857,6 +3960,8 @@ declare class MxDbLeadTag extends MxDbEntity {
3857
3960
  dwgOut(obj: any): any;
3858
3961
  }
3859
3962
 
3963
+ declare function drawMxDbAnyLine(): void;
3964
+
3860
3965
  /** @module MxDbAnyLine*/
3861
3966
 
3862
3967
  /**
@@ -3864,6 +3969,8 @@ declare class MxDbLeadTag extends MxDbEntity {
3864
3969
  * 任意线段
3865
3970
  */
3866
3971
  declare class MxDbAnyLine extends MxDbEntity {
3972
+ static cmd: string;
3973
+ static draw: typeof drawMxDbAnyLine;
3867
3974
  /** 构成线段的顶点坐标集合 */
3868
3975
  points: THREE.Vector3[];
3869
3976
  getTypeName(): string;
@@ -3881,10 +3988,15 @@ declare class MxDbAnyLine extends MxDbEntity {
3881
3988
  dwgOut(obj: any): object;
3882
3989
  }
3883
3990
 
3991
+ declare function drawMxDbCloudLine(): void;
3992
+
3884
3993
  /**
3885
3994
  * MxDbCloudLine 对象. 绘制任意的云线
3886
3995
  */
3887
3996
  declare class MxDbCloudLine extends MxDbEntity {
3997
+ static isRegister: boolean;
3998
+ static cmd: string;
3999
+ static draw: typeof drawMxDbCloudLine;
3888
4000
  private points;
3889
4001
  private radius;
3890
4002
  private cachePoint;
@@ -3926,7 +4038,11 @@ declare class MxDbCloudLine extends MxDbEntity {
3926
4038
  dwgOut(obj: any): object;
3927
4039
  }
3928
4040
 
4041
+ declare function drawMxDbRegularPolygon(): void;
4042
+
3929
4043
  declare class MxDbRegularPolygon extends MxDbShape {
4044
+ static cmd: string;
4045
+ static draw: typeof drawMxDbRegularPolygon;
3930
4046
  /** 正多边形的中心点位置 */
3931
4047
  centerPoint: three.Vector3;
3932
4048
  /** 正多边形两条边之间的交点位置 */
@@ -3943,12 +4059,14 @@ declare class MxDbRegularPolygon extends MxDbShape {
3943
4059
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
3944
4060
  }
3945
4061
 
3946
- /** @module MxDbLeadComment*/
3947
-
4062
+ declare function drawMxDbLeadComment(): void;
4063
+
3948
4064
  /**
3949
4065
  * MxDbLeadComment 引线文字标注
3950
4066
  * */
3951
4067
  declare class MxDbLeadComment extends MxDbEntity {
4068
+ static cmd: string;
4069
+ static draw: typeof drawMxDbLeadComment;
3952
4070
  /** 标注点 */
3953
4071
  point1: THREE.Vector3;
3954
4072
  /** 文字显示位置 */
@@ -3970,10 +4088,14 @@ declare class MxDbLeadComment extends MxDbEntity {
3970
4088
  protected onViewChange(): boolean;
3971
4089
  }
3972
4090
 
4091
+ declare function drawMxDbRectBoxLeadComment(): void;
4092
+
3973
4093
  /**
3974
4094
  * MxDbRectBoxLeadComment 引线审图标注
3975
4095
  * */
3976
4096
  declare class MxDbRectBoxLeadComment extends MxDbEntity {
4097
+ static cmd: string;
4098
+ static draw: typeof drawMxDbRectBoxLeadComment;
3977
4099
  /** 云线矩形的对角点1 */
3978
4100
  point1: THREE.Vector3;
3979
4101
  /** 云线矩形的对角点2 */
@@ -4000,8 +4122,12 @@ declare class MxDbRectBoxLeadComment extends MxDbEntity {
4000
4122
  protected onViewChange(): boolean;
4001
4123
  }
4002
4124
 
4125
+ declare function drawMxDbEllipse(): void;
4126
+
4003
4127
  /** 通过两个构成矩形的点绘制椭圆形 */
4004
4128
  declare class MxDbEllipse extends MxDbEllipseShape {
4129
+ static cmd: string;
4130
+ static draw: typeof drawMxDbEllipse;
4005
4131
  constructor();
4006
4132
  getTypeName(): string;
4007
4133
  create(): MxDbEllipse;
@@ -4018,6 +4144,8 @@ declare class MxDbEllipse extends MxDbEllipseShape {
4018
4144
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4019
4145
  }
4020
4146
 
4147
+ declare function drawMxDbText(): Promise<void>;
4148
+
4021
4149
  declare type SpriteTextColorType = THREE.Color | string | number | CanvasGradient | CanvasPattern | undefined;
4022
4150
  declare type SpriteTextObj = SpriteText;
4023
4151
  declare type TextFontWeight = 'normal' | 'bold' | 'lighter' | 'bolder' | 'inherit' | number;
@@ -4099,6 +4227,8 @@ interface SpriteTextOptions {
4099
4227
  * ```
4100
4228
  */
4101
4229
  declare class MxDbText extends MxDbEntity {
4230
+ static cmd: string;
4231
+ static draw: typeof drawMxDbText;
4102
4232
  /** 文字所在位置*/
4103
4233
  position: three.Vector3;
4104
4234
  setPosition(position: THREE.Vector3): this;
@@ -4293,10 +4423,14 @@ declare class MxDbGradientLine extends MxDbEntity {
4293
4423
  dwgOut(obj: any): object;
4294
4424
  }
4295
4425
 
4426
+ declare function drawMxDbEllipseArc(): void;
4427
+
4296
4428
  /**
4297
- * 根据中心点、椭圆开始点和结束点确定椭圆弧
4298
- * */
4429
+ * 根据中心点、椭圆开始点和结束点确定椭圆弧
4430
+ * */
4299
4431
  declare class MxDbEllipseArc extends MxDbEllipseShape {
4432
+ static cmd: string;
4433
+ static draw: typeof drawMxDbEllipseArc;
4300
4434
  getTypeName(): string;
4301
4435
  constructor();
4302
4436
  /** 椭圆弧决定开始点 控制x轴半径和开始角度 */
@@ -4310,7 +4444,11 @@ declare class MxDbEllipseArc extends MxDbEllipseShape {
4310
4444
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4311
4445
  }
4312
4446
 
4447
+ declare function drawMxDbCircleArc(): void;
4448
+
4313
4449
  declare class MxDbCircleArc extends MxDbCircleShape {
4450
+ static cmd: string;
4451
+ static draw: typeof drawMxDbCircleArc;
4314
4452
  /** 根据圆心、起始点、结束点位置动态绘制圆弧 **/
4315
4453
  constructor();
4316
4454
  getTypeName(): string;
@@ -4339,7 +4477,12 @@ declare class MxDbArcShape extends MxDbCircleArc {
4339
4477
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4340
4478
  }
4341
4479
 
4480
+ declare function drawMxDbArcShape(): void;
4481
+
4342
4482
  declare class MxDbArcShapeDraw extends MxDbArcShape {
4483
+ static isRegister: boolean;
4484
+ static cmd: string;
4485
+ static draw: typeof drawMxDbArcShape;
4343
4486
  getTypeName(): string;
4344
4487
  /** 绘制弧形 */
4345
4488
  constructor();
@@ -4350,14 +4493,23 @@ declare class MxDbArcShapeDraw extends MxDbArcShape {
4350
4493
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4351
4494
  }
4352
4495
 
4496
+ declare function drawMxDbRingShape(): void;
4497
+
4353
4498
  /** 环形 */
4354
4499
  declare class MxDbRingShape extends MxDbArcShape {
4500
+ static isRegister: boolean;
4501
+ static cmd: string;
4502
+ static draw: typeof drawMxDbRingShape;
4355
4503
  getTypeName(): string;
4356
4504
  worldDraw(pWorldDraw: McGiWorldDraw): void;
4357
4505
  }
4358
4506
 
4507
+ declare function drawMxDbStarShape(): void;
4508
+
4359
4509
  /** 星形 */
4360
4510
  declare class MxDbStarShape extends MxDbShape {
4511
+ static cmd: string;
4512
+ static draw: typeof drawMxDbStarShape;
4361
4513
  getTypeName(): string;
4362
4514
  constructor();
4363
4515
  center: three.Vector3;
@@ -4389,7 +4541,11 @@ declare class MxDbRegularPolygonShape extends MxDbShape {
4389
4541
  moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
4390
4542
  }
4391
4543
 
4544
+ declare function drawMxDbArrow(): void;
4545
+
4392
4546
  declare class MxDbArrow extends MxDbShape {
4547
+ static cmd: string;
4548
+ static draw: typeof drawMxDbArrow;
4393
4549
  /** 箭头图形 */
4394
4550
  constructor();
4395
4551
  /** 开始是否为尖角 */
@@ -4437,6 +4593,7 @@ declare const Mx_MxType: typeof MxType;
4437
4593
  declare const Mx_Mxassembly: typeof Mxassembly;
4438
4594
  declare const Mx_McGeTool: typeof McGeTool;
4439
4595
  declare const Mx_MrxDbgUtils: typeof MrxDbgUtils;
4596
+ declare const Mx_MxPaintBrush: typeof MxPaintBrush;
4440
4597
  type Mx_MrxDbgUiPrPoint = MrxDbgUiPrPoint;
4441
4598
  declare const Mx_MrxDbgUiPrPoint: typeof MrxDbgUiPrPoint;
4442
4599
  type Mx_McEdGetPointWorldDrawObject = McEdGetPointWorldDrawObject;
@@ -4535,6 +4692,7 @@ declare namespace Mx {
4535
4692
  Mx_Mxassembly as Mxassembly,
4536
4693
  Mx_McGeTool as McGeTool,
4537
4694
  Mx_MrxDbgUtils as MrxDbgUtils,
4695
+ Mx_MxPaintBrush as MxPaintBrush,
4538
4696
  Mx_MrxDbgUiPrPoint as MrxDbgUiPrPoint,
4539
4697
  Mx_McEdGetPointWorldDrawObject as McEdGetPointWorldDrawObject,
4540
4698
  Mx_MrxDbgUiPrBaseReturn as MrxDbgUiPrBaseReturn,
@@ -4591,4 +4749,4 @@ declare global {
4591
4749
  }
4592
4750
  }
4593
4751
 
4594
- 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 };
4752
+ 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);