Allow to either set zooms data through JS or data-* attributes in IMGs #2
Labels
No labels
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: caribaud/melpomene#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
zoomsto be defined.It's not ideal.
It would be best to also allow the
imgtags 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
zoomsis already set, do not lookup theimgs 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