Skip to content

Commit ad108b0

Browse files
author
Xing Han Lu
authored
Release v0.0.5 (#25)
* Apply black on demos * Update changelog * Bump version * npm install * npm run build
1 parent d7ec0f0 commit ad108b0

File tree

14 files changed

+33
-50
lines changed

14 files changed

+33
-50
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dashVtk
22
Title: React based declarative usage of vtk.js for Dash
3-
Version: 0.0.4
3+
Version: 0.0.5
44
Description: React based declarative usage of vtk.js for Dash
55
Depends: R (>= 3.0.2)
66
Imports:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "DashVtk"
33
uuid = "1b08a953-4be3-4667-9a23-818b1eccd4c7"
44
authors = ["Kitware Inc <[email protected]> and Plotly Technologies <[email protected]>"]
5-
version = "0.0.4"
5+
version = "0.0.5"
66

77
[deps]
88
Dash = "1b08a953-4be3-4667-9a23-3db579824955"

R/internal.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
.dashVtk_js_metadata <- function() {
22
deps_metadata <- list(`dash_vtk` = structure(list(name = "dash_vtk",
3-
version = "0.0.4", src = list(href = NULL,
3+
version = "0.0.5", src = list(href = NULL,
44
file = "deps"), meta = NULL,
55
script = 'dash_vtk.min.js',
66
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashVtk",
77
all_files = FALSE), class = "html_dependency"),
88
`dash_vtk` = structure(list(name = "dash_vtk",
9-
version = "0.0.4", src = list(href = NULL,
9+
version = "0.0.5", 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",

dash_vtk/package-info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash_vtk",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "React based declarative usage of vtk.js for Dash",
55
"repository": {
66
"type": "git",

demos/dicom-ct-lung/app.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818

1919
vtk_view = dash_vtk.View(
2020
dash_vtk.VolumeRepresentation(
21-
children=[
22-
dash_vtk.VolumeController(),
23-
dash_vtk.Volume(state=volume_state),
24-
]
21+
children=[dash_vtk.VolumeController(), dash_vtk.Volume(state=volume_state),]
2522
)
2623
)
2724

demos/pyvista-terrain-following-mesh/app.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ def updateWarp(factor=1):
6868
],
6969
colorMapPreset="erdc_blue2green_muted",
7070
colorDataRange=color_range,
71-
property={
72-
"edgeVisibility": True,
73-
},
71+
property={"edgeVisibility": True,},
7472
)
7573
],
7674
)

demos/slice-rendering/app.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,7 @@
8585
children=[
8686
html.Div(
8787
style={"height": "20%", "display": "flex", "align-items": "center"},
88-
children=[
89-
html.Br(),
90-
controls,
91-
html.Br(),
92-
],
88+
children=[html.Br(), controls, html.Br(),],
9389
),
9490
html.Div(slice_view, style={"height": "80%"}),
9591
],

demos/usage-algorithm/app.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@
6363
dbc.Col(
6464
width=8,
6565
children=[
66-
html.Div(
67-
vtk_view,
68-
style={"height": "100%", "width": "100%"},
69-
)
66+
html.Div(vtk_view, style={"height": "100%", "width": "100%"},)
7067
],
7168
),
7269
],

demos/usage-vtk-cfd/app.py

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,36 +115,20 @@ def getSeedState(self):
115115
children=[
116116
dash_vtk.GeometryRepresentation(
117117
id="bike-rep",
118-
children=[
119-
dash_vtk.Mesh(
120-
id="bike",
121-
state=viz.getBikeMesh(),
122-
)
123-
],
118+
children=[dash_vtk.Mesh(id="bike", state=viz.getBikeMesh(),)],
124119
),
125120
dash_vtk.GeometryRepresentation(
126121
id="tubes-rep",
127122
colorMapPreset="erdc_rainbow_bright",
128123
colorDataRange=viz.getColorRange(),
129-
children=[
130-
dash_vtk.Mesh(
131-
id="tubes-mesh",
132-
state=viz.getTubesMesh("p"),
133-
)
134-
],
124+
children=[dash_vtk.Mesh(id="tubes-mesh", state=viz.getTubesMesh("p"),)],
135125
),
136126
dash_vtk.GeometryRepresentation(
137127
id="seed-rep",
138-
property={
139-
"color": [0.8, 0, 0],
140-
"representation": 0,
141-
"pointSize": 8,
142-
},
128+
property={"color": [0.8, 0, 0], "representation": 0, "pointSize": 8,},
143129
children=[
144130
dash_vtk.Algorithm(
145-
id="seed-line",
146-
vtkClass="vtkLineSource",
147-
state=viz.getSeedState(),
131+
id="seed-line", vtkClass="vtkLineSource", state=viz.getSeedState(),
148132
)
149133
],
150134
),

demos/volume-rendering/app.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020

2121
vtk_view = dash_vtk.View(
2222
dash_vtk.VolumeRepresentation(
23-
children=[
24-
dash_vtk.VolumeController(),
25-
dash_vtk.Volume(state=volume_state),
26-
]
23+
children=[dash_vtk.VolumeController(), dash_vtk.Volume(state=volume_state),]
2724
)
2825
)
2926

docs/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.0.5] - 2021-02-15
10+
11+
### Added
12+
* 3 new demos using dicom (#24)
13+
* GlyphRepresentation
14+
15+
### Changed
16+
* Added `vtk` to `setup.py`'s install requires.
17+
18+
### Fixed
19+
* VolumeDataRepresentation typo
20+
* GIF URL in README.md
21+
22+
923
## [0.0.4] - 2021-02-08
1024

1125
### Changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash_vtk",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "React based declarative usage of vtk.js for Dash",
55
"repository": {
66
"type": "git",

src/DashVtk.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module DashVtk
33
using Dash
44

55
const resources_path = realpath(joinpath( @__DIR__, "..", "deps"))
6-
const version = "0.0.4"
6+
const version = "0.0.5"
77

88
include("vtk_algorithm.jl")
99
include("vtk_calculator.jl")
@@ -35,14 +35,14 @@ function __init__()
3535
[
3636
DashBase.Resource(
3737
relative_package_path = "dash_vtk.min.js",
38-
external_url = "https://unpkg.com/[email protected].4/dash_vtk/dash_vtk.min.js",
38+
external_url = "https://unpkg.com/[email protected].5/dash_vtk/dash_vtk.min.js",
3939
dynamic = nothing,
4040
async = nothing,
4141
type = :js
4242
),
4343
DashBase.Resource(
4444
relative_package_path = "dash_vtk.min.js.map",
45-
external_url = "https://unpkg.com/[email protected].4/dash_vtk/dash_vtk.min.js.map",
45+
external_url = "https://unpkg.com/[email protected].5/dash_vtk/dash_vtk.min.js.map",
4646
dynamic = true,
4747
async = nothing,
4848
type = :js

0 commit comments

Comments
 (0)