Closed acarabott closed 2 years ago
Hi Arthur, thanks v. much for this & apols for the delay - instead of changing the __argsVV
helper, I updated the __argsAttribs()
function to also pop a given nullish attrib arg from the array. Also added some tests...
(New version just released :)
Hey Karsten, looks good. No problem about the delay. Happy to help, as ever!
What
When
undefined
is passed torect
for theattrs
param, we end up with the wrongpos
andsize
https://codesandbox.io/s/thing-umbrella-rect-rekked-wjt1l?file=/src/index.ts
Issue
I believe the issue is in
geom/internal/args
, whereargs.length === 2
should beargs.length === 3
.This function appears to be used by
rect
,aabb
, andellipse
which all have a three argument constructor, so I believe this fix should be appropriate, but want to check before submitting a fix.