mirror of
https://github.com/penpot/penpot.git
synced 2026-03-09 11:45:40 +00:00
🚧 Temporary workaround for fills/strokes being read-only
Add instructions to make the limintations. Once #8357 is resolved, this can be reverted.
This commit is contained in:
@@ -48,6 +48,8 @@ Actual low-level shape types are `Rectangle`, `Path`, `Text`, `Ellipse`, `Image`
|
||||
**Other Writable Properties**:
|
||||
* `name` - Shape name
|
||||
* `fills`, `strokes` - Styling properties
|
||||
IMPORTANT: The contents of the arrays are read-only. You cannot modify individual fills/strokes; you need to replace the entire array to change them, e.g.
|
||||
`shape.fills = [{ fillColor: "#FF0000", fillOpacity: 1 }]` to set a single red fill.
|
||||
* `rotation`, `opacity`, `blocked`, `hidden`, `visible`
|
||||
|
||||
**Z-Order**:
|
||||
|
||||
Reference in New Issue
Block a user