From 6ff8b2f84e98e91018c81388c369ee641ae38bfe Mon Sep 17 00:00:00 2001 From: Filip Borkiewicz Date: Sun, 18 Jul 2021 23:41:52 +0000 Subject: [PATCH] Define bounds as a field common to all cartesian axes options Associated with #9437. --- types/index.esm.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 5e5b12f5e43..80b33691411 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -2830,6 +2830,15 @@ export interface TickOptions { } export interface CartesianScaleOptions extends CoreScaleOptions { + /** + * Scale boundary strategy (bypassed by min/max time options) + * - `data`: make sure data are fully visible, ticks outside are removed + * - `ticks`: make sure ticks are fully visible, data outside are truncated + * @since 2.7.0 + * @default 'ticks' + */ + bounds: 'ticks' | 'data'; + /** * Position of the axis. */