Files
game-cards-poker-design/frontend/node_modules/fabric/dist-extensions/extensions/cropping_controls/controlRendering.d.ts
Poker Design Developer 5dbcebf7a2 Fix frontend blank page issues
- Fix router import path in main.js
- Handle Django REST Framework pagination format in API calls
- Add getTemplates function to project API
- Restart frontend development server
2026-05-31 18:40:56 +08:00

22 lines
1.5 KiB
TypeScript

import { type ControlRenderingStyleOverride, type InteractiveFabricObject, type TCornerPoint, Point, type Control } from 'fabric';
/**
* Custom shouldActivate for L-shaped corner controls.
* Checks if pointer is within either arm of the L.
*/
export declare function shouldActivateCorner(this: Control, controlKey: string, fabricObject: InteractiveFabricObject, pointer: Point, corner: TCornerPoint): boolean;
/**
* Render a rounded segment control (line with round caps).
* Useful for edge resize handles.
* @param {CanvasRenderingContext2D} ctx context to render on
* @param {Number} left x coordinate where the control center should be
* @param {Number} top y coordinate where the control center should be
* @param {Object} styleOverride override for FabricObject controls style
* @param {FabricObject} fabricObject the fabric object for which we are rendering controls
*/
export declare function renderRoundedSegmentControl(this: Control, ctx: CanvasRenderingContext2D, left: number, top: number, styleOverride: ControlRenderingStyleOverride, fabricObject: InteractiveFabricObject): void;
/**
* Render an L-shaped corner control using two rounded segments.
* Matches the style of renderRoundedSegmentControl.
*/
export declare function renderCornerControl(this: Control, ctx: CanvasRenderingContext2D, left: number, top: number, styleOverride: ControlRenderingStyleOverride, fabricObject: InteractiveFabricObject): void;
//# sourceMappingURL=controlRendering.d.ts.map