mxdraw 0.1.13 → 0.1.14
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/lib/MxModule/MxDbSVG/MxDbSVG.js +1 -1
- package/dist/lib/MxModule/MxDrawObject/MxDrawObject.js +1 -1
- package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -1
- package/dist/mxdraw.es5.js +1 -1
- package/dist/mxdraw.umd.js +1 -1
- package/dist/types/MxModule/MxDbSVG/MxDbSVG.d.ts +1 -1
- package/dist/types/MxModule/MxDrawObject/MxDrawObject.d.ts +13 -0
- package/dist/types/types/MxDrawObject.d.ts +1 -0
- package/package.json +2 -1
|
@@ -23,7 +23,7 @@ export default class MxDbSVG extends MxDbEntity {
|
|
|
23
23
|
useSvgColor: boolean;
|
|
24
24
|
private calcVewSize;
|
|
25
25
|
worldDraw(pWorldDraw: McGiWorldDraw): void;
|
|
26
|
-
setSvgPath(path: string): void
|
|
26
|
+
setSvgPath(path: string, preload?: boolean): Promise<void>;
|
|
27
27
|
getSvgPath(): string;
|
|
28
28
|
setSvgPostion(pos: THREE.Vector3): void;
|
|
29
29
|
getSvgPostion(): THREE.Vector3;
|
|
@@ -227,6 +227,8 @@ export default class MxDrawObject {
|
|
|
227
227
|
* ```typescript
|
|
228
228
|
* Mx.MxFun.getCurrentDraw().addEvent("addResizeEvent", ()=> {})
|
|
229
229
|
* Mx.MxFun.getCurrentDraw().addEvent("viewchange", ()=> {})
|
|
230
|
+
* 图纸加载完成
|
|
231
|
+
* Mx.MxFun.getCurrentDraw().addEvent("loadComplete", ()=> {})
|
|
230
232
|
* 视区重绘事件.
|
|
231
233
|
* Mx.MxFun.getCurrentDraw().addEvent("render", (renderer)=> {})
|
|
232
234
|
* 视区大小被修改事件.,viewsize={viewWidth:viewWidth,viewHeight:viewHeight}
|
|
@@ -582,4 +584,15 @@ export default class MxDrawObject {
|
|
|
582
584
|
* ```
|
|
583
585
|
*/
|
|
584
586
|
makeCurrent(): void;
|
|
587
|
+
/**
|
|
588
|
+
* 得到视区中心的文档坐标.
|
|
589
|
+
* @param
|
|
590
|
+
* @returns
|
|
591
|
+
* @example
|
|
592
|
+
* ```typescript
|
|
593
|
+
*
|
|
594
|
+
*
|
|
595
|
+
* ```
|
|
596
|
+
*/
|
|
597
|
+
getViewCenterDocCoord(): THREE.Vector3;
|
|
585
598
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mxdraw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "dist/mxdraw.umd.js",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
|
|
26
26
|
"prebuild": "rimraf dist",
|
|
27
27
|
"build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs && node compress",
|
|
28
|
+
"builddebug": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs",
|
|
28
29
|
"oldDocs": "typedoc --out docs --target es6 --theme minimal --mode file src",
|
|
29
30
|
"docs": "npm run patch && npm run doctoc && typedoc --out docs",
|
|
30
31
|
"start": "rollup -c rollup.config.ts -w",
|