@ebiz/designer-components 0.0.18-tj.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/designer-components.css +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.mjs +110735 -0
- package/package.json +40 -0
- package/src/App.vue +26 -0
- package/src/apiService/SIMPLE_DATA_SERVICE.md +285 -0
- package/src/apiService/simpleDataService.js +174 -0
- package/src/assets/base.css +86 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/main.css +1 -0
- package/src/assets/styles/charts/main.less +30 -0
- package/src/components/Button.vue +103 -0
- package/src/components/DataContainer.vue +39 -0
- package/src/components/EbizDivider.vue +97 -0
- package/src/components/EbizFileUpload.vue +202 -0
- package/src/components/EbizMindmap/README.md +8 -0
- package/src/components/EbizMindmap/components/GridNode.vue +102 -0
- package/src/components/EbizMindmap/components/node.vue +92 -0
- package/src/components/EbizMindmap/components/vueNode.vue +64 -0
- package/src/components/EbizMindmap/index.vue +383 -0
- package/src/components/EbizOkrTree.vue +99 -0
- package/src/components/EbizRemoteSelect.vue +167 -0
- package/src/components/EbizRouteBreadcrumb.vue +47 -0
- package/src/components/EbizSelect.vue +95 -0
- package/src/components/EbizSpace.vue +101 -0
- package/src/components/EbizStatsCard.vue +114 -0
- package/src/components/EbizSwiper.vue +114 -0
- package/src/components/EbizSwiperItem.vue +14 -0
- package/src/components/EbizTabHeader.vue +149 -0
- package/src/components/EbizTitle.vue +93 -0
- package/src/components/Form.vue +27 -0
- package/src/components/Home.vue +8 -0
- package/src/components/MyComponent.vue +39 -0
- package/src/components/Table.vue +45 -0
- package/src/components/TdesignButton.vue +130 -0
- package/src/components/TdesignCalendar/index.vue +143 -0
- package/src/components/TdesignCard.vue +196 -0
- package/src/components/TdesignCollapse.vue +143 -0
- package/src/components/TdesignCollapsePanel.vue +80 -0
- package/src/components/TdesignDatePicker.vue +125 -0
- package/src/components/TdesignForm.vue +134 -0
- package/src/components/TdesignFormItem.vue +106 -0
- package/src/components/TdesignIcon.vue +68 -0
- package/src/components/TdesignImage.vue +163 -0
- package/src/components/TdesignImageViewer.vue +201 -0
- package/src/components/TdesignInput.vue +243 -0
- package/src/components/TdesignSelect.vue +445 -0
- package/src/components/TdesignTag.vue +118 -0
- package/src/components/charts/chart.js +47 -0
- package/src/components/charts/components/AssembleBubbleChart/BaseOption.js +50 -0
- package/src/components/charts/components/AssembleBubbleChart/chartToken.js +17 -0
- package/src/components/charts/components/AssembleBubbleChart/handleOption.js +66 -0
- package/src/components/charts/components/AssembleBubbleChart/handleRootData.js +165 -0
- package/src/components/charts/components/AssembleBubbleChart/handleSeriesData.js +70 -0
- package/src/components/charts/components/AssembleBubbleChart/index.js +65 -0
- package/src/components/charts/components/AutonaviMapChart/index.js +162 -0
- package/src/components/charts/components/BaiduMapChart/index.js +148 -0
- package/src/components/charts/components/BarChart/barChartOption.js +76 -0
- package/src/components/charts/components/BarChart/chartToken.js +17 -0
- package/src/components/charts/components/BarChart/handleOptipn.js +102 -0
- package/src/components/charts/components/BarChart/handleSeries.js +716 -0
- package/src/components/charts/components/BarChart/handleVisualMap.js +48 -0
- package/src/components/charts/components/BarChart/index.js +151 -0
- package/src/components/charts/components/BaseChart/index.js +122 -0
- package/src/components/charts/components/BoxplotChart/chartToken.js +17 -0
- package/src/components/charts/components/BoxplotChart/handleOption.js +64 -0
- package/src/components/charts/components/BoxplotChart/handleSeries.js +150 -0
- package/src/components/charts/components/BoxplotChart/index.js +47 -0
- package/src/components/charts/components/BubbleChart/chartToken.js +17 -0
- package/src/components/charts/components/BubbleChart/handleData.js +33 -0
- package/src/components/charts/components/BubbleChart/handleOptipn.js +63 -0
- package/src/components/charts/components/BubbleChart/handleSeries.js +86 -0
- package/src/components/charts/components/BubbleChart/handleTrendLine.js +119 -0
- package/src/components/charts/components/BubbleChart/handleVisualMap.js +50 -0
- package/src/components/charts/components/BubbleChart/index.js +96 -0
- package/src/components/charts/components/BulletChart/bulletChartOption.js +82 -0
- package/src/components/charts/components/BulletChart/chartToken.js +17 -0
- package/src/components/charts/components/BulletChart/handleOptipn.js +74 -0
- package/src/components/charts/components/BulletChart/handleSeries.js +143 -0
- package/src/components/charts/components/BulletChart/index.js +93 -0
- package/src/components/charts/components/CandlestickChart/BaseOption.js +44 -0
- package/src/components/charts/components/CandlestickChart/chartToken.js +17 -0
- package/src/components/charts/components/CandlestickChart/hanleOption.js +130 -0
- package/src/components/charts/components/CandlestickChart/hanleSeries.js +123 -0
- package/src/components/charts/components/CandlestickChart/index.js +68 -0
- package/src/components/charts/components/CircleProcessChart/chartToken.js +17 -0
- package/src/components/charts/components/CircleProcessChart/handleOption.js +68 -0
- package/src/components/charts/components/CircleProcessChart/handleSeries.js +127 -0
- package/src/components/charts/components/CircleProcessChart/index.js +63 -0
- package/src/components/charts/components/FlowChart/Layout.js +211 -0
- package/src/components/charts/components/FlowChart/LineBezier.js +120 -0
- package/src/components/charts/components/FlowChart/LineDirect.js +42 -0
- package/src/components/charts/components/FlowChart/LineManager.js +278 -0
- package/src/components/charts/components/FlowChart/LineMode.js +44 -0
- package/src/components/charts/components/FlowChart/LineRound.js +335 -0
- package/src/components/charts/components/FlowChart/NodeManager.js +185 -0
- package/src/components/charts/components/FlowChart/dagre.js +8829 -0
- package/src/components/charts/components/FlowChart/frameworkFn.js +38 -0
- package/src/components/charts/components/FlowChart/index.js +268 -0
- package/src/components/charts/components/FlowChart/index.less +90 -0
- package/src/components/charts/components/FlowChart/insert.js +40 -0
- package/src/components/charts/components/FlowChart/util.js +43 -0
- package/src/components/charts/components/FunnelChart/chartToken.js +17 -0
- package/src/components/charts/components/FunnelChart/handleLegend.js +44 -0
- package/src/components/charts/components/FunnelChart/handleSeries.js +77 -0
- package/src/components/charts/components/FunnelChart/index.js +44 -0
- package/src/components/charts/components/GanttChart/CoordinateSystem.js +358 -0
- package/src/components/charts/components/GanttChart/TimeLine.js +379 -0
- package/src/components/charts/components/GanttChart/constant.js +71 -0
- package/src/components/charts/components/GanttChart/index.js +51 -0
- package/src/components/charts/components/GanttChart/index.less +267 -0
- package/src/components/charts/components/GanttChart/util.js +335 -0
- package/src/components/charts/components/GaugeChart/BaseOption.js +22 -0
- package/src/components/charts/components/GaugeChart/chartToken.js +17 -0
- package/src/components/charts/components/GaugeChart/handleOptipn.js +22 -0
- package/src/components/charts/components/GaugeChart/handleSeries.js +504 -0
- package/src/components/charts/components/GaugeChart/index.js +53 -0
- package/src/components/charts/components/GraphChart/index.js +34 -0
- package/src/components/charts/components/GraphTreeChart/BaseOption.js +42 -0
- package/src/components/charts/components/GraphTreeChart/handleData.js +118 -0
- package/src/components/charts/components/GraphTreeChart/handleOption.js +142 -0
- package/src/components/charts/components/GraphTreeChart/index.js +65 -0
- package/src/components/charts/components/GraphTreeChart/mixTree.js +36 -0
- package/src/components/charts/components/GraphTreeChart/utils.js +75 -0
- package/src/components/charts/components/HeatMapChart/BaseOption.js +66 -0
- package/src/components/charts/components/HeatMapChart/chartToken.js +17 -0
- package/src/components/charts/components/HeatMapChart/handleData.js +138 -0
- package/src/components/charts/components/HeatMapChart/handleOptipn.js +227 -0
- package/src/components/charts/components/HeatMapChart/handleSeries.js +82 -0
- package/src/components/charts/components/HeatMapChart/handleVisualMap.js +91 -0
- package/src/components/charts/components/HeatMapChart/index.js +70 -0
- package/src/components/charts/components/HillChart/baseOption.js +50 -0
- package/src/components/charts/components/HillChart/chartToken.js +17 -0
- package/src/components/charts/components/HillChart/handleOption.js +193 -0
- package/src/components/charts/components/HillChart/handleSeries.js +39 -0
- package/src/components/charts/components/HillChart/index.js +96 -0
- package/src/components/charts/components/HoneycombChart/NodeManager.js +172 -0
- package/src/components/charts/components/HoneycombChart/TipManager.js +75 -0
- package/src/components/charts/components/HoneycombChart/index.js +117 -0
- package/src/components/charts/components/HoneycombChart/index.less +49 -0
- package/src/components/charts/components/JadeJueChart/BaseOption.js +40 -0
- package/src/components/charts/components/JadeJueChart/chartToken.js +17 -0
- package/src/components/charts/components/JadeJueChart/handleOption.js +262 -0
- package/src/components/charts/components/JadeJueChart/handleSeries.js +246 -0
- package/src/components/charts/components/JadeJueChart/index.js +71 -0
- package/src/components/charts/components/JadeJueChart/labelFormatter.js +131 -0
- package/src/components/charts/components/LineChart/AreaChart/bottomArea.js +177 -0
- package/src/components/charts/components/LineChart/AreaChart/chartToken.js +17 -0
- package/src/components/charts/components/LineChart/AreaChart/index.js +18 -0
- package/src/components/charts/components/LineChart/AreaChart/topArea.js +139 -0
- package/src/components/charts/components/LineChart/chartToken.js +17 -0
- package/src/components/charts/components/LineChart/handleOptipn.js +145 -0
- package/src/components/charts/components/LineChart/handlePredict.js +73 -0
- package/src/components/charts/components/LineChart/handleSeries.js +266 -0
- package/src/components/charts/components/LineChart/handleVisualMap.js +138 -0
- package/src/components/charts/components/LineChart/index.js +133 -0
- package/src/components/charts/components/LiquidfillChart/chartToken.js +17 -0
- package/src/components/charts/components/LiquidfillChart/handleSeries.js +170 -0
- package/src/components/charts/components/LiquidfillChart/index.js +43 -0
- package/src/components/charts/components/LiquidfillChart/plugSeries.js +78 -0
- package/src/components/charts/components/LiquidfillChart/plugShape.js +163 -0
- package/src/components/charts/components/LiquidfillChart/plugView.js +537 -0
- package/src/components/charts/components/MilestoneChart/Layout.js +183 -0
- package/src/components/charts/components/MilestoneChart/Node.js +319 -0
- package/src/components/charts/components/MilestoneChart/assets/next.svg +7 -0
- package/src/components/charts/components/MilestoneChart/assets/prev.svg +7 -0
- package/src/components/charts/components/MilestoneChart/assets/prompt.svg +9 -0
- package/src/components/charts/components/MilestoneChart/index.js +108 -0
- package/src/components/charts/components/MilestoneChart/index.less +244 -0
- package/src/components/charts/components/MilestoneChart/insertDom.js +32 -0
- package/src/components/charts/components/MilestoneChart/insertIcon.js +24 -0
- package/src/components/charts/components/MilestoneChart/insertSvg.js +109 -0
- package/src/components/charts/components/OrganizationChart/NodeManager.js +188 -0
- package/src/components/charts/components/OrganizationChart/RotateManager.js +349 -0
- package/src/components/charts/components/OrganizationChart/index.js +124 -0
- package/src/components/charts/components/OrganizationChart/index.less +112 -0
- package/src/components/charts/components/PieChart/chartToken.js +17 -0
- package/src/components/charts/components/PieChart/handleLabel.js +94 -0
- package/src/components/charts/components/PieChart/handleMulti.js +131 -0
- package/src/components/charts/components/PieChart/handleSeries.js +236 -0
- package/src/components/charts/components/PieChart/index.js +58 -0
- package/src/components/charts/components/PolarBarChart/chartToken.js +17 -0
- package/src/components/charts/components/PolarBarChart/handleOption.js +102 -0
- package/src/components/charts/components/PolarBarChart/handleSeries.js +127 -0
- package/src/components/charts/components/PolarBarChart/index.js +62 -0
- package/src/components/charts/components/ProcessChart/BaseOption.js +296 -0
- package/src/components/charts/components/ProcessChart/chartToken.js +17 -0
- package/src/components/charts/components/ProcessChart/handleData.js +156 -0
- package/src/components/charts/components/ProcessChart/handleOption.js +212 -0
- package/src/components/charts/components/ProcessChart/handleSeries.js +369 -0
- package/src/components/charts/components/ProcessChart/index.js +76 -0
- package/src/components/charts/components/RadarChart/BaseOption.js +248 -0
- package/src/components/charts/components/RadarChart/GradientRadar/index.js +421 -0
- package/src/components/charts/components/RadarChart/chartToken.js +17 -0
- package/src/components/charts/components/RadarChart/handleOptipn.js +316 -0
- package/src/components/charts/components/RadarChart/handleSeries.js +120 -0
- package/src/components/charts/components/RadarChart/index.js +77 -0
- package/src/components/charts/components/RegionChart/chartToken.js +17 -0
- package/src/components/charts/components/RegionChart/handleOption.js +29 -0
- package/src/components/charts/components/RegionChart/index.js +49 -0
- package/src/components/charts/components/RiverChart/Belt.js +181 -0
- package/src/components/charts/components/RiverChart/Manager.js +173 -0
- package/src/components/charts/components/RiverChart/Node.js +425 -0
- package/src/components/charts/components/RiverChart/baseOption.js +51 -0
- package/src/components/charts/components/RiverChart/index.js +79 -0
- package/src/components/charts/components/RiverChart/index.less +42 -0
- package/src/components/charts/components/RiverChart/util.js +160 -0
- package/src/components/charts/components/SankeyChart/BaseOption.js +74 -0
- package/src/components/charts/components/SankeyChart/chartToken.js +17 -0
- package/src/components/charts/components/SankeyChart/handleOption.js +258 -0
- package/src/components/charts/components/SankeyChart/index.js +111 -0
- package/src/components/charts/components/SankeyChart/tooltip.js +53 -0
- package/src/components/charts/components/ScatterChart/chartToken.js +17 -0
- package/src/components/charts/components/ScatterChart/handleMarkPoint.js +74 -0
- package/src/components/charts/components/ScatterChart/handleOptipn.js +66 -0
- package/src/components/charts/components/ScatterChart/handleSeries.js +48 -0
- package/src/components/charts/components/ScatterChart/index.js +60 -0
- package/src/components/charts/components/SnowFlakeChart/BranchManager.js +324 -0
- package/src/components/charts/components/SnowFlakeChart/CommonConstant.js +111 -0
- package/src/components/charts/components/SnowFlakeChart/LeafManager.js +76 -0
- package/src/components/charts/components/SnowFlakeChart/NodeManager.js +240 -0
- package/src/components/charts/components/SnowFlakeChart/TagManager.js +80 -0
- package/src/components/charts/components/SnowFlakeChart/assets/down.svg +8 -0
- package/src/components/charts/components/SnowFlakeChart/assets/errorBg-leaf.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/errorBg.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/image2L.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/image2R.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/image5L.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/image5R.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/normalBg-leaf.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/normalBg.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/outerBorder.svg +24 -0
- package/src/components/charts/components/SnowFlakeChart/assets/outerBorderOverAll.svg +18 -0
- package/src/components/charts/components/SnowFlakeChart/assets/up.svg +8 -0
- package/src/components/charts/components/SnowFlakeChart/assets/warningBg-leaf.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/warningBg.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/wirelessL.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/wirelessR.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/defaultOption.js +285 -0
- package/src/components/charts/components/SnowFlakeChart/index.js +408 -0
- package/src/components/charts/components/SnowFlakeChart/index.less +503 -0
- package/src/components/charts/components/SnowFlakeChart/line/LineArrow.js +62 -0
- package/src/components/charts/components/SnowFlakeChart/line/LineDashed.js +29 -0
- package/src/components/charts/components/SnowFlakeChart/line/LineDotted.js +29 -0
- package/src/components/charts/components/SnowFlakeChart/line/LineStraight.js +28 -0
- package/src/components/charts/components/SnowFlakeChart/line/index.js +202 -0
- package/src/components/charts/components/SnowFlakeChart/util.js +430 -0
- package/src/components/charts/components/SunburstChart/chartToken.js +17 -0
- package/src/components/charts/components/SunburstChart/handleSeries.js +48 -0
- package/src/components/charts/components/SunburstChart/index.js +41 -0
- package/src/components/charts/components/TerraceChart/defaultGradient.js +116 -0
- package/src/components/charts/components/TerraceChart/defaultPath.js +30 -0
- package/src/components/charts/components/TerraceChart/index.js +276 -0
- package/src/components/charts/components/TerraceChart/index.less +171 -0
- package/src/components/charts/components/TerraceChart/insert.js +35 -0
- package/src/components/charts/components/TerraceChart/loading.js +34 -0
- package/src/components/charts/components/TimelineChart/chartToken.js +17 -0
- package/src/components/charts/components/TimelineChart/index.js +109 -0
- package/src/components/charts/components/TimelineChart/index.less +152 -0
- package/src/components/charts/components/TimelineChart/insertDom.js +45 -0
- package/src/components/charts/components/TimelineChart/timeline.js +461 -0
- package/src/components/charts/components/TreeChart/chartToken.js +17 -0
- package/src/components/charts/components/TreeChart/handleOptipn.js +101 -0
- package/src/components/charts/components/TreeChart/handleSeries.js +148 -0
- package/src/components/charts/components/TreeChart/index.js +50 -0
- package/src/components/charts/components/TreeMapChart/handleOptipn.js +57 -0
- package/src/components/charts/components/TreeMapChart/handleSeries.js +57 -0
- package/src/components/charts/components/TreeMapChart/handleVisualMap.js +31 -0
- package/src/components/charts/components/TreeMapChart/index.js +56 -0
- package/src/components/charts/components/WaveChart/chartToken.js +17 -0
- package/src/components/charts/components/WaveChart/index.js +418 -0
- package/src/components/charts/components/WaveChart/index.less +77 -0
- package/src/components/charts/components/WaveChart/insert.js +38 -0
- package/src/components/charts/components/WaveChart/loading.js +34 -0
- package/src/components/charts/components/WordCloudChart/BaseOption.js +19 -0
- package/src/components/charts/components/WordCloudChart/chartToken.js +17 -0
- package/src/components/charts/components/WordCloudChart/handleOptipn.js +20 -0
- package/src/components/charts/components/WordCloudChart/handleSeries.js +106 -0
- package/src/components/charts/components/WordCloudChart/index.js +67 -0
- package/src/components/charts/core.js +386 -0
- package/src/components/charts/feature/adaptive/index.js +46 -0
- package/src/components/charts/feature/adaptive/series/AssembleBubbleChart.js +22 -0
- package/src/components/charts/feature/adaptive/series/BarChart.js +27 -0
- package/src/components/charts/feature/adaptive/series/BoxplotChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/BubbleChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/BulletChart.js +27 -0
- package/src/components/charts/feature/adaptive/series/CircleProcessChart.js +25 -0
- package/src/components/charts/feature/adaptive/series/FunnelChart.js +22 -0
- package/src/components/charts/feature/adaptive/series/HeatMapChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/JadeJueChart.js +24 -0
- package/src/components/charts/feature/adaptive/series/LineChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/LiquidfillChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/PieChart.js +25 -0
- package/src/components/charts/feature/adaptive/series/PolarBarChart.js +22 -0
- package/src/components/charts/feature/adaptive/series/ScatterChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/SunburstChart.js +25 -0
- package/src/components/charts/feature/adaptive/utils/axis.js +26 -0
- package/src/components/charts/feature/adaptive/utils/label.js +30 -0
- package/src/components/charts/feature/adaptive/utils/legend.js +30 -0
- package/src/components/charts/feature/adaptive/utils/title.js +30 -0
- package/src/components/charts/feature/adaptive/utils/tooltip.js +30 -0
- package/src/components/charts/feature/axistip/index.js +116 -0
- package/src/components/charts/feature/card/chartToken.js +17 -0
- package/src/components/charts/feature/card/index.js +225 -0
- package/src/components/charts/feature/card/index.less +166 -0
- package/src/components/charts/feature/drag/index.js +353 -0
- package/src/components/charts/feature/drag/index.less +53 -0
- package/src/components/charts/feature/equalLabel/index.js +63 -0
- package/src/components/charts/feature/expandLegend/constants.js +22 -0
- package/src/components/charts/feature/expandLegend/index.js +190 -0
- package/src/components/charts/feature/expandLegend/index.less +1044 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/constants.js +40 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/index.js +157 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/item.js +133 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/position.js +44 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/search.js +79 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/constants.js +41 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/group.js +112 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/index.js +97 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/item.js +115 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/more.js +101 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/paging.js +103 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/scroll.js +33 -0
- package/src/components/charts/feature/expandLegend/mutiSelectList/constants.js +34 -0
- package/src/components/charts/feature/expandLegend/mutiSelectList/index.js +181 -0
- package/src/components/charts/feature/expandLegend/mutiSelectList/statisticList.js +146 -0
- package/src/components/charts/feature/expandLegend/singleSelect/constants.js +40 -0
- package/src/components/charts/feature/expandLegend/singleSelect/index.js +170 -0
- package/src/components/charts/feature/expandLegend/singleSelect/item.js +74 -0
- package/src/components/charts/feature/expandLegend/singleSelect/position.js +34 -0
- package/src/components/charts/feature/expandLegend/singleSelect/search.js +76 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/constants.js +41 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/group.js +116 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/index.js +97 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/item.js +113 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/more.js +40 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/scroll.js +33 -0
- package/src/components/charts/feature/expandLegend/tips/constants.js +21 -0
- package/src/components/charts/feature/expandLegend/tips/index.js +168 -0
- package/src/components/charts/feature/fluctuation/index.js +65 -0
- package/src/components/charts/feature/linter/dialog/index.js +111 -0
- package/src/components/charts/feature/linter/index.js +131 -0
- package/src/components/charts/feature/linter/lints/charts/Bar.js +46 -0
- package/src/components/charts/feature/linter/lints/charts/Line.js +31 -0
- package/src/components/charts/feature/linter/lints/charts/Pie.js +39 -0
- package/src/components/charts/feature/linter/lints/charts/Radar.js +38 -0
- package/src/components/charts/feature/linter/lints/charts/index.js +37 -0
- package/src/components/charts/feature/linter/lints/modules/angleAxis.js +47 -0
- package/src/components/charts/feature/linter/lints/modules/color.js +19 -0
- package/src/components/charts/feature/linter/lints/modules/dataZoom.js +52 -0
- package/src/components/charts/feature/linter/lints/modules/index.js +64 -0
- package/src/components/charts/feature/linter/lints/modules/legend.js +64 -0
- package/src/components/charts/feature/linter/lints/modules/radar.js +59 -0
- package/src/components/charts/feature/linter/lints/modules/radiusAxis.js +49 -0
- package/src/components/charts/feature/linter/lints/modules/title.js +44 -0
- package/src/components/charts/feature/linter/lints/modules/tooltip.js +29 -0
- package/src/components/charts/feature/linter/lints/modules/util.js +97 -0
- package/src/components/charts/feature/linter/lints/modules/xAxis.js +52 -0
- package/src/components/charts/feature/linter/lints/modules/yAxis.js +52 -0
- package/src/components/charts/feature/mediaScreen/index.js +95 -0
- package/src/components/charts/feature/mini/miniBarChart.js +58 -0
- package/src/components/charts/feature/mini/miniCircleProcessChart.js +32 -0
- package/src/components/charts/feature/mini/miniLineChart.js +58 -0
- package/src/components/charts/feature/mini/miniProcessChart.js +64 -0
- package/src/components/charts/feature/nodeRender/angular-node.js +100 -0
- package/src/components/charts/feature/nodeRender/index.js +31 -0
- package/src/components/charts/feature/nodeRender/react-node.js +83 -0
- package/src/components/charts/feature/nodeRender/vue-node.js +109 -0
- package/src/components/charts/feature/performance/lttb.js +85 -0
- package/src/components/charts/feature/readScreen/index.js +19 -0
- package/src/components/charts/feature/token/color/bpit/dark.js +67 -0
- package/src/components/charts/feature/token/color/bpit/index.js +20 -0
- package/src/components/charts/feature/token/color/bpit/light.js +66 -0
- package/src/components/charts/feature/token/color/cloud/board-dark.js +260 -0
- package/src/components/charts/feature/token/color/cloud/board.js +276 -0
- package/src/components/charts/feature/token/color/cloud/dark.js +78 -0
- package/src/components/charts/feature/token/color/cloud/index.js +20 -0
- package/src/components/charts/feature/token/color/cloud/light.js +77 -0
- package/src/components/charts/feature/token/color/hdesign/board.js +204 -0
- package/src/components/charts/feature/token/color/hdesign/dark.js +78 -0
- package/src/components/charts/feature/token/color/hdesign/index.js +20 -0
- package/src/components/charts/feature/token/color/hdesign/light.js +79 -0
- package/src/components/charts/feature/token/color/ict/board.js +190 -0
- package/src/components/charts/feature/token/color/ict/dark.js +61 -0
- package/src/components/charts/feature/token/color/ict/index.js +20 -0
- package/src/components/charts/feature/token/color/ict/light.js +62 -0
- package/src/components/charts/feature/token/color/index.js +29 -0
- package/src/components/charts/feature/token/color/util.js +42 -0
- package/src/components/charts/feature/token/factory/chartsToken/AreaChart.js +20 -0
- package/src/components/charts/feature/token/factory/chartsToken/AssembleBubbleChart.js +26 -0
- package/src/components/charts/feature/token/factory/chartsToken/BarChart.js +27 -0
- package/src/components/charts/feature/token/factory/chartsToken/BoxplotChart.js +27 -0
- package/src/components/charts/feature/token/factory/chartsToken/BubbleChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/BulletChart.js +23 -0
- package/src/components/charts/feature/token/factory/chartsToken/CandlestickChart.js +20 -0
- package/src/components/charts/feature/token/factory/chartsToken/ChartCard.js +33 -0
- package/src/components/charts/feature/token/factory/chartsToken/CircleProcessChart.js +23 -0
- package/src/components/charts/feature/token/factory/chartsToken/FunnelChart.js +26 -0
- package/src/components/charts/feature/token/factory/chartsToken/GaugeChart.js +27 -0
- package/src/components/charts/feature/token/factory/chartsToken/HeatMapChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/HillChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/JadeJueChart.js +28 -0
- package/src/components/charts/feature/token/factory/chartsToken/LineChart.js +36 -0
- package/src/components/charts/feature/token/factory/chartsToken/LiquidfillChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/PieChart.js +49 -0
- package/src/components/charts/feature/token/factory/chartsToken/PolarBarChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/ProcessChart.js +40 -0
- package/src/components/charts/feature/token/factory/chartsToken/RadarChart.js +36 -0
- package/src/components/charts/feature/token/factory/chartsToken/RegionChart.js +20 -0
- package/src/components/charts/feature/token/factory/chartsToken/SankeyChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/ScatterChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/SunburstChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/TimelineChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/TreeChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/WaveChart.js +23 -0
- package/src/components/charts/feature/token/factory/chartsToken/WordCloudChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/index.js +79 -0
- package/src/components/charts/feature/token/factory/getAliasToken.js +41 -0
- package/src/components/charts/feature/token/factory/getExportColors.js +46 -0
- package/src/components/charts/feature/token/factory/getGlobalToken.js +25 -0
- package/src/components/charts/feature/token/factory/getModelToken.js +389 -0
- package/src/components/charts/feature/token/factory/getSceneToken.js +41 -0
- package/src/components/charts/feature/token/factory/globalToken/border.js +21 -0
- package/src/components/charts/feature/token/factory/globalToken/borderRadius.js +22 -0
- package/src/components/charts/feature/token/factory/globalToken/font.js +26 -0
- package/src/components/charts/feature/token/factory/globalToken/index.js +28 -0
- package/src/components/charts/feature/token/factory/globalToken/lineType.js +19 -0
- package/src/components/charts/feature/token/factory/globalToken/size.js +22 -0
- package/src/components/charts/feature/token/factory/globalToken/space.js +25 -0
- package/src/components/charts/feature/token/factory/index.js +39 -0
- package/src/components/charts/feature/token/factory/mergeToken.js +72 -0
- package/src/components/charts/feature/token/index.js +176 -0
- package/src/components/charts/feature/token/readme.md +11 -0
- package/src/components/charts/feature/token/theme/bpit/index.js +19 -0
- package/src/components/charts/feature/token/theme/cloud/getAliasToken.js +247 -0
- package/src/components/charts/feature/token/theme/cloud/getSceneToken.js +74 -0
- package/src/components/charts/feature/token/theme/cloud/index.js +19 -0
- package/src/components/charts/feature/token/theme/hdesign/getAliasToken.js +249 -0
- package/src/components/charts/feature/token/theme/hdesign/getSceneToken.js +75 -0
- package/src/components/charts/feature/token/theme/hdesign/index.js +19 -0
- package/src/components/charts/feature/token/theme/ict/getAliasToken.js +249 -0
- package/src/components/charts/feature/token/theme/ict/getSceneToken.js +72 -0
- package/src/components/charts/feature/token/theme/ict/index.js +19 -0
- package/src/components/charts/feature/wcag/index.js +335 -0
- package/src/components/charts/feature/xss/index.js +52 -0
- package/src/components/charts/framework/charts/CircleArcChart/index.js +142 -0
- package/src/components/charts/framework/charts/CircleChart/index.js +140 -0
- package/src/components/charts/framework/charts/CustomizeChart/index.js +166 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/index.js +141 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/initDom.js +20 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/Node.js +148 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/center.js +71 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/collide.js +151 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/constant.js +17 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/dispatch.js +95 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/index.js +19 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/jiggle.js +16 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/lcg.js +23 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/link.js +128 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/manyBody.js +127 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/quadtree.js +393 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/radial.js +68 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/simulation.js +171 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/timer.js +121 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/x.js +52 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/y.js +52 -0
- package/src/components/charts/framework/charts/GridChart/index.js +174 -0
- package/src/components/charts/framework/charts/LinearArcChart/index.js +143 -0
- package/src/components/charts/framework/charts/MindmapChart/index.js +166 -0
- package/src/components/charts/framework/charts/MindmapChart/index.less +85 -0
- package/src/components/charts/framework/core/Base.js +53 -0
- package/src/components/charts/framework/core/Relation.js +78 -0
- package/src/components/charts/framework/module/animation/Animate.js +434 -0
- package/src/components/charts/framework/module/animation/Animation.js +76 -0
- package/src/components/charts/framework/module/animation/AnimationGroup.js +137 -0
- package/src/components/charts/framework/module/animation/Easing.js +225 -0
- package/src/components/charts/framework/module/animation/Interpolation.js +88 -0
- package/src/components/charts/framework/module/animation/index.js +20 -0
- package/src/components/charts/framework/module/arrow/Manager.js +133 -0
- package/src/components/charts/framework/module/arrow/index.js +96 -0
- package/src/components/charts/framework/module/canvas/grid.js +288 -0
- package/src/components/charts/framework/module/canvas/index.js +434 -0
- package/src/components/charts/framework/module/canvas/index.less +102 -0
- package/src/components/charts/framework/module/canvas/initDom.js +66 -0
- package/src/components/charts/framework/module/canvas/tool.js +62 -0
- package/src/components/charts/framework/module/connector/Manager.js +103 -0
- package/src/components/charts/framework/module/connector/index.js +99 -0
- package/src/components/charts/framework/module/connector/index.less +36 -0
- package/src/components/charts/framework/module/connector/type/dot.js +21 -0
- package/src/components/charts/framework/module/connector/type/expand.js +211 -0
- package/src/components/charts/framework/module/contextmenu/index.js +149 -0
- package/src/components/charts/framework/module/contextmenu/index.less +40 -0
- package/src/components/charts/framework/module/data/Manager.js +56 -0
- package/src/components/charts/framework/module/data/index.js +0 -0
- package/src/components/charts/framework/module/legend/Item.js +218 -0
- package/src/components/charts/framework/module/legend/constants.js +14 -0
- package/src/components/charts/framework/module/legend/getSymbol.js +86 -0
- package/src/components/charts/framework/module/legend/index.js +119 -0
- package/src/components/charts/framework/module/legend/util.js +81 -0
- package/src/components/charts/framework/module/line/Animation.js +125 -0
- package/src/components/charts/framework/module/line/Manager.js +299 -0
- package/src/components/charts/framework/module/line/Tag.js +61 -0
- package/src/components/charts/framework/module/line/bufferRender.js +74 -0
- package/src/components/charts/framework/module/line/cross/pathPoints.js +233 -0
- package/src/components/charts/framework/module/line/cross/vectorUtil.js +67 -0
- package/src/components/charts/framework/module/line/customize.js +29 -0
- package/src/components/charts/framework/module/line/index.js +260 -0
- package/src/components/charts/framework/module/line/index.less +24 -0
- package/src/components/charts/framework/module/line/type/Bezier.js +90 -0
- package/src/components/charts/framework/module/line/type/Circle.js +38 -0
- package/src/components/charts/framework/module/line/type/Direct.js +23 -0
- package/src/components/charts/framework/module/line/type/Ellipse.js +88 -0
- package/src/components/charts/framework/module/line/type/Round.js +245 -0
- package/src/components/charts/framework/module/lineLayout/CircleShape/calculate.js +71 -0
- package/src/components/charts/framework/module/lineLayout/CircleShape/index.js +32 -0
- package/src/components/charts/framework/module/lineLayout/CircleShape/init.js +34 -0
- package/src/components/charts/framework/module/lineLayout/RectShape/calculate.js +174 -0
- package/src/components/charts/framework/module/lineLayout/RectShape/index.js +43 -0
- package/src/components/charts/framework/module/lineLayout/RectShape/init.js +79 -0
- package/src/components/charts/framework/module/lineLayout/RectShape/sharing.js +57 -0
- package/src/components/charts/framework/module/lineLayout/index.js +30 -0
- package/src/components/charts/framework/module/node/Manager.js +190 -0
- package/src/components/charts/framework/module/node/bufferRender.js +73 -0
- package/src/components/charts/framework/module/node/convertData/index.js +24 -0
- package/src/components/charts/framework/module/node/convertData/returnSelf.js +16 -0
- package/src/components/charts/framework/module/node/convertData/transform.js +24 -0
- package/src/components/charts/framework/module/node/convertData/treeToLink.js +36 -0
- package/src/components/charts/framework/module/node/index.js +187 -0
- package/src/components/charts/framework/module/nodeLayout/circle/excute.js +270 -0
- package/src/components/charts/framework/module/nodeLayout/circle/index.js +24 -0
- package/src/components/charts/framework/module/nodeLayout/customize/index.js +16 -0
- package/src/components/charts/framework/module/nodeLayout/defaults/excute.js +27 -0
- package/src/components/charts/framework/module/nodeLayout/defaults/index.js +20 -0
- package/src/components/charts/framework/module/nodeLayout/grid/excute.js +392 -0
- package/src/components/charts/framework/module/nodeLayout/grid/index.js +20 -0
- package/src/components/charts/framework/module/nodeLayout/index.js +27 -0
- package/src/components/charts/framework/module/nodeLayout/linearArc/index.js +34 -0
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/NodeBox.js +165 -0
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/algorithm.js +261 -0
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/index.js +278 -0
- package/src/components/charts/framework/module/readme.js +127 -0
- package/src/components/charts/index.js +65 -0
- package/src/components/charts/index.less +29 -0
- package/src/components/charts/option/PolarSys/index.js +43 -0
- package/src/components/charts/option/RectSys/index.js +58 -0
- package/src/components/charts/option/base/index.js +25 -0
- package/src/components/charts/option/config/angleAxis/base.js +56 -0
- package/src/components/charts/option/config/angleAxis/index.js +43 -0
- package/src/components/charts/option/config/animation/index.js +64 -0
- package/src/components/charts/option/config/datazoom/base.js +123 -0
- package/src/components/charts/option/config/datazoom/index.js +61 -0
- package/src/components/charts/option/config/grid/base.js +22 -0
- package/src/components/charts/option/config/grid/index.js +32 -0
- package/src/components/charts/option/config/legend/base.js +80 -0
- package/src/components/charts/option/config/legend/icon.js +21 -0
- package/src/components/charts/option/config/legend/index.js +63 -0
- package/src/components/charts/option/config/legend/itemStyle.js +17 -0
- package/src/components/charts/option/config/legend/ldata.js +29 -0
- package/src/components/charts/option/config/legend/pageIcon.js +54 -0
- package/src/components/charts/option/config/legend/position.js +19 -0
- package/src/components/charts/option/config/legend/size.js +17 -0
- package/src/components/charts/option/config/legend/textStyle.js +16 -0
- package/src/components/charts/option/config/mark/index.js +74 -0
- package/src/components/charts/option/config/polar/base.js +30 -0
- package/src/components/charts/option/config/polar/index.js +36 -0
- package/src/components/charts/option/config/polarTitle/base.js +40 -0
- package/src/components/charts/option/config/polarTitle/index.js +52 -0
- package/src/components/charts/option/config/polarTitle/subtextStyle.js +21 -0
- package/src/components/charts/option/config/polarTitle/textStyle.js +22 -0
- package/src/components/charts/option/config/radiusAxis/base.js +55 -0
- package/src/components/charts/option/config/radiusAxis/index.js +41 -0
- package/src/components/charts/option/config/rectTitle/base.js +31 -0
- package/src/components/charts/option/config/rectTitle/index.js +53 -0
- package/src/components/charts/option/config/toolbox/base.js +42 -0
- package/src/components/charts/option/config/toolbox/index.js +12 -0
- package/src/components/charts/option/config/tooltip/axisPointer.js +31 -0
- package/src/components/charts/option/config/tooltip/base.js +62 -0
- package/src/components/charts/option/config/tooltip/formatter.js +64 -0
- package/src/components/charts/option/config/tooltip/index.js +41 -0
- package/src/components/charts/option/config/visualMap/index.js +91 -0
- package/src/components/charts/option/config/xAxis/axisLabel.js +35 -0
- package/src/components/charts/option/config/xAxis/axisLine.js +29 -0
- package/src/components/charts/option/config/xAxis/axisMargin.js +31 -0
- package/src/components/charts/option/config/xAxis/base.js +66 -0
- package/src/components/charts/option/config/xAxis/boundaryGap.js +17 -0
- package/src/components/charts/option/config/xAxis/index.js +52 -0
- package/src/components/charts/option/config/xAxis/name.js +18 -0
- package/src/components/charts/option/config/xAxis/xdata.js +23 -0
- package/src/components/charts/option/config/xAxis/xkey.js +21 -0
- package/src/components/charts/option/config/yAxis/axisOptimization.js +32 -0
- package/src/components/charts/option/config/yAxis/base.js +59 -0
- package/src/components/charts/option/config/yAxis/index.js +68 -0
- package/src/components/charts/option/config/yAxis/ydata.js +28 -0
- package/src/components/charts/option/init/index.js +204 -0
- package/src/components/charts/register.js +178 -0
- package/src/components/charts/theme.js +62 -0
- package/src/components/charts/util/Sequence.js +21 -0
- package/src/components/charts/util/centerDom.js +92 -0
- package/src/components/charts/util/cloneDeep.js +29 -0
- package/src/components/charts/util/color.js +193 -0
- package/src/components/charts/util/constants.js +125 -0
- package/src/components/charts/util/convert.js +49 -0
- package/src/components/charts/util/debounce.js +24 -0
- package/src/components/charts/util/defendXSS.js +81 -0
- package/src/components/charts/util/dom.js +90 -0
- package/src/components/charts/util/equal.js +62 -0
- package/src/components/charts/util/event.js +25 -0
- package/src/components/charts/util/hashMap.js +111 -0
- package/src/components/charts/util/init/insert.js +165 -0
- package/src/components/charts/util/math.js +183 -0
- package/src/components/charts/util/merge.js +78 -0
- package/src/components/charts/util/paint.js +98 -0
- package/src/components/charts/util/sort/max.js +64 -0
- package/src/components/charts/util/sort/min.js +64 -0
- package/src/components/charts/util/throttle.js +34 -0
- package/src/components/charts/util/tips.js +25 -0
- package/src/components/charts/util/type.js +46 -0
- package/src/components/ebiz-form/components/cascader.vue +61 -0
- package/src/components/ebiz-form/components/checkbox.vue +37 -0
- package/src/components/ebiz-form/components/city.vue +137 -0
- package/src/components/ebiz-form/components/date-panel.vue +52 -0
- package/src/components/ebiz-form/components/date-range-panel.vue +52 -0
- package/src/components/ebiz-form/components/date-range.vue +56 -0
- package/src/components/ebiz-form/components/date.vue +52 -0
- package/src/components/ebiz-form/components/editor-multi-language.vue +47 -0
- package/src/components/ebiz-form/components/editor.vue +78 -0
- package/src/components/ebiz-form/components/file-multi-language.vue +52 -0
- package/src/components/ebiz-form/components/file.vue +149 -0
- package/src/components/ebiz-form/components/images-multi-language.vue +52 -0
- package/src/components/ebiz-form/components/images.vue +129 -0
- package/src/components/ebiz-form/components/img-multi-language.vue +51 -0
- package/src/components/ebiz-form/components/img.vue +129 -0
- package/src/components/ebiz-form/components/number.vue +50 -0
- package/src/components/ebiz-form/components/radio.vue +28 -0
- package/src/components/ebiz-form/components/select.vue +119 -0
- package/src/components/ebiz-form/components/switch.vue +23 -0
- package/src/components/ebiz-form/components/text-multi-language.vue +47 -0
- package/src/components/ebiz-form/components/text.vue +52 -0
- package/src/components/ebiz-form/components/textarea-multi-language.vue +48 -0
- package/src/components/ebiz-form/components/textarea.vue +29 -0
- package/src/components/ebiz-form/components/video-multi-language.vue +51 -0
- package/src/components/ebiz-form/components/video.vue +97 -0
- package/src/components/ebiz-form/index.vue +157 -0
- package/src/components/icons/IconCommunity.vue +7 -0
- package/src/components/icons/IconDocumentation.vue +7 -0
- package/src/components/icons/IconEcosystem.vue +7 -0
- package/src/components/icons/IconSupport.vue +7 -0
- package/src/components/icons/IconTooling.vue +19 -0
- package/src/index.js +84 -0
- package/src/main.js +57 -0
- package/src/router/index.js +155 -0
- package/src/utils/formatCode.js +24 -0
- package/src/utils/generateImportStatement.js +52 -0
- package/src/utils/hasJsx.js +25 -0
- package/src/utils/index.js +166 -0
- package/src/utils/mergeOptions.js +29 -0
- package/src/utils/parseRequiredBlocks.js +18 -0
- package/src/utils/upload.ts +126 -0
- package/src/utils/vue-sfc-validator.js +155 -0
- package/src/views/Button.vue +20 -0
- package/src/views/DataContainer.vue +20 -0
- package/src/views/EbizSpace.vue +186 -0
- package/src/views/EbizSwiper.vue +158 -0
- package/src/views/Form.vue +20 -0
- package/src/views/Home.vue +79 -0
- package/src/views/Mindmap.vue +20 -0
- package/src/views/MyComponent.vue +20 -0
- package/src/views/OkrTree.vue +20 -0
- package/src/views/RemoteSelect.vue +20 -0
- package/src/views/Table.vue +20 -0
- package/src/views/TagDemo.vue +102 -0
- package/src/views/TdesignButton.vue +191 -0
- package/src/views/TdesignCalendar.vue +95 -0
- package/src/views/TdesignCard.vue +297 -0
- package/src/views/TdesignCollapse.vue +294 -0
- package/src/views/TdesignDatePicker.vue +188 -0
- package/src/views/TdesignForm.vue +249 -0
- package/src/views/TdesignIcon.vue +204 -0
- package/src/views/TdesignImage.vue +216 -0
- package/src/views/TdesignImageViewer.vue +199 -0
- package/src/views/TdesignInput.vue +253 -0
- package/src/views/TdesignSelect.vue +474 -0
- package/src/views/TdesignSwiper.vue +158 -0
- package/src/views/Title.vue +20 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import tooltip from '../../option/config/tooltip'
|
13
|
+
import { CHART_TYPE } from '../../util/constants';
|
14
|
+
/**
|
15
|
+
* 配置鼠标悬浮提示框
|
16
|
+
*/
|
17
|
+
export function setTooltip(iChartOpt) {
|
18
|
+
const basicTip=tooltip(iChartOpt,CHART_TYPE.WORD_CLOUD)
|
19
|
+
return basicTip;
|
20
|
+
}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import { getColor } from '../../util/color';
|
13
|
+
import cloneDeep from '../../util/cloneDeep';
|
14
|
+
import chartToken from './chartToken';
|
15
|
+
import {random} from '../../util/math';
|
16
|
+
|
17
|
+
export const seriesInit = {
|
18
|
+
type: 'wordCloud',
|
19
|
+
// 网格大小,各项之间间距
|
20
|
+
gridSize: 16,
|
21
|
+
// 形状支持 circle 圆,cardioid 心, diamond 菱形, triangle-forward 、triangle 三角,star五角星
|
22
|
+
shape: 'circle',
|
23
|
+
// 字体大小范围
|
24
|
+
sizeRange: [16, 64],
|
25
|
+
// 文字旋转角度范围
|
26
|
+
rotationRange: [0, 0],
|
27
|
+
// 旋转步值
|
28
|
+
rotationStep: 0,
|
29
|
+
// 画布位置
|
30
|
+
top: 'center',
|
31
|
+
left: 'center',
|
32
|
+
right: null,
|
33
|
+
bottom: null,
|
34
|
+
// 画布宽
|
35
|
+
width: '75%',
|
36
|
+
// 画布高
|
37
|
+
height: '80%',
|
38
|
+
// 是否渲染超出画布的文字
|
39
|
+
drawOutOfBound: false,
|
40
|
+
// 文字显示时动画
|
41
|
+
layoutAnimation: true,
|
42
|
+
// 文字颜色
|
43
|
+
textStyle: {
|
44
|
+
color() {
|
45
|
+
return `rgb(${[Math.round(random() * 256), Math.round(random() * 256), Math.round(random() * 256)].join(
|
46
|
+
',',
|
47
|
+
)})`;
|
48
|
+
},
|
49
|
+
},
|
50
|
+
// hover时样式
|
51
|
+
emphasis: {
|
52
|
+
// focus: 'self',
|
53
|
+
textStyle: {
|
54
|
+
textShadowBlur: 20,
|
55
|
+
textShadowOffsetY: 2,
|
56
|
+
textShadowOffsetX: 2,
|
57
|
+
textShadowColor: '#191919',
|
58
|
+
},
|
59
|
+
},
|
60
|
+
data: [],
|
61
|
+
};
|
62
|
+
|
63
|
+
/**
|
64
|
+
* 组装echarts所需要的series
|
65
|
+
* @param {主题} theme
|
66
|
+
* @param {数据} data
|
67
|
+
* @returns
|
68
|
+
*/
|
69
|
+
function handleSeries(params) {
|
70
|
+
const { data, width, height, gridSize, sizeRange, rotationRange, rotationStep, shape, maskImage, textColor, colors } =
|
71
|
+
params;
|
72
|
+
seriesInit.emphasis.textStyle.textShadowColor = chartToken.emphasisTextShadowColor;
|
73
|
+
// 组装数据
|
74
|
+
const series = [];
|
75
|
+
const seriesUnit = cloneDeep(seriesInit);
|
76
|
+
// 自定义图形
|
77
|
+
if (maskImage) {
|
78
|
+
seriesUnit.maskImage = maskImage;
|
79
|
+
}
|
80
|
+
seriesUnit.width = width || '75%';
|
81
|
+
seriesUnit.height = height || '80%';
|
82
|
+
// 网格大小,各项之间间距
|
83
|
+
seriesUnit.gridSize = gridSize || 16;
|
84
|
+
// 字体大小范围
|
85
|
+
seriesUnit.sizeRange = sizeRange || [16, 64];
|
86
|
+
// 文字旋转角度范围
|
87
|
+
seriesUnit.rotationRange = rotationRange || [0, 0];
|
88
|
+
// 文字旋转步值
|
89
|
+
seriesUnit.rotationStep = rotationStep || 0;
|
90
|
+
// 词云形状
|
91
|
+
seriesUnit.shape = shape || 'circle';
|
92
|
+
// 自定义文本颜色
|
93
|
+
if (textColor) {
|
94
|
+
seriesUnit.textStyle.color = textColor;
|
95
|
+
} else {
|
96
|
+
seriesUnit.textStyle.color = data => {
|
97
|
+
const index = data.dataIndex;
|
98
|
+
return getColor(colors, index);
|
99
|
+
};
|
100
|
+
}
|
101
|
+
seriesUnit.data = data;
|
102
|
+
series.push(seriesUnit);
|
103
|
+
return series;
|
104
|
+
}
|
105
|
+
|
106
|
+
export default handleSeries;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import BaseOption from './BaseOption';
|
13
|
+
import cloneDeep from '../../util/cloneDeep';
|
14
|
+
import { setTooltip } from './handleOptipn';
|
15
|
+
import handleSeries from './handleSeries';
|
16
|
+
import init from '../../option/init';
|
17
|
+
import { CHART_TYPE } from '../../util/constants';
|
18
|
+
|
19
|
+
class WordCloudChart {
|
20
|
+
|
21
|
+
static name = CHART_TYPE.WORD_CLOUD
|
22
|
+
|
23
|
+
constructor(iChartOption) {
|
24
|
+
this.baseOption = {};
|
25
|
+
this.iChartOption = {};
|
26
|
+
this.baseOption = cloneDeep(BaseOption);
|
27
|
+
// 组装 iChartOption, 补全默认值
|
28
|
+
this.iChartOption = init(iChartOption);
|
29
|
+
// 根据 iChartOption 组装 baseOption
|
30
|
+
this.updateOption();
|
31
|
+
}
|
32
|
+
|
33
|
+
updateOption() {
|
34
|
+
const iChartOption = this.iChartOption;
|
35
|
+
// 图表基础颜色
|
36
|
+
this.baseOption.color = iChartOption.color;
|
37
|
+
// 图表鼠标悬浮提示框
|
38
|
+
this.baseOption.tooltip = setTooltip(iChartOption);
|
39
|
+
// 数据
|
40
|
+
this.baseOption.series = handleSeries({
|
41
|
+
data: iChartOption.data,
|
42
|
+
width: iChartOption.width,
|
43
|
+
height: iChartOption.height,
|
44
|
+
gridSize: iChartOption.gridSize,
|
45
|
+
sizeRang: iChartOption.sizeRange,
|
46
|
+
rotationRange: iChartOption.rotationRange,
|
47
|
+
rotationStep: iChartOption.rotationStep,
|
48
|
+
shape: iChartOption.shape,
|
49
|
+
maskImage: iChartOption.maskImage,
|
50
|
+
textColor: iChartOption.textColor,
|
51
|
+
colors: this.baseOption.color,
|
52
|
+
});
|
53
|
+
// 图表位置
|
54
|
+
this.baseOption.grid.top = iChartOption.padding[0];
|
55
|
+
this.baseOption.grid.right = iChartOption.padding[1];
|
56
|
+
this.baseOption.grid.bottom = iChartOption.padding[2];
|
57
|
+
this.baseOption.grid.left = iChartOption.padding[3];
|
58
|
+
}
|
59
|
+
|
60
|
+
getOption() {
|
61
|
+
return this.baseOption;
|
62
|
+
}
|
63
|
+
|
64
|
+
setOption() {}
|
65
|
+
}
|
66
|
+
|
67
|
+
export default WordCloudChart;
|
@@ -0,0 +1,386 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import tips from './util/tips';
|
13
|
+
import * as echarts from 'echarts';
|
14
|
+
import Token from './feature/token';
|
15
|
+
import xssOption from './feature/xss';
|
16
|
+
import throttle from './util/throttle';
|
17
|
+
import axistip from './feature/axistip';
|
18
|
+
import BaseChart from './components/BaseChart';
|
19
|
+
import readScreen from './feature/readScreen';
|
20
|
+
import MediaScreen from './feature/mediaScreen';
|
21
|
+
import expandLegend from './feature/expandLegend';
|
22
|
+
import animation from './option/config/animation';
|
23
|
+
import merge, { mergeExtend } from './util/merge';
|
24
|
+
import WcagObserver from './feature/wcag';
|
25
|
+
import chartLinter from './feature/linter';
|
26
|
+
import { event } from './util/event'
|
27
|
+
import cloneDeep from './util/cloneDeep';
|
28
|
+
import { uuid } from './util/math';
|
29
|
+
import Theme from './theme';
|
30
|
+
|
31
|
+
const SELF_CHART = [
|
32
|
+
'FlowChart',
|
33
|
+
'WaveChart',
|
34
|
+
'TerraceChart',
|
35
|
+
'RiverChart',
|
36
|
+
'GanttChart',
|
37
|
+
'BaiduMapChart',
|
38
|
+
'HoneycombChart',
|
39
|
+
'OrganizationChart',
|
40
|
+
'AutonaviMapChart',
|
41
|
+
'SnowFlakeChart',
|
42
|
+
'TimelineChart',
|
43
|
+
'MilestoneChart',
|
44
|
+
'MindmapChart',
|
45
|
+
'ForceDirectedChart',
|
46
|
+
'GridChart',
|
47
|
+
'CircleChart',
|
48
|
+
'LinearArcChart',
|
49
|
+
'CircleArcChart',
|
50
|
+
'CustomizeChart'
|
51
|
+
];
|
52
|
+
|
53
|
+
// 图表核心对象,按需引入图表 class 给 CoreChart 渲染,打包容量较小
|
54
|
+
export default class CoreChart extends BaseChart {
|
55
|
+
constructor() {
|
56
|
+
super();
|
57
|
+
// 图表echarts实例
|
58
|
+
this.echartsIns = null;
|
59
|
+
// 图表icharts实例
|
60
|
+
this.ichartsIns = null;
|
61
|
+
// 图表echarts配置项
|
62
|
+
this.eChartOption = null;
|
63
|
+
// 图表icharts配置项
|
64
|
+
this.iChartOption = null;
|
65
|
+
// 图表所在容器
|
66
|
+
this.dom = null;
|
67
|
+
// 图表类型
|
68
|
+
this.chartClass = null;
|
69
|
+
// 图表依赖的三方插件
|
70
|
+
this.plugins = {};
|
71
|
+
// 图表还没有执行render()方法
|
72
|
+
this.hasRender = false;
|
73
|
+
// 图表渲染完毕的回调
|
74
|
+
this.renderCallBack = null;
|
75
|
+
// 图表resize节流时间
|
76
|
+
this.resizeThrottle = 0;
|
77
|
+
// 图表容器的宽高变化监听器
|
78
|
+
this.resizeObserver = null;
|
79
|
+
// 响应式布局的监听器
|
80
|
+
this.mediaScreenObserver = undefined;
|
81
|
+
// 图表可选择能力
|
82
|
+
this.wcagObserver = undefined;
|
83
|
+
// 图表uuid
|
84
|
+
this.uuid = `hui-charts-${uuid()}`;
|
85
|
+
}
|
86
|
+
|
87
|
+
// 注册主题
|
88
|
+
static registerTheme(name, config) {
|
89
|
+
if (!config) {
|
90
|
+
tips.error('The second parameter config is required');
|
91
|
+
return;
|
92
|
+
}
|
93
|
+
Token.set(name, config);
|
94
|
+
}
|
95
|
+
|
96
|
+
// 注册配置
|
97
|
+
static registerConfig(name, config) {
|
98
|
+
if (!config) {
|
99
|
+
tips.error('The second parameter config is required');
|
100
|
+
return;
|
101
|
+
}
|
102
|
+
Token.setConfig(name, config);
|
103
|
+
}
|
104
|
+
|
105
|
+
// 设置主题
|
106
|
+
static theme(name) {
|
107
|
+
Token.setDefaultTheme(name);
|
108
|
+
}
|
109
|
+
|
110
|
+
// 重置token变量
|
111
|
+
static resetThemeCongfig() {
|
112
|
+
Token.resetThemeCongfig();
|
113
|
+
}
|
114
|
+
|
115
|
+
// 开启响应式布局(类媒体查询效果)
|
116
|
+
mediaScreen(dom, screenOption) {
|
117
|
+
this.mediaScreenObserver = new MediaScreen(dom, screenOption, option => {
|
118
|
+
this.setSimpleOption(this.chartClass, option, this.plugins, false);
|
119
|
+
this.render();
|
120
|
+
});
|
121
|
+
}
|
122
|
+
|
123
|
+
// 初始化echarts,并同时监听容器和窗口的大小变化
|
124
|
+
init(chartDom, initOpts, theme = {}) {
|
125
|
+
const defaultInit = {
|
126
|
+
domResize: true,
|
127
|
+
windowResize: true,
|
128
|
+
resizeThrottle: this.resizeThrottle,
|
129
|
+
};
|
130
|
+
initOpts = merge(defaultInit, initOpts);
|
131
|
+
this.dom = chartDom;
|
132
|
+
this.echartsIns = echarts.init(chartDom, theme, initOpts);
|
133
|
+
// resize节流函数
|
134
|
+
this.throttleResize = initOpts.resizeThrottle === 0 ? this.setResize.bind(this) : throttle(initOpts.resizeThrottle, this.setResize.bind(this));
|
135
|
+
// 容器大小变化监听
|
136
|
+
initOpts.domResize && this.setResizeObserver();
|
137
|
+
// 页面大小变化监听
|
138
|
+
initOpts.windowResize && window.addEventListener('resize', this.throttleResize);
|
139
|
+
}
|
140
|
+
|
141
|
+
setResizeObserver() {
|
142
|
+
this.resizeObserver = new ResizeObserver(() => {
|
143
|
+
window.requestAnimationFrame(() => {
|
144
|
+
this.throttleResize();
|
145
|
+
});
|
146
|
+
});
|
147
|
+
this.resizeObserver.observe(this.dom);
|
148
|
+
}
|
149
|
+
|
150
|
+
// 图表宽高自适应
|
151
|
+
setResize() {
|
152
|
+
this.mediaScreenObserver && this.mediaScreenObserver.observe();
|
153
|
+
this.echartsIns && this.echartsIns.resize && this.echartsIns.resize({ width: 'auto' });
|
154
|
+
this.ichartsIns && this.ichartsIns.resize && this.ichartsIns.resize((resizedOption) => {
|
155
|
+
this.setOption(resizedOption);
|
156
|
+
});
|
157
|
+
}
|
158
|
+
|
159
|
+
// 传入简化后的icharts-option
|
160
|
+
setSimpleOption(ChartClass, iChartOption, plugins = {}, isInit = true) {
|
161
|
+
iChartOption = xssOption(iChartOption);
|
162
|
+
// 设定主题、自适应图表
|
163
|
+
if (isInit) {
|
164
|
+
Token.setDefaultTheme(Theme.globalName || iChartOption.theme);
|
165
|
+
this.mediaScreenObserver && this.mediaScreenObserver.setInitOption(iChartOption, ChartClass);
|
166
|
+
}
|
167
|
+
// 添加读屏能力
|
168
|
+
if (iChartOption.readScreen) {
|
169
|
+
readScreen(this.dom, iChartOption.readScreen);
|
170
|
+
}
|
171
|
+
// 如果是复杂图表,则重定向this指向
|
172
|
+
if (this.isSelfChart(ChartClass)) {
|
173
|
+
this.redirectSelfChart(ChartClass, iChartOption, plugins);
|
174
|
+
return;
|
175
|
+
}
|
176
|
+
this.initIChartOption = cloneDeep(iChartOption);
|
177
|
+
this.plugins = plugins;
|
178
|
+
this.chartClass = ChartClass;
|
179
|
+
this.iChartOption = iChartOption;
|
180
|
+
this.ichartsIns = new ChartClass(iChartOption, this.echartsIns, this.plugins);
|
181
|
+
this.eChartOption = this.ichartsIns.getOption();
|
182
|
+
// 配置图表事件
|
183
|
+
event(this.echartsIns, iChartOption.event);
|
184
|
+
axistip(this.dom, this.echartsIns, this.eChartOption, this.iChartOption.axistip);
|
185
|
+
mergeExtend(this.iChartOption, this.eChartOption);
|
186
|
+
}
|
187
|
+
|
188
|
+
// 若自研图表,走自研图表路径,并更改this指向
|
189
|
+
redirectSelfChart(SelfChart, option, plugins) {
|
190
|
+
const stateDom = this.dom.getElementsByClassName('huicharts-state-container')[0];
|
191
|
+
this.uninstall();
|
192
|
+
this.dom.innerHTML = '';
|
193
|
+
const instance = new SelfChart();
|
194
|
+
instance.init(this.dom);
|
195
|
+
instance.setSimpleOption(SelfChart, option, plugins);
|
196
|
+
instance.renderCallBack = this.renderCallBack;
|
197
|
+
if (stateDom) {
|
198
|
+
this.dom.appendChild(stateDom);
|
199
|
+
}
|
200
|
+
Object.setPrototypeOf(this, instance);
|
201
|
+
for (const key in this) {
|
202
|
+
if (Object.hasOwnProperty.call(this, key)) {
|
203
|
+
delete this[key];
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
// 判断是否为若自研图表
|
209
|
+
isSelfChart(chartClass) {
|
210
|
+
return SELF_CHART.includes(chartClass.name);
|
211
|
+
}
|
212
|
+
|
213
|
+
// 渲染图表
|
214
|
+
render(option) {
|
215
|
+
// 已经开始渲染
|
216
|
+
this.hasRender = true;
|
217
|
+
// 第一次渲染
|
218
|
+
this.setOption(this.eChartOption, option);
|
219
|
+
// 第二次渲染
|
220
|
+
this.setOptionAgain(this.eChartOption);
|
221
|
+
// 引用拓展图例
|
222
|
+
expandLegend(this);
|
223
|
+
// 图表渲染完成时回调
|
224
|
+
this.renderCallBack && this.renderCallBack(this.echartsIns);
|
225
|
+
// 监听全键盘事件
|
226
|
+
this.keyboardFocus();
|
227
|
+
// 收集实例
|
228
|
+
Theme.registerCharts(this, this.uuid);
|
229
|
+
}
|
230
|
+
|
231
|
+
// 第一次渲染: 调用echarts原生的setOption
|
232
|
+
setOption(eChartOption, option) {
|
233
|
+
option = merge({ notMerge: true }, option);
|
234
|
+
// 注入动画的配置
|
235
|
+
const animationConfig = animation();
|
236
|
+
eChartOption && merge(animationConfig, eChartOption);
|
237
|
+
eChartOption && this.echartsIns.setOption(animationConfig, option);
|
238
|
+
}
|
239
|
+
|
240
|
+
// 第二次渲染: 有些图表需要根据第一次渲染出来的结果进行二次计算
|
241
|
+
setOptionAgain() {
|
242
|
+
if (this.ichartsIns && this.ichartsIns.updateOptionAgain) {
|
243
|
+
// 根据网格重新计算option
|
244
|
+
this.ichartsIns.updateOptionAgain(this.echartsIns);
|
245
|
+
// 再次渲染
|
246
|
+
this.setOption(this.eChartOption);
|
247
|
+
}
|
248
|
+
}
|
249
|
+
|
250
|
+
// 监听全键盘事件
|
251
|
+
keyboardFocus() {
|
252
|
+
const { keyboardFocus, theme } = this.iChartOption || {};
|
253
|
+
if (keyboardFocus) {
|
254
|
+
if (this.wcagObserver) {
|
255
|
+
this.wcagObserver.unobserve();
|
256
|
+
}
|
257
|
+
this.wcagObserver = new WcagObserver(keyboardFocus, theme, this.echartsIns, this.eChartOption);
|
258
|
+
}
|
259
|
+
}
|
260
|
+
|
261
|
+
// 规范检查器
|
262
|
+
linter(action, displayMode) {
|
263
|
+
if (action !== 'check' && action !== 'fix') {
|
264
|
+
console.error('Invalid action');
|
265
|
+
return
|
266
|
+
}
|
267
|
+
chartLinter(this.chartClass.name, this.eChartOption, this.dom, action, displayMode);
|
268
|
+
}
|
269
|
+
|
270
|
+
// 图表刷新,包括刷新配置和数据
|
271
|
+
refresh(iChartOption) {
|
272
|
+
this.iChartOption = iChartOption;
|
273
|
+
this.setSimpleOption(this.chartClass, iChartOption, this.plugins);
|
274
|
+
this.render();
|
275
|
+
this.mediaScreenObserver && this.mediaScreenObserver.refresh();
|
276
|
+
}
|
277
|
+
|
278
|
+
// 图表刷新,仅刷新数据
|
279
|
+
refreshData(data) {
|
280
|
+
this.iChartOption.data = data;
|
281
|
+
this.refresh(this.iChartOption);
|
282
|
+
}
|
283
|
+
|
284
|
+
// 图表渲染完成时回调
|
285
|
+
onRenderReady(callback) {
|
286
|
+
this.renderCallBack = callback;
|
287
|
+
}
|
288
|
+
|
289
|
+
// 给echarts单独绑定事件
|
290
|
+
on(...rest) {
|
291
|
+
this.echartsIns && this.echartsIns.on(...rest);
|
292
|
+
}
|
293
|
+
|
294
|
+
// 给echarts单独解绑事件
|
295
|
+
off(...rest) {
|
296
|
+
this.echartsIns && this.echartsIns.off(...rest);
|
297
|
+
}
|
298
|
+
|
299
|
+
// 给echarts实例绑定事件
|
300
|
+
bindEvents(events) {
|
301
|
+
if (events && events.length !== 0) {
|
302
|
+
events.forEach(item => {
|
303
|
+
if (item.query) {
|
304
|
+
this.off(item.eventName, item.handler);
|
305
|
+
this.on(item.eventName, item.query, item.handler);
|
306
|
+
} else {
|
307
|
+
this.off(item.eventName, item.handler);
|
308
|
+
this.on(item.eventName, item.handler);
|
309
|
+
}
|
310
|
+
});
|
311
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
// 批量给echarts实例解绑事件
|
315
|
+
unbindEvents(events) {
|
316
|
+
if (events && events.length !== 0) {
|
317
|
+
events.forEach(item => {
|
318
|
+
if (item.handler) {
|
319
|
+
this.off(item.eventName, item.handler);
|
320
|
+
} else {
|
321
|
+
this.off(item.eventName);
|
322
|
+
}
|
323
|
+
});
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
327
|
+
// 卸载图表
|
328
|
+
uninstall() {
|
329
|
+
// 卸载window resize监听功能
|
330
|
+
window.removeEventListener('resize', this.throttleResize);
|
331
|
+
// 卸载container容器变化监听
|
332
|
+
if (this.resizeObserver) {
|
333
|
+
this.resizeObserver.unobserve(this.dom);
|
334
|
+
this.resizeObserver.disconnect();
|
335
|
+
this.resizeObserver = null;
|
336
|
+
}
|
337
|
+
// 卸载图表可选择能力监听事件
|
338
|
+
if (this.wcagObserver) {
|
339
|
+
this.wcagObserver.unobserve();
|
340
|
+
}
|
341
|
+
// 销毁ECharts实例
|
342
|
+
if (this.echartsIns && !this.echartsIns.isDisposed()) {
|
343
|
+
this.echartsIns.dispose();
|
344
|
+
}
|
345
|
+
this.echartsIns = null;
|
346
|
+
// 移除主题中收集的实例
|
347
|
+
Theme.deleteCharts(this.uuid);
|
348
|
+
}
|
349
|
+
|
350
|
+
// 获取到ECharts实例
|
351
|
+
getEchartsInstance() {
|
352
|
+
return this.echartsIns;
|
353
|
+
}
|
354
|
+
|
355
|
+
// 直接传入ECharts的原生配置项
|
356
|
+
setEchartsOption(option) {
|
357
|
+
option && (this.eChartOption = option);
|
358
|
+
}
|
359
|
+
|
360
|
+
// 获取到ECharts配置项
|
361
|
+
getEchartsOption() {
|
362
|
+
return this.eChartOption;
|
363
|
+
}
|
364
|
+
|
365
|
+
// 触发图表行为
|
366
|
+
dispatchAction(payload) {
|
367
|
+
this.echartsIns && this.echartsIns.dispatchAction(payload)
|
368
|
+
}
|
369
|
+
|
370
|
+
// 激活toolbox中的zoom缩放
|
371
|
+
toggleZoomSelectCursor(payload = {}) {
|
372
|
+
const mixPayload = {
|
373
|
+
type: 'takeGlobalCursor',
|
374
|
+
key: 'dataZoomSelect',
|
375
|
+
// 启动或关闭
|
376
|
+
dataZoomSelectActive: true,
|
377
|
+
...payload
|
378
|
+
}
|
379
|
+
this.dispatchAction(mixPayload)
|
380
|
+
}
|
381
|
+
|
382
|
+
// 重置数据
|
383
|
+
restoreToolbox() {
|
384
|
+
this.dispatchAction({ type: 'restore' })
|
385
|
+
}
|
386
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import BarChartOption from './series/BarChart.js'
|
13
|
+
import BulletChartOption from './series/BulletChart.js'
|
14
|
+
import PieChartOption from './series/PieChart.js'
|
15
|
+
import LineChartOption from './series/LineChart.js'
|
16
|
+
import FunnelChartOption from './series/FunnelChart.js'
|
17
|
+
import JadeJueChartOption from './series/JadeJueChart.js'
|
18
|
+
import BoxplotChartOption from './series/BoxplotChart.js'
|
19
|
+
import SunburstChartOption from './series/SunburstChart.js'
|
20
|
+
import PolarBarChartOption from './series/PolarBarChart.js'
|
21
|
+
import ScatterChartOption from './series/ScatterChart.js'
|
22
|
+
import HeatMapChartOption from './series/HeatMapChart.js'
|
23
|
+
import BubbleChartOption from './series/BubbleChart.js'
|
24
|
+
import CircleProcessChartOption from './series/CircleProcessChart.js'
|
25
|
+
import LiquidfillChartOption from './series/LiquidfillChart.js'
|
26
|
+
import AssembleBubbleChartOption from './series/AssembleBubbleChart.js'
|
27
|
+
|
28
|
+
const defaultOption = {
|
29
|
+
BarChart: BarChartOption,
|
30
|
+
BulletChart: BulletChartOption,
|
31
|
+
PieChart: PieChartOption,
|
32
|
+
LineChart: LineChartOption,
|
33
|
+
FunnelChart: FunnelChartOption,
|
34
|
+
JadeJueChart: JadeJueChartOption,
|
35
|
+
BoxplotChart: BoxplotChartOption,
|
36
|
+
SunburstChart: SunburstChartOption,
|
37
|
+
PolarBarChart: PolarBarChartOption,
|
38
|
+
ScatterChart: ScatterChartOption,
|
39
|
+
HeatMapChart: HeatMapChartOption,
|
40
|
+
BubbleChart: BubbleChartOption,
|
41
|
+
CircleProcessChart: CircleProcessChartOption,
|
42
|
+
LiquidfillChart: LiquidfillChartOption,
|
43
|
+
AssembleBubbleChart: AssembleBubbleChartOption
|
44
|
+
}
|
45
|
+
|
46
|
+
export default defaultOption
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import { polarSysLabel } from "../utils/label";
|
13
|
+
import { polarSysLegend } from "../utils/legend";
|
14
|
+
import { polarSysTooltip } from "../utils/tooltip";
|
15
|
+
|
16
|
+
const AssembleBubbleChartOption = [
|
17
|
+
polarSysLabel,
|
18
|
+
polarSysLegend,
|
19
|
+
polarSysTooltip
|
20
|
+
]
|
21
|
+
|
22
|
+
export default AssembleBubbleChartOption;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
// 柱状图的响应式配置
|
13
|
+
import axis from "../utils/axis"
|
14
|
+
import { rectSysLabel } from "../utils/label"
|
15
|
+
import { rectSysLegend } from "../utils/legend";
|
16
|
+
import { rectSysTitle } from "../utils/title";
|
17
|
+
import { rectSysTooltip } from "../utils/tooltip";
|
18
|
+
|
19
|
+
const BarChartOption = [
|
20
|
+
axis,
|
21
|
+
rectSysLabel,
|
22
|
+
rectSysLegend,
|
23
|
+
rectSysTitle,
|
24
|
+
rectSysTooltip
|
25
|
+
]
|
26
|
+
|
27
|
+
export default BarChartOption;
|