Skip to content

Commit e103393

Browse files
authored
Merge pull request #483 from FormidableLabs/update-for-0.16.0
update for release
2 parents 1af95d0 + bd5b8fe commit e103393

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Victory Changelog
22

3+
## 0.16.0 (2017-01-30)
4+
5+
**This release includes major breaking changes related to `VictoryZoom`**
6+
7+
- [189](https://github.com/FormidableLabs/victory-core/pull/189) and [191](https://github.com/FormidableLabs/victory-core/pull/190)
8+
- Adds `VictoryLegend` component
9+
- [190](https://github.com/FormidableLabs/victory-core/pull/190)
10+
- Allows `VictoryContainer` to render either `<g>` or `<svg>` depending on the value of the standalone prop
11+
- Passes a timer down in context for `VictorySharedEvents`
12+
- Event handlers have access to the context they are being called from via an argument
13+
- _i.e._ `onClick: (event, targetProps, eventKey, context) => {...}`
14+
- Enhances `addEvents` so that evented components can pick up "parentControllerProps" from parent state
15+
- useful for `VictoryZoomContainer`
16+
- Adds the ability to define callbacks in the events prop that will be called after `setState`
17+
- useful for allowing `VictoryZoomContainer` to call methods like `resumeAnimation`
18+
- [427](https://github.com/FormidableLabs/victory-chart/pull/427)
19+
- Adds `VictoryBrushContainer`
20+
- Adds `VictoryZoomContainer` to replace `VictoryZoom`
21+
- [See pull request for examples](https://github.com/FormidableLabs/victory-chart/pull/427)
22+
- **Deprecates `VictoryZoom`**
23+
- Changes default styles for `VictorySelectionContainer`
24+
- Adds override-able `selectionComponent` for `VictorySelectionContainer`
25+
- Adds `domain` and `standalone` to list of props that get stored in parent state
26+
- Simplifies and standardizes container rendering across components.
27+
28+
29+
330
## 0.15.0 (2017-01-03)
431

532
- Adds `VictorySelectionContainer`

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"dependencies": {
3535
"builder": "^3.1.0",
3636
"builder-victory-component": "^3.1.0",
37-
"victory-chart": "^15.0.0",
38-
"victory-core": "^11.0.0",
39-
"victory-pie": "^9.0.0"
37+
"victory-chart": "^16.0.0",
38+
"victory-core": "^13.0.0",
39+
"victory-pie": "^10.1.0"
4040
},
4141
"devDependencies": {
4242
"builder-victory-component-dev": "^3.1.0",

src/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
VictoryAnimation,
44
VictoryContainer,
55
VictoryLabel,
6+
VictoryLegend,
67
VictorySharedEvents,
78
VictoryTheme,
89
VictoryTransition,
@@ -28,7 +29,9 @@ import {
2829
VictoryVoronoi,
2930
VictoryVoronoiTooltip,
3031
VictoryZoom,
31-
VictorySelectionContainer
32+
VictoryZoomContainer,
33+
VictorySelectionContainer,
34+
VictoryBrushContainer
3235
} from "victory-chart";
3336

3437
import { VictoryPie } from "victory-pie";
@@ -46,6 +49,7 @@ export {
4649
VictoryGroup,
4750
VictoryLine,
4851
VictoryLabel,
52+
VictoryLegend,
4953
VictoryPie,
5054
VictoryScatter,
5155
VictoryStack,
@@ -56,10 +60,12 @@ export {
5660
VictoryVoronoi,
5761
VictoryVoronoiTooltip,
5862
VictoryZoom,
63+
VictoryZoomContainer,
5964
VictoryPortal,
6065
Portal,
6166
VictoryClipContainer,
6267
VictorySelectionContainer,
68+
VictoryBrushContainer,
6369
addEvents, Collection, Data, DefaultTransitions, Domain, Events, Helpers, Log,
6470
PropTypes, Scale, Style, TextSize, Transitions
6571
};

test/client/spec/components/victory.spec.js

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe("victory", () => {
1616
expect(Victory.VictoryGroup).not.to.equal(undefined);
1717
expect(Victory.VictoryLine).not.to.equal(undefined);
1818
expect(Victory.VictoryLabel).not.to.equal(undefined);
19+
expect(Victory.VictoryLegend).not.to.equal(undefined);
1920
expect(Victory.VictoryPie).not.to.equal(undefined);
2021
expect(Victory.VictoryScatter).not.to.equal(undefined);
2122
expect(Victory.VictoryStack).not.to.equal(undefined);
@@ -53,6 +54,8 @@ describe("victory", () => {
5354
expect(Victory.TextSize).not.to.equal(undefined);
5455
expect(Victory.Transitions).not.to.equal(undefined);
5556
expect(Victory.VictoryZoom).not.to.equal(undefined);
57+
expect(Victory.VictoryZoomContainer).not.to.equal(undefined);
5658
expect(Victory.VictorySelectionContainer).not.to.equal(undefined);
59+
expect(Victory.VictoryBrushContainer).not.to.equal(undefined);
5760
});
5861
});

0 commit comments

Comments
 (0)