Skip to content

Commit b004140

Browse files
committed
update components from react 0.3.5
1 parent 2fd36c4 commit b004140

9 files changed

+149
-102
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dashMpComponents
22
Title: Dash components for the Materials Project
3-
Version: 0.4.37
3+
Version: 0.4.38
44
Description: Dash components for the Materials Project
55
Depends: R (>= 3.0.2)
66
Imports:

dash_mp_components/CrystalToolkitScene.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ class CrystalToolkitScene(Component):
6767
time imageData was set. Use this prop in dash callbacks to trigger
6868
downloads of imageData.
6969
70+
- imageRequest (optional):
71+
Set to trigger a screenshot or scene download. Must be an object
72+
with the following structure: { \"filetype\": \"png\" // the
73+
image format (\"png\", \"dae\") } Passing this prop as an object
74+
ensures that new requests are triggered any time the prop is set.
75+
7076
- imageType (optional):
7177
File type to be downloaded as an image. Either png or dae.
7278
@@ -126,10 +132,10 @@ class CrystalToolkitScene(Component):
126132
_namespace = 'dash_mp_components'
127133
_type = 'CrystalToolkitScene'
128134
@_explicitize_args
129-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, data=Component.UNDEFINED, settings=Component.UNDEFINED, toggleVisibility=Component.UNDEFINED, imageType=Component.UNDEFINED, imageData=Component.UNDEFINED, imageDataTimestamp=Component.UNDEFINED, fileOptions=Component.UNDEFINED, fileType=Component.UNDEFINED, fileTimestamp=Component.UNDEFINED, selectedObject=Component.UNDEFINED, sceneSize=Component.UNDEFINED, axisView=Component.UNDEFINED, inletSize=Component.UNDEFINED, inletPadding=Component.UNDEFINED, debug=Component.UNDEFINED, animation=Component.UNDEFINED, currentCameraState=Component.UNDEFINED, customCameraState=Component.UNDEFINED, showControls=Component.UNDEFINED, showExpandButton=Component.UNDEFINED, showImageButton=Component.UNDEFINED, showExportButton=Component.UNDEFINED, showPositionButton=Component.UNDEFINED, **kwargs):
130-
self._prop_names = ['children', 'id', 'animation', 'axisView', 'className', 'currentCameraState', 'customCameraState', 'data', 'debug', 'fileOptions', 'fileTimestamp', 'fileType', 'imageData', 'imageDataTimestamp', 'imageType', 'inletPadding', 'inletSize', 'sceneSize', 'selectedObject', 'setProps', 'settings', 'showControls', 'showExpandButton', 'showExportButton', 'showImageButton', 'showPositionButton', 'toggleVisibility']
135+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, data=Component.UNDEFINED, settings=Component.UNDEFINED, toggleVisibility=Component.UNDEFINED, imageRequest=Component.UNDEFINED, imageType=Component.UNDEFINED, imageData=Component.UNDEFINED, imageDataTimestamp=Component.UNDEFINED, fileOptions=Component.UNDEFINED, fileType=Component.UNDEFINED, fileTimestamp=Component.UNDEFINED, selectedObject=Component.UNDEFINED, sceneSize=Component.UNDEFINED, axisView=Component.UNDEFINED, inletSize=Component.UNDEFINED, inletPadding=Component.UNDEFINED, debug=Component.UNDEFINED, animation=Component.UNDEFINED, currentCameraState=Component.UNDEFINED, customCameraState=Component.UNDEFINED, showControls=Component.UNDEFINED, showExpandButton=Component.UNDEFINED, showImageButton=Component.UNDEFINED, showExportButton=Component.UNDEFINED, showPositionButton=Component.UNDEFINED, **kwargs):
136+
self._prop_names = ['children', 'id', 'animation', 'axisView', 'className', 'currentCameraState', 'customCameraState', 'data', 'debug', 'fileOptions', 'fileTimestamp', 'fileType', 'imageData', 'imageDataTimestamp', 'imageRequest', 'imageType', 'inletPadding', 'inletSize', 'sceneSize', 'selectedObject', 'setProps', 'settings', 'showControls', 'showExpandButton', 'showExportButton', 'showImageButton', 'showPositionButton', 'toggleVisibility']
131137
self._valid_wildcard_attributes = []
132-
self.available_properties = ['children', 'id', 'animation', 'axisView', 'className', 'currentCameraState', 'customCameraState', 'data', 'debug', 'fileOptions', 'fileTimestamp', 'fileType', 'imageData', 'imageDataTimestamp', 'imageType', 'inletPadding', 'inletSize', 'sceneSize', 'selectedObject', 'setProps', 'settings', 'showControls', 'showExpandButton', 'showExportButton', 'showImageButton', 'showPositionButton', 'toggleVisibility']
138+
self.available_properties = ['children', 'id', 'animation', 'axisView', 'className', 'currentCameraState', 'customCameraState', 'data', 'debug', 'fileOptions', 'fileTimestamp', 'fileType', 'imageData', 'imageDataTimestamp', 'imageRequest', 'imageType', 'inletPadding', 'inletSize', 'sceneSize', 'selectedObject', 'setProps', 'settings', 'showControls', 'showExpandButton', 'showExportButton', 'showImageButton', 'showPositionButton', 'toggleVisibility']
133139
self.available_wildcard_properties = []
134140
_explicit_args = kwargs.pop('_explicit_args')
135141
_locals = locals()

