10BC0 ECG line custom shape with Konva · konvajs konva · Discussion #1681 · GitHub
[go: up one dir, main page]

Skip to content
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
0