# XD 34 API Updates

**URL:** <https://forums.creativeclouddeveloper.com/t/xd-34-api-updates/2069>\
**Category:** UXP Plugin API\
**Tags:** announcements\
**Created:** [October 20, 2020, 3:38pm UTC](https://forums.creativeclouddeveloper.com/t/xd-34-api-updates/2069 "2020-10-20T15:38:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erin\_Finnegan](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/erin_finnegan/32/100_2.png) [@Erin\_Finnegan](https://forums.creativeclouddeveloper.com/u/Erin_Finnegan)\
**Post date:** [October 20, 2020, 3:38pm UTC](https://forums.creativeclouddeveloper.com/t/xd-34-api-updates/2069/1 "2020-10-20T15:38:34Z")

</div>

XD 34 is out today, you can [read about the new features here](https://helpx.adobe.com/xd/user-guide.html/xd/help/whats-new.ug.html).

Here are the API changes:

XD 34 adds Auto Height Text which dynamically adjusts its height based on the context of the text layer while its width remains fixed. To support Auto Height Text we have added a new `text.layoutBox` API that will replace `text.areaBox`.

**`text.layoutBox` {type:string, ?width:number, ?height:number} details**

The text type and any applicable width and height value for the text. Text type will be one of:

- `Text.POINT` (for point text also referred as auto width)
- `Text.FIXED_HEIGHT` (for area text also referred as fixed size)
- `Text.AUTO_HEIGHT` (for the new auto height text)

Width is a number between 0-999999 and is ignored/omitted for text.Point.

Height is a number between 0-999999 and is ignored/omitted for text.Point and text.AUTO-HEIGHT

Changing `POINT` text to `FIXED_HEIGHT` or `AUTO_HEIGHT` text or vice versa will change the origin / anchor point of the text, thus changing its localBounds, but it will also automatically change the node’s transform so its globalBounds and boundsInParent origins remain unchanged.

Changing `FIXED_HEIGHT` or `AUTO_HEIGHT` text to POINT text will automatically insert hard line break ("`\n`") into the text to match the previous line wrapping’s appearance exactly.

Changing from `FIXED_HEIGHT` to `AUTO_HEIGHT` text will automatically change the height of the bounds to match the height of the total text (can be a no-op).

Changing from `AUTO_HEIGHT` to `FIXED_HEIGHT` text will not change the bounds, transform or origin (no-op).

**How Auto Height Text affects Text.areaBox and text.clippedByArea APIs**

`Text.areaBox` and `text.clippedByArea` will return the same values for Auto Height Text as they do for Point Text.

- `Text.areaBox` returns `null` as it does for point text
- `Text.clippedByArea` returns `false` as it does for point text
