jamesleesaunders / d3-x3d

3D Data Driven Charting Library with D3 and X3D
https://jamesleesaunders.github.io/d3-x3d/
GNU General Public License v2.0
110 stars 22 forks source link

How to disable rotation x or y or z in chart #202

Closed zSakuraEvilz closed 2 years ago

zSakuraEvilz commented 3 years ago

Hi everyone I found a way to disable all rotations in the chart. Bằng cách overwrite x3dom.Viewarea.prototype.onDrag x3dom.Viewarea.prototype.onDrag = function (x, y, buttonState) { // .. if (buttonState === 1) { return; } } However, I want to disable rotation only z. How to disable rotation x or y or z in the chart? Pls, help me. Thank

jamesleesaunders commented 2 years ago

HI @zSakuraEvilz apologies for late reply. This is probably a question for the main x3dom project rather than the d3-x3dom project. I how you figured it out.