跳转到内容

transformPath

transformPath(path, transform, pathOffset?): TSimplePathData

Parameters

path: TSimplePathData

fabricJS parsed and simplified path commands

transform: TMat2D

matrix that represent the transformation

pathOffset?: Point

Path.pathOffset

Returns

TSimplePathData

the transformed path

Defined in

src/util/path/index.ts:966