Documentation / @finchart/tools / FibRetracement
Interface: FibRetracement
Defined in: tools/src/drawings.ts:146
Extends
DrawingIdentity
Properties
a
a:
Anchor
Defined in: tools/src/drawings.ts:148
b
b:
Anchor
Defined in: tools/src/drawings.ts:149
id
id:
string
Defined in: tools/src/drawings.ts:74
Inherited from
DrawingIdentity.id
levels?
optionallevels?:number[]
Defined in: tools/src/drawings.ts:156
Which levels to draw. Absent means the conventional seven (FIB_LEVELS) — the screen today's consumers already have. Values outside [0, 1] are legal (extension levels, negative retracements); the normalizer sorts and dedupes but never clamps.
levelSpacing?
optionallevelSpacing?:"log"
Defined in: tools/src/drawings.ts:158
How the levels are spread between the anchors — see LevelSpacing. Absent is price-linear.
style?
optionalstyle?:Partial<LineStyle>
Defined in: tools/src/drawings.ts:85
Per-drawing override — the third layer of the same resolution the toolbox already does (theme variables → toolbox override → this). The same Partial<LineStyle> shape, deliberately: one leaf vocabulary (width·color·dashArray), not a second one.
The values are literals, not theme tokens — a canvas can't read var(), and this is a saved value. A drawing colored by hand keeps its color across a theme switch; absent means "the theme's".
Inherited from
DrawingIdentity.style
type
type:
"fib"
Defined in: tools/src/drawings.ts:147