Sha256: bacbc94287937fe4c11c1ce62d12ab8cfcea0d0f85aea131964a3e1356558e0a
Contents?: true
Size: 406 Bytes
Versions: 2
Compression:
Stored size: 406 Bytes
Contents
VectorCanvas.prototype.applyTransformParams = function (scale, transX, transY) { if (this.mode === 'svg') { this.rootGroup.setAttribute('transform', 'scale(' + scale + ') translate(' + transX + ', ' + transY + ')'); } else { this.rootGroup.coordorigin = (this.width - transX) + ',' + (this.height - transY); this.rootGroup.coordsize = this.width / scale + ',' + this.height / scale; } };
Version data entries
2 entries across 2 versions & 1 rubygems