penpot / penpot-plugins

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

Selected shapes created with path/curve-tools return null for x, y, width, height... #171

Closed girafic closed 2 weeks ago

girafic commented 3 weeks ago
​...
bounds: Object { x: 366, y: 213, width: 159, … }
​​center: Object { x: 445.5, y: 290 }
...
content: Array(6) [ {…}, {…}, {…}, … ]
exports: null
​​fills: Array [ {…} ]
​​flipX: false
​​flipY: false
​​height: null
​​hidden: false
​​id: "960059c7-9319-80a0-8005-328614222079"
​​interactions: Array []
​​layoutCell: null
​​layoutChild: null
​​name: "Rectangle"
​​opacity: null
​​parent: Object { Aa: "960059c7-9319-80a0-8005-3282d89a24b5", Ia: {…}, vb: {…}, … }
​​parentX: 0
​​parentY: 0
​​proportionLock: false
​​rotation: 0
​​shadows: null
​​strokes: Array []
​​type: "path"
...
​​width: null
​​x: null
​​y: null
Alotor commented 3 weeks ago

Thanks for reporting this. We'll fix it soon. In the meantime you can use the bounds (will return the same data).