Skip to content

Commit

Permalink
Release v0.0.5 (#25)
Browse files Browse the repository at this point in the history
* Apply black on demos

* Update changelog

* Bump version

* npm install

* npm run build
  • Loading branch information
Xing Han Lu authored Feb 15, 2021
1 parent d7ec0f0 commit ad108b0
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 50 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "DashVtk"
uuid = "1b08a953-4be3-4667-9a23-818b1eccd4c7"
authors = ["Kitware Inc <[email protected]> and Plotly Technologies <[email protected]>"]
version = "0.0.4"
version = "0.0.5"

[deps]
Dash = "1b08a953-4be3-4667-9a23-3db579824955"
Expand Down
4 changes: 2 additions & 2 deletions R/internal.R
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion dash_vtk/package-info.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 1 addition & 4 deletions demos/dicom-ct-lung/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),]
)
)

Expand Down
4 changes: 1 addition & 3 deletions demos/pyvista-terrain-following-mesh/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ def updateWarp(factor=1):
],
colorMapPreset="erdc_blue2green_muted",
colorDataRange=color_range,
property={
"edgeVisibility": True,
},
property={"edgeVisibility": True,},
)
],
)
Expand Down
6 changes: 1 addition & 5 deletions demos/slice-rendering/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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%"}),
],
Expand Down
5 changes: 1 addition & 4 deletions demos/usage-algorithm/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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%"},)
],
),
],
Expand Down
24 changes: 4 additions & 20 deletions demos/usage-vtk-cfd/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
],
),
Expand Down
5 changes: 1 addition & 4 deletions demos/volume-rendering/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),]
)
)

Expand Down
14 changes: 14 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/DashVtk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -35,14 +35,14 @@ function __init__()
[
DashBase.Resource(
relative_package_path = "dash_vtk.min.js",
external_url = "https://unpkg.com/[email protected].4/dash_vtk/dash_vtk.min.js",
external_url = "https://unpkg.com/[email protected].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/[email protected].4/dash_vtk/dash_vtk.min.js.map",
external_url = "https://unpkg.com/[email protected].5/dash_vtk/dash_vtk.min.js.map",
dynamic = true,
async = nothing,
type = :js
Expand Down

0 comments on commit ad108b0

Please sign in to comment.