From fb01ce2a00057661081397fe4e13feb6faaca62f Mon Sep 17 00:00:00 2001 From: Wu Kai <1183323265@qq.com> Date: Wed, 21 Jun 2023 14:13:37 +0800 Subject: [PATCH] fix: typo in chart.ts (#6696) fix: typo --- src/charts.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/charts.ts b/src/charts.ts index b5714686..d22da432 100644 --- a/src/charts.ts +++ b/src/charts.ts @@ -180,7 +180,7 @@ const commonProps = { locked: false, } as const; -const getChartDimentions = (spreadsheet: Spreadsheet) => { +const getChartDimensions = (spreadsheet: Spreadsheet) => { const chartWidth = (BAR_WIDTH + BAR_GAP) * spreadsheet.values.length + BAR_GAP; const chartHeight = BAR_HEIGHT + BAR_GAP * 2; @@ -250,7 +250,7 @@ const chartLines = ( groupId: string, backgroundColor: string, ): ChartElements => { - const { chartWidth, chartHeight } = getChartDimentions(spreadsheet); + const { chartWidth, chartHeight } = getChartDimensions(spreadsheet); const xLine = newLinearElement({ backgroundColor, groupIds: [groupId], @@ -313,7 +313,7 @@ const chartBaseElements = ( backgroundColor: string, debug?: boolean, ): ChartElements => { - const { chartWidth, chartHeight } = getChartDimentions(spreadsheet); + const { chartWidth, chartHeight } = getChartDimensions(spreadsheet); const title = spreadsheet.title ? newTextElement({