/** * Creates a new HTML canvas element. * @param {object} parent - The parent element to append the canvas to. * @param {number} width - The width of the canvas. * @param {number} height - The height of the canvas. * @param {string} id - The ID to assign to the canvas. * @param {boolean} skipPool - Whether to skip using the canvas pool. * @returns {HTMLCanvasElement} The created HTML canvas element. */ export declare const create: (parent: object | null, width: number, height: number, id: string, skipPool: boolean) => HTMLCanvasElement; /** * Sets the background color of a canvas element. * @param {HTMLCanvasElement} canvas - The canvas element to modify. * @param {string} color - The background color to set. * @returns {HTMLCanvasElement} The modified canvas element. */ export declare const setBackgroundColor: (canvas: HTMLCanvasElement, color?: string) => HTMLCanvasElement; /** * Sets the touch action property of a canvas element. * @param {HTMLCanvasElement} canvas - The canvas element to modify. * @param {string} value - The touch action value to set. * @returns {HTMLCanvasElement} The modified canvas element. */ export declare const setTouchAction: (canvas: HTMLCanvasElement, value?: string) => HTMLCanvasElement; /** * Sets the user select property of a canvas element. * @param {HTMLCanvasElement} canvas - The canvas element to modify. * @param {string} value - The user select value to set. * @returns {HTMLCanvasElement} The modified canvas element. */ export declare const setUserSelect: (canvas: HTMLCanvasElement, value?: string) => HTMLCanvasElement; /** * Adds a canvas element to the DOM. * @param {HTMLCanvasElement} canvas - The canvas element to add. * @param {object} parent - The parent element to append the canvas to. * @param {boolean} overflowHidden - Whether to set overflow hidden on the parent. * @returns {HTMLCanvasElement} The added canvas element. */ export declare const addToDOM: (canvas: HTMLCanvasElement, parent: string | HTMLElement | null, overflowHidden?: boolean) => HTMLCanvasElement; /** * Removes a canvas element from the DOM. * @param {HTMLCanvasElement} canvas - The canvas element to remove. */ export declare const removeFromDOM: (canvas: HTMLCanvasElement) => void; /** * Sets the transformation matrix on a canvas rendering context. * @param {CanvasRenderingContext2D} context - The canvas rendering context. * @param {number} translateX - The X translation value. * @param {number} translateY - The Y translation value. * @param {number} scaleX - The X scale value. * @param {number} scaleY - The Y scale value. * @param {number} skewX - The X skew value. * @param {number} skewY - The Y skew value. * @returns {CanvasRenderingContext2D} The modified rendering context. */ export declare const setTransform: (context: CanvasRenderingContext2D, translateX: number, translateY: number, scaleX: number, scaleY: number, skewX: number, skewY: number) => CanvasRenderingContext2D; /** * Gets the smoothing prefix for a canvas rendering context. * @param {CanvasRenderingContext2D} context - The canvas rendering context. * @returns {string | null} The smoothing property name or null if not found. */ export declare const getSmoothingPrefix: (context: CanvasRenderingContext2D) => string | null; /** * Writes one of the vendor-prefixed image smoothing properties, which are not on the DOM type. * @param {CanvasRenderingContext2D} context - The canvas rendering context. * @param {string} property - The smoothing property name to write. * @param {boolean} value - The smoothing value to set. */ export declare const setSmoothing: (context: CanvasRenderingContext2D, property: string, value: boolean) => void; /** * Sets the smoothing enabled property on a canvas rendering context. * @param {CanvasRenderingContext2D} context - The canvas rendering context. * @param {boolean} value - The smoothing enabled value to set. * @returns {CanvasRenderingContext2D} The modified rendering context. */ export declare const setSmoothingEnabled: (context: CanvasRenderingContext2D, value: boolean) => CanvasRenderingContext2D; //# sourceMappingURL=util.d.ts.map