mxdraw 0.1.169 → 0.1.171

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
@@ -1737,11 +1737,21 @@ declare class MxFunClass {
1737
1737
  * 注册一个系统事件的监听
1738
1738
  * init 事件会在模块加载完成后触发。
1739
1739
  * */
1740
- on(eventName: string, call: any): void;
1740
+ on: (eventName: string, call: any) => void;
1741
1741
  /**
1742
1742
  * 触发一个系统事件的调用
1743
1743
  * */
1744
- callEvent(eventName: string, param?: any): void;
1744
+ callEvent: (eventName: string, param?: any) => void;
1745
+ /**
1746
+ * 得到当前网页路径
1747
+ * init 事件会在模块加载完成后触发。
1748
+ * */
1749
+ getLocationPageUrl: () => string;
1750
+ /**
1751
+ * 得到当前主机路径
1752
+ * init 事件会在模块加载完成后触发。
1753
+ * */
1754
+ getHostUrl: () => string;
1745
1755
  /** 监听use或者调用自定义图形定义的绘制命令后创建图形对象的回调 */
1746
1756
  onUseCreateMxDbEntity(callback: (...ages: [MxDbEntity]) => any): void;
1747
1757
  }
@@ -2099,6 +2109,14 @@ declare class MxDrawObject extends Node<MxDrawEvents, Node<any, any>> {
2099
2109
  * ```
2100
2110
  */
2101
2111
  setIniset(options: iniConfig): void;
2112
+ /**
2113
+ * 返回当前视区的显示范围
2114
+ * @returns {minPt:THREE.Vector3,maxPt:THREE.Vector3}
2115
+ */
2116
+ getGetViewDocCoord(): {
2117
+ minPt: THREE.Vector3;
2118
+ maxPt: THREE.Vector3;
2119
+ };
2102
2120
  /**
2103
2121
  * 屏幕坐标到ThreeJS坐标
2104
2122
  * @returns THREE.Vector3