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

PHP5 RAD and object oriented PHP framework for building event-driven stateful web applications.

developer Developer: crealabsfoundation.org
license License: Affero General Public License
operating systems Operating System: OS Independent


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


HTML code of this Drop-Down Menu is very simple and without tables.

developer Developer: Konstantin Yagello
license License: Freeware
operating systems Operating System: All


Super AJAX Programming Seed is a tight little program that illustrates a simple implementation of AJAX technology using HTML and PHP, and offers suggestions for how to use the technology to make super-dynamic web applications from scratch.

developer Developer: Implied By Design LLC.
license License: Freeware
operating systems Operating System: Linux / Windows


Html Encoder script will help you to encode your html tags.

developer Developer: savitha
license License: GNU General Public License (GPL)
operating systems Operating System: Not Available


Easily create, build and generate forms that send emails with an online form wizard interface.

developer Developer: Alex Marias
license License: GNU General Public License (GPL)
operating systems Operating System: Win


Webmatic its a free GNU/GPL php5 script that help you to create a complex website.

developer Developer: Valarsoft
license License: GNU General Public License (GPL)
operating systems Operating System: linux, windows, MacOS


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