Skip to content

Commit 5d1089b

Browse files
author
Xing
authored
Release v0.1.0 (#50)
* Update CHANGELOG.md * Include dash_cytoscape_extra[min|dev].js in distribution * Update package version * `npm run build:all` * Update CHANGELOG.md Co-Authored-By: xhlulu <[email protected]> * Apply suggestions from code review Co-Authored-By: xhlulu <[email protected]> * Changes based on PR reviews
1 parent 7613b94 commit 5d1089b

File tree

6 files changed

+26
-13
lines changed

6 files changed

+26
-13
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [0.1.0] - 2019-04-05
10+
911
### Added
10-
* `demos/usage-dag-edges.py`: Show different types of edges in a DAG
11-
* `demos/usage-elements-extra.py`: Shows how to load external layouts, otherwise same app as `usage-elements.py`.
12-
* `demos/usage-preset-animation.py`: Example of animating nodes using the preset layout.
13-
* `demos/usage-reset-button.py`: Example of resetting the graph position using a button.
14-
* `dash_cytoscape.load_extra_layouts()`: A new function that can be called before initializing the Dash app (`app = dash.Dash(__name__)`) to load the JS bundle containing the external layouts.
15-
* `webpack.[dev|prod].extra.config.js`: Two new webpack configs for external layouts.
12+
* Four new demos:
13+
* `demos/usage-dag-edges.py`: Example of edges in a directed acyclic graph (DAG). It uses the new `dash_cytoscape.utils.Tree` class.
14+
* `demos/usage-elements-extra.py`: Example of loading external layouts.
15+
* `demos/usage-preset-animation.py`: Example of animating nodes using the preset layout.
16+
* `demos/usage-reset-button.py`: Example of resetting the graph position using a button.
17+
* `demos/usage-remove-selected-elements.py`: Example to show how to remove selected elements with button.
18+
* `dash_cytoscape/dash_cytoscape_extra.[min|dev].js`: New bundles containing the extra layouts. Those bundles are double in size compared to the default bundles. Therefore, they are only loaded when the user uses `load_extra_layouts()` to limit bandwidth usage and maximize loading speed. Please view [fast3g-cytoscape](demos/images/fast3g-cytoscape.PNG) for an example of the impact on loading time.
19+
* `dash_cytoscape._display_default_values()`: A helper function to display the default prop values by reading `metadata.json`. Useful for documentation.
20+
* `dash_cytoscape.load_extra_layouts()`: A function that can be called before initializing the Dash app (`app = dash.Dash(__name__)`) to load the JS bundle containing the external layouts.
1621
* `src/lib/extra_index.js`: Loads external layouts before exporting the `Cytoscape` class. Needed to generate the new bundles.
22+
* `webpack.[dev|prod].extra.config.js`: Two new webpack config files for external layouts.
1723
* Images of new external layouts.
18-
* `dash_cytoscape/dash_cytoscape_extra.[min|dev].js`: New bundles containing the extra layouts. Those bundles are double in size compared to the default bundles. Therefore, they are only loaded when the user uses `load_extra_layouts()` to limit bandwidth usage and maximize loading speed. Please view [fast3g-cytoscape](demos/images/fast3g-cytoscape.PNG) for an example of the impact on loading time.
19-
* `dash_cytoscape._display_default_values()`: A util function to display the default prop values by reading `metadata.json`. Useful for documentation.
24+
* The ability for the user to feed a dictionary with keys `nodes` and `edges` to the `elements` prop of `Cytoscape`, instead of a list. The values corresponding to these keys will be, respectively, lists of nodes and edges in the graph.
25+
2026

2127
### Changed
2228
* `usage-events.py`: Added IDs for the edges in order to pass Percy tests.
23-
* `src/lib/components/Cytoscape.react.js`: Updated docstring to include information about new external layouts and warning about nodes that can't be modified by a callback. Added more default props for a better expected behavior.
29+
* `src/lib/components/Cytoscape.react.js`: Updated component docstring to include information about new external layouts and a warning about nodes that can't be modified by a callback. Added more default props for a better expected behavior.
2430
* `package.json`: Added new builds for the extra layouts, modified `npm build:all` to include new builds. Added external layouts as dependencies.
31+
* `MANIFEST.in`: Included new `dash_cytoscape.[min|dev].js` files.
2532
* `README.md`: Moved images, added more images at the end, added useful links.
2633

2734

35+
### Fixed
36+
* Removing selected elements will now cause the corresponding JSON data to be cleared. Fixed by [PR #49](https://github.com/plotly/dash-cytoscape/pull/49), fixes [issue #45](https://github.com/plotly/dash-cytoscape/issues/45).
37+
38+
2839
## [0.0.5] - 2019-03-08
2940

3041
### Added

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include dash_cytoscape/dash_cytoscape.min.js
22
include dash_cytoscape/dash_cytoscape.dev.js
3+
include dash_cytoscape/dash_cytoscape_extra.min.js
4+
include dash_cytoscape/dash_cytoscape_extra.dev.js
35
include dash_cytoscape/metadata.json
46
include dash_cytoscape/package.json
57
include README.md

dash_cytoscape/dash_cytoscape.dev.js

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

dash_cytoscape/dash_cytoscape_extra.dev.js

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

dash_cytoscape/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-cytoscape",
3-
"version": "0.0.5",
3+
"version": "0.1.0",
44
"description": "A Component Library for Dash aimed at facilitating network visualization in Python, wrapped around Cytoscape.js",
55
"main": "build/index.js",
66
"scripts": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-cytoscape",
3-
"version": "0.0.5",
3+
"version": "0.1.0",
44
"description": "A Component Library for Dash aimed at facilitating network visualization in Python, wrapped around Cytoscape.js",
55
"main": "build/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)