Skip to content

v0.11.x: Custom components!

Compare
Choose a tag to compare
@stevenpetryk stevenpetryk released this 16 Jan 19:00
· 130 commits to main since this release
  • v0.11.1 and v0.11.2 address bugs relating to the --mafs-user-transform custom property being blank when there are no Transform components on the canvas.

Mafs now supports custom components! Send in the dancing pizzas:

This release exposes a few APIs for end-user consumption:

  • --mafs-view-transform and --mafs-user-transform, which are CSS matrices for use in style.transform attributes.
  • useTransformContext, which are those same matrices but accessible from JavaScript.
  • vec.toCSS(matrix) which will print a matrix ("matrix(...)") for usage in CSS/SVG.
  • usePaneContext which indicates which "panes" are visible to the user, allowing you to avoid rendering offscreen elements.