Stacks drawing elements horizontally.


elements Array

An array with the drawing elements that should be stacked.


<div id="surface"></div>
  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));
In this article
Not finding the help you need? Improve this article