Sha256: 5033add224a4d616d7c23ff99b68c7914f7668629529cd8cc3eaca2b4b2148e0
Contents?: true
Size: 880 Bytes
Versions: 2
Compression:
Stored size: 880 Bytes
Contents
VectorCanvas.prototype.setSize = function (width, height) { if (this.mode === 'svg') { this.canvas.setAttribute('width', width); this.canvas.setAttribute('height', height); } else { this.canvas.style.width = width + 'px'; this.canvas.style.height = height + 'px'; this.canvas.coordsize = width + ' ' + height; this.canvas.coordorigin = '0 0'; if (this.rootGroup) { var paths = this.rootGroup.getElementsByTagName('shape'); for (var i = 0, l = paths.length; i < l; i++) { paths[i].coordsize = width + ' ' + height; paths[i].style.width = width + 'px'; paths[i].style.height = height + 'px'; } this.rootGroup.coordsize = width + ' ' + height; this.rootGroup.style.width = width + 'px'; this.rootGroup.style.height = height + 'px'; } } this.width = width; this.height = height; };
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/setSize.js |
rails_modular_admin-0.4.0 | app/assets/node_modules/jqvmap/src/VectorCanvas/setSize.js |