blenderskool / blenderskool/canvas-elements

Support for relative positioning

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.