You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Polygon shape can accept an array of numbers or PointData (which I believe are converted to an array of numbers either way, whereas the GraphicsContext.poly currently only accepts an array of numbers.
I believe that this should be brought in line with the shape to accept PointData to alllow supplying xy pairs as well as just numbers.
Description
The Polygon shape can accept an array of numbers or PointData (which I believe are converted to an array of numbers either way, whereas the GraphicsContext.poly currently only accepts an array of numbers.
I believe that this should be brought in line with the shape to accept PointData to alllow supplying xy pairs as well as just numbers.
Shape constructor:
pixijs/src/maths/shapes/Polygon.ts
Line 54 in 705d60f
GraphicsContext.poly:
pixijs/src/scene/graphics/shared/GraphicsContext.ts
Line 758 in 705d60f
The text was updated successfully, but these errors were encountered: