- Added intensity value to font data to boost value read from SDF
- Added mouse and touch input handling for element components
- Better API docs for
pc.Entity#addComponent
- Support different font atlas parameters
- Added
pc.ElementComponent#canvasCorners
- Added docs for ScreenComponent, ScreenComponentSystem, ElementComponent, ElementComponentSystem, and Font
- Ignore color and opacity when a material is set
- Image elements can now work without a texture if you just want to show color / opacity
- [BREAKING] Removed pc.ElementComponent#canvasPosition - use midpoint of canvasCorners[0] and canvasCorners[2] instead.
- [FIX] Various fixes when using element component split anchors
- [FIX] Element component size not being calculated after screen is set for the first time
- [FIX] Element
worldCorners
/screenCorners
optimizations and fixes - [FIX] Calculate text element width and height correctly using font bounding box
- [FIX] Pre-calculate font extents instead of doing it per-char in the string
- [FIX] Element sorting bugs
- [FIX] Fix flipped normal on image elements
- [FIX] Disable shadows on image and text elements
- [FIX] Fix browser color-correcting images