mxdraw 0.1.251 → 0.1.254
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 +38 -29
- package/dist/mxdraw.esm.js +1 -1
- package/dist/mxdraw.umd.js +1 -1
- package/package.json +3 -2
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:
|
|
1159
|
+
on(name: 'init'): void;
|
|
1160
1160
|
/**
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1161
|
+
* 注册一个系统事件的监听
|
|
1162
|
+
* init 事件会在模块加载完成后触发。
|
|
1163
|
+
* */
|
|
1164
1164
|
on(eventName: string, call: any): void;
|
|
1165
1165
|
}
|
|
1166
1166
|
/**
|
|
@@ -1460,13 +1460,13 @@ declare class MxFunClass {
|
|
|
1460
1460
|
*/
|
|
1461
1461
|
worldCoord2Doc: (x: number, y: number, z: number) => THREE.Vector3;
|
|
1462
1462
|
/**
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1463
|
+
* 更新显示,使用Three.js绘制了对象,调用该函数更新显示。
|
|
1464
|
+
* @return void
|
|
1465
|
+
* @example
|
|
1466
|
+
* ``` typescript
|
|
1467
|
+
* Mx.MxFun.updateDisplay()
|
|
1468
|
+
* ```
|
|
1469
|
+
*/
|
|
1470
1470
|
updateDisplay: () => void;
|
|
1471
1471
|
/**
|
|
1472
1472
|
* 设置窗口鼠标等事件的回调操作
|
|
@@ -1537,7 +1537,7 @@ declare class MxFunClass {
|
|
|
1537
1537
|
* Mx.MxFun.acutPrintf("{0}:", "draw")
|
|
1538
1538
|
* ```
|
|
1539
1539
|
*/
|
|
1540
|
-
acutPrintf: (
|
|
1540
|
+
acutPrintf: (format: string, ...val: string[]) => void;
|
|
1541
1541
|
/**
|
|
1542
1542
|
* 得到地址栏参数
|
|
1543
1543
|
* @param name
|
|
@@ -1570,8 +1570,8 @@ declare class MxFunClass {
|
|
|
1570
1570
|
*/
|
|
1571
1571
|
openFile: (sFile: string | string[], useWebsocket?: boolean) => boolean;
|
|
1572
1572
|
/**
|
|
1573
|
-
|
|
1574
|
-
|
|
1573
|
+
* 调用服务器后台CAD命令.
|
|
1574
|
+
* */
|
|
1575
1575
|
callCommand: (cmd: string, param: string, retCall?: (param: any) => void) => void;
|
|
1576
1576
|
/**
|
|
1577
1577
|
* CAD坐标到文档坐标.
|
|
@@ -1606,14 +1606,14 @@ declare class MxFunClass {
|
|
|
1606
1606
|
*/
|
|
1607
1607
|
getMxEntity: (id: number) => MxDbEntity | undefined;
|
|
1608
1608
|
/**
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1609
|
+
* 停止运行当前命令
|
|
1610
|
+
* @returns
|
|
1611
|
+
* @example
|
|
1612
|
+
* ```typescript
|
|
1613
|
+
*
|
|
1614
|
+
*
|
|
1615
|
+
* ```
|
|
1616
|
+
*/
|
|
1617
1617
|
stopRunCommand: () => void;
|
|
1618
1618
|
/**
|
|
1619
1619
|
* 设置当前运行MxCAD的MxCPP环境对象。
|
|
@@ -1683,13 +1683,13 @@ declare class MxFunClass {
|
|
|
1683
1683
|
*/
|
|
1684
1684
|
getCurrentMousePostion(): THREE.Vector3;
|
|
1685
1685
|
/**
|
|
1686
|
-
|
|
1687
|
-
|
|
1686
|
+
* 触发一个系统事件的调用
|
|
1687
|
+
* */
|
|
1688
1688
|
callEvent: (eventName: string, param?: any) => any;
|
|
1689
1689
|
/**
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1690
|
+
* 得到当前网页路径
|
|
1691
|
+
* init 事件会在模块加载完成后触发。
|
|
1692
|
+
* */
|
|
1693
1693
|
getLocationPageUrl: () => string;
|
|
1694
1694
|
/**
|
|
1695
1695
|
* 得到当前主机路径
|
|
@@ -1711,8 +1711,8 @@ declare class MxFunClass {
|
|
|
1711
1711
|
* */
|
|
1712
1712
|
getLanguageString: (id: string, sDef?: string) => string;
|
|
1713
1713
|
/**
|
|
1714
|
-
|
|
1715
|
-
|
|
1714
|
+
* 把一个颜色变量转成一个数组颜色
|
|
1715
|
+
* */
|
|
1716
1716
|
getNumberColor: (iColor: number | string | THREE.Color) => number;
|
|
1717
1717
|
/**
|
|
1718
1718
|
* 发送一个消息到ifarme的父窗口
|
|
@@ -2766,6 +2766,15 @@ declare class MxDrawObject extends Node<MxDrawEvents, Node<any, any>> {
|
|
|
2766
2766
|
* ```
|
|
2767
2767
|
*/
|
|
2768
2768
|
automaticInversionColor(color: number): number;
|
|
2769
|
+
/**
|
|
2770
|
+
* 启动或停止动画渲染
|
|
2771
|
+
* @example
|
|
2772
|
+
* ```typescript
|
|
2773
|
+
*
|
|
2774
|
+
*
|
|
2775
|
+
* ```
|
|
2776
|
+
*/
|
|
2777
|
+
renderLoop(isLoop?: boolean): void;
|
|
2769
2778
|
}
|
|
2770
2779
|
|
|
2771
2780
|
/**
|