Version 1, Update 52
This release adds support for the component properties beta features and adds the the ability to read the fontWeight of text nodes.
Component Properties
Exposed Instances
isExposedInstance
: indicates whether thisInstanceNode
has been marked as exposed to its containingComponentNode
orComponentSetNode
exposedInstances
: all nested instances that have been exposed to thisInstanceNode
's level
Preferred Values
componentPropertyDefinitions
: updated to returnInstanceSwapPreferredValue
[]
for'INSTANCE_SWAP'
component property definitionsaddComponentProperty
: updated to acceptInstanceSwapPreferredValue
[]
when adding an'INSTANCE_SWAP'
component propertyeditComponentProperty
: updated to acceptInstanceSwapPreferredValue
[]
when editing an'INSTANCE_SWAP'
component property
Font Weight
fontWeight
: The weight of the font (e.g. 400 for "Regular", 700 for "Bold"). This property is readonly and cannot be set directly.getRangeFontWeight
: gets the fontWeight from characters in range start (inclusive) to end (exclusive).