Skip to content

Commit d5bfa93

Browse files
committed
docs: add picture of layouts
1 parent f7b3524 commit d5bfa93

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,18 @@ const clusterLayer = new TeritorioCluster(id, sourceId, options)
178178

179179
##### unfoldedClusterRender
180180
The following rendering function are at your disposal:
181+
- `unfoldedClusterRenderSmart` (default): Renders an unfolded cluster in a smart shape (between circle and hexagonal) based on the number of items.
182+
183+
<img src="public/smart-layout.png" alt="Smart layout" width="280" />
181184
- `unfoldedClusterRenderCircle`: Renders an unfolded cluster in a circular shape.
185+
186+
<img src="public/circle-layout.png" alt="Circle layout" width="128" />
182187
- `unfoldedClusterRenderHexaGrid`: Renders an unfolded cluster in a hexagonal grid spiral.
188+
189+
<img src="public/hexagonal-layout.png" alt="Hexagonal layout" width="128" />
183190
- `unfoldedClusterRenderGrid`: Renders an unfolded cluster in a square grid.
184-
- `unfoldedClusterRenderSmart` (default): Renders an unfolded cluster in a smart shape based on the number of items.
191+
192+
<img src="public/grid-layout.png" alt="Grid layout" width="128" />
185193

186194
## Events
187195

public/circle-layout.png

5.93 KB
Loading

public/grid-layout.png

2.29 KB
Loading

public/hexagonal-layout.png

3.48 KB
Loading

public/smart-layout.png

46.6 KB
Loading

0 commit comments

Comments
 (0)