The Path2D.addPath() method of the Canvas 2D API adds one Path2D object to another Path2D object.
Optionaltransform: DOMMatrix2DInitOptionalcounterclockwise: booleanOptionalradii: number | DOMPointInit | (number | DOMPointInit)[]Optionalradii: number | DOMPointInit | Iterable<number | DOMPointInit, any, any>
The
Path2Dinterface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.MDN Reference