Coder Social home page Coder Social logo

heatmap's Introduction

heatmap

heatmap.js is a plugin for canvas chart 一个基于canvas的绘制热图插件

概述

工作中我们使用heatmap.js这个热图绘制工具,然后业务的风向变了, 需要缩略图, 需要按需加载, 需要注意力热图等等功能, 它以不再适用了, 然后就阅读它的源码学习它, 套用它的绘制原理, 然后重写了一套代码适应需求变化.

预览图

安装使用说明

npm install
npm run watch
npm run build

渲染原理

1. 为什么要分屏加载 ?
    win10下的火狐浏览器canvas图层最高支持32766像素,win10下谷歌浏览器最高canvas图层支持32767像素。

更新日志

v1.0.4

  1. 支持分屏加载超长尺寸热图, 突破canvas最大尺寸限制

v1.0.3

  1. 修正缩略图滑块的点击位置

v1.0.2

  1. 缩略图支持拖拽滑块, 联动画布.
  2. 缩略图支持点击联动画布.

v1.0.1

  1. 加入注意力热图
  2. 加入缩略图

v1.0.0

  1. 加入点击热图

版权

MIT

heatmap's People

Contributors

tm-roamer avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.