pinout icon indicating copy to clipboard operation
pinout copied to clipboard

enable alternative units (in, cm, mm)

Open j0ono0 opened this issue 3 years ago • 2 comments

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 avatar Feb 14 '22 06:02 j0ono0

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 avatar Mar 15 '22 11:03 j0ono0

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.

j0ono0 avatar Mar 22 '22 05:03 j0ono0