Skip to content

Commit

Permalink
chore: remove unused types
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Dec 4, 2024
1 parent c2b7b30 commit 592cab6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/chart/treemap/treemapVisual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import VisualMapping, { VisualMappingOption } from '../../visual/VisualMapping';
import { each, extend, isArray } from 'zrender/src/core/util';
import TreemapSeriesModel, { TreemapSeriesNodeItemOption, TreemapSeriesOption } from './TreemapSeries';
import TreemapSeriesModel, { TreemapSeriesNodeItemOption } from './TreemapSeries';
import { TreemapLayoutNode, TreemapItemLayout } from './treemapLayout';
import Model from '../../model/Model';
import { ColorString, ZRColor } from '../../util/types';
Expand All @@ -41,8 +41,6 @@ interface TreemapVisual {
colorSaturation?: number
}

type TreemapLevelItemStyleOption = TreemapSeriesOption['levels'][number]['itemStyle'];

export default {
seriesType: 'treemap',
reset(seriesModel: TreemapSeriesModel) {
Expand Down
2 changes: 0 additions & 2 deletions src/component/dataZoom/AxisProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ interface MinMaxSpan {
maxValueSpan: number
}

type SupportedAxis = 'xAxis' | 'yAxis' | 'angleAxis' | 'radiusAxis' | 'singleAxis';

/**
* Operate single axis.
* One axis can only operated by one axis operator.
Expand Down
2 changes: 1 addition & 1 deletion src/component/visualMap/ContinuousView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import GlobalModel from '../../model/Global';
import ExtensionAPI from '../../core/ExtensionAPI';
import Element, { ElementEvent } from 'zrender/src/Element';
import { TextVerticalAlign, TextAlign } from 'zrender/src/core/types';
import { ColorString, Payload, VerticalAlign } from '../../util/types';
import { ColorString, Payload } from '../../util/types';
import { parsePercent } from 'zrender/src/contain/text';
import { setAsHighDownDispatcher } from '../../util/states';
import { createSymbol } from '../../util/symbol';
Expand Down
3 changes: 0 additions & 3 deletions src/component/visualMap/PiecewiseModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ type VisualState = VisualMapModel['stateList'][number];

type InnerVisualPiece = VisualMappingOption['pieceList'][number];

type GetPieceValueType<T extends InnerVisualPiece>
= T extends { interval: InnerVisualPiece['interval'] } ? number : string;

/**
* Order Rule:
*
Expand Down

0 comments on commit 592cab6

Please sign in to comment.