1 Reply Latest reply on May 9, 2013 8:25 AM by CarlosCanto

    (javascript) flap(mirror) pathitem base on coordinate

    dolphin42501

      I create a pathitem and went to mirror base on coordinate.

      by the way, how to close the open path ?

       

      code:

      var mypath = activeLayer.pathItems.add()

      mypath.setEntirePath([[0, 0],[100,0],[100, 100]);    <---here, how to close this triangle

       

      goal:

      I went to mirror the mypath base on [200,0]

       

      result:

      now i spelt two step --

      first - mirror use Matrix(-100,100) or Matrix(100,-100)

      sceond - move use translate()

       

      of course, i can create a function

      but i think have a bulit-in method to arrival this goal

       

      anybody to instruct, thx~~