UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

12 lines (11 loc) 604 B
import type { BaseXMLUIParser } from './BaseXMLUIParser.js'; import type { XMLUIParserContext } from './XMLUIParserContext.js'; /** * A function that does something with an attribute that belongs to a specific * namespace. Could be used to add extra functionality to the parser, such as * adding attributes that change a widget's options object, or add event * listeners after the widget is instantiated. * * @category XML */ export type XMLAttributeNamespaceHandler = (parser: BaseXMLUIParser, context: XMLUIParserContext, instantiationContext: Record<string, unknown>, attribute: Attr) => void;