ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
20 lines (19 loc) • 601 B
TypeScript
import { RanElement } from '@/utils/index';
declare class ScratchTicket extends RanElement {
scratchTicketContainer: HTMLDivElement;
scratchTicket: HTMLCanvasElement;
state: {
touchStart: boolean;
scratchArea: number;
};
scratchAward: HTMLDivElement;
_shadowDom: ShadowRoot;
static get observedAttributes(): string[];
constructor();
touchStartScratch: (e: TouchEvent) => void;
touchMoveScratch: () => void;
touchEndScratch: () => void;
drawScratchTicket: () => void;
attributeChangedCallback(): void;
}
export default ScratchTicket;