Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow GraphicsContext.poly to accept PointData[] #10276

Closed
alexbown opened this issue Mar 6, 2024 · 1 comment
Closed

Feature Request: Allow GraphicsContext.poly to accept PointData[] #10276

alexbown opened this issue Mar 6, 2024 · 1 comment
Assignees

Comments

@alexbown
Copy link

alexbown commented Mar 6, 2024

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:

constructor(...points: (PointData[] | number[])[] | PointData[] | number[])

GraphicsContext.poly:

public poly(points: number[], close?: boolean): this

@Zyie
Copy link
Member

Zyie commented Mar 11, 2024

Should be fixed in 8.0.1

@Zyie Zyie closed this as completed Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants