Element.transform(tstr)
优质
小牛编辑
134浏览
2023-12-01
Gets or sets transformation of the element
Parameters
- tstrstringtransform string in Snap or SVG format
Returns: Element the current element
or
Returns: object transformation descriptor:
- {
- string stringtransform string,
- globalMatrix Matrixmatrix of all transformations applied to element or its parents,
- localMatrix Matrixmatrix of transformations applied only to the element,
- diffMatrix Matrixmatrix of difference between global and local transformations,
- global stringglobal transformation as string,
- local stringlocal transformation as string,
- toString functionreturns
string
property
- }