diff --git a/DESCRIPTION b/DESCRIPTION index 3523fb1..a8fbb56 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: dashVtk Title: React based declarative usage of vtk.js for Dash -Version: 0.0.4 +Version: 0.0.5 Description: React based declarative usage of vtk.js for Dash Depends: R (>= 3.0.2) Imports: diff --git a/Project.toml b/Project.toml index 9c951b1..f2b2a54 100644 --- a/Project.toml +++ b/Project.toml @@ -2,7 +2,7 @@ name = "DashVtk" uuid = "1b08a953-4be3-4667-9a23-818b1eccd4c7" authors = ["Kitware Inc and Plotly Technologies "] -version = "0.0.4" +version = "0.0.5" [deps] Dash = "1b08a953-4be3-4667-9a23-3db579824955" diff --git a/R/internal.R b/R/internal.R index b81aa16..1b961ff 100644 --- a/R/internal.R +++ b/R/internal.R @@ -1,12 +1,12 @@ .dashVtk_js_metadata <- function() { deps_metadata <- list(`dash_vtk` = structure(list(name = "dash_vtk", -version = "0.0.4", src = list(href = NULL, +version = "0.0.5", src = list(href = NULL, file = "deps"), meta = NULL, script = 'dash_vtk.min.js', stylesheet = NULL, head = NULL, attachment = NULL, package = "dashVtk", all_files = FALSE), class = "html_dependency"), `dash_vtk` = structure(list(name = "dash_vtk", -version = "0.0.4", src = list(href = NULL, +version = "0.0.5", src = list(href = NULL, file = "deps"), meta = NULL, script = 'dash_vtk.min.js.map', stylesheet = NULL, head = NULL, attachment = NULL, package = "dashVtk", diff --git a/dash_vtk/package-info.json b/dash_vtk/package-info.json index 014743b..57a8f60 100644 --- a/dash_vtk/package-info.json +++ b/dash_vtk/package-info.json @@ -1,6 +1,6 @@ { "name": "dash_vtk", - "version": "0.0.4", + "version": "0.0.5", "description": "React based declarative usage of vtk.js for Dash", "repository": { "type": "git", diff --git a/demos/dicom-ct-lung/app.py b/demos/dicom-ct-lung/app.py index 63f73dd..aa762fb 100644 --- a/demos/dicom-ct-lung/app.py +++ b/demos/dicom-ct-lung/app.py @@ -18,10 +18,7 @@ vtk_view = dash_vtk.View( dash_vtk.VolumeRepresentation( - children=[ - dash_vtk.VolumeController(), - dash_vtk.Volume(state=volume_state), - ] + children=[dash_vtk.VolumeController(), dash_vtk.Volume(state=volume_state),] ) ) diff --git a/demos/pyvista-terrain-following-mesh/app.py b/demos/pyvista-terrain-following-mesh/app.py index e74fd08..b6dc359 100644 --- a/demos/pyvista-terrain-following-mesh/app.py +++ b/demos/pyvista-terrain-following-mesh/app.py @@ -68,9 +68,7 @@ def updateWarp(factor=1): ], colorMapPreset="erdc_blue2green_muted", colorDataRange=color_range, - property={ - "edgeVisibility": True, - }, + property={"edgeVisibility": True,}, ) ], ) diff --git a/demos/slice-rendering/app.py b/demos/slice-rendering/app.py index 3340f90..8cabb0b 100644 --- a/demos/slice-rendering/app.py +++ b/demos/slice-rendering/app.py @@ -85,11 +85,7 @@ children=[ html.Div( style={"height": "20%", "display": "flex", "align-items": "center"}, - children=[ - html.Br(), - controls, - html.Br(), - ], + children=[html.Br(), controls, html.Br(),], ), html.Div(slice_view, style={"height": "80%"}), ], diff --git a/demos/usage-algorithm/app.py b/demos/usage-algorithm/app.py index b164f9f..04176f3 100644 --- a/demos/usage-algorithm/app.py +++ b/demos/usage-algorithm/app.py @@ -63,10 +63,7 @@ dbc.Col( width=8, children=[ - html.Div( - vtk_view, - style={"height": "100%", "width": "100%"}, - ) + html.Div(vtk_view, style={"height": "100%", "width": "100%"},) ], ), ], diff --git a/demos/usage-vtk-cfd/app.py b/demos/usage-vtk-cfd/app.py index 97a15bf..92f9bb2 100644 --- a/demos/usage-vtk-cfd/app.py +++ b/demos/usage-vtk-cfd/app.py @@ -115,36 +115,20 @@ def getSeedState(self): children=[ dash_vtk.GeometryRepresentation( id="bike-rep", - children=[ - dash_vtk.Mesh( - id="bike", - state=viz.getBikeMesh(), - ) - ], + children=[dash_vtk.Mesh(id="bike", state=viz.getBikeMesh(),)], ), dash_vtk.GeometryRepresentation( id="tubes-rep", colorMapPreset="erdc_rainbow_bright", colorDataRange=viz.getColorRange(), - children=[ - dash_vtk.Mesh( - id="tubes-mesh", - state=viz.getTubesMesh("p"), - ) - ], + children=[dash_vtk.Mesh(id="tubes-mesh", state=viz.getTubesMesh("p"),)], ), dash_vtk.GeometryRepresentation( id="seed-rep", - property={ - "color": [0.8, 0, 0], - "representation": 0, - "pointSize": 8, - }, + property={"color": [0.8, 0, 0], "representation": 0, "pointSize": 8,}, children=[ dash_vtk.Algorithm( - id="seed-line", - vtkClass="vtkLineSource", - state=viz.getSeedState(), + id="seed-line", vtkClass="vtkLineSource", state=viz.getSeedState(), ) ], ), diff --git a/demos/volume-rendering/app.py b/demos/volume-rendering/app.py index fdc323e..ed7502b 100644 --- a/demos/volume-rendering/app.py +++ b/demos/volume-rendering/app.py @@ -20,10 +20,7 @@ vtk_view = dash_vtk.View( dash_vtk.VolumeRepresentation( - children=[ - dash_vtk.VolumeController(), - dash_vtk.Volume(state=volume_state), - ] + children=[dash_vtk.VolumeController(), dash_vtk.Volume(state=volume_state),] ) ) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index dafb98c..3ad3cf8 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -6,6 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.0.5] - 2021-02-15 + +### Added +* 3 new demos using dicom (#24) +* GlyphRepresentation + +### Changed +* Added `vtk` to `setup.py`'s install requires. + +### Fixed +* VolumeDataRepresentation typo +* GIF URL in README.md + + ## [0.0.4] - 2021-02-08 ### Changed diff --git a/package-lock.json b/package-lock.json index f9af551..783d74c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "dash_vtk", - "version": "0.0.4", + "version": "0.0.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 014743b..57a8f60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dash_vtk", - "version": "0.0.4", + "version": "0.0.5", "description": "React based declarative usage of vtk.js for Dash", "repository": { "type": "git", diff --git a/src/DashVtk.jl b/src/DashVtk.jl index 5313653..58b74f5 100644 --- a/src/DashVtk.jl +++ b/src/DashVtk.jl @@ -3,7 +3,7 @@ module DashVtk using Dash const resources_path = realpath(joinpath( @__DIR__, "..", "deps")) -const version = "0.0.4" +const version = "0.0.5" include("vtk_algorithm.jl") include("vtk_calculator.jl") @@ -35,14 +35,14 @@ function __init__() [ DashBase.Resource( relative_package_path = "dash_vtk.min.js", - external_url = "https://unpkg.com/dash_vtk@0.0.4/dash_vtk/dash_vtk.min.js", + external_url = "https://unpkg.com/dash_vtk@0.0.5/dash_vtk/dash_vtk.min.js", dynamic = nothing, async = nothing, type = :js ), DashBase.Resource( relative_package_path = "dash_vtk.min.js.map", - external_url = "https://unpkg.com/dash_vtk@0.0.4/dash_vtk/dash_vtk.min.js.map", + external_url = "https://unpkg.com/dash_vtk@0.0.5/dash_vtk/dash_vtk.min.js.map", dynamic = true, async = nothing, type = :js