stevenpetryk / mafs

React components for interactive math

Home Page:https://mafs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not all elements are affected by Transform

stevenpetryk opened this issue · comments

It would be handy if CartesianCoordinates, Text, Functions, and VectorFields were affected by Transform.

CartesianCoordinates, VectorFields, and both Function types are currently not supported simply because they use the "pane context", which is Mafs' way of not computing offscreen elements. All these components only render roughly the area you're looking at. However, I'm no wizard and I feel like the linear algebra involved in doing the lazy evaluation in a transformed coordinate space would be really tough.

Text is not transformed just because I figured people would want to preserve the legibility of the text and only transform the anchor point. We could definitely transform the text itself though (or make it an option). Maybe something like <Text transformBehavior="anchor|distort" /> or something.