jgraph / jgraph/drawio

Add units to the configuration parameter: "pageFormat"

Open
#4,559 4 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.