From 736701d6968563f44b28500cbdc60e39c1c6a5b5 Mon Sep 17 00:00:00 2001 From: xuying <33517362+tangying1027@users.noreply.github.com> Date: Tue, 28 May 2024 20:31:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20symbolsize=E4=BF=AE=E6=94=B9=E4=B8=BAwid?= =?UTF-8?q?th=20height=20(#1968)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: xuying.xu --- packages/f2/src/components/pictorial/pictorial.tsx | 2 +- .../f2/test/components/pictorial/basic.test.tsx | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/f2/src/components/pictorial/pictorial.tsx b/packages/f2/src/components/pictorial/pictorial.tsx index 032ee5ce2..2f943ea87 100644 --- a/packages/f2/src/components/pictorial/pictorial.tsx +++ b/packages/f2/src/components/pictorial/pictorial.tsx @@ -24,7 +24,7 @@ export default class Pictorial extends withInterval({}) { {children.map((item) => { const { xMax, xMin, yMax, yMin } = item; - return ; + return ; })} ); diff --git a/packages/f2/test/components/pictorial/basic.test.tsx b/packages/f2/test/components/pictorial/basic.test.tsx index 14d848e43..c7b6bfe9d 100644 --- a/packages/f2/test/components/pictorial/basic.test.tsx +++ b/packages/f2/test/components/pictorial/basic.test.tsx @@ -78,13 +78,13 @@ describe('pictorial', () => { ( + symbol={({ xMin, xMax, yMin, yMax, width, height, origin }) => ( { style={{ x: xMin, y: yMin, - width: symbolSize[0], - height: symbolSize[1], + width, + height, fill: 'l(90) 0:#9cc1ff 1:#ecf5ff', fillOpacity: 0.9, }} />