Add units to the configuration parameter: "pageFormat"
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 8.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Hi, within the json configuration, there is a parameter pageFormat, but it is hardcoded in inches. So when a user wants to switch the drawio into milimeters, he can e.g. set the grid rulers into milimeters, but not the grid size. That creates an unpleasant schism, when rulers are indeed in milimeters, but the shapes still snap to inches.
Please, add the possibility to change the entire global app's unit settings into milimeters, so that non-US folks can work in it as well.
A good start seems to be the pageFormat parameter, which could include the unit sub-parameter.
Thank you for consideration 😊
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the JSON configuration handling for pageFormat and the existing grid and ruler unit settings. Trace how those settings affect snapping and display, then verify that a configured millimeter unit is applied consistently across the editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100