--- layout: posts title: Api - RoundRectangle Class ---
Width of the rectangle.
Height of the rectangle.
Corner radius.
Create a round rectangle which will surround a model.
Example:
var b = new makerjs.models.BoltRectangle(30, 20, 1); //draw a bolt rectangle so we have something to surround
var r = new makerjs.models.RoundRectangle(b, 2.5); //surround it
IModel object.
Distance from the model. This will also become the corner radius.
Generated using TypeDoc
Create a round rectangle from width, height, and corner radius.
Example:
var r = new makerjs.models.RoundRectangle(100, 50, 5);