konvajs/konva

Can we draw an un-closed ellipse like below?

nyi-ailytics opened this issue · 1 comments

Is it possible to draw something like this? The ellipse that doesn't connect?

image

I think the simplest is to use Konva.Path

var ellipseCutPath = new Konva.Path({
  x: stage.width() / 2,
  y: stage.height() / 2,
  offsetX: 100,
  offsetY: 50,
  data: 'M 50,50 a 100,50 0 1,0 100,0', // This draws an arc of an ellipse
  stroke: 'red',
  strokeWidth: 5,
  draggable: true
});

https://jsbin.com/cuxedofasi/1/edit?html,js,output