diff options
author | Marvin Borner | 2018-07-13 19:06:45 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-13 19:06:45 +0200 |
commit | 6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 (patch) | |
tree | dbc87ef16fa01d5d99116de283592b8fe5e02944 /public/bower_components/jvectormap/src/vector-canvas.js | |
parent | dfd839f27146df0ad0494e11734fc7d310c70ebf (diff) |
Fixed many permissions and began admin interface
Diffstat (limited to 'public/bower_components/jvectormap/src/vector-canvas.js')
-rw-r--r-- | public/bower_components/jvectormap/src/vector-canvas.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/public/bower_components/jvectormap/src/vector-canvas.js b/public/bower_components/jvectormap/src/vector-canvas.js new file mode 100644 index 0000000..02bb391 --- /dev/null +++ b/public/bower_components/jvectormap/src/vector-canvas.js @@ -0,0 +1,18 @@ +/** + * 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; +};
\ No newline at end of file |