【文件属性】:
文件名称:redraphael:建立在 raphaeljs 之上的 JavaScript 图形库,用于增强浏览器上的渲染图形
文件大小:2.35MB
文件格式:ZIP
更新时间:2021-08-05 00:29:52
JavaScript
RedRaphael - 一个强大的 JavaScript 图形库!
从 npm 安装
npm install redraphael
使用RedRaphael绘制基本矩形
var RedRaphael = require ( 'redraphael' ) ;
RedRaphael ( 10 , 10 , 600 , 400 , function ( ) {
var paper = window . pap = this ;
// Draw a red rectangle with red fill color.
rect = paper . rect ( {
x : 0 ,
y : 0 ,
width : 500 ,
height : 200
} )
. attr ( {
fill : '#FF00