optionsObject
The configuration options.
Example - creating a multi-path with options
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
var draw = kendo.drawing;
var multiPath = new draw.MultiPath({
fill: {
color: "red",
opacity: 0.5
},
stroke: {
color: "blue",
width: 2
}
});
multiPath.moveTo(50, 50).lineTo(150, 50).lineTo(100, 150).close();
var surface = draw.Surface.create($("#surface"));
surface.draw(multiPath);
</script>
In this article