Rectangle

<ac-rectangle-desc />

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

Usage:

1
<ac-rectangle-desc props="{
2
show : rectangle.show, //optional
3
coordinates : rectangle.positions,
4
material : rectangle.color //optional
5
}">
6
</ac-rectangle-desc>
Copied!
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:

1
<ac-rectangle props="{
2
coordinates: rectangle.coordinates,
3
material: rectangle.material,
4
height: rectangle.height
5
}">
6
</ac-rectangle>
Copied!
Description of the props :
  • All other properties of props are the same as the properties RectangleGraphicsand the general properties of Entity (like position).
Last modified 2yr ago