Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add distinct class names to imagemapster layers #78

Open
jamietre opened this issue Jul 30, 2012 · 0 comments
Open

Add distinct class names to imagemapster layers #78

jamietre opened this issue Jul 30, 2012 · 0 comments

Comments

@jamietre
Copy link
Owner

Creating complex effects can be accomplished by working directly with the layers ImageMapster creates. This currenlty involves targeting them by index position which is brittle and could easily break if (for example) layers were added by snapshot. Additionally it doesn't work with VML, which actually some things could work interchangeably.

Add class names to layers and unique IDs to snapshots. Use underscores to distinguish from end-user classes.

// .mapster_el and #mapster_wrap_n already exist as shown. The others will be added

<div id="mapster_wrap_1" class="mapster_wrap">
   <image id="original-image" class="mapster_source mapster_el">
   <canvas id="mapster_snapshot_1" class="mapster_snapshot mapster_el" />
   <canvas class="mapster_select" mapster_el />
   <canvas class="mapster_highlight" />
</div>
@techfg techfg removed this from the 1.2.7 milestone Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants