I built this example to show how you can leverage the DOM to create a polygon selector. Typically this operation will take place using canvas or svg but I wanted to see the performance of doing it using draggable DOM elements. Works in browsers that support CSS3 transformations.
tegansnyder/JQuery-DOM-Polygon-Selector-CSS3-Lines
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
JS Bin Live preview here: http://jsbin.com/afafup/1/ NOTE: Selector is triggered using RIGHT click of mouse. This is an example I built to see if I could create a polygon selection tool using DOM elements and CSS3 transformations. While this might not be the best way to achieve this effect and is a little rough around the edges I think this could be made into a solid JQuery Plugin with little effort. Typically this operation will take place using canvas or svg but I wanted to see the performance of doing it using draggable DOM elements. Works in browsers that support CSS3 transformations. Fork away my friends!
About
I built this example to show how you can leverage the DOM to create a polygon selector. Typically this operation will take place using canvas or svg but I wanted to see the performance of doing it using draggable DOM elements. Works in browsers that support CSS3 transformations.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published