npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

e-sheet

v1.3.9

Published

web excel

Downloads

16

Readme

简介

  • 使用canvas绘制excel表格,支持部分基础的表格操作功能,可支持和阿里在excel文档和wps互相复制粘贴数据

example

预览

安装


npm i e-sheet

使用


// es

import eSheet from 'e-sheet'
import 'e-sheet/dist/css/index.css'

const excel = new eSheet('#elt',{
    width:1200,
    height:800
})


// umd

<link rel="stylesheet" href="dist/css/index.css">
<script lang="javascript" src="dist/e-sheet.umd.js"></script>

const excel = new eSheet('#elt',{
    width:1200,
    height:800
})

协同服务


cd ./server/multi-person-collaboration

cargo run

api

| 函数名 | 功能 | 参数 | 样例 | |:------------------:|:-----------:|:--------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| | exportXlsxData | 导出 | 无 | [{label:"sheet1",sheet:{!ref:"D10",D10:{t:"s",v:"测试内容"}}}] | | stepCallbackHandle | 操作回调 | callback | excel.stepCallbackHandle((obj)=>{console.log(obj)) | | fresh | 全部刷新 | 无 | void | | freshContent | 刷新表格内容 | 无 | void | | connectWebSocket | 链接websocket | 链接地址addr | ws://192.168.31.208:8091 | | drawExcel | 导入excel数据 | books | [{"id":1703748720496,"label":"Sheet1","sheet":[{"row":1,"col":1,"text":"","textAsNumber":null,"width":120,"height":40,"x":0,"y":0,"ltX":40,"ltY":40,"mergeWidth":0,"mergeHeight":0,"mergeRow":1,"mergeCol":1,"mergeStartLabel":"","mergeEndLabel":"","mergeLabelGroup":[],"isMerge":false,"bgColor":"#ffffff","fontColor":"#000000","font":null,"fontSize":12,"fontWeight":"","fontItalic":"","fontFamily":"Calibre","textAlign":"center","textBaseline":"middle","strikethrough":"","underline":"","label":"A1"}]}] |

功能

  • [x] 单选
  • [x] 多选
  • [x] 复制
  • [x] 粘贴
  • [x] 右下角格式刷
  • [x] 合并
  • [x] 拆分
  • [x] 拖拽
  • [x] 添加行数
  • [x] 添加列数
  • [x] 字体
  • [x] 文字颜色
  • [x] 背景色
  • [x] 文字水平对齐
  • [x] 文字垂直对齐
  • [x] 删除线
  • [x] 下划线
  • [x] 导出
  • [x] 导入
  • [x] 前进
  • [x] 后退