Skip to contents

A vector of vertices connected as a polygon.

Super classes

jointjs_cell -> jointjs_element -> jointjs_polygon

Methods

Inherited methods


jointjs_polygon$new()

Initialise the object

Usage

jointjs_polygon$new(refPoints, ...)

Arguments

refPoints

A character string of coordinates that is used to set the SVG points attribute of polygon or polyline elements.

...

Arguments passed to parent class initialiser


jointjs_polygon$clone()

The objects of this class are cloneable with this method.

Usage

jointjs_polygon$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

jointjs_polygon$new("10,10 30,10 30,30")
#> <jointjs_polygon>
#>   Inherits from: <jointjs_element>
#>   Public:
#>     clone: function (deep = FALSE) 
#>     get_list: function () 
#>     initialize: function (refPoints, ...) 
#>     set_attrs: function (...) 
#>     set_background: function (fill, stroke, strokeWidth, ...) 
#>     set_body: function (fill, stroke, strokeWidth, magnet, ...) 
#>     set_bodyText: function (text, color, fontFamily, fontSize, ...) 
#>     set_border: function (fill, stroke, strokeWidth, ...) 
#>     set_header: function (fill, stroke, strokeWidth, ...) 
#>     set_headerText: function (text, color, fontFamily, fontSize, ...) 
#>     set_image: function (href, ...) 
#>     set_label: function (text, color, fontFamily, fontSize, ...) 
#>     set_line: function (stroke, strokeWidth, ...) 
#>     set_outline: function (stroke, strokeWidth, ...) 
#>     set_position: function (x, y) 
#>     set_shadow: function (stroke, strokeWidth, ...) 
#>     set_top: function (fill, stroke, strokeWidth, ...) 
#>     set_wrapper: function (stroke, strokeWidth, ...) 
#>   Private:
#>     angle: 0
#>     attrs: list
#>     id: 3f1285a6f4585e9f
#>     position: list
#>     size: list
#>     type: standard.Polygon
#>     z: 1