Allow to either set zooms data through JS or data-* attributes in IMGs #2
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#2
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, melpomene.js expect
zooms
to be defined.It's not ideal.
It would be best to also allow the
img
tags themselves to define the zooms, e.g. withdata-zooms="[<zoom 1 coord x>, <zoom 1 coord y>, <zoom 1 width>, <zoom 1 hieght>, <zoom2>, ...]"
At init, if
zooms
is already set, do not lookup theimg
s data. If it is not, do it.Also, the generator should probably be able to output a static version of melpomene.html with the images pre-defined. A prefix and extension could be provided while keeping the filename of the svg.
Fixed in
855808b469
,9f52233405