blenderskool / blenderskool/canvas-elements
Support for relative positioning
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Positioning based on relative units such as **percentage** would allow the drawings to be dependent on the actual width and height of the canvas. This would internally translate to absolute positioning during the drawing process.
Eg.
```javascript
{
x: '20%', // 20% of the canvas width
y: '50%' // 50% canvas height (translates to the center of canvas)
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.