@@ -434,9 +434,9 @@ class ElementComponent extends Component {
434434 }
435435
436436 /**
437- * Gets the anchor for this element component.
437+ * Gets the anchor for this element component. Use the setter to update the anchor.
438438 *
439- * @type {Vec4 | number[] }
439+ * @type {Readonly< Vec4> }
440440 */
441441 get anchor ( ) {
442442 return this . _anchor ;
@@ -673,7 +673,7 @@ class ElementComponent extends Component {
673673 /**
674674 * Gets the array of layer IDs ({@link Layer#id}) to which this element belongs.
675675 *
676- * @type {number[] }
676+ * @type {ReadonlyArray< number> }
677677 */
678678 get layers ( ) {
679679 return this . _layers ;
@@ -719,9 +719,10 @@ class ElementComponent extends Component {
719719 }
720720
721721 /**
722- * Gets the distance from the left, bottom, right and top edges of the anchor.
722+ * Gets the distance from the left, bottom, right and top edges of the anchor. Use the setter to
723+ * update the margin.
723724 *
724- * @type {Vec4 }
725+ * @type {Readonly< Vec4> }
725726 */
726727 get margin ( ) {
727728 return this . _margin ;
@@ -783,9 +784,10 @@ class ElementComponent extends Component {
783784 }
784785
785786 /**
786- * Gets the position of the pivot of the component relative to its anchor.
787+ * Gets the position of the pivot of the component relative to its anchor. Use the setter to
788+ * update the pivot.
787789 *
788- * @type {Vec2 | number[] }
790+ * @type {Readonly< Vec2> }
789791 */
790792 get pivot ( ) {
791793 return this . _pivot ;
@@ -1272,9 +1274,9 @@ class ElementComponent extends Component {
12721274 }
12731275
12741276 /**
1275- * Gets the color of the element.
1277+ * Gets the color of the element. Use the setter to update the color.
12761278 *
1277- * @type {Color }
1279+ * @type {Readonly< Color> }
12781280 */
12791281 get color ( ) {
12801282 if ( this . _text ) {
@@ -1820,9 +1822,10 @@ class ElementComponent extends Component {
18201822 }
18211823
18221824 /**
1823- * Gets the region of the texture to use in order to render an image.
1825+ * Gets the region of the texture to use in order to render an image. Use the setter to update
1826+ * the region.
18241827 *
1825- * @type {Vec4 }
1828+ * @type {Readonly< Vec4>|null }
18261829 */
18271830 get rect ( ) {
18281831 if ( this . _image ) {
0 commit comments