Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. HTML5 Canvas > Canvas Limitations

6.3. Canvas Limitations

There are a few limitations to using Canvas, some of which come with the low-level territory it occupies:

  • The lack of data structure for visual elements means that you must create your own objects in JavaScript to update the positions and other attributes of nonstatic graphical items.

  • Related to the preceding point, you cannot apply events (like mouse clicks) to items drawn within Canvas, as they do not exist as tangible entities; they are just transient drawing operations. You must program such functionality.

  • You must have a good knowledge of JavaScript to fully exploit Canvas.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial