mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-30 10:04:42 +00:00
check for default color property if attribute is not present
This commit is contained in:
parent
52391f0992
commit
280746592c
1 changed files with 8 additions and 1 deletions
|
|
@ -106,10 +106,17 @@
|
|||
function _setStrokeFillOpacity(attributes) {
|
||||
for (var attr in colorAttributes) {
|
||||
|
||||
if (!attributes[attr] || typeof attributes[colorAttributes[attr]] === 'undefined') {
|
||||
if (typeof attributes[colorAttributes[attr]] === 'undefined') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!attributes[attr]) {
|
||||
if (!fabric.Object.prototype[attr]) {
|
||||
continue;
|
||||
}
|
||||
attributes[attr] = fabric.Object.prototype[attr];
|
||||
}
|
||||
|
||||
if (attributes[attr].indexOf('url(') === 0) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue