@@ -67,6 +67,12 @@ class CrystalToolkitScene(Component):
67
67
time imageData was set. Use this prop in dash callbacks to trigger
68
68
downloads of imageData.
69
69
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
+
70
76
- imageType (optional):
71
77
File type to be downloaded as an image. Either png or dae.
72
78
@@ -126,10 +132,10 @@ class CrystalToolkitScene(Component):
126
132
_namespace = 'dash_mp_components'
127
133
_type = 'CrystalToolkitScene'
128
134
@_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' ]
131
137
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' ]
133
139
self .available_wildcard_properties = []
134
140
_explicit_args = kwargs .pop ('_explicit_args' )
135
141
_locals = locals ()
0 commit comments