@lichess-org/chessground
Version:
lichess.org chess ui
10 lines (9 loc) • 389 B
TypeScript
import { State } from './state.js';
import * as cg from './types.js';
export { createElement, setAttributes };
export declare function createDefs(): Element;
export declare function renderSvg(state: State, els: cg.Elements): void;
declare const createElement: (tagName: string) => SVGElement;
declare function setAttributes(el: SVGElement, attrs: {
[key: string]: any;
}): SVGElement;