dcim-topology2d 2.2.0 → 2.2.2

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.
Files changed (42) hide show
  1. package/chart-diagram/index.d.ts +1 -1
  2. package/chart-diagram/index.js +1 -1
  3. package/chart-diagram/src/echarts/index.js +112 -112
  4. package/chart-diagram/src/utils/changeOptions.d.ts +8 -8
  5. package/chart-diagram/src/utils/changeOptions.js +8 -2
  6. package/chart-diagram/src/utils/conversion.d.ts +19 -19
  7. package/chart-diagram/src/utils/conversion.js +601 -560
  8. package/chart-diagram/src/utils/drawGraphic.d.ts +3 -3
  9. package/chart-diagram/src/utils/drawGraphic.js +97 -97
  10. package/chart-diagram/src/utils/index.d.ts +5 -5
  11. package/chart-diagram/src/utils/index.js +5 -5
  12. package/chart-diagram/src/utils/render.js +4 -0
  13. package/core/index.js +1 -19
  14. package/core/src/activeLayer.js +23 -23
  15. package/core/src/calling.js +32 -33
  16. package/core/src/common.d.ts +1 -0
  17. package/core/src/common.js +106 -75
  18. package/core/src/element/common.js +0 -1
  19. package/core/src/healps/changeData.js +3 -0
  20. package/core/src/middles/default.js +3 -1
  21. package/core/src/middles/index.d.ts +1 -2
  22. package/core/src/middles/index.js +3 -2
  23. package/core/src/middles/nodes/formDatePicker.js +1 -0
  24. package/core/src/middles/nodes/formoverflow.js +17 -16
  25. package/core/src/middles/nodes/index.d.ts +2 -1
  26. package/core/src/middles/nodes/index.js +1 -0
  27. package/core/src/middles/nodes/progress.d.ts +2 -0
  28. package/core/src/middles/nodes/progress.js +63 -0
  29. package/core/src/middles/nodes/progress.js.map +1 -0
  30. package/core/src/middles/nodes/rectangle.js +54 -15
  31. package/core/src/models/node.js +7 -0
  32. package/core/src/models/pen.js +10 -1
  33. package/core/src/preview.js +63 -37
  34. package/core/src/store/data.d.ts +9 -0
  35. package/core/src/store/data.js +5 -0
  36. package/core/src/utils/assignment.d.ts +1 -1
  37. package/core/src/utils/assignment.js +18 -5
  38. package/package.json +1 -1
  39. package/static/echartsDefaultData.js +178 -178
  40. package/store/actions.js +2 -1
  41. package/store/clear.js +4 -0
  42. /package/myShape-diagram/{index.ts → index.d.ts} +0 -0
