---
source: https://www.jointjs.com/demos/rectangular-layout
github: https://raw.githubusercontent.com/clientIO/joint-demos/main/rectangular-layout/README.md
generated: 2026-10-05
format: markdown
---

# JointJS: Rectangular Layout

Do you want the elements in the diagram to form a rectangle? Do you want the position of the elements to be automatically calculated based on the number of elements? Let’s take a look at the demo below.

This demo is also available online at [jointjs.com](https://jointjs.com/demos/rectangular-layout).

## Available Versions

- [JavaScript](./js/)

## Screenshot

![screenshot](./screenshot.png)
