jCanvaScript 1.4.0 正式版本发布。jCanvaScript是一个面向HTML5画布(canvas)的Javascript类库,它提供了许多方法用于简化处理HTML5画布(canvas)元素的内容,只要支持canvas和Javascript的浏览器都可以使用它,包括iPhone、iPad和Android等平台。
jCanvaScript 1.4.0 更新列表:
- Attention! image object was changed! Parameters sx,sy, swidth, sheight changed to x, y, width, height.
- Attention! arc object was changed! It work with degrees now.
- Functions .getRect() and .position() were added.
- Functions, that runs on mouseover and mouseout events, like other functions with mouse events, takes a point – object with mouse cursor coordinates – as argument now.
- Function jc.addFunction() was added, so you can add your own methods to jCanvaScript objects. To all objects – or only for text, for example.
- Power of inheritance was added to jc.addObject() function.
- Function .filter() was added to imageData object – and possibility to add your own filters with jc.addImageDataFilter(). Also, default color filter with types ‘red’, ‘green’ and ‘blue’ and linear filter with types ‘sharp’ and ‘blur’ were added.
暂无更多评论