wrapBoolean(default: true)

Specifies the behavior when the elements size exceeds the rectangle size. If set to true, the elements will be moved to the next "line". If set to false, the layout will be scaled so that the elements fit in the rectangle.

Example

<div id="diagram"></div>
<script>
var diagram = kendo.dataviz.diagram;
var rect = new diagram.Rect(0, 0, 200, 200);
var layout = new diagram.Layout(rect, {
    orientation: "horizontal",
    wrap: false,
    spacing: 5
});
console.log("Layout wrap set to false - elements will be scaled");
</script>
In this article
wrap
Not finding the help you need?
Contact Support