renderCircleControl
renderCircleControl(
this
,ctx
,left
,top
,styleOverride
,fabricObject
):void
Defined in: src/controls/controlRendering.ts:39
Render a round 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
this
ctx
CanvasRenderingContext2D
context to render on
left
number
x coordinate where the control center should be
top
number
y coordinate where the control center should be
styleOverride
Partial
<Pick
<InteractiveFabricObject
, "cornerStyle"
| "cornerSize"
| "cornerColor"
| "cornerStrokeColor"
| "cornerDashArray"
| "transparentCorners"
>>
override for FabricObject controls style
fabricObject
the fabric object for which we are rendering controls
Returns
void