renderCircleControl
renderCircleControl(
this,ctx,left,top,styleOverride,fabricObject):void
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: Control
• 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<Partial<FabricObjectProps>, SerializedObjectProps, ObjectEvents>, "cornerStyle" | "cornerSize" | "cornerColor" | "cornerStrokeColor" | "cornerDashArray" | "transparentCorners">>
override for FabricObject controls style
• fabricObject: InteractiveFabricObject<Partial<FabricObjectProps>, SerializedObjectProps, ObjectEvents>
the fabric object for which we are rendering controls
Returns
void