Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #265 from FormidableLabs/639/render-in-portal
Browse files Browse the repository at this point in the history
transform slice
  • Loading branch information
boygirl authored Jul 12, 2017
2 parents e1ebe96 + d25191c commit bd9c207
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/victory-primitives/slice.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ export default class Slice extends React.Component {

// Overridden in victory-core-native
renderSlice(path, style, events) {
const { role, shapeRendering, className } = this.props;
const { role, shapeRendering, className, origin } = this.props;
const transform = origin ? `translate(${origin.x}, ${origin.y})` : undefined;
return (
<path
d={path}
className={className}
role={role || "presentation"}
style={style}
transform={transform}
shapeRendering={shapeRendering || "auto"}
{...events}
/>
Expand Down

0 comments on commit bd9c207

Please sign in to comment.