Best way to implement a "toggle x axis log scale" for a 2D line plot?

Hi,

I’m using three.js to do 2D line plots (using OrthographicCamera and the Line object). I’d like to enable a “set x-axis log mode” toggle, and wondered what the best approach would be.

One idea would be to implement a custom BufferGeometry class which provides a toggleXAxisLogMode() member which would replace all of the x components in the position attribute and set needsUpdate=true;

But, I wondered if there was a more typical way to do this? Because I looked through a lot of the custom geometries in src/geometries, and none of them provide new methods for actually morphing the existing positions.

Any advice would be greatly appreciated!