anchorkendo.geometry.Point

The anchor point of this segment.

If no control points are defined the path will pass through this point.

Example

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    // Create a segment with an anchor point
    var anchorPoint = new geom.Point(150, 100);
    var segment = new draw.Segment(anchorPoint);

    // Create a path and add the segment
    var path = new draw.Path()
        .moveTo(100, 100);
    path.segments.push(segment);

    console.log("Anchor point:", segment.anchor().x, segment.anchor().y);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(path);
</script>
In this article
anchor
Not finding the help you need?
Contact Support