Rectangle

<ac-rectangle-desc />

This is a rectangle implementation. The element must be a child of ac-layer element.

Usage:

<ac-rectangle-desc props="{
show : rectangle.show, //optional
coordinates : rectangle.positions,
material : rectangle.color //optional
}">
</ac-rectangle-desc>

Description of the props :

  • All other properties of props are the same as the properties RectangleGraphicsand the general properties of Entity (like position).

‚Äč

<ac-rectangle />

This is a single rectangle implementation. The element must be a child of ac-map element.

Usage:

<ac-rectangle props="{
coordinates: rectangle.coordinates,
material: rectangle.material,
height: rectangle.height
}">
</ac-rectangle>

Description of the props :

  • All other properties of props are the same as the properties RectangleGraphicsand the general properties of Entity (like position).