Canvas Events

Category: JavaScript - Miscellaneous




Canvas Events class extends canvas object to help to attach mouse events to different shapes with minimal javascript code modifications

It supports all native canvas context methods. The way it works: canvas context methods that perform actual drawing (stroke, fill, strokeRect, fillRect, drawImage) return a shape object to which you can attach events

Currently it supports click, dblclick, mouseover, mouseout, mousemove, mouseup and mousedown events.

Package contains canvas_events.js and canvas_events.packed.js (packed javascript) and seven example files:
* simple_shape_example.html for simple rectangle example
* transformed_shape_example.html for transformed rectangle example
* complex_shape_example.html for path example
* images_example.html for image example
* arc_example.html for arc/circle example
* multiple_shapes_example.html for example with multiple shapes
* drag_and_drop_example.html.html for drag and drop example Date: 26 September, 2011

Editor Rating: 5 Rating of Canvas Events

Html - Canvas - Drag Drop - Events - Drop - Images - Register - Graphics

Homepage: http://webcodingeasy.com/JS-classes/Emulate-events-on-canvas-objects

Developer: Arturs Sosins

License: BSD License

Operating System: Not Available

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

WebHelper helps you quickly create static webpages to display your digital JPEG pictures.

developer Developer: Andrew R. Freed
license License: BSD License
operating systems Operating System: All


Tigra Form Validator is free JavaScript component performing client side form validation.

developer Developer: Softcomplex Inc.
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


Tigra Tree Menu is a multi-platform compatible free JavaScript DHTML navigation system for the web sites and web applications.

developer Developer: Softcomplex
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


Tigra Scroller is free JavaScript widget for web sites that scrolls text or html in the box.

developer Developer: Softcomplex
license License: Freeware
operating systems Operating System: Windows 95/98/ME/2000/XP, Mac OS 8/9/X, KDE on Linux/FreeBSD


Learn HTML by Example v.

developer Developer: Chris S.
license License: Freeware
operating systems Operating System: Windows / Linux / Unix


Bluefish is a programmer's HTML editor written using GTK, designed to save the experienced webmaster some keystrokes.

developer Developer: Olivier Sessink
license License: GNU General Public License (GPL)
operating systems Operating System: POSIX compatible operating systems including Linux, FreeBSD, MacOS-X, OpenBSD, Solaris and Tru64.


BINS is a valid HTML 4.

developer Developer: Jerome Sautret
license License: GNU General Public License (GPL)
operating systems Operating System: All POSIX (Linux/BSD/UNIX-like OSes), Linux, OS X


NiX proxy script is a free-to-use, one of the most advanced web-based proxy scripts out there written in PHP which uses MySql database.

developer Developer: Tapio Niemela
license License: Freeware
operating systems Operating System: Win7 x32,Win7 x64,WinServer,WinVista,WinVista x64


Pop under class allows you to implement pop under advertising to your website.

developer Developer: Arturs Sosins
license License: BSD License
operating systems Operating System: Not Available