@samatawy/diagrams
    Preparing search index...

    Type Alias ImageAlign

    ImageAlign:
        | "center"
        | "top"
        | "bottom"
        | "left"
        | "right"
        | "top-left"
        | "top-right"
        | "bottom-left"
        | "bottom-right"

    ImageAlign defines the possible alignments for images within nodes. The options are:

    • 'center': The image is centered within the node.
    • 'top': The image is aligned to the top edge of the node.
    • 'bottom': The image is aligned to the bottom edge of the node.
    • 'left': The image is aligned to the left edge of the node.
    • 'right': The image is aligned to the right edge of the node.
    • 'top-left': The image is aligned to the top-left corner of the node.
    • 'top-right': The image is aligned to the top-right corner of the node.
    • 'bottom-left': The image is aligned to the bottom-left corner of the node.
    • 'bottom-right': The image is aligned to the bottom-right corner of the node. This property allows for flexible positioning of images within nodes, enabling both decorative and functional use of images in diagrams.