Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
jquery-select-areas
Advanced tools
jQuery-select-areas is a jQuery plugin that let you select multiple areas of an image, move them and resize them.
jQuery-select-areas is a jQuery plugin that let you select multiple areas of an image, move them and resize them.
It is used by:
We (360Learning) no longer have the time to maintain this project, so the issue tracker has been closed. If someone wants to get admin access to this repository to fix the few bugs that are reported, we would gladly agree. Else, there already are some forks of this project, so don't hesitate to use them if they have fixed a bug that is bother you. Best regards
$("#mypic").selectAreas({
minSize: [30, 30], // Minimum size of a selection
maxSize: [400, 300], // Maximum size of a selection
onChanged: $.noop, // fired when a selection is released
onChanging: $.noop // fired during the modification of a selection
});
Check out example/example.html
This plugin is fully compatible with every modern browser and IE >= 9.
One of the features : scaling image, in order to display it smaller or bigger than it actually is, is not compatible with IE8. If you need to use this feature and to maintain a compatibility with IE8, you can add the alternate stylesheet resources/jquery.selectareas.ie8.css. This will make it work but uglify the whole plugin. This stylesheet can be added for IE8 only with conditional comments (see example/example.html).
An area is described (when retrieved or set) by a json object:
{
id, // ID identifying the area in the plugin
x, // X coordinate (Position)
y, // Y coordinate (Position)
z, // Z-index (0 when inactive or 100 when focused)
width, // Width of the area (Size)
height // Height of the area (Size)
}
Here is a list of available options for selectAreas, with their default value:
Three events are fired by the plugin:
Once you added a selectAreas plugin on an image, several method are exposed to help you manipulate and retrieve these areas:
FAQs
jQuery-select-areas is a jQuery plugin that let you select multiple areas of an image, move them and resize them.
The npm package jquery-select-areas receives a total of 426 weekly downloads. As such, jquery-select-areas popularity was classified as not popular.
We found that jquery-select-areas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.