Const
OriginProjection for Path poses. The "origin" is the top-left of the path's AABB; translate shifts every coord by the requested delta. Pair with gridSnapStrategy to grid-snap a Path's bounds top-left:
OriginProjection
Path
translate
gridSnapStrategy
gridSnapStrategy<Path>(20, { origin: pathOriginProjection })
OriginProjectionforPathposes. The "origin" is the top-left of the path's AABB;translateshifts every coord by the requested delta. Pair withgridSnapStrategyto grid-snap a Path's bounds top-left: