tvision-charts-component 3.3.24

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 (520) hide show
  1. package/README.md +40 -0
  2. package/dist/esm/_type/chart.d.ts +6 -0
  3. package/dist/esm/_type/chart.js +2 -0
  4. package/dist/esm/_type/chart.js.map +1 -0
  5. package/dist/esm/_type/data.d.ts +40 -0
  6. package/dist/esm/_type/data.js +2 -0
  7. package/dist/esm/_type/data.js.map +1 -0
  8. package/dist/esm/_type/index.d.ts +3 -0
  9. package/dist/esm/_type/index.js +4 -0
  10. package/dist/esm/_type/index.js.map +1 -0
  11. package/dist/esm/_type/options.d.ts +83 -0
  12. package/dist/esm/_type/options.js +2 -0
  13. package/dist/esm/_type/options.js.map +1 -0
  14. package/dist/esm/basicBar/README.md +79 -0
  15. package/dist/esm/basicBar/_example/Basic.d.ts +1 -0
  16. package/dist/esm/basicBar/_example/Basic.js +29 -0
  17. package/dist/esm/basicBar/_example/Basic.js.map +1 -0
  18. package/dist/esm/basicBar/_example/Basic.jsx +32 -0
  19. package/dist/esm/basicBar/_example/CustomColorSingleBar.d.ts +1 -0
  20. package/dist/esm/basicBar/_example/CustomColorSingleBar.js +58 -0
  21. package/dist/esm/basicBar/_example/CustomColorSingleBar.js.map +1 -0
  22. package/dist/esm/basicBar/_example/CustomColorSingleBar.jsx +66 -0
  23. package/dist/esm/basicBar/_example/FixedWidthBar.d.ts +1 -0
  24. package/dist/esm/basicBar/_example/FixedWidthBar.js +57 -0
  25. package/dist/esm/basicBar/_example/FixedWidthBar.js.map +1 -0
  26. package/dist/esm/basicBar/_example/FixedWidthBar.jsx +92 -0
  27. package/dist/esm/basicBar/_example/GroupedBar.d.ts +1 -0
  28. package/dist/esm/basicBar/_example/GroupedBar.js +35 -0
  29. package/dist/esm/basicBar/_example/GroupedBar.js.map +1 -0
  30. package/dist/esm/basicBar/_example/GroupedBar.jsx +37 -0
  31. package/dist/esm/basicBar/_example/HorizontalBar.d.ts +1 -0
  32. package/dist/esm/basicBar/_example/HorizontalBar.js +92 -0
  33. package/dist/esm/basicBar/_example/HorizontalBar.js.map +1 -0
  34. package/dist/esm/basicBar/_example/HorizontalBar.jsx +95 -0
  35. package/dist/esm/basicBar/_example/HorizontalStackedBar.d.ts +1 -0
  36. package/dist/esm/basicBar/_example/HorizontalStackedBar.js +97 -0
  37. package/dist/esm/basicBar/_example/HorizontalStackedBar.js.map +1 -0
  38. package/dist/esm/basicBar/_example/HorizontalStackedBar.jsx +100 -0
  39. package/dist/esm/basicBar/_example/LabelRotate.d.ts +1 -0
  40. package/dist/esm/basicBar/_example/LabelRotate.js +20 -0
  41. package/dist/esm/basicBar/_example/LabelRotate.js.map +1 -0
  42. package/dist/esm/basicBar/_example/LabelRotate.jsx +24 -0
  43. package/dist/esm/basicBar/_example/StackedBar.d.ts +1 -0
  44. package/dist/esm/basicBar/_example/StackedBar.js +44 -0
  45. package/dist/esm/basicBar/_example/StackedBar.js.map +1 -0
  46. package/dist/esm/basicBar/_example/StackedBar.jsx +46 -0
  47. package/dist/esm/basicBar/_example/VerticalWaterfallBar.d.ts +1 -0
  48. package/dist/esm/basicBar/_example/VerticalWaterfallBar.js +100 -0
  49. package/dist/esm/basicBar/_example/VerticalWaterfallBar.js.map +1 -0
  50. package/dist/esm/basicBar/_example/VerticalWaterfallBar.jsx +117 -0
  51. package/dist/esm/basicBar/_example/WaterfallHoverBar.d.ts +1 -0
  52. package/dist/esm/basicBar/_example/WaterfallHoverBar.js +134 -0
  53. package/dist/esm/basicBar/_example/WaterfallHoverBar.js.map +1 -0
  54. package/dist/esm/basicBar/_example/WaterfallHoverBar.jsx +152 -0
  55. package/dist/esm/basicBar/_example/WaterfallZebraBar.d.ts +1 -0
  56. package/dist/esm/basicBar/_example/WaterfallZebraBar.js +122 -0
  57. package/dist/esm/basicBar/_example/WaterfallZebraBar.js.map +1 -0
  58. package/dist/esm/basicBar/_example/WaterfallZebraBar.jsx +137 -0
  59. package/dist/esm/basicBar/_example/XaxisBelowWaterfall.d.ts +1 -0
  60. package/dist/esm/basicBar/_example/XaxisBelowWaterfall.js +93 -0
  61. package/dist/esm/basicBar/_example/XaxisBelowWaterfall.js.map +1 -0
  62. package/dist/esm/basicBar/_example/XaxisBelowWaterfall.jsx +101 -0
  63. package/dist/esm/basicBar/_example/XaxisHideBar.d.ts +1 -0
  64. package/dist/esm/basicBar/_example/XaxisHideBar.js +54 -0
  65. package/dist/esm/basicBar/_example/XaxisHideBar.js.map +1 -0
  66. package/dist/esm/basicBar/_example/XaxisHideBar.jsx +59 -0
  67. package/dist/esm/basicBar/_example/XaxisLabelWrap.d.ts +1 -0
  68. package/dist/esm/basicBar/_example/XaxisLabelWrap.js +66 -0
  69. package/dist/esm/basicBar/_example/XaxisLabelWrap.js.map +1 -0
  70. package/dist/esm/basicBar/_example/XaxisLabelWrap.jsx +70 -0
  71. package/dist/esm/basicBar/_example/XaxisTopWaterfall.d.ts +1 -0
  72. package/dist/esm/basicBar/_example/XaxisTopWaterfall.js +94 -0
  73. package/dist/esm/basicBar/_example/XaxisTopWaterfall.js.map +1 -0
  74. package/dist/esm/basicBar/_example/XaxisTopWaterfall.jsx +102 -0
  75. package/dist/esm/basicBar/_example/XaxisTopWaterfallWithLabel.d.ts +1 -0
  76. package/dist/esm/basicBar/_example/XaxisTopWaterfallWithLabel.js +104 -0
  77. package/dist/esm/basicBar/_example/XaxisTopWaterfallWithLabel.js.map +1 -0
  78. package/dist/esm/basicBar/_example/XaxisTopWaterfallWithLabel.jsx +112 -0
  79. package/dist/esm/basicBar/_example/YaxisNegativeBasicBar.d.ts +1 -0
  80. package/dist/esm/basicBar/_example/YaxisNegativeBasicBar.js +28 -0
  81. package/dist/esm/basicBar/_example/YaxisNegativeBasicBar.js.map +1 -0
  82. package/dist/esm/basicBar/_example/YaxisNegativeBasicBar.jsx +31 -0
  83. package/dist/esm/basicBar/_example/YaxisReverseZoomBar.d.ts +1 -0
  84. package/dist/esm/basicBar/_example/YaxisReverseZoomBar.js +117 -0
  85. package/dist/esm/basicBar/_example/YaxisReverseZoomBar.js.map +1 -0
  86. package/dist/esm/basicBar/_example/YaxisReverseZoomBar.jsx +135 -0
  87. package/dist/esm/basicBar/demo/basic.md +34 -0
  88. package/dist/esm/basicBar/demo/labelRotate.md +35 -0
  89. package/dist/esm/basicBar/index.d.ts +56 -0
  90. package/dist/esm/basicBar/index.js +42 -0
  91. package/dist/esm/basicBar/index.js.map +1 -0
  92. package/dist/esm/basicBar/index.md +30 -0
  93. package/dist/esm/basicBar/style/index.less +0 -0
  94. package/dist/esm/basicFlame/README.md +56 -0
  95. package/dist/esm/basicFlame/_example/BackgroundBasic.d.ts +1 -0
  96. package/dist/esm/basicFlame/_example/BackgroundBasic.js +52 -0
  97. package/dist/esm/basicFlame/_example/BackgroundBasic.js.map +1 -0
  98. package/dist/esm/basicFlame/_example/BackgroundBasic.jsx +57 -0
  99. package/dist/esm/basicFlame/_example/Basic.d.ts +1 -0
  100. package/dist/esm/basicFlame/_example/Basic.js +49 -0
  101. package/dist/esm/basicFlame/_example/Basic.js.map +1 -0
  102. package/dist/esm/basicFlame/_example/Basic.jsx +52 -0
  103. package/dist/esm/basicFlame/_example/ColorsBasic.d.ts +1 -0
  104. package/dist/esm/basicFlame/_example/ColorsBasic.js +50 -0
  105. package/dist/esm/basicFlame/_example/ColorsBasic.js.map +1 -0
  106. package/dist/esm/basicFlame/_example/ColorsBasic.jsx +53 -0
  107. package/dist/esm/basicFlame/_example/FillBasic.d.ts +1 -0
  108. package/dist/esm/basicFlame/_example/FillBasic.js +53 -0
  109. package/dist/esm/basicFlame/_example/FillBasic.js.map +1 -0
  110. package/dist/esm/basicFlame/_example/FillBasic.jsx +56 -0
  111. package/dist/esm/basicFlame/_example/HeightBasic.d.ts +1 -0
  112. package/dist/esm/basicFlame/_example/HeightBasic.js +49 -0
  113. package/dist/esm/basicFlame/_example/HeightBasic.js.map +1 -0
  114. package/dist/esm/basicFlame/_example/HeightBasic.jsx +52 -0
  115. package/dist/esm/basicFlame/_example/HueBasic.d.ts +1 -0
  116. package/dist/esm/basicFlame/_example/HueBasic.js +50 -0
  117. package/dist/esm/basicFlame/_example/HueBasic.js.map +1 -0
  118. package/dist/esm/basicFlame/_example/HueBasic.jsx +53 -0
  119. package/dist/esm/basicFlame/_example/LabelBasic.d.ts +1 -0
  120. package/dist/esm/basicFlame/_example/LabelBasic.js +53 -0
  121. package/dist/esm/basicFlame/_example/LabelBasic.js.map +1 -0
  122. package/dist/esm/basicFlame/_example/LabelBasic.jsx +56 -0
  123. package/dist/esm/basicFlame/_example/LargeBasic1.d.ts +1 -0
  124. package/dist/esm/basicFlame/_example/LargeBasic1.js +3895 -0
  125. package/dist/esm/basicFlame/_example/LargeBasic1.js.map +1 -0
  126. package/dist/esm/basicFlame/_example/LargeBasic1.jsx +3899 -0
  127. package/dist/esm/basicFlame/_example/LargeBasic2.d.ts +1 -0
  128. package/dist/esm/basicFlame/_example/LargeBasic2.js +10511 -0
  129. package/dist/esm/basicFlame/_example/LargeBasic2.js.map +1 -0
  130. package/dist/esm/basicFlame/_example/LargeBasic2.jsx +10515 -0
  131. package/dist/esm/basicFlame/_example/ResetBasic.d.ts +1 -0
  132. package/dist/esm/basicFlame/_example/ResetBasic.js +59 -0
  133. package/dist/esm/basicFlame/_example/ResetBasic.js.map +1 -0
  134. package/dist/esm/basicFlame/_example/ResetBasic.jsx +62 -0
  135. package/dist/esm/basicFlame/demo/basic.md +55 -0
  136. package/dist/esm/basicFlame/index.d.ts +28 -0
  137. package/dist/esm/basicFlame/index.js +29 -0
  138. package/dist/esm/basicFlame/index.js.map +1 -0
  139. package/dist/esm/basicFlame/index.md +23 -0
  140. package/dist/esm/basicFlame/style/index.less +0 -0
  141. package/dist/esm/basicFunnel/README.md +19 -0
  142. package/dist/esm/basicFunnel/_example/Basic.d.ts +1 -0
  143. package/dist/esm/basicFunnel/_example/Basic.js +70 -0
  144. package/dist/esm/basicFunnel/_example/Basic.js.map +1 -0
  145. package/dist/esm/basicFunnel/_example/Basic.jsx +82 -0
  146. package/dist/esm/basicFunnel/_example/SpaceFunnel.d.ts +1 -0
  147. package/dist/esm/basicFunnel/_example/SpaceFunnel.js +71 -0
  148. package/dist/esm/basicFunnel/_example/SpaceFunnel.js.map +1 -0
  149. package/dist/esm/basicFunnel/_example/SpaceFunnel.jsx +83 -0
  150. package/dist/esm/basicFunnel/demo/basic.md +45 -0
  151. package/dist/esm/basicFunnel/index.d.ts +19 -0
  152. package/dist/esm/basicFunnel/index.js +27 -0
  153. package/dist/esm/basicFunnel/index.js.map +1 -0
  154. package/dist/esm/basicFunnel/index.md +21 -0
  155. package/dist/esm/basicFunnel/style/index.less +0 -0
  156. package/dist/esm/basicGauge/README.md +24 -0
  157. package/dist/esm/basicGauge/_example/Basic.d.ts +1 -0
  158. package/dist/esm/basicGauge/_example/Basic.js +31 -0
  159. package/dist/esm/basicGauge/_example/Basic.js.map +1 -0
  160. package/dist/esm/basicGauge/_example/Basic.jsx +34 -0
  161. package/dist/esm/basicGauge/_example/ScaleGauge.d.ts +1 -0
  162. package/dist/esm/basicGauge/_example/ScaleGauge.js +31 -0
  163. package/dist/esm/basicGauge/_example/ScaleGauge.js.map +1 -0
  164. package/dist/esm/basicGauge/_example/ScaleGauge.jsx +34 -0
  165. package/dist/esm/basicGauge/_example/ThresholdGauge.d.ts +1 -0
  166. package/dist/esm/basicGauge/_example/ThresholdGauge.js +31 -0
  167. package/dist/esm/basicGauge/_example/ThresholdGauge.js.map +1 -0
  168. package/dist/esm/basicGauge/_example/ThresholdGauge.jsx +34 -0
  169. package/dist/esm/basicGauge/index.d.ts +23 -0
  170. package/dist/esm/basicGauge/index.js +26 -0
  171. package/dist/esm/basicGauge/index.js.map +1 -0
  172. package/dist/esm/basicHBar/README.md +15 -0
  173. package/dist/esm/basicHBar/_example/Basic.d.ts +1 -0
  174. package/dist/esm/basicHBar/_example/Basic.js +49 -0
  175. package/dist/esm/basicHBar/_example/Basic.js.map +1 -0
  176. package/dist/esm/basicHBar/_example/Basic.jsx +56 -0
  177. package/dist/esm/basicHBar/_example/DiskBasic.d.ts +1 -0
  178. package/dist/esm/basicHBar/_example/DiskBasic.js +43 -0
  179. package/dist/esm/basicHBar/_example/DiskBasic.js.map +1 -0
  180. package/dist/esm/basicHBar/_example/DiskBasic.jsx +46 -0
  181. package/dist/esm/basicHBar/_example/LabelRotate.d.ts +1 -0
  182. package/dist/esm/basicHBar/_example/LabelRotate.js +20 -0
  183. package/dist/esm/basicHBar/_example/LabelRotate.js.map +1 -0
  184. package/dist/esm/basicHBar/_example/LabelRotate.jsx +26 -0
  185. package/dist/esm/basicHBar/demo/basic.md +48 -0
  186. package/dist/esm/basicHBar/demo/labelRotate.md +35 -0
  187. package/dist/esm/basicHBar/index.d.ts +19 -0
  188. package/dist/esm/basicHBar/index.js +28 -0
  189. package/dist/esm/basicHBar/index.js.map +1 -0
  190. package/dist/esm/basicHBar/index.md +31 -0
  191. package/dist/esm/basicHBar/style/index.less +0 -0
  192. package/dist/esm/basicHeatMap/README.md +19 -0
  193. package/dist/esm/basicHeatMap/_example/Basic.d.ts +1 -0
  194. package/dist/esm/basicHeatMap/_example/Basic.js +383 -0
  195. package/dist/esm/basicHeatMap/_example/Basic.js.map +1 -0
  196. package/dist/esm/basicHeatMap/_example/Basic.jsx +386 -0
  197. package/dist/esm/basicHeatMap/_example/CustomRoundHeatMap.d.ts +1 -0
  198. package/dist/esm/basicHeatMap/_example/CustomRoundHeatMap.js +1333 -0
  199. package/dist/esm/basicHeatMap/_example/CustomRoundHeatMap.js.map +1 -0
  200. package/dist/esm/basicHeatMap/_example/CustomRoundHeatMap.jsx +1337 -0
  201. package/dist/esm/basicHeatMap/index.d.ts +52 -0
  202. package/dist/esm/basicHeatMap/index.js +26 -0
  203. package/dist/esm/basicHeatMap/index.js.map +1 -0
  204. package/dist/esm/basicLine/README.md +115 -0
  205. package/dist/esm/basicLine/_example/AreaLine.d.ts +1 -0
  206. package/dist/esm/basicLine/_example/AreaLine.js +38 -0
  207. package/dist/esm/basicLine/_example/AreaLine.js.map +1 -0
  208. package/dist/esm/basicLine/_example/AreaLine.jsx +41 -0
  209. package/dist/esm/basicLine/_example/AuxiliaryHLine.d.ts +1 -0
  210. package/dist/esm/basicLine/_example/AuxiliaryHLine.js +71 -0
  211. package/dist/esm/basicLine/_example/AuxiliaryHLine.js.map +1 -0
  212. package/dist/esm/basicLine/_example/AuxiliaryHLine.jsx +74 -0
  213. package/dist/esm/basicLine/_example/AuxiliaryLine.d.ts +1 -0
  214. package/dist/esm/basicLine/_example/AuxiliaryLine.js +53 -0
  215. package/dist/esm/basicLine/_example/AuxiliaryLine.js.map +1 -0
  216. package/dist/esm/basicLine/_example/AuxiliaryLine.jsx +58 -0
  217. package/dist/esm/basicLine/_example/AuxiliaryVLine.d.ts +1 -0
  218. package/dist/esm/basicLine/_example/AuxiliaryVLine.js +71 -0
  219. package/dist/esm/basicLine/_example/AuxiliaryVLine.js.map +1 -0
  220. package/dist/esm/basicLine/_example/AuxiliaryVLine.jsx +75 -0
  221. package/dist/esm/basicLine/_example/AxisFormatter.d.ts +1 -0
  222. package/dist/esm/basicLine/_example/AxisFormatter.js +95 -0
  223. package/dist/esm/basicLine/_example/AxisFormatter.js.map +1 -0
  224. package/dist/esm/basicLine/_example/AxisFormatter.jsx +108 -0
  225. package/dist/esm/basicLine/_example/BarLine.d.ts +1 -0
  226. package/dist/esm/basicLine/_example/BarLine.js +91 -0
  227. package/dist/esm/basicLine/_example/BarLine.js.map +1 -0
  228. package/dist/esm/basicLine/_example/BarLine.jsx +94 -0
  229. package/dist/esm/basicLine/_example/Basic.d.ts +1 -0
  230. package/dist/esm/basicLine/_example/Basic.js +26 -0
  231. package/dist/esm/basicLine/_example/Basic.js.map +1 -0
  232. package/dist/esm/basicLine/_example/Basic.jsx +29 -0
  233. package/dist/esm/basicLine/_example/CustomColorLine.d.ts +1 -0
  234. package/dist/esm/basicLine/_example/CustomColorLine.js +135 -0
  235. package/dist/esm/basicLine/_example/CustomColorLine.js.map +1 -0
  236. package/dist/esm/basicLine/_example/CustomColorLine.jsx +148 -0
  237. package/dist/esm/basicLine/_example/DataZoomLine.d.ts +1 -0
  238. package/dist/esm/basicLine/_example/DataZoomLine.js +1332 -0
  239. package/dist/esm/basicLine/_example/DataZoomLine.js.map +1 -0
  240. package/dist/esm/basicLine/_example/DataZoomLine.jsx +1344 -0
  241. package/dist/esm/basicLine/_example/DottedLine.d.ts +1 -0
  242. package/dist/esm/basicLine/_example/DottedLine.js +105 -0
  243. package/dist/esm/basicLine/_example/DottedLine.js.map +1 -0
  244. package/dist/esm/basicLine/_example/DottedLine.jsx +118 -0
  245. package/dist/esm/basicLine/_example/DualaxisLine.d.ts +1 -0
  246. package/dist/esm/basicLine/_example/DualaxisLine.js +91 -0
  247. package/dist/esm/basicLine/_example/DualaxisLine.js.map +1 -0
  248. package/dist/esm/basicLine/_example/DualaxisLine.jsx +94 -0
  249. package/dist/esm/basicLine/_example/LabelLine.d.ts +1 -0
  250. package/dist/esm/basicLine/_example/LabelLine.js +83 -0
  251. package/dist/esm/basicLine/_example/LabelLine.js.map +1 -0
  252. package/dist/esm/basicLine/_example/LabelLine.jsx +96 -0
  253. package/dist/esm/basicLine/_example/LegendLeftLine.d.ts +1 -0
  254. package/dist/esm/basicLine/_example/LegendLeftLine.js +135 -0
  255. package/dist/esm/basicLine/_example/LegendLeftLine.js.map +1 -0
  256. package/dist/esm/basicLine/_example/LegendLeftLine.jsx +138 -0
  257. package/dist/esm/basicLine/_example/LegendSelectedLine.d.ts +1 -0
  258. package/dist/esm/basicLine/_example/LegendSelectedLine.js +53 -0
  259. package/dist/esm/basicLine/_example/LegendSelectedLine.js.map +1 -0
  260. package/dist/esm/basicLine/_example/LegendSelectedLine.jsx +56 -0
  261. package/dist/esm/basicLine/_example/MarkLine.d.ts +1 -0
  262. package/dist/esm/basicLine/_example/MarkLine.js +1345 -0
  263. package/dist/esm/basicLine/_example/MarkLine.js.map +1 -0
  264. package/dist/esm/basicLine/_example/MarkLine.jsx +1356 -0
  265. package/dist/esm/basicLine/_example/ScatterBarLine.d.ts +1 -0
  266. package/dist/esm/basicLine/_example/ScatterBarLine.js +50 -0
  267. package/dist/esm/basicLine/_example/ScatterBarLine.js.map +1 -0
  268. package/dist/esm/basicLine/_example/ScatterBarLine.jsx +53 -0
  269. package/dist/esm/basicLine/_example/ScatterLine.d.ts +1 -0
  270. package/dist/esm/basicLine/_example/ScatterLine.js +117 -0
  271. package/dist/esm/basicLine/_example/ScatterLine.js.map +1 -0
  272. package/dist/esm/basicLine/_example/ScatterLine.jsx +130 -0
  273. package/dist/esm/basicLine/_example/SmoothLine.d.ts +1 -0
  274. package/dist/esm/basicLine/_example/SmoothLine.js +27 -0
  275. package/dist/esm/basicLine/_example/SmoothLine.js.map +1 -0
  276. package/dist/esm/basicLine/_example/SmoothLine.jsx +30 -0
  277. package/dist/esm/basicLine/_example/StackAreaLine.d.ts +1 -0
  278. package/dist/esm/basicLine/_example/StackAreaLine.js +54 -0
  279. package/dist/esm/basicLine/_example/StackAreaLine.js.map +1 -0
  280. package/dist/esm/basicLine/_example/StackAreaLine.jsx +57 -0
  281. package/dist/esm/basicLine/_example/StepLine.d.ts +1 -0
  282. package/dist/esm/basicLine/_example/StepLine.js +57 -0
  283. package/dist/esm/basicLine/_example/StepLine.js.map +1 -0
  284. package/dist/esm/basicLine/_example/StepLine.jsx +61 -0
  285. package/dist/esm/basicLine/_example/StepLineArea.d.ts +1 -0
  286. package/dist/esm/basicLine/_example/StepLineArea.js +58 -0
  287. package/dist/esm/basicLine/_example/StepLineArea.js.map +1 -0
  288. package/dist/esm/basicLine/_example/StepLineArea.jsx +62 -0
  289. package/dist/esm/basicLine/_example/ThresholdLine.d.ts +1 -0
  290. package/dist/esm/basicLine/_example/ThresholdLine.js +37 -0
  291. package/dist/esm/basicLine/_example/ThresholdLine.js.map +1 -0
  292. package/dist/esm/basicLine/_example/ThresholdLine.jsx +40 -0
  293. package/dist/esm/basicLine/_example/XaxisHideLine.d.ts +1 -0
  294. package/dist/esm/basicLine/_example/XaxisHideLine.js +86 -0
  295. package/dist/esm/basicLine/_example/XaxisHideLine.js.map +1 -0
  296. package/dist/esm/basicLine/_example/XaxisHideLine.jsx +99 -0
  297. package/dist/esm/basicLine/_example/YaxisSetMaxMinLine.d.ts +1 -0
  298. package/dist/esm/basicLine/_example/YaxisSetMaxMinLine.js +165 -0
  299. package/dist/esm/basicLine/_example/YaxisSetMaxMinLine.js.map +1 -0
  300. package/dist/esm/basicLine/_example/YaxisSetMaxMinLine.jsx +177 -0
  301. package/dist/esm/basicLine/_example/YaxisTitleLine.d.ts +1 -0
  302. package/dist/esm/basicLine/_example/YaxisTitleLine.js +1349 -0
  303. package/dist/esm/basicLine/_example/YaxisTitleLine.js.map +1 -0
  304. package/dist/esm/basicLine/_example/YaxisTitleLine.jsx +1361 -0
  305. package/dist/esm/basicLine/_example/ZoombarLine.d.ts +1 -0
  306. package/dist/esm/basicLine/_example/ZoombarLine.js +25 -0
  307. package/dist/esm/basicLine/_example/ZoombarLine.js.map +1 -0
  308. package/dist/esm/basicLine/_example/ZoombarLine.jsx +26 -0
  309. package/dist/esm/basicLine/demo/basic.md +35 -0
  310. package/dist/esm/basicLine/demo/labelRotate.md +34 -0
  311. package/dist/esm/basicLine/demo/linex.md +33 -0
  312. package/dist/esm/basicLine/index.d.ts +59 -0
  313. package/dist/esm/basicLine/index.js +122 -0
  314. package/dist/esm/basicLine/index.js.map +1 -0
  315. package/dist/esm/basicLine/index.md +30 -0
  316. package/dist/esm/basicLine/style/index.less +0 -0
  317. package/dist/esm/basicMap/README.md +31 -0
  318. package/dist/esm/basicMap/_example/Basic.d.ts +1 -0
  319. package/dist/esm/basicMap/_example/Basic.js +84 -0
  320. package/dist/esm/basicMap/_example/Basic.js.map +1 -0
  321. package/dist/esm/basicMap/_example/Basic.jsx +88 -0
  322. package/dist/esm/basicMap/_example/ChinaMap.d.ts +1 -0
  323. package/dist/esm/basicMap/_example/ChinaMap.js +78 -0
  324. package/dist/esm/basicMap/_example/ChinaMap.js.map +1 -0
  325. package/dist/esm/basicMap/_example/ChinaMap.jsx +81 -0
  326. package/dist/esm/basicMap/_example/ChinaMapEx.d.ts +1 -0
  327. package/dist/esm/basicMap/_example/ChinaMapEx.js +78 -0
  328. package/dist/esm/basicMap/_example/ChinaMapEx.js.map +1 -0
  329. package/dist/esm/basicMap/_example/ChinaMapEx.jsx +92 -0
  330. package/dist/esm/basicMap/_example/ChinaMapNodeLink.d.ts +1 -0
  331. package/dist/esm/basicMap/_example/ChinaMapNodeLink.js +138 -0
  332. package/dist/esm/basicMap/_example/ChinaMapNodeLink.js.map +1 -0
  333. package/dist/esm/basicMap/_example/ChinaMapNodeLink.jsx +183 -0
  334. package/dist/esm/basicMap/_example/WorldMap.d.ts +1 -0
  335. package/dist/esm/basicMap/_example/WorldMap.js +49 -0
  336. package/dist/esm/basicMap/_example/WorldMap.js.map +1 -0
  337. package/dist/esm/basicMap/_example/WorldMap.jsx +53 -0
  338. package/dist/esm/basicMap/index.d.ts +40 -0
  339. package/dist/esm/basicMap/index.js +19 -0
  340. package/dist/esm/basicMap/index.js.map +1 -0
  341. package/dist/esm/basicPie/README.md +35 -0
  342. package/dist/esm/basicPie/_example/Basic.d.ts +1 -0
  343. package/dist/esm/basicPie/_example/Basic.js +40 -0
  344. package/dist/esm/basicPie/_example/Basic.js.map +1 -0
  345. package/dist/esm/basicPie/_example/Basic.jsx +43 -0
  346. package/dist/esm/basicPie/_example/DonutPic.d.ts +1 -0
  347. package/dist/esm/basicPie/_example/DonutPic.js +39 -0
  348. package/dist/esm/basicPie/_example/DonutPic.js.map +1 -0
  349. package/dist/esm/basicPie/_example/DonutPic.jsx +42 -0
  350. package/dist/esm/basicPie/_example/LabelPic.d.ts +1 -0
  351. package/dist/esm/basicPie/_example/LabelPic.js +25 -0
  352. package/dist/esm/basicPie/_example/LabelPic.js.map +1 -0
  353. package/dist/esm/basicPie/_example/LabelPic.jsx +27 -0
  354. package/dist/esm/basicPie/_example/RosePic.d.ts +1 -0
  355. package/dist/esm/basicPie/_example/RosePic.js +56 -0
  356. package/dist/esm/basicPie/_example/RosePic.js.map +1 -0
  357. package/dist/esm/basicPie/_example/RosePic.jsx +65 -0
  358. package/dist/esm/basicPie/_example/SpaceDonutPic.d.ts +1 -0
  359. package/dist/esm/basicPie/_example/SpaceDonutPic.js +51 -0
  360. package/dist/esm/basicPie/_example/SpaceDonutPic.js.map +1 -0
  361. package/dist/esm/basicPie/_example/SpaceDonutPic.jsx +59 -0
  362. package/dist/esm/basicPie/_example/SpacePic.d.ts +1 -0
  363. package/dist/esm/basicPie/_example/SpacePic.js +40 -0
  364. package/dist/esm/basicPie/_example/SpacePic.js.map +1 -0
  365. package/dist/esm/basicPie/_example/SpacePic.jsx +43 -0
  366. package/dist/esm/basicPie/demo/basic.md +31 -0
  367. package/dist/esm/basicPie/index.d.ts +47 -0
  368. package/dist/esm/basicPie/index.js +34 -0
  369. package/dist/esm/basicPie/index.js.map +1 -0
  370. package/dist/esm/basicPie/index.md +27 -0
  371. package/dist/esm/basicPie/style/index.less +0 -0
  372. package/dist/esm/basicSankey/README.md +12 -0
  373. package/dist/esm/basicSankey/_example/Basic.d.ts +1 -0
  374. package/dist/esm/basicSankey/_example/Basic.js +75 -0
  375. package/dist/esm/basicSankey/_example/Basic.js.map +1 -0
  376. package/dist/esm/basicSankey/_example/Basic.jsx +79 -0
  377. package/dist/esm/basicSankey/demo/basic.md +88 -0
  378. package/dist/esm/basicSankey/index.d.ts +19 -0
  379. package/dist/esm/basicSankey/index.js +27 -0
  380. package/dist/esm/basicSankey/index.js.map +1 -0
  381. package/dist/esm/basicSankey/index.md +21 -0
  382. package/dist/esm/basicSankey/style/index.less +0 -0
  383. package/dist/esm/basicStat/README.md +23 -0
  384. package/dist/esm/basicStat/_example/Basic.d.ts +1 -0
  385. package/dist/esm/basicStat/_example/Basic.js +399 -0
  386. package/dist/esm/basicStat/_example/Basic.js.map +1 -0
  387. package/dist/esm/basicStat/_example/Basic.jsx +402 -0
  388. package/dist/esm/basicStat/_example/LineStat.d.ts +1 -0
  389. package/dist/esm/basicStat/_example/LineStat.js +399 -0
  390. package/dist/esm/basicStat/_example/LineStat.js.map +1 -0
  391. package/dist/esm/basicStat/_example/LineStat.jsx +402 -0
  392. package/dist/esm/basicStat/_example/ThresholdStat.d.ts +1 -0
  393. package/dist/esm/basicStat/_example/ThresholdStat.js +399 -0
  394. package/dist/esm/basicStat/_example/ThresholdStat.js.map +1 -0
  395. package/dist/esm/basicStat/_example/ThresholdStat.jsx +402 -0
  396. package/dist/esm/basicStat/index.d.ts +44 -0
  397. package/dist/esm/basicStat/index.js +85 -0
  398. package/dist/esm/basicStat/index.js.map +1 -0
  399. package/dist/esm/basicTopo/README.md +39 -0
  400. package/dist/esm/basicTopo/_example/Basic.d.ts +1 -0
  401. package/dist/esm/basicTopo/_example/Basic.js +124 -0
  402. package/dist/esm/basicTopo/_example/Basic.js.map +1 -0
  403. package/dist/esm/basicTopo/_example/Basic.jsx +132 -0
  404. package/dist/esm/basicTopo/_example/GroupLinkTopo.d.ts +1 -0
  405. package/dist/esm/basicTopo/_example/GroupLinkTopo.js +875 -0
  406. package/dist/esm/basicTopo/_example/GroupLinkTopo.js.map +1 -0
  407. package/dist/esm/basicTopo/_example/GroupLinkTopo.jsx +902 -0
  408. package/dist/esm/basicTopo/_example/GroupTopo.d.ts +1 -0
  409. package/dist/esm/basicTopo/_example/GroupTopo.js +193 -0
  410. package/dist/esm/basicTopo/_example/GroupTopo.js.map +1 -0
  411. package/dist/esm/basicTopo/_example/GroupTopo.jsx +221 -0
  412. package/dist/esm/basicTopo/_example/LinkLabel.d.ts +1 -0
  413. package/dist/esm/basicTopo/_example/LinkLabel.js +109 -0
  414. package/dist/esm/basicTopo/_example/LinkLabel.js.map +1 -0
  415. package/dist/esm/basicTopo/_example/LinkLabel.jsx +117 -0
  416. package/dist/esm/basicTopo/_example/NoIconTopo.d.ts +1 -0
  417. package/dist/esm/basicTopo/_example/NoIconTopo.js +203 -0
  418. package/dist/esm/basicTopo/_example/NoIconTopo.js.map +1 -0
  419. package/dist/esm/basicTopo/_example/NoIconTopo.jsx +235 -0
  420. package/dist/esm/basicTopo/_example/PerformanceTest.d.ts +1 -0
  421. package/dist/esm/basicTopo/_example/PerformanceTest.js +155 -0
  422. package/dist/esm/basicTopo/_example/PerformanceTest.js.map +1 -0
  423. package/dist/esm/basicTopo/_example/PerformanceTest.jsx +171 -0
  424. package/dist/esm/basicTopo/_example/VisioLinkTopo.d.ts +1 -0
  425. package/dist/esm/basicTopo/_example/VisioLinkTopo.js +209 -0
  426. package/dist/esm/basicTopo/_example/VisioLinkTopo.js.map +1 -0
  427. package/dist/esm/basicTopo/_example/VisioLinkTopo.jsx +234 -0
  428. package/dist/esm/basicTopo/demo/basic.md +48 -0
  429. package/dist/esm/basicTopo/demo/labelRotate.md +35 -0
  430. package/dist/esm/basicTopo/index.d.ts +40 -0
  431. package/dist/esm/basicTopo/index.js +24 -0
  432. package/dist/esm/basicTopo/index.js.map +1 -0
  433. package/dist/esm/basicTopo/index.md +25 -0
  434. package/dist/esm/basicTopo/style/index.less +0 -0
  435. package/dist/esm/basicTreeMap/basicTreeMap.d.ts +19 -0
  436. package/dist/esm/basicTreeMap/basicTreeMap.js +25 -0
  437. package/dist/esm/basicTreeMap/basicTreeMap.js.map +1 -0
  438. package/dist/esm/common/chart.d.ts +23 -0
  439. package/dist/esm/common/chart.js +56 -0
  440. package/dist/esm/common/chart.js.map +1 -0
  441. package/dist/esm/common/compareObjWithoutFunction.d.ts +1 -0
  442. package/dist/esm/common/compareObjWithoutFunction.js +34 -0
  443. package/dist/esm/common/compareObjWithoutFunction.js.map +1 -0
  444. package/dist/esm/common/functionChart.d.ts +7 -0
  445. package/dist/esm/common/functionChart.js +37 -0
  446. package/dist/esm/common/functionChart.js.map +1 -0
  447. package/dist/esm/common/optionsHelp.d.ts +101 -0
  448. package/dist/esm/common/optionsHelp.js +464 -0
  449. package/dist/esm/common/optionsHelp.js.map +1 -0
  450. package/dist/esm/diskPart/README.md +19 -0
  451. package/dist/esm/diskPart/_example/MultipleDiskPart.d.ts +1 -0
  452. package/dist/esm/diskPart/_example/MultipleDiskPart.js +43 -0
  453. package/dist/esm/diskPart/_example/MultipleDiskPart.js.map +1 -0
  454. package/dist/esm/diskPart/_example/MultipleDiskPart.jsx +46 -0
  455. package/dist/esm/diskPart/_example/SingleDiskPart.d.ts +1 -0
  456. package/dist/esm/diskPart/_example/SingleDiskPart.js +43 -0
  457. package/dist/esm/diskPart/_example/SingleDiskPart.js.map +1 -0
  458. package/dist/esm/diskPart/_example/SingleDiskPart.jsx +46 -0
  459. package/dist/esm/diskPart/index.d.ts +43 -0
  460. package/dist/esm/diskPart/index.js +25 -0
  461. package/dist/esm/diskPart/index.js.map +1 -0
  462. package/dist/esm/index.d.ts +16 -0
  463. package/dist/esm/index.js +17 -0
  464. package/dist/esm/index.js.map +1 -0
  465. package/dist/esm/liquidFillChart/README.md +19 -0
  466. package/dist/esm/liquidFillChart/_example/Basic.d.ts +1 -0
  467. package/dist/esm/liquidFillChart/_example/Basic.js +53 -0
  468. package/dist/esm/liquidFillChart/_example/Basic.js.map +1 -0
  469. package/dist/esm/liquidFillChart/_example/Basic.jsx +56 -0
  470. package/dist/esm/liquidFillChart/_example/Basicx.d.ts +1 -0
  471. package/dist/esm/liquidFillChart/_example/Basicx.js +73 -0
  472. package/dist/esm/liquidFillChart/_example/Basicx.js.map +1 -0
  473. package/dist/esm/liquidFillChart/_example/Basicx.jsx +78 -0
  474. package/dist/esm/liquidFillChart/demo/basic.md +62 -0
  475. package/dist/esm/liquidFillChart/demo/basicx.md +82 -0
  476. package/dist/esm/liquidFillChart/index.d.ts +32 -0
  477. package/dist/esm/liquidFillChart/index.js +28 -0
  478. package/dist/esm/liquidFillChart/index.js.map +1 -0
  479. package/dist/esm/liquidFillChart/index.md +27 -0
  480. package/dist/esm/liquidFillChart/style/index.less +0 -0
  481. package/dist/esm/proxy.d.ts +2 -0
  482. package/dist/esm/proxy.js +3 -0
  483. package/dist/esm/proxy.js.map +1 -0
  484. package/dist/esm/radarChart/README.md +18 -0
  485. package/dist/esm/radarChart/_example/CommonRadarChart.d.ts +1 -0
  486. package/dist/esm/radarChart/_example/CommonRadarChart.js +44 -0
  487. package/dist/esm/radarChart/_example/CommonRadarChart.js.map +1 -0
  488. package/dist/esm/radarChart/_example/CommonRadarChart.jsx +48 -0
  489. package/dist/esm/radarChart/_example/FilledRadarChart.d.ts +1 -0
  490. package/dist/esm/radarChart/_example/FilledRadarChart.js +73 -0
  491. package/dist/esm/radarChart/_example/FilledRadarChart.js.map +1 -0
  492. package/dist/esm/radarChart/_example/FilledRadarChart.jsx +77 -0
  493. package/dist/esm/radarChart/demo/basic.md +53 -0
  494. package/dist/esm/radarChart/demo/basicx.md +83 -0
  495. package/dist/esm/radarChart/index.d.ts +37 -0
  496. package/dist/esm/radarChart/index.js +26 -0
  497. package/dist/esm/radarChart/index.js.map +1 -0
  498. package/dist/esm/radarChart/index.md +28 -0
  499. package/dist/esm/radarChart/style/index.less +0 -0
  500. package/dist/esm/wordcloud/README.md +25 -0
  501. package/dist/esm/wordcloud/_example/Basic.d.ts +1 -0
  502. package/dist/esm/wordcloud/_example/Basic.js +219 -0
  503. package/dist/esm/wordcloud/_example/Basic.js.map +1 -0
  504. package/dist/esm/wordcloud/_example/Basic.jsx +222 -0
  505. package/dist/esm/wordcloud/_example/CenterBasic.d.ts +1 -0
  506. package/dist/esm/wordcloud/_example/CenterBasic.js +220 -0
  507. package/dist/esm/wordcloud/_example/CenterBasic.js.map +1 -0
  508. package/dist/esm/wordcloud/_example/CenterBasic.jsx +223 -0
  509. package/dist/esm/wordcloud/_example/ColorsBasic.d.ts +1 -0
  510. package/dist/esm/wordcloud/_example/ColorsBasic.js +220 -0
  511. package/dist/esm/wordcloud/_example/ColorsBasic.js.map +1 -0
  512. package/dist/esm/wordcloud/_example/ColorsBasic.jsx +224 -0
  513. package/dist/esm/wordcloud/demo/basic.md +39 -0
  514. package/dist/esm/wordcloud/index.d.ts +26 -0
  515. package/dist/esm/wordcloud/index.js +26 -0
  516. package/dist/esm/wordcloud/index.js.map +1 -0
  517. package/dist/esm/wordcloud/index.md +22 -0
  518. package/dist/esm/wordcloud/style/index.less +0 -0
  519. package/dist/tsconfig.tsbuildinfo +1 -0
  520. package/package.json +84 -0
