Skip to main content
Module

x/graphviz/mod.ts>attribute.inputscale

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

For layout algorithms that support initial input positions (specified by the pos attribute), this attribute can be used to appropriately scale the values. By default, fdp and neato interpret the x and y values of pos as being in inches. (NOTE: neato -n(2) treats the coordinates as being in points, being the unit used by the layout algorithms for the pos attribute.) Thus, if the graph has pos attributes in points, one should set inputscale=72. This can also be set on the command line using the -s flag flag.

If not set, no scaling is done and the units on input are treated as inches. A value of 0 is equivalent to inputscale=72.

type

"inputscale"