mxdraw 0.1.63 → 0.1.66

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.
@@ -81,4 +81,12 @@ export default class MxDbDatabase {
81
81
  * ```
82
82
  */
83
83
  deleteGroup(sName: string): MxDbGroup;
84
+ /**
85
+ *通过id得到对象.
86
+ * @example
87
+ * ```typescript
88
+ *
89
+ * ```
90
+ */
91
+ getEntity(id: number): MxDbEntity;
84
92
  }
@@ -144,7 +144,7 @@ export default abstract class MxDbEntity {
144
144
  private getImp;
145
145
  /**
146
146
  * 更新显示
147
- * @param 为true 重绘时立即更新显示
147
+ * @param 为true 重绘时立即更新显示,默认值false
148
148
  * @returns boolean
149
149
 
150
150
  */
@@ -17,7 +17,7 @@ export default class MxDbSVG extends MxDbEntity {
17
17
  /** 是否倒置SVG图形 */
18
18
  svgReverse: boolean;
19
19
  svgMirror: boolean;
20
- svgChildColor: number[];
20
+ private svgChildColor;
21
21
  svgMargin: THREE.Vector2;
22
22
  private isSvgDirtyLocation;
23
23
  private isLoadFromPath;
@@ -27,6 +27,8 @@ export default class MxDbSVG extends MxDbEntity {
27
27
  fixedSize: boolean;
28
28
  /**使用svg的颜色 */
29
29
  useSvgColor: boolean;
30
+ setSvgChildColor(aryColor: number[]): void;
31
+ getSvgChildColor(): number[];
30
32
  private calcVewSize;
31
33
  worldDraw(pWorldDraw: McGiWorldDraw): void;
32
34
  /**
@@ -738,4 +738,12 @@ export default class MxDrawObject {
738
738
  * ```
739
739
  */
740
740
  getMxCAD(): MxCADObject;
741
+ /**
742
+ * 重新计数Renderer状态, this.renderer.info.reset();
743
+ * @return
744
+ * @example
745
+ * ``` typescript
746
+ * ```
747
+ */
748
+ resetRenderer(): any;
741
749
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxdraw",
3
- "version": "0.1.63",
3
+ "version": "0.1.66",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/mxdraw.umd.js",