| 12345678910111213141516171819202122232425 |
- import type { DisplayObjectConfig } from '../dom';
- import type { BaseStyleProps } from '../types';
- import { DisplayObject } from './DisplayObject';
- export interface BaseCustomElementStyleProps extends BaseStyleProps {
- x?: number | string;
- y?: number | string;
- }
- /**
- * shadow root
- * @see https://yuque.antfin-inc.com/antv/czqvg5/pgqipg
- */
- export declare abstract class CustomElement<CustomElementStyleProps> extends DisplayObject<CustomElementStyleProps & BaseCustomElementStyleProps> {
- isCustomElement: boolean;
- constructor({ style, ...rest }?: DisplayObjectConfig<CustomElementStyleProps>);
- /**
- * fired after element insert into DOM tree
- */
- connectedCallback?(): void;
- /**
- * fired before element removed from DOM tree
- */
- disconnectedCallback?(): void;
- attributeChangedCallback?<Key extends keyof CustomElementStyleProps>(name: Key, oldValue: CustomElementStyleProps[Key], newValue: CustomElementStyleProps[Key], oldParsedValue?: any, newParsedValue?: any): void;
- }
- //# sourceMappingURL=CustomElement.d.ts.map
|