todo/public/vendor/jvectormap/lib/vector-canvas.js
Supan Adit Pratama 35d8715ab4 first commit
2020-06-23 11:40:37 +07:00

16 lines
473 B
JavaScript
Executable File
Vendored

/**
* 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;
};