Skip to content

Commit 81774ef

Browse files
committed
chore: fix prettier problem
1 parent 4b61c98 commit 81774ef

File tree

58 files changed

+129
-131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+129
-131
lines changed

packages/vchart/src/animation/animate-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { IAnimate, IAnimateState } from './interface';
88
import { AnimationStateEnum } from './interface';
99

1010
export class AnimateManager extends StateManager implements IAnimate {
11-
declare protected _stateMap: IAnimateState & StateValueMap;
11+
protected declare _stateMap: IAnimateState & StateValueMap;
1212

1313
readonly id: number = createID();
1414

@@ -65,8 +65,8 @@ export class AnimateManager extends StateManager implements IAnimate {
6565
return element.diffState === 'exit'
6666
? AnimationStateEnum.exit
6767
: element.diffState === 'update'
68-
? AnimationStateEnum.update
69-
: AnimationStateEnum.appear;
68+
? AnimationStateEnum.update
69+
: AnimationStateEnum.appear;
7070
}
7171
}
7272
};

packages/vchart/src/animation/utils.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ function produceOneByOne(
162162
const durationTime = isFunction(duration)
163163
? duration(datum, element, params)
164164
: isValidNumber(duration)
165-
? duration
166-
: 0;
165+
? duration
166+
: 0;
167167
const userDelay = isFunction(delay) ? delay(datum, element, params) : isValidNumber(delay) ? delay : 0;
168168
let oneByOneTime = isFunction(oneByOne) ? oneByOne(datum, element, params) : oneByOne;
169169
if (oneByOneTime === false) {
@@ -177,13 +177,13 @@ function produceOneByOne(
177177
const durationTime = isFunction(duration)
178178
? duration(datum, element, params)
179179
: isValidNumber(duration)
180-
? duration
181-
: 0;
180+
? duration
181+
: 0;
182182
const userDelayAfter = isFunction(delayAfter)
183183
? delayAfter(datum, element, params)
184184
: isValidNumber(delayAfter)
185-
? delayAfter
186-
: 0;
185+
? delayAfter
186+
: 0;
187187
let oneByOneTime = isFunction(oneByOne) ? oneByOne(datum, element, params) : oneByOne;
188188
if (oneByOneTime === false) {
189189
return userDelayAfter;

packages/vchart/src/chart/bar/bar-transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class BarChartSpecTransformer<T extends IBarChartSpec = IBarChartSpec> ex
3737
if (bandAxis && !bandAxis.bandSize && !bandAxis.maxBandSize && !bandAxis.minBandSize) {
3838
// 将 autoBandSize 应用在轴上
3939
if (!!spec.autoBandSize) {
40-
const extend = isObject(spec.autoBandSize) ? (spec.autoBandSize.extend ?? 0) : 0;
40+
const extend = isObject(spec.autoBandSize) ? spec.autoBandSize.extend ?? 0 : 0;
4141
const { barMaxWidth, barMinWidth, barWidth, barGapInGroup } = spec.series.find(
4242
series => series.type === 'bar'
4343
) as IBarSeriesSpec;

packages/vchart/src/chart/base/base-chart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class BaseChart<T extends IChartSpec> extends CompilableBase implements I
164164
return this._chartData;
165165
}
166166

167-
declare protected _option: IChartOption;
167+
protected declare _option: IChartOption;
168168

169169
// 模块内的需要动态影像图表的属性
170170
readonly state: ILayoutModelState = {

packages/vchart/src/chart/common/common-transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class CommonChartSpecTransformer<T extends ICommonChartSpec = ICommonChar
3030
if (series.type === 'bar') {
3131
const relatedAxis = this._findBandAxisBySeries(series, seriesIndex, spec.axes);
3232
if (relatedAxis && !relatedAxis.bandSize && !relatedAxis.maxBandSize && !relatedAxis.minBandSize) {
33-
const extend = isObject(series.autoBandSize) ? (series.autoBandSize.extend ?? 0) : 0;
33+
const extend = isObject(series.autoBandSize) ? series.autoBandSize.extend ?? 0 : 0;
3434
const { barMaxWidth, barMinWidth, barWidth, barGapInGroup } = series;
3535
this._applyAxisBandSize(relatedAxis, extend, { barMaxWidth, barMinWidth, barWidth, barGapInGroup });
3636
}

packages/vchart/src/compile/data/compilable-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { GrammarType } from '../interface/compilable-item';
1010

1111
export class CompilableData extends GrammarItem implements ICompilableData {
1212
readonly grammarType = GrammarType.data;
13-
declare protected _product: Maybe<IVGrammarData>;
13+
protected declare _product: Maybe<IVGrammarData>;
1414
declare getProduct: () => Maybe<IVGrammarData>;
1515

1616
/** 原始DataView */

packages/vchart/src/compile/grammar-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { GrammarItemCompileOption, GrammarType, IGrammarItem, GrammarItemIn
99
export abstract class GrammarItem extends CompilableBase implements IGrammarItem {
1010
grammarType: GrammarType;
1111

12-
declare protected _option: GrammarItemInitOption;
12+
protected declare _option: GrammarItemInitOption;
1313

1414
/** id */
1515
readonly id: number = createID();

packages/vchart/src/compile/mark/compilable-mark.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export abstract class CompilableMark extends GrammarItem implements ICompilableM
167167
this._stateSort = stateSort;
168168
}
169169

170-
declare protected _option: ICompilableMarkOption;
170+
protected declare _option: ICompilableMarkOption;
171171

172172
constructor(option: ICompilableMarkOption, name: string, model: IModel) {
173173
super(option);
@@ -184,7 +184,7 @@ export abstract class CompilableMark extends GrammarItem implements ICompilableM
184184
this._event = new Event(model.getOption().eventDispatcher, model.getOption().mode);
185185
}
186186

187-
declare protected _product: Maybe<IMark>;
187+
protected declare _product: Maybe<IMark>;
188188
declare getProduct: () => Maybe<IMark>;
189189

190190
// transform目前在形状词云中使用,但直接用的 vgrammar 接口 (this._wordMark as ICompilableMark).getProduct().transform(wordCloudTransforms);

packages/vchart/src/compile/signal/compilable-signal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { ICompilableSignal } from './interface';
99

1010
export class CompilableSignal<T> extends GrammarItem implements ICompilableSignal<T> {
1111
readonly grammarType = GrammarType.signal;
12-
declare protected _product: Maybe<ISignal<T>>;
12+
protected declare _product: Maybe<ISignal<T>>;
1313
declare getProduct: () => Maybe<ISignal<T>>;
1414

1515
readonly name: string;

packages/vchart/src/component/axis/cartesian/band-axis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class CartesianBandAxis<T extends ICartesianBandAxisSpec = ICartesianBand
2626

2727
protected _scale: BandScale = new BandScale();
2828

29-
declare protected _scales: BandScale[];
29+
protected declare _scales: BandScale[];
3030

3131
protected computeDomain(data: { min: number; max: number; values: any[] }[]): StringOrNumber[] {
3232
return this.computeBandDomain(data);

0 commit comments

Comments
 (0)