@@ -1,3 +1,3 @@
1
- export declare function drawGraphicShape(appearance: any): any;
2
- export declare function graphicLinearGradient(nr: number, nb: number, nl: number, nt: number, colors: []): any;
3
- export declare function setSeriesRenderGroup(appearance: any, api: any): [];
1
+ export declare function drawGraphicShape(appearance: any): any;
2
+ export declare function graphicLinearGradient(nr: number, nb: number, nl: number, nt: number, colors: []): any;
3
+ export declare function setSeriesRenderGroup(appearance: any, api: any): [];
@@ -1,97 +1,97 @@
1
- // 绘制柱子切面
2
- export function drawGraphicShape(appearance) {
3
- const offsetX = appearance.offsetX;
4
- const offsetY = appearance.offsetY;
5
- // 绘制左侧面
6
- const CubeLeft = echarts.graphic.extendShape({
7
- shape: {
8
- x: 0,
9
- y: 0,
10
- },
11
- buildPath: function (ctx, shape) {
12
- // 会canvas的应该都能看得懂,shape是从custom传入的
13
- const xAxisPoint = shape.xAxisPoint;
14
- // console.log(shape);
15
- const c0 = [shape.x, shape.y];
16
- const c1 = [shape.x - offsetX, shape.y - offsetY];
17
- const c2 = [xAxisPoint[0] - offsetX, xAxisPoint[1] - offsetY];
18
- const c3 = [xAxisPoint[0], xAxisPoint[1]];
19
- ctx.moveTo(c0[0], c0[1]).lineTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).closePath();
20
- },
21
- });
22
- // 绘制右侧面
23
- const CubeRight = echarts.graphic.extendShape({
24
- shape: {
25
- x: 0,
26
- y: 0,
27
- },
28
- buildPath: function (ctx, shape) {
29
- const xAxisPoint = shape.xAxisPoint;
30
- const c1 = [shape.x, shape.y];
31
- const c2 = [xAxisPoint[0], xAxisPoint[1]];
32
- const c3 = [xAxisPoint[0] + offsetX, xAxisPoint[1] - offsetY];
33
- const c4 = [shape.x + offsetX, shape.y - offsetY];
34
- ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath();
35
- },
36
- });
37
- // 绘制顶面
38
- const CubeTop = echarts.graphic.extendShape({
39
- shape: {
40
- x: 0,
41
- y: 0,
42
- },
43
- buildPath: function (ctx, shape) {
44
- const c1 = [shape.x, shape.y];
45
- const c2 = [shape.x + offsetX, shape.y - offsetY]; //右点
46
- const c3 = [shape.x, shape.y - offsetX];
47
- const c4 = [shape.x - offsetX, shape.y - offsetY];
48
- ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath();
49
- },
50
- });
51
- return {
52
- CubeLeft,
53
- CubeRight,
54
- CubeTop
55
- }
56
- }
57
- // 线性渐变
58
- export function graphicLinearGradient(nr, nb, nl, nt, colors) {
59
- return new echarts.graphic.LinearGradient(nr, nb, nl, nt, colors);
60
- }
61
- export function setSeriesRenderGroup(appearance, api) {
62
- const seriesRenderData = [];
63
- const groupTypeData = ['CubeLeft', 'CubeRight', 'CubeTop'];
64
- const location = api.coord([api.value(0), api.value(1)]);
65
- for (let i = 0; i < groupTypeData.length; i++) {
66
- const groupItem = groupTypeData[i];
67
- const groupNode = {
68
- type: groupItem,
69
- shape: {
70
- api,
71
- xValue: api.value(0),
72
- yValue: api.value(1),
73
- x: location[0],
74
- y: location[1],
75
- xAxisPoint: api.coord([api.value(0), 0]),
76
- }
77
- };
78
- if(i === groupTypeData.length - 1){
79
- // 顶部切面颜色填充
80
- groupNode.style = {
81
- fill: appearance.seriesCubeTopColor
82
- }
83
- }else {
84
- // 左右切面颜色填充
85
- let fillColor = graphicLinearGradient(0, 0, 0, 1, appearance[`series${groupItem}Gradient`]);
86
- const cubeColorLinear = appearance[`series${groupItem}Linear`];
87
- if(!cubeColorLinear) {
88
- fillColor = appearance[`series${groupItem}Color`];
89
- }
90
- groupNode.style = {
91
- fill: fillColor
92
- }
93
- }
94
- seriesRenderData.push(groupNode);
95
- }
96
- return seriesRenderData;
97
- }
1
+ // 绘制柱子切面
2
+ export function drawGraphicShape(appearance) {
3
+ const offsetX = appearance.offsetX;
4
+ const offsetY = appearance.offsetY;
5
+ // 绘制左侧面
6
+ const CubeLeft = echarts.graphic.extendShape({
7
+ shape: {
8
+ x: 0,
9
+ y: 0,
10
+ },
11
+ buildPath: function (ctx, shape) {
12
+ // 会canvas的应该都能看得懂,shape是从custom传入的
13
+ const xAxisPoint = shape.xAxisPoint;
14
+ // console.log(shape);
15
+ const c0 = [shape.x, shape.y];
16
+ const c1 = [shape.x - offsetX, shape.y - offsetY];
17
+ const c2 = [xAxisPoint[0] - offsetX, xAxisPoint[1] - offsetY];
18
+ const c3 = [xAxisPoint[0], xAxisPoint[1]];
19
+ ctx.moveTo(c0[0], c0[1]).lineTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).closePath();
20
+ },
21
+ });
22
+ // 绘制右侧面
23
+ const CubeRight = echarts.graphic.extendShape({
24
+ shape: {
25
+ x: 0,
26
+ y: 0,
27
+ },
28
+ buildPath: function (ctx, shape) {
29
+ const xAxisPoint = shape.xAxisPoint;
30
+ const c1 = [shape.x, shape.y];
31
+ const c2 = [xAxisPoint[0], xAxisPoint[1]];
32
+ const c3 = [xAxisPoint[0] + offsetX, xAxisPoint[1] - offsetY];
33
+ const c4 = [shape.x + offsetX, shape.y - offsetY];
34
+ ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath();
35
+ },
36
+ });
37
+ // 绘制顶面
38
+ const CubeTop = echarts.graphic.extendShape({
39
+ shape: {
40
+ x: 0,
41
+ y: 0,
42
+ },
43
+ buildPath: function (ctx, shape) {
44
+ const c1 = [shape.x, shape.y];
45
+ const c2 = [shape.x + offsetX, shape.y - offsetY]; //右点
46
+ const c3 = [shape.x, shape.y - offsetX];
47
+ const c4 = [shape.x - offsetX, shape.y - offsetY];
48
+ ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath();
49
+ },
50
+ });
51
+ return {
52
+ CubeLeft,
53
+ CubeRight,
54
+ CubeTop
55
+ }
56
+ }
57
+ // 线性渐变
58
+ export function graphicLinearGradient(nr, nb, nl, nt, colors) {
59
+ return new echarts.graphic.LinearGradient(nr, nb, nl, nt, colors);
60
+ }
61
+ export function setSeriesRenderGroup(appearance, api) {
62
+ const seriesRenderData = [];
63
+ const groupTypeData = ['CubeLeft', 'CubeRight', 'CubeTop'];
64
+ const location = api.coord([api.value(0), api.value(1)]);
65
+ for (let i = 0; i < groupTypeData.length; i++) {
66
+ const groupItem = groupTypeData[i];
67
+ const groupNode = {
68
+ type: groupItem,
69
+ shape: {
70
+ api,
71
+ xValue: api.value(0),
72
+ yValue: api.value(1),
73
+ x: location[0],
74
+ y: location[1],
75
+ xAxisPoint: api.coord([api.value(0), 0]),
76
+ }
77
+ };
78
+ if(i === groupTypeData.length - 1){
79
+ // 顶部切面颜色填充
80
+ groupNode.style = {
81
+ fill: appearance.seriesCubeTopColor
82
+ }
83
+ }else {
84
+ // 左右切面颜色填充
85
+ let fillColor = graphicLinearGradient(0, 0, 0, 1, appearance[`series${groupItem}Gradient`]);
86
+ const cubeColorLinear = appearance[`series${groupItem}Linear`];
87
+ if(!cubeColorLinear) {
88
+ fillColor = appearance[`series${groupItem}Color`];
89
+ }
90
+ groupNode.style = {
91
+ fill: fillColor
92
+ }
93
+ }
94
+ seriesRenderData.push(groupNode);
95
+ }
96
+ return seriesRenderData;
97
+ }
@@ -1,5 +1,5 @@
1
- export * from './conversion';
2
- export * from './drawGraphic';
3
- export * from './changeOptions';
4
- export * from './formatter';
5
- export * from './surfaceParametricConversion';
1
+ export * from './conversion';
2
+ export * from './drawGraphic';
3
+ export * from './changeOptions';
4
+ export * from './formatter';
5
+ export * from './surfaceParametricConversion';
@@ -1,5 +1,5 @@
1
- export * from './conversion';
2
- export * from './drawGraphic';
3
- export * from './changeOptions';
4
- export * from './formatter';
5
- export * from './surfaceParametricConversion';
1
+ export * from './conversion';
2
+ export * from './drawGraphic';
3
+ export * from './changeOptions';
4
+ export * from './formatter';
5
+ export * from './surfaceParametricConversion';
@@ -64,6 +64,10 @@ export function lineBarDataAuto(option, params, data, appearance) {
64
64
  }
