One level of a Fibonacci-family tool.

interface FibLevel {
    color?: string;
    enabled?: boolean;
    label?: string;
    ratio: number;
}

Properties

color?: string

Stroke colour. Falls back to the conventional colour for the ratio.

enabled?: boolean

false hides the level without forgetting it. Default true.

label?: string

Printed instead of the ratio when set.

ratio: number

The level as a fraction of the anchor span (0.618, 1.618, ...).