You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update to react-vtk-js@1.2.0
* update generated files
* Update to react-vtk-js@1.2.1
* update generated files
* improve pyvista-terrain demo with picking
* add support for multi-array fields
* udpate generated files
* Apply black to demos
* Change default to None instead of empty array
This ensures we are safe from mutations
* npm run build
* Bump version
Co-authored-by: xhlulu <xhlperso@gmail.com>
Copy file name to clipboardExpand all lines: dash_vtk/View.py
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -62,14 +62,21 @@ class View(Component):
62
62
- cameraViewUp (list; default [0, 1, 0]): Initial camera position from an object in [0,0,0]
63
63
- cameraParallelProjection (boolean; default False): Use parallel projection (default: false)
64
64
- triggerRender (number; default 0): Property use to trigger a render when changing.
65
-
- triggerResetCamera (number; default 0): Property use to trigger a resetCamera when changing."""
65
+
- triggerResetCamera (number; default 0): Property use to trigger a resetCamera when changing.
66
+
- pickingModes (list of strings; optional): List of picking listeners to bind. The supported values are `click` and `hover`. By default it is disabled (empty array).
67
+
- clickInfo (dict; optional): Read-only prop. To use this, make sure that `pickingModes` contains `click`.
68
+
This prop is updated when an element in the map is clicked. This contains
69
+
the picking info describing the object being clicked on.
70
+
- hoverInfo (dict; optional): Read-only prop. To use this, make sure that `pickingModes` contains `hover`.
71
+
This prop is updated when an element in the map is hovered. This contains
72
+
the picking info describing the object being hovered."""
Copy file name to clipboardExpand all lines: dash_vtk/metadata.json
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -334,6 +334,20 @@
334
334
"computed": false
335
335
}
336
336
},
337
+
"showCubeAxes": {
338
+
"type": {
339
+
"name": "bool"
340
+
},
341
+
"required": false,
342
+
"description": "Show/Hide Cube Axes for the given representation"
343
+
},
344
+
"cubeAxesStyle": {
345
+
"type": {
346
+
"name": "object"
347
+
},
348
+
"required": false,
349
+
"description": "Configure cube Axes style by overriding the set of properties defined\nhttps://github.com/Kitware/vtk-js/blob/HEAD/Sources/Rendering/Core/CubeAxesActor/index.js#L703-L719"
350
+
},
337
351
"children": {
338
352
"type": {
339
353
"name": "union",
@@ -1169,6 +1183,30 @@
1169
1183
"computed": false
1170
1184
}
1171
1185
},
1186
+
"pickingModes": {
1187
+
"type": {
1188
+
"name": "arrayOf",
1189
+
"value": {
1190
+
"name": "string"
1191
+
}
1192
+
},
1193
+
"required": false,
1194
+
"description": "List of picking listeners to bind. The supported values are `click` and `hover`. By default it is disabled (empty array)."
1195
+
},
1196
+
"clickInfo": {
1197
+
"type": {
1198
+
"name": "object"
1199
+
},
1200
+
"required": false,
1201
+
"description": "Read-only prop. To use this, make sure that `pickingModes` contains `click`.\nThis prop is updated when an element in the map is clicked. This contains\nthe picking info describing the object being clicked on."
1202
+
},
1203
+
"hoverInfo": {
1204
+
"type": {
1205
+
"name": "object"
1206
+
},
1207
+
"required": false,
1208
+
"description": "Read-only prop. To use this, make sure that `pickingModes` contains `hover`.\nThis prop is updated when an element in the map is hovered. This contains\nthe picking info describing the object being hovered."
0 commit comments