simularium / simularium-viewer

NPM package to view Simularium trajectories in 3D
Apache License 2.0
2 stars 0 forks source link

add viewer method to disable pan functionality #361

Closed interim17 closed 7 months ago

interim17 commented 7 months ago

NBSV designs specify that Pan functionality should be disabled, so we need to expose a viewer method to set controls.enablePan = false

If we anticipate front end applications that would want to more flexibly enable/disable pan, rotate, or dolly we could generalize this later, but this is all we need for NBSV MVP.

github-actions[bot] commented 7 months ago

jest coverage report ๐Ÿงช

Total coverage

Status Category Percentage Covered / Total
๐Ÿ”ด Statements 40.73% 2017/4952
๐Ÿ”ด Branches 43.99% 831/1889
๐Ÿ”ด Functions 37.14% 413/1112
๐Ÿ”ด Lines 40.95% 1931/4715

Status of coverage: ๐ŸŸข - ok, ๐ŸŸก - slightly more than threshold, ๐Ÿ”ด - under the threshold

Show files with reduced coverage ๐Ÿ”ป ### Reduced coverage | Status | Filename | Statements | Branches | Functions | Lines | | :----: | :-------------- | :--------- | :------- | :-------- | :------ | | ๐Ÿ”ด | index.ts | 7.78% | 7.5% | 5.78% | 7.75% | | ๐Ÿ”ด | src/controller | 29.57% | 15.1% | 17.24% | 29.61% | | ๐Ÿ”ด | src/visGeometry | 21.92% | 23.11% | 27.92% | 21.81% | > Status of coverage: ๐ŸŸข - ok, ๐ŸŸก - slightly more than threshold, ๐Ÿ”ด - under the threshold