gui.d.ts 946 B

123456789101112131415161718
  1. import { CustomElement, Group } from '../shapes';
  2. import type { GenericAnimation, AnimationResult } from '../animation';
  3. import type { ComponentOptions } from './types';
  4. export declare abstract class GUI<T extends Record<string, any>> extends CustomElement<Required<T>> {
  5. protected _defaultOptions: Partial<T>;
  6. private _offscreen;
  7. protected get offscreenGroup(): Group;
  8. initialized: boolean;
  9. get defaultOptions(): Partial<T>;
  10. constructor(options: ComponentOptions<Partial<T>>, defaultStyleProps?: Partial<T>);
  11. connectedCallback(): void;
  12. disconnectedCallback(): void;
  13. attributeChangedCallback<Key extends keyof T>(name: Key): void;
  14. update(attr?: Partial<T>, animate?: GenericAnimation): void | AnimationResult[];
  15. clear(): void;
  16. abstract render(attributes: Required<T>, container: Group, animate?: GenericAnimation): void | AnimationResult[];
  17. bindEvents(attributes: T, container: Group): void;
  18. }