e-virt-table
Version:
A powerful data table based on canvas. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
16 lines (15 loc) • 368 B
TypeScript
import Context from "./Context";
export interface IconType {
name: string;
svg: string;
color: string;
}
export default class Icons {
private ctx;
private list;
icons: Map<string, HTMLImageElement>;
constructor(ctx: Context);
init(): Promise<void>;
private createImageFromSVG;
get(name: string): HTMLImageElement | undefined;
}