Add ratio as a json data #1

Closed
opened 2023-05-21 19:09:20 +02:00 by caribaud · 1 comment
Owner

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 ?

Right now the pages height and width are hardcoded into the HTML reader frame : https://git.aribaud.net/caribaud/melpomene/src/commit/2e1bb56e422e7dd00c4f3a1d5acc043ea97cdff6/melpomene_reader.html#L6 The only goal is to compute the page ratio : https://git.aribaud.net/caribaud/melpomene/src/commit/2e1bb56e422e7dd00c4f3a1d5acc043ea97cdff6/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 ?
Author
Owner

Adding ratio is no longer necessary as it must be dynamically inferred when data is from HTML

Adding ratio is no longer necessary as it must be dynamically inferred when data is from HTML
caribaud added the
kind/enhancement
status/wontfix
labels 2023-06-04 10:31:29 +02:00
caribaud added the
scope/generator
label 2023-06-04 21:20:02 +02:00
Sign in to join this conversation.
No description provided.