# Changelog

## [Unreleased]

## [0.0.7] - 2019-08-22

## Added

- Readonly mode [yukai-w](https://github.com/MrBlenny/react-flow-chart/pull/39)
- Offset position to dropped item position [phlickey](https://github.com/MrBlenny/react-flow-chart/pull/34)
- `snapToGrid` and `gridSize` config options [msteinmn](https://github.com/MrBlenny/react-flow-chart/pull/23)
- `validateLink` config function [msteinmn](https://github.com/MrBlenny/react-flow-chart/pull/23)
- misc other fixes [msteinmn](https://github.com/MrBlenny/react-flow-chart/pull/23)
- Config object that is accessible by all components and actions

## Breaking
- Changed the callback type signatures so they are always objects rather than functions with params. If you use custom callbacks, these will need to be updated.


## [0.0.6] - 2019-04-30

## Added

- Upgrade Typescript and Storybook.
- Prevent re-rendering for nodes and links that are not in use. [alexkuz PR7](https://github.com/MrBlenny/react-flow-chart/pull/7)
- Render only nodes currently visible for user. [alexkuz PR7](https://github.com/MrBlenny/react-flow-chart/pull/7)
- Fix calculating link position when canvas is not positioned in top left corner. [alexkuz PR7](https://github.com/MrBlenny/react-flow-chart/pull/7)

## Breaking

- Added a new [onNodeSizeChange](https://github.com/MrBlenny/react-flow-chart/pull/7/files#diff-5a121158d13f502e78c5c29411f54269R141) action that is required for calculating which nodes are visible. If you are using external state, this will need to be implemented.

## [0.0.5] - 2019-04-02

### Added

- Fixed a bug where links would not work on firefox [tantayou999](https://github.com/MrBlenny/react-flow-chart/issues/12)

## [0.0.4] - 2019-03-24

### Added

- Start keeping a changelog
- Remove storybook and lodash from from dist [alexcuz PR5](https://github.com/MrBlenny/react-flow-chart/pull/5)
