Interface: DiffScaleOptions
Defined in: packages/sdvplot/src/shots/diff.ts:76
Options for diffScale.
Properties
domain?
optionaldomain?:number
Defined in: packages/sdvplot/src/shots/diff.ts:87
Saturation in FG% fraction, finite and above 0 (else InputError); default 0.15 (theme.ts:29). "master" keeps its own stops.
nullColor?
optionalnullColor?:string
Defined in: packages/sdvplot/src/shots/diff.ts:89
Colour for null (no league figure); default var(--sdv-muted, #525252).
palette?
optionalpalette?:DiffPalette
Defined in: packages/sdvplot/src/shots/diff.ts:83
"rdbu" (default): RdBu reversed, above league red (blazing-the-nets main), clamped at ±domain.
"master": the 2021 five-stop red-yellow-green, UNCLAMPED like master's d3 scaleLinear: a diff past the end
stops (±0.99) extrapolates, each channel then clamped to 0-255. An infinite diff takes the end colour (d3 gives
rgb(0, 0, 0) for Infinity and rgb(0, 255, 0) for -Infinity).
theme?
optionaltheme?:"dark"|"light"
Defined in: packages/sdvplot/src/shots/diff.ts:85
"dark" swaps RdBu's near-white centre for #303030 so an average mark recedes (theme.ts:52-58). Ignored by "master".