Image.d.ts 920 B

123456789101112131415161718192021222324252627
  1. import type { DisplayObjectConfig } from '../dom';
  2. import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
  3. import { DisplayObject } from './DisplayObject';
  4. export interface ImageStyleProps extends BaseStyleProps {
  5. x?: number | string;
  6. y?: number | string;
  7. z?: number;
  8. img?: string | HTMLImageElement;
  9. src?: string | HTMLImageElement;
  10. width?: number | string;
  11. height?: number | string;
  12. isBillboard?: boolean;
  13. }
  14. export interface ParsedImageStyleProps extends ParsedBaseStyleProps {
  15. x: number;
  16. y: number;
  17. z?: number;
  18. img?: string | HTMLImageElement;
  19. src?: string | HTMLImageElement;
  20. width?: number;
  21. height?: number;
  22. isBillboard?: boolean;
  23. }
  24. export declare class Image extends DisplayObject<ImageStyleProps, ParsedImageStyleProps> {
  25. constructor({ style, ...rest }?: DisplayObjectConfig<ImageStyleProps>);
  26. }
  27. //# sourceMappingURL=Image.d.ts.map