Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Releases: nstdio/SVGMagick

v0.4.2

13 Jul 19:57
Compare
Choose a tag to compare
Fix multiple calls to moveTo in Path class.

Bugfix.

13 Jul 17:43
Compare
Choose a tag to compare
v0.4.1

Fix license name.

Enhanced SVG Transform API.

06 May 17:59
Compare
Choose a tag to compare

Revised basic principles for constructing a transformation string. Now instead of changing the existing transformation, a new transformation is added to the string.

// Before
$transform->translate(10)
    ->rotate(12.5)
    ->translate(-5)); // will produce "translate(-5) rotate(12.5)"

// NOW
$transform->translate(10)
    ->rotate(12.5)
    ->translate(-5)); // now result is "translate(10) rotate(12.5) translate(-5)"

A new method is added that summarizes successive transformations.

$transform
    ->translate(10, 25)
    ->translate(10, 10)
    ->rotate(5, 10, 10)
    ->rotate(10, 20, 20)
    ->compact(); // "translate(20 35) rotate(15 15 15)"

Added a new method that converts all transformations into matrices

$transform
    ->translate(10, 45)
    ->rotate(10, 55, 10)
    ->skewX(20)
    ->skewY(10)
    ->toMatrix(); // "matrix(1 0 0 1 10 45) matrix(0.98480775301221 0.17364817766693 -0.17364817766693 0.98480775301221 0 0) matrix(1 0 0.3639702342662 1 0 0) matrix(1 0.17632698070846 0 1 0 0)"

// If you need a more compact string, you can do so

$transform->compact(); // "matrix(1.017391662044 0.35844070857103 0.1847925309041 1.0480105209175 10 45)"

// As you can see, all the matrices are multiplied and as a result
// one single matrix is ​​obtained that reproduces all the necessary transformations.

SVG string import.

01 Sep 00:54
Compare
Choose a tag to compare
v0.3.0

Improve documentation.

Object copy mechanism

26 Aug 15:39
Compare
Choose a tag to compare
Object copy mechanism Pre-release
Pre-release
v0.2.3

Adding new method to API.

New SVG Transform API.

26 Aug 12:13
Compare
Choose a tag to compare
Pre-release
v0.2.2

Remove unused $matcher property.

Transform API

25 Aug 22:46
Compare
Choose a tag to compare
Transform API Pre-release
Pre-release

Adding new API for SVG transform attribute.

v0.2.0

07 Aug 21:52
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release
Remove not implemented method to pass the test.

Adding method to API.

06 Aug 17:20
Compare
Choose a tag to compare
Adding method to API. Pre-release
Pre-release
v0.1-alpha.2

Adding getFirstChild method.

v0.1-alpha.1

06 Aug 17:15
Compare
Choose a tag to compare
v0.1-alpha.1 Pre-release
Pre-release
Save child refs.