@@ -0,0 +1,902 @@
1
+ import React, { useRef, useMemo, useState } from 'react';
2
+ import { BasicTopo } from '@tencent/tcharts-component';
3
+ import { Button, Alert } from '@tencent/tea-component';
4
+
5
+ export default function GroupLinkTopo() {
6
+ const chartDom = useRef(null);
7
+ const [showMsg, setShowMsg] = useState(false);
8
+ const options = {
9
+ grid: { left: 300, right: 0, bottom: 0, top: 300, containLabel: true },
10
+ hooks: {
11
+ locationChanged: (pipelines) => {
12
+ console.log(pipelines);
13
+ },
14
+ },
15
+ tooltip: {
16
+ trigger: 'item',
17
+ formatter: (items) => {
18
+ const content = `节点ID: ${items.id}<br />`;
19
+ // console.log('tooltip', items)
20
+ return content;
21
+ },
22
+ },
23
+ chartRef: (chart) => {
24
+ chartDom.current = chart;
25
+ chart.network.registerImages([
26
+ {
27
+ id: 'cdn',
28
+ path: 'M851.6 661.5l-3.1-306.7c-0.1-6-0.9-11.8-2.3-17.4l-0.1-8.7c-0.1-8.9-4.9-17.1-12.7-21.5l-7.6-4.3c-4.2-4-9-7.5-14.1-10.4L544.5 141.8c-5.2-2.9-10.6-5.2-16.3-6.7l-8.4-4.7c-7.8-4.4-17.3-4.3-25 0.3l-10 5.9c-4.4 1.6-8.7 3.5-12.9 6L208 298.5c-4.1 2.4-7.9 5.2-11.4 8.4l-11.5 6.8c-7.7 4.5-12.4 12.8-12.3 21.8l0.2 16.5c-0.4 3.2-0.6 6.4-0.6 9.6l3.1 306.7c0 3.2 0.3 6.5 0.7 9.6l0.2 17.4c0.1 8.9 4.9 17.1 12.7 21.5l15.1 8.5c2.6 1.9 5.3 3.7 8.1 5.3l267.1 150.7c2.8 1.6 5.8 3 8.7 4.2l14.4 8.1c3.8 2.2 8 3.2 12.3 3.2 4.4 0 8.8-1.2 12.7-3.5l11.5-6.8c4.4-1.6 8.8-3.5 12.9-6l264.1-156c4.1-2.4 8-5.3 11.5-8.4l9.9-5.9c7.7-4.5 12.4-12.8 12.3-21.8l-0.1-9.6c1.4-5.5 2.1-11.3 2-17.3z m-55 14.9L519.1 840.3c-3.3 0.6-6.8 0.4-10.1-0.5L232.6 684c-3.1-2.9-5.4-6.7-6.4-10.9L223 355.8c0.8-3.3 2.3-6.5 4.5-9.1l277.4-163.9c1.3-0.2 2.7-0.4 4-0.4 0.5 0 1.1 0 1.6 0.1l283.8 160.1c0.7 1 1.4 2.1 1.9 3.2l3.3 325.8c-0.7 1.7-1.8 3.3-2.9 4.8zM681.7 426.2c-0.1-8.9-4.9-17.1-12.7-21.5L472.4 293.8c-12-6.8-27.3-2.5-34.1 9.5s-2.5 27.3 9.5 34.1l184 103.8 2.1 211.2c0.1 13.7 11.3 24.7 25 24.7h0.3c13.8-0.1 24.9-11.4 24.7-25.2l-2.2-225.7zM565.9 493.6c-0.1-8.9-4.9-17.1-12.7-21.5L360.8 363.6c-4.4-3.7-10.1-5.9-16.3-5.8-13.8 0.1-24.9 11.4-24.7 25.2l2.3 225.7c0.1 8.9 4.9 17.1 12.7 21.5L531.2 741c0.1 0 0.1 0.1 0.2 0.1 3.9 2.2 8.1 3.2 12.3 3.2 8.7 0 17.2-4.6 21.8-12.7 3.1-5.5 3.9-11.7 2.7-17.4l-2.3-220.6z m-195.7-67.3L516 508.5l1.7 167.5-145.8-82.2-1.7-167.5z',
29
+ color: '#8a8a8a',
30
+ width: 24,
31
+ height: 24,
32
+ },
33
+ {
34
+ id: 'subnet',
35
+ path: 'M659.2 67.648a64 64 0 0 1 64 64V302.08h167.936a64 64 0 0 1 64 64v526.272a64 64 0 0 1-64 64H364.8a64 64 0 0 1-64-64V721.92H132.8a64 64 0 0 1-64-64V131.648a64 64 0 0 1 64-64H659.2z m104.384 361.92h-40.448l0.064 228.352a64 64 0 0 1-64 64H428.288v42.88a64 64 0 0 0 56.576 63.616l7.488 0.448h271.232a64 64 0 0 0 63.552-56.576l0.448-7.424V493.568a64 64 0 0 0-56.512-63.552l-7.488-0.448z',
36
+ color: '#1296db',
37
+ width: 24,
38
+ height: 24,
39
+ },
40
+ {
41
+ id: 'attachment',
42
+ path: 'M939.52 331.38A465.39 465.39 0 1 0 976 512a462.4 462.4 0 0 0-36.48-180.62zM512 896c-211.74 0-384-172.26-384-384a382.29 382.29 0 0 1 90.31-247.12l540.81 540.81A382.29 382.29 0 0 1 512 896z m302.65-147.92L275.92 209.35A382.1 382.1 0 0 1 512 128c211.74 0 384 172.26 384 384a382.1 382.1 0 0 1-81.35 236.08z',
43
+ color: '#d81e06',
44
+ width: 12,
45
+ height: 12,
46
+ },
47
+ ]);
48
+ chart.network.add([
49
+ {
50
+ group: 'groups',
51
+ data: {
52
+ id: 'oc_union',
53
+ name: 'OC层',
54
+ collapsed: false,
55
+ },
56
+ style: {
57
+ image: 'subnet',
58
+ width: 1000,
59
+ height: 100,
60
+ border: 3,
61
+ color: '#BBBBBB',
62
+ lineDash: [2, 2],
63
+ },
64
+ },
65
+ {
66
+ group: 'groups',
67
+ data: {
68
+ id: 'soc_union',
69
+ name: '中间源层',
70
+ collapsed: false,
71
+ },
72
+ style: {
73
+ image: 'subnet',
74
+ width: 1000,
75
+ height: 100,
76
+ border: 3,
77
+ color: '#BBBBBB',
78
+ lineDash: [2, 2],
79
+ },
80
+ },
81
+ {
82
+ group: 'groups',
83
+ data: {
84
+ id: 'final_union',
85
+ name: '最终回源层',
86
+ collapsed: false,
87
+ },
88
+ style: {
89
+ image: 'subnet',
90
+ width: 1000,
91
+ height: 100,
92
+ border: 3,
93
+ color: '#BBBBBB',
94
+ lineDash: [2, 2],
95
+ },
96
+ },
97
+ {
98
+ group: 'groups',
99
+ data: {
100
+ id: 'domain',
101
+ name: '客户源站',
102
+ collapsed: false,
103
+ },
104
+ style: {
105
+ image: 'subnet',
106
+ width: 1000,
107
+ height: 100,
108
+ border: 3,
109
+ color: '#BBBBBB',
110
+ lineDash: [2, 2],
111
+ },
112
+ },
113
+ {
114
+ group: 'groups',
115
+ data: {
116
+ id: 'no_path',
117
+ name: 'no_path',
118
+ collapsed: false,
119
+ },
120
+ style: {
121
+ image: 'subnet',
122
+ width: 1000,
123
+ height: 100,
124
+ border: 3,
125
+ color: '#BBBBBB',
126
+ lineDash: [2, 2],
127
+ },
128
+ },
129
+ {
130
+ group: 'nodes',
131
+ data: {
132
+ id: '81',
133
+ parentId: 'soc_union',
134
+ name: '[xx云][点播DC中间源VMid1]',
135
+ },
136
+ position: {
137
+ y: 520,
138
+ x: 350,
139
+ },
140
+ style: {
141
+ width: 60,
142
+ height: 60,
143
+ image: 'cdn',
144
+ imageStyle: 'auto',
145
+ color: '#2fad53',
146
+ },
147
+ },
148
+ {
149
+ group: 'nodes',
150
+ data: {
151
+ id: '87',
152
+ parentId: 'oc_union',
153
+ name: '[xx云][点播快手平台]',
154
+ },
155
+ position: {
156
+ y: 100,
157
+ x: 350,
158
+ },
159
+ style: {
160
+ width: 60,
161
+ height: 60,
162
+ image: 'cdn',
163
+ imageStyle: 'auto',
164
+ color: '#006eff',
165
+ },
166
+ },
167
+ {
168
+ group: 'nodes',
169
+ data: {
170
+ id: '98',
171
+ parentId: 'final_union',
172
+ name: '[xx云][点播DC三级源L3V1]',
173
+ },
174
+ position: {
175
+ y: 840,
176
+ x: 550,
177
+ },
178
+ style: {
179
+ width: 60,
180
+ height: 60,
181
+ image: 'cdn',
182
+ imageStyle: 'auto',
183
+ color: '#D2514C',
184
+ },
185
+ },
186
+ {
187
+ group: 'nodes',
188
+ data: {
189
+ id: '117',
190
+ parentId: 'final_union',
191
+ name: '[xx云][点播DC三级源L3V2]',
192
+ },
193
+ position: {
194
+ y: 840,
195
+ x: 350,
196
+ },
197
+ style: {
198
+ width: 60,
199
+ height: 60,
200
+ image: 'cdn',
201
+ imageStyle: 'auto',
202
+ color: '#D2514C',
203
+ },
204
+ },
205
+ {
206
+ group: 'nodes',
207
+ data: {
208
+ id: '95',
209
+ parentId: 'oc_union',
210
+ name: '[xx云][长视频存储]',
211
+ },
212
+ position: {
213
+ y: 250,
214
+ x: 150,
215
+ },
216
+ style: {
217
+ width: 60,
218
+ height: 60,
219
+ image: 'cdn',
220
+ imageStyle: 'auto',
221
+ color: '#006eff',
222
+ },
223
+ },
224
+ {
225
+ group: 'nodes',
226
+ data: {
227
+ id: '40',
228
+ parentId: 'oc_union',
229
+ name: '[xx云][短视频存储]',
230
+ },
231
+ position: {
232
+ y: 250,
233
+ x: 350,
234
+ },
235
+ style: {
236
+ width: 60,
237
+ height: 60,
238
+ image: 'cdn',
239
+ imageStyle: 'auto',
240
+ color: '#006eff',
241
+ },
242
+ },
243
+ {
244
+ group: 'nodes',
245
+ data: {
246
+ id: '17',
247
+ parentId: 'soc_union',
248
+ name: '[xx云][点播三通接入3]',
249
+ },
250
+ position: {
251
+ y: 520,
252
+ x: 150,
253
+ },
254
+ style: {
255
+ width: 60,
256
+ height: 60,
257
+ image: 'cdn',
258
+ imageStyle: 'auto',
259
+ color: '#2fad53',
260
+ },
261
+ },
262
+ {
263
+ group: 'nodes',
264
+ data: {
265
+ id: '18',
266
+ parentId: 'soc_union',
267
+ name: '[xx云][点播三通存储3]',
268
+ },
269
+ position: {
270
+ y: 670,
271
+ x: 150,
272
+ },
273
+ style: {
274
+ width: 60,
275
+ height: 60,
276
+ image: 'cdn',
277
+ imageStyle: 'auto',
278
+ color: '#2fad53',
279
+ },
280
+ },
281
+ {
282
+ group: 'nodes',
283
+ data: {
284
+ id: '19',
285
+ parentId: 'final_union',
286
+ name: '[xx云][点播三通回源3]',
287
+ },
288
+ position: {
289
+ y: 840,
290
+ x: 150,
291
+ },
292
+ style: {
293
+ width: 60,
294
+ height: 60,
295
+ image: 'cdn',
296
+ imageStyle: 'auto',
297
+ color: '#D2514C',
298
+ },
299
+ },
300
+ {
301
+ group: 'nodes',
302
+ data: {
303
+ id: '42',
304
+ parentId: 'oc_union',
305
+ name: '[xx云][点播快手乐高]',
306
+ },
307
+ position: {
308
+ y: 100,
309
+ x: 150,
310
+ },
311
+ style: {
312
+ width: 60,
313
+ height: 60,
314
+ image: 'cdn',
315
+ imageStyle: 'auto',
316
+ color: '#006eff',
317
+ },
318
+ },
319
+ {
320
+ group: 'nodes',
321
+ data: {
322
+ id: 'domain--test1.kwai-ap-beijing.myqcloud.com',
323
+ parentId: 'domain',
324
+ name: 'test1.kwai-ap-beijing.myqcloud.com',
325
+ },
326
+ position: {
327
+ y: 1110,
328
+ x: 150,
329
+ },
330
+ style: {
331
+ width: 60,
332
+ height: 60,
333
+ image: 'cdn',
334
+ imageStyle: 'auto',
335
+ color: '#F0A139',
336
+ },
337
+ },
338
+ {
339
+ group: 'nodes',
340
+ data: {
341
+ id: 'domain--test2-cdn.ap-beijing.myqcloud.com',
342
+ parentId: 'domain',
343
+ name: 'domain--test-cdn.ap-beijing.myqcloud.com',
344
+ },
345
+ position: {
346
+ y: 1110,
347
+ x: 350,
348
+ },
349
+ style: {
350
+ width: 60,
351
+ height: 60,
352
+ image: 'cdn',
353
+ imageStyle: 'auto',
354
+ color: '#F0A139',
355
+ },
356
+ },
357
+ {
358
+ group: 'nodes',
359
+ data: {
360
+ id: 'domain--gifshowbak-test108.cos.kuaishou-ap-beijing.myqcloud.com',
361
+ parentId: 'domain',
362
+ name: 'gifshowbak-test.cos.kuaishou-ap-beijing.myqcloud.com',
363
+ },
364
+ position: {
365
+ y: 1110,
366
+ x: 550,
367
+ },
368
+ style: {
369
+ width: 60,
370
+ height: 60,
371
+ image: 'cdn',
372
+ imageStyle: 'auto',
373
+ color: '#F0A139',
374
+ },
375
+ },
376
+ {
377
+ group: 'edges',
378
+ data: {
379
+ id: '81--117--target',
380
+ source: '81',
381
+ target: '117',
382
+ name: '回源',
383
+ },
384
+ style: {
385
+ color: '#AAAAAA',
386
+ width: 1,
387
+ },
388
+ },
389
+ {
390
+ group: 'edges',
391
+ data: {
392
+ id: '95--81--target',
393
+ source: '95',
394
+ target: '81',
395
+ name: '回源',
396
+ },
397
+ style: {
398
+ color: '#AAAAAA',
399
+ width: 1,
400
+ },
401
+ },
402
+ {
403
+ group: 'edges',
404
+ data: {
405
+ id: '95--17--target',
406
+ source: '95',
407
+ target: '17',
408
+ name: '回源',
409
+ },
410
+ style: {
411
+ color: '#AAAAAA',
412
+ width: 1,
413
+ },
414
+ },
415
+ {
416
+ group: 'edges',
417
+ data: {
418
+ id: '40--81--target',
419
+ source: '40',
420
+ target: '81',
421
+ name: '回源',
422
+ },
423
+ style: {
424
+ color: '#AAAAAA',
425
+ width: 1,
426
+ },
427
+ },
428
+ {
429
+ group: 'edges',
430
+ data: {
431
+ id: '40--17--target',
432
+ source: '40',
433
+ target: '17',
434
+ name: '回源',
435
+ },
436
+ style: {
437
+ color: '#AAAAAA',
438
+ width: 1,
439
+ },
440
+ },
441
+ {
442
+ group: 'edges',
443
+ data: {
444
+ id: '19--gifshowbak-test108.cos.kuaishou-ap-beijing.myqcloud.com--target',
445
+ source: '19',
446
+ target: 'domain--gifshowbak-test108.cos.kuaishou-ap-beijing.myqcloud.com',
447
+ name: '回源',
448
+ },
449
+ style: {
450
+ color: '#AAAAAA',
451
+ width: 1,
452
+ },
453
+ },
454
+ {
455
+ group: 'edges',
456
+ data: {
457
+ id: '117--test.kwai-ap-beijing.myqcloud.com--target',
458
+ source: '117',
459
+ target: 'domain--test1.kwai-ap-beijing.myqcloud.com',
460
+ name: '回源',
461
+ },
462
+ style: {
463
+ color: '#AAAAAA',
464
+ width: 1,
465
+ },
466
+ },
467
+ {
468
+ group: 'edges',
469
+ data: {
470
+ id: '98--test1.kwai-ap-beijing.myqcloud.com--target',
471
+ source: '98',
472
+ target: 'domain--test1.kwai-ap-beijing.myqcloud.com',
473
+ name: '回源',
474
+ },
475
+ style: {
476
+ color: '#AAAAAA',
477
+ width: 1,
478
+ },
479
+ },
480
+ {
481
+ group: 'edges',
482
+ data: {
483
+ id: '87--95--group_target',
484
+ source: '87',
485
+ target: '95',
486
+ name: '分组回源',
487
+ },
488
+ style: {
489
+ color: '#AAAAAA',
490
+ width: 1,
491
+ },
492
+ },
493
+ {
494
+ group: 'edges',
495
+ data: {
496
+ id: '87--40--group_target',
497
+ source: '87',
498
+ target: '40',
499
+ name: '分组回源',
500
+ },
501
+ style: {
502
+ color: '#AAAAAA',
503
+ width: 1,
504
+ },
505
+ },
506
+ {
507
+ group: 'edges',
508
+ data: {
509
+ id: '17--18--group_target',
510
+ source: '17',
511
+ target: '18',
512
+ name: '分组回源',
513
+ },
514
+ style: {
515
+ color: '#AAAAAA',
516
+ width: 1,
517
+ },
518
+ },
519
+ {
520
+ group: 'edges',
521
+ data: {
522
+ id: '18--19--group_target',
523
+ source: '18',
524
+ target: '19',
525
+ name: '分组回源',
526
+ },
527
+ style: {
528
+ color: '#AAAAAA',
529
+ width: 1,
530
+ },
531
+ },
532
+ {
533
+ group: 'edges',
534
+ data: {
535
+ id: '42--95--group_target',
536
+ source: '42',
537
+ target: '95',
538
+ name: '分组回源',
539
+ },
540
+ style: {
541
+ color: '#AAAAAA',
542
+ width: 1,
543
+ },
544
+ },
545
+ {
546
+ group: 'edges',
547
+ data: {
548
+ id: '42--40--group_target',
549
+ source: '42',
550
+ target: '40',
551
+ name: '分组回源',
552
+ },
553
+ style: {
554
+ color: '#AAAAAA',
555
+ width: 1,
556
+ },
557
+ },
558
+ {
559
+ group: 'edges',
560
+ data: {
561
+ id: '81--98--back_target',
562
+ source: '81',
563
+ target: '98',
564
+ name: '备份回源',
565
+ },
566
+ style: {
567
+ color: '#AAAAAA',
568
+ width: 1,
569
+ lineDash: [2, 2],
570
+ },
571
+ },
572
+ {
573
+ group: 'edges',
574
+ data: {
575
+ id: '87--81--back_target',
576
+ source: '87',
577
+ target: '81',
578
+ name: '备份回源',
579
+ },
580
+ style: {
581
+ color: '#AAAAAA',
582
+ width: 1,
583
+ lineDash: [2, 2],
584
+ },
585
+ },
586
+ {
587
+ group: 'edges',
588
+ data: {
589
+ id: '87--17--back_target',
590
+ source: '87',
591
+ target: '17',
592
+ name: '备份回源',
593
+ },
594
+ style: {
595
+ color: '#AAAAAA',
596
+ width: 1,
597
+ lineDash: [2, 2],
598
+ },
599
+ },
600
+ {
601
+ group: 'edges',
602
+ data: {
603
+ id: '95--81--back_target',
604
+ source: '95',
605
+ target: '81',
606
+ name: '备份回源',
607
+ },
608
+ style: {
609
+ color: '#AAAAAA',
610
+ width: 1,
611
+ lineDash: [2, 2],
612
+ },
613
+ },
614
+ {
615
+ group: 'edges',
616
+ data: {
617
+ id: '95--17--back_target',
618
+ source: '95',
619
+ target: '17',
620
+ name: '备份回源',
621
+ },
622
+ style: {
623
+ color: '#AAAAAA',
624
+ width: 1,
625
+ lineDash: [2, 2],
626
+ },
627
+ },
628
+ {
629
+ group: 'edges',
630
+ data: {
631
+ id: '40--81--back_target',
632
+ source: '40',
633
+ target: '81',
634
+ name: '备份回源',
635
+ },
636
+ style: {
637
+ color: '#AAAAAA',
638
+ width: 1,
639
+ lineDash: [2, 2],
640
+ },
641
+ },
642
+ {
643
+ group: 'edges',
644
+ data: {
645
+ id: '40--17--back_target',
646
+ source: '40',
647
+ target: '17',
648
+ name: '备份回源',
649
+ },
650
+ style: {
651
+ color: '#AAAAAA',
652
+ width: 1,
653
+ lineDash: [2, 2],
654
+ },
655
+ },
656
+ {
657
+ group: 'edges',
658
+ data: {
659
+ id: '42--81--back_target',
660
+ source: '42',
661
+ target: '81',
662
+ name: '备份回源',
663
+ },
664
+ style: {
665
+ color: '#AAAAAA',
666
+ width: 1,
667
+ lineDash: [2, 2],
668
+ },
669
+ },
670
+ {
671
+ group: 'edges',
672
+ data: {
673
+ id: '42--17--back_target',
674
+ source: '42',
675
+ target: '17',
676
+ name: '备份回源',
677
+ },
678
+ style: {
679
+ color: '#AAAAAA',
680
+ width: 1,
681
+ lineDash: [2, 2],
682
+ },
683
+ },
684
+ {
685
+ group: 'edges',
686
+ data: {
687
+ id: '19--test1.kwai-ap-beijing.myqcloud.com--back_target',
688
+ source: '19',
689
+ target: 'domain--test1.kwai-ap-beijing.myqcloud.com',
690
+ name: '备份回源',
691
+ },
692
+ style: {
693
+ color: '#AAAAAA',
694
+ width: 1,
695
+ lineDash: [2, 2],
696
+ },
697
+ },
698
+ {
699
+ group: 'edges',
700
+ data: {
701
+ id: '117--gifshowbak-test108.cos-cdn.ap-beijing.myqcloud.com--back_target',
702
+ source: '117',
703
+ target: 'domain--test2-cdn.ap-beijing.myqcloud.com',
704
+ name: '备份回源',
705
+ },
706
+ style: {
707
+ color: '#AAAAAA',
708
+ width: 1,
709
+ lineDash: [2, 2],
710
+ },
711
+ },
712
+ {
713
+ group: 'edges',
714
+ data: {
715
+ id: '98--gifshowbak-test108.cos-cdn.ap-beijing.myqcloud.com--back_target',
716
+ source: '98',
717
+ target: 'domain--test2-cdn.ap-beijing.myqcloud.com',
718
+ name: '备份回源',
719
+ },
720
+ style: {
721
+ color: '#AAAAAA',
722
+ width: 1,
723
+ lineDash: [2, 2],
724
+ },
725
+ },
726
+ {
727
+ group: 'edges',
728
+ data: {
729
+ id: '87--81--target',
730
+ source: '87',
731
+ target: '81',
732
+ name: '回源',
733
+ },
734
+ style: {
735
+ color: '#49a9ee',
736
+ width: 1,
737
+ lineDash: [2, 2],
738
+ },
739
+ },
740
+ {
741
+ group: 'edges',
742
+ data: {
743
+ id: '87--17--target',
744
+ source: '87',
745
+ target: '17',
746
+ name: '回源',
747
+ },
748
+ style: {
749
+ color: '#49a9ee',
750
+ width: 1,
751
+ lineDash: [2, 2],
752
+ },
753
+ },
754
+ {
755
+ group: 'edges',
756
+ data: {
757
+ id: '17--81--target',
758
+ source: '17',
759
+ target: '81',
760
+ name: '回源',
761
+ },
762
+ style: {
763
+ color: '#49a9ee',
764
+ width: 1,
765
+ lineDash: [2, 2],
766
+ },
767
+ },
768
+ {
769
+ group: 'edges',
770
+ data: {
771
+ id: '18--81--target',
772
+ source: '18',
773
+ target: '81',
774
+ name: '回源',
775
+ },
776
+ style: {
777
+ color: '#49a9ee',
778
+ width: 1,
779
+ lineDash: [2, 2],
780
+ },
781
+ },
782
+ {
783
+ group: 'edges',
784
+ data: {
785
+ id: '42--81--target',
786
+ source: '42',
787
+ target: '81',
788
+ name: '回源',
789
+ },
790
+ style: {
791
+ color: '#49a9ee',
792
+ width: 1,
793
+ lineDash: [2, 2],
794
+ },
795
+ },
796
+ {
797
+ group: 'edges',
798
+ data: {
799
+ id: '42--17--target',
800
+ source: '42',
801
+ target: '17',
802
+ name: '回源',
803
+ },
804
+ style: {
805
+ color: '#49a9ee',
806
+ width: 1,
807
+ lineDash: [2, 2],
808
+ },
809
+ },
810
+ ]);
811
+ // chart.network.layout('dagre', { rankDir: 'LR' });
812
+ },
813
+ };
814
+
815
+ function bindClick(e) {
816
+ switch (e) {
817
+ case 'zoomOut':
818
+ chartDom.current.network.zoomOut();
819
+ break;
820
+ case 'zoomIn':
821
+ chartDom.current.network.zoomIn();
822
+ break;
823
+ case 'zoomReset':
824
+ chartDom.current.network.zoomReset();
825
+ break;
826
+ case 'remove':
827
+ chartDom.current.network.remove('n0');
828
+ break;
829
+ case 'highlight':
830
+ chartDom.current.dispatchAction({
831
+ type: 'highlight',
832
+ seriesName: ['n0', 'n1', 'e0'],
833
+ });
834
+ break;
835
+ case 'downplay':
836
+ chartDom.current.dispatchAction({
837
+ type: 'downplay',
838
+ });
839
+ break;
840
+ case 'dagreH':
841
+ chartDom.current.network.layout('dagre', { rankDir: 'LR' });
842
+ break;
843
+ case 'dagreV':
844
+ chartDom.current.network.layout('dagre', { rankDir: 'TB' });
845
+ break;
846
+ case 'FruchtermanLayout':
847
+ setShowMsg(true);
848
+ chartDom.current.network.layout('FruchtermanLayout', null, {
849
+ onLayoutEnd: () => {
850
+ setShowMsg(false);
851
+ },
852
+ });
853
+ break;
854
+ case 'ForceLayout':
855
+ chartDom.current.network.layout('ForceLayout');
856
+ break;
857
+ case 'springy':
858
+ chartDom.current.network.layout('springy');
859
+ break;
860
+ default:
861
+ break;
862
+ }
863
+ }
864
+
865
+ // 防止无关属性变更引起图表重新初始化
866
+ const mapRender = useMemo(() => <BasicTopo height={1200} {...options} />, []);
867
+
868
+ return (
869
+ <>
870
+ <Button title="Dagre布局-水平" onClick={() => bindClick('dagreH')}>
871
+ Dagre布局-水平
872
+ </Button>
873
+ <Button title="Dagre布局-竖直" onClick={() => bindClick('dagreV')}>
874
+ Dagre布局-竖直
875
+ </Button>
876
+ <Button title="FruchtermanLayout布局" onClick={() => bindClick('FruchtermanLayout')}>
877
+ FruchtermanLayout布局
878
+ </Button>
879
+ <Button title="ForceLayout布局" onClick={() => bindClick('ForceLayout')}>
880
+ ForceLayout布局
881
+ </Button>
882
+ <Button title="放大" onClick={() => bindClick('zoomOut')}>
883
+ 放大
884
+ </Button>
885
+ <Button title="缩小" onClick={() => bindClick('zoomIn')}>
886
+ 缩小
887
+ </Button>
888
+ <Button title="高亮路径" onClick={() => bindClick('highlight')}>
889
+ 高亮路径
890
+ </Button>
891
+ <Button title="取消高亮路径" onClick={() => bindClick('downplay')}>
892
+ 取消高亮路径
893
+ </Button>
894
+ {/* <Button title="恢复" onClick={() => bindClick('zoomReset')}>恢复缩放</Button> */}
895
+ <Button title="删除" onClick={() => bindClick('remove')}>
896
+ 删除节点
897
+ </Button>
898
+ {showMsg && <Alert>FruchtermanLayout布局计算中...</Alert>}
899
+ {mapRender}
900
+ </>
901
+ );
902
+ }