UNPKG

jvectormap

Version:

jQuery plugin for embedding vector maps with reach API and methods for data visualization to the web-pages.

18 lines (17 loc) 504 B
/** * 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); } this.impl.mode = this.mode; return this.impl; };