65
65
  if(option.legend && legendChange) option.legend.data = legendData; // 为角标数据赋值
66
66
  option.series = seriesData;
67
+ if(appearance.type === '3dBar'){
68
+ seriesNodes[1].data = [...seriesData[0].data];
69
+ option.series.push(seriesNodes[1]);
70
+ }
67
71
  }
68
72
 
69
73
  export function barPileStaticDataAuto(option, data, appearance) {
package/core/index.js CHANGED
@@ -7,22 +7,4 @@ export * from './src/models';
7
7
  export * from './src/middles';
8
8
  export * from './src/healps';
9
9
  export * from './src/store';
10
- export * from './src/element';
11
- //# sourceMappingURL=index.js.map
12
- import axios from 'axios'
13
- if(axios.defaults.headers.common) axios.defaults.headers.common['Authorization'] = getToken();
14
-
15
- function getToken(){
16
- if(process.browser){
17
- var strcookie = document.cookie;//获取cookie字符串
18
- var arrcookie = strcookie.split("; ");//分割
19
- //遍历匹配
20
- for ( var i = 0; i < arrcookie.length; i++) {
21
- var arr = arrcookie[i].split("=");
22
- if (arr[0] == "token"){
23
- return arr[1];
24
- }
25
- }
26
- }
27
- return "";
28
- }
10
+ export * from './src/element';
@@ -1,8 +1,8 @@
1
1
  var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
@@ -219,16 +219,16 @@ var ActiveLayer = /** @class */ (function (_super) {
219
219
  default:
220
220
  if (!item.onlySizeX) {
221
221
 
222
- var sizeX = (this.nodeRects[i].width + offsetX)/item.rect.width;
222
+ var sizeX = (this.nodeRects[i].width + offsetX) / item.rect.width;
223
223
 
224
224
  var nodeRectsCircles = this.nodeRects[i].circles;
225
225
 
226
- item.rect.width = this.nodeRects[i].width + offsetX;
226
+ item.rect.width = this.nodeRects[i].width + offsetX;
227
227
 
228
228
  }
229
229
  if (!item.onlySizeY) {
230
230
 
231
- var sizeY = (this.nodeRects[i].height + offsetY)/item.rect.height;
231
+ var sizeY = (this.nodeRects[i].height + offsetY) / item.rect.height;
232
232
 
233
233
  item.rect.height = this.nodeRects[i].height + offsetY;
234
234
 
@@ -484,7 +484,7 @@ var ActiveLayer = /** @class */ (function (_super) {
484
484
  };
485
485
  ActiveLayer.prototype.render = function (ctx) {
486
486
  var _this = this;
487
- if(!commonStore || !commonStore[_this.TID]) return;
487
+ if (!commonStore || !commonStore[_this.TID]) return;
488
488
  var globalStore = commonStore[_this.TID];
489
489
  if (globalStore.data.locked > Lock.Readonly) {
490
490
  return;
@@ -512,12 +512,12 @@ var ActiveLayer = /** @class */ (function (_super) {
512
512
  var tmp = new Node(item, true);
513
513
  tmp.setTID(TID);
514
514
  tmp.data = null;
515
- tmp.fillStyle = null;
515
+ tmp.fillStyle = item.focusFillStyle ? item.focusFillStyle : null; //获取聚焦背景色
516
516
  tmp.bkType = 0;
517
517
  tmp.icon = '';
518
518
  tmp.image = '';
519
- tmp.text = '';
520
- if(window.location.pathname.includes('workspace')){
519
+ tmp.text = item.text;
520
+ if (window.location.pathname.includes('workspace')) {
521
521
  if (tmp.strokeStyle !== 'transparent') {
522
522
  tmp.strokeStyle = '#ffffff';
523
523
  tmp.lineWidth += 2;
@@ -614,18 +614,18 @@ var ActiveLayer = /** @class */ (function (_super) {
614
614
  this.dockWatchers = this.rect.toPoints();
615
615
  this.dockWatchers.unshift(this.rect.center);
616
616
  };
617
- ActiveLayer.prototype.handleArbitrayGraphSize = function (type,item, offsetX, offsetY, l, sizeX, sizeY, nodeRectsCircles) {
618
- if(item.name !== 'arbitraryGraph') return
617
+ ActiveLayer.prototype.handleArbitrayGraphSize = function (type, item, offsetX, offsetY, l, sizeX, sizeY, nodeRectsCircles) {
618
+ if (item.name !== 'arbitraryGraph') return
619
619
 
620
620
  switch (type) {
621
621
 
622
622
  case 0:
623
623
 
624
- for(let c=0, length = item.rect.circles.length; c<length; c++ ) {
624
+ for (let c = 0, length = item.rect.circles.length; c < length; c++) {
625
625
 
626
- item.rect.circles[c].x=item.rect.circles[c].x*sizeX+item.rect.ex*(1-sizeX);
626
+ item.rect.circles[c].x = item.rect.circles[c].x * sizeX + item.rect.ex * (1 - sizeX);
627
627
 
628
- item.rect.circles[c].y=item.rect.circles[c].y*sizeY+item.rect.ey*(1-sizeY);
628
+ item.rect.circles[c].y = item.rect.circles[c].y * sizeY + item.rect.ey * (1 - sizeY);
629
629
 
630
630
  }
631
631
 
@@ -633,11 +633,11 @@ var ActiveLayer = /** @class */ (function (_super) {
633
633
 
634
634
  case 1:
635
635
 
636
- for(let c=0, length = item.rect.circles.length; c<length; c++ ) {
636
+ for (let c = 0, length = item.rect.circles.length; c < length; c++) {
637
637
 
638
- item.rect.circles[c].x=item.rect.circles[c].x*sizeX+item.rect.x*(1-sizeX);
638
+ item.rect.circles[c].x = item.rect.circles[c].x * sizeX + item.rect.x * (1 - sizeX);
639
639
 
640
- item.rect.circles[c].y=item.rect.circles[c].y*sizeY+item.rect.ey*(1-sizeY);
640
+ item.rect.circles[c].y = item.rect.circles[c].y * sizeY + item.rect.ey * (1 - sizeY);
641
641
 
642
642
  }
643
643
 
@@ -645,11 +645,11 @@ var ActiveLayer = /** @class */ (function (_super) {
645
645
 
646
646
  case 2:
647
647
 
648
- for(let c=0, length = item.rect.circles.length; c<length; c++ ) {
648
+ for (let c = 0, length = item.rect.circles.length; c < length; c++) {
649
649
 
650
- item.rect.circles[c].x=item.rect.circles[c].x*sizeX+item.rect.x*(1-sizeX);
650
+ item.rect.circles[c].x = item.rect.circles[c].x * sizeX + item.rect.x * (1 - sizeX);
651
651
 
652
- item.rect.circles[c].y=item.rect.circles[c].y*sizeY+item.rect.y*(1-sizeY);
652
+ item.rect.circles[c].y = item.rect.circles[c].y * sizeY + item.rect.y * (1 - sizeY);
653
653
 
654
654
  }
655
655
 
@@ -657,11 +657,11 @@ var ActiveLayer = /** @class */ (function (_super) {
657
657
 
658
658
  case 3:
659
659
 
660
- for(let c=0, length = item.rect.circles.length; c<length; c++ ) {
660
+ for (let c = 0, length = item.rect.circles.length; c < length; c++) {
661
661
 
662
- item.rect.circles[c].x=item.rect.circles[c].x*sizeX+item.rect.ex*(1-sizeX);
662
+ item.rect.circles[c].x = item.rect.circles[c].x * sizeX + item.rect.ex * (1 - sizeX);
663
663
 
664
- item.rect.circles[c].y=item.rect.circles[c].y*sizeY+item.rect.y*(1-sizeY);
664
+ item.rect.circles[c].y = item.rect.circles[c].y * sizeY + item.rect.y * (1 - sizeY);
665
665
 
666
666
  }
667
667
 
@@ -68,25 +68,35 @@ var Calling = (function () {
68
68
  this.store.data.scale = data.scale || 1;
69
69
  this.store.data.pens = [];
70
70
  // for old data.
71
- if (data.nodes) {
72
- for (var _i = 0, _a = data.nodes; _i < _a.length; _i++) {
73
- var item = _a[_i];
74
- item.TID = this.id;
75
- item.rect.x = 0;
76
- item.rect.y = 0;
77
- this.store.data.pens.push(new Node(item));
78
- }
79
- for (var _b = 0, _c = data.lines; _b < _c.length; _b++) {
80
- var item = _c[_b];
81
- item.TID = this.id;
82
- this.store.data.pens.push(new Line(item));
83
- }
84
- }
71
+ // if (data.nodes) {
72
+ // for (var _i = 0, _a = data.nodes; _i < _a.length; _i++) {
73
+ // var item = _a[_i];
74
+ // item.TID = this.id;
75
+ // item.rect.x = 0;
76
+ // item.rect.y = 0;
77
+ // this.store.data.pens.push(new Node(item));
78
+ // }
79
+ // for (var _b = 0, _c = data.lines; _b < _c.length; _b++) {
80
+ // var item = _c[_b];
81
+ // item.TID = this.id;
82
+ // this.store.data.pens.push(new Line(item));
83
+ // }
84
+ // }
85
85
  // end.
86
86
  if (data.pens) {
87
87
  for (var _d = 0, _e = data.pens; _d < _e.length; _d++) {
88
88
  var item = _e[_d];
89
89
  item.TID = this.id;
90
+ if(!this.store.options.isFitview) {
91
+ if(item.rect.x > 0) {
92
+ item.rect.ex -= item.rect.x;
93
+ item.rect.x = 0;
94
+ }
95
+ if(item.rect.y > 0) {
96
+ item.rect.ey -= item.rect.y;
97
+ item.rect.y = 0;
98
+ }
99
+ }
90
100
  if (!item.from) {
91
101
  this.store.data.pens.push(new Node(item));
92
102
  } else {
@@ -136,7 +146,7 @@ var Calling = (function () {
136
146
  // < 1, reduce
137
147
  Calling.prototype.scale = function (scale, center, w, h) {
138
148
  if (this.store.data.scale * scale < this.store.options.minScale ||
139
- this.store.data.scale * scale > this.store.options.maxScale) {
149
+ this.store.data.scale * scale > this.store.options.maxScale) {
140
150
  return;
141
151
  }
142
152
  this.store.data.scale *= scale;
@@ -154,25 +164,14 @@ var Calling = (function () {
154
164
  var parentElem = this.store.parentElem;
155
165
  var x = (parentElem.offsetWidth - rect.width) / 2;
156
166
  var y = parentElem.scrollHeight - rect.height;
157
- var w = parentElem.offsetWidth / rect.width;
158
- var h = parentElem.scrollHeight / rect.height;
159
- var ratio = w;
160
- if (w > h) {
161
- ratio = h;
162
- }
167
+ // var w = parentElem.offsetWidth / rect.width;
168
+ // var h = parentElem.scrollHeight / rect.height;
169
+ // var ratio = w;
170
+ // if (w > h) {
171
+ // ratio = h;
172
+ // }
163
173
  this.canvas.canvas.style.transform = `translate(${x}px, ${y}px)`;
164
- for (var _i = 0, _a = this.store.data.pens; _i < _a.length; _i++) {
165
- var item = _a[_i];
166
- if(item.rect.x > 0) {
167
- item.rect.ex = item.rect.ex - item.rect.x;
168
- item.rect.x = 0;
169
- }
170
- if(item.rect.y > 0) {
171
- item.rect.ey = item.rect.ey - item.rect.y;
172
- item.rect.y = 0;
173
- }
174
- }
175
- this.scale(ratio);
174
+ this.scale(1);
176
175
  this.resize({width: rect.width, height: rect.height});
177
176
  };
178
177
  Calling.prototype.centerView = function (padding) {
@@ -51,6 +51,7 @@ export declare class Common {
51
51
  private showTip;
52
52
  private hideTip;
53
53
  inputObj: Pen;
54
+ tabsContentOptions: {};
54
55
  mouseDown: {
55
56
  x: number;
56
57
  y: number;