From ce52c183820f1e2c760fe2e0bec2386cfabb7cc0 Mon Sep 17 00:00:00 2001 From: Lipis Date: Mon, 14 Dec 2020 17:29:39 +0200 Subject: [PATCH] fix: Add width/height for the lines in charts (#2586) Co-authored-by: David Luzar --- src/charts.ts | 3 +++ src/packages/excalidraw/CHANGELOG.MD | 1 + 2 files changed, 4 insertions(+) diff --git a/src/charts.ts b/src/charts.ts index ff7f6112..b2b2a27c 100644 --- a/src/charts.ts +++ b/src/charts.ts @@ -192,6 +192,7 @@ export const renderSpreadsheet = ( y, startArrowhead: null, endArrowhead: null, + width: chartWidth, points: [ [0, 0], [chartWidth, 0], @@ -205,6 +206,7 @@ export const renderSpreadsheet = ( y, startArrowhead: null, endArrowhead: null, + height: chartHeight, points: [ [0, 0], [0, -chartHeight], @@ -220,6 +222,7 @@ export const renderSpreadsheet = ( endArrowhead: null, ...commonProps, strokeStyle: "dotted", + width: chartWidth, points: [ [0, 0], [chartWidth, 0], diff --git a/src/packages/excalidraw/CHANGELOG.MD b/src/packages/excalidraw/CHANGELOG.MD index 3ae1116f..c9caeefe 100644 --- a/src/packages/excalidraw/CHANGELOG.MD +++ b/src/packages/excalidraw/CHANGELOG.MD @@ -26,6 +26,7 @@ Please add the latest change on the top under the correct section. ### Fixes +- Fix resizing the pasted charts [#2586](https://github.com/excalidraw/excalidraw/pull/2586) - Fix element visibility and zoom on cursor when canvas offset isn't 0. [#2534](https://github.com/excalidraw/excalidraw/pull/2534) - Fix Library Menu Layout [#2502](https://github.com/excalidraw/excalidraw/pull/2502)