Problems with Konva custom graphics

Why is there only one context.beginPath (); in the sceneFunc method of Konva custom graphics?

sceneFunc(context) {
    context.beginPath();
    context.moveTo(200, 50);
    context.lineTo(420, 80);
    context.quadraticCurveTo(300, 100, 260, 170);
    context.closePath();
    
    // context.beginPath();
    // context.moveTo(400, 50);
    // context.lineTo(420, 80);
    // context.quadraticCurveTo(300, 100, 260, 170);
    // context.closePath();
    
    context.fillStrokeShape(this);
}
Mar.04,2021
Menu