@wings-j/canvas-utils
v1.1.1
Published
Canvas 开发工具
Downloads
7
Readme
canvas-utils
使用
安装:
npm install @wings-j/canvas-utils
引入:
import { Offscreen } from '@wings-j/canvas-utils'
API
- Offscreen:离屏
- CalcTextWidth:计算文本宽度
- DrawText:画文本
- GetMousePosition:获取鼠标位置
- PathCurve:画曲线
- Resize:缩放
- SaveRestore:保存恢复配置
- SliceText:剪裁字符串
- SplitText:分割字符串