dash_mp_components/SearchUIDataHeader.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ class SearchUIDataHeader(Component):
99
1010
Keyword arguments:
1111
12-
- id (string; optional)"""
13-
_children_props = []
14-
_base_nodes = ['children']
12+
- id (string; optional)
13+
14+
- exportDataButton (a list of or a singular dash component, string or number; optional)"""
15+
_children_props = ['exportDataButton']
16+
_base_nodes = ['exportDataButton', 'children']
1517
_namespace = 'dash_mp_components'
1618
_type = 'SearchUIDataHeader'
1719
@_explicitize_args
18-
def __init__(self, id=Component.UNDEFINED, **kwargs):
19-
self._prop_names = ['id']
20+
def __init__(self, id=Component.UNDEFINED, exportDataButton=Component.UNDEFINED, **kwargs):
21+
self._prop_names = ['id', 'exportDataButton']
2022
self._valid_wildcard_attributes = []
21-
self.available_properties = ['id']
23+
self.available_properties = ['id', 'exportDataButton']
2224
self.available_wildcard_properties = []
2325
_explicit_args = kwargs.pop('_explicit_args')
2426
_locals = locals()

dash_mp_components/SearchUIGrid.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ class SearchUIGrid(Component):
1111
1212
Keyword arguments:
1313
14-
- id (string; optional)"""
15-
_children_props = []
16-
_base_nodes = ['children']
14+
- id (string; optional)
15+
16+
- exportDataButton (a list of or a singular dash component, string or number; optional)"""
17+
_children_props = ['exportDataButton']
18+
_base_nodes = ['exportDataButton', 'children']
1719
_namespace = 'dash_mp_components'
1820
_type = 'SearchUIGrid'
1921
@_explicitize_args
20-
def __init__(self, id=Component.UNDEFINED, **kwargs):
21-
self._prop_names = ['id']
22+
def __init__(self, id=Component.UNDEFINED, exportDataButton=Component.UNDEFINED, **kwargs):
23+
self._prop_names = ['id', 'exportDataButton']
2224
self._valid_wildcard_attributes = []
23-
self.available_properties = ['id']
25+
self.available_properties = ['id', 'exportDataButton']
2426
self.available_wildcard_properties = []
2527
_explicit_args = kwargs.pop('_explicit_args')
2628
_locals = locals()

0 commit comments

Comments
 (0)