Skip to content

Commit efc6a09

Browse files
Xing Han LujourdainJoseph Damiba
authored
Add async loading to reduce package size (#29)
* Change import path * npm run build * Add babel's plugin-syntax-dynamic-import Enables the use of the import function inside react for React.lazy * Add LazyComponents module This exports lazy components which are imported in the respective component scripts. This is needed in order for dash to detect the component and add it to _imports_.py * Update View.react.js to use async component * npm run build * npm run build * npm i && npm run build * install @plotly/webpack-dash-dynamic-import * npm i terser-webpack-plugin --save-dev * Add rules and optimization to webpack.config.js * change terser-webpack-plugin to v2.x * npm run build * Upgrade react-vtk-js to 1.2.2 * npm run build * Remove use of Suspense in View.react.js * npm run build * npm run build * install dash-components-plugins * npm run build * Try to use suspense/lazy (#40) * tried stuff * ok let's go back to where it was before * tried some more stuff that seems to make it work? * set async to true * Add usage simple, simplify import structure * Generalized the async component with a async component builder function Temporarily commenting out the other components that were causing problem * Expand async to more components; usage.py now runs but still white square * Improve naming for clarity * Replace all with async react vtk * Add more components to async-react-vtk, make builder more verbose * Wrap Mesh with lazy/suspense * npm run build * Fix incorrect source map * Add tests for docs tutorials * Move the async import call inside the builder function * npm run build * Tests: Increase sleep time for demo, decrease for tutorials * fix typo in usage-vtk-cfd * update react-vtk-js to 1.4.1 * update generated files * trigger circleci * update react-vtk-js to 1.4.2 * update generated files * trigger ci * Apply black to all tests and usage files * Remove dummy app * Update code to be eslint compliant * run build Co-authored-by: Sebastien Jourdain <[email protected]> * Add async files to manifest.in * update react-vtk-js to 1.4.3 * Upgrade react-vtk-js to 1.5.0 * Remove 🔪 unused module and cache group * npm run build Co-authored-by: Sebastien Jourdain <[email protected]> Co-authored-by: Joseph Damiba <[email protected]>
1 parent b29d047 commit efc6a09

File tree

117 files changed

+1843
-1248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1843
-1248
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,4 @@ GitHub.sublime-settings
278278
dash_vtk/output.js
279279
*deps/output.js
280280
.vscode/settings.json
281+
.build_cache

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include dash_vtk/dash_vtk.min.js
22
include dash_vtk/dash_vtk.min.js.map
3+
include dash_vtk/async-ReactVTK.js
4+
include dash_vtk/async-ReactVTK.js.map
35
include dash_vtk/metadata.json
46
include dash_vtk/package-info.json
57
include README.md

R/internal.R

+12
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ version = "0.0.7", src = list(href = NULL,
1010
file = "deps"), meta = NULL,
1111
script = 'dash_vtk.min.js.map',
1212
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashVtk",
13+
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
14+
`dash_vtk` = structure(list(name = "dash_vtk",
15+
version = "0.0.7", src = list(href = NULL,
16+
file = "deps"), meta = NULL,
17+
script = 'async-ReactVTK.js',
18+
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashVtk",
19+
all_files = FALSE, async = TRUE), class = "html_dependency"),
20+
`dash_vtk` = structure(list(name = "dash_vtk",
21+
version = "0.0.7", src = list(href = NULL,
22+
file = "deps"), meta = NULL,
23+
script = 'async-ReactVTK.js.map',
24+
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashVtk",
1325
all_files = FALSE, dynamic = TRUE), class = "html_dependency"))
1426
return(deps_metadata)
1527
}

