Add axes #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First pass is quite rough; the items it needs next are:
Should be able to grab most of what's needed for axis code from
https://github.com/bwlewis/rthreejs/blob/master/inst/htmlwidgets/scatterplotThree.js
Probably best to put the axis stuff in its own file at this point.
I think I will need to go back and forth between this and the movable view. First just use the trackball controls, then come back and get this looking as nice as the transform gizmo (see eg https://github.com/mrdoob/three.js/blob/master/examples/js/controls/TransformControls.js) then try to get view manipulating "correctly" then come back and add self-adjusting ticks and labels, etc.
Actually the code for TransformControls is right in node_modules/three
Relevant to axis labels: https://stackoverflow.com/questions/35386729/sprite-scaling-causes-incorrect-positioning-and-rotation-in-three-js/35433819#35433819
Very nice axes for 3d plotting with R: https://github.com/bwlewis/rthreejs/blob/master/inst/htmlwidgets/scatterplotThree.js; maybe look at this for tick scaling
Key question: how do we determine the extent of each axis? Want them to always end just inside the viewport.