Skip to content

ECG line custom shape with Konva #1681

Closed Answered by lavrton
dobrys asked this question in Q&A
Discussion options

You must be logged in to vote

I recommend to use simple functions for that:

function createEcgShape(attrs) {
  let myLine = new Konva.Line({
    sceneFunc: function (context) {
       // your code
    }
  });
  return myLine;
}


let ecg = createEcgShape({});
layer.add(ecg);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dobrys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants