Lorp / fencer

GUI app to create avar2 mappings in fonts
Apache License 2.0
11 stars 0 forks source link

Allow a dense grid of arrows to fill the 2D space #12

Closed Lorp closed 4 months ago

Lorp commented 4 months ago

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:

  1. In Mappings Visual pane, Allow the user to define the resolution of the space sampling grid for more/less magnetic field arrows

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.

Lorp commented 4 months ago

Fixed by adding a grid-style selector, adding an option for a simple grid that increments every 20 SVG units.

Lorp commented 4 months ago

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.