Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable alternative units (in, cm, mm) #49

Open
j0ono0 opened this issue Feb 14, 2022 · 2 comments
Open

enable alternative units (in, cm, mm) #49

j0ono0 opened this issue Feb 14, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@j0ono0
Copy link
Owner

j0ono0 commented Feb 14, 2022

Enable users to input dimensions in physical units.

Might be desirable because aspects of the diagram are intrinsically measured in physical/defined scales:
PCBs are created according to physical dimensions
Diagrams are likely to be printed out on standardized paper sizes (and at dpi higher than screen dpi)

@j0ono0 j0ono0 added the enhancement New feature or request label Feb 14, 2022
@j0ono0 j0ono0 self-assigned this Feb 14, 2022
@j0ono0
Copy link
Owner Author

j0ono0 commented Mar 15, 2022

good progress is being made!
Currently testing and updating the more complex components.
Details yet to be resolved:

  • How to provide default config
  • How to provide auto CSS
  • What units to include/cater for

@j0ono0
Copy link
Owner Author

j0ono0 commented Mar 22, 2022

attempting to roll ALL config into a single file (again). Using a python dict rather than YAML this time.
Initial tests look good.
Features include:

  • auto default config for diagrams
  • auto switching to reasonable default values for px and mm settings to match a diagrams units.
  • auto css file generation
  • auto conversion between unit types for CSS (css dimensions need to be in the 'user space units'. Ie, if the diagram is in mm, ALL css measurement values also have to be in mm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant