【文件属性】:
文件名称:canvas-polyline
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-24 15:10:41
canvas html-canvas polyline canvas-api html-canvas-api
画布折线
该库旨在提供与HTML Canvas兼容的API,该API仅使用直线生成所有输出,即,它减少了moveTo和lineTo所有命令。 这样就很容易调整输出,使其与许多文件格式和设备兼容。
用法
var ctx = new CanvasPolyline ( [ canvasCtx , hpglCtx ] ) // Takes a single Canvas API contexts or an array of them
ctx . rect ( 0 , 0 , 100 , 100 )
// Each context will now get called with the following commands
// moveTo(0, 0)
// lineTo(100,0)
// lineTo(100,100)
// lineTo(0,100)
// lineTo(0,0)
背景
【文件预览】:
canvas-polyline-master
----.gitignore(19B)
----README.md(1KB)
----rollup.config.js(929B)
----test()
--------canvas-polyline.js(2KB)
----examples()
--------index.html(5KB)
----LICENSE(1KB)
----package.json(821B)
----src()
--------index.js(8KB)
----package-lock.json(58KB)