A Polygon Element
jointjs_polygon.RdA vector of vertices connected as a polygon.
Super classes
jointjs_cell -> jointjs_element -> jointjs_polygon
Methods
Inherited methods
jointjs_cell$set_attrs()jointjs_element$get_list()jointjs_element$set_background()jointjs_element$set_body()jointjs_element$set_bodyText()jointjs_element$set_border()jointjs_element$set_header()jointjs_element$set_headerText()jointjs_element$set_image()jointjs_element$set_label()jointjs_element$set_line()jointjs_element$set_outline()jointjs_element$set_position()jointjs_element$set_shadow()jointjs_element$set_top()jointjs_element$set_wrapper()
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