fix ellipse draw bug and fix shape props context

This commit is contained in:
Horcrux
2016-04-26 21:04:54 +08:00
parent 24dcc83a80
commit 1baf00c034
11 changed files with 29 additions and 52 deletions
+1 -2
View File
@@ -51,7 +51,7 @@ class Shape extends Component{
let props = this.props;
if (this.context.isInGroup) {
props = _.defaults(this.context, props, {
props = _.defaults({}, props, this.context, {
isInGroup: null
});
}
@@ -59,7 +59,6 @@ class Shape extends Component{
let shape = new SerializableShape(props, COORD_PROPS[this.type]).toJSON();
return <NativePath
{...props}
{...extractProps(this.type === 3 ? {
...props,
x: null,