@alegendstale/holly-components
Version:
Reusable UI components created using lit
19 lines • 786 B
TypeScript
import { LitElement, PropertyValues } from 'lit';
/**
* Utility component to help with creating canvases.
*
* @event hc-move - Fired when the pointer moves on the canvas.
* @event hc-select-hex - Fired when a point on the canvas has been selected.
*/
export declare class CanvasBase extends LitElement {
static styles: import("lit").CSSResult[];
/** The canvas element. */
protected canvas: HTMLCanvasElement;
/** The canvas context. */
protected context: CanvasRenderingContext2D;
protected firstUpdated(_changedProperties: PropertyValues): void;
render(): import("lit-html").TemplateResult<1>;
/** Retrieves the hex from the mouse position. */
getCanvasHex(clientX: number, clientY: number): string;
}
//# sourceMappingURL=canvas-base.d.ts.map