Skip to main content
Module

x/graphviz/mod.ts>attribute.labelloc

🦕 Simple Graphviz library for Deno.
Latest
variable attribute.labelloc
import { attribute } from "https://deno.land/x/graphviz@v0.2.1/mod.ts";
const { labelloc } = attribute;

Vertical placement of labels for nodes, root graphs and clusters.

For graphs and clusters, only "t" and "b" are allowed, corresponding to placement at the top and bottom, respectively. By default, root graph labels go on the bottom and cluster labels go on the top. Note that a subgraph inherits attributes from its parent. Thus, if the root graph sets labelloc to "b", the subgraph inherits this value.

For nodes, this attribute is used only when the height of the node is larger than the height of its label. If labelloc is set to "t", "c", or "b", the label is aligned with the top, centered, or aligned with the bottom of the node, respectively. In the default case, the label is vertically centered.

type

"labelloc"