You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.1 KiB

4 months ago
/**
* <zh/>
*
* <en/> Create a plugin container
* @param type - <zh/> | <en/> plugin type
* @param cover - <zh/> | <en/> Whether the container covers the entire canvas
* @param style - <zh/> | <en/> Additional style
* @returns <zh/> | <en/> plugin container
*/
export declare function createPluginContainer(type: string, cover?: boolean, style?: Partial<CSSStyleDeclaration>): HTMLElement;
/**
* <zh/> DOM
*
* <en/> Create a DOM element, if exists, remove it and create a new one.
* @param id - <zh/> id | <en/> id
* @param tag - <zh/> | <en/> tag
* @param style - <zh/> | <en/> style
* @param innerHTML - <zh/> | <en/> innerHTML
* @param container - <zh/> | <en/> container
* @returns <zh/> DOM | <en/> created DOM element
*/
export declare function insertDOM(id: string, tag?: string, style?: Partial<CSSStyleDeclaration>, innerHTML?: string, container?: HTMLElement): HTMLElement;