Closed Lorp closed 4 months ago
Fixed by adding a grid-style selector, adding an option for a simple grid that increments every 20 SVG units.
This gets quite slow when the grid is hi-res ("fill-space-20" mode) and the canvas is large. The instantiation of the IVS is a bottleneck and can be much improved. Currently, for each screen refresh, it creates a new SamsaInstance, and checks the instance.tuple property to know where the transformed axis values are in designspace. Creating Samsa instances is fairly lightweight, but it would be much more efficient to instantiate it directly from the unencoded IVS object that is already in memory.
Currently the only grid mode is to display a grid of instances at powers of 10 as well as min/default/max (thus in a Width axis going from 62.5 to 100, we have graticules of 62.5, 70, 80, 90, 100).
As mentioned in #10:
This should be helpful in getting a more detailed understanding of how space is being distorted. Ideally allow customisation of how dense the grid is.