mxdraw 0.1.251 → 0.1.252

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
@@ -1156,11 +1156,11 @@ declare function createMxObject(this: MxFunType, { canvasId, cadFile, callback,
1156
1156
  declare let mxUiData: MxVueInterface;
1157
1157
  interface MxFunClass {
1158
1158
  /** mxdraw引入初始化(一般用于在这个阶段注册命令) */
1159
- on(name: "init"): void;
1159
+ on(name: 'init'): void;
1160
1160
  /**
1161
- * 注册一个系统事件的监听
1162
- * init 事件会在模块加载完成后触发。
1163
- * */
1161
+ * 注册一个系统事件的监听
1162
+ * init 事件会在模块加载完成后触发。
1163
+ * */
1164
1164
  on(eventName: string, call: any): void;
1165
1165
  }
1166
1166
  /**
@@ -1172,6 +1172,10 @@ interface MxFunClass {
1172
1172
  */
1173
1173
  declare class MxFunClass {
1174
1174
  createMxObject: typeof createMxObject;
1175
+ /**
1176
+ * 循环渲染, 将实体添加到场景中自动更新渲染
1177
+ * */
1178
+ renderLoop(isLoop?: boolean): void;
1175
1179
  /**
1176
1180
  * 为程序设置服务器地址
1177
1181
  * @param MXSERVER 服务器地址
@@ -1460,13 +1464,13 @@ declare class MxFunClass {
1460
1464
  */
1461
1465
  worldCoord2Doc: (x: number, y: number, z: number) => THREE.Vector3;
1462
1466
  /**
1463
- * 更新显示,使用Three.js绘制了对象,调用该函数更新显示。
1464
- * @return void
1465
- * @example
1466
- * ``` typescript
1467
- * Mx.MxFun.updateDisplay()
1468
- * ```
1469
- */
1467
+ * 更新显示,使用Three.js绘制了对象,调用该函数更新显示。
1468
+ * @return void
1469
+ * @example
1470
+ * ``` typescript
1471
+ * Mx.MxFun.updateDisplay()
1472
+ * ```
1473
+ */
1470
1474
  updateDisplay: () => void;
1471
1475
  /**
1472
1476
  * 设置窗口鼠标等事件的回调操作
@@ -1537,7 +1541,7 @@ declare class MxFunClass {
1537
1541
  * Mx.MxFun.acutPrintf("{0}:", "draw")
1538
1542
  * ```
1539
1543
  */
1540
- acutPrintf: ((format: string, ...val: string[]) => void);
1544
+ acutPrintf: (format: string, ...val: string[]) => void;
1541
1545
  /**
1542
1546
  * 得到地址栏参数
1543
1547
  * @param name
@@ -1570,8 +1574,8 @@ declare class MxFunClass {
1570
1574
  */
1571
1575
  openFile: (sFile: string | string[], useWebsocket?: boolean) => boolean;
1572
1576
  /**
1573
- * 调用服务器后台CAD命令.
1574
- * */
1577
+ * 调用服务器后台CAD命令.
1578
+ * */
1575
1579
  callCommand: (cmd: string, param: string, retCall?: (param: any) => void) => void;
1576
1580
  /**
1577
1581
  * CAD坐标到文档坐标.
@@ -1606,14 +1610,14 @@ declare class MxFunClass {
1606
1610
  */
1607
1611
  getMxEntity: (id: number) => MxDbEntity | undefined;
1608
1612
  /**
1609
- * 停止运行当前命令
1610
- * @returns
1611
- * @example
1612
- * ```typescript
1613
- *
1614
- *
1615
- * ```
1616
- */
1613
+ * 停止运行当前命令
1614
+ * @returns
1615
+ * @example
1616
+ * ```typescript
1617
+ *
1618
+ *
1619
+ * ```
1620
+ */
1617
1621
  stopRunCommand: () => void;
1618
1622
  /**
1619
1623
  * 设置当前运行MxCAD的MxCPP环境对象。
@@ -1683,13 +1687,13 @@ declare class MxFunClass {
1683
1687
  */
1684
1688
  getCurrentMousePostion(): THREE.Vector3;
1685
1689
  /**
1686
- * 触发一个系统事件的调用
1687
- * */
1690
+ * 触发一个系统事件的调用
1691
+ * */
1688
1692
  callEvent: (eventName: string, param?: any) => any;
1689
1693
  /**
1690
- * 得到当前网页路径
1691
- * init 事件会在模块加载完成后触发。
1692
- * */
1694
+ * 得到当前网页路径
1695
+ * init 事件会在模块加载完成后触发。
1696
+ * */
1693
1697
  getLocationPageUrl: () => string;
1694
1698
  /**
1695
1699
  * 得到当前主机路径
@@ -1711,8 +1715,8 @@ declare class MxFunClass {
1711
1715
  * */
1712
1716
  getLanguageString: (id: string, sDef?: string) => string;
1713
1717
  /**
1714
- * 把一个颜色变量转成一个数组颜色
1715
- * */
1718
+ * 把一个颜色变量转成一个数组颜色
1719
+ * */
1716
1720
  getNumberColor: (iColor: number | string | THREE.Color) => number;
1717
1721
  /**
1718
1722
  * 发送一个消息到ifarme的父窗口