docx
    Preparing search index...

    Type Alias GraphicMediaData

    Any DrawingML graphic, such as a shape, group or drawing canvas, written into a Drawing as it is given.

    The drawing writes the parts every drawing has: its size and position (wp:inline or wp:anchor), its id and alternative text (wp:docPr) and a:graphic. content is written inside a:graphicData, and uri says what kind of graphic it is. This is how docx/shapes writes its shapes.

    new Drawing({
    type: "graphic",
    uri: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape",
    transformation: createTransformation({ width: 100, height: 50 }),
    content: new BuilderElement({ name: "wps:wsp", children: [...] }),
    });
    type GraphicMediaData = {
        content: XmlComponent;
        lockAspectRatio?: boolean;
        transformation: IMediaDataTransformation;
        type: "graphic";
        uri: string;
    }
    Index
    content: XmlComponent

    The graphic, written inside a:graphicData

    lockAspectRatio?: boolean

    Whether Word keeps the graphic's aspect ratio when it is resized (noChangeAspect). Default is true. Charts are written with false, as Word writes them

    transformation: IMediaDataTransformation
    type: "graphic"
    uri: string

    What kind of graphic content is: the uri attribute of a:graphicData