Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

layoutGraph function

Positions of the nodes, x right and y down, in a frame of the box's proportions; the same graph, mode, aspect and seed always give the same picture.

View as Markdown
import { layoutGraph } from '@dioramajs/data/graph'

.

function layoutGraph(
  data: GraphData,
  mode: Mode,
  aspect: number,
  seed?: number,
): Float64Array

Parameters

NameTypeDescription
dataGraphData
modeMode
aspectnumber
seed?number

Default 1.

Defined in packages/data/src/graph.ts.