Migrating to 0.4.0
Breaking Changes and Migration Guide
Layouts and Text have changed underlying libraries and that means that some animations will have slight differences. Key changes:
View2D.shadowRootandLayout.element/Layout.stylesare removed; useLayout.yogaNodeandgetDomContainer()(for SVG / arc measurement) instead.TxtLeafnow extendsNodeinstead ofShape.- Direct
<TxtLeaf>styling no longer applies. Styles instead cascade from the parent<Txt>. FlexBasisdropscontent,min-content,max-content, andfit-content.LengthLimitdropsmax-contentandmin-content.textWrapnow defaults totrueso width-bounded<Txt>wraps by default.node.relativeTo(other)now returns coordinates in the other node's coordinate space. Usenode.position.abs().sub(b.position().abs())to get the old behavior.