From b24042497d940bce30b416f224c391bc669d5924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20N=C3=B6lle?= <19640096+cnoelle@users.noreply.github.co> Date: Thu, 26 May 2022 01:45:16 +0200 Subject: [PATCH] axis v0 --- LineUtils.d.ts | 5 ++ index.html | 145 ++++++++++++++++++++++------------------------- src/LineUtils.ts | 22 ++++++- 3 files changed, 93 insertions(+), 79 deletions(-) diff --git a/LineUtils.d.ts b/LineUtils.d.ts index 11b36a6..065bf2a 100644 --- a/LineUtils.d.ts +++ b/LineUtils.d.ts @@ -74,6 +74,7 @@ export interface SingleAxisConfig { * See strokeStyle: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle */ style?: string; + keepOffsetContent?: boolean; } export interface AxesConfig { x: boolean | Partial; @@ -84,6 +85,10 @@ export interface AxesConfig { */ style?: string; grid?: boolean; + /** + * Default: false + */ + keepOffsetContent?: boolean; } export declare class LineUtils { /** diff --git a/index.html b/index.html index d1f087d..b9fcee0 100644 --- a/index.html +++ b/index.html @@ -11,91 +11,84 @@

Canvas Zoom demo app

- -