目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Element.transform(tstr)

优质
小牛编辑
139浏览
2023-12-01

Gets or sets transformation of the element

Parameters

  1. tstrstringtransform string in Snap or SVG format

Returns: Element the current element

or

Returns: object transformation descriptor:

  1. {
    1. string stringtransform string,
    2. globalMatrix Matrixmatrix of all transformations applied to element or its parents,
    3. localMatrix Matrixmatrix of transformations applied only to the element,
    4. diffMatrix Matrixmatrix of difference between global and local transformations,
    5. global stringglobal transformation as string,
    6. local stringlocal transformation as string,
    7. toString functionreturns string property
  2. }