Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StrokePicker

A class to create a stroke picker

Hierarchy

  • StrokePicker

Index

Constructors

constructor

Properties

holderSelection

holderSelection: Selection<HTMLDivElement, any, any, any>

D3 selection of the picker.

stroke

stroke: string

Color of the stroke.

strokeWidth

strokeWidth: number

Width of the stroke.

Methods

getStroke

  • getStroke(): string

getStrokeWidth

  • getStrokeWidth(): number

setStroke

  • setStroke(color: string): void

setStrokeWidth

  • setStrokeWidth(width: number): void

Private setupInteraction

  • setupInteraction(): void

Private setupUI

  • setupUI(): void

Private updateStroke

  • updateStroke(color: string): void

updateStrokeWidth

  • updateStrokeWidth(width: number): void

Generated using TypeDoc