renderSquareControl
renderSquareControl(
this
,ctx
,left
,top
,styleOverride
,fabricObject
):void
Defined in: src/controls/controlRendering.ts:98
Render a square control, as per fabric features. This function is written to respect object properties like transparentCorners, cornerSize cornerColor, cornerStrokeColor plus the addition of offsetY and offsetX.
Parameters
Section titled “Parameters”CanvasRenderingContext2D
context to render on
number
x coordinate where the control center should be
number
y coordinate where the control center should be
styleOverride
Section titled “styleOverride”Partial
override for FabricObject controls style
fabricObject
Section titled “fabricObject”the fabric object for which we are rendering controls
Returns
Section titled “Returns”void