UNPKG

@helptheweb/helper

Version:

The official accessibility helper widget from helptheweb.org, adding features like font size adjustment, contrast modes, and more.

26 lines (24 loc) 716 B
interface HelperOptions { defaultFontSize?: number; buttonColor?: string; } declare class Helper { private readonly fontSizeDefault; private fontSizeCurrent; private readonly buttonColor; private settings; private styleElement; private fontSizeMultiplier; private helperContainer; constructor(options?: HelperOptions); private initializeFontSizeObserver; private updateAllTextElements; increaseFontSize: () => void; decreaseFontSize: () => void; resetFontSize: () => void; resetAll: () => void; toggleSetting: (setting: keyof typeof this.settings) => void; private applySettings; private createUI; } export { Helper, type HelperOptions };