aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes JavaScript library for drawing on canvas(HTML5) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JavaScript library for drawing on canvas(HTML5)" Watch "JavaScript library for drawing on canvas(HTML5)" New topic
Author

JavaScript library for drawing on canvas(HTML5)

Volodymyr Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 505
    
    1

Hello!

I am working on eclipse and have small annoying problem when I form script
I type:

var context=document.getElementById("canvas").getContext('2d');

After "document+." I have code completion because Document class and getElementById() method are included in my classpath under "ECMA 3 Browser Support" node.
But when I type dot(.) after document.getElementById("canvas") I don't have any suggestions in code-completion.

If I type "context." to invoke methods to draw I don't have any suggestions as well.
IF I want to use methods of Math I also don't see code-completion after Math.

Don't you know what I have to include in my classpath or html page to have all methods to draw on canvas in code-completion.


True person is moral, false is right!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Find a good reference, I use Notepad++ without and code completion.

Eric
 
Consider Paul's rocket mass heater.
 
subject: JavaScript library for drawing on canvas(HTML5)