first mockup in go

This commit is contained in:
2019-08-18 23:21:16 +02:00
parent 9ce235274f
commit 969ae63d02
5638 changed files with 579400 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
/**
* Class for vector images manipulations.
* @constructor
* @param {DOMElement} container to place canvas to
* @param {Number} width
* @param {Number} height
*/
jvm.VectorCanvas = function(container, width, height) {
this.mode = window.SVGAngle ? 'svg' : 'vml';
if (this.mode == 'svg') {
this.impl = new jvm.SVGCanvasElement(container, width, height);
} else {
this.impl = new jvm.VMLCanvasElement(container, width, height);
}
return this.impl;
};