Skip to main content
Module

x/graphviz/mod.ts>attribute.z

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

Deprecated:Use pos attribute, along with dimen and/or dim to specify dimensions.

Provides z coordinate value for 3D layouts and displays. If the graph has dim set to 3 (or more), neato will use a node's z value for the z coordinate of its initial position if its pos attribute is also defined.

Even if no z values are specified in the input, it is necessary to declare a z attribute for nodes, e.g, using node[z=""] in order to get z values on output. Thus, setting dim=3 but not declaring z will cause neato -Tvrml to layout the graph in 3D but project the layout onto the xy-plane for the rendering. If the z attribute is declared, the final rendering will be in 3D.

type

"z"