Add ratio as a json data #1
Labels
No Label
kind/bug
kind/duplicate
kind/enhancement
kind/question
scope/core
scope/core and generator
scope/demos
scope/generator
scope/meta
status/invalid
status/wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: caribaud/melpomene#1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now the pages height and width are hardcoded into the HTML reader frame :
2e1bb56e42/melpomene_reader.html (L6)
The only goal is to compute the page ratio :
2e1bb56e42/melpomene.js (L113-L127)
This could be pre-computed by the generator and added into the json file, the SVG contains the info : svg tag, attribute width / height.
New structure could be : melpomene -> pages_ratio and melpomene -> zooms ?
Adding ratio is no longer necessary as it must be dynamically inferred when data is from HTML