@@ -286,6 +286,17 @@ var Element = function() {
289+ var jsElement = function(w) { return function(h) { return function(elem) {
290+ var e = newElement('div');
292+ e.style.width = w + "px";
293+ e.style.height = h + "px";
289 return {text : text,
300 return {text : text,
290 image : image,
301 image : image,
291 fittedImage : fittedImage,
302 fittedImage : fittedImage,
@@ -322,7 +333,8 @@ var Element = function() {
322 right : 4,
333 right : 4,
323 outward : 5,
334 outward : 5,
325− correctTextSize : correctTextSize
336+ correctTextSize : correctTextSize,
337+ jsElement : jsElement