reflow

Arranges the elements based on the current options.

Example

<div id="diagram"></div>
<script>
var diagram = kendo.dataviz.diagram;
var rect = new diagram.Rect(0, 0, 300, 200);
var layout = new diagram.Layout(rect, {
    orientation: "horizontal",
    spacing: 10,
    alignItems: "center"
});

// Add elements
layout.append(new diagram.Circle({ radius: 25 }));
layout.append(new diagram.Rectangle({ width: 50, height: 30 }));

// Reflow to arrange elements based on current options
layout.reflow();
console.log("Layout reflowed - elements rearranged");
</script>
In this article
reflow
Not finding the help you need?
Contact Support