@hkyhy/marsun-components-core 0.1.3 → 0.1.8
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 +5 -7
- package/dist/_virtual/_commonjs-dynamic-modules.js +7 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +9 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/jszip.min.js +8 -0
- package/dist/_virtual/jszip.min.js.map +1 -0
- package/dist/_virtual/jszip2.min.js +5 -0
- package/dist/_virtual/jszip2.min.js.map +1 -0
- package/dist/_virtual/lodash.js +6 -0
- package/dist/_virtual/lodash.js.map +1 -0
- package/dist/_virtual/lodash2.js +5 -0
- package/dist/_virtual/lodash2.js.map +1 -0
- package/dist/components/AgentHub/AgentHubAccessGuard.d.ts +11 -0
- package/dist/components/AgentHub/AgentHubIndexRedirect.d.ts +8 -0
- package/dist/components/AgentHub/Chat/Action/CreateButton.d.ts +6 -0
- package/dist/components/AgentHub/Chat/Action/ManageActionButtons.d.ts +6 -0
- package/dist/components/AgentHub/Chat/Action/SessionActionButtons.d.ts +8 -0
- package/dist/components/AgentHub/Chat/Action/handlers.d.ts +11 -0
- package/dist/components/AgentHub/Chat/Action/index.d.ts +7 -0
- package/dist/components/AgentHub/Chat/Detail/ChatInput/index.d.ts +11 -0
- package/dist/components/AgentHub/Chat/Detail/CitationContent/index.d.ts +6 -0
- package/dist/components/AgentHub/Chat/Detail/CitationInlineBadge/index.d.ts +7 -0
- package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/index.d.ts +12 -0
- package/dist/components/AgentHub/Chat/Detail/CitationPanel/index.d.ts +9 -0
- package/dist/components/AgentHub/Chat/Detail/MermaidBlock/index.d.ts +7 -0
- package/dist/components/AgentHub/Chat/Detail/MessageActions/index.d.ts +33 -0
- package/dist/components/AgentHub/Chat/Detail/MessageEditPopover/index.d.ts +13 -0
- package/dist/components/AgentHub/Chat/Detail/MessageItem/index.d.ts +14 -0
- package/dist/components/AgentHub/Chat/Detail/ThinkingSection/index.d.ts +13 -0
- package/dist/components/AgentHub/Chat/Detail/index.d.ts +12 -0
- package/dist/components/AgentHub/Chat/Form/Form.d.ts +16 -0
- package/dist/components/AgentHub/Chat/Form/index.d.ts +2 -0
- package/dist/components/AgentHub/Chat/List/ChatCard/index.d.ts +11 -0
- package/dist/components/AgentHub/Chat/List/FilterBar.d.ts +7 -0
- package/dist/components/AgentHub/Chat/List/SessionSidebar/index.d.ts +15 -0
- package/dist/components/AgentHub/Chat/List/index.d.ts +6 -0
- package/dist/components/AgentHub/Chat/Modal/FormModal.d.ts +12 -0
- package/dist/components/AgentHub/Chat/Modal/index.d.ts +2 -0
- package/dist/components/AgentHub/Chat/constants/index.d.ts +1 -0
- package/dist/components/AgentHub/Chat/constants/types.d.ts +2 -0
- package/dist/components/AgentHub/Chat/hooks/index.d.ts +5 -0
- package/dist/components/AgentHub/Chat/hooks/useAutoScrollToBottom.d.ts +21 -0
- package/dist/components/AgentHub/Chat/hooks/useChat.d.ts +19 -0
- package/dist/components/AgentHub/Chat/hooks/useChatSessions.d.ts +20 -0
- package/dist/components/AgentHub/Chat/hooks/useSSECompletion.d.ts +13 -0
- package/dist/components/AgentHub/Chat/hooks/useTypewriter.d.ts +16 -0
- package/dist/components/AgentHub/Chat/index.d.ts +7 -0
- package/dist/components/AgentHub/Chat/utils/citationContent.d.ts +37 -0
- package/dist/components/AgentHub/Chat/utils/index.d.ts +5 -0
- package/dist/components/AgentHub/Chat/utils/messageContent.d.ts +18 -0
- package/dist/components/AgentHub/Chat/utils/sanitizeMermaidChart.d.ts +7 -0
- package/dist/components/AgentHub/Chat/utils/sessionMessages.d.ts +21 -0
- package/dist/components/AgentHub/Chat/utils/smoothScroll.d.ts +14 -0
- package/dist/components/AgentHub/ChatSessionAccessGuard.d.ts +8 -0
- package/dist/components/AgentHub/KnowledgeBase/Action/CreateButton.d.ts +6 -0
- package/dist/components/AgentHub/KnowledgeBase/Action/ManageActionButtons.d.ts +6 -0
- package/dist/components/AgentHub/KnowledgeBase/Action/handlers.d.ts +5 -0
- package/dist/components/AgentHub/KnowledgeBase/Action/index.d.ts +5 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/DocumentTable/index.d.ts +16 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/ParseStatusTag/index.d.ts +6 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/index.d.ts +4 -0
- package/dist/components/AgentHub/KnowledgeBase/Form/Form.d.ts +13 -0
- package/dist/components/AgentHub/KnowledgeBase/Form/index.d.ts +2 -0
- package/dist/components/AgentHub/KnowledgeBase/List/FilterBar.d.ts +7 -0
- package/dist/components/AgentHub/KnowledgeBase/List/KnowledgeCard/index.d.ts +11 -0
- package/dist/components/AgentHub/KnowledgeBase/List/index.d.ts +4 -0
- package/dist/components/AgentHub/KnowledgeBase/Modal/FormModal.d.ts +11 -0
- package/dist/components/AgentHub/KnowledgeBase/Modal/index.d.ts +2 -0
- package/dist/components/AgentHub/KnowledgeBase/constants/index.d.ts +1 -0
- package/dist/components/AgentHub/KnowledgeBase/constants/types.d.ts +16 -0
- package/dist/components/AgentHub/KnowledgeBase/hooks/index.d.ts +2 -0
- package/dist/components/AgentHub/KnowledgeBase/hooks/useKBDocuments.d.ts +10 -0
- package/dist/components/AgentHub/KnowledgeBase/hooks/useKnowledgeBase.d.ts +13 -0
- package/dist/components/AgentHub/KnowledgeBase/index.d.ts +7 -0
- package/dist/components/AgentHub/types.d.ts +83 -0
- package/dist/components/Auth/PermissionGuard.d.ts +19 -0
- package/dist/components/Auth/ProtectedRoute.d.ts +10 -0
- package/dist/components/Auth/hasPermission.d.ts +2 -0
- package/dist/components/Auth/index.d.ts +3 -0
- package/dist/components/Auth/types.d.ts +1 -0
- package/dist/components/Descriptions/CommonDescriptions.d.ts +23 -0
- package/dist/components/Descriptions/index.d.ts +2 -0
- package/dist/components/File/FileItem/index.d.ts +22 -0
- package/dist/components/File/FileLink/index.d.ts +8 -0
- package/dist/components/File/FilePreview/FilePreviewContent.d.ts +9 -0
- package/dist/components/File/FilePreview/FilePreviewContent.js +83 -0
- package/dist/components/File/FilePreview/FilePreviewContent.js.map +1 -0
- package/dist/components/File/FilePreview/index.d.ts +13 -0
- package/dist/components/File/FilePreview/index.js +46 -39
- package/dist/components/File/FilePreview/index.js.map +1 -1
- package/dist/components/File/FilePreview/style.module.scss.js +19 -2
- package/dist/components/File/FilePreview/style.module.scss.js.map +1 -1
- package/dist/components/File/FilePreviewLink/index.d.ts +13 -0
- package/dist/components/File/FilePreviewLink/index.js +61 -0
- package/dist/components/File/FilePreviewLink/index.js.map +1 -0
- package/dist/components/File/FilePreviewLink/style.module.scss.js +11 -0
- package/dist/components/File/FilePreviewLink/style.module.scss.js.map +1 -0
- package/dist/components/File/FilePreviewModal/index.d.ts +13 -0
- package/dist/components/File/FilePreviewModal/index.js +37 -8
- package/dist/components/File/FilePreviewModal/index.js.map +1 -1
- package/dist/components/File/fileDisplay.d.ts +11 -0
- package/dist/components/File/index.d.ts +12 -0
- package/dist/components/File/previewKind.d.ts +6 -0
- package/dist/components/File/previewKind.js +42 -0
- package/dist/components/File/previewKind.js.map +1 -0
- package/dist/components/File/types.d.ts +20 -0
- package/dist/components/Filter/CommonFilter/index.d.ts +41 -0
- package/dist/components/Filter/FilterDateRange/index.d.ts +18 -0
- package/dist/components/Filter/FilterInput/index.d.ts +10 -0
- package/dist/components/Filter/FilterNumberRange/index.d.ts +12 -0
- package/dist/components/Filter/FilterPanel/index.d.ts +11 -0
- package/dist/components/Filter/FilterPopover/index.d.ts +24 -0
- package/dist/components/Filter/FilterSelect/index.d.ts +18 -0
- package/dist/components/Filter/FilterTreeSelect/index.d.ts +22 -0
- package/dist/components/Filter/FilterTrigger/index.d.ts +16 -0
- package/dist/components/Filter/index.d.ts +30 -0
- package/dist/components/Filter/types.d.ts +35 -0
- package/dist/components/Filter/useFilterState.d.ts +49 -0
- package/dist/components/Form/FetchSelect.d.ts +21 -0
- package/dist/components/Form/FetchTreeSelect.d.ts +22 -0
- package/dist/components/Form/PersonOptionRow/index.d.ts +9 -0
- package/dist/components/Form/StepForm.d.ts +42 -0
- package/dist/components/Form/index.d.ts +8 -0
- package/dist/components/Icons/index.d.ts +85 -0
- package/dist/components/Layout/PageHeaderLayout/index.d.ts +12 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Modal/StepModal/index.d.ts +25 -0
- package/dist/components/Modal/StepModalTypes.d.ts +40 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Stat/StatCard/index.d.ts +22 -0
- package/dist/components/Stat/StatCardList.d.ts +26 -0
- package/dist/components/Stat/StatPendingBreakdown/index.d.ts +25 -0
- package/dist/components/Stat/index.d.ts +6 -0
- package/dist/components/Tag/FileTags.d.ts +6 -0
- package/dist/components/Tag/SemanticTag.d.ts +52 -0
- package/dist/components/Tag/Tags/index.d.ts +16 -0
- package/dist/components/Tag/index.d.ts +6 -0
- package/dist/components/TooltipInfo/TooltipInfo.d.ts +19 -0
- package/dist/components/TooltipInfo/index.d.ts +2 -0
- package/dist/components/Tour/AppTour/index.d.ts +19 -0
- package/dist/components/Tour/index.d.ts +2 -0
- package/dist/components/Upload/index.d.ts +66 -0
- package/dist/components/Upload/index.js +181 -0
- package/dist/components/Upload/index.js.map +1 -0
- package/dist/components/Upload/style.module.scss.js +19 -0
- package/dist/components/Upload/style.module.scss.js.map +1 -0
- package/dist/components/VirtualScrollbar/VirtualScrollbar/index.d.ts +14 -0
- package/dist/components/VirtualScrollbar/index.d.ts +3 -0
- package/dist/components/VirtualScrollbar/useVirtualScrollbar.d.ts +23 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/hooks/useFetchData.d.ts +22 -0
- package/dist/index.d.ts +26 -28
- package/dist/index.js +170 -166
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/node_modules/@js-preview/excel/lib/index.js +43346 -0
- package/dist/node_modules/@js-preview/excel/lib/index.js.map +1 -0
- package/dist/node_modules/docx-preview/dist/docx-preview.js +3203 -0
- package/dist/node_modules/docx-preview/dist/docx-preview.js.map +1 -0
- package/dist/node_modules/echarts/index.js +88 -0
- package/dist/node_modules/echarts/index.js.map +1 -0
- package/dist/node_modules/echarts/lib/action/roamHelper.js +23 -0
- package/dist/node_modules/echarts/lib/action/roamHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/animation/basicTransition.js +97 -0
- package/dist/node_modules/echarts/lib/animation/basicTransition.js.map +1 -0
- package/dist/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +57 -0
- package/dist/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js.map +1 -0
- package/dist/node_modules/echarts/lib/animation/customGraphicTransition.js +236 -0
- package/dist/node_modules/echarts/lib/animation/customGraphicTransition.js.map +1 -0
- package/dist/node_modules/echarts/lib/animation/morphTransitionHelper.js +107 -0
- package/dist/node_modules/echarts/lib/animation/morphTransitionHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/animation/universalTransition.js +346 -0
- package/dist/node_modules/echarts/lib/animation/universalTransition.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +55 -0
- package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js +478 -0
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +77 -0
- package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +49 -0
- package/dist/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/bar/PictorialBarView.js +326 -0
- package/dist/node_modules/echarts/lib/chart/bar/PictorialBarView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/bar/install.js +24 -0
- package/dist/node_modules/echarts/lib/chart/bar/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/bar/installPictorialBar.js +11 -0
- package/dist/node_modules/echarts/lib/chart/bar/installPictorialBar.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js +57 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotView.js +96 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/boxplotLayout.js +73 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/boxplotLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/boxplotTransform.js +24 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/boxplotTransform.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/install.js +11 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js +26 -0
- package/dist/node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js +71 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickView.js +196 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/candlestickLayout.js +77 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/candlestickLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/candlestickVisual.js +36 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/candlestickVisual.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/install.js +12 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/preprocessor.js +10 -0
- package/dist/node_modules/echarts/lib/chart/candlestick/preprocessor.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/custom/CustomSeries.js +56 -0
- package/dist/node_modules/echarts/lib/chart/custom/CustomSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/custom/CustomView.js +439 -0
- package/dist/node_modules/echarts/lib/chart/custom/CustomView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/custom/install.js +9 -0
- package/dist/node_modules/echarts/lib/chart/custom/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js +61 -0
- package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js +45 -0
- package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/effectScatter/install.js +10 -0
- package/dist/node_modules/echarts/lib/chart/effectScatter/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/funnel/FunnelSeries.js +84 -0
- package/dist/node_modules/echarts/lib/chart/funnel/FunnelSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/funnel/FunnelView.js +110 -0
- package/dist/node_modules/echarts/lib/chart/funnel/FunnelView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/funnel/funnelLayout.js +98 -0
- package/dist/node_modules/echarts/lib/chart/funnel/funnelLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/funnel/install.js +11 -0
- package/dist/node_modules/echarts/lib/chart/funnel/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/gauge/GaugeSeries.js +143 -0
- package/dist/node_modules/echarts/lib/chart/gauge/GaugeSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/gauge/GaugeView.js +300 -0
- package/dist/node_modules/echarts/lib/chart/gauge/GaugeView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/gauge/PointerPath.js +30 -0
- package/dist/node_modules/echarts/lib/chart/gauge/PointerPath.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/gauge/install.js +9 -0
- package/dist/node_modules/echarts/lib/chart/gauge/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/GraphSeries.js +181 -0
- package/dist/node_modules/echarts/lib/chart/graph/GraphSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/GraphView.js +137 -0
- package/dist/node_modules/echarts/lib/chart/graph/GraphView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/adjustEdge.js +54 -0
- package/dist/node_modules/echarts/lib/chart/graph/adjustEdge.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/categoryFilter.js +23 -0
- package/dist/node_modules/echarts/lib/chart/graph/categoryFilter.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/categoryVisual.js +30 -0
- package/dist/node_modules/echarts/lib/chart/graph/categoryVisual.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/circularLayout.js +10 -0
- package/dist/node_modules/echarts/lib/chart/graph/circularLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/circularLayoutHelper.js +81 -0
- package/dist/node_modules/echarts/lib/chart/graph/circularLayoutHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/createView.js +34 -0
- package/dist/node_modules/echarts/lib/chart/graph/createView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/edgeVisual.js +29 -0
- package/dist/node_modules/echarts/lib/chart/graph/edgeVisual.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/forceHelper.js +74 -0
- package/dist/node_modules/echarts/lib/chart/graph/forceHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/forceLayout.js +62 -0
- package/dist/node_modules/echarts/lib/chart/graph/forceLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/graphHelper.js +16 -0
- package/dist/node_modules/echarts/lib/chart/graph/graphHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/install.js +43 -0
- package/dist/node_modules/echarts/lib/chart/graph/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/simpleLayout.js +25 -0
- package/dist/node_modules/echarts/lib/chart/graph/simpleLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js +24 -0
- package/dist/node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js +46 -0
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js +45 -0
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapView.js +155 -0
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/heatmap/install.js +9 -0
- package/dist/node_modules/echarts/lib/chart/heatmap/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/EffectLine.js +69 -0
- package/dist/node_modules/echarts/lib/chart/helper/EffectLine.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/EffectPolyline.js +55 -0
- package/dist/node_modules/echarts/lib/chart/helper/EffectPolyline.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/EffectSymbol.js +90 -0
- package/dist/node_modules/echarts/lib/chart/helper/EffectSymbol.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/LargeLineDraw.js +158 -0
- package/dist/node_modules/echarts/lib/chart/helper/LargeLineDraw.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js +144 -0
- package/dist/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/Line.js +209 -0
- package/dist/node_modules/echarts/lib/chart/helper/Line.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/LineDraw.js +88 -0
- package/dist/node_modules/echarts/lib/chart/helper/LineDraw.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/LinePath.js +53 -0
- package/dist/node_modules/echarts/lib/chart/helper/LinePath.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/Polyline.js +46 -0
- package/dist/node_modules/echarts/lib/chart/helper/Polyline.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +156 -0
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +107 -0
- package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +71 -0
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js +51 -0
- package/dist/node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +12 -0
- package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +71 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +16 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js +14 -0
- package/dist/node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +28 -0
- package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js +68 -0
- package/dist/node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js +20 -0
- package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/treeHelper.js +42 -0
- package/dist/node_modules/echarts/lib/chart/helper/treeHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js +52 -0
- package/dist/node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +93 -0
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/line/LineView.js +532 -0
- package/dist/node_modules/echarts/lib/chart/line/LineView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/line/helper.js +41 -0
- package/dist/node_modules/echarts/lib/chart/line/helper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/line/install.js +17 -0
- package/dist/node_modules/echarts/lib/chart/line/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +61 -0
- package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/line/poly.js +164 -0
- package/dist/node_modules/echarts/lib/chart/line/poly.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/lines/LinesSeries.js +154 -0
- package/dist/node_modules/echarts/lib/chart/lines/LinesSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/lines/LinesView.js +66 -0
- package/dist/node_modules/echarts/lib/chart/lines/LinesView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/lines/install.js +11 -0
- package/dist/node_modules/echarts/lib/chart/lines/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/lines/linesLayout.js +51 -0
- package/dist/node_modules/echarts/lib/chart/lines/linesLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/lines/linesVisual.js +21 -0
- package/dist/node_modules/echarts/lib/chart/lines/linesVisual.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/map/MapSeries.js +144 -0
- package/dist/node_modules/echarts/lib/chart/map/MapSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/map/MapView.js +84 -0
- package/dist/node_modules/echarts/lib/chart/map/MapView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/map/install.js +14 -0
- package/dist/node_modules/echarts/lib/chart/map/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/map/mapDataStatistic.js +33 -0
- package/dist/node_modules/echarts/lib/chart/map/mapDataStatistic.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/map/mapSymbolLayout.js +32 -0
- package/dist/node_modules/echarts/lib/chart/map/mapSymbolLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/parallel/ParallelSeries.js +64 -0
- package/dist/node_modules/echarts/lib/chart/parallel/ParallelSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/parallel/ParallelView.js +112 -0
- package/dist/node_modules/echarts/lib/chart/parallel/ParallelView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/parallel/install.js +12 -0
- package/dist/node_modules/echarts/lib/chart/parallel/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/parallel/parallelVisual.js +27 -0
- package/dist/node_modules/echarts/lib/chart/parallel/parallelVisual.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +143 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +152 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/pie/install.js +14 -0
- package/dist/node_modules/echarts/lib/chart/pie/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +200 -0
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +100 -0
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/radar/RadarSeries.js +74 -0
- package/dist/node_modules/echarts/lib/chart/radar/RadarSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/radar/RadarView.js +124 -0
- package/dist/node_modules/echarts/lib/chart/radar/RadarView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/radar/backwardCompat.js +18 -0
- package/dist/node_modules/echarts/lib/chart/radar/backwardCompat.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/radar/install.js +14 -0
- package/dist/node_modules/echarts/lib/chart/radar/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/radar/radarLayout.js +31 -0
- package/dist/node_modules/echarts/lib/chart/radar/radarLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sankey/SankeySeries.js +125 -0
- package/dist/node_modules/echarts/lib/chart/sankey/SankeySeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sankey/SankeyView.js +169 -0
- package/dist/node_modules/echarts/lib/chart/sankey/SankeyView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sankey/install.js +24 -0
- package/dist/node_modules/echarts/lib/chart/sankey/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sankey/sankeyLayout.js +278 -0
- package/dist/node_modules/echarts/lib/chart/sankey/sankeyLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sankey/sankeyVisual.js +34 -0
- package/dist/node_modules/echarts/lib/chart/sankey/sankeyVisual.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/scatter/ScatterSeries.js +62 -0
- package/dist/node_modules/echarts/lib/chart/scatter/ScatterSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/scatter/ScatterView.js +61 -0
- package/dist/node_modules/echarts/lib/chart/scatter/ScatterView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/scatter/install.js +12 -0
- package/dist/node_modules/echarts/lib/chart/scatter/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstPiece.js +83 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstPiece.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstSeries.js +129 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstView.js +94 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/install.js +14 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstAction.js +51 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstLayout.js +99 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstVisual.js +24 -0
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstVisual.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js +123 -0
- package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js +101 -0
- package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/themeRiver/install.js +11 -0
- package/dist/node_modules/echarts/lib/chart/themeRiver/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js +64 -0
- package/dist/node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/tree/TreeSeries.js +101 -0
- package/dist/node_modules/echarts/lib/chart/tree/TreeSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/tree/TreeView.js +320 -0
- package/dist/node_modules/echarts/lib/chart/tree/TreeView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/tree/install.js +12 -0
- package/dist/node_modules/echarts/lib/chart/tree/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/tree/layoutHelper.js +103 -0
- package/dist/node_modules/echarts/lib/chart/tree/layoutHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/tree/traversalHelper.js +25 -0
- package/dist/node_modules/echarts/lib/chart/tree/traversalHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/tree/treeAction.js +38 -0
- package/dist/node_modules/echarts/lib/chart/tree/treeAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/tree/treeLayout.js +54 -0
- package/dist/node_modules/echarts/lib/chart/tree/treeLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/tree/treeVisual.js +14 -0
- package/dist/node_modules/echarts/lib/chart/tree/treeVisual.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/treemap/Breadcrumb.js +100 -0
- package/dist/node_modules/echarts/lib/chart/treemap/Breadcrumb.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/treemap/TreemapSeries.js +204 -0
- package/dist/node_modules/echarts/lib/chart/treemap/TreemapSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/treemap/TreemapView.js +455 -0
- package/dist/node_modules/echarts/lib/chart/treemap/TreemapView.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/treemap/install.js +12 -0
- package/dist/node_modules/echarts/lib/chart/treemap/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/treemap/treemapAction.js +31 -0
- package/dist/node_modules/echarts/lib/chart/treemap/treemapAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/treemap/treemapLayout.js +218 -0
- package/dist/node_modules/echarts/lib/chart/treemap/treemapLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/chart/treemap/treemapVisual.js +96 -0
- package/dist/node_modules/echarts/lib/chart/treemap/treemapVisual.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/aria/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/aria/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/aria/preprocessor.js +13 -0
- package/dist/node_modules/echarts/lib/component/aria/preprocessor.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axis/AngleAxisView.js +196 -0
- package/dist/node_modules/echarts/lib/component/axis/AngleAxisView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +295 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +41 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +123 -0
- package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axis/ParallelAxisView.js +89 -0
- package/dist/node_modules/echarts/lib/component/axis/ParallelAxisView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axis/RadiusAxisView.js +118 -0
- package/dist/node_modules/echarts/lib/component/axis/RadiusAxisView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axis/SingleAxisView.js +71 -0
- package/dist/node_modules/echarts/lib/component/axis/SingleAxisView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +54 -0
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axis/parallelAxisAction.js +26 -0
- package/dist/node_modules/echarts/lib/component/axis/parallelAxisAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +72 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +32 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +186 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +86 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js +84 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js +81 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +203 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +37 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +59 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/install.js +26 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js +138 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +115 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/brush/BrushModel.js +59 -0
- package/dist/node_modules/echarts/lib/component/brush/BrushModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/brush/BrushView.js +47 -0
- package/dist/node_modules/echarts/lib/component/brush/BrushView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/brush/install.js +33 -0
- package/dist/node_modules/echarts/lib/component/brush/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/brush/preprocessor.js +31 -0
- package/dist/node_modules/echarts/lib/component/brush/preprocessor.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/brush/selector.js +63 -0
- package/dist/node_modules/echarts/lib/component/brush/selector.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/brush/visualEncoding.js +141 -0
- package/dist/node_modules/echarts/lib/component/brush/visualEncoding.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/calendar/CalendarView.js +188 -0
- package/dist/node_modules/echarts/lib/component/calendar/CalendarView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/calendar/install.js +10 -0
- package/dist/node_modules/echarts/lib/component/calendar/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +126 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +19 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +25 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +77 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js +17 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js +17 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +88 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +454 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +19 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +58 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +68 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/history.js +57 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/history.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/install.js +10 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +12 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +11 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js +10 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +10 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +127 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/dataset/install.js +44 -0
- package/dist/node_modules/echarts/lib/component/dataset/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/geo/GeoView.js +50 -0
- package/dist/node_modules/echarts/lib/component/geo/GeoView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/geo/install.js +73 -0
- package/dist/node_modules/echarts/lib/component/geo/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/graphic/GraphicModel.js +96 -0
- package/dist/node_modules/echarts/lib/component/graphic/GraphicModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/graphic/GraphicView.js +186 -0
- package/dist/node_modules/echarts/lib/component/graphic/GraphicView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/graphic/install.js +17 -0
- package/dist/node_modules/echarts/lib/component/graphic/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/grid/install.js +10 -0
- package/dist/node_modules/echarts/lib/component/grid/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/grid/installSimple.js +43 -0
- package/dist/node_modules/echarts/lib/component/grid/installSimple.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/BrushController.js +466 -0
- package/dist/node_modules/echarts/lib/component/helper/BrushController.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/BrushTargetManager.js +197 -0
- package/dist/node_modules/echarts/lib/component/helper/BrushTargetManager.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/MapDraw.js +304 -0
- package/dist/node_modules/echarts/lib/component/helper/MapDraw.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/RoamController.js +107 -0
- package/dist/node_modules/echarts/lib/component/helper/RoamController.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/brushHelper.js +29 -0
- package/dist/node_modules/echarts/lib/component/helper/brushHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +13 -0
- package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +28 -0
- package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/listComponent.js +30 -0
- package/dist/node_modules/echarts/lib/component/helper/listComponent.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/roamHelper.js +18 -0
- package/dist/node_modules/echarts/lib/component/helper/roamHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
- package/dist/node_modules/echarts/lib/component/helper/sliderMove.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +197 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +246 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +50 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +185 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/install.js +10 -0
- package/dist/node_modules/echarts/lib/component/legend/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js +13 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js +12 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/legendAction.js +41 -0
- package/dist/node_modules/echarts/lib/component/legend/legendAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/legendFilter.js +15 -0
- package/dist/node_modules/echarts/lib/component/legend/legendFilter.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +16 -0
- package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkAreaModel.js +44 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkAreaModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkAreaView.js +180 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkAreaView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkLineModel.js +47 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkLineModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkLineView.js +179 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkLineView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkPointModel.js +41 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkPointModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkPointView.js +85 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkPointView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkerModel.js +75 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkerModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkerView.js +46 -0
- package/dist/node_modules/echarts/lib/component/marker/MarkerView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/checkMarkerInSeries.js +13 -0
- package/dist/node_modules/echarts/lib/component/marker/checkMarkerInSeries.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/installMarkArea.js +12 -0
- package/dist/node_modules/echarts/lib/component/marker/installMarkArea.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/installMarkLine.js +12 -0
- package/dist/node_modules/echarts/lib/component/marker/installMarkLine.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/installMarkPoint.js +12 -0
- package/dist/node_modules/echarts/lib/component/marker/installMarkPoint.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/marker/markerHelper.js +84 -0
- package/dist/node_modules/echarts/lib/component/marker/markerHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/parallel/ParallelView.js +67 -0
- package/dist/node_modules/echarts/lib/component/parallel/ParallelView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/parallel/install.js +27 -0
- package/dist/node_modules/echarts/lib/component/parallel/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/polar/install.js +41 -0
- package/dist/node_modules/echarts/lib/component/polar/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/radar/RadarView.js +120 -0
- package/dist/node_modules/echarts/lib/component/radar/RadarView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/radar/install.js +18 -0
- package/dist/node_modules/echarts/lib/component/radar/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/singleAxis/install.js +28 -0
- package/dist/node_modules/echarts/lib/component/singleAxis/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineModel.js +116 -0
- package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineView.js +362 -0
- package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/timeline/TimelineAxis.js +21 -0
- package/dist/node_modules/echarts/lib/component/timeline/TimelineAxis.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/timeline/TimelineModel.js +80 -0
- package/dist/node_modules/echarts/lib/component/timeline/TimelineModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/timeline/TimelineView.js +17 -0
- package/dist/node_modules/echarts/lib/component/timeline/TimelineView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/timeline/install.js +13 -0
- package/dist/node_modules/echarts/lib/component/timeline/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/timeline/preprocessor.js +36 -0
- package/dist/node_modules/echarts/lib/component/timeline/preprocessor.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/timeline/timelineAction.js +30 -0
- package/dist/node_modules/echarts/lib/component/timeline/timelineAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/title/install.js +122 -0
- package/dist/node_modules/echarts/lib/component/title/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/ToolboxModel.js +61 -0
- package/dist/node_modules/echarts/lib/component/toolbox/ToolboxModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/ToolboxView.js +141 -0
- package/dist/node_modules/echarts/lib/component/toolbox/ToolboxView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/Brush.js +70 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/Brush.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataView.js +271 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js +153 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/MagicType.js +124 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/MagicType.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/Restore.js +38 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/Restore.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js +70 -0
- package/dist/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/featureManager.js +20 -0
- package/dist/node_modules/echarts/lib/component/toolbox/featureManager.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/toolbox/install.js +17 -0
- package/dist/node_modules/echarts/lib/component/toolbox/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +153 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js +83 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +90 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +413 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/tooltip/helper.js +33 -0
- package/dist/node_modules/echarts/lib/component/tooltip/helper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/tooltip/install.js +20 -0
- package/dist/node_modules/echarts/lib/component/tooltip/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +64 -0
- package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +187 -0
- package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/transform/filterTransform.js +36 -0
- package/dist/node_modules/echarts/lib/component/transform/filterTransform.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/transform/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/transform/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/transform/sortTransform.js +59 -0
- package/dist/node_modules/echarts/lib/component/transform/sortTransform.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/ContinuousModel.js +110 -0
- package/dist/node_modules/echarts/lib/component/visualMap/ContinuousModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/ContinuousView.js +383 -0
- package/dist/node_modules/echarts/lib/component/visualMap/ContinuousView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js +217 -0
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseView.js +119 -0
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/VisualMapModel.js +162 -0
- package/dist/node_modules/echarts/lib/component/visualMap/VisualMapModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/VisualMapView.js +78 -0
- package/dist/node_modules/echarts/lib/component/visualMap/VisualMapView.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/helper.js +25 -0
- package/dist/node_modules/echarts/lib/component/visualMap/helper.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/install.js +10 -0
- package/dist/node_modules/echarts/lib/component/visualMap/install.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/installCommon.js +16 -0
- package/dist/node_modules/echarts/lib/component/visualMap/installCommon.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js +10 -0
- package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js +10 -0
- package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/preprocessor.js +21 -0
- package/dist/node_modules/echarts/lib/component/visualMap/preprocessor.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/visualEncoding.js +52 -0
- package/dist/node_modules/echarts/lib/component/visualMap/visualEncoding.js.map +1 -0
- package/dist/node_modules/echarts/lib/component/visualMap/visualMapAction.js +18 -0
- package/dist/node_modules/echarts/lib/component/visualMap/visualMapAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/Axis.js +108 -0
- package/dist/node_modules/echarts/lib/coord/Axis.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +7 -0
- package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/View.js +92 -0
- package/dist/node_modules/echarts/lib/coord/View.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +47 -0
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +10 -0
- package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/axisDefault.js +161 -0
- package/dist/node_modules/echarts/lib/coord/axisDefault.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +163 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +16 -0
- package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +41 -0
- package/dist/node_modules/echarts/lib/coord/axisModelCreator.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +177 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/calendar/Calendar.js +159 -0
- package/dist/node_modules/echarts/lib/coord/calendar/Calendar.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/calendar/CalendarModel.js +92 -0
- package/dist/node_modules/echarts/lib/coord/calendar/CalendarModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/calendar/prepareCustom.js +29 -0
- package/dist/node_modules/echarts/lib/coord/calendar/prepareCustom.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +29 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +22 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +27 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +67 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +234 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +31 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +47 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/prepareCustom.js +30 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/prepareCustom.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/Geo.js +86 -0
- package/dist/node_modules/echarts/lib/coord/geo/Geo.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/GeoJSONResource.js +71 -0
- package/dist/node_modules/echarts/lib/coord/geo/GeoJSONResource.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/GeoModel.js +126 -0
- package/dist/node_modules/echarts/lib/coord/geo/GeoModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/GeoSVGResource.js +109 -0
- package/dist/node_modules/echarts/lib/coord/geo/GeoSVGResource.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/Region.js +138 -0
- package/dist/node_modules/echarts/lib/coord/geo/Region.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js +11 -0
- package/dist/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/fix/nanhai.js +23 -0
- package/dist/node_modules/echarts/lib/coord/geo/fix/nanhai.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/fix/textCoord.js +22 -0
- package/dist/node_modules/echarts/lib/coord/geo/fix/textCoord.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/geoCreator.js +109 -0
- package/dist/node_modules/echarts/lib/coord/geo/geoCreator.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/geoSourceManager.js +70 -0
- package/dist/node_modules/echarts/lib/coord/geo/geoSourceManager.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/parseGeoJson.js +68 -0
- package/dist/node_modules/echarts/lib/coord/geo/parseGeoJson.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/geo/prepareCustom.js +30 -0
- package/dist/node_modules/echarts/lib/coord/geo/prepareCustom.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/parallel/AxisModel.js +52 -0
- package/dist/node_modules/echarts/lib/coord/parallel/AxisModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/parallel/Parallel.js +181 -0
- package/dist/node_modules/echarts/lib/coord/parallel/Parallel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/parallel/ParallelAxis.js +19 -0
- package/dist/node_modules/echarts/lib/coord/parallel/ParallelAxis.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/parallel/ParallelModel.js +62 -0
- package/dist/node_modules/echarts/lib/coord/parallel/ParallelModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/parallel/parallelCreator.js +21 -0
- package/dist/node_modules/echarts/lib/coord/parallel/parallelCreator.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js +26 -0
- package/dist/node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/polar/AngleAxis.js +30 -0
- package/dist/node_modules/echarts/lib/coord/polar/AngleAxis.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/polar/AxisModel.js +45 -0
- package/dist/node_modules/echarts/lib/coord/polar/AxisModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/polar/Polar.js +87 -0
- package/dist/node_modules/echarts/lib/coord/polar/Polar.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/polar/PolarModel.js +27 -0
- package/dist/node_modules/echarts/lib/coord/polar/PolarModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/polar/RadiusAxis.js +20 -0
- package/dist/node_modules/echarts/lib/coord/polar/RadiusAxis.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/polar/polarCreator.js +64 -0
- package/dist/node_modules/echarts/lib/coord/polar/polarCreator.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/polar/prepareCustom.js +30 -0
- package/dist/node_modules/echarts/lib/coord/polar/prepareCustom.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/radar/IndicatorAxis.js +17 -0
- package/dist/node_modules/echarts/lib/coord/radar/IndicatorAxis.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/radar/Radar.js +80 -0
- package/dist/node_modules/echarts/lib/coord/radar/Radar.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/radar/RadarModel.js +90 -0
- package/dist/node_modules/echarts/lib/coord/radar/RadarModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +71 -0
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/single/AxisModel.js +61 -0
- package/dist/node_modules/echarts/lib/coord/single/AxisModel.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/single/Single.js +89 -0
- package/dist/node_modules/echarts/lib/coord/single/Single.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/single/SingleAxis.js +22 -0
- package/dist/node_modules/echarts/lib/coord/single/SingleAxis.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/single/prepareCustom.js +27 -0
- package/dist/node_modules/echarts/lib/coord/single/prepareCustom.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/single/singleAxisHelper.js +33 -0
- package/dist/node_modules/echarts/lib/coord/single/singleAxisHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/coord/single/singleCreator.js +22 -0
- package/dist/node_modules/echarts/lib/coord/single/singleCreator.js.map +1 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +30 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js.map +1 -0
- package/dist/node_modules/echarts/lib/core/ExtensionAPI.js +35 -0
- package/dist/node_modules/echarts/lib/core/ExtensionAPI.js.map +1 -0
- package/dist/node_modules/echarts/lib/core/Scheduler.js +227 -0
- package/dist/node_modules/echarts/lib/core/Scheduler.js.map +1 -0
- package/dist/node_modules/echarts/lib/core/echarts.js +1058 -0
- package/dist/node_modules/echarts/lib/core/echarts.js.map +1 -0
- package/dist/node_modules/echarts/lib/core/impl.js +13 -0
- package/dist/node_modules/echarts/lib/core/impl.js.map +1 -0
- package/dist/node_modules/echarts/lib/core/lifecycle.js +6 -0
- package/dist/node_modules/echarts/lib/core/lifecycle.js.map +1 -0
- package/dist/node_modules/echarts/lib/core/locale.js +38 -0
- package/dist/node_modules/echarts/lib/core/locale.js.map +1 -0
- package/dist/node_modules/echarts/lib/core/task.js +92 -0
- package/dist/node_modules/echarts/lib/core/task.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/DataDiffer.js +81 -0
- package/dist/node_modules/echarts/lib/data/DataDiffer.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/DataStore.js +431 -0
- package/dist/node_modules/echarts/lib/data/DataStore.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/Graph.js +210 -0
- package/dist/node_modules/echarts/lib/data/Graph.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +37 -0
- package/dist/node_modules/echarts/lib/data/OrdinalMeta.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js +339 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js +14 -0
- package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/Source.js +158 -0
- package/dist/node_modules/echarts/lib/data/Source.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/Tree.js +155 -0
- package/dist/node_modules/echarts/lib/data/Tree.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +87 -0
- package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +123 -0
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +177 -0
- package/dist/node_modules/echarts/lib/data/helper/dataProvider.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +61 -0
- package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +90 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +59 -0
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/linkSeriesData.js +63 -0
- package/dist/node_modules/echarts/lib/data/helper/linkSeriesData.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +164 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +138 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js.map +1 -0
- package/dist/node_modules/echarts/lib/data/helper/transform.js +174 -0
- package/dist/node_modules/echarts/lib/data/helper/transform.js.map +1 -0
- package/dist/node_modules/echarts/lib/extension.js +62 -0
- package/dist/node_modules/echarts/lib/extension.js.map +1 -0
- package/dist/node_modules/echarts/lib/i18n/langEN.js +115 -0
- package/dist/node_modules/echarts/lib/i18n/langEN.js.map +1 -0
- package/dist/node_modules/echarts/lib/i18n/langZH.js +115 -0
- package/dist/node_modules/echarts/lib/i18n/langZH.js.map +1 -0
- package/dist/node_modules/echarts/lib/label/LabelManager.js +236 -0
- package/dist/node_modules/echarts/lib/label/LabelManager.js.map +1 -0
- package/dist/node_modules/echarts/lib/label/installLabelLayout.js +18 -0
- package/dist/node_modules/echarts/lib/label/installLabelLayout.js.map +1 -0
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +235 -0
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +133 -0
- package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/label/labelStyle.js +195 -0
- package/dist/node_modules/echarts/lib/label/labelStyle.js.map +1 -0
- package/dist/node_modules/echarts/lib/label/sectorLabel.js +95 -0
- package/dist/node_modules/echarts/lib/label/sectorLabel.js.map +1 -0
- package/dist/node_modules/echarts/lib/layout/barGrid.js +236 -0
- package/dist/node_modules/echarts/lib/layout/barGrid.js.map +1 -0
- package/dist/node_modules/echarts/lib/layout/barPolar.js +102 -0
- package/dist/node_modules/echarts/lib/layout/barPolar.js.map +1 -0
- package/dist/node_modules/echarts/lib/layout/points.js +38 -0
- package/dist/node_modules/echarts/lib/layout/points.js.map +1 -0
- package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +52 -0
- package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js.map +1 -0
- package/dist/node_modules/echarts/lib/loading/default.js +93 -0
- package/dist/node_modules/echarts/lib/loading/default.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/Component.js +82 -0
- package/dist/node_modules/echarts/lib/model/Component.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/Global.js +355 -0
- package/dist/node_modules/echarts/lib/model/Global.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/Model.js +65 -0
- package/dist/node_modules/echarts/lib/model/Model.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/OptionManager.js +88 -0
- package/dist/node_modules/echarts/lib/model/OptionManager.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/Series.js +232 -0
- package/dist/node_modules/echarts/lib/model/Series.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/globalDefault.js +88 -0
- package/dist/node_modules/echarts/lib/model/globalDefault.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +23 -0
- package/dist/node_modules/echarts/lib/model/internalComponentCreator.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js +25 -0
- package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +72 -0
- package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js +32 -0
- package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js +31 -0
- package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +19 -0
- package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/mixin/palette.js +43 -0
- package/dist/node_modules/echarts/lib/model/mixin/palette.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/mixin/textStyle.js +31 -0
- package/dist/node_modules/echarts/lib/model/mixin/textStyle.js.map +1 -0
- package/dist/node_modules/echarts/lib/model/referHelper.js +61 -0
- package/dist/node_modules/echarts/lib/model/referHelper.js.map +1 -0
- package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +81 -0
- package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js.map +1 -0
- package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +112 -0
- package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js.map +1 -0
- package/dist/node_modules/echarts/lib/processor/dataFilter.js +23 -0
- package/dist/node_modules/echarts/lib/processor/dataFilter.js.map +1 -0
- package/dist/node_modules/echarts/lib/processor/dataSample.js +52 -0
- package/dist/node_modules/echarts/lib/processor/dataSample.js.map +1 -0
- package/dist/node_modules/echarts/lib/processor/dataStack.js +51 -0
- package/dist/node_modules/echarts/lib/processor/dataStack.js.map +1 -0
- package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js +17 -0
- package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js.map +1 -0
- package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js +8 -0
- package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js.map +1 -0
- package/dist/node_modules/echarts/lib/renderer/installSVGRenderer.js +8 -0
- package/dist/node_modules/echarts/lib/renderer/installSVGRenderer.js.map +1 -0
- package/dist/node_modules/echarts/lib/scale/Interval.js +98 -0
- package/dist/node_modules/echarts/lib/scale/Interval.js.map +1 -0
- package/dist/node_modules/echarts/lib/scale/Log.js +69 -0
- package/dist/node_modules/echarts/lib/scale/Log.js.map +1 -0
- package/dist/node_modules/echarts/lib/scale/Ordinal.js +77 -0
- package/dist/node_modules/echarts/lib/scale/Ordinal.js.map +1 -0
- package/dist/node_modules/echarts/lib/scale/Scale.js +33 -0
- package/dist/node_modules/echarts/lib/scale/Scale.js.map +1 -0
- package/dist/node_modules/echarts/lib/scale/Time.js +260 -0
- package/dist/node_modules/echarts/lib/scale/Time.js.map +1 -0
- package/dist/node_modules/echarts/lib/scale/helper.js +48 -0
- package/dist/node_modules/echarts/lib/scale/helper.js.map +1 -0
- package/dist/node_modules/echarts/lib/theme/dark.js +181 -0
- package/dist/node_modules/echarts/lib/theme/dark.js.map +1 -0
- package/dist/node_modules/echarts/lib/theme/light.js +9 -0
- package/dist/node_modules/echarts/lib/theme/light.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/ECEventProcessor.js +55 -0
- package/dist/node_modules/echarts/lib/util/ECEventProcessor.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/animation.js +41 -0
- package/dist/node_modules/echarts/lib/util/animation.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/clazz.js +110 -0
- package/dist/node_modules/echarts/lib/util/clazz.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/component.js +80 -0
- package/dist/node_modules/echarts/lib/util/component.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/conditionalExpression.js +147 -0
- package/dist/node_modules/echarts/lib/util/conditionalExpression.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/decal.js +175 -0
- package/dist/node_modules/echarts/lib/util/decal.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/event.js +9 -0
- package/dist/node_modules/echarts/lib/util/event.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/format.js +112 -0
- package/dist/node_modules/echarts/lib/util/format.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/graphic.js +295 -0
- package/dist/node_modules/echarts/lib/util/graphic.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/innerStore.js +15 -0
- package/dist/node_modules/echarts/lib/util/innerStore.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/layout.js +141 -0
- package/dist/node_modules/echarts/lib/util/layout.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/log.js +69 -0
- package/dist/node_modules/echarts/lib/util/log.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/model.js +350 -0
- package/dist/node_modules/echarts/lib/util/model.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/number.js +197 -0
- package/dist/node_modules/echarts/lib/util/number.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/shape/sausage.js +33 -0
- package/dist/node_modules/echarts/lib/util/shape/sausage.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/states.js +395 -0
- package/dist/node_modules/echarts/lib/util/states.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/styleCompat.js +59 -0
- package/dist/node_modules/echarts/lib/util/styleCompat.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/symbol.js +156 -0
- package/dist/node_modules/echarts/lib/util/symbol.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/throttle.js +42 -0
- package/dist/node_modules/echarts/lib/util/throttle.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/time.js +194 -0
- package/dist/node_modules/echarts/lib/util/time.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/types.js +14 -0
- package/dist/node_modules/echarts/lib/util/types.js.map +1 -0
- package/dist/node_modules/echarts/lib/util/vendor.js +9 -0
- package/dist/node_modules/echarts/lib/util/vendor.js.map +1 -0
- package/dist/node_modules/echarts/lib/view/Chart.js +99 -0
- package/dist/node_modules/echarts/lib/view/Chart.js.map +1 -0
- package/dist/node_modules/echarts/lib/view/Component.js +28 -0
- package/dist/node_modules/echarts/lib/view/Component.js.map +1 -0
- package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js +25 -0
- package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js.map +1 -0
- package/dist/node_modules/echarts/lib/visual/VisualMapping.js +264 -0
- package/dist/node_modules/echarts/lib/visual/VisualMapping.js.map +1 -0
- package/dist/node_modules/echarts/lib/visual/aria.js +134 -0
- package/dist/node_modules/echarts/lib/visual/aria.js.map +1 -0
- package/dist/node_modules/echarts/lib/visual/decal.js +24 -0
- package/dist/node_modules/echarts/lib/visual/decal.js.map +1 -0
- package/dist/node_modules/echarts/lib/visual/helper.js +54 -0
- package/dist/node_modules/echarts/lib/visual/helper.js.map +1 -0
- package/dist/node_modules/echarts/lib/visual/style.js +96 -0
- package/dist/node_modules/echarts/lib/visual/style.js.map +1 -0
- package/dist/node_modules/echarts/lib/visual/symbol.js +53 -0
- package/dist/node_modules/echarts/lib/visual/symbol.js.map +1 -0
- package/dist/node_modules/echarts/lib/visual/visualDefault.js +47 -0
- package/dist/node_modules/echarts/lib/visual/visualDefault.js.map +1 -0
- package/dist/node_modules/echarts/lib/visual/visualSolution.js +98 -0
- package/dist/node_modules/echarts/lib/visual/visualSolution.js.map +1 -0
- package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js +34 -0
- package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/jszip/dist/jszip.min.js +2321 -0
- package/dist/node_modules/jszip/dist/jszip.min.js.map +1 -0
- package/dist/node_modules/lodash/lodash.js +3693 -0
- package/dist/node_modules/lodash/lodash.js.map +1 -0
- package/dist/node_modules/pptx-preview/dist/pptx-preview.es.js +2599 -0
- package/dist/node_modules/pptx-preview/dist/pptx-preview.es.js.map +1 -0
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/native.js +8 -0
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/rng.js +10 -0
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/rng.js.map +1 -0
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/stringify.js +10 -0
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -0
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/v4.js +14 -0
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/v4.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +125 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/zrender/lib/Element.js +455 -0
- package/dist/node_modules/zrender/lib/Element.js.map +1 -0
- package/dist/node_modules/zrender/lib/Handler.js +169 -0
- package/dist/node_modules/zrender/lib/Handler.js.map +1 -0
- package/dist/node_modules/zrender/lib/Storage.js +76 -0
- package/dist/node_modules/zrender/lib/Storage.js.map +1 -0
- package/dist/node_modules/zrender/lib/animation/Animation.js +67 -0
- package/dist/node_modules/zrender/lib/animation/Animation.js.map +1 -0
- package/dist/node_modules/zrender/lib/animation/Animator.js +382 -0
- package/dist/node_modules/zrender/lib/animation/Animator.js.map +1 -0
- package/dist/node_modules/zrender/lib/animation/Clip.js +34 -0
- package/dist/node_modules/zrender/lib/animation/Clip.js.map +1 -0
- package/dist/node_modules/zrender/lib/animation/cubicEasing.js +19 -0
- package/dist/node_modules/zrender/lib/animation/cubicEasing.js.map +1 -0
- package/dist/node_modules/zrender/lib/animation/easing.js +105 -0
- package/dist/node_modules/zrender/lib/animation/easing.js.map +1 -0
- package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +9 -0
- package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js.map +1 -0
- package/dist/node_modules/zrender/lib/canvas/Layer.js +135 -0
- package/dist/node_modules/zrender/lib/canvas/Layer.js.map +1 -0
- package/dist/node_modules/zrender/lib/canvas/Painter.js +309 -0
- package/dist/node_modules/zrender/lib/canvas/Painter.js.map +1 -0
- package/dist/node_modules/zrender/lib/canvas/dashStyle.js +19 -0
- package/dist/node_modules/zrender/lib/canvas/dashStyle.js.map +1 -0
- package/dist/node_modules/zrender/lib/canvas/graphic.js +198 -0
- package/dist/node_modules/zrender/lib/canvas/graphic.js.map +1 -0
- package/dist/node_modules/zrender/lib/canvas/helper.js +48 -0
- package/dist/node_modules/zrender/lib/canvas/helper.js.map +1 -0
- package/dist/node_modules/zrender/lib/config.js +12 -0
- package/dist/node_modules/zrender/lib/config.js.map +1 -0
- package/dist/node_modules/zrender/lib/contain/arc.js +25 -0
- package/dist/node_modules/zrender/lib/contain/arc.js.map +1 -0
- package/dist/node_modules/zrender/lib/contain/cubic.js +14 -0
- package/dist/node_modules/zrender/lib/contain/cubic.js.map +1 -0
- package/dist/node_modules/zrender/lib/contain/line.js +17 -0
- package/dist/node_modules/zrender/lib/contain/line.js.map +1 -0
- package/dist/node_modules/zrender/lib/contain/path.js +149 -0
- package/dist/node_modules/zrender/lib/contain/path.js.map +1 -0
- package/dist/node_modules/zrender/lib/contain/polygon.js +20 -0
- package/dist/node_modules/zrender/lib/contain/polygon.js.map +1 -0
- package/dist/node_modules/zrender/lib/contain/quadratic.js +14 -0
- package/dist/node_modules/zrender/lib/contain/quadratic.js.map +1 -0
- package/dist/node_modules/zrender/lib/contain/text.js +97 -0
- package/dist/node_modules/zrender/lib/contain/text.js.map +1 -0
- package/dist/node_modules/zrender/lib/contain/util.js +8 -0
- package/dist/node_modules/zrender/lib/contain/util.js.map +1 -0
- package/dist/node_modules/zrender/lib/contain/windingLine.js +12 -0
- package/dist/node_modules/zrender/lib/contain/windingLine.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/BoundingRect.js +65 -0
- package/dist/node_modules/zrender/lib/core/BoundingRect.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/Eventful.js +98 -0
- package/dist/node_modules/zrender/lib/core/Eventful.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/GestureMgr.js +64 -0
- package/dist/node_modules/zrender/lib/core/GestureMgr.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/LRU.js +53 -0
- package/dist/node_modules/zrender/lib/core/LRU.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js +47 -0
- package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/PathProxy.js +301 -0
- package/dist/node_modules/zrender/lib/core/PathProxy.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/Point.js +73 -0
- package/dist/node_modules/zrender/lib/core/Point.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/Transformable.js +106 -0
- package/dist/node_modules/zrender/lib/core/Transformable.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/WeakMap.js +27 -0
- package/dist/node_modules/zrender/lib/core/WeakMap.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/bbox.js +53 -0
- package/dist/node_modules/zrender/lib/core/bbox.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/curve.js +162 -0
- package/dist/node_modules/zrender/lib/core/curve.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/dom.js +68 -0
- package/dist/node_modules/zrender/lib/core/dom.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/env.js +22 -0
- package/dist/node_modules/zrender/lib/core/env.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/event.js +70 -0
- package/dist/node_modules/zrender/lib/core/event.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/fourPointsTransform.js +42 -0
- package/dist/node_modules/zrender/lib/core/fourPointsTransform.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/matrix.js +45 -0
- package/dist/node_modules/zrender/lib/core/matrix.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/platform.js +49 -0
- package/dist/node_modules/zrender/lib/core/platform.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/timsort.js +287 -0
- package/dist/node_modules/zrender/lib/core/timsort.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/util.js +406 -0
- package/dist/node_modules/zrender/lib/core/util.js.map +1 -0
- package/dist/node_modules/zrender/lib/core/vector.js +77 -0
- package/dist/node_modules/zrender/lib/core/vector.js.map +1 -0
- package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +189 -0
- package/dist/node_modules/zrender/lib/dom/HandlerProxy.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/CompoundPath.js +30 -0
- package/dist/node_modules/zrender/lib/graphic/CompoundPath.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/Displayable.js +147 -0
- package/dist/node_modules/zrender/lib/graphic/Displayable.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/Gradient.js +15 -0
- package/dist/node_modules/zrender/lib/graphic/Gradient.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/Group.js +96 -0
- package/dist/node_modules/zrender/lib/graphic/Group.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/Image.js +56 -0
- package/dist/node_modules/zrender/lib/graphic/Image.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +70 -0
- package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/LinearGradient.js +14 -0
- package/dist/node_modules/zrender/lib/graphic/LinearGradient.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/Path.js +217 -0
- package/dist/node_modules/zrender/lib/graphic/Path.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/RadialGradient.js +14 -0
- package/dist/node_modules/zrender/lib/graphic/RadialGradient.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +53 -0
- package/dist/node_modules/zrender/lib/graphic/TSpan.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/Text.js +221 -0
- package/dist/node_modules/zrender/lib/graphic/Text.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/constants.js +7 -0
- package/dist/node_modules/zrender/lib/graphic/constants.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/helper/image.js +42 -0
- package/dist/node_modules/zrender/lib/graphic/helper/image.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +212 -0
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/helper/poly.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/helper/poly.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js +10 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js +80 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js +30 -0
- package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +29 -0
- package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Arc.js +30 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Arc.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +48 -0
- package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Circle.js +24 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Circle.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js +25 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Line.js +43 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Line.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js +25 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js +30 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Rect.js +34 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Rect.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ring.js +25 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ring.js.map +1 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Sector.js +27 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Sector.js.map +1 -0
- package/dist/node_modules/zrender/lib/mixin/Draggable.js +30 -0
- package/dist/node_modules/zrender/lib/mixin/Draggable.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/Painter.js +153 -0
- package/dist/node_modules/zrender/lib/svg/Painter.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/SVGPathRebuilder.js +53 -0
- package/dist/node_modules/zrender/lib/svg/SVGPathRebuilder.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/core.js +99 -0
- package/dist/node_modules/zrender/lib/svg/core.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/cssAnimation.js +183 -0
- package/dist/node_modules/zrender/lib/svg/cssAnimation.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/cssClassId.js +8 -0
- package/dist/node_modules/zrender/lib/svg/cssClassId.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/cssEmphasis.js +34 -0
- package/dist/node_modules/zrender/lib/svg/cssEmphasis.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/domapi.js +31 -0
- package/dist/node_modules/zrender/lib/svg/domapi.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/graphic.js +232 -0
- package/dist/node_modules/zrender/lib/svg/graphic.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/helper.js +113 -0
- package/dist/node_modules/zrender/lib/svg/helper.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/mapStyleToAttrs.js +51 -0
- package/dist/node_modules/zrender/lib/svg/mapStyleToAttrs.js.map +1 -0
- package/dist/node_modules/zrender/lib/svg/patch.js +86 -0
- package/dist/node_modules/zrender/lib/svg/patch.js.map +1 -0
- package/dist/node_modules/zrender/lib/tool/color.js +343 -0
- package/dist/node_modules/zrender/lib/tool/color.js.map +1 -0
- package/dist/node_modules/zrender/lib/tool/convertPath.js +92 -0
- package/dist/node_modules/zrender/lib/tool/convertPath.js.map +1 -0
- package/dist/node_modules/zrender/lib/tool/dividePath.js +182 -0
- package/dist/node_modules/zrender/lib/tool/dividePath.js.map +1 -0
- package/dist/node_modules/zrender/lib/tool/morphPath.js +320 -0
- package/dist/node_modules/zrender/lib/tool/morphPath.js.map +1 -0
- package/dist/node_modules/zrender/lib/tool/parseSVG.js +404 -0
- package/dist/node_modules/zrender/lib/tool/parseSVG.js.map +1 -0
- package/dist/node_modules/zrender/lib/tool/parseXML.js +15 -0
- package/dist/node_modules/zrender/lib/tool/parseXML.js.map +1 -0
- package/dist/node_modules/zrender/lib/tool/path.js +165 -0
- package/dist/node_modules/zrender/lib/tool/path.js.map +1 -0
- package/dist/node_modules/zrender/lib/tool/transformPath.js +39 -0
- package/dist/node_modules/zrender/lib/tool/transformPath.js.map +1 -0
- package/dist/node_modules/zrender/lib/zrender.js +141 -0
- package/dist/node_modules/zrender/lib/zrender.js.map +1 -0
- package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js +34 -0
- package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/provider/MarsunCoreProvider.d.ts +20 -0
- package/dist/provider/context.d.ts +24 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/styles/global.css +1 -0
- package/dist/theme/constants.d.ts +12 -0
- package/dist/theme/theme.d.ts +11 -0
- package/dist/utils/format.d.ts +2 -0
- package/dist/utils/resolveMaybeFn.d.ts +11 -0
- package/package.json +12 -4
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { normalize as C, scale as z, clone as M } from "../../../../zrender/lib/core/vector.js";
|
|
2
|
+
import { getNodeGlobalScale as D, getSymbolSize as H } from "./graphHelper.js";
|
|
3
|
+
import { retrieve3 as w, extend as E } from "../../../../zrender/lib/core/util.js";
|
|
4
|
+
import { getCurvenessForEdge as T } from "../helper/multipleGraphEdgeHelper.js";
|
|
5
|
+
var x = Math.PI, p = [];
|
|
6
|
+
function _(i, h, f, c) {
|
|
7
|
+
var l = i.coordinateSystem;
|
|
8
|
+
if (!(l && l.type !== "view")) {
|
|
9
|
+
var v = l.getBoundingRect(), u = i.getData(), o = u.graph, e = v.width / 2 + v.x, t = v.height / 2 + v.y, n = Math.min(v.width, v.height) / 2, r = u.count();
|
|
10
|
+
if (u.setLayout({
|
|
11
|
+
cx: e,
|
|
12
|
+
cy: t
|
|
13
|
+
}), !!r) {
|
|
14
|
+
if (f) {
|
|
15
|
+
var a = l.pointToData(c), s = a[0], S = a[1], y = [s - e, S - t];
|
|
16
|
+
C(y, y), z(y, y, n), f.setLayout([e + y[0], t + y[1]], !0);
|
|
17
|
+
var I = i.get(["circular", "rotateLabel"]);
|
|
18
|
+
G(f, I, e, t);
|
|
19
|
+
}
|
|
20
|
+
B[h](i, o, u, n, e, t, r), o.eachEdge(function(m, N) {
|
|
21
|
+
var g = w(m.getModel().get(["lineStyle", "curveness"]), T(m, i, N), 0), b = M(m.node1.getLayout()), d = M(m.node2.getLayout()), L, P = (b[0] + d[0]) / 2, R = (b[1] + d[1]) / 2;
|
|
22
|
+
+g && (g *= 3, L = [e * g + P * (1 - g), t * g + R * (1 - g)]), m.setLayout([b, d, L]);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
var B = {
|
|
28
|
+
value: function(i, h, f, c, l, v, u) {
|
|
29
|
+
var o = 0, e = f.getSum("value"), t = Math.PI * 2 / (e || u);
|
|
30
|
+
h.eachNode(function(n) {
|
|
31
|
+
var r = n.getValue("value"), a = t * (e ? r : 1) / 2;
|
|
32
|
+
o += a, n.setLayout([c * Math.cos(o) + l, c * Math.sin(o) + v]), o += a;
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
symbolSize: function(i, h, f, c, l, v, u) {
|
|
36
|
+
var o = 0;
|
|
37
|
+
p.length = u;
|
|
38
|
+
var e = D(i);
|
|
39
|
+
h.eachNode(function(r) {
|
|
40
|
+
var a = H(r);
|
|
41
|
+
isNaN(a) && (a = 2), a < 0 && (a = 0), a *= e;
|
|
42
|
+
var s = Math.asin(a / 2 / c);
|
|
43
|
+
isNaN(s) && (s = x / 2), p[r.dataIndex] = s, o += s * 2;
|
|
44
|
+
});
|
|
45
|
+
var t = (2 * x - o) / u / 2, n = 0;
|
|
46
|
+
h.eachNode(function(r) {
|
|
47
|
+
var a = t + p[r.dataIndex];
|
|
48
|
+
n += a, (!r.getLayout() || !r.getLayout().fixed) && r.setLayout([c * Math.cos(n) + l, c * Math.sin(n) + v]), n += a;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
function G(i, h, f, c) {
|
|
53
|
+
var l = i.getGraphicEl();
|
|
54
|
+
if (l) {
|
|
55
|
+
var v = i.getModel(), u = v.get(["label", "rotate"]) || 0, o = l.getSymbolPath();
|
|
56
|
+
if (h) {
|
|
57
|
+
var e = i.getLayout(), t = Math.atan2(e[1] - c, e[0] - f);
|
|
58
|
+
t < 0 && (t = Math.PI * 2 + t);
|
|
59
|
+
var n = e[0] < f;
|
|
60
|
+
n && (t = t - Math.PI);
|
|
61
|
+
var r = n ? "left" : "right";
|
|
62
|
+
o.setTextConfig({
|
|
63
|
+
rotation: -t,
|
|
64
|
+
position: r,
|
|
65
|
+
origin: "center"
|
|
66
|
+
});
|
|
67
|
+
var a = o.ensureState("emphasis");
|
|
68
|
+
E(a.textConfig || (a.textConfig = {}), {
|
|
69
|
+
position: r
|
|
70
|
+
});
|
|
71
|
+
} else
|
|
72
|
+
o.setTextConfig({
|
|
73
|
+
rotation: u *= Math.PI / 180
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
_ as circularLayout,
|
|
79
|
+
G as rotateNodeLabel
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=circularLayoutHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circularLayoutHelper.js","sources":["../../../../../../node_modules/echarts/lib/chart/graph/circularLayoutHelper.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nimport * as vec2 from 'zrender/lib/core/vector.js';\nimport { getSymbolSize, getNodeGlobalScale } from './graphHelper.js';\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport { getCurvenessForEdge } from '../helper/multipleGraphEdgeHelper.js';\nvar PI = Math.PI;\nvar _symbolRadiansHalf = [];\n/**\r\n * `basedOn` can be:\r\n * 'value':\r\n * This layout is not accurate and have same bad case. For example,\r\n * if the min value is very smaller than the max value, the nodes\r\n * with the min value probably overlap even though there is enough\r\n * space to layout them. So we only use this approach in the as the\r\n * init layout of the force layout.\r\n * FIXME\r\n * Probably we do not need this method any more but use\r\n * `basedOn: 'symbolSize'` in force layout if\r\n * delay its init operations to GraphView.\r\n * 'symbolSize':\r\n * This approach work only if all of the symbol size calculated.\r\n * That is, the progressive rendering is not applied to graph.\r\n * FIXME\r\n * If progressive rendering is applied to graph some day,\r\n * probably we have to use `basedOn: 'value'`.\r\n */\nexport function circularLayout(seriesModel, basedOn, draggingNode, pointer) {\n var coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n var rect = coordSys.getBoundingRect();\n var nodeData = seriesModel.getData();\n var graph = nodeData.graph;\n var cx = rect.width / 2 + rect.x;\n var cy = rect.height / 2 + rect.y;\n var r = Math.min(rect.width, rect.height) / 2;\n var count = nodeData.count();\n nodeData.setLayout({\n cx: cx,\n cy: cy\n });\n if (!count) {\n return;\n }\n if (draggingNode) {\n var _a = coordSys.pointToData(pointer),\n tempX = _a[0],\n tempY = _a[1];\n var v = [tempX - cx, tempY - cy];\n vec2.normalize(v, v);\n vec2.scale(v, v, r);\n draggingNode.setLayout([cx + v[0], cy + v[1]], true);\n var circularRotateLabel = seriesModel.get(['circular', 'rotateLabel']);\n rotateNodeLabel(draggingNode, circularRotateLabel, cx, cy);\n }\n _layoutNodesBasedOn[basedOn](seriesModel, graph, nodeData, r, cx, cy, count);\n graph.eachEdge(function (edge, index) {\n var curveness = zrUtil.retrieve3(edge.getModel().get(['lineStyle', 'curveness']), getCurvenessForEdge(edge, seriesModel, index), 0);\n var p1 = vec2.clone(edge.node1.getLayout());\n var p2 = vec2.clone(edge.node2.getLayout());\n var cp1;\n var x12 = (p1[0] + p2[0]) / 2;\n var y12 = (p1[1] + p2[1]) / 2;\n if (+curveness) {\n curveness *= 3;\n cp1 = [cx * curveness + x12 * (1 - curveness), cy * curveness + y12 * (1 - curveness)];\n }\n edge.setLayout([p1, p2, cp1]);\n });\n}\nvar _layoutNodesBasedOn = {\n value: function (seriesModel, graph, nodeData, r, cx, cy, count) {\n var angle = 0;\n var sum = nodeData.getSum('value');\n var unitAngle = Math.PI * 2 / (sum || count);\n graph.eachNode(function (node) {\n var value = node.getValue('value');\n var radianHalf = unitAngle * (sum ? value : 1) / 2;\n angle += radianHalf;\n node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]);\n angle += radianHalf;\n });\n },\n symbolSize: function (seriesModel, graph, nodeData, r, cx, cy, count) {\n var sumRadian = 0;\n _symbolRadiansHalf.length = count;\n var nodeScale = getNodeGlobalScale(seriesModel);\n graph.eachNode(function (node) {\n var symbolSize = getSymbolSize(node);\n // Normally this case will not happen, but we still add\n // some the defensive code (2px is an arbitrary value).\n isNaN(symbolSize) && (symbolSize = 2);\n symbolSize < 0 && (symbolSize = 0);\n symbolSize *= nodeScale;\n var symbolRadianHalf = Math.asin(symbolSize / 2 / r);\n // when `symbolSize / 2` is bigger than `r`.\n isNaN(symbolRadianHalf) && (symbolRadianHalf = PI / 2);\n _symbolRadiansHalf[node.dataIndex] = symbolRadianHalf;\n sumRadian += symbolRadianHalf * 2;\n });\n var halfRemainRadian = (2 * PI - sumRadian) / count / 2;\n var angle = 0;\n graph.eachNode(function (node) {\n var radianHalf = halfRemainRadian + _symbolRadiansHalf[node.dataIndex];\n angle += radianHalf;\n // init circular layout for\n // 1. layout undefined node\n // 2. not fixed node\n (!node.getLayout() || !node.getLayout().fixed) && node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]);\n angle += radianHalf;\n });\n }\n};\nexport function rotateNodeLabel(node, circularRotateLabel, cx, cy) {\n var el = node.getGraphicEl();\n // need to check if el exists. '-' value may not create node element.\n if (!el) {\n return;\n }\n var nodeModel = node.getModel();\n var labelRotate = nodeModel.get(['label', 'rotate']) || 0;\n var symbolPath = el.getSymbolPath();\n if (circularRotateLabel) {\n var pos = node.getLayout();\n var rad = Math.atan2(pos[1] - cy, pos[0] - cx);\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n var isLeft = pos[0] < cx;\n if (isLeft) {\n rad = rad - Math.PI;\n }\n var textPosition = isLeft ? 'left' : 'right';\n symbolPath.setTextConfig({\n rotation: -rad,\n position: textPosition,\n origin: 'center'\n });\n var emphasisState = symbolPath.ensureState('emphasis');\n zrUtil.extend(emphasisState.textConfig || (emphasisState.textConfig = {}), {\n position: textPosition\n });\n } else {\n symbolPath.setTextConfig({\n rotation: labelRotate *= Math.PI / 180\n });\n }\n}"],"names":["PI","_symbolRadiansHalf","circularLayout","seriesModel","basedOn","draggingNode","pointer","coordSys","rect","nodeData","graph","cx","cy","r","count","_a","tempX","tempY","v","vec2.normalize","vec2.scale","circularRotateLabel","rotateNodeLabel","_layoutNodesBasedOn","edge","index","curveness","zrUtil.retrieve3","getCurvenessForEdge","p1","vec2.clone","p2","cp1","x12","y12","angle","sum","unitAngle","node","value","radianHalf","sumRadian","nodeScale","getNodeGlobalScale","symbolSize","getSymbolSize","symbolRadianHalf","halfRemainRadian","el","nodeModel","labelRotate","symbolPath","pos","rad","isLeft","textPosition","emphasisState","zrUtil.extend"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import z from "../../coord/View.js";
|
|
2
|
+
import { getLayoutRect as N } from "../../util/layout.js";
|
|
3
|
+
import { fromPoints as P } from "../../../../zrender/lib/core/bbox.js";
|
|
4
|
+
import { extend as T } from "../../../../zrender/lib/core/util.js";
|
|
5
|
+
function d(h, e, f) {
|
|
6
|
+
var a = T(h.getBoxLayoutParams(), {
|
|
7
|
+
aspect: f
|
|
8
|
+
});
|
|
9
|
+
return N(a, {
|
|
10
|
+
width: e.getWidth(),
|
|
11
|
+
height: e.getHeight()
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function W(h, e) {
|
|
15
|
+
var f = [];
|
|
16
|
+
return h.eachSeriesByType("graph", function(a) {
|
|
17
|
+
var u = a.get("coordinateSystem");
|
|
18
|
+
if (!u || u === "view") {
|
|
19
|
+
var n = a.getData(), c = n.mapArray(function(B) {
|
|
20
|
+
var y = n.getItemModel(B);
|
|
21
|
+
return [+y.get("x"), +y.get("y")];
|
|
22
|
+
}), t = [], r = [];
|
|
23
|
+
P(c, t, r), r[0] - t[0] === 0 && (r[0] += 1, t[0] -= 1), r[1] - t[1] === 0 && (r[1] += 1, t[1] -= 1);
|
|
24
|
+
var p = (r[0] - t[0]) / (r[1] - t[1]), o = d(a, e, p);
|
|
25
|
+
isNaN(p) && (t = [o.x, o.y], r = [o.x + o.width, o.y + o.height]);
|
|
26
|
+
var i = r[0] - t[0], L = r[1] - t[1], V = o.width, v = o.height, g = a.coordinateSystem = new z();
|
|
27
|
+
g.zoomLimit = a.get("scaleLimit"), g.setBoundingRect(t[0], t[1], i, L), g.setViewRect(o.x, o.y, V, v), g.setCenter(a.get("center"), e), g.setZoom(a.get("zoom")), f.push(g);
|
|
28
|
+
}
|
|
29
|
+
}), f;
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
W as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=createView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createView.js","sources":["../../../../../../node_modules/echarts/lib/chart/graph/createView.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\n// FIXME Where to create the simple view coordinate system\nimport View from '../../coord/View.js';\nimport { getLayoutRect } from '../../util/layout.js';\nimport * as bbox from 'zrender/lib/core/bbox.js';\nimport { extend } from 'zrender/lib/core/util.js';\nfunction getViewRect(seriesModel, api, aspect) {\n var option = extend(seriesModel.getBoxLayoutParams(), {\n aspect: aspect\n });\n return getLayoutRect(option, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\nexport default function createViewCoordSys(ecModel, api) {\n var viewList = [];\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var coordSysType = seriesModel.get('coordinateSystem');\n if (!coordSysType || coordSysType === 'view') {\n var data_1 = seriesModel.getData();\n var positions = data_1.mapArray(function (idx) {\n var itemModel = data_1.getItemModel(idx);\n return [+itemModel.get('x'), +itemModel.get('y')];\n });\n var min = [];\n var max = [];\n bbox.fromPoints(positions, min, max);\n // If width or height is 0\n if (max[0] - min[0] === 0) {\n max[0] += 1;\n min[0] -= 1;\n }\n if (max[1] - min[1] === 0) {\n max[1] += 1;\n min[1] -= 1;\n }\n var aspect = (max[0] - min[0]) / (max[1] - min[1]);\n // FIXME If get view rect after data processed?\n var viewRect = getViewRect(seriesModel, api, aspect);\n // Position may be NaN, use view rect instead\n if (isNaN(aspect)) {\n min = [viewRect.x, viewRect.y];\n max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height];\n }\n var bbWidth = max[0] - min[0];\n var bbHeight = max[1] - min[1];\n var viewWidth = viewRect.width;\n var viewHeight = viewRect.height;\n var viewCoordSys = seriesModel.coordinateSystem = new View();\n viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');\n viewCoordSys.setBoundingRect(min[0], min[1], bbWidth, bbHeight);\n viewCoordSys.setViewRect(viewRect.x, viewRect.y, viewWidth, viewHeight);\n // Update roam info\n viewCoordSys.setCenter(seriesModel.get('center'), api);\n viewCoordSys.setZoom(seriesModel.get('zoom'));\n viewList.push(viewCoordSys);\n }\n });\n return viewList;\n}"],"names":["getViewRect","seriesModel","api","aspect","option","extend","getLayoutRect","createViewCoordSys","ecModel","viewList","coordSysType","data_1","positions","idx","itemModel","min","max","bbox.fromPoints","viewRect","bbWidth","bbHeight","viewWidth","viewHeight","viewCoordSys","View"],"mappings":";;;;AAgDA,SAASA,EAAYC,GAAaC,GAAKC,GAAQ;AAC7C,MAAIC,IAASC,EAAOJ,EAAY,mBAAkB,GAAI;AAAA,IACpD,QAAQE;AAAA,EACZ,CAAG;AACD,SAAOG,EAAcF,GAAQ;AAAA,IAC3B,OAAOF,EAAI,SAAQ;AAAA,IACnB,QAAQA,EAAI,UAAS;AAAA,EACzB,CAAG;AACH;AACe,SAASK,EAAmBC,GAASN,GAAK;AACvD,MAAIO,IAAW,CAAA;AACf,SAAAD,EAAQ,iBAAiB,SAAS,SAAUP,GAAa;AACvD,QAAIS,IAAeT,EAAY,IAAI,kBAAkB;AACrD,QAAI,CAACS,KAAgBA,MAAiB,QAAQ;AAC5C,UAAIC,IAASV,EAAY,QAAO,GAC5BW,IAAYD,EAAO,SAAS,SAAUE,GAAK;AAC7C,YAAIC,IAAYH,EAAO,aAAaE,CAAG;AACvC,eAAO,CAAC,CAACC,EAAU,IAAI,GAAG,GAAG,CAACA,EAAU,IAAI,GAAG,CAAC;AAAA,MAClD,CAAC,GACGC,IAAM,CAAA,GACNC,IAAM,CAAA;AACVC,MAAAA,EAAgBL,GAAWG,GAAKC,CAAG,GAE/BA,EAAI,CAAC,IAAID,EAAI,CAAC,MAAM,MACtBC,EAAI,CAAC,KAAK,GACVD,EAAI,CAAC,KAAK,IAERC,EAAI,CAAC,IAAID,EAAI,CAAC,MAAM,MACtBC,EAAI,CAAC,KAAK,GACVD,EAAI,CAAC,KAAK;AAEZ,UAAIZ,KAAUa,EAAI,CAAC,IAAID,EAAI,CAAC,MAAMC,EAAI,CAAC,IAAID,EAAI,CAAC,IAE5CG,IAAWlB,EAAYC,GAAaC,GAAKC,CAAM;AAEnD,MAAI,MAAMA,CAAM,MACdY,IAAM,CAACG,EAAS,GAAGA,EAAS,CAAC,GAC7BF,IAAM,CAACE,EAAS,IAAIA,EAAS,OAAOA,EAAS,IAAIA,EAAS,MAAM;AAElE,UAAIC,IAAUH,EAAI,CAAC,IAAID,EAAI,CAAC,GACxBK,IAAWJ,EAAI,CAAC,IAAID,EAAI,CAAC,GACzBM,IAAYH,EAAS,OACrBI,IAAaJ,EAAS,QACtBK,IAAetB,EAAY,mBAAmB,IAAIuB,EAAI;AAC1D,MAAAD,EAAa,YAAYtB,EAAY,IAAI,YAAY,GACrDsB,EAAa,gBAAgBR,EAAI,CAAC,GAAGA,EAAI,CAAC,GAAGI,GAASC,CAAQ,GAC9DG,EAAa,YAAYL,EAAS,GAAGA,EAAS,GAAGG,GAAWC,CAAU,GAEtEC,EAAa,UAAUtB,EAAY,IAAI,QAAQ,GAAGC,CAAG,GACrDqB,EAAa,QAAQtB,EAAY,IAAI,MAAM,CAAC,GAC5CQ,EAAS,KAAKc,CAAY;AAAA,IAC5B;AAAA,EACF,CAAC,GACMd;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { extend as f } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
function S(t) {
|
|
3
|
+
return t instanceof Array || (t = [t, t]), t;
|
|
4
|
+
}
|
|
5
|
+
function v(t) {
|
|
6
|
+
t.eachSeriesByType("graph", function(a) {
|
|
7
|
+
var n = a.getGraph(), e = a.getEdgeData(), s = S(a.get("edgeSymbol")), r = S(a.get("edgeSymbolSize"));
|
|
8
|
+
e.setVisual("fromSymbol", s && s[0]), e.setVisual("toSymbol", s && s[1]), e.setVisual("fromSymbolSize", r && r[0]), e.setVisual("toSymbolSize", r && r[1]), e.setVisual("style", a.getModel("lineStyle").getLineStyle()), e.each(function(g) {
|
|
9
|
+
var u = e.getItemModel(g), l = n.getEdgeByIndex(g), i = S(u.getShallow("symbol", !0)), y = S(u.getShallow("symbolSize", !0)), b = u.getModel("lineStyle").getLineStyle(), m = e.ensureUniqueItemVisual(g, "style");
|
|
10
|
+
switch (f(m, b), m.stroke) {
|
|
11
|
+
case "source": {
|
|
12
|
+
var o = l.node1.getVisual("style");
|
|
13
|
+
m.stroke = o && o.fill;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
case "target": {
|
|
17
|
+
var o = l.node2.getVisual("style");
|
|
18
|
+
m.stroke = o && o.fill;
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
i[0] && l.setVisual("fromSymbol", i[0]), i[1] && l.setVisual("toSymbol", i[1]), y[0] && l.setVisual("fromSymbolSize", y[0]), y[1] && l.setVisual("toSymbolSize", y[1]);
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
v as default
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=edgeVisual.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edgeVisual.js","sources":["../../../../../../node_modules/echarts/lib/chart/graph/edgeVisual.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nimport { extend } from 'zrender/lib/core/util.js';\nfunction normalize(a) {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n return a;\n}\nexport default function graphEdgeVisual(ecModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var graph = seriesModel.getGraph();\n var edgeData = seriesModel.getEdgeData();\n var symbolType = normalize(seriesModel.get('edgeSymbol'));\n var symbolSize = normalize(seriesModel.get('edgeSymbolSize'));\n // const colorQuery = ['lineStyle', 'color'] as const;\n // const opacityQuery = ['lineStyle', 'opacity'] as const;\n edgeData.setVisual('fromSymbol', symbolType && symbolType[0]);\n edgeData.setVisual('toSymbol', symbolType && symbolType[1]);\n edgeData.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);\n edgeData.setVisual('toSymbolSize', symbolSize && symbolSize[1]);\n edgeData.setVisual('style', seriesModel.getModel('lineStyle').getLineStyle());\n edgeData.each(function (idx) {\n var itemModel = edgeData.getItemModel(idx);\n var edge = graph.getEdgeByIndex(idx);\n var symbolType = normalize(itemModel.getShallow('symbol', true));\n var symbolSize = normalize(itemModel.getShallow('symbolSize', true));\n // Edge visual must after node visual\n var style = itemModel.getModel('lineStyle').getLineStyle();\n var existsStyle = edgeData.ensureUniqueItemVisual(idx, 'style');\n extend(existsStyle, style);\n switch (existsStyle.stroke) {\n case 'source':\n {\n var nodeStyle = edge.node1.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n case 'target':\n {\n var nodeStyle = edge.node2.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n }\n symbolType[0] && edge.setVisual('fromSymbol', symbolType[0]);\n symbolType[1] && edge.setVisual('toSymbol', symbolType[1]);\n symbolSize[0] && edge.setVisual('fromSymbolSize', symbolSize[0]);\n symbolSize[1] && edge.setVisual('toSymbolSize', symbolSize[1]);\n });\n });\n}"],"names":["normalize","a","graphEdgeVisual","ecModel","seriesModel","graph","edgeData","symbolType","symbolSize","idx","itemModel","edge","style","existsStyle","extend","nodeStyle"],"mappings":";AA4CA,SAASA,EAAUC,GAAG;AACpB,SAAMA,aAAa,UACjBA,IAAI,CAACA,GAAGA,CAAC,IAEJA;AACT;AACe,SAASC,EAAgBC,GAAS;AAC/C,EAAAA,EAAQ,iBAAiB,SAAS,SAAUC,GAAa;AACvD,QAAIC,IAAQD,EAAY,SAAQ,GAC5BE,IAAWF,EAAY,YAAW,GAClCG,IAAaP,EAAUI,EAAY,IAAI,YAAY,CAAC,GACpDI,IAAaR,EAAUI,EAAY,IAAI,gBAAgB,CAAC;AAG5D,IAAAE,EAAS,UAAU,cAAcC,KAAcA,EAAW,CAAC,CAAC,GAC5DD,EAAS,UAAU,YAAYC,KAAcA,EAAW,CAAC,CAAC,GAC1DD,EAAS,UAAU,kBAAkBE,KAAcA,EAAW,CAAC,CAAC,GAChEF,EAAS,UAAU,gBAAgBE,KAAcA,EAAW,CAAC,CAAC,GAC9DF,EAAS,UAAU,SAASF,EAAY,SAAS,WAAW,EAAE,cAAc,GAC5EE,EAAS,KAAK,SAAUG,GAAK;AAC3B,UAAIC,IAAYJ,EAAS,aAAaG,CAAG,GACrCE,IAAON,EAAM,eAAeI,CAAG,GAC/BF,IAAaP,EAAUU,EAAU,WAAW,UAAU,EAAI,CAAC,GAC3DF,IAAaR,EAAUU,EAAU,WAAW,cAAc,EAAI,CAAC,GAE/DE,IAAQF,EAAU,SAAS,WAAW,EAAE,aAAY,GACpDG,IAAcP,EAAS,uBAAuBG,GAAK,OAAO;AAE9D,cADAK,EAAOD,GAAaD,CAAK,GACjBC,EAAY,QAAM;AAAA,QACxB,KAAK,UACH;AACE,cAAIE,IAAYJ,EAAK,MAAM,UAAU,OAAO;AAC5C,UAAAE,EAAY,SAASE,KAAaA,EAAU;AAC5C;AAAA,QACF;AAAA,QACF,KAAK,UACH;AACE,cAAIA,IAAYJ,EAAK,MAAM,UAAU,OAAO;AAC5C,UAAAE,EAAY,SAASE,KAAaA,EAAU;AAC5C;AAAA,QACF;AAAA,MACV;AACM,MAAAR,EAAW,CAAC,KAAKI,EAAK,UAAU,cAAcJ,EAAW,CAAC,CAAC,GAC3DA,EAAW,CAAC,KAAKI,EAAK,UAAU,YAAYJ,EAAW,CAAC,CAAC,GACzDC,EAAW,CAAC,KAAKG,EAAK,UAAU,kBAAkBH,EAAW,CAAC,CAAC,GAC/DA,EAAW,CAAC,KAAKG,EAAK,UAAU,gBAAgBH,EAAW,CAAC,CAAC;AAAA,IAC/D,CAAC;AAAA,EACH,CAAC;AACH;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { create as q, clone as B, sub as s, len as N, normalize as D, set as E, copy as G, scaleAndAdd as H } from "../../../../zrender/lib/core/vector.js";
|
|
2
|
+
var o = H;
|
|
3
|
+
function J(U, z, d) {
|
|
4
|
+
for (var t = U, l = z, u = d.rect, S = u.width, w = u.height, m = [u.x + S / 2, u.y + w / 2], $ = d.gravity == null ? 0.1 : d.gravity, y = 0; y < t.length; y++) {
|
|
5
|
+
var c = t[y];
|
|
6
|
+
c.p || (c.p = q(S * (Math.random() - 0.5) + m[0], w * (Math.random() - 0.5) + m[1])), c.pp = B(c.p), c.edges = null;
|
|
7
|
+
}
|
|
8
|
+
var L = d.friction == null ? 0.6 : d.friction, p = L, A, b;
|
|
9
|
+
return {
|
|
10
|
+
warmUp: function() {
|
|
11
|
+
p = L * 0.8;
|
|
12
|
+
},
|
|
13
|
+
setFixed: function(v) {
|
|
14
|
+
t[v].fixed = !0;
|
|
15
|
+
},
|
|
16
|
+
setUnfixed: function(v) {
|
|
17
|
+
t[v].fixed = !1;
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* Before step hook
|
|
21
|
+
*/
|
|
22
|
+
beforeStep: function(v) {
|
|
23
|
+
A = v;
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* After step hook
|
|
27
|
+
*/
|
|
28
|
+
afterStep: function(v) {
|
|
29
|
+
b = v;
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Some formulas were originally copied from "d3.js"
|
|
33
|
+
* https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js
|
|
34
|
+
* with some modifications made for this project.
|
|
35
|
+
* See the license statement at the head of this file.
|
|
36
|
+
*/
|
|
37
|
+
step: function(v) {
|
|
38
|
+
A && A(t, l);
|
|
39
|
+
for (var a = [], h = t.length, r = 0; r < l.length; r++) {
|
|
40
|
+
var x = l[r];
|
|
41
|
+
if (!x.ignoreForceLayout) {
|
|
42
|
+
var f = x.n1, e = x.n2;
|
|
43
|
+
s(a, e.p, f.p);
|
|
44
|
+
var n = N(a) - x.d, g = e.w / (f.w + e.w);
|
|
45
|
+
isNaN(g) && (g = 0), D(a, a), !f.fixed && o(f.p, f.p, a, g * n * p), !e.fixed && o(e.p, e.p, a, -(1 - g) * n * p);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
for (var r = 0; r < h; r++) {
|
|
49
|
+
var i = t[r];
|
|
50
|
+
i.fixed || (s(a, m, i.p), o(i.p, i.p, a, $ * p));
|
|
51
|
+
}
|
|
52
|
+
for (var r = 0; r < h; r++)
|
|
53
|
+
for (var f = t[r], M = r + 1; M < h; M++) {
|
|
54
|
+
var e = t[M];
|
|
55
|
+
s(a, e.p, f.p);
|
|
56
|
+
var n = N(a);
|
|
57
|
+
n === 0 && (E(a, Math.random() - 0.5, Math.random() - 0.5), n = 1);
|
|
58
|
+
var k = (f.rep + e.rep) / n / n;
|
|
59
|
+
!f.fixed && o(f.pp, f.pp, a, k), !e.fixed && o(e.pp, e.pp, a, -k);
|
|
60
|
+
}
|
|
61
|
+
for (var C = [], r = 0; r < h; r++) {
|
|
62
|
+
var i = t[r];
|
|
63
|
+
i.fixed || (s(C, i.p, i.pp), o(i.p, i.p, C, p), G(i.pp, i.p));
|
|
64
|
+
}
|
|
65
|
+
p = p * 0.992;
|
|
66
|
+
var F = p < 0.01;
|
|
67
|
+
b && b(t, l, F), v && v(F);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
J as forceLayout
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=forceHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forceHelper.js","sources":["../../../../../../node_modules/echarts/lib/chart/graph/forceHelper.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\n/*\r\n* A third-party license is embedded for some of the code in this file:\r\n* Some formulas were originally copied from \"d3.js\" with some\r\n* modifications made for this project.\r\n* (See more details in the comment of the method \"step\" below.)\r\n* The use of the source code of this file is also subject to the terms\r\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\r\n* </licenses/LICENSE-d3>).\r\n*/\nimport * as vec2 from 'zrender/lib/core/vector.js';\nvar scaleAndAdd = vec2.scaleAndAdd;\n// function adjacentNode(n, e) {\n// return e.n1 === n ? e.n2 : e.n1;\n// }\nexport function forceLayout(inNodes, inEdges, opts) {\n var nodes = inNodes;\n var edges = inEdges;\n var rect = opts.rect;\n var width = rect.width;\n var height = rect.height;\n var center = [rect.x + width / 2, rect.y + height / 2];\n // let scale = opts.scale || 1;\n var gravity = opts.gravity == null ? 0.1 : opts.gravity;\n // for (let i = 0; i < edges.length; i++) {\n // let e = edges[i];\n // let n1 = e.n1;\n // let n2 = e.n2;\n // n1.edges = n1.edges || [];\n // n2.edges = n2.edges || [];\n // n1.edges.push(e);\n // n2.edges.push(e);\n // }\n // Init position\n for (var i = 0; i < nodes.length; i++) {\n var n = nodes[i];\n if (!n.p) {\n n.p = vec2.create(width * (Math.random() - 0.5) + center[0], height * (Math.random() - 0.5) + center[1]);\n }\n n.pp = vec2.clone(n.p);\n n.edges = null;\n }\n // Formula in 'Graph Drawing by Force-directed Placement'\n // let k = scale * Math.sqrt(width * height / nodes.length);\n // let k2 = k * k;\n var initialFriction = opts.friction == null ? 0.6 : opts.friction;\n var friction = initialFriction;\n var beforeStepCallback;\n var afterStepCallback;\n return {\n warmUp: function () {\n friction = initialFriction * 0.8;\n },\n setFixed: function (idx) {\n nodes[idx].fixed = true;\n },\n setUnfixed: function (idx) {\n nodes[idx].fixed = false;\n },\n /**\r\n * Before step hook\r\n */\n beforeStep: function (cb) {\n beforeStepCallback = cb;\n },\n /**\r\n * After step hook\r\n */\n afterStep: function (cb) {\n afterStepCallback = cb;\n },\n /**\r\n * Some formulas were originally copied from \"d3.js\"\r\n * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js\r\n * with some modifications made for this project.\r\n * See the license statement at the head of this file.\r\n */\n step: function (cb) {\n beforeStepCallback && beforeStepCallback(nodes, edges);\n var v12 = [];\n var nLen = nodes.length;\n for (var i = 0; i < edges.length; i++) {\n var e = edges[i];\n if (e.ignoreForceLayout) {\n continue;\n }\n var n1 = e.n1;\n var n2 = e.n2;\n vec2.sub(v12, n2.p, n1.p);\n var d = vec2.len(v12) - e.d;\n var w = n2.w / (n1.w + n2.w);\n if (isNaN(w)) {\n w = 0;\n }\n vec2.normalize(v12, v12);\n !n1.fixed && scaleAndAdd(n1.p, n1.p, v12, w * d * friction);\n !n2.fixed && scaleAndAdd(n2.p, n2.p, v12, -(1 - w) * d * friction);\n }\n // Gravity\n for (var i = 0; i < nLen; i++) {\n var n = nodes[i];\n if (!n.fixed) {\n vec2.sub(v12, center, n.p);\n // let d = vec2.len(v12);\n // vec2.scale(v12, v12, 1 / d);\n // let gravityFactor = gravity;\n scaleAndAdd(n.p, n.p, v12, gravity * friction);\n }\n }\n // Repulsive\n // PENDING\n for (var i = 0; i < nLen; i++) {\n var n1 = nodes[i];\n for (var j = i + 1; j < nLen; j++) {\n var n2 = nodes[j];\n vec2.sub(v12, n2.p, n1.p);\n var d = vec2.len(v12);\n if (d === 0) {\n // Random repulse\n vec2.set(v12, Math.random() - 0.5, Math.random() - 0.5);\n d = 1;\n }\n var repFact = (n1.rep + n2.rep) / d / d;\n !n1.fixed && scaleAndAdd(n1.pp, n1.pp, v12, repFact);\n !n2.fixed && scaleAndAdd(n2.pp, n2.pp, v12, -repFact);\n }\n }\n var v = [];\n for (var i = 0; i < nLen; i++) {\n var n = nodes[i];\n if (!n.fixed) {\n vec2.sub(v, n.p, n.pp);\n scaleAndAdd(n.p, n.p, v, friction);\n vec2.copy(n.pp, n.p);\n }\n }\n friction = friction * 0.992;\n var finished = friction < 0.01;\n afterStepCallback && afterStepCallback(nodes, edges, finished);\n cb && cb(finished);\n }\n };\n}"],"names":["scaleAndAdd","vec2.scaleAndAdd","forceLayout","inNodes","inEdges","opts","nodes","edges","rect","width","height","center","gravity","i","n","vec2.create","vec2.clone","initialFriction","friction","beforeStepCallback","afterStepCallback","idx","cb","v12","nLen","e","n1","n2","vec2.sub","d","vec2.len","w","vec2.normalize","j","vec2.set","repFact","v","vec2.copy","finished"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { forceLayout as k } from "./forceHelper.js";
|
|
2
|
+
import { simpleLayout as q } from "./simpleLayoutHelper.js";
|
|
3
|
+
import { circularLayout as s } from "./circularLayoutHelper.js";
|
|
4
|
+
import { linearMap as b } from "../../util/number.js";
|
|
5
|
+
import { copy as F } from "../../../../zrender/lib/core/vector.js";
|
|
6
|
+
import { isArray as C, retrieve3 as z } from "../../../../zrender/lib/core/util.js";
|
|
7
|
+
import { getCurvenessForEdge as H } from "../helper/multipleGraphEdgeHelper.js";
|
|
8
|
+
function X(G) {
|
|
9
|
+
G.eachSeriesByType("graph", function(r) {
|
|
10
|
+
var d = r.coordinateSystem;
|
|
11
|
+
if (!(d && d.type !== "view"))
|
|
12
|
+
if (r.get("layout") === "force") {
|
|
13
|
+
var I = r.preservedPoints || {}, y = r.getGraph(), f = y.data, w = y.edgeData, l = r.getModel("force"), B = l.get("initLayout");
|
|
14
|
+
r.preservedPoints ? f.each(function(a) {
|
|
15
|
+
var v = f.getId(a);
|
|
16
|
+
f.setItemLayout(a, I[v] || [NaN, NaN]);
|
|
17
|
+
}) : !B || B === "none" ? q(r) : B === "circular" && s(r, "value");
|
|
18
|
+
var P = f.getDataExtent("value"), R = w.getDataExtent("value"), N = l.get("repulsion"), g = l.get("edgeLength"), L = C(N) ? N : [N, N], c = C(g) ? g : [g, g];
|
|
19
|
+
c = [c[1], c[0]];
|
|
20
|
+
var E = f.mapArray("value", function(a, v) {
|
|
21
|
+
var e = f.getItemLayout(v), t = b(a, P, L);
|
|
22
|
+
return isNaN(t) && (t = (L[0] + L[1]) / 2), {
|
|
23
|
+
w: t,
|
|
24
|
+
rep: t,
|
|
25
|
+
fixed: f.getItemModel(v).get("fixed"),
|
|
26
|
+
p: !e || isNaN(e[0]) || isNaN(e[1]) ? null : e
|
|
27
|
+
};
|
|
28
|
+
}), T = w.mapArray("value", function(a, v) {
|
|
29
|
+
var e = y.getEdgeByIndex(v), t = b(a, R, c);
|
|
30
|
+
isNaN(t) && (t = (c[0] + c[1]) / 2);
|
|
31
|
+
var m = e.getModel(), o = z(e.getModel().get(["lineStyle", "curveness"]), -H(e, r, v, !0), 0);
|
|
32
|
+
return {
|
|
33
|
+
n1: E[e.node1.dataIndex],
|
|
34
|
+
n2: E[e.node2.dataIndex],
|
|
35
|
+
d: t,
|
|
36
|
+
curveness: o,
|
|
37
|
+
ignoreForceLayout: m.get("ignoreForceLayout")
|
|
38
|
+
};
|
|
39
|
+
}), j = d.getBoundingRect(), x = k(E, T, {
|
|
40
|
+
rect: j,
|
|
41
|
+
gravity: l.get("gravity"),
|
|
42
|
+
friction: l.get("friction")
|
|
43
|
+
});
|
|
44
|
+
x.beforeStep(function(a, v) {
|
|
45
|
+
for (var e = 0, t = a.length; e < t; e++)
|
|
46
|
+
a[e].fixed && F(a[e].p, y.getNodeByIndex(e).getLayout());
|
|
47
|
+
}), x.afterStep(function(a, v, e) {
|
|
48
|
+
for (var t = 0, m = a.length; t < m; t++)
|
|
49
|
+
a[t].fixed || y.getNodeByIndex(t).setLayout(a[t].p), I[f.getId(t)] = a[t].p;
|
|
50
|
+
for (var t = 0, m = v.length; t < m; t++) {
|
|
51
|
+
var o = v[t], M = y.getEdgeByIndex(t), i = o.n1.p, n = o.n2.p, u = M.getLayout();
|
|
52
|
+
u = u ? u.slice() : [], u[0] = u[0] || [], u[1] = u[1] || [], F(u[0], i), F(u[1], n), +o.curveness && (u[2] = [(i[0] + n[0]) / 2 - (i[1] - n[1]) * o.curveness, (i[1] + n[1]) / 2 - (n[0] - i[0]) * o.curveness]), M.setLayout(u);
|
|
53
|
+
}
|
|
54
|
+
}), r.forceLayout = x, r.preservedPoints = I, x.step();
|
|
55
|
+
} else
|
|
56
|
+
r.forceLayout = null;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
X as default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=forceLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forceLayout.js","sources":["../../../../../../node_modules/echarts/lib/chart/graph/forceLayout.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nimport { forceLayout } from './forceHelper.js';\nimport { simpleLayout } from './simpleLayoutHelper.js';\nimport { circularLayout } from './circularLayoutHelper.js';\nimport { linearMap } from '../../util/number.js';\nimport * as vec2 from 'zrender/lib/core/vector.js';\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport { getCurvenessForEdge } from '../helper/multipleGraphEdgeHelper.js';\nexport default function graphForceLayout(ecModel) {\n ecModel.eachSeriesByType('graph', function (graphSeries) {\n var coordSys = graphSeries.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n if (graphSeries.get('layout') === 'force') {\n var preservedPoints_1 = graphSeries.preservedPoints || {};\n var graph_1 = graphSeries.getGraph();\n var nodeData_1 = graph_1.data;\n var edgeData = graph_1.edgeData;\n var forceModel = graphSeries.getModel('force');\n var initLayout = forceModel.get('initLayout');\n if (graphSeries.preservedPoints) {\n nodeData_1.each(function (idx) {\n var id = nodeData_1.getId(idx);\n nodeData_1.setItemLayout(idx, preservedPoints_1[id] || [NaN, NaN]);\n });\n } else if (!initLayout || initLayout === 'none') {\n simpleLayout(graphSeries);\n } else if (initLayout === 'circular') {\n circularLayout(graphSeries, 'value');\n }\n var nodeDataExtent_1 = nodeData_1.getDataExtent('value');\n var edgeDataExtent_1 = edgeData.getDataExtent('value');\n // let edgeDataExtent = edgeData.getDataExtent('value');\n var repulsion = forceModel.get('repulsion');\n var edgeLength = forceModel.get('edgeLength');\n var repulsionArr_1 = zrUtil.isArray(repulsion) ? repulsion : [repulsion, repulsion];\n var edgeLengthArr_1 = zrUtil.isArray(edgeLength) ? edgeLength : [edgeLength, edgeLength];\n // Larger value has smaller length\n edgeLengthArr_1 = [edgeLengthArr_1[1], edgeLengthArr_1[0]];\n var nodes_1 = nodeData_1.mapArray('value', function (value, idx) {\n var point = nodeData_1.getItemLayout(idx);\n var rep = linearMap(value, nodeDataExtent_1, repulsionArr_1);\n if (isNaN(rep)) {\n rep = (repulsionArr_1[0] + repulsionArr_1[1]) / 2;\n }\n return {\n w: rep,\n rep: rep,\n fixed: nodeData_1.getItemModel(idx).get('fixed'),\n p: !point || isNaN(point[0]) || isNaN(point[1]) ? null : point\n };\n });\n var edges = edgeData.mapArray('value', function (value, idx) {\n var edge = graph_1.getEdgeByIndex(idx);\n var d = linearMap(value, edgeDataExtent_1, edgeLengthArr_1);\n if (isNaN(d)) {\n d = (edgeLengthArr_1[0] + edgeLengthArr_1[1]) / 2;\n }\n var edgeModel = edge.getModel();\n var curveness = zrUtil.retrieve3(edge.getModel().get(['lineStyle', 'curveness']), -getCurvenessForEdge(edge, graphSeries, idx, true), 0);\n return {\n n1: nodes_1[edge.node1.dataIndex],\n n2: nodes_1[edge.node2.dataIndex],\n d: d,\n curveness: curveness,\n ignoreForceLayout: edgeModel.get('ignoreForceLayout')\n };\n });\n // let coordSys = graphSeries.coordinateSystem;\n var rect = coordSys.getBoundingRect();\n var forceInstance = forceLayout(nodes_1, edges, {\n rect: rect,\n gravity: forceModel.get('gravity'),\n friction: forceModel.get('friction')\n });\n forceInstance.beforeStep(function (nodes, edges) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].fixed) {\n // Write back to layout instance\n vec2.copy(nodes[i].p, graph_1.getNodeByIndex(i).getLayout());\n }\n }\n });\n forceInstance.afterStep(function (nodes, edges, stopped) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (!nodes[i].fixed) {\n graph_1.getNodeByIndex(i).setLayout(nodes[i].p);\n }\n preservedPoints_1[nodeData_1.getId(i)] = nodes[i].p;\n }\n for (var i = 0, l = edges.length; i < l; i++) {\n var e = edges[i];\n var edge = graph_1.getEdgeByIndex(i);\n var p1 = e.n1.p;\n var p2 = e.n2.p;\n var points = edge.getLayout();\n points = points ? points.slice() : [];\n points[0] = points[0] || [];\n points[1] = points[1] || [];\n vec2.copy(points[0], p1);\n vec2.copy(points[1], p2);\n if (+e.curveness) {\n points[2] = [(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness];\n }\n edge.setLayout(points);\n }\n });\n graphSeries.forceLayout = forceInstance;\n graphSeries.preservedPoints = preservedPoints_1;\n // Step to get the layout\n forceInstance.step();\n } else {\n // Remove prev injected forceLayout instance\n graphSeries.forceLayout = null;\n }\n });\n}"],"names":["graphForceLayout","ecModel","graphSeries","coordSys","preservedPoints_1","graph_1","nodeData_1","edgeData","forceModel","initLayout","idx","id","simpleLayout","circularLayout","nodeDataExtent_1","edgeDataExtent_1","repulsion","edgeLength","repulsionArr_1","zrUtil.isArray","edgeLengthArr_1","nodes_1","value","point","rep","linearMap","edges","edge","d","edgeModel","curveness","zrUtil.retrieve3","getCurvenessForEdge","rect","forceInstance","forceLayout","nodes","i","l","vec2.copy","stopped","e","p1","p2","points"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function i(e) {
|
|
2
|
+
var o = e.coordinateSystem;
|
|
3
|
+
if (o.type !== "view")
|
|
4
|
+
return 1;
|
|
5
|
+
var a = e.option.nodeScaleRatio, r = o.scaleX, t = o.getZoom(), n = (t - 1) * a + 1;
|
|
6
|
+
return n / r;
|
|
7
|
+
}
|
|
8
|
+
function c(e) {
|
|
9
|
+
var o = e.getVisual("symbolSize");
|
|
10
|
+
return o instanceof Array && (o = (o[0] + o[1]) / 2), +o;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
i as getNodeGlobalScale,
|
|
14
|
+
c as getSymbolSize
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=graphHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphHelper.js","sources":["../../../../../../node_modules/echarts/lib/chart/graph/graphHelper.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nexport function getNodeGlobalScale(seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n if (coordSys.type !== 'view') {\n return 1;\n }\n var nodeScaleRatio = seriesModel.option.nodeScaleRatio;\n var groupZoom = coordSys.scaleX;\n // Scale node when zoom changes\n var roamZoom = coordSys.getZoom();\n var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;\n return nodeScale / groupZoom;\n}\nexport function getSymbolSize(node) {\n var symbolSize = node.getVisual('symbolSize');\n if (symbolSize instanceof Array) {\n symbolSize = (symbolSize[0] + symbolSize[1]) / 2;\n }\n return +symbolSize;\n}"],"names":["getNodeGlobalScale","seriesModel","coordSys","nodeScaleRatio","groupZoom","roamZoom","nodeScale","getSymbolSize","node","symbolSize"],"mappings":"AA2CO,SAASA,EAAmBC,GAAa;AAC9C,MAAIC,IAAWD,EAAY;AAC3B,MAAIC,EAAS,SAAS;AACpB,WAAO;AAET,MAAIC,IAAiBF,EAAY,OAAO,gBACpCG,IAAYF,EAAS,QAErBG,IAAWH,EAAS,QAAO,GAC3BI,KAAaD,IAAW,KAAKF,IAAiB;AAClD,SAAOG,IAAYF;AACrB;AACO,SAASG,EAAcC,GAAM;AAClC,MAAIC,IAAaD,EAAK,UAAU,YAAY;AAC5C,SAAIC,aAAsB,UACxBA,KAAcA,EAAW,CAAC,IAAIA,EAAW,CAAC,KAAK,IAE1C,CAACA;AACV;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import c from "./categoryFilter.js";
|
|
2
|
+
import p from "./categoryVisual.js";
|
|
3
|
+
import u from "./edgeVisual.js";
|
|
4
|
+
import d from "./simpleLayout.js";
|
|
5
|
+
import f from "./circularLayout.js";
|
|
6
|
+
import y from "./forceLayout.js";
|
|
7
|
+
import s from "./createView.js";
|
|
8
|
+
import A from "../../coord/View.js";
|
|
9
|
+
import h from "./GraphView.js";
|
|
10
|
+
import g from "./GraphSeries.js";
|
|
11
|
+
import { updateCenterAndZoom as V } from "../../action/roamHelper.js";
|
|
12
|
+
import { noop as a } from "../../../../zrender/lib/core/util.js";
|
|
13
|
+
var C = {
|
|
14
|
+
type: "graphRoam",
|
|
15
|
+
event: "graphRoam",
|
|
16
|
+
update: "none"
|
|
17
|
+
};
|
|
18
|
+
function Z(o) {
|
|
19
|
+
o.registerChartView(h), o.registerSeriesModel(g), o.registerProcessor(c), o.registerVisual(p), o.registerVisual(u), o.registerLayout(d), o.registerLayout(o.PRIORITY.VISUAL.POST_CHART_LAYOUT, f), o.registerLayout(y), o.registerCoordinateSystem("graphView", {
|
|
20
|
+
dimensions: A.dimensions,
|
|
21
|
+
create: s
|
|
22
|
+
}), o.registerAction({
|
|
23
|
+
type: "focusNodeAdjacency",
|
|
24
|
+
event: "focusNodeAdjacency",
|
|
25
|
+
update: "series:focusNodeAdjacency"
|
|
26
|
+
}, a), o.registerAction({
|
|
27
|
+
type: "unfocusNodeAdjacency",
|
|
28
|
+
event: "unfocusNodeAdjacency",
|
|
29
|
+
update: "series:unfocusNodeAdjacency"
|
|
30
|
+
}, a), o.registerAction(C, function(r, n, i) {
|
|
31
|
+
n.eachComponent({
|
|
32
|
+
mainType: "series",
|
|
33
|
+
query: r
|
|
34
|
+
}, function(e) {
|
|
35
|
+
var m = e.coordinateSystem, t = V(m, r, void 0, i);
|
|
36
|
+
e.setCenter && e.setCenter(t.center), e.setZoom && e.setZoom(t.zoom);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
Z as install
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.js","sources":["../../../../../../node_modules/echarts/lib/chart/graph/install.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nimport categoryFilter from './categoryFilter.js';\nimport categoryVisual from './categoryVisual.js';\nimport edgeVisual from './edgeVisual.js';\nimport simpleLayout from './simpleLayout.js';\nimport circularLayout from './circularLayout.js';\nimport forceLayout from './forceLayout.js';\nimport createView from './createView.js';\nimport View from '../../coord/View.js';\nimport GraphView from './GraphView.js';\nimport GraphSeriesModel from './GraphSeries.js';\nimport { updateCenterAndZoom } from '../../action/roamHelper.js';\nimport { noop } from 'zrender/lib/core/util.js';\nvar actionInfo = {\n type: 'graphRoam',\n event: 'graphRoam',\n update: 'none'\n};\nexport function install(registers) {\n registers.registerChartView(GraphView);\n registers.registerSeriesModel(GraphSeriesModel);\n registers.registerProcessor(categoryFilter);\n registers.registerVisual(categoryVisual);\n registers.registerVisual(edgeVisual);\n registers.registerLayout(simpleLayout);\n registers.registerLayout(registers.PRIORITY.VISUAL.POST_CHART_LAYOUT, circularLayout);\n registers.registerLayout(forceLayout);\n registers.registerCoordinateSystem('graphView', {\n dimensions: View.dimensions,\n create: createView\n });\n // Register legacy focus actions\n registers.registerAction({\n type: 'focusNodeAdjacency',\n event: 'focusNodeAdjacency',\n update: 'series:focusNodeAdjacency'\n }, noop);\n registers.registerAction({\n type: 'unfocusNodeAdjacency',\n event: 'unfocusNodeAdjacency',\n update: 'series:unfocusNodeAdjacency'\n }, noop);\n // Register roam action.\n registers.registerAction(actionInfo, function (payload, ecModel, api) {\n ecModel.eachComponent({\n mainType: 'series',\n query: payload\n }, function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var res = updateCenterAndZoom(coordSys, payload, undefined, api);\n seriesModel.setCenter && seriesModel.setCenter(res.center);\n seriesModel.setZoom && seriesModel.setZoom(res.zoom);\n });\n });\n}"],"names":["actionInfo","install","registers","GraphView","GraphSeriesModel","categoryFilter","categoryVisual","edgeVisual","simpleLayout","circularLayout","forceLayout","View","createView","noop","payload","ecModel","api","seriesModel","coordSys","res","updateCenterAndZoom"],"mappings":";;;;;;;;;;;;AAuDA,IAAIA,IAAa;AAAA,EACf,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV;AACO,SAASC,EAAQC,GAAW;AACjC,EAAAA,EAAU,kBAAkBC,CAAS,GACrCD,EAAU,oBAAoBE,CAAgB,GAC9CF,EAAU,kBAAkBG,CAAc,GAC1CH,EAAU,eAAeI,CAAc,GACvCJ,EAAU,eAAeK,CAAU,GACnCL,EAAU,eAAeM,CAAY,GACrCN,EAAU,eAAeA,EAAU,SAAS,OAAO,mBAAmBO,CAAc,GACpFP,EAAU,eAAeQ,CAAW,GACpCR,EAAU,yBAAyB,aAAa;AAAA,IAC9C,YAAYS,EAAK;AAAA,IACjB,QAAQC;AAAAA,EACZ,CAAG,GAEDV,EAAU,eAAe;AAAA,IACvB,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,EACZ,GAAKW,CAAI,GACPX,EAAU,eAAe;AAAA,IACvB,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,EACZ,GAAKW,CAAI,GAEPX,EAAU,eAAeF,GAAY,SAAUc,GAASC,GAASC,GAAK;AACpE,IAAAD,EAAQ,cAAc;AAAA,MACpB,UAAU;AAAA,MACV,OAAOD;AAAA,IACb,GAAO,SAAUG,GAAa;AACxB,UAAIC,IAAWD,EAAY,kBACvBE,IAAMC,EAAoBF,GAAUJ,GAAS,QAAWE,CAAG;AAC/D,MAAAC,EAAY,aAAaA,EAAY,UAAUE,EAAI,MAAM,GACzDF,EAAY,WAAWA,EAAY,QAAQE,EAAI,IAAI;AAAA,IACrD,CAAC;AAAA,EACH,CAAC;AACH;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { each as g } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { simpleLayoutEdge as v, simpleLayout as n } from "./simpleLayoutHelper.js";
|
|
3
|
+
function L(i, h) {
|
|
4
|
+
i.eachSeriesByType("graph", function(o) {
|
|
5
|
+
var u = o.get("layout"), p = o.coordinateSystem;
|
|
6
|
+
if (p && p.type !== "view") {
|
|
7
|
+
var t = o.getData(), a = [];
|
|
8
|
+
g(p.dimensions, function(m) {
|
|
9
|
+
a = a.concat(t.mapDimensionsAll(m));
|
|
10
|
+
});
|
|
11
|
+
for (var r = 0; r < t.count(); r++) {
|
|
12
|
+
for (var y = [], e = !1, f = 0; f < a.length; f++) {
|
|
13
|
+
var c = t.get(a[f], r);
|
|
14
|
+
isNaN(c) || (e = !0), y.push(c);
|
|
15
|
+
}
|
|
16
|
+
e ? t.setItemLayout(r, p.dataToPoint(y)) : t.setItemLayout(r, [NaN, NaN]);
|
|
17
|
+
}
|
|
18
|
+
v(t.graph, o);
|
|
19
|
+
} else (!u || u === "none") && n(o);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
L as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=simpleLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simpleLayout.js","sources":["../../../../../../node_modules/echarts/lib/chart/graph/simpleLayout.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nimport { each } from 'zrender/lib/core/util.js';\nimport { simpleLayout, simpleLayoutEdge } from './simpleLayoutHelper.js';\nexport default function graphSimpleLayout(ecModel, api) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var layout = seriesModel.get('layout');\n var coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n var data_1 = seriesModel.getData();\n var dimensions_1 = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions_1 = dimensions_1.concat(data_1.mapDimensionsAll(coordDim));\n });\n for (var dataIndex = 0; dataIndex < data_1.count(); dataIndex++) {\n var value = [];\n var hasValue = false;\n for (var i = 0; i < dimensions_1.length; i++) {\n var val = data_1.get(dimensions_1[i], dataIndex);\n if (!isNaN(val)) {\n hasValue = true;\n }\n value.push(val);\n }\n if (hasValue) {\n data_1.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n } else {\n // Also {Array.<number>}, not undefined to avoid if...else... statement\n data_1.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n simpleLayoutEdge(data_1.graph, seriesModel);\n } else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}"],"names":["graphSimpleLayout","ecModel","api","seriesModel","layout","coordSys","data_1","dimensions_1","each","coordDim","dataIndex","value","hasValue","i","val","simpleLayoutEdge","simpleLayout"],"mappings":";;AA6Ce,SAASA,EAAkBC,GAASC,GAAK;AACtD,EAAAD,EAAQ,iBAAiB,SAAS,SAAUE,GAAa;AACvD,QAAIC,IAASD,EAAY,IAAI,QAAQ,GACjCE,IAAWF,EAAY;AAC3B,QAAIE,KAAYA,EAAS,SAAS,QAAQ;AACxC,UAAIC,IAASH,EAAY,QAAO,GAC5BI,IAAe,CAAA;AACnB,MAAAC,EAAKH,EAAS,YAAY,SAAUI,GAAU;AAC5C,QAAAF,IAAeA,EAAa,OAAOD,EAAO,iBAAiBG,CAAQ,CAAC;AAAA,MACtE,CAAC;AACD,eAASC,IAAY,GAAGA,IAAYJ,EAAO,MAAK,GAAII,KAAa;AAG/D,iBAFIC,IAAQ,CAAA,GACRC,IAAW,IACNC,IAAI,GAAGA,IAAIN,EAAa,QAAQM,KAAK;AAC5C,cAAIC,IAAMR,EAAO,IAAIC,EAAaM,CAAC,GAAGH,CAAS;AAC/C,UAAK,MAAMI,CAAG,MACZF,IAAW,KAEbD,EAAM,KAAKG,CAAG;AAAA,QAChB;AACA,QAAIF,IACFN,EAAO,cAAcI,GAAWL,EAAS,YAAYM,CAAK,CAAC,IAG3DL,EAAO,cAAcI,GAAW,CAAC,KAAK,GAAG,CAAC;AAAA,MAE9C;AACA,MAAAK,EAAiBT,EAAO,OAAOH,CAAW;AAAA,IAC5C,MAAO,EAAI,CAACC,KAAUA,MAAW,WAC/BY,EAAab,CAAW;AAAA,EAE5B,CAAC;AACH;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { clone as p } from "../../../../zrender/lib/core/vector.js";
|
|
2
|
+
import { retrieve3 as v } from "../../../../zrender/lib/core/util.js";
|
|
3
|
+
import { getCurvenessForEdge as c } from "../helper/multipleGraphEdgeHelper.js";
|
|
4
|
+
function g(o) {
|
|
5
|
+
var n = o.coordinateSystem;
|
|
6
|
+
if (!(n && n.type !== "view")) {
|
|
7
|
+
var t = o.getGraph();
|
|
8
|
+
t.eachNode(function(u) {
|
|
9
|
+
var e = u.getModel();
|
|
10
|
+
u.setLayout([+e.get("x"), +e.get("y")]);
|
|
11
|
+
}), y(t, o);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function y(o, n) {
|
|
15
|
+
o.eachEdge(function(t, u) {
|
|
16
|
+
var e = v(t.getModel().get(["lineStyle", "curveness"]), -c(t, n, u, !0), 0), r = p(t.node1.getLayout()), a = p(t.node2.getLayout()), i = [r, a];
|
|
17
|
+
+e && i.push([(r[0] + a[0]) / 2 - (r[1] - a[1]) * e, (r[1] + a[1]) / 2 - (a[0] - r[0]) * e]), t.setLayout(i);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
g as simpleLayout,
|
|
22
|
+
y as simpleLayoutEdge
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=simpleLayoutHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simpleLayoutHelper.js","sources":["../../../../../../node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nimport * as vec2 from 'zrender/lib/core/vector.js';\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport { getCurvenessForEdge } from '../helper/multipleGraphEdgeHelper.js';\nexport function simpleLayout(seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n var graph = seriesModel.getGraph();\n graph.eachNode(function (node) {\n var model = node.getModel();\n node.setLayout([+model.get('x'), +model.get('y')]);\n });\n simpleLayoutEdge(graph, seriesModel);\n}\nexport function simpleLayoutEdge(graph, seriesModel) {\n graph.eachEdge(function (edge, index) {\n var curveness = zrUtil.retrieve3(edge.getModel().get(['lineStyle', 'curveness']), -getCurvenessForEdge(edge, seriesModel, index, true), 0);\n var p1 = vec2.clone(edge.node1.getLayout());\n var p2 = vec2.clone(edge.node2.getLayout());\n var points = [p1, p2];\n if (+curveness) {\n points.push([(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness]);\n }\n edge.setLayout(points);\n });\n}"],"names":["simpleLayout","seriesModel","coordSys","graph","node","model","simpleLayoutEdge","edge","index","curveness","zrUtil.retrieve3","getCurvenessForEdge","p1","vec2.clone","p2","points"],"mappings":";;;AA8CO,SAASA,EAAaC,GAAa;AACxC,MAAIC,IAAWD,EAAY;AAC3B,MAAI,EAAAC,KAAYA,EAAS,SAAS,SAGlC;AAAA,QAAIC,IAAQF,EAAY,SAAQ;AAChC,IAAAE,EAAM,SAAS,SAAUC,GAAM;AAC7B,UAAIC,IAAQD,EAAK,SAAQ;AACzB,MAAAA,EAAK,UAAU,CAAC,CAACC,EAAM,IAAI,GAAG,GAAG,CAACA,EAAM,IAAI,GAAG,CAAC,CAAC;AAAA,IACnD,CAAC,GACDC,EAAiBH,GAAOF,CAAW;AAAA;AACrC;AACO,SAASK,EAAiBH,GAAOF,GAAa;AACnD,EAAAE,EAAM,SAAS,SAAUI,GAAMC,GAAO;AACpC,QAAIC,IAAYC,EAAiBH,EAAK,SAAQ,EAAG,IAAI,CAAC,aAAa,WAAW,CAAC,GAAG,CAACI,EAAoBJ,GAAMN,GAAaO,GAAO,EAAI,GAAG,CAAC,GACrII,IAAKC,EAAWN,EAAK,MAAM,UAAS,CAAE,GACtCO,IAAKD,EAAWN,EAAK,MAAM,UAAS,CAAE,GACtCQ,IAAS,CAACH,GAAIE,CAAE;AACpB,IAAI,CAACL,KACHM,EAAO,KAAK,EAAEH,EAAG,CAAC,IAAIE,EAAG,CAAC,KAAK,KAAKF,EAAG,CAAC,IAAIE,EAAG,CAAC,KAAKL,IAAYG,EAAG,CAAC,IAAIE,EAAG,CAAC,KAAK,KAAKA,EAAG,CAAC,IAAIF,EAAG,CAAC,KAAKH,CAAS,CAAC,GAEpHF,EAAK,UAAUQ,CAAM;AAAA,EACvB,CAAC;AACH;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { platformApi as S } from "../../../../zrender/lib/core/platform.js";
|
|
2
|
+
var L = 256, D = (
|
|
3
|
+
/** @class */
|
|
4
|
+
(function() {
|
|
5
|
+
function u() {
|
|
6
|
+
this.blurSize = 30, this.pointSize = 20, this.maxOpacity = 1, this.minOpacity = 0, this._gradientPixels = {
|
|
7
|
+
inRange: null,
|
|
8
|
+
outOfRange: null
|
|
9
|
+
};
|
|
10
|
+
var t = S.createCanvas();
|
|
11
|
+
this.canvas = t;
|
|
12
|
+
}
|
|
13
|
+
return u.prototype.update = function(t, e, r, a, h, v) {
|
|
14
|
+
var l = this._getBrush(), b = this._getGradient(h, "inRange"), w = this._getGradient(h, "outOfRange"), m = this.pointSize + this.blurSize, i = this.canvas, p = i.getContext("2d"), _ = t.length;
|
|
15
|
+
i.width = e, i.height = r;
|
|
16
|
+
for (var f = 0; f < _; ++f) {
|
|
17
|
+
var d = t[f], C = d[0], O = d[1], z = d[2], n = a(z);
|
|
18
|
+
p.globalAlpha = n, p.drawImage(l, C - m, O - m);
|
|
19
|
+
}
|
|
20
|
+
if (!i.width || !i.height)
|
|
21
|
+
return i;
|
|
22
|
+
for (var x = p.getImageData(0, 0, i.width, i.height), o = x.data, s = 0, R = o.length, y = this.minOpacity, I = this.maxOpacity, P = I - y; s < R; ) {
|
|
23
|
+
var n = o[s + 3] / 256, g = Math.floor(n * (L - 1)) * 4;
|
|
24
|
+
if (n > 0) {
|
|
25
|
+
var c = v(n) ? b : w;
|
|
26
|
+
n > 0 && (n = n * P + y), o[s++] = c[g], o[s++] = c[g + 1], o[s++] = c[g + 2], o[s++] = c[g + 3] * n * 256;
|
|
27
|
+
} else
|
|
28
|
+
s += 4;
|
|
29
|
+
}
|
|
30
|
+
return p.putImageData(x, 0, 0), i;
|
|
31
|
+
}, u.prototype._getBrush = function() {
|
|
32
|
+
var t = this._brushCanvas || (this._brushCanvas = S.createCanvas()), e = this.pointSize + this.blurSize, r = e * 2;
|
|
33
|
+
t.width = r, t.height = r;
|
|
34
|
+
var a = t.getContext("2d");
|
|
35
|
+
return a.clearRect(0, 0, r, r), a.shadowOffsetX = r, a.shadowBlur = this.blurSize, a.shadowColor = "#000", a.beginPath(), a.arc(-e, e, this.pointSize, 0, Math.PI * 2, !0), a.closePath(), a.fill(), t;
|
|
36
|
+
}, u.prototype._getGradient = function(t, e) {
|
|
37
|
+
for (var r = this._gradientPixels, a = r[e] || (r[e] = new Uint8ClampedArray(256 * 4)), h = [0, 0, 0, 0], v = 0, l = 0; l < 256; l++)
|
|
38
|
+
t[e](l / 255, !0, h), a[v++] = h[0], a[v++] = h[1], a[v++] = h[2], a[v++] = h[3];
|
|
39
|
+
return a;
|
|
40
|
+
}, u;
|
|
41
|
+
})()
|
|
42
|
+
);
|
|
43
|
+
export {
|
|
44
|
+
D as default
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=HeatmapLayer.js.map
|