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;
}
};
|