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.

40 lines
1.2 KiB

4 months ago
import type { RuntimeContext } from '../../runtime/types';
import type { BasePluginOptions } from '../base-plugin';
import { BasePlugin } from '../base-plugin';
/**
* <zh/>
*
* <en/> Background options
*/
export interface BackgroundOptions extends BasePluginOptions, CSSStyleDeclaration {
}
/**
* <zh/>
*
* <en/> Background image
* @remarks
* <zh/>
*
* <en/> Support setting a background image for the canvas to make the canvas more hierarchical and narrative.
*/
export declare class Background extends BasePlugin<BackgroundOptions> {
static defaultOptions: Partial<BackgroundOptions>;
private $element;
constructor(context: RuntimeContext, options: BackgroundOptions);
/**
* <zh/>
*
* <en/> Update the background image configuration
* @param options - <zh/> | <en/> Options
* @internal
*/
update(options: Partial<BackgroundOptions>): Promise<void>;
/**
* <zh/>
*
* <en/> Destroy the background image
* @internal
*/
destroy(): void;
}