initialDataThe initialData object contains the following properties:
| Name | Type | Default |
|---|---|---|
version | string | undefined | undefined |
title | string | undefined | undefined |
description | string | undefined | undefined |
icons | Icon[] | [] |
colors | Color[] | [] |
items | Item[] | [] |
views | View[] | [] |
fitToScreen | boolean | false |
An example payload can be found here on CodeSandbox.
Icon{
id: string;
name: string;
url: string;
collection?: string;
isIsometric?: boolean;
}
Notes on Icons:
collection is an optional property that can be used to group icons together in the icon picker. All icons with the same collection will be grouped together under the collection's name.isIsometric to false to render it with an isometric perpective and help it blend into the scene.Color{
id: string;
value: string;
}
Notes on Colors:
The value property accepts any color value in a CSS acceptable format (e.g. a hex value like #000000, a string value for example black or an rgba value for example rgba(0, 0, 0, 1)).
Item{
id: string;
name: string;
description?: string;
icon: string;
}
Notes on Items:
description property can accept markdown.icon property accepts the id of an Icon.View{
id: string;
name: string;
description?: string;
items: ViewItem[];
rectangles?: Rectangle[];
connectors?: Connector[];
textBoxes?: TextBox[];
}
Notes on Views:
description property can accept markdown.ViewItem{
id: string;
labelHeight?: number;
tile: {
x: number;
y: number;
}
}
Notes on ViewItems:
id property accepts the id of an Item (defined at root level).Connector{
id: string;
description?: string;
color?: string;
width?: number;
style?: 'SOLID' | 'DOTTED' | 'DASHED';
anchors: ConnectorAnchor[];
}
Notes on connectors:
color property accepts an id of a Color (defined at root level).ConnectorAnchorid: string;
ref:
| {
tile: {
x: number;
y: number;
}
}
| {
item: string;
}
Notes on ConnectorAnchors
tile or an item. If the reference is to an item, the anchor is dynamic and will be tied to the item's position.item, you must specify the id of the of the item being referred to.Rectangle{
id: string;
color?: string;
from: {
x: number;
y: number;
};
to: {
x: number;
y: number;
};
}
TextBox{
id: string;
tile: {
x: number;
y: number;
};
content: string;
fontSize?: number;
orientation?: 'X' | 'Y';
}
The initialData object is validated before Isoflow renders the scene, and an error is thrown if invalid data is detected.
Examples of common errors are as follows:
ConnectorAnchor references an Item that does not exist.Item references an Icon that does not exist.Rectangle has a from but not a to property.Connector has less than 2 anchors.
A Revarex tool.
Copyright © 2026 Revarex Limited.
Support
Need help? Contact us