Skip to content

Instantly share code, notes, and snippets.

@ponychicken
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save ponychicken/e5589db1d04e15277789 to your computer and use it in GitHub Desktop.

Select an option

Save ponychicken/e5589db1d04e15277789 to your computer and use it in GitHub Desktop.

Revisions

  1. ponychicken revised this gist Jun 24, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -432,10 +432,12 @@

    switch (key) {
    case 'transform':

    if (value === 'none') break;
    var m = node.getCTM();
    if (m === null) break;
    var matrix = new Two.Matrix(m.a, m.b, m.c, m.d, m.e, m.f);


    // Option 1: edit the underlying matrix and don't force an auto calc.
    // var m = node.getCTM();
    // elem._matrix.manual = true;
  2. ponychicken created this gist Jun 24, 2014.
    5,015 changes: 5,015 additions & 0 deletions gistfile1.js
    5,015 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.