stack

Stacks drawing elements horizontally.

Parameters

elements Array

An array with the drawing elements that should be stacked.

Example

<div id="surface"></div>
<script>
  var draw = kendo.drawing;
  var Rect = kendo.geometry.Rect;
  var Path = draw.Path;
  var pathRect = new Rect([0, 0], [100, 100]);

  var pathA = Path.fromRect(pathRect);
  var pathB = Path.fromRect(pathRect);
  var pathC = Path.fromRect(pathRect);

  draw.stack([pathA, pathB, pathC]);

  var surface = draw.Surface.create($("#surface"));
  surface.draw(new draw.Group().append(pathA, pathB, pathC));
</script>
In this article