Git Product home page Git Product logo

canvas-demo's Introduction

canvas 测试demo

Table

TODO

  • 单元格绘制(自适应宽/用户设定宽) --- 可视数据计算最宽宽度、超出... 容器撑满 √
auto: 宽度根据剩余宽度自适应,如果剩余平均宽度小于当前内容最大宽度,则宽度采用内容宽度
width: 采用固定宽度
unset: 未设置宽度,采用剩余宽度平均分配
  • 滚动加载(外部滚动条、还是绘制滚动条) 使用div遮盖、原生滚动 √
  • 拖拽宽度 col-resize-plugin √
  • 行选中样式、文字复制选择
  • 列排序(单选/多选) col-draw-plugin
  • 大数据量缓存+动态计算、canvas离屏渲染
  • 固定行列
  • c++ rust 编写wasm

Excel

TODO

  • 点击选中(行、列、单元格)、复制 - 缓存cell位置
  • 单元格框选、滚动框选
  • col-resize-plugin

思考

  • 组件内容按需加载、拆分包体积?

canvas-demo's People

Contributors

yelikang avatar

Watchers

 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.