Welcome to Hexo! This is your very first post.
Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

hexo new "My New Post"

More info: Writing

Run server

hexo server

More info: Server

Generate static files

hexo generate
hexo g

More info: Generating

Deploy to remote sites

hexo deploy
hexo d

More info: Deployment

Or you can deploy it one step

npx hexo clean && npx hexo g -d

This are some tests

Important: if you want to run app with gulped code run npm run build or gulp, then run npm start.

JavaScript

  /***
   * 使用原始数据画图
   * @param {String} canvas 要画图的canvas的id
   * @param {Uint8Array} multiData 从蓝牙或SD卡中读出来的纯ECG数据,无需考虑导联及大小端
   * @param {Number} lengthToPad 需要在前面补0的数量,默认为 `0`,即不补0。
   */
  function drawCanvasFromMultiData (canvas, multiData, lengthToPad=0){
    const data = 
    const remainder = data.length%frameLen; // 余数0
    if (remainder!==0){
      console.log(`your multiDataLen ${data.length} is not multiple of frameLen ${frameLen}`, multiData);
      throw 'length of multiData must be multiple of frameLen';
    }
  }

Html

<!--插图-->
<div class="healthyEcgCanvas" data-tap-disabled="true">
    <canvas width=3200 height=400 id="healthyEcgCanvasBackground"></canvas>
    <canvas width=3200 height=400 id="healthyEcgCanvas"></canvas>
</div>

CSS

//ecg的图们
.healthyEcgCanvas{
  position: relative;
  border: 1px solid #c90000;
  pointer-events: none;//禁止点击
}

images

img-test


Refer:
[1]Google
[2]Learning-Markdown (Markdown 入门参考)

Related:

 TOC