Closed mmz-001 closed 2 years ago
Creating a polygon with Two.makePolygon does not set the x and y coordinates of the shape. This fix addresses this issue.
Two.makePolygon
x
y
const params = { width: 300, height: 300, } const two = new Two(params).appendTo(document.getElementById('container')) const polygon = two.makePolygon(150, 150, 100, 12) two.update()
P.S. first time contributing.
Thanks for this! This slipped through the cracks when converting the latest functions and documentation to TypeScript types.
Creating a polygon with
Two.makePolygon
does not set thex
andy
coordinates of the shape. This fix addresses this issue.Steps to reproduce.
Actual Result
Expected Result
P.S. first time contributing.