Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit ba1243d

Browse files
author
James Collier
committed
Update documentation ready to release 3.1
* Bump package version number
1 parent 616134c commit ba1243d

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

ChangeLog.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [3.1.0] - 2024-11-05
11+
12+
### Changed
13+
14+
- The `atomStyle` and `atomLabelStyle` callbacks take an integer argument rather than a boolean
15+
indicating whether they're selected or not. react-2d-molecule no longer tracks if an atom is
16+
"selected".
17+
1018
## [3.0.2] - 2023-07-24
1119

1220
### Fixed
@@ -54,7 +62,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5462

5563
Initial release
5664

57-
[unreleased]: https://github.com/vibbits/react-2d-molecule/compare/v3.0.2...HEAD
65+
[unreleased]: https://github.com/vibbits/react-2d-molecule/compare/v3.1.0...HEAD
66+
[3.1.0]: https://github.com/vibbits/react-2d-molecule/compare/v3.0.2...v3.1.0
5867
[3.0.2]: https://github.com/vibbits/react-2d-molecule/compare/v3.0.1...v3.0.2
5968
[3.0.1]: https://github.com/vibbits/react-2d-molecule/compare/v3.0.0...v3.0.1
6069
[3.0.0]: https://github.com/vibbits/react-2d-molecule/compare/v2.0.0...v3.0.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ This is rendered as:
103103
* `labelTranslateY: number` Translate each atom label, in the y direction, by this number of pixels (default: `0`).
104104
* `atomClicked: (index: number) => void` A callback function accepting the index of the clicked atom.
105105
* `atomLabel: (atom: Atom, index: number) => string` A callback function defining the text to display in the label for the given atom.
106-
* `atomStyle: (element: string, selected: boolean): React.CSSProperties` A hook specifying CSS styles for the SVG `<circle>`.
107-
* `atomLabelStyle: (element: string, selected: boolean): React.CSSProperties` A hook specifying CSS styles for the SVG `<text>`.
106+
* `atomStyle: (element: string, index: number): React.CSSProperties` A hook specifying CSS styles for the SVG `<circle>`.
107+
* `atomLabelStyle: (element: string, index: number): React.CSSProperties` A hook specifying CSS styles for the SVG `<text>`.
108108

109109
## Contributing
110110

package-lock.json

Lines changed: 2 additions & 2 deletions
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": "@vibbioinfocore/react-2d-molecule",
3-
"version": "3.0.2",
3+
"version": "3.1.0",
44
"description": "A React component to display molecule structures in a 2D SVG",
55
"browser": "dist/index.js",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)