@equinor/videx-wellog
Version:
Visualisation components for wellbore log data
20 lines (19 loc) • 709 B
TypeScript
import { D3Selection } from '../common/interfaces';
/**
* Set multiple attributes on all elements in selection
* instead of using selection.attr for each attribute to set.
*/
export declare function setAttrs(selection: D3Selection, attrs: object): D3Selection;
/**
* Set multiple styles on all elements in selection
* instead of using selection.style for each style to set.
*/
export declare function setStyles(selection: D3Selection, styles: object): D3Selection;
/**
* Wrapper for setAttrs and setStyles, setting both attributes and styles
* on each element in seletion.
*/
export declare function setProps(selection: D3Selection, props: {
attrs?: object;
styles?: object;
}): D3Selection;