0.6.0 • Published 7 years ago

immutable-transform-matrix v0.6.0

Weekly downloads
66
License
MIT
Repository
github
Last release
7 years ago

Build Status Coverage Status Dependancy Status

immutable-transform-matrix

A library for creating affine transform matrix (3x3) that extend an Immutable Map.

These matrices can be used for matrix calcuations on SVG CTMs (current transform matrix).

Inspired by transformation-matrix-js

API Documentation

Install

yarn add immutable-transform-matrix

Examples

import { Matrix } from 'immutable-transform-matrix'
import { isImmutable } from 'immutable'

const m1 = new Matrix()
const m2 = m1.translate(10, 20)

isImmutable(m1) // true
m1.get('e') // 0
m2.get('e') // 10
const transform = new Matrix()
  .scale(2)
  .toString()

const ViewPort = () => <g transform={transform} />
0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago