transform-matrix

0.0.4 • Public • Published

TransformMatrix

ES6 Matrix for transform attribute manipulation

Install

npm install transform-matrix

Usage

As it's an implementation of the 2D Affine Transformation Matrix. Most of usage can be read here.

deserialize / serialize

import Matrix from 'transform-matrix';
 
let matrix = Matrix.deserialize('matrix(1,0,0,1,0,0)');
 
matrix = matrix.translate(88, 99);
 
console.log(matrix.serialize()); // matrix(1,0,0,1,88,99)

Readme

Keywords

none

Package Sidebar

Install

npm i transform-matrix

Weekly Downloads

3

Version

0.0.4

License

ISC

Last publish

Collaborators

  • dawee