tags:

views:

15

answers:

1

HI, How to add a point to Cavans of SmarGwt. The point of CSS is described as follows:

.point {
    position: absolute;
    background-color: #000000;
    border: 0px none transparent;
    width: 1px;
    height: 1px;
    font-size: 1px;
    line-height: 0;
}

thanks

A: 

If this is the HTML5 canvas, you use some kind of API to draw a point rather than add to the HTML DOM. You should look at the API docs.

Anon
This isn't the HTML5 canvas, this is the class Canvas in SmartGWT. I didn't find a method to add a element for the style of the above in API docs.
gnepud