@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,165 @@
|
|
|
1
|
+
import { __extends as X } from "../../node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import Z from "../graphic/Path.js";
|
|
3
|
+
import m from "../core/PathProxy.js";
|
|
4
|
+
import Y from "./transformPath.js";
|
|
5
|
+
import { extend as K } from "../core/util.js";
|
|
6
|
+
var G = Math.sqrt, R = Math.sin, V = Math.cos, F = Math.PI;
|
|
7
|
+
function B(s) {
|
|
8
|
+
return Math.sqrt(s[0] * s[0] + s[1] * s[1]);
|
|
9
|
+
}
|
|
10
|
+
function I(s, t) {
|
|
11
|
+
return (s[0] * t[0] + s[1] * t[1]) / (B(s) * B(t));
|
|
12
|
+
}
|
|
13
|
+
function H(s, t) {
|
|
14
|
+
return (s[0] * t[1] < s[1] * t[0] ? -1 : 1) * Math.acos(I(s, t));
|
|
15
|
+
}
|
|
16
|
+
function U(s, t, a, n, h, d, u, v, D, A, O) {
|
|
17
|
+
var g = D * (F / 180), i = V(g) * (s - a) / 2 + R(g) * (t - n) / 2, r = -1 * R(g) * (s - a) / 2 + V(g) * (t - n) / 2, Q = i * i / (u * u) + r * r / (v * v);
|
|
18
|
+
Q > 1 && (u *= G(Q), v *= G(Q));
|
|
19
|
+
var z = (h === d ? -1 : 1) * G((u * u * (v * v) - u * u * (r * r) - v * v * (i * i)) / (u * u * (r * r) + v * v * (i * i))) || 0, e = z * u * r / v, b = z * -v * i / u, k = (s + a) / 2 + V(g) * e - R(g) * b, q = (t + n) / 2 + R(g) * e + V(g) * b, w = H([1, 0], [(i - e) / u, (r - b) / v]), L = [(i - e) / u, (r - b) / v], S = [(-1 * i - e) / u, (-1 * r - b) / v], o = H(L, S);
|
|
20
|
+
if (I(L, S) <= -1 && (o = F), I(L, S) >= 1 && (o = 0), o < 0) {
|
|
21
|
+
var l = Math.round(o / F * 1e6) / 1e6;
|
|
22
|
+
o = F * 2 + l % 2 * F;
|
|
23
|
+
}
|
|
24
|
+
O.addData(A, k, q, u, v, w, o, g, d);
|
|
25
|
+
}
|
|
26
|
+
var N = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig, W = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
|
|
27
|
+
function _(s) {
|
|
28
|
+
var t = new m();
|
|
29
|
+
if (!s)
|
|
30
|
+
return t;
|
|
31
|
+
var a = 0, n = 0, h = a, d = n, u, v = m.CMD, D = s.match(N);
|
|
32
|
+
if (!D)
|
|
33
|
+
return t;
|
|
34
|
+
for (var A = 0; A < D.length; A++) {
|
|
35
|
+
for (var O = D[A], g = O.charAt(0), i = void 0, r = O.match(W) || [], Q = r.length, z = 0; z < Q; z++)
|
|
36
|
+
r[z] = parseFloat(r[z]);
|
|
37
|
+
for (var e = 0; e < Q; ) {
|
|
38
|
+
var b = void 0, k = void 0, q = void 0, w = void 0, L = void 0, S = void 0, o = void 0, l = a, C = n, M = void 0, T = void 0;
|
|
39
|
+
switch (g) {
|
|
40
|
+
case "l":
|
|
41
|
+
a += r[e++], n += r[e++], i = v.L, t.addData(i, a, n);
|
|
42
|
+
break;
|
|
43
|
+
case "L":
|
|
44
|
+
a = r[e++], n = r[e++], i = v.L, t.addData(i, a, n);
|
|
45
|
+
break;
|
|
46
|
+
case "m":
|
|
47
|
+
a += r[e++], n += r[e++], i = v.M, t.addData(i, a, n), h = a, d = n, g = "l";
|
|
48
|
+
break;
|
|
49
|
+
case "M":
|
|
50
|
+
a = r[e++], n = r[e++], i = v.M, t.addData(i, a, n), h = a, d = n, g = "L";
|
|
51
|
+
break;
|
|
52
|
+
case "h":
|
|
53
|
+
a += r[e++], i = v.L, t.addData(i, a, n);
|
|
54
|
+
break;
|
|
55
|
+
case "H":
|
|
56
|
+
a = r[e++], i = v.L, t.addData(i, a, n);
|
|
57
|
+
break;
|
|
58
|
+
case "v":
|
|
59
|
+
n += r[e++], i = v.L, t.addData(i, a, n);
|
|
60
|
+
break;
|
|
61
|
+
case "V":
|
|
62
|
+
n = r[e++], i = v.L, t.addData(i, a, n);
|
|
63
|
+
break;
|
|
64
|
+
case "C":
|
|
65
|
+
i = v.C, t.addData(i, r[e++], r[e++], r[e++], r[e++], r[e++], r[e++]), a = r[e - 2], n = r[e - 1];
|
|
66
|
+
break;
|
|
67
|
+
case "c":
|
|
68
|
+
i = v.C, t.addData(i, r[e++] + a, r[e++] + n, r[e++] + a, r[e++] + n, r[e++] + a, r[e++] + n), a += r[e - 2], n += r[e - 1];
|
|
69
|
+
break;
|
|
70
|
+
case "S":
|
|
71
|
+
b = a, k = n, M = t.len(), T = t.data, u === v.C && (b += a - T[M - 4], k += n - T[M - 3]), i = v.C, l = r[e++], C = r[e++], a = r[e++], n = r[e++], t.addData(i, b, k, l, C, a, n);
|
|
72
|
+
break;
|
|
73
|
+
case "s":
|
|
74
|
+
b = a, k = n, M = t.len(), T = t.data, u === v.C && (b += a - T[M - 4], k += n - T[M - 3]), i = v.C, l = a + r[e++], C = n + r[e++], a += r[e++], n += r[e++], t.addData(i, b, k, l, C, a, n);
|
|
75
|
+
break;
|
|
76
|
+
case "Q":
|
|
77
|
+
l = r[e++], C = r[e++], a = r[e++], n = r[e++], i = v.Q, t.addData(i, l, C, a, n);
|
|
78
|
+
break;
|
|
79
|
+
case "q":
|
|
80
|
+
l = r[e++] + a, C = r[e++] + n, a += r[e++], n += r[e++], i = v.Q, t.addData(i, l, C, a, n);
|
|
81
|
+
break;
|
|
82
|
+
case "T":
|
|
83
|
+
b = a, k = n, M = t.len(), T = t.data, u === v.Q && (b += a - T[M - 4], k += n - T[M - 3]), a = r[e++], n = r[e++], i = v.Q, t.addData(i, b, k, a, n);
|
|
84
|
+
break;
|
|
85
|
+
case "t":
|
|
86
|
+
b = a, k = n, M = t.len(), T = t.data, u === v.Q && (b += a - T[M - 4], k += n - T[M - 3]), a += r[e++], n += r[e++], i = v.Q, t.addData(i, b, k, a, n);
|
|
87
|
+
break;
|
|
88
|
+
case "A":
|
|
89
|
+
q = r[e++], w = r[e++], L = r[e++], S = r[e++], o = r[e++], l = a, C = n, a = r[e++], n = r[e++], i = v.A, U(l, C, a, n, S, o, q, w, L, i, t);
|
|
90
|
+
break;
|
|
91
|
+
case "a":
|
|
92
|
+
q = r[e++], w = r[e++], L = r[e++], S = r[e++], o = r[e++], l = a, C = n, a += r[e++], n += r[e++], i = v.A, U(l, C, a, n, S, o, q, w, L, i, t);
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
(g === "z" || g === "Z") && (i = v.Z, t.addData(i), a = h, n = d), u = i;
|
|
97
|
+
}
|
|
98
|
+
return t.toStatic(), t;
|
|
99
|
+
}
|
|
100
|
+
var j = (function(s) {
|
|
101
|
+
X(t, s);
|
|
102
|
+
function t() {
|
|
103
|
+
return s !== null && s.apply(this, arguments) || this;
|
|
104
|
+
}
|
|
105
|
+
return t.prototype.applyTransform = function(a) {
|
|
106
|
+
}, t;
|
|
107
|
+
})(Z);
|
|
108
|
+
function E(s) {
|
|
109
|
+
return s.setData != null;
|
|
110
|
+
}
|
|
111
|
+
function J(s, t) {
|
|
112
|
+
var a = _(s), n = K({}, t);
|
|
113
|
+
return n.buildPath = function(h) {
|
|
114
|
+
if (E(h)) {
|
|
115
|
+
h.setData(a.data);
|
|
116
|
+
var d = h.getContext();
|
|
117
|
+
d && h.rebuildPath(d, 1);
|
|
118
|
+
} else {
|
|
119
|
+
var d = h;
|
|
120
|
+
a.rebuildPath(d, 1);
|
|
121
|
+
}
|
|
122
|
+
}, n.applyTransform = function(h) {
|
|
123
|
+
Y(a, h), this.dirtyShape();
|
|
124
|
+
}, n;
|
|
125
|
+
}
|
|
126
|
+
function p(s, t) {
|
|
127
|
+
return new j(J(s, t));
|
|
128
|
+
}
|
|
129
|
+
function f(s, t) {
|
|
130
|
+
var a = J(s, t), n = (function(h) {
|
|
131
|
+
X(d, h);
|
|
132
|
+
function d(u) {
|
|
133
|
+
var v = h.call(this, u) || this;
|
|
134
|
+
return v.applyTransform = a.applyTransform, v.buildPath = a.buildPath, v;
|
|
135
|
+
}
|
|
136
|
+
return d;
|
|
137
|
+
})(j);
|
|
138
|
+
return n;
|
|
139
|
+
}
|
|
140
|
+
function aa(s, t) {
|
|
141
|
+
for (var a = [], n = s.length, h = 0; h < n; h++) {
|
|
142
|
+
var d = s[h];
|
|
143
|
+
a.push(d.getUpdatedPathProxy(!0));
|
|
144
|
+
}
|
|
145
|
+
var u = new Z(t);
|
|
146
|
+
return u.createPathProxy(), u.buildPath = function(v) {
|
|
147
|
+
if (E(v)) {
|
|
148
|
+
v.appendPath(a);
|
|
149
|
+
var D = v.getContext();
|
|
150
|
+
D && v.rebuildPath(D, 1);
|
|
151
|
+
}
|
|
152
|
+
}, u;
|
|
153
|
+
}
|
|
154
|
+
function ra(s, t) {
|
|
155
|
+
t = t || {};
|
|
156
|
+
var a = new Z();
|
|
157
|
+
return s.shape && a.setShape(s.shape), a.setStyle(s.style), t.bakeTransform ? Y(a.path, s.getComputedTransform()) : t.toLocal ? a.setLocalTransform(s.getComputedTransform()) : a.copyTransform(s), a.buildPath = s.buildPath, a.applyTransform = a.applyTransform, a.z = s.z, a.z2 = s.z2, a.zlevel = s.zlevel, a;
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
ra as clonePath,
|
|
161
|
+
p as createFromString,
|
|
162
|
+
f as extendFromString,
|
|
163
|
+
aa as mergePath
|
|
164
|
+
};
|
|
165
|
+
//# sourceMappingURL=path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.js","sources":["../../../../../node_modules/zrender/lib/tool/path.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport Path from '../graphic/Path.js';\nimport PathProxy from '../core/PathProxy.js';\nimport transformPath from './transformPath.js';\nimport { extend } from '../core/util.js';\nvar mathSqrt = Math.sqrt;\nvar mathSin = Math.sin;\nvar mathCos = Math.cos;\nvar PI = Math.PI;\nfunction vMag(v) {\n return Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n}\n;\nfunction vRatio(u, v) {\n return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));\n}\n;\nfunction vAngle(u, v) {\n return (u[0] * v[1] < u[1] * v[0] ? -1 : 1)\n * Math.acos(vRatio(u, v));\n}\n;\nfunction processArc(x1, y1, x2, y2, fa, fs, rx, ry, psiDeg, cmd, path) {\n var psi = psiDeg * (PI / 180.0);\n var xp = mathCos(psi) * (x1 - x2) / 2.0\n + mathSin(psi) * (y1 - y2) / 2.0;\n var yp = -1 * mathSin(psi) * (x1 - x2) / 2.0\n + mathCos(psi) * (y1 - y2) / 2.0;\n var lambda = (xp * xp) / (rx * rx) + (yp * yp) / (ry * ry);\n if (lambda > 1) {\n rx *= mathSqrt(lambda);\n ry *= mathSqrt(lambda);\n }\n var f = (fa === fs ? -1 : 1)\n * mathSqrt((((rx * rx) * (ry * ry))\n - ((rx * rx) * (yp * yp))\n - ((ry * ry) * (xp * xp))) / ((rx * rx) * (yp * yp)\n + (ry * ry) * (xp * xp))) || 0;\n var cxp = f * rx * yp / ry;\n var cyp = f * -ry * xp / rx;\n var cx = (x1 + x2) / 2.0\n + mathCos(psi) * cxp\n - mathSin(psi) * cyp;\n var cy = (y1 + y2) / 2.0\n + mathSin(psi) * cxp\n + mathCos(psi) * cyp;\n var theta = vAngle([1, 0], [(xp - cxp) / rx, (yp - cyp) / ry]);\n var u = [(xp - cxp) / rx, (yp - cyp) / ry];\n var v = [(-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry];\n var dTheta = vAngle(u, v);\n if (vRatio(u, v) <= -1) {\n dTheta = PI;\n }\n if (vRatio(u, v) >= 1) {\n dTheta = 0;\n }\n if (dTheta < 0) {\n var n = Math.round(dTheta / PI * 1e6) / 1e6;\n dTheta = PI * 2 + (n % 2) * PI;\n }\n path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs);\n}\nvar commandReg = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig;\nvar numberReg = /-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;\nfunction createPathProxyFromString(data) {\n var path = new PathProxy();\n if (!data) {\n return path;\n }\n var cpx = 0;\n var cpy = 0;\n var subpathX = cpx;\n var subpathY = cpy;\n var prevCmd;\n var CMD = PathProxy.CMD;\n var cmdList = data.match(commandReg);\n if (!cmdList) {\n return path;\n }\n for (var l = 0; l < cmdList.length; l++) {\n var cmdText = cmdList[l];\n var cmdStr = cmdText.charAt(0);\n var cmd = void 0;\n var p = cmdText.match(numberReg) || [];\n var pLen = p.length;\n for (var i = 0; i < pLen; i++) {\n p[i] = parseFloat(p[i]);\n }\n var off = 0;\n while (off < pLen) {\n var ctlPtx = void 0;\n var ctlPty = void 0;\n var rx = void 0;\n var ry = void 0;\n var psi = void 0;\n var fa = void 0;\n var fs = void 0;\n var x1 = cpx;\n var y1 = cpy;\n var len = void 0;\n var pathData = void 0;\n switch (cmdStr) {\n case 'l':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'L':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'm':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'l';\n break;\n case 'M':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'L';\n break;\n case 'h':\n cpx += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'H':\n cpx = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'v':\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'V':\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'C':\n cmd = CMD.C;\n path.addData(cmd, p[off++], p[off++], p[off++], p[off++], p[off++], p[off++]);\n cpx = p[off - 2];\n cpy = p[off - 1];\n break;\n case 'c':\n cmd = CMD.C;\n path.addData(cmd, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy);\n cpx += p[off - 2];\n cpy += p[off - 1];\n break;\n case 'S':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 's':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = cpx + p[off++];\n y1 = cpy + p[off++];\n cpx += p[off++];\n cpy += p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 'Q':\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'q':\n x1 = p[off++] + cpx;\n y1 = p[off++] + cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'T':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 't':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 'A':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n x1 = cpx, y1 = cpy;\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.A;\n processArc(x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path);\n break;\n case 'a':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n x1 = cpx, y1 = cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.A;\n processArc(x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path);\n break;\n }\n }\n if (cmdStr === 'z' || cmdStr === 'Z') {\n cmd = CMD.Z;\n path.addData(cmd);\n cpx = subpathX;\n cpy = subpathY;\n }\n prevCmd = cmd;\n }\n path.toStatic();\n return path;\n}\nvar SVGPath = (function (_super) {\n __extends(SVGPath, _super);\n function SVGPath() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SVGPath.prototype.applyTransform = function (m) { };\n return SVGPath;\n}(Path));\nfunction isPathProxy(path) {\n return path.setData != null;\n}\nfunction createPathOptions(str, opts) {\n var pathProxy = createPathProxyFromString(str);\n var innerOpts = extend({}, opts);\n innerOpts.buildPath = function (path) {\n if (isPathProxy(path)) {\n path.setData(pathProxy.data);\n var ctx = path.getContext();\n if (ctx) {\n path.rebuildPath(ctx, 1);\n }\n }\n else {\n var ctx = path;\n pathProxy.rebuildPath(ctx, 1);\n }\n };\n innerOpts.applyTransform = function (m) {\n transformPath(pathProxy, m);\n this.dirtyShape();\n };\n return innerOpts;\n}\nexport function createFromString(str, opts) {\n return new SVGPath(createPathOptions(str, opts));\n}\nexport function extendFromString(str, defaultOpts) {\n var innerOpts = createPathOptions(str, defaultOpts);\n var Sub = (function (_super) {\n __extends(Sub, _super);\n function Sub(opts) {\n var _this = _super.call(this, opts) || this;\n _this.applyTransform = innerOpts.applyTransform;\n _this.buildPath = innerOpts.buildPath;\n return _this;\n }\n return Sub;\n }(SVGPath));\n return Sub;\n}\nexport function mergePath(pathEls, opts) {\n var pathList = [];\n var len = pathEls.length;\n for (var i = 0; i < len; i++) {\n var pathEl = pathEls[i];\n pathList.push(pathEl.getUpdatedPathProxy(true));\n }\n var pathBundle = new Path(opts);\n pathBundle.createPathProxy();\n pathBundle.buildPath = function (path) {\n if (isPathProxy(path)) {\n path.appendPath(pathList);\n var ctx = path.getContext();\n if (ctx) {\n path.rebuildPath(ctx, 1);\n }\n }\n };\n return pathBundle;\n}\nexport function clonePath(sourcePath, opts) {\n opts = opts || {};\n var path = new Path();\n if (sourcePath.shape) {\n path.setShape(sourcePath.shape);\n }\n path.setStyle(sourcePath.style);\n if (opts.bakeTransform) {\n transformPath(path.path, sourcePath.getComputedTransform());\n }\n else {\n if (opts.toLocal) {\n path.setLocalTransform(sourcePath.getComputedTransform());\n }\n else {\n path.copyTransform(sourcePath);\n }\n }\n path.buildPath = sourcePath.buildPath;\n path.applyTransform = path.applyTransform;\n path.z = sourcePath.z;\n path.z2 = sourcePath.z2;\n path.zlevel = sourcePath.zlevel;\n return path;\n}\n"],"names":["mathSqrt","mathSin","mathCos","PI","vMag","v","vRatio","u","vAngle","processArc","x1","y1","x2","y2","fa","fs","rx","ry","psiDeg","cmd","path","psi","xp","yp","lambda","f","cxp","cyp","cx","cy","theta","dTheta","n","commandReg","numberReg","createPathProxyFromString","data","PathProxy","cpx","cpy","subpathX","subpathY","prevCmd","CMD","cmdList","l","cmdText","cmdStr","p","pLen","i","off","ctlPtx","ctlPty","len","pathData","SVGPath","_super","__extends","m","Path","isPathProxy","createPathOptions","str","opts","pathProxy","innerOpts","extend","ctx","transformPath","createFromString","extendFromString","defaultOpts","Sub","_this","mergePath","pathEls","pathList","pathEl","pathBundle","clonePath","sourcePath"],"mappings":";;;;;AAKA,IAAIA,IAAW,KAAK,MAChBC,IAAU,KAAK,KACfC,IAAU,KAAK,KACfC,IAAK,KAAK;AACd,SAASC,EAAKC,GAAG;AACb,SAAO,KAAK,KAAKA,EAAE,CAAC,IAAIA,EAAE,CAAC,IAAIA,EAAE,CAAC,IAAIA,EAAE,CAAC,CAAC;AAC9C;AAEA,SAASC,EAAOC,GAAGF,GAAG;AAClB,UAAQE,EAAE,CAAC,IAAIF,EAAE,CAAC,IAAIE,EAAE,CAAC,IAAIF,EAAE,CAAC,MAAMD,EAAKG,CAAC,IAAIH,EAAKC,CAAC;AAC1D;AAEA,SAASG,EAAOD,GAAGF,GAAG;AAClB,UAAQE,EAAE,CAAC,IAAIF,EAAE,CAAC,IAAIE,EAAE,CAAC,IAAIF,EAAE,CAAC,IAAI,KAAK,KACnC,KAAK,KAAKC,EAAOC,GAAGF,CAAC,CAAC;AAChC;AAEA,SAASI,EAAWC,GAAIC,GAAIC,GAAIC,GAAIC,GAAIC,GAAIC,GAAIC,GAAIC,GAAQC,GAAKC,GAAM;AACnE,MAAIC,IAAMH,KAAUf,IAAK,MACrBmB,IAAKpB,EAAQmB,CAAG,KAAKX,IAAKE,KAAM,IAC9BX,EAAQoB,CAAG,KAAKV,IAAKE,KAAM,GAC7BU,IAAK,KAAKtB,EAAQoB,CAAG,KAAKX,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qB,EAAW,SACX7D,EAAK,SAAS6D,EAAW,KAAK,GAElC7D,EAAK,SAAS6D,EAAW,KAAK,GAC1BjB,EAAK,gBACLK,EAAcjD,EAAK,MAAM6D,EAAW,qBAAoB,CAAE,IAGtDjB,EAAK,UACL5C,EAAK,kBAAkB6D,EAAW,sBAAsB,IAGxD7D,EAAK,cAAc6D,CAAU,GAGrC7D,EAAK,YAAY6D,EAAW,WAC5B7D,EAAK,iBAAiBA,EAAK,gBAC3BA,EAAK,IAAI6D,EAAW,GACpB7D,EAAK,KAAK6D,EAAW,IACrB7D,EAAK,SAAS6D,EAAW,QAClB7D;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import R from "../core/PathProxy.js";
|
|
2
|
+
import { applyTransform as M } from "../core/vector.js";
|
|
3
|
+
var c = R.CMD, j = [[], [], []], d = Math.sqrt, w = Math.atan2;
|
|
4
|
+
function V(s, v) {
|
|
5
|
+
if (v) {
|
|
6
|
+
var a = s.data, C = s.len(), b, o, r, e, i, t, P = c.M, l = c.C, u = c.L, A = c.R, q = c.A, D = c.Q;
|
|
7
|
+
for (r = 0, e = 0; r < C; ) {
|
|
8
|
+
switch (b = a[r++], e = r, o = 0, b) {
|
|
9
|
+
case P:
|
|
10
|
+
o = 1;
|
|
11
|
+
break;
|
|
12
|
+
case u:
|
|
13
|
+
o = 1;
|
|
14
|
+
break;
|
|
15
|
+
case l:
|
|
16
|
+
o = 3;
|
|
17
|
+
break;
|
|
18
|
+
case D:
|
|
19
|
+
o = 2;
|
|
20
|
+
break;
|
|
21
|
+
case q:
|
|
22
|
+
var L = v[4], Q = v[5], f = d(v[0] * v[0] + v[1] * v[1]), k = d(v[2] * v[2] + v[3] * v[3]), h = w(-v[1] / k, v[0] / f);
|
|
23
|
+
a[r] *= f, a[r++] += L, a[r] *= k, a[r++] += Q, a[r++] *= f, a[r++] *= k, a[r++] += h, a[r++] += h, r += 2, e = r;
|
|
24
|
+
break;
|
|
25
|
+
case A:
|
|
26
|
+
t[0] = a[r++], t[1] = a[r++], M(t, t, v), a[e++] = t[0], a[e++] = t[1], t[0] += a[r++], t[1] += a[r++], M(t, t, v), a[e++] = t[0], a[e++] = t[1];
|
|
27
|
+
}
|
|
28
|
+
for (i = 0; i < o; i++) {
|
|
29
|
+
var n = j[i];
|
|
30
|
+
n[0] = a[r++], n[1] = a[r++], M(n, n, v), a[e++] = n[0], a[e++] = n[1];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
s.increaseVersion();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
V as default
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=transformPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformPath.js","sources":["../../../../../node_modules/zrender/lib/tool/transformPath.js"],"sourcesContent":["import PathProxy from '../core/PathProxy.js';\nimport { applyTransform as v2ApplyTransform } from '../core/vector.js';\nvar CMD = PathProxy.CMD;\nvar points = [[], [], []];\nvar mathSqrt = Math.sqrt;\nvar mathAtan2 = Math.atan2;\nexport default function transformPath(path, m) {\n if (!m) {\n return;\n }\n var data = path.data;\n var len = path.len();\n var cmd;\n var nPoint;\n var i;\n var j;\n var k;\n var p;\n var M = CMD.M;\n var C = CMD.C;\n var L = CMD.L;\n var R = CMD.R;\n var A = CMD.A;\n var Q = CMD.Q;\n for (i = 0, j = 0; i < len;) {\n cmd = data[i++];\n j = i;\n nPoint = 0;\n switch (cmd) {\n case M:\n nPoint = 1;\n break;\n case L:\n nPoint = 1;\n break;\n case C:\n nPoint = 3;\n break;\n case Q:\n nPoint = 2;\n break;\n case A:\n var x = m[4];\n var y = m[5];\n var sx = mathSqrt(m[0] * m[0] + m[1] * m[1]);\n var sy = mathSqrt(m[2] * m[2] + m[3] * m[3]);\n var angle = mathAtan2(-m[1] / sy, m[0] / sx);\n data[i] *= sx;\n data[i++] += x;\n data[i] *= sy;\n data[i++] += y;\n data[i++] *= sx;\n data[i++] *= sy;\n data[i++] += angle;\n data[i++] += angle;\n i += 2;\n j = i;\n break;\n case R:\n p[0] = data[i++];\n p[1] = data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n p[0] += data[i++];\n p[1] += data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n }\n for (k = 0; k < nPoint; k++) {\n var p_1 = points[k];\n p_1[0] = data[i++];\n p_1[1] = data[i++];\n v2ApplyTransform(p_1, p_1, m);\n data[j++] = p_1[0];\n data[j++] = p_1[1];\n }\n }\n path.increaseVersion();\n}\n"],"names":["CMD","PathProxy","points","mathSqrt","mathAtan2","transformPath","path","m","data","len","cmd","nPoint","i","j","k","p","M","C","L","R","A","Q","x","y","sx","sy","angle","v2ApplyTransform","p_1"],"mappings":";;AAEA,IAAIA,IAAMC,EAAU,KAChBC,IAAS,CAAC,CAAA,GAAI,CAAA,GAAI,EAAE,GACpBC,IAAW,KAAK,MAChBC,IAAY,KAAK;AACN,SAASC,EAAcC,GAAMC,GAAG;AAC3C,MAAKA,GAGL;AAAA,QAAIC,IAAOF,EAAK,MACZG,IAAMH,EAAK,IAAG,GACdI,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,IAAIhB,EAAI,GACRiB,IAAIjB,EAAI,GACRkB,IAAIlB,EAAI,GACRmB,IAAInB,EAAI,GACRoB,IAAIpB,EAAI,GACRqB,IAAIrB,EAAI;AACZ,SAAKY,IAAI,GAAGC,IAAI,GAAGD,IAAIH,KAAM;AAIzB,cAHAC,IAAMF,EAAKI,GAAG,GACdC,IAAID,GACJD,IAAS,GACDD,GAAG;AAAA,QACP,KAAKM;AACD,UAAAL,IAAS;AACT;AAAA,QACJ,KAAKO;AACD,UAAAP,IAAS;AACT;AAAA,QACJ,KAAKM;AACD,UAAAN,IAAS;AACT;AAAA,QACJ,KAAKU;AACD,UAAAV,IAAS;AACT;AAAA,QACJ,KAAKS;AACD,cAA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KK,GAAG,IAAIe,EAAI,CAAC,GACjBpB,EAAKK,GAAG,IAAIe,EAAI,CAAC;AAAA,MACrB;AAAA,IACJ;AACA,IAAAtB,EAAK,gBAAe;AAAA;AACxB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import p from "./core/env.js";
|
|
2
|
+
import { guid as S, keys as H, retrieve2 as A } from "./core/util.js";
|
|
3
|
+
import D from "./Handler.js";
|
|
4
|
+
import w from "./Storage.js";
|
|
5
|
+
import k, { getTime as c } from "./animation/Animation.js";
|
|
6
|
+
import M from "./dom/HandlerProxy.js";
|
|
7
|
+
import { lum as m } from "./tool/color.js";
|
|
8
|
+
import { DARK_MODE_THRESHOLD as _ } from "./config.js";
|
|
9
|
+
import z from "./graphic/Group.js";
|
|
10
|
+
/*!
|
|
11
|
+
* ZRender, a high performance 2d drawing library.
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
14
|
+
* All rights reserved.
|
|
15
|
+
*
|
|
16
|
+
* LICENSE
|
|
17
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
18
|
+
*/
|
|
19
|
+
var h = {}, y = {};
|
|
20
|
+
function P(t) {
|
|
21
|
+
delete y[t];
|
|
22
|
+
}
|
|
23
|
+
function E(t) {
|
|
24
|
+
if (!t)
|
|
25
|
+
return !1;
|
|
26
|
+
if (typeof t == "string")
|
|
27
|
+
return m(t, 1) < _;
|
|
28
|
+
if (t.colorStops) {
|
|
29
|
+
for (var e = t.colorStops, r = 0, i = e.length, s = 0; s < i; s++)
|
|
30
|
+
r += m(e[s].color, 1);
|
|
31
|
+
return r /= i, r < _;
|
|
32
|
+
}
|
|
33
|
+
return !1;
|
|
34
|
+
}
|
|
35
|
+
var F = (function() {
|
|
36
|
+
function t(e, r, i) {
|
|
37
|
+
var s = this;
|
|
38
|
+
this._sleepAfterStill = 10, this._stillFrameAccum = 0, this._needsRefresh = !0, this._needsRefreshHover = !0, this._darkMode = !1, i = i || {}, this.dom = r, this.id = e;
|
|
39
|
+
var a = new w(), n = i.renderer || "canvas";
|
|
40
|
+
if (h[n] || (n = H(h)[0]), process.env.NODE_ENV !== "production" && !h[n])
|
|
41
|
+
throw new Error("Renderer '" + n + "' is not imported. Please import it first.");
|
|
42
|
+
i.useDirtyRect = i.useDirtyRect == null ? !1 : i.useDirtyRect;
|
|
43
|
+
var o = new h[n](r, a, i, e), f = i.ssr || o.ssrOnly;
|
|
44
|
+
this.storage = a, this.painter = o;
|
|
45
|
+
var v = !p.node && !p.worker && !f ? new M(o.getViewportRoot(), o.root) : null, d = i.useCoarsePointer, g = d == null || d === "auto" ? p.touchEventsSupported : !!d, R = 44, l;
|
|
46
|
+
g && (l = A(i.pointerSize, R)), this.handler = new D(a, o, v, o.root, l), this.animation = new k({
|
|
47
|
+
stage: {
|
|
48
|
+
update: f ? null : function() {
|
|
49
|
+
return s._flush(!0);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}), f || this.animation.start();
|
|
53
|
+
}
|
|
54
|
+
return t.prototype.add = function(e) {
|
|
55
|
+
this._disposed || !e || (this.storage.addRoot(e), e.addSelfToZr(this), this.refresh());
|
|
56
|
+
}, t.prototype.remove = function(e) {
|
|
57
|
+
this._disposed || !e || (this.storage.delRoot(e), e.removeSelfFromZr(this), this.refresh());
|
|
58
|
+
}, t.prototype.configLayer = function(e, r) {
|
|
59
|
+
this._disposed || (this.painter.configLayer && this.painter.configLayer(e, r), this.refresh());
|
|
60
|
+
}, t.prototype.setBackgroundColor = function(e) {
|
|
61
|
+
this._disposed || (this.painter.setBackgroundColor && this.painter.setBackgroundColor(e), this.refresh(), this._backgroundColor = e, this._darkMode = E(e));
|
|
62
|
+
}, t.prototype.getBackgroundColor = function() {
|
|
63
|
+
return this._backgroundColor;
|
|
64
|
+
}, t.prototype.setDarkMode = function(e) {
|
|
65
|
+
this._darkMode = e;
|
|
66
|
+
}, t.prototype.isDarkMode = function() {
|
|
67
|
+
return this._darkMode;
|
|
68
|
+
}, t.prototype.refreshImmediately = function(e) {
|
|
69
|
+
this._disposed || (e || this.animation.update(!0), this._needsRefresh = !1, this.painter.refresh(), this._needsRefresh = !1);
|
|
70
|
+
}, t.prototype.refresh = function() {
|
|
71
|
+
this._disposed || (this._needsRefresh = !0, this.animation.start());
|
|
72
|
+
}, t.prototype.flush = function() {
|
|
73
|
+
this._disposed || this._flush(!1);
|
|
74
|
+
}, t.prototype._flush = function(e) {
|
|
75
|
+
var r, i = c();
|
|
76
|
+
this._needsRefresh && (r = !0, this.refreshImmediately(e)), this._needsRefreshHover && (r = !0, this.refreshHoverImmediately());
|
|
77
|
+
var s = c();
|
|
78
|
+
r ? (this._stillFrameAccum = 0, this.trigger("rendered", {
|
|
79
|
+
elapsedTime: s - i
|
|
80
|
+
})) : this._sleepAfterStill > 0 && (this._stillFrameAccum++, this._stillFrameAccum > this._sleepAfterStill && this.animation.stop());
|
|
81
|
+
}, t.prototype.setSleepAfterStill = function(e) {
|
|
82
|
+
this._sleepAfterStill = e;
|
|
83
|
+
}, t.prototype.wakeUp = function() {
|
|
84
|
+
this._disposed || (this.animation.start(), this._stillFrameAccum = 0);
|
|
85
|
+
}, t.prototype.refreshHover = function() {
|
|
86
|
+
this._needsRefreshHover = !0;
|
|
87
|
+
}, t.prototype.refreshHoverImmediately = function() {
|
|
88
|
+
this._disposed || (this._needsRefreshHover = !1, this.painter.refreshHover && this.painter.getType() === "canvas" && this.painter.refreshHover());
|
|
89
|
+
}, t.prototype.resize = function(e) {
|
|
90
|
+
this._disposed || (e = e || {}, this.painter.resize(e.width, e.height), this.handler.resize());
|
|
91
|
+
}, t.prototype.clearAnimation = function() {
|
|
92
|
+
this._disposed || this.animation.clear();
|
|
93
|
+
}, t.prototype.getWidth = function() {
|
|
94
|
+
if (!this._disposed)
|
|
95
|
+
return this.painter.getWidth();
|
|
96
|
+
}, t.prototype.getHeight = function() {
|
|
97
|
+
if (!this._disposed)
|
|
98
|
+
return this.painter.getHeight();
|
|
99
|
+
}, t.prototype.setCursorStyle = function(e) {
|
|
100
|
+
this._disposed || this.handler.setCursorStyle(e);
|
|
101
|
+
}, t.prototype.findHover = function(e, r) {
|
|
102
|
+
if (!this._disposed)
|
|
103
|
+
return this.handler.findHover(e, r);
|
|
104
|
+
}, t.prototype.on = function(e, r, i) {
|
|
105
|
+
return this._disposed || this.handler.on(e, r, i), this;
|
|
106
|
+
}, t.prototype.off = function(e, r) {
|
|
107
|
+
this._disposed || this.handler.off(e, r);
|
|
108
|
+
}, t.prototype.trigger = function(e, r) {
|
|
109
|
+
this._disposed || this.handler.trigger(e, r);
|
|
110
|
+
}, t.prototype.clear = function() {
|
|
111
|
+
if (!this._disposed) {
|
|
112
|
+
for (var e = this.storage.getRoots(), r = 0; r < e.length; r++)
|
|
113
|
+
e[r] instanceof z && e[r].removeSelfFromZr(this);
|
|
114
|
+
this.storage.delAllRoots(), this.painter.clear();
|
|
115
|
+
}
|
|
116
|
+
}, t.prototype.dispose = function() {
|
|
117
|
+
this._disposed || (this.animation.stop(), this.clear(), this.storage.dispose(), this.painter.dispose(), this.handler.dispose(), this.animation = this.storage = this.painter = this.handler = null, this._disposed = !0, P(this.id));
|
|
118
|
+
}, t;
|
|
119
|
+
})();
|
|
120
|
+
function N(t, e) {
|
|
121
|
+
var r = new F(S(), t, e);
|
|
122
|
+
return y[r.id] = r, r;
|
|
123
|
+
}
|
|
124
|
+
function V(t, e) {
|
|
125
|
+
h[t] = e;
|
|
126
|
+
}
|
|
127
|
+
var u;
|
|
128
|
+
function W(t) {
|
|
129
|
+
if (typeof u == "function")
|
|
130
|
+
return u(t);
|
|
131
|
+
}
|
|
132
|
+
function K(t) {
|
|
133
|
+
u = t;
|
|
134
|
+
}
|
|
135
|
+
export {
|
|
136
|
+
W as getElementSSRData,
|
|
137
|
+
N as init,
|
|
138
|
+
V as registerPainter,
|
|
139
|
+
K as registerSSRDataGetter
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=zrender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zrender.js","sources":["../../../../node_modules/zrender/lib/zrender.js"],"sourcesContent":["/*!\n* ZRender, a high performance 2d drawing library.\n*\n* Copyright (c) 2013, Baidu Inc.\n* All rights reserved.\n*\n* LICENSE\n* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt\n*/\nimport env from './core/env.js';\nimport * as zrUtil from './core/util.js';\nimport Handler from './Handler.js';\nimport Storage from './Storage.js';\nimport Animation, { getTime } from './animation/Animation.js';\nimport HandlerProxy from './dom/HandlerProxy.js';\nimport { lum } from './tool/color.js';\nimport { DARK_MODE_THRESHOLD } from './config.js';\nimport Group from './graphic/Group.js';\nvar painterCtors = {};\nvar instances = {};\nfunction delInstance(id) {\n delete instances[id];\n}\nfunction isDarkMode(backgroundColor) {\n if (!backgroundColor) {\n return false;\n }\n if (typeof backgroundColor === 'string') {\n return lum(backgroundColor, 1) < DARK_MODE_THRESHOLD;\n }\n else if (backgroundColor.colorStops) {\n var colorStops = backgroundColor.colorStops;\n var totalLum = 0;\n var len = colorStops.length;\n for (var i = 0; i < len; i++) {\n totalLum += lum(colorStops[i].color, 1);\n }\n totalLum /= len;\n return totalLum < DARK_MODE_THRESHOLD;\n }\n return false;\n}\nvar ZRender = (function () {\n function ZRender(id, dom, opts) {\n var _this = this;\n this._sleepAfterStill = 10;\n this._stillFrameAccum = 0;\n this._needsRefresh = true;\n this._needsRefreshHover = true;\n this._darkMode = false;\n opts = opts || {};\n this.dom = dom;\n this.id = id;\n var storage = new Storage();\n var rendererType = opts.renderer || 'canvas';\n if (!painterCtors[rendererType]) {\n rendererType = zrUtil.keys(painterCtors)[0];\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!painterCtors[rendererType]) {\n throw new Error(\"Renderer '\" + rendererType + \"' is not imported. Please import it first.\");\n }\n }\n opts.useDirtyRect = opts.useDirtyRect == null\n ? false\n : opts.useDirtyRect;\n var painter = new painterCtors[rendererType](dom, storage, opts, id);\n var ssrMode = opts.ssr || painter.ssrOnly;\n this.storage = storage;\n this.painter = painter;\n var handlerProxy = (!env.node && !env.worker && !ssrMode)\n ? new HandlerProxy(painter.getViewportRoot(), painter.root)\n : null;\n var useCoarsePointer = opts.useCoarsePointer;\n var usePointerSize = (useCoarsePointer == null || useCoarsePointer === 'auto')\n ? env.touchEventsSupported\n : !!useCoarsePointer;\n var defaultPointerSize = 44;\n var pointerSize;\n if (usePointerSize) {\n pointerSize = zrUtil.retrieve2(opts.pointerSize, defaultPointerSize);\n }\n this.handler = new Handler(storage, painter, handlerProxy, painter.root, pointerSize);\n this.animation = new Animation({\n stage: {\n update: ssrMode ? null : function () { return _this._flush(true); }\n }\n });\n if (!ssrMode) {\n this.animation.start();\n }\n }\n ZRender.prototype.add = function (el) {\n if (this._disposed || !el) {\n return;\n }\n this.storage.addRoot(el);\n el.addSelfToZr(this);\n this.refresh();\n };\n ZRender.prototype.remove = function (el) {\n if (this._disposed || !el) {\n return;\n }\n this.storage.delRoot(el);\n el.removeSelfFromZr(this);\n this.refresh();\n };\n ZRender.prototype.configLayer = function (zLevel, config) {\n if (this._disposed) {\n return;\n }\n if (this.painter.configLayer) {\n this.painter.configLayer(zLevel, config);\n }\n this.refresh();\n };\n ZRender.prototype.setBackgroundColor = function (backgroundColor) {\n if (this._disposed) {\n return;\n }\n if (this.painter.setBackgroundColor) {\n this.painter.setBackgroundColor(backgroundColor);\n }\n this.refresh();\n this._backgroundColor = backgroundColor;\n this._darkMode = isDarkMode(backgroundColor);\n };\n ZRender.prototype.getBackgroundColor = function () {\n return this._backgroundColor;\n };\n ZRender.prototype.setDarkMode = function (darkMode) {\n this._darkMode = darkMode;\n };\n ZRender.prototype.isDarkMode = function () {\n return this._darkMode;\n };\n ZRender.prototype.refreshImmediately = function (fromInside) {\n if (this._disposed) {\n return;\n }\n if (!fromInside) {\n this.animation.update(true);\n }\n this._needsRefresh = false;\n this.painter.refresh();\n this._needsRefresh = false;\n };\n ZRender.prototype.refresh = function () {\n if (this._disposed) {\n return;\n }\n this._needsRefresh = true;\n this.animation.start();\n };\n ZRender.prototype.flush = function () {\n if (this._disposed) {\n return;\n }\n this._flush(false);\n };\n ZRender.prototype._flush = function (fromInside) {\n var triggerRendered;\n var start = getTime();\n if (this._needsRefresh) {\n triggerRendered = true;\n this.refreshImmediately(fromInside);\n }\n if (this._needsRefreshHover) {\n triggerRendered = true;\n this.refreshHoverImmediately();\n }\n var end = getTime();\n if (triggerRendered) {\n this._stillFrameAccum = 0;\n this.trigger('rendered', {\n elapsedTime: end - start\n });\n }\n else if (this._sleepAfterStill > 0) {\n this._stillFrameAccum++;\n if (this._stillFrameAccum > this._sleepAfterStill) {\n this.animation.stop();\n }\n }\n };\n ZRender.prototype.setSleepAfterStill = function (stillFramesCount) {\n this._sleepAfterStill = stillFramesCount;\n };\n ZRender.prototype.wakeUp = function () {\n if (this._disposed) {\n return;\n }\n this.animation.start();\n this._stillFrameAccum = 0;\n };\n ZRender.prototype.refreshHover = function () {\n this._needsRefreshHover = true;\n };\n ZRender.prototype.refreshHoverImmediately = function () {\n if (this._disposed) {\n return;\n }\n this._needsRefreshHover = false;\n if (this.painter.refreshHover && this.painter.getType() === 'canvas') {\n this.painter.refreshHover();\n }\n };\n ZRender.prototype.resize = function (opts) {\n if (this._disposed) {\n return;\n }\n opts = opts || {};\n this.painter.resize(opts.width, opts.height);\n this.handler.resize();\n };\n ZRender.prototype.clearAnimation = function () {\n if (this._disposed) {\n return;\n }\n this.animation.clear();\n };\n ZRender.prototype.getWidth = function () {\n if (this._disposed) {\n return;\n }\n return this.painter.getWidth();\n };\n ZRender.prototype.getHeight = function () {\n if (this._disposed) {\n return;\n }\n return this.painter.getHeight();\n };\n ZRender.prototype.setCursorStyle = function (cursorStyle) {\n if (this._disposed) {\n return;\n }\n this.handler.setCursorStyle(cursorStyle);\n };\n ZRender.prototype.findHover = function (x, y) {\n if (this._disposed) {\n return;\n }\n return this.handler.findHover(x, y);\n };\n ZRender.prototype.on = function (eventName, eventHandler, context) {\n if (!this._disposed) {\n this.handler.on(eventName, eventHandler, context);\n }\n return this;\n };\n ZRender.prototype.off = function (eventName, eventHandler) {\n if (this._disposed) {\n return;\n }\n this.handler.off(eventName, eventHandler);\n };\n ZRender.prototype.trigger = function (eventName, event) {\n if (this._disposed) {\n return;\n }\n this.handler.trigger(eventName, event);\n };\n ZRender.prototype.clear = function () {\n if (this._disposed) {\n return;\n }\n var roots = this.storage.getRoots();\n for (var i = 0; i < roots.length; i++) {\n if (roots[i] instanceof Group) {\n roots[i].removeSelfFromZr(this);\n }\n }\n this.storage.delAllRoots();\n this.painter.clear();\n };\n ZRender.prototype.dispose = function () {\n if (this._disposed) {\n return;\n }\n this.animation.stop();\n this.clear();\n this.storage.dispose();\n this.painter.dispose();\n this.handler.dispose();\n this.animation =\n this.storage =\n this.painter =\n this.handler = null;\n this._disposed = true;\n delInstance(this.id);\n };\n return ZRender;\n}());\nexport function init(dom, opts) {\n var zr = new ZRender(zrUtil.guid(), dom, opts);\n instances[zr.id] = zr;\n return zr;\n}\nexport function dispose(zr) {\n zr.dispose();\n}\nexport function disposeAll() {\n for (var key in instances) {\n if (instances.hasOwnProperty(key)) {\n instances[key].dispose();\n }\n }\n instances = {};\n}\nexport function getInstance(id) {\n return instances[id];\n}\nexport function registerPainter(name, Ctor) {\n painterCtors[name] = Ctor;\n}\nvar ssrDataGetter;\nexport function getElementSSRData(el) {\n if (typeof ssrDataGetter === 'function') {\n return ssrDataGetter(el);\n }\n}\nexport function registerSSRDataGetter(getter) {\n ssrDataGetter = getter;\n}\nexport var version = '5.6.1';\n;\n"],"names":["painterCtors","instances","delInstance","id","isDarkMode","backgroundColor","lum","DARK_MODE_THRESHOLD","colorStops","totalLum","len","i","ZRender","dom","opts","_this","storage","Storage","rendererType","zrUtil.keys","painter","ssrMode","handlerProxy","env","HandlerProxy","useCoarsePointer","usePointerSize","defaultPointerSize","pointerSize","zrUtil.retrieve2","Handler","Animation","el","zLevel","config","darkMode","fromInside","triggerRendered","start","getTime","end","stillFramesCount","cursorStyle","x","y","eventName","eventHandler","context","event","roots","Group","init","zr","zrUtil.guid","registerPainter","name","Ctor","ssrDataGetter","getElementSSRData","registerSSRDataGetter","getter"],"mappings":";;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBA,IAAIA,IAAe,CAAA,GACfC,IAAY,CAAA;AAChB,SAASC,EAAYC,GAAI;AACrB,SAAOF,EAAUE,CAAE;AACvB;AACA,SAASC,EAAWC,GAAiB;AACjC,MAAI,CAACA;AACD,WAAO;AAEX,MAAI,OAAOA,KAAoB;AAC3B,WAAOC,EAAID,GAAiB,CAAC,IAAIE;AAEhC,MAAIF,EAAgB,YAAY;AAIjC,aAHIG,IAAaH,EAAgB,YAC7BI,IAAW,GACXC,IAAMF,EAAW,QACZG,IAAI,GAAGA,IAAID,GAAKC;AACrB,MAAAF,KAAYH,EAAIE,EAAWG,CAAC,EAAE,OAAO,CAAC;AAE1C,WAAAF,KAAYC,GACLD,IAAWF;AAAA,EACtB;AACA,SAAO;AACX;AACA,IAAIK,KAAW,WAAY;AACvB,WAASA,EAAQT,GAAIU,GAAKC,GAAM;AAC5B,QAAIC,IAAQ;AACZ,SAAK,mBAAmB,IACxB,KAAK,mBAAmB,GACxB,KAAK,gBAAgB,IACrB,KAAK,qBAAqB,IAC1B,KAAK,YAAY,IACjBD,IAAOA,KAAQ,CAAA,GACf,KAAK,MAAMD,GACX,KAAK,KAAKV;AACV,QAAIa,IAAU,IAAIC,EAAO,GACrBC,IAAeJ,EAAK,YAAY;AAIpC,QAHKd,EAAakB,CAAY,MAC1BA,IAAeC,EAAYnB,CAAY,EAAE,CAAC,IAE1C,QAAQ,IAAI,aAAa,gBACrB,CAACA,EAAakB,CAAY;AAC1B,YAAM,IAAI,MAAM,eAAeA,IAAe,4CAA4C;AAGlG,IAAAJ,EAAK,eAAeA,EAAK,gBAAgB,OACnC,KACAA,EAAK;AAC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Q,IAAID,GAAWC,CAAY;AAAA,EAC5C,GACAlC,EAAQ,UAAU,UAAU,SAAUiC,GAAWG,GAAO;AACpD,IAAI,KAAK,aAGT,KAAK,QAAQ,QAAQH,GAAWG,CAAK;AAAA,EACzC,GACApC,EAAQ,UAAU,QAAQ,WAAY;AAClC,QAAI,MAAK,WAIT;AAAA,eADIqC,IAAQ,KAAK,QAAQ,SAAQ,GACxBtC,IAAI,GAAGA,IAAIsC,EAAM,QAAQtC;AAC9B,QAAIsC,EAAMtC,CAAC,aAAauC,KACpBD,EAAMtC,CAAC,EAAE,iBAAiB,IAAI;AAGtC,WAAK,QAAQ,YAAW,GACxB,KAAK,QAAQ,MAAK;AAAA;AAAA,EACtB,GACAC,EAAQ,UAAU,UAAU,WAAY;AACpC,IAAI,KAAK,cAGT,KAAK,UAAU,KAAI,GACnB,KAAK,MAAK,GACV,KAAK,QAAQ,QAAO,GACpB,KAAK,QAAQ,QAAO,GACpB,KAAK,QAAQ,QAAO,GACpB,KAAK,YACD,KAAK,UACD,KAAK,UACD,KAAK,UAAU,MAC3B,KAAK,YAAY,IACjBV,EAAY,KAAK,EAAE;AAAA,EACvB,GACOU;AACX;AACO,SAASuC,EAAKtC,GAAKC,GAAM;AAC5B,MAAIsC,IAAK,IAAIxC,EAAQyC,EAAW,GAAIxC,GAAKC,CAAI;AAC7C,SAAAb,EAAUmD,EAAG,EAAE,IAAIA,GACZA;AACX;AAeO,SAASE,EAAgBC,GAAMC,GAAM;AACxC,EAAAxD,EAAauD,CAAI,IAAIC;AACzB;AACA,IAAIC;AACG,SAASC,EAAkB1B,GAAI;AAClC,MAAI,OAAOyB,KAAkB;AACzB,WAAOA,EAAczB,CAAE;AAE/B;AACO,SAAS2B,EAAsBC,GAAQ;AAC1C,EAAAH,IAAgBG;AACpB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
var c = function(n, t) {
|
|
16
|
+
return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, r) {
|
|
17
|
+
o.__proto__ = r;
|
|
18
|
+
} || function(o, r) {
|
|
19
|
+
for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && (o[e] = r[e]);
|
|
20
|
+
}, c(n, t);
|
|
21
|
+
};
|
|
22
|
+
function i(n, t) {
|
|
23
|
+
if (typeof t != "function" && t !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
25
|
+
c(n, t);
|
|
26
|
+
function o() {
|
|
27
|
+
this.constructor = n;
|
|
28
|
+
}
|
|
29
|
+
n.prototype = t === null ? Object.create(t) : (o.prototype = t.prototype, new o());
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
i as __extends
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=tslib.es6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tslib.es6.js","sources":["../../../../../node_modules/zrender/node_modules/tslib/tslib.es6.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || from);\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n"],"names":["extendStatics","d","b","p","__extends","__"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,IAAIA,IAAgB,SAASC,GAAGC,GAAG;AAC/B,SAAAF,IAAgB,OAAO,kBAClB,EAAE,WAAW,CAAA,eAAgB,SAAS,SAAUC,GAAGC,GAAG;AAAE,IAAAD,EAAE,YAAYC;AAAA,EAAG,KAC1E,SAAUD,GAAGC,GAAG;AAAE,aAASC,KAAKD,EAAG,CAAI,OAAO,UAAU,eAAe,KAAKA,GAAGC,CAAC,MAAGF,EAAEE,CAAC,IAAID,EAAEC,CAAC;AAAA,EAAG,GAC7FH,EAAcC,GAAGC,CAAC;AAC7B;AAEO,SAASE,EAAUH,GAAGC,GAAG;AAC5B,MAAI,OAAOA,KAAM,cAAcA,MAAM;AACjC,UAAM,IAAI,UAAU,yBAAyB,OAAOA,CAAC,IAAI,+BAA+B;AAC5F,EAAAF,EAAcC,GAAGC,CAAC;AAClB,WAASG,IAAK;AAAE,SAAK,cAAcJ;AAAA,EAAG;AACtC,EAAAA,EAAE,YAAYC,MAAM,OAAO,OAAO,OAAOA,CAAC,KAAKG,EAAG,YAAYH,EAAE,WAAW,IAAIG,EAAE;AACrF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ThemeConfig } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { MarsunAuthContext, MarsunFetchContext } from './context';
|
|
4
|
+
export type MarsunCoreProviderProps = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** 主题覆盖;外层已有 ConfigProvider 时 token 自然优先 */
|
|
7
|
+
theme?: {
|
|
8
|
+
primaryColor?: string;
|
|
9
|
+
themeConfig?: ThemeConfig;
|
|
10
|
+
};
|
|
11
|
+
/** 鉴权注入(Auth / AgentHub guards 使用) */
|
|
12
|
+
auth?: Partial<MarsunAuthContext>;
|
|
13
|
+
/** fetch 模式默认配置 */
|
|
14
|
+
fetch?: MarsunFetchContext;
|
|
15
|
+
/** 设为 false 时不渲染内部 ConfigProvider(消费方已包裹时) */
|
|
16
|
+
withConfigProvider?: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare const MarsunCoreProvider: React.FC<MarsunCoreProviderProps>;
|
|
19
|
+
export default MarsunCoreProvider;
|
|
20
|
+
export { MarsunCoreContext, useMarsunAuth, useMarsunCore, useMarsunFetch } from './context';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ThemeConfig } from 'antd';
|
|
2
|
+
export type MarsunAuthContext = {
|
|
3
|
+
isAuthenticated: boolean;
|
|
4
|
+
user: Record<string, unknown> | null;
|
|
5
|
+
hasAnyRole?: (roles: string[]) => boolean;
|
|
6
|
+
hasPermission?: (permission: string) => boolean;
|
|
7
|
+
};
|
|
8
|
+
export type MarsunFetchContext = {
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
timeoutMs?: number;
|
|
11
|
+
headers?: Record<string, string>;
|
|
12
|
+
};
|
|
13
|
+
export type MarsunCoreContextValue = {
|
|
14
|
+
auth: MarsunAuthContext;
|
|
15
|
+
fetch: MarsunFetchContext;
|
|
16
|
+
theme: {
|
|
17
|
+
primaryColor: string;
|
|
18
|
+
themeConfig?: ThemeConfig;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const MarsunCoreContext: import('react').Context<MarsunCoreContextValue>;
|
|
22
|
+
export declare function useMarsunCore(): MarsunCoreContextValue;
|
|
23
|
+
export declare function useMarsunAuth(): MarsunAuthContext;
|
|
24
|
+
export declare function useMarsunFetch(): MarsunFetchContext;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as MarsunCoreProvider } from './MarsunCoreProvider';
|
|
2
|
+
export type { MarsunCoreProviderProps } from './MarsunCoreProvider';
|
|
3
|
+
export { MarsunCoreContext, useMarsunAuth, useMarsunCore, useMarsunFetch, type MarsunAuthContext, type MarsunFetchContext, type MarsunCoreContextValue, } from './context';
|