Skip to content

Commit 54da7a2

Browse files
committed
fold color option into AreaOptions
1 parent d72b9a0 commit 54da7a2

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/mark.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,6 @@ export interface MarkOptions {
473473
channels?: Record<string, Channel | ChannelValue>;
474474
}
475475

476-
export interface ColorOptions {
477-
/** Shorthand for setting both the fill and the stroke. */
478-
color?: ChannelValueSpec;
479-
}
480-
481476
/** The abstract base class for Mark implementations. */
482477
export class Mark {
483478
/**

src/marks/area.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type {ChannelValue, ChannelValueDenseBinSpec, ChannelValueSpec} from "../channel.js";
22
import type {CurveOptions} from "../curve.js";
3-
import type {ColorOptions, Data, MarkOptions, RenderableMark} from "../mark.js";
3+
import type {Data, MarkOptions, RenderableMark} from "../mark.js";
44
import {MarkerOptions} from "../marker.js";
55
import type {BinOptions, BinReducer} from "../transforms/bin.js";
66
import type {StackOptions} from "../transforms/stack.js";
77

88
/** Options for the area, areaX, and areaY marks. */
9-
export interface AreaOptions extends MarkOptions, StackOptions, ColorOptions, CurveOptions {
9+
export interface AreaOptions extends MarkOptions, StackOptions, CurveOptions {
1010
/**
1111
* The required primary (starting, often left) horizontal position channel,
1212
* representing the area’s baseline, typically bound to the *x* scale. For
@@ -43,6 +43,9 @@ export interface AreaOptions extends MarkOptions, StackOptions, ColorOptions, Cu
4343
* **stroke** if a channel.
4444
*/
4545
z?: ChannelValue;
46+
47+
/** Shorthand for setting both the fill and the stroke. */
48+
color?: ChannelValueSpec;
4649
}
4750

4851
/** Options for the areaX mark. */

0 commit comments

Comments
 (0)