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

getShapeById returns type 'Shape' for removed objects #144

Closed girafic closed 1 month ago

girafic commented 2 months ago

getShapeById returns type Shape for removed objects on canvas

Object { ...
​blendMode: "normal"
​blocked: false
​blur: null
​borderRadius: null
​borderRadiusBottomLeft: null
​borderRadiusBottomRight: null
​borderRadiusTopLeft: null
​borderRadiusTopRight: null
​bounds: null
​center: null
​constraintsHorizontal: null
​constraintsVertical: null
​exports: null
​fills: null
​flipX: false
​flipY: false
​frameX: 0
​frameY: 0
​height: null
​hidden: false
​id: ""
​interactions: 
​layoutCell: null
​layoutChild: null
​name: null
​opacity: null
​parent: Object { Ba: {…}, Pa: {…}, Gb: {…}, … }
​parentX: 0
​parentY: 0
​proportionLock: false
​rotation: null
​shadows: null
​strokes: null
​type: null
​width: null
​x: null
​y: null
...}
Alotor commented 2 months ago

Thanks! good catch. I'll fix it soon.