Skip to content

Commit 428336c

Browse files
author
GitHub Actions Bot
committed
style: auto-formatting [CI]
1 parent c40321f commit 428336c

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

src/selection.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ export interface SelectionParameter<T extends SelectionType = SelectionType> {
226226
| (T extends 'point'
227227
? PointSelectionConfig
228228
: T extends 'interval'
229-
? IntervalSelectionConfig
230-
: T extends 'region'
231-
? RegionSelectionConfig
232-
: never);
229+
? IntervalSelectionConfig
230+
: T extends 'region'
231+
? RegionSelectionConfig
232+
: never);
233233

234234
/**
235235
* Initialize the selection with a mapping between [projected channels or field names](https://vega.github.io/vega-lite/docs/selection.html#project) and initial values.

test-runtime/util.ts

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,17 +306,31 @@ export function clear(idx: number, parent?: string, targetBrush?: boolean) {
306306
return `pureClear(${idx}, ${stringValue(parent)}, ${!!targetBrush})`;
307307
}
308308

309-
export function clearRegion(idx: number | {
310-
id: number;
311-
count?: number;
312-
}, parent?: string, targetBrush?: boolean) {
309+
export function clearRegion(
310+
idx:
311+
| number
312+
| {
313+
id: number;
314+
count?: number;
315+
},
316+
parent?: string,
317+
targetBrush?: boolean
318+
) {
313319
return `clear(${idx}, ${stringValue(parent)}, ${!!targetBrush})`;
314320
}
315321

316-
export function circleRegion(idx: number | {
317-
id: number;
318-
count?: number;
319-
}, parent?: string, targetBrush?: boolean, radius = 40, segments = 20) {
322+
export function circleRegion(
323+
idx:
324+
| number
325+
| {
326+
id: number;
327+
count?: number;
328+
},
329+
parent?: string,
330+
targetBrush?: boolean,
331+
radius = 40,
332+
segments = 20
333+
) {
320334
return `circleRegion(${idx}, ${radius}, ${segments}, ${stringValue(parent)}, ${!!targetBrush})`;
321335
}
322336

0 commit comments

Comments
 (0)