dcim-topology2d 1.1.6 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. package/activity-diagram/src/final/final.d.ts +1 -1
  2. package/activity-diagram/src/final/final.rect.d.ts +1 -1
  3. package/activity-diagram/src/final/final.rect.js +1 -1
  4. package/activity-diagram/src/fork/fork.anchor.d.ts +1 -1
  5. package/activity-diagram/src/fork/fork.anchor.js +1 -1
  6. package/activity-diagram/src/fork/fork.d.ts +1 -1
  7. package/activity-diagram/src/fork/fork.rect.d.ts +1 -1
  8. package/activity-diagram/src/fork/fork.rect.js +1 -1
  9. package/activity-diagram/src/register.js +1 -1
  10. package/activity-diagram/src/swimlaneH/swimlaneH.d.ts +1 -1
  11. package/activity-diagram/src/swimlaneH/swimlaneH.rect.d.ts +1 -1
  12. package/activity-diagram/src/swimlaneH/swimlaneH.rect.js +1 -1
  13. package/activity-diagram/src/swimlaneV/swimlaneV.d.ts +1 -1
  14. package/activity-diagram/src/swimlaneV/swimlaneV.rect.d.ts +1 -1
  15. package/activity-diagram/src/swimlaneV/swimlaneV.rect.js +1 -1
  16. package/chart-diagram/index.d.ts +0 -2
  17. package/chart-diagram/index.js +0 -1
  18. package/chart-diagram/src/echarts/index.d.ts +2 -1
  19. package/chart-diagram/src/echarts/index.js +104 -106
  20. package/chart-diagram/src/register.js +8 -9
  21. package/class-diagram/src/class/class.d.ts +1 -1
  22. package/class-diagram/src/class/class.rect.d.ts +1 -1
  23. package/class-diagram/src/class/class.rect.js +1 -1
  24. package/class-diagram/src/register.js +1 -1
  25. package/core/index.d.ts +0 -1
  26. package/core/index.js +0 -1
  27. package/core/src/activeLayer.d.ts +10 -2
  28. package/core/src/activeLayer.js +41 -42
  29. package/core/src/animateLayer.d.ts +7 -3
  30. package/core/src/animateLayer.js +12 -10
  31. package/core/src/calling.d.ts +4 -1
  32. package/core/src/calling.js +41 -43
  33. package/core/src/canvas.d.ts +6 -1
  34. package/core/src/canvas.js +18 -17
  35. package/core/src/common.d.ts +5 -5
  36. package/core/src/common.js +202 -172
  37. package/core/src/core.d.ts +4 -3
  38. package/core/src/core.js +321 -339
  39. package/core/src/divLayer.d.ts +33 -2
  40. package/core/src/divLayer.js +292 -41
  41. package/core/src/healps/changeData.d.ts +1 -1
  42. package/core/src/healps/changeData.js +44 -102
  43. package/core/src/hoverLayer.d.ts +9 -2
  44. package/core/src/hoverLayer.js +34 -31
  45. package/core/src/middles/default.d.ts +3 -1
  46. package/core/src/middles/default.js +51 -51
  47. package/core/src/middles/index.js +2 -3
  48. package/core/src/middles/nodes/pentagon.rect.js +1 -1
  49. package/core/src/middles/nodes/rectangle.rect.js +1 -1
  50. package/core/src/models/data.d.ts +26 -0
  51. package/core/src/models/data.js +77 -0
  52. package/core/src/models/data.js.map +1 -0
  53. package/core/src/models/index.d.ts +1 -0
  54. package/core/src/models/index.js +1 -0
  55. package/core/src/models/node.d.ts +0 -6
  56. package/core/src/models/node.js +16 -29
  57. package/core/src/models/pen.js +7 -16
  58. package/core/src/mqtt.d.ts +14 -0
  59. package/core/src/mqtt.js +82 -0
  60. package/core/src/mqtt.js.map +1 -0
  61. package/core/src/offscreen.d.ts +4 -1
  62. package/core/src/offscreen.js +8 -10
  63. package/core/src/options.js +0 -1
  64. package/core/src/poll.js +2 -0
  65. package/core/src/preview.d.ts +13 -1
  66. package/core/src/preview.js +34 -56
  67. package/core/src/renderLayer.d.ts +3 -1
  68. package/core/src/renderLayer.js +31 -26
  69. package/core/src/socket.d.ts +10 -0
  70. package/core/src/socket.js +51 -0
  71. package/core/src/socket.js.map +1 -0
  72. package/core/src/utils/canvas.js +1 -1
  73. package/core/src/utils/conversion.d.ts +0 -7
  74. package/core/src/utils/conversion.js +0 -54
  75. package/core/src/utils/dom.d.ts +5 -6
  76. package/core/src/utils/dom.js +46 -82
  77. package/core/src/utils/index.d.ts +0 -1
  78. package/core/src/utils/index.js +0 -1
  79. package/core/src/utils/onmousevent.js +3 -12
  80. package/flow-diagram/src/comment/comment.anchor.d.ts +1 -1
  81. package/flow-diagram/src/comment/comment.anchor.js +1 -1
  82. package/flow-diagram/src/comment/comment.d.ts +1 -1
  83. package/flow-diagram/src/data/data.anchor.d.ts +1 -1
  84. package/flow-diagram/src/data/data.anchor.js +1 -1
  85. package/flow-diagram/src/data/data.d.ts +1 -1
  86. package/flow-diagram/src/data/data.rect.d.ts +1 -1
  87. package/flow-diagram/src/data/data.rect.js +1 -1
  88. package/flow-diagram/src/db/db.d.ts +1 -1
  89. package/flow-diagram/src/db/db.rect.d.ts +1 -1
  90. package/flow-diagram/src/db/db.rect.js +1 -1
  91. package/flow-diagram/src/display/display.anchor.d.ts +1 -1
  92. package/flow-diagram/src/display/display.anchor.js +1 -1
  93. package/flow-diagram/src/display/display.d.ts +1 -1
  94. package/flow-diagram/src/display/display.rect.d.ts +1 -1
  95. package/flow-diagram/src/display/display.rect.js +1 -1
  96. package/flow-diagram/src/document/document.anchor.d.ts +1 -1
  97. package/flow-diagram/src/document/document.anchor.js +1 -1
  98. package/flow-diagram/src/document/document.d.ts +1 -1
  99. package/flow-diagram/src/document/document.rect.d.ts +1 -1
  100. package/flow-diagram/src/document/document.rect.js +1 -1
  101. package/flow-diagram/src/externStorage/externStorage.anchor.d.ts +1 -1
  102. package/flow-diagram/src/externStorage/externStorage.anchor.js +1 -1
  103. package/flow-diagram/src/externStorage/externStorage.d.ts +1 -1
  104. package/flow-diagram/src/externStorage/externStorage.rect.d.ts +1 -1
  105. package/flow-diagram/src/externStorage/externStorage.rect.js +1 -1
  106. package/flow-diagram/src/internalStorage/internalStorage.d.ts +1 -1
  107. package/flow-diagram/src/internalStorage/internalStorage.rect.d.ts +1 -1
  108. package/flow-diagram/src/internalStorage/internalStorage.rect.js +1 -1
  109. package/flow-diagram/src/manually/manually.anchor.d.ts +1 -1
  110. package/flow-diagram/src/manually/manually.anchor.js +1 -1
  111. package/flow-diagram/src/manually/manually.d.ts +1 -1
  112. package/flow-diagram/src/manually/manually.rect.d.ts +1 -1
  113. package/flow-diagram/src/manually/manually.rect.js +1 -1
  114. package/flow-diagram/src/parallel/parallel.anchor.d.ts +1 -1
  115. package/flow-diagram/src/parallel/parallel.anchor.js +1 -1
  116. package/flow-diagram/src/parallel/parallel.d.ts +1 -1
  117. package/flow-diagram/src/queue/queue.d.ts +1 -1
  118. package/flow-diagram/src/queue/queue.rect.d.ts +1 -1
  119. package/flow-diagram/src/queue/queue.rect.js +1 -1
  120. package/flow-diagram/src/register.js +1 -1
  121. package/flow-diagram/src/subprocess/subprocess.d.ts +1 -1
  122. package/flow-diagram/src/subprocess/subprocess.rect.d.ts +1 -1
  123. package/flow-diagram/src/subprocess/subprocess.rect.js +1 -1
  124. package/layout/src/align.d.ts +1 -1
  125. package/layout/src/align.js +1 -1
  126. package/layout/src/layout.d.ts +1 -1
  127. package/layout/src/layout.js +1 -1
  128. package/myShape-diagram/myShape.js +1 -1
  129. package/package.json +1 -1
  130. package/sequence-diagram/src/focus/focus.anchor.d.ts +1 -1
  131. package/sequence-diagram/src/focus/focus.anchor.js +1 -1
  132. package/sequence-diagram/src/focus/focus.d.ts +1 -1
  133. package/sequence-diagram/src/focus/focus.rect.d.ts +1 -1
  134. package/sequence-diagram/src/focus/focus.rect.js +1 -1
  135. package/sequence-diagram/src/lifeline/lifeline.anchor.d.ts +1 -1
  136. package/sequence-diagram/src/lifeline/lifeline.anchor.js +1 -1
  137. package/sequence-diagram/src/lifeline/lifeline.d.ts +1 -1
  138. package/sequence-diagram/src/lifeline/lifeline.rect.d.ts +1 -1
  139. package/sequence-diagram/src/lifeline/lifeline.rect.js +1 -1
  140. package/sequence-diagram/src/register.js +1 -1
  141. package/chart-diagram/src/utils/changeOptions.d.ts +0 -4
  142. package/chart-diagram/src/utils/changeOptions.js +0 -163
  143. package/chart-diagram/src/utils/conversion.d.ts +0 -17
  144. package/chart-diagram/src/utils/conversion.js +0 -179
  145. package/chart-diagram/src/utils/drawGraphic.d.ts +0 -3
  146. package/chart-diagram/src/utils/drawGraphic.js +0 -97
  147. package/chart-diagram/src/utils/index.d.ts +0 -3
  148. package/chart-diagram/src/utils/index.js +0 -3
  149. package/core/src/middles/arrows/index.d.ts +0 -4
  150. package/core/src/middles/arrows/index.js +0 -5
  151. package/core/src/middles/lines/index.d.ts +0 -4
  152. package/core/src/middles/lines/index.js +0 -5
  153. package/core/src/middles/nodes/iframe.d.ts +0 -2
  154. package/core/src/middles/nodes/iframe.js +0 -12
  155. package/core/src/middles/nodes/index.d.ts +0 -46
  156. package/core/src/middles/nodes/index.js +0 -47
  157. package/core/src/store/common.d.ts +0 -9
  158. package/core/src/store/common.js +0 -5
  159. package/core/src/store/data.d.ts +0 -129
  160. package/core/src/store/data.js +0 -86
  161. package/core/src/store/index.d.ts +0 -2
  162. package/core/src/store/index.js +0 -2
  163. package/core/src/utils/assignment.d.ts +0 -3
  164. package/core/src/utils/assignment.js +0 -69
  165. package/static/echartsDefaultData.js +0 -239
  166. package/static/echartsStore.js +0 -14
  167. package/static/index.js +0 -2
  168. package/style/index.css +0 -13
