Canvas.js:html5 canvas的简单类包装器(警告Canvas当前仅在chrome中使用“ use strict”)

时间:2024-05-30 18:41:16
【文件属性】:

文件名称:Canvas.js:html5 canvas的简单类包装器(警告Canvas当前仅在chrome中使用“ use strict”)

文件大小:5KB

文件格式:ZIP

更新时间:2024-05-30 18:41:16

JavaScript

Canvas.js html5 canvas的简单类包装器(警告!Canvas当前仅在chrome中使用“ use strict”) 例子: var id = 'myCanvas'; // id of canvas to which bind class var c = new Canvas(id); // crate new instance for canvas to use // Canvas is chainable function list (most of it's functions returns this) c.rect({ x: 20, y: 5, w: 10, h: 15 }).text({ text: 'Hello World', x: 35, y: 20, type: 'stroke' }); /* or c.rect({x:


【文件预览】:
Canvas.js-master
----index.html(617B)
----.gitattributes(378B)
----Canvas.js(9KB)
----README.md(5KB)
----.gitignore(574B)

网友评论