ImageElement.d.ts 695 B

12345678910111213141516
  1. import { RenderingContext2D } from '../types';
  2. import BoundingBox from '../BoundingBox';
  3. import Document from './Document';
  4. import RenderedElement from './RenderedElement';
  5. export default class ImageElement extends RenderedElement {
  6. type: string;
  7. loaded: boolean;
  8. protected readonly isSvg: boolean;
  9. protected image: CanvasImageSource | string;
  10. constructor(document: Document, node: HTMLElement, captureTextNodes?: boolean);
  11. protected loadImage(href: string): Promise<void>;
  12. protected loadSvg(href: string): Promise<void>;
  13. renderChildren(ctx: RenderingContext2D): void;
  14. getBoundingBox(): BoundingBox;
  15. }
  16. //# sourceMappingURL=ImageElement.d.ts.map