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

fitTo function

Layout positions stretched into `plot`, element px; a flat axis stays in the middle.

View as Markdown
import { fitTo } from '@dioramajs/data/graph'
function fitTo(raw: Float64Array, plot: Rect): Float32Array

Parameters

NameTypeDescription
rawFloat64Array
plotRect

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