penpot / penpot-plugins

Repository for developing and running Penpot plugins with examples and libraries.
Mozilla Public License 2.0
19 stars 2 forks source link

"Invalid arguments (on pointer constructor)"-error after adding content to a PenpotPath #132

Closed girafic closed 1 month ago

girafic commented 1 month ago

After adding content to a PenpotPath I get an error with the message "Invalid arguments (on pointer constructor)"

const path = penpot.createPath()
path.content = [
  { command: "M", params: { x: 0, y: 0 } },
  { command: "L", params: { x: 200, y: 200 }},
];
juanfran commented 1 month ago

Fixed in the Penpot develop branch https://github.com/penpot/penpot/pull/4992. Thanks!