@lx-frontend/multi-canvas
🍣 canvas 常用工具方法封装
说明
该包内所有方法同时支持 canvas 2D API 和 微信小程序旧 API
方法 | 描述 |
---|---|
drawImage | 绘制图片 |
drawRoundRect | 绘制矩形 |
ellipsisText | 文本省略 |
multiLinetext | 多行文本,返回文本占用高度 |
tagText | 文本标签 |
🍣 canvas 常用工具方法封装
该包内所有方法同时支持 canvas 2D API 和 微信小程序旧 API
方法 | 描述 |
---|---|
drawImage | 绘制图片 |
drawRoundRect | 绘制矩形 |
ellipsisText | 文本省略 |
multiLinetext | 多行文本,返回文本占用高度 |
tagText | 文本标签 |
npm i @lx-frontend/multi-canvas
0
0.0.5
ISC
23 kB
23