aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/bower_components/jvectormap/src/vector-canvas.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/bower_components/jvectormap/src/vector-canvas.js')
-rw-r--r--public/bower_components/jvectormap/src/vector-canvas.js18
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