nimeso / silverstripe-drawpolygonfield
使用 HTML5 canvas 创建多边形形状
dev-master
2014-08-16 21:26 UTC
This package is auto-updated.
Last update: 2024-09-12 18:49:41 UTC
README
允许您使用 HTML5 canvas 绘制多边形形状。x,y 坐标以逗号分隔的字符串形式保存在数据库中。它还可以接受一个 ArrayList 的 Image 对象,这些对象可以绘制在画布的背景中。
用法
// optional images to render $images = ArrayList(); $images->add($someImageObj); $images->add($anotherImageObj); // create field $fields->push(new DrawPolygonField("Points","Points",null,1140,600,$images));