0.0.1 • Published 2 years ago
ecg-plups v0.0.1
ecg-plups
心电图生成、实时心电图
1.0
Build Setup
# install dependencies
npm install ecg-plups
# serve with hot reload at localhost:8080
// 心电图生成
import { EcgClass } from 'ecg-plups';
const ecg = new EcgClass()
await ecg.initGrid(10)
ecg.setData(list, dataRate) // list 元数据 dataRate走速
// 实时心电图
// 初始化
const ecgController = new EcgController(document.getElementById(your canvas dom))
ecgController.init()
// 加入数据
ecgController.pushData(实时心电数据数组)
// 还原
ecgController.init()
0.0.1
2 years ago