Constants

Constants and presets exported by @reincharts/interactive.

annotationTools

Drawing tools of one toolbar group: textTool, callout, priceLabel, priceLine.

const annotationTools: ToolDefinition[]

arrow

The Arrow drawing tool (type: "arrow").

const arrow: ToolDefinition

brush

The Brush drawing tool (type: "brush").

const brush: ToolDefinition

builtinTools

Every built-in tool, in toolbar order.

const builtinTools: readonly ToolDefinition[]

callout

The Callout drawing tool (type: "callout").

const callout: ToolDefinition

crossLine

The Cross Line drawing tool (type: "crossLine").

const crossLine: ToolDefinition

dateAndPriceRange

The Date and Price Range drawing tool (type: "dateAndPriceRange").

const dateAndPriceRange: ToolDefinition

dateRange

The Date Range drawing tool (type: "dateRange").

const dateRange: ToolDefinition

DRAWING_COLORS

Default color swatches.

const DRAWING_COLORS: string[]

ellipse

The Ellipse drawing tool (type: "ellipse").

const ellipse: ToolDefinition

extendedLine

The Extended Line drawing tool (type: "extendedLine").

const extendedLine: ToolDefinition

FIB_LEVELS

Default fibonacci levels and colors.

const FIB_LEVELS: readonly DrawingLevel[]

fibExtension

The Trend-Based Fib Extension drawing tool (type: "fibExtension").

const fibExtension: ToolDefinition

fibRetracement

The Fib Retracement drawing tool (type: "fibRetracement").

const fibRetracement: ToolDefinition

fibTools

Drawing tools of one toolbar group: fibRetracement, fibExtension, gannFan.

const fibTools: ToolDefinition[]

freehandTools

Freehand tools: brush and highlighter.

const freehandTools: ToolDefinition[]

GANN_LEVELS

Default gann fan ratios (time/price).

const GANN_LEVELS: readonly DrawingLevel[]

gannFan

The Gann Fan drawing tool (type: "gannFan").

const gannFan: ToolDefinition

highlighter

Thick, translucent freehand strokes for marking up a chart.

const highlighter: ToolDefinition

horizontalLineTool

The Horizontal Line drawing tool (type: "horizontalLine").

const horizontalLineTool: ToolDefinition

horizontalRay

The Horizontal Ray drawing tool (type: "horizontalRay").

const horizontalRay: ToolDefinition

icons

Built-in 28×28 line icons (tool and toolbar icons), drawn with currentColor.

const icons: { trendLine: React.JSX.Element; ray: React.JSX.Element; extendedLine: React.JSX.Element; infoLine: React.JSX.Element; arrow: React.JSX.Element; ... 44 more ...; more: React.JSX.Element; }

infoLine

The Info Line drawing tool (type: "infoLine").

const infoLine: ToolDefinition

lineTools

Drawing tools of one toolbar group: trendLine, ray, infoLine, extendedLine, arrow, horizontalLineTool, horizontalRay, verticalLineTool, crossLine, parallelChannel, regressionChannel, pitchfork.

const lineTools: ToolDefinition[]

longPosition

The Long position drawing tool (type: "longPosition").

const longPosition: ToolDefinition

measureTools

Drawing tools of one toolbar group: longPosition, shortPosition, priceRange, dateRange, dateAndPriceRange.

const measureTools: ToolDefinition[]

parallelChannel

The Parallel Channel drawing tool (type: "parallelChannel").

const parallelChannel: ToolDefinition

path

The Path drawing tool (type: "path").

const path: ToolDefinition

pitchfork

The Pitchfork drawing tool (type: "pitchfork").

const pitchfork: ToolDefinition

priceLabel

The Price Label drawing tool (type: "priceLabel").

const priceLabel: ToolDefinition

priceLine

Draggable horizontal price line with a label and a close button (orders, alerts).

const priceLine: ToolDefinition

priceRange

The Price Range drawing tool (type: "priceRange").

const priceRange: ToolDefinition

ray

The Ray drawing tool (type: "ray").

const ray: ToolDefinition

rectangle

The Rectangle drawing tool (type: "rectangle").

const rectangle: ToolDefinition

regressionChannel

The Regression Trend drawing tool (type: "regressionChannel").

const regressionChannel: ToolDefinition

shapeTools

Drawing tools of one toolbar group: rectangle, ellipse, triangle, path.

const shapeTools: ToolDefinition[]

shortPosition

The Short position drawing tool (type: "shortPosition").

const shortPosition: ToolDefinition

textTool

The Text drawing tool (type: "text").

const textTool: ToolDefinition

TOLERANCE

Hit tolerance in pixels.

const TOLERANCE: 6

toolGroups

Toolbar groups (toolbar order).

const toolGroups: readonly { readonly id: string; readonly label: string; }[]

trendLine

The Trend Line drawing tool (type: "trendLine").

const trendLine: ToolDefinition

triangle

The Triangle drawing tool (type: "triangle").

const triangle: ToolDefinition

verticalLineTool

The Vertical Line drawing tool (type: "verticalLine").

const verticalLineTool: ToolDefinition

On this page