Skip to content

Commit 4185023

Browse files
authored
Merge pull request #63 from rodrigomologni/feat/enable-showOrientationAxes
Add showOrientationAxes in View
2 parents 2129bd8 + dafea2e commit 4185023

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"dependencies": {
2727
"@plotly/dash-component-plugins": "^1.2.0",
2828
"ramda": "^0.26.1",
29-
"react-vtk-js": "^1.5.1"
29+
"react-vtk-js": "^1.10.0"
3030
},
3131
"devDependencies": {
3232
"@babel/core": "^7.5.4",

src/lib/components/View.react.js

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { View as VtkItem } from '../AsyncReactVTK';
1010
* - `cameraPosition`: [0, 0, 1]
1111
* - `cameraViewUp`: [0, 1, 0]
1212
* - `cameraParallelProjection`: false
13+
* - `showOrientationAxes`: true
1314
*/
1415
export default function View(props) {
1516
return <React.Suspense fallback={null}><VtkItem {...props} /></React.Suspense>;
@@ -62,6 +63,7 @@ View.defaultProps = {
6263
shift: true,
6364
},
6465
],
66+
showOrientationAxes: true,
6567
};
6668

6769
View.propTypes = {
@@ -142,4 +144,9 @@ View.propTypes = {
142144
PropTypes.arrayOf(PropTypes.node),
143145
PropTypes.node,
144146
]),
147+
148+
/**
149+
* Show/Hide orientation axes.
150+
*/
151+
showOrientationAxes: PropTypes.bool,
145152
};

0 commit comments

Comments
 (0)