R/vtkAlgorithm.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkAlgorithm <- function(children=NULL, id=NULL, port=NULL, vtkClass=NULL, state=NULL) {
3+
vtkAlgorithm <- function(children=NULL, id=NULL, port=NULL, state=NULL, vtkClass=NULL) {
44

5-
props <- list(children=children, id=id, port=port, vtkClass=vtkClass, state=state)
5+
props <- list(children=children, id=id, port=port, state=state, vtkClass=vtkClass)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'Algorithm',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'port', 'vtkClass', 'state'),
13+
propNames = c('children', 'id', 'port', 'state', 'vtkClass'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkCalculator.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkCalculator <- function(children=NULL, id=NULL, port=NULL, name=NULL, location=NULL, arrays=NULL, formula=NULL) {
3+
vtkCalculator <- function(children=NULL, id=NULL, arrays=NULL, formula=NULL, location=NULL, name=NULL, port=NULL) {
44

5-
props <- list(children=children, id=id, port=port, name=name, location=location, arrays=arrays, formula=formula)
5+
props <- list(children=children, id=id, arrays=arrays, formula=formula, location=location, name=name, port=port)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'Calculator',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'port', 'name', 'location', 'arrays', 'formula'),
13+
propNames = c('children', 'id', 'arrays', 'formula', 'location', 'name', 'port'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkDataArray.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkDataArray <- function(id=NULL, type=NULL, name=NULL, values=NULL, numberOfComponents=NULL, registration=NULL) {
3+
vtkDataArray <- function(id=NULL, name=NULL, numberOfComponents=NULL, registration=NULL, type=NULL, values=NULL) {
44

5-
props <- list(id=id, type=type, name=name, values=values, numberOfComponents=numberOfComponents, registration=registration)
5+
props <- list(id=id, name=name, numberOfComponents=numberOfComponents, registration=registration, type=type, values=values)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'DataArray',
1212
namespace = 'dash_vtk',
13-
propNames = c('id', 'type', 'name', 'values', 'numberOfComponents', 'registration'),
13+
propNames = c('id', 'name', 'numberOfComponents', 'registration', 'type', 'values'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkGeometryRepresentation.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkGeometryRepresentation <- function(children=NULL, id=NULL, actor=NULL, mapper=NULL, property=NULL, colorMapPreset=NULL, colorDataRange=NULL, showCubeAxes=NULL, cubeAxesStyle=NULL) {
3+
vtkGeometryRepresentation <- function(children=NULL, id=NULL, actor=NULL, colorDataRange=NULL, colorMapPreset=NULL, cubeAxesStyle=NULL, mapper=NULL, property=NULL, showCubeAxes=NULL) {
44

5-
props <- list(children=children, id=id, actor=actor, mapper=mapper, property=property, colorMapPreset=colorMapPreset, colorDataRange=colorDataRange, showCubeAxes=showCubeAxes, cubeAxesStyle=cubeAxesStyle)
5+
props <- list(children=children, id=id, actor=actor, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, cubeAxesStyle=cubeAxesStyle, mapper=mapper, property=property, showCubeAxes=showCubeAxes)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'GeometryRepresentation',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'actor', 'mapper', 'property', 'colorMapPreset', 'colorDataRange', 'showCubeAxes', 'cubeAxesStyle'),
13+
propNames = c('children', 'id', 'actor', 'colorDataRange', 'colorMapPreset', 'cubeAxesStyle', 'mapper', 'property', 'showCubeAxes'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkGlyphRepresentation.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkGlyphRepresentation <- function(children=NULL, id=NULL, actor=NULL, mapper=NULL, property=NULL, colorMapPreset=NULL, colorDataRange=NULL) {
3+
vtkGlyphRepresentation <- function(children=NULL, id=NULL, actor=NULL, colorDataRange=NULL, colorMapPreset=NULL, mapper=NULL, property=NULL) {
44

5-
props <- list(children=children, id=id, actor=actor, mapper=mapper, property=property, colorMapPreset=colorMapPreset, colorDataRange=colorDataRange)
5+
props <- list(children=children, id=id, actor=actor, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, mapper=mapper, property=property)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'GlyphRepresentation',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'actor', 'mapper', 'property', 'colorMapPreset', 'colorDataRange'),
13+
propNames = c('children', 'id', 'actor', 'colorDataRange', 'colorMapPreset', 'mapper', 'property'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkImageData.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkImageData <- function(children=NULL, id=NULL, port=NULL, dimensions=NULL, spacing=NULL, origin=NULL, direction=NULL) {
3+
vtkImageData <- function(children=NULL, id=NULL, dimensions=NULL, direction=NULL, origin=NULL, port=NULL, spacing=NULL) {
44

5-
props <- list(children=children, id=id, port=port, dimensions=dimensions, spacing=spacing, origin=origin, direction=direction)
5+
props <- list(children=children, id=id, dimensions=dimensions, direction=direction, origin=origin, port=port, spacing=spacing)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'ImageData',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'port', 'dimensions', 'spacing', 'origin', 'direction'),
13+
propNames = c('children', 'id', 'dimensions', 'direction', 'origin', 'port', 'spacing'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkPointCloudRepresentation.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkPointCloudRepresentation <- function(xyz=NULL, rgb=NULL, rgba=NULL, scalars=NULL, colorMapPreset=NULL, colorDataRange=NULL, property=NULL) {
3+
vtkPointCloudRepresentation <- function(colorDataRange=NULL, colorMapPreset=NULL, property=NULL, rgb=NULL, rgba=NULL, scalars=NULL, xyz=NULL) {
44

5-
props <- list(xyz=xyz, rgb=rgb, rgba=rgba, scalars=scalars, colorMapPreset=colorMapPreset, colorDataRange=colorDataRange, property=property)
5+
props <- list(colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, property=property, rgb=rgb, rgba=rgba, scalars=scalars, xyz=xyz)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'PointCloudRepresentation',
1212
namespace = 'dash_vtk',
13-
propNames = c('xyz', 'rgb', 'rgba', 'scalars', 'colorMapPreset', 'colorDataRange', 'property'),
13+
propNames = c('colorDataRange', 'colorMapPreset', 'property', 'rgb', 'rgba', 'scalars', 'xyz'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkPolyData.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkPolyData <- function(children=NULL, id=NULL, port=NULL, points=NULL, verts=NULL, lines=NULL, polys=NULL, strips=NULL, connectivity=NULL) {
3+
vtkPolyData <- function(children=NULL, id=NULL, connectivity=NULL, lines=NULL, points=NULL, polys=NULL, port=NULL, strips=NULL, verts=NULL) {
44

5-
props <- list(children=children, id=id, port=port, points=points, verts=verts, lines=lines, polys=polys, strips=strips, connectivity=connectivity)
5+
props <- list(children=children, id=id, connectivity=connectivity, lines=lines, points=points, polys=polys, port=port, strips=strips, verts=verts)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'PolyData',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'port', 'points', 'verts', 'lines', 'polys', 'strips', 'connectivity'),
13+
propNames = c('children', 'id', 'connectivity', 'lines', 'points', 'polys', 'port', 'strips', 'verts'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkReader.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkReader <- function(children=NULL, id=NULL, port=NULL, vtkClass=NULL, url=NULL, parseAsText=NULL, parseAsArrayBuffer=NULL, renderOnUpdate=NULL, resetCameraOnUpdate=NULL) {
3+
vtkReader <- function(children=NULL, id=NULL, parseAsArrayBuffer=NULL, parseAsText=NULL, port=NULL, renderOnUpdate=NULL, resetCameraOnUpdate=NULL, url=NULL, vtkClass=NULL) {
44

5-
props <- list(children=children, id=id, port=port, vtkClass=vtkClass, url=url, parseAsText=parseAsText, parseAsArrayBuffer=parseAsArrayBuffer, renderOnUpdate=renderOnUpdate, resetCameraOnUpdate=resetCameraOnUpdate)
5+
props <- list(children=children, id=id, parseAsArrayBuffer=parseAsArrayBuffer, parseAsText=parseAsText, port=port, renderOnUpdate=renderOnUpdate, resetCameraOnUpdate=resetCameraOnUpdate, url=url, vtkClass=vtkClass)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'Reader',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'port', 'vtkClass', 'url', 'parseAsText', 'parseAsArrayBuffer', 'renderOnUpdate', 'resetCameraOnUpdate'),
13+
propNames = c('children', 'id', 'parseAsArrayBuffer', 'parseAsText', 'port', 'renderOnUpdate', 'resetCameraOnUpdate', 'url', 'vtkClass'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkShareDataSet.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkShareDataSet <- function(children=NULL, id=NULL, port=NULL, name=NULL) {
3+
vtkShareDataSet <- function(children=NULL, id=NULL, name=NULL, port=NULL) {
44

5-
props <- list(children=children, id=id, port=port, name=name)
5+
props <- list(children=children, id=id, name=name, port=port)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'ShareDataSet',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'port', 'name'),
13+
propNames = c('children', 'id', 'name', 'port'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkSliceRepresentation.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkSliceRepresentation <- function(children=NULL, id=NULL, mapper=NULL, actor=NULL, property=NULL, colorMapPreset=NULL, colorDataRange=NULL, iSlice=NULL, jSlice=NULL, kSlice=NULL, xSlice=NULL, ySlice=NULL, zSlice=NULL) {
3+
vtkSliceRepresentation <- function(children=NULL, id=NULL, actor=NULL, colorDataRange=NULL, colorMapPreset=NULL, iSlice=NULL, jSlice=NULL, kSlice=NULL, mapper=NULL, property=NULL, xSlice=NULL, ySlice=NULL, zSlice=NULL) {
44

5-
props <- list(children=children, id=id, mapper=mapper, actor=actor, property=property, colorMapPreset=colorMapPreset, colorDataRange=colorDataRange, iSlice=iSlice, jSlice=jSlice, kSlice=kSlice, xSlice=xSlice, ySlice=ySlice, zSlice=zSlice)
5+
props <- list(children=children, id=id, actor=actor, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, iSlice=iSlice, jSlice=jSlice, kSlice=kSlice, mapper=mapper, property=property, xSlice=xSlice, ySlice=ySlice, zSlice=zSlice)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'SliceRepresentation',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'mapper', 'actor', 'property', 'colorMapPreset', 'colorDataRange', 'iSlice', 'jSlice', 'kSlice', 'xSlice', 'ySlice', 'zSlice'),
13+
propNames = c('children', 'id', 'actor', 'colorDataRange', 'colorMapPreset', 'iSlice', 'jSlice', 'kSlice', 'mapper', 'property', 'xSlice', 'ySlice', 'zSlice'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkView.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkView <- function(children=NULL, id=NULL, style=NULL, className=NULL, background=NULL, interactorSettings=NULL, cameraPosition=NULL, cameraViewUp=NULL, cameraParallelProjection=NULL, triggerRender=NULL, triggerResetCamera=NULL, pickingModes=NULL, clickInfo=NULL, hoverInfo=NULL) {
3+
vtkView <- function(children=NULL, id=NULL, background=NULL, cameraParallelProjection=NULL, cameraPosition=NULL, cameraViewUp=NULL, className=NULL, clickInfo=NULL, hoverInfo=NULL, interactorSettings=NULL, pickingModes=NULL, style=NULL, triggerRender=NULL, triggerResetCamera=NULL) {
44

5-
props <- list(children=children, id=id, style=style, className=className, background=background, interactorSettings=interactorSettings, cameraPosition=cameraPosition, cameraViewUp=cameraViewUp, cameraParallelProjection=cameraParallelProjection, triggerRender=triggerRender, triggerResetCamera=triggerResetCamera, pickingModes=pickingModes, clickInfo=clickInfo, hoverInfo=hoverInfo)
5+
props <- list(children=children, id=id, background=background, cameraParallelProjection=cameraParallelProjection, cameraPosition=cameraPosition, cameraViewUp=cameraViewUp, className=className, clickInfo=clickInfo, hoverInfo=hoverInfo, interactorSettings=interactorSettings, pickingModes=pickingModes, style=style, triggerRender=triggerRender, triggerResetCamera=triggerResetCamera)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'View',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'style', 'className', 'background', 'interactorSettings', 'cameraPosition', 'cameraViewUp', 'cameraParallelProjection', 'triggerRender', 'triggerResetCamera', 'pickingModes', 'clickInfo', 'hoverInfo'),
13+
propNames = c('children', 'id', 'background', 'cameraParallelProjection', 'cameraPosition', 'cameraViewUp', 'className', 'clickInfo', 'hoverInfo', 'interactorSettings', 'pickingModes', 'style', 'triggerRender', 'triggerResetCamera'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkVolumeController.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkVolumeController <- function(id=NULL, size=NULL, rescaleColorMap=NULL) {
3+
vtkVolumeController <- function(id=NULL, rescaleColorMap=NULL, size=NULL) {
44

5-
props <- list(id=id, size=size, rescaleColorMap=rescaleColorMap)
5+
props <- list(id=id, rescaleColorMap=rescaleColorMap, size=size)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'VolumeController',
1212
namespace = 'dash_vtk',
13-
propNames = c('id', 'size', 'rescaleColorMap'),
13+
propNames = c('id', 'rescaleColorMap', 'size'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkVolumeDataRepresentation.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkVolumeDataRepresentation <- function(id=NULL, dimensions=NULL, spacing=NULL, origin=NULL, rgb=NULL, rgba=NULL, scalars=NULL, scalarsType=NULL, mapper=NULL, volume=NULL, property=NULL, colorMapPreset=NULL, volumeController=NULL, controllerSize=NULL, rescaleColorMap=NULL, colorDataRange=NULL) {
3+
vtkVolumeDataRepresentation <- function(id=NULL, colorDataRange=NULL, colorMapPreset=NULL, controllerSize=NULL, dimensions=NULL, mapper=NULL, origin=NULL, property=NULL, rescaleColorMap=NULL, rgb=NULL, rgba=NULL, scalars=NULL, scalarsType=NULL, spacing=NULL, volume=NULL, volumeController=NULL) {
44

5-
props <- list(id=id, dimensions=dimensions, spacing=spacing, origin=origin, rgb=rgb, rgba=rgba, scalars=scalars, scalarsType=scalarsType, mapper=mapper, volume=volume, property=property, colorMapPreset=colorMapPreset, volumeController=volumeController, controllerSize=controllerSize, rescaleColorMap=rescaleColorMap, colorDataRange=colorDataRange)
5+
props <- list(id=id, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, controllerSize=controllerSize, dimensions=dimensions, mapper=mapper, origin=origin, property=property, rescaleColorMap=rescaleColorMap, rgb=rgb, rgba=rgba, scalars=scalars, scalarsType=scalarsType, spacing=spacing, volume=volume, volumeController=volumeController)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'VolumeDataRepresentation',
1212
namespace = 'dash_vtk',
13-
propNames = c('id', 'dimensions', 'spacing', 'origin', 'rgb', 'rgba', 'scalars', 'scalarsType', 'mapper', 'volume', 'property', 'colorMapPreset', 'volumeController', 'controllerSize', 'rescaleColorMap', 'colorDataRange'),
13+
propNames = c('id', 'colorDataRange', 'colorMapPreset', 'controllerSize', 'dimensions', 'mapper', 'origin', 'property', 'rescaleColorMap', 'rgb', 'rgba', 'scalars', 'scalarsType', 'spacing', 'volume', 'volumeController'),
1414
package = 'dashVtk'
1515
)
1616

R/vtkVolumeRepresentation.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkVolumeRepresentation <- function(children=NULL, id=NULL, mapper=NULL, volume=NULL, property=NULL, colorMapPreset=NULL, colorDataRange=NULL) {
3+
vtkVolumeRepresentation <- function(children=NULL, id=NULL, colorDataRange=NULL, colorMapPreset=NULL, mapper=NULL, property=NULL, volume=NULL) {
44

5-
props <- list(children=children, id=id, mapper=mapper, volume=volume, property=property, colorMapPreset=colorMapPreset, colorDataRange=colorDataRange)
5+
props <- list(children=children, id=id, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, mapper=mapper, property=property, volume=volume)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'VolumeRepresentation',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'mapper', 'volume', 'property', 'colorMapPreset', 'colorDataRange'),
13+
propNames = c('children', 'id', 'colorDataRange', 'colorMapPreset', 'mapper', 'property', 'volume'),
1414
package = 'dashVtk'
1515
)
1616

0 commit comments

Comments
 (0)