ts-graphviz
    Preparing search index...

    Interface AttributeListModel<K, T>

    A list object of attributes commonly specified for nodes, subgraphs, and edges under graph and subgraph.

    interface AttributeListModel<
        K extends AttributeListKind = AttributeListKind,
        T extends AttributeKey = AttributeKey,
    > {
        $$kind: K;
        $$type: "AttributeList";
        comment?: string;
        size: number;
        values: readonly [T, Attribute<T>][];
        apply(attributes: AttributesObject<T> | AttributesEntities<T>): void;
        clear(): void;
        delete(key: T): void;
        get<K extends AttributeKey>(key: K): undefined | Attribute<K>;
        set<K extends AttributeKey>(key: K, value: Attribute<K>): void;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    $$kind: K
    $$type: "AttributeList"

    The type of the DotObjectType.

    comment?: string

    Comments to include when outputting with toDot.

    size: number

    Size of the set of keys and values held by the DOT object.

    values: readonly [T, Attribute<T>][]

    The key/value tuples of the object attributes.

    Methods

    • Delete the value of an attribute from a DOT object by specifying a key.

      Parameters

      • key: T

      Returns void