forked from OpenPDU/openpdu
first mockup in go
This commit is contained in:
16
static/bower_components/jvectormap/lib/vector-canvas.js
vendored
Normal file
16
static/bower_components/jvectormap/lib/vector-canvas.js
vendored
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user