This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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 Lysenko
Ranch Hand

Joined: Mar 29, 2012
Posts: 511
    
    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: 15385
    
    6
Find a good reference, I use Notepad++ without and code completion.

Eric
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JavaScript library for drawing on canvas(HTML5)
 
It's not a secret anymore!