sanjeev-rajput commented on issue #1264:
URL: https://github.com/apache/royale-asjs/issues/1264#issuecomment-3073134419
I figured it out - closiing
```
AsJsUtil.as
public static function createCanvas():HTMLElement{
COMPILE::JS
{
var el:* = document.createElement("canvas");
return el;
}
}
```
usage
```
private function addCanvas():void {
_chartCanvas =
this.element.appendChild(AsJsUtil.createCanvas());
_chartCanvas.height = 200;
_chartCanvas.width = 300;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]