Skip to content

transformPath

transformPath(path, transform, pathOffset?): TSimplePathData

Defined in: src/util/path/index.ts:966

Transform a path by transforming each segment. it has to be a simplified path or it won’t work. WARNING: this depends from pathOffset for correct operation

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