Adds a rectangle figure to the path.
Namespace: MindFusion.Drawing
File: Path.js
JavaScript Copy Code |
---|
function addRect (x, y, width, height) |
Type: Number
Number. The x-coordinate of the rectangle.
Type: Number
Number. The y-coordinate of the rectangle.
Type: Number
Number. The width of the rectangle.
Type: Number
Number. The height of the rectangle.