Library globals

Function globals . canvas . api . path . Path . rect

View source

Add a (rounded) rectangle to the path

@param x    Position of left border
@param y    Position of top border
@param w    Width
@param h    Height
@param cfg  Optional settings (eg. {"border-top-radius": 5})

Parameters

x

y

w

h

cfg
optional