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

Version Path
rails_modular_admin-1.0.0 app/assets/node_modules/jqvmap/src/VectorCanvas/applyTransformParams.js
rails_modular_admin-0.4.0 app/assets/node_modules/jqvmap/src/VectorCanvas/applyTransformParams.js