@graphty/graphty-element / extend / DefaultPaletteControls
Interface: DefaultPaletteControls ​
Defined in: graphty-element/src/simple/types.ts:380
The consumer call the simple tier adds to the element and to session.styles: the palette a colour binding uses when it names none, one per kind, resolved when a layer is written.
Methods ​
setDefaultPalettes() ​
setDefaultPalettes(
palettes,options?):void
Defined in: graphty-element/src/simple/types.ts:385
Choose the palette each kind of colour binding uses when it names none. Call it before adding layers; { reapply: true } repaints layers already written with the previous default.
Parameters ​
palettes ​
categorical? ​
string
diverging? ​
string
sequential? ​
string
options? ​
reapply? ​
boolean
Returns ​
void