visibleBoolean
A flag, indicating if the element is visible. Inherited from Element.visible
Example
<div id="surface"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var arcGeometry = new geom.Arc([100, 100], {
radiusX: 25,
radiusY: 25,
startAngle: 0,
endAngle: 270
});
var arc = new draw.Arc(arcGeometry, {
stroke: { color: "blue", width: 2 },
visible: true
});
var surface = draw.Surface.create($("#surface"));
surface.draw(arc);
// Toggle visibility
setTimeout(() => {
arc.visible(false);
}, 2000);
</script>
In this article