diagrams-js/diagram-configuration
Installation
SKILL.md
This skill builds on diagrams-js/getting-started. Read it first for foundational concepts.
diagrams-js — Diagram Configuration
Configure diagram layout direction, visual theme, edge curve style, and custom Graphviz attributes.
Setup
import { Diagram } from "diagrams-js";
import { EC2 } from "diagrams-js/aws/compute";
const diagram = Diagram("My Diagram", {
direction: "TB",
theme: "pastel",
curvestyle: "ortho",
});