PHP Classes

File: vendors/gentelella/vendors/jqvmap/src/VectorCanvas/applyTransformParams.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/jqvmap/src/VectorCanvas/applyTransformParams.js   Download  
File: vendors/gentelella/vendors/jqvmap/src/VectorCanvas/applyTransformParams.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 406 bytes
 

Contents

Class file image Download
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; } };