From b8f6474703f0edfa04707e2b3ee1663043ab2338 Mon Sep 17 00:00:00 2001 From: Evgeniy Timokhov Date: Mon, 24 Jan 2022 12:07:14 +0000 Subject: [PATCH 1/2] Disallowed downscaling on canvas to make sure that bars will render Fixes #982 --- src/gui/canvas-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/canvas-utils.ts b/src/gui/canvas-utils.ts index 612362a7e9..affdf9d832 100644 --- a/src/gui/canvas-utils.ts +++ b/src/gui/canvas-utils.ts @@ -51,7 +51,7 @@ export function createBoundCanvas(parentElement: HTMLElement, size: Size): Canva const canvas = doc.createElement('canvas'); parentElement.appendChild(canvas); - const binding = bindToDevicePixelRatio(canvas); + const binding = bindToDevicePixelRatio(canvas, { allowDownsampling: false }); binding.resizeCanvas({ width: size.w, height: size.h, From d890285dffd0b1b9ab84ab1bcae960b7beda4d19 Mon Sep 17 00:00:00 2001 From: Evgeniy Timokhov Date: Mon, 24 Jan 2022 12:13:40 +0000 Subject: [PATCH 2/2] Updated size-limit config --- .size-limit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.size-limit.js b/.size-limit.js index 74bdbde990..00ef64831c 100644 --- a/.size-limit.js +++ b/.size-limit.js @@ -9,6 +9,6 @@ module.exports = [ { name: 'Standalone', path: 'dist/lightweight-charts.standalone.production.js', - limit: '45.4 KB', + limit: '45.5 KB', }, ];