mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-04 11:54:47 +00:00
Make group getter respect delegated properties
This commit is contained in:
parent
638876f3f8
commit
af5a0ac74f
1 changed files with 7 additions and 0 deletions
|
|
@ -177,6 +177,8 @@
|
|||
},
|
||||
|
||||
/**
|
||||
* @param delegatedProperties
|
||||
* @type Object
|
||||
* Properties that are delegated to group objects when reading/writing
|
||||
*/
|
||||
delegatedProperties: {
|
||||
|
|
@ -184,9 +186,11 @@
|
|||
opacity: true,
|
||||
fontFamily: true,
|
||||
fontWeight: true,
|
||||
fontSize: true,
|
||||
lineHeight: true,
|
||||
textDecoration: true,
|
||||
textShadow: true,
|
||||
textAlign: true
|
||||
backgroundColor: true
|
||||
},
|
||||
|
||||
|
|
@ -526,6 +530,9 @@
|
|||
}
|
||||
}
|
||||
else {
|
||||
if (prop in this.delegatedProperties) {
|
||||
return this.objects[0] && this.objects[0].get(prop);
|
||||
}
|
||||
return this[prop];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue