jgraph / jgraph/drawio

Have option to set solid/bold page grid to 5 units instead of 4 to emulate millimeter paper

Open
#5,154 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement wontfix
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.

Is your feature request related to a problem? Please describe.
I'm always frustrated when I want to use draw.io to produce a scaled diagram.
I switch on 1mm as grid size but the bold grid lines are a multiple of 4 for the thin ones. They do not align to the numbers of the rulers

Image

Image

Image

Image

Describe the solution you'd like
I'd like to have an option to define how the bold grid is produced. E.g. have it every 5 small ones (resulting in 5 mm).
If I zoom out and the grid would be to dense a strategy would be nice. E.g. show every 5mm a think and ever 1cm a bold. or every 1cm a thin and every 5cm a bold.
The ruler seems to have a nice logic for the generating the numbers. Maybe follow this logic for the bold lines, too?

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

No file, test, or entry point is named in the issue. Start by locating the grid-rendering and ruler logic in the client-side editor, then define how the bold-line interval should be selected at different zoom levels; done means a user can configure five-unit bold spacing and the grid remains useful when zooming out.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.