Clears all existing segments and moves the starting point to the specified absolute coordinates.

Example - Set the path start coordinates

<div id="surface" style="width: 250px; height: 250px;"></div>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var path = new draw.Path();

    // The following commands are interchangeable
    path.moveTo(100, 200);
    path.moveTo([100, 200]);
    path.moveTo(new geom.Point(100, 200));

    path.lineTo(200, 200);

    var surface = draw.Surface.create($("#surface"));


x Number|Array|kendo.geometry.PointThe starting X coordinate or a Point/Array with X and Y coordinates.
y Number optionalThe starting Y coordinate.

Optional if the first parameter is a Point/Array.

Returnskendo.drawing.Path The current instance to allow chaining.

In this article