mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
perf: Implement Echarts treeshaking (#29874)
This commit is contained in:
committed by
GitHub
parent
db1d77cba2
commit
c220245414
@@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { GraphSeriesOption } from 'echarts';
|
||||
import type { GraphSeriesOption } from 'echarts/charts';
|
||||
|
||||
export const DEFAULT_GRAPH_SERIES_OPTION: GraphSeriesOption = {
|
||||
zoom: 0.7,
|
||||
|
||||
@@ -23,9 +23,10 @@ import {
|
||||
DataRecordValue,
|
||||
tooltipHtml,
|
||||
} from '@superset-ui/core';
|
||||
import { EChartsCoreOption, GraphSeriesOption } from 'echarts';
|
||||
import type { EChartsCoreOption } from 'echarts/core';
|
||||
import type { GraphSeriesOption } from 'echarts/charts';
|
||||
import type { GraphEdgeItemOption } from 'echarts/types/src/chart/graph/GraphSeries';
|
||||
import { extent as d3Extent } from 'd3-array';
|
||||
import { GraphEdgeItemOption } from 'echarts/types/src/chart/graph/GraphSeries';
|
||||
import {
|
||||
EchartsGraphFormData,
|
||||
EChartGraphNode,
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { QueryFormData } from '@superset-ui/core';
|
||||
import { GraphNodeItemOption } from 'echarts/types/src/chart/graph/GraphSeries';
|
||||
import { SeriesTooltipOption } from 'echarts/types/src/util/types';
|
||||
import type { GraphNodeItemOption } from 'echarts/types/src/chart/graph/GraphSeries';
|
||||
import type { SeriesTooltipOption } from 'echarts/types/src/util/types';
|
||||
import {
|
||||
BaseChartProps,
|
||||
BaseTransformedProps,
|
||||
|
||||
Reference in New Issue
Block a user