@@ -1,239 +0,0 @@
1
- /**
2
- * echarts图表默认数据组
3
- * @type {{displayMode_1: string}}
4
- */
5
- export const echartsDefaultDataMap = {
6
- displayMode_1: {
7
- legend: null,
8
- XData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
9
- seriesData: [{
10
- type: 'line',
11
- data: [820, 932, 901, 934, 1290, 1330, 1320]
12
- }]
13
- }, // 折线图
14
- displayMode_2: {
15
- legend: null,
16
- XData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
17
- seriesData: [{
18
- name: '',
19
- data: [20, 60, 110, 220, 80, 100, 180]
20
- }]
21
- },// 柱状图
22
- displayMode_3: {
23
- legend: null,
24
- seriesData: [{
25
- value: 10,
26
- name: '机房1'
27
- }, {
28
- value: 30,
29
- name: '机房2'
30
- }, {
31
- value: 50,
32
- name: '机房3'
33
- }, {
34
- value: 20,
35
- name: '机房4'
36
- }, {
37
- value: 60,
38
- name: '机房5'
39
- }, {
40
- value: 15,
41
- name: '机房6'
42
- }, {
43
- value: 18,
44
- name: '机房7'
45
- }, {
46
- value: 26,
47
- name: '机房8'
48
- }]
49
- },// 环形图
50
- displayMode_4: {
51
- legend: null,
52
- total: 100,
53
- XData: ['CA机房', '五层IT', '四层IT', '冷水机组'],
54
- seriesData: [{
55
- data: [5, 20, 50, 80]
56
- }]
57
- },// TOP排行榜
58
- displayMode_5: {
59
- legend: null,
60
- seriesData: [{
61
- name: '一般',
62
- value: 0
63
- }, {
64
- name: '较大',
65
- value: 0
66
- }, {
67
- name: '重大',
68
- value: 0
69
- }, {
70
- name: '严重',
71
- value: 0
72
- }, {
73
- name: '高级',
74
- value: 0
75
- }]
76
- },// 饼图
77
- displayMode_6: {
78
- value: 8
79
- },// 仪表盘
80
- displayMode_1_tem_line_1: {
81
- legend: ['温度', '湿度'],
82
- XData: ['00:00','03:00','06:00','09:00','12:00','15:00','18:00','21:00','24:00'],
83
- seriesData: [{
84
- name: '温度',
85
- data: [20,24,20,24,20,24,20,24,20]
86
- },{
87
- name: '湿度',
88
- data: [40,45,40,45,40,45,40,45,40]
89
- }]
90
- }, // 双轴双曲线
91
- displayMode_1_tem_line_2: {
92
- legend: null,
93
- XData: ['00:00','03:00','06:00','09:00','12:00','15:00','18:00','21:00','24:00'],
94
- seriesData: [{
95
- name: '温度',
96
- data: [20,24,20,24,20,24,20,24,20]
97
- }]
98
- }, // 单轴双曲线区域
99
- displayMode_2_tem_3dbar_1: {
100
- legend: null,
101
- XData: ['制冷', '配电制冷', '网络机房制冷', '主机房制冷', '网络机房IT', '主机房IT', 'IT'],
102
- seriesData: [{
103
- name: '',
104
- data: [82, 115, 42, 82, 70, 40, 92]
105
- }]
106
- }, // 3D柱状图模板-3d柱状图1
107
- };
108
- // 图例默认数据
109
- export const echartsLegendDefaultData = {
110
- icon: 'rect', // 图标类型:'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none'
111
- itemWidth: 12, // 图标宽
112
- itemHeight: 12, // 图标高
113
- itemGap: 8, // 图例之间的间隔 number
114
- top: '0%', // 图例距离容器上边位置
115
- right: 'auto', // 图例距离容器右边位置
116
- bottom: 'auto', // 图例距离容器下边位置
117
- left: '60', // 图例距离容器左边位置
118
- padding: [20, 0, 0, 0], // 图例内边距 string
119
- color: '#fff', // 文字颜色
120
- height: 8, // 文本显示高度 number
121
- fontSize: 12 // 文字大小 number
122
- };
123
- // 柱状图和折线图默认标注
124
- export const echartsLineBarDefaultLegendData = {
125
- data: ['标注1'],
126
- icon: 'rich',
127
- show: true,
128
- itemWidth: 14,
129
- itemHeight: 14,
130
- textStyle: {
131
- color: '#C6D1DB',
132
- fontSize: '14px',
133
- },
134
- top: '12%',
135
- left: '10%',
136
- itemGap: 8
137
- };
138
- // 曲线默认配置数据
139
- export const echartsLineSeriesStyleData = {
140
- smooth: false,
141
- symbol: 'none',
142
- symbolSize: 18,
143
- itemLineStyle:{
144
- color: '#2F86ED', //改变折线颜色
145
- type: 'solid',
146
- width: 1
147
- },
148
- area: false, // 是否是区域图
149
- linear: false, // 是否是线性渐变
150
- areaColor: {
151
- type: 'linear',
152
- x: 0,
153
- y: 0,
154
- x2: 0,
155
- y2: 1,
156
- global: false // 缺省为 false
157
- },
158
- areaColorStops:[{
159
- offset: 0,
160
- color: 'rgba(49, 144, 255, 0.21)' // 0% 处的颜色
161
- }, {
162
- offset: 1,
163
- color: 'rgba(49, 144, 255, 0)' // 100% 处的颜色
164
- }]
165
- }
166
- // 图表X轴默认配置数据
167
- export const echartsXAxisDefaultStyleData = {
168
- x1AxisLabel: {
169
- color: '#fff',
170
- fontSize:"12"
171
- }
172
- }
173
- // 图表Y轴默认配置数据
174
- export const echartsYAxisDefaultStyleData = {
175
- ySplitLineShow: true, // y轴轴线是否显示
176
- //坐标轴线样式
177
- ysplitLineLineStyle: {
178
- type: 'solid', //solid实线;dashed虚线
179
- color: 'rgba(148, 147, 197, 0.5)'
180
- },
181
- y1axisLabelTextStyle: {
182
- //坐标轴颜色
183
- color: '#fff',
184
- fontSize:"12",
185
- padding: 5
186
- },
187
- // y轴刻度最大最小值和分隔值
188
- y1MinMaxData: {
189
- min: 0,
190
- max: 60,
191
- interval: 20
192
- },
193
- // y轴名称
194
- y1NameData: {
195
- name: '℃',
196
- nameTextStyle: {
197
- color: '#FDFDFD',
198
- padding: [0, 0, 0, -52],
199
- },
200
- nameGap: 25
201
- },
202
- // y轴刻度标签文字样式
203
- y2axisLabelTextStyle: {
204
- //坐标轴颜色
205
- color: '#fff',
206
- fontSize:"12",
207
- padding: 5
208
- },
209
- y2MinMaxData: {
210
- name: '%',
211
- nameTextStyle: {
212
- color: '#FDFDFD',
213
- padding: [0, -42, 0, 0],
214
- },
215
- nameGap: 25
216
- },
217
- y2NameData: {
218
- min: 0,
219
- max: 90,
220
- interval: 30
221
- }
222
- }
223
- // 图表的数据缩放
224
- export const echartsDataRoom = [{ //给x轴设置滚动条
225
- start: 0, //默认为0
226
- end: 50, //默认为100
227
- type: 'slider',
228
- show: false,
229
- xAxisIndex: [0],
230
- handleSize: 10, //滑动条的 左右2个滑动条的大小
231
- height: 0, //组件高度
232
- }, { //下面这个属性是里面拖到
233
- type: 'inside',
234
- show: true,
235
- xAxisIndex: [0],
236
- start: 0, //默认为1
237
- end: 50 // 100 - 1500 / 31, //默认为100
238
- }];
239
-
@@ -1,14 +0,0 @@
1
- export let echartsDataStore = {};
2
- export let echartsOptionsStore = {};
3
- export const destroyEcharts = function(){
4
- for (let node of Object.values(echartsDataStore)) {
5
- if(node) {
6
- clearInterval(node.timeTicket);
7
- node.chart.off('mouseover');
8
- node.chart.off('mouseout');
9
- node.chart.dispose();
10
- }
11
- }
12
- echartsDataStore = {};
13
- echartsOptionsStore = {};
14
- };
package/static/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './echartsDefaultData';
2
- export * from './echartsStore';
package/style/index.css DELETED
@@ -1,13 +0,0 @@
1
- .canvas-point.pointer{
2
- cursor: pointer;
3
- }
4
- .canvas-point,
5
- .canvas-point.default{
6
- cursor: default;
7
- }
8
- .canvas-point.pointer > div{
9
- z-index: -2;
10
- }
11
- .topology2dConfIfram{
12
-
13
- }