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

qcanvas

v2.0.14

Published

Qcanvas是一个功能强大而使用简单的JS Canvas库, 能通过使用它实现在Canvas上画线、画矩形、画图片、实现动画、实现拖动、包括给元素注册各类事件等一系列功能。通过使用Qcanvas从而以较为简单的方式实现较为复杂的Canvas功能 在线文档:https://zhicheng99.gitbooks.io/qcanvas-api-v1-0/content/ 示例:https://zhicheng99.github.io/qcanvas/

Downloads

134

Readme

Qcanvas

Qcanvas是一个功能强大而使用简单的JS Canvas库, 能通过使用它实现在Canvas上画线、画矩形、画图片、实现动画、实现拖动、包括给元素注册各类事件等一系列功能。通过使用Qcanvas从而以较为简单的方式实现较为复杂的Canvas功能
git地址1:https://github.com/zhicheng99/qcanvas git地址2:https://gitee.com/lizhicheng99/qcanvas

在线文档(以Wiki为准): http://lizhicheng99.gitee.io/qcanvas-api-1.0 https://zhicheng99.github.io/Qcanvas-API/ 示例:https://zhicheng99.github.io/qcanvas/

v2.0.14

优化消毁方法

v2.0.11

优化Qevent类

v2.0.9

增加图片资源是否已经存在于缓存中的判断

v2.0.8

优化Qspirit类

v2.0.7

Qshape增加borderColor属性

v2.0.6

蚂蚁线动画效果(注:只对虚线形式起作用)

v2.0.3

rect旋转功能优化

v2.0.2

修复带缩放/旋转组件的rect加入layer后 句柄都丢失的问题+增加功能:删除带缩放/旋转组件的rect时 一并删除resizeLayer和rotateLayer

v2.0.1

重构rect的缩放 旋转功能,删掉了Qresize Qrotate类

v2.0

2.0新版本

v1.0.92

Qtext增加dragRange配置项

v1.0.90

优化清除画布方法

v1.0.89

修复layer容器中元素拾取不成功的问题 进一步估化Qevent

v1.0.87

set类方法返回当前对象 进而支持链式调用

v1.0.83

Qcanvas增加loadImgSource方法

v1.0.82

Qevent类优化

v1.0.76

Qtext类优化

v1.0.75

曲线增加控制点的显示

v1.0.73

增加三次贝塞尔曲线QbezierCurve类

v1.0.71

增加二次贝塞尔曲线QquadraticCurve类

v1.0.69

Qcanva初始化增加dblclick事件配置

v1.0.66

元素配置项增加dblclick事件配置

v1.0.64

Qlayer优化

v1.0.62

Qcanvas增加delayRender属性

v1.0.57

Qlayer优化

v1.0.56

Qlayer实例增加destroy方法

v1.0.55

修复Qline实例配置有withText时 加入layer后 生成的text节点没有一并加入该layer的问题

v1.0.54

Qline优化

v1.0.53

介绍更新

v1.0.52

修复内存溢出问题

v1.0.51

Qline优化

v1.0.50

Qcanvas增加对mouseenter事件的响应

v1.0.49

解决了画布上元素模糊的问题

v1.0.48

修复多行文本对象加入layer后 this指向错误的问题

v1.0.46

Qtext实例支持通过\n实现文本换行功能

v1.0.45

修复Qlayer实例重置Qcanvas实例方法时 this指向不正确的问题

v1.0.44

Qspirit实例画图片,img参数为字符串时资源对象直接置为占位图片资源 先画到画布上 待图片加载完生成后再重置图片对象

v1.0.43

Qrect实例增加配置项dashed(边线是否为虚线)

v1.0.42

Qimg实例画图片,img参数为字符串时资源对象直接置为占位图片资源 先画到画布上 待图片加载完生成后再重置图片对象

v1.0.41

屏蔽主画布oncontextmenu默认事件 为了自定义菜单方便实现

v1.0.40

修复自定义事件参数e指向不正确的问题

v1.0.39

线段增加双向箭头功能(【like:'<->' 实线双向箭头】 【like:'<-->'虚线双向箭头】 )

v1.0.38

自定义事件参数增加event参数

v1.0.36

优化Qevent类+Qarc和Qpolygon实例增加拖放范围配置项dragRange

v1.0.34

Qrect实例配置项增加resize和rotate属性 点击后会自动生缩放控件和角度控件

v1.0.31

为主画布增加mousedown、mousemove、moueseup、mouseout事件

v1.0.30

修复arc对象加入layer后不生效的问题

v1.0.29

drag属性增加horizontal和vertical方式

v1.0.28

线段增加拖动功能update

v1.0.27

线段增加拖动功能

v1.0.26

优化判断数据类型部分代码

v1.0.25

修复layer和group中元素pointerEvent=‘none’时不起作用的问题

v1.0.24

优化Qgroup类成员方法push

v1.0.23

优化Qlayer类成员方法push

v1.0.22

优化Qlayer类

v1.0.20

修复Qevent实例判断点击事件在Qlayer/Qgroup中定位目标元素不准确的问题+优化Qgroup类

v1.0.17

Qlayer类重新实现

v1.0.16

Qlayer类优化

v1.0.15

Qrect增加圆角属性radius

v1.0.14

Qtext Qrect Qimg Qspirit实例增加旋转角度属性degree

v1.0.13

修复Qtext实例顶点坐标序列不准确的问题

v1.0.12

增加Qlayer元素容器类

v1.0.9

Qrect类增加opacity配置项

v1.0.8

增加元素层级调整方法 (lower,lowerToBottom,raise,raiseToTop)

v1.0.7

修复同一页多个实例时 只渲染最后的的问题

v1.0.6

优化了Qimg一些判断语句

v1.0.5

优化了Qevent类