Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy