rectkendo.geometry.Rect

The rectangle within which the children should be arranged.

Example

<div id="surface" style="height: 300px;"></div>
<script>
  var draw = kendo.drawing;
  var Rect = kendo.geometry.Rect;
  var Path = draw.Path;
  
  // Define the layout rectangle
  var layoutRect = new Rect([50, 50], [200, 150]);
  var layout = new draw.Layout(layoutRect);

  var pathA = Path.fromRect(new Rect([0, 0], [80, 60]));
  var pathB = Path.fromRect(new Rect([0, 0], [80, 60]));
  
  layout.append(pathA, pathB);
  layout.reflow();

  var surface = draw.Surface.create($("#surface"));
  surface.draw(layout);
  // Draw the layout rectangle for reference
  surface.draw(Path.fromRect(layoutRect));
</script>
In this article
rect
Not finding the help you need?
Contact Support