Fix fontDiffer

This commit is contained in:
Mikael Sand
2017-07-24 00:16:17 +03:00
parent 1a9a051ee9
commit a14f2d0ca0

View File

@@ -19,13 +19,19 @@ function fontDiffer(a, b) {
return false;
}
return a.fontSize !== b.fontSize ||
a.fontFamily !== b.fontFamily ||
return (
a.fontStyle !== b.fontStyle ||
a.fontVariant !== b.fontVariant ||
a.fontWeight !== b.fontWeight ||
a.kerning !== b.kerning ||
a.fontStretch !== b.fontStretch ||
a.fontSize !== b.fontSize ||
a.fontFamily !== b.fontFamily ||
a.textAnchor !== b.textAnchor ||
a.textDecoration !== b.textDecoration ||
a.letterSpacing !== b.letterSpacing ||
a.wordSpacing !== b.wordSpacing ||
a.letterSpacing !== b.letterSpacing;
a.kerning !== b.kerning
);
}
const ViewBoxAttributes = {