Select Line Type

Switches the color swatch of the current tool to a different line type if it’s available.

Syntax

store.dispatch({ type: "SELECT_LINE_TYPE", payload: lineType });

Parameters

lineType

The target LineType to set the current tool’s swatch to.

Examples

Switches the color swatch to blue.

store.dispatch({
  type: "SELECT_LINE_TYPE",
  payload: 0
});