Sha256: 95e91045389f4cd089d8e8a465bf2c91b3a218fcf5bb13de1fb14089dead8037
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
var VectorCanvas = function (width, height, params) { this.mode = window.SVGAngle ? 'svg' : 'vml'; this.params = params; if (this.mode === 'svg') { this.createSvgNode = function (nodeName) { return document.createElementNS(this.svgns, nodeName); }; } else { try { if (!document.namespaces.rvml) { document.namespaces.add('rvml', 'urn:schemas-microsoft-com:vml'); } this.createVmlNode = function (tagName) { return document.createElement('<rvml:' + tagName + ' class="rvml">'); }; } catch (e) { this.createVmlNode = function (tagName) { return document.createElement('<' + tagName + ' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'); }; } document.createStyleSheet().addRule('.rvml', 'behavior:url(#default#VML)'); } if (this.mode === 'svg') { this.canvas = this.createSvgNode('svg'); } else { this.canvas = this.createVmlNode('group'); this.canvas.style.position = 'absolute'; } this.setSize(width, height); }; VectorCanvas.prototype = { svgns: 'http://www.w3.org/2000/svg', mode: 'svg', width: 0, height: 0, canvas: null };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_modular_admin-1.0.0 | app/assets/node_modules/jqvmap/src/VectorCanvas.js |
rails_modular_admin-0.4.0 | app/assets/node_modules/jqvmap/src/VectorCanvas.js |