Skip to content

nimeso/silverstripe-drawpolygonfield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilverStripe Draw Polygon Field

Allows you to draw a polygon shape using HTML5 canvas. The x,y points are saved as a comma delimited string in the database. It also excepts a ArrayList of Image objects that can be rendered in the background of the canvas.

Usage

	// optional images to render
	$images = ArrayList();
	$images->add($someImageObj);
	$images->add($anotherImageObj);

	// create field
	$fields->push(new DrawPolygonField("Points","Points",null,1140,600,$images));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published