@sutton-signwriting/sgnw-components
Version:
a javascript package of web components for use with the SignWriting script.
36 lines (35 loc) • 914 B
TypeScript
export declare class SgnwPalette {
el: HTMLElement;
/** orientation of palette */
orientation: "horizontal" | "vertical";
major: number;
minor: number;
total: number;
/** size of palette */
size: "small" | "medium" | "large";
parseSizeProp(newValue: string): void;
/** set of symbols */
alphabet: object | string;
/** top level symbol selection */
group: string;
watchGroup(): void;
/** mid level symbol selection */
base: string;
watchBase(): void;
/** flag for small palette */
more: boolean;
watchMore(): void;
hasMore: boolean;
/** flag for small and medium palette */
lower: boolean;
watchLower(): void;
hasLower: boolean;
palette: string[];
getPaletteAll(): string[];
getPaletteGroup(): any;
getPaletteBase(): any[];
setPalette(): void;
paletteSymbolClickHandler(event: CustomEvent<string>): void;
componentWillLoad(): void;
render(): any;
}