import { Image } from "https://deno.land/x/docxml@5.15.3/mod.ts";
A component that represents an image in your DOCX document. You can create a new image by
passing any promise to an Uint8Array
into the data
prop, eg. get it from your file system
or from a web request.
Constructors
new
Image(props: ImageProps, ...children: ImageChild[])Methods
ensureRelationship(relationships: RelationshipsXml)
An event hook with which this component can ensure that the correct relationship type is recorded to the relationship XML.
toNode(_ancestry: ComponentAncestor[]): Node
Creates an XML DOM node for this component instance.
Static Methods
Instantiate this component from the XML in an existing DOCX file.
matchesNode(node: Node): boolean
Asserts whether or not a given XML node correlates with this component.