Api - RoundRectangle Class
Hierarchy
- RoundRectangle
Implements
Index
Constructors
Properties
Constructors
constructor
- 
				
				Parameters- 
						width: numberWidth of the rectangle. 
- 
						height: numberHeight of the rectangle. 
- 
						radius: numberCorner radius. 
 Returns RoundRectangle
- 
						
- 
				
				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 itParameters- 
						modelToSurround: IModelIModel object. 
- 
						margin: numberDistance from the model. This will also become the corner radius. 
 Returns RoundRectangle
- 
						
Properties
origin
paths
Generated using TypeDoc

Create a round rectangle from width, height, and corner radius.
Example:
var r = new makerjs.models.RoundRectangle(100, 50, 5);