victory-native
Advanced tools
Comparing version 0.14.0 to 0.15.0
# VictoryNative Changelog | ||
## 0.15.0 (2017-09-11) | ||
[157](https://github.com/FormidableLabs/victory-native/pull/157) Supports changes related to VictoryLegend | ||
[More details](https://github.com/FormidableLabs/victory-core/blob/master/CHANGELOG.md#1800-2017-09-09) | ||
## 0.14.0 (2017-07-17) | ||
@@ -4,0 +9,0 @@ |
@@ -35,3 +35,3 @@ import React from "react"; | ||
return ( | ||
<TSpan key={i} x={x} y={y} dy={dy} dx={this.dx} {...style} textAnchor={textAnchor}> | ||
<TSpan key={i} x={x} dy={dy} dx={this.dx} {...style} textAnchor={textAnchor}> | ||
{line} | ||
@@ -38,0 +38,0 @@ </TSpan> |
@@ -7,3 +7,3 @@ import React from "react"; | ||
import VictoryContainer from "./victory-container"; | ||
import { Point, NativeHelpers } from "../index"; | ||
import { Point, Border } from "../index"; | ||
@@ -13,2 +13,3 @@ export default class extends VictoryLegend { | ||
...VictoryLegend.defaultProps, | ||
borderComponent: <Border/>, | ||
containerComponent: <VictoryContainer/>, | ||
@@ -18,22 +19,5 @@ dataComponent: <Point/>, | ||
labelComponent: <VictoryLabel/>, | ||
titleComponent: <VictoryLabel/>, | ||
width: Dimensions.get("window").width | ||
}; | ||
renderGroup(props, children) { | ||
const { groupComponent, height, parentStyles, standalone, width, x, y } = props; | ||
let groupProps = { role: "presentation" }; | ||
const styles = NativeHelpers.getStyle(parentStyles); | ||
if (!standalone) { | ||
groupProps = { | ||
height, | ||
width, | ||
translateX: x, | ||
translateY: y, | ||
...styles, | ||
...groupProps | ||
}; | ||
} | ||
return React.cloneElement(groupComponent, groupProps, children); | ||
} | ||
} |
@@ -13,2 +13,3 @@ import createContainer from "./helpers/create-container"; | ||
export { default as Bar } from "./components/victory-primitives/bar"; | ||
export { default as Border } from "./components/victory-primitives/border"; | ||
export { default as Candle } from "./components/victory-primitives/candle"; | ||
@@ -15,0 +16,0 @@ export { default as ClipPath } from "./components/victory-primitives/clip-path"; |
{ | ||
"name": "victory-native", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "Shared libraries and components for Victory", | ||
@@ -8,3 +8,4 @@ "main": "lib/index.js", | ||
"lib", | ||
"index.js" | ||
"index.js", | ||
"LICENSE.txt" | ||
], | ||
@@ -54,6 +55,6 @@ "repository": { | ||
"prop-types": "^15.5.10", | ||
"victory-chart": "^21.3.0", | ||
"victory-core": "^16.3.0", | ||
"victory-pie": "^11.3.0" | ||
"victory-chart": "^22.0.0", | ||
"victory-core": "^18.0.1", | ||
"victory-pie": "^12.0.0" | ||
} | ||
} |
54044
46
1250
+ Addedvictory-chart@22.0.0(transitive)
+ Addedvictory-core@18.0.2(transitive)
+ Addedvictory-pie@12.0.0(transitive)
- Removedvictory-chart@21.6.2(transitive)
- Removedvictory-core@16.3.017.2.7(transitive)
- Removedvictory-pie@11.4.2(transitive)
Updatedvictory-chart@^22.0.0
Updatedvictory-core@^18.0.1
Updatedvictory-pie@^12.0.0