working on images
This commit is contained in:
parent
62bee7804c
commit
9758b0dcb1
|
@ -213,7 +213,7 @@ ToDraw.prototype.toRawHandler = function(MACHINE, toplevelNode) {
|
||||||
reusableCanvas.height = height;
|
reusableCanvas.height = height;
|
||||||
var ctx = reusableCanvas.getContext("2d");
|
var ctx = reusableCanvas.getContext("2d");
|
||||||
v.render(ctx, 0, 0);
|
v.render(ctx, 0, 0);
|
||||||
success([toplevelNode, rawJsworld.node_to_tree(reusableCanvasNode)]);
|
success([toplevelNode, reusableCanvasNode]);
|
||||||
} else {
|
} else {
|
||||||
success([toplevelNode, rawJsworld.node_to_tree(plt.baselib.format.toDomNode(v))]);
|
success([toplevelNode, rawJsworld.node_to_tree(plt.baselib.format.toDomNode(v))]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user