-
I'm trying to write a custom Line that draws an ECG I can do it in such way : `
And its works.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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); |
Beta Was this translation helpful? Give feedback.
I recommend to use simple functions for that: