Skip to content

Commit c529e3d

Browse files
author
zhaokai
committed
【新增】【支持标绘模块release打包使用】
1 parent 1453b4c commit c529e3d

File tree

10 files changed

+29
-9
lines changed

10 files changed

+29
-9
lines changed

src/service/2DPlot/PlotLayer2D.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @Author: zk
55
* @Date: 2022-05-13 10:34:57
66
* @LastEditors: zk
7-
* @LastEditTime: 2022-06-22 10:01:17
7+
* @LastEditTime: 2022-07-06 12:11:10
88
*/
99

1010
import { DrawPlotObjectFactory2D } from './Draw/DrawPlotObjectFactory2D';
@@ -13,6 +13,7 @@ import { createGuid } from '../PlotUtilBase/Util/Guid';
1313
import SymbolManager from '../PlotBase/SymbolManager/SymbolManager';
1414
import FabricLineUtil from './EditTool/FabricLineUtil';
1515
import { addExtendLayersPlot, removeExtendLayersPlot } from '../3DPlot/Utils/PlotUtil';
16+
import { Zondy } from '../common/Base';
1617

1718
class PlotLayer2D {
1819
constructor() {
@@ -488,3 +489,5 @@ Object.defineProperties(PlotLayer2D.prototype, {
488489
});
489490

490491
export default PlotLayer2D;
492+
493+
Zondy.Plot.PlotLayer2D=PlotLayer2D

src/service/2DPlot/PlotLayer2DGroup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @Author: zk
55
* @Date: 2022-05-13 11:01:10
66
* @LastEditors: zk
7-
* @LastEditTime: 2022-06-22 10:16:16
7+
* @LastEditTime: 2022-07-06 12:11:07
88
*/
99

1010
import { fabric } from 'fabric';
@@ -284,3 +284,4 @@ export const PlotLayer2DGroup = fabric.util.createClass(fabric.Canvas, {
284284
});
285285

286286
fabric.PlotLayer2DGroup = PlotLayer2DGroup;
287+
Zondy.Plot.PlotLayer2DGroup=PlotLayer2DGroup

src/service/3DPlot/PlotLayer3D.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as turf from "@turf/turf";
99
import Point from "../PlotUtilBase/Geometry/Point";
1010
import GeomUtil from "../PlotUtilBase/Geometry/GeomUtil";
1111
import {addExtendLayersPlot, removeExtendLayersPlot} from "./Utils/PlotUtil";
12+
import { Zondy } from "../common/Base";
1213

1314
/**
1415
* @class module:3DPlot.PlotLayer3D
@@ -441,4 +442,5 @@ Object.defineProperties(PlotLayer3D.prototype, {
441442
}
442443
});
443444

444-
export default PlotLayer3D;
445+
export default PlotLayer3D;
446+
Zondy.Plot.PlotLayer3D=PlotLayer3D

src/service/3DPlot/PlotLayer3DGroup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,4 @@ class PlotLayer3DGroup {
258258
PlotLayer3DGroup.instance = null;
259259

260260
export default PlotLayer3DGroup;
261+
Zondy.Plot.PlotLayer3DGroup=PlotLayer3DGroup

src/service/PlotBase/Animation/TimeLine/TimeLine.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* @Author: zk
44
* @Date: 2022-03-23 11:53:45
55
* @LastEditors: zk
6-
* @LastEditTime: 2022-06-17 19:58:03
6+
* @LastEditTime: 2022-07-06 12:05:37
77
*/
8-
8+
import { Zondy } from '../../../common/Base';
99
import { AnimationReg } from '../AnimationTypes';
1010
export default class TimeLine {
1111
constructor(layerGroup, options) {
@@ -338,3 +338,5 @@ export default class TimeLine {
338338
this.handleRender();
339339
}
340340
}
341+
342+
Zondy.Plot.TimeLine= TimeLine

src/service/PlotBase/Draw/DrawTool.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { PlotLayer3D } from '../../3DPlot';
33
import { PlotLayer2D } from '../../2DPlot';
44
import { DrawPlotObjectFactory2D } from '../../2DPlot/Draw/DrawPlotObjectFactory2D';
55
import LogTool from '../../PlotUtilBase/Log/LogTool';
6+
import {Zondy} from '../../common/Base'
67

78
/**
89
* @class module:3DPlot.DrawTool
@@ -110,3 +111,4 @@ class DrawTool {
110111
}
111112

112113
export default DrawTool;
114+
Zondy.Plot.DrawTool= DrawTool

src/service/PlotBase/SymbolManager/SymbolManager.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Description:
33
* @Version: 2.0
44
* @Date: 2021-07-22 11:46:16
5-
* @LastEditTime: 2022-06-22 10:43:56
5+
* @LastEditTime: 2022-07-06 12:15:56
66
* @Author: xinxiao
77
* @LastEditors: zk
88
*/
@@ -11,6 +11,7 @@ import LogTool from "../../PlotUtilBase/Log/LogTool";
1111
import SymbolCatalog from "./SymbolCatalog";
1212
import {getAction} from "../Util/request";
1313
import axios from "axios";
14+
import { Zondy } from "../../common/Base";
1415
axios.defaults.withCredentials = true;
1516

1617
export default class SymbolManager {
@@ -116,3 +117,5 @@ export default class SymbolManager {
116117
return symbol.getImage();
117118
}
118119
}
120+
121+
Zondy.Plot.SymbolManager=SymbolManager

src/service/PlotRegister/PlotRegister.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* @Author: zk
55
* @Date: 2022-06-22 16:53:01
66
* @LastEditors: zk
7-
* @LastEditTime: 2022-06-23 11:54:41
7+
* @LastEditTime: 2022-07-06 12:08:10
88
*/
99
import { ElementFactory } from '../PlotBase/SvgLoader/element';
1010
import { PlotObjectFactory } from '../2DPlot/Shapes/PlotObjectFactory';
1111
import { PrimitiveFactory } from '../3DPlot/Primitive/PrimitiveFactory';
1212
import { DrawPlotObjectFactory2D } from '../2DPlot/Draw/DrawPlotObjectFactory2D';
1313
import { DrawPlotObjectFactory3D } from '../3DPlot/Draw/DrawPlotObjectFactory3D';
1414
import LogTool from '../PlotUtilBase/Log/LogTool';
15-
15+
import { Zondy } from '../common/Base';
1616
class PlotRegister {
1717
constructor() {
1818
this._cacheRegisterTypes = [];
@@ -88,3 +88,4 @@ class PlotRegister {
8888
}
8989

9090
export default PlotRegister;
91+
Zondy.Plot.PlotRegister=PlotRegister

src/service/PlotUtilBase/Geometry/Point.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defaultValue } from "../Check";
22
import StringUtil from "../Util/StringUtil";
33
import MathUtil from "../Util/MathUtil";
4+
import { Zondy } from "../../common/Base";
45
/**
56
* Point类
67
* @property x x坐标
@@ -156,3 +157,4 @@ static newAdd(pnt,x,y){
156157
return new Point(pnt.x-x,pnt.y-y)
157158
}
158159
}
160+
Zondy.Plot.PlotUtilBase.Point=Point

src/service/common/Base.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
var Zondy = (window.Zondy = window.Zondy || {});
1+

2+
var Zondy = (window.Zondy = window.Zondy || {});
23

34
Zondy.Event = Zondy.Event || {};
45

@@ -54,4 +55,6 @@ Zondy.CloudDisk.Model = Zondy.CloudDisk.Model || {};
5455
Zondy.IGServerX = Zondy.IGServerX || {};
5556
Zondy.IGServerX.Vector = Zondy.IGServerX.Vector || {};
5657

58+
Zondy.Plot = Zondy.Plot || {};
59+
5760
export { Zondy };

0 commit comments

Comments
 (0)