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 { TreeSeriesOption } from 'echarts';
|
||||
import type { TreeSeriesOption } from 'echarts/charts';
|
||||
import { EchartsTreeFormData } from './types';
|
||||
|
||||
export const DEFAULT_TREE_SERIES_OPTION: TreeSeriesOption = {
|
||||
|
||||
@@ -21,12 +21,13 @@ import {
|
||||
DataRecordValue,
|
||||
tooltipHtml,
|
||||
} from '@superset-ui/core';
|
||||
import { EChartsCoreOption, TreeSeriesOption } from 'echarts';
|
||||
import {
|
||||
import type { EChartsCoreOption } from 'echarts/core';
|
||||
import type { TreeSeriesOption } from 'echarts/charts';
|
||||
import type {
|
||||
TreeSeriesCallbackDataParams,
|
||||
TreeSeriesNodeItemOption,
|
||||
} from 'echarts/types/src/chart/tree/TreeSeries';
|
||||
import { OptionName } from 'echarts/types/src/util/types';
|
||||
import type { OptionName } from 'echarts/types/src/util/types';
|
||||
import {
|
||||
EchartsTreeChartProps,
|
||||
EchartsTreeFormData,
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { OptionName } from 'echarts/types/src/util/types';
|
||||
import type { OptionName } from 'echarts/types/src/util/types';
|
||||
import type { TreeSeriesNodeItemOption } from 'echarts/types/src/chart/tree/TreeSeries';
|
||||
import { ChartDataResponseResult, QueryFormData } from '@superset-ui/core';
|
||||
import { TreeSeriesNodeItemOption } from 'echarts/types/src/chart/tree/TreeSeries';
|
||||
import { BaseChartProps, BaseTransformedProps } from '../types';
|
||||
|
||||
export type EchartsTreeFormData = QueryFormData & {
|
||||
|
||||
Reference in New Issue
Block a user