Skip to content

Documentation / @ripl/core / LinearScaleOptions

Interface: LinearScaleOptions

Defined in: packages/core/src/scales/_base/index.ts:36

Options shared by linear-based scales (continuous, logarithmic, power, etc.).

Extended by

Properties

PropertyTypeDescriptionDefined in
clamp?booleanConstrains mapped values to the range bounds, so out-of-domain inputs never overshoot.packages/core/src/scales/_base/index.ts:38
nice?number | booleanExpand the domain to round, tick-aligned boundaries at construction. true uses ~10 ticks; a number sets the target tick count. This is a construction-time option by design — scales stay plain callable objects with no chained .nice() method.packages/core/src/scales/_base/index.ts:46
padToTicks?number | booleanExpands the mapping domain to tick-aligned boundaries. true uses ~10 ticks; a number sets the target tick count.packages/core/src/scales/_base/index.ts:40