Skip to main content
Module

x/graphviz/mod.ts>attribute.margin

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

For graphs, this sets x and y margins of canvas, in inches. If the margin is a single double, both margins are set equal to the given value.

Note that the margin is not part of the drawing but just empty space left around the drawing. It basically corresponds to a translation of drawing, as would be necessary to center a drawing on a page. Nothing is actually drawn in the margin. To actually extend the background of a drawing, see the pad attribute.

For clusters, this specifies the space between the nodes in the cluster and the cluster bounding box. By default, this is 8 points.

For nodes, this attribute specifies space left around the node's label. By default, the value is 0.11,0.055.

type

"margin"