mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-11 01:40:59 +00:00
Set offset to 0 if attribute not present
This commit is contained in:
parent
b24f211dfa
commit
37acc8a602
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
/* _FROM_SVG_START_ */
|
||||
function getColorStop(el) {
|
||||
var style = el.getAttribute('style'),
|
||||
offset = el.getAttribute('offset'),
|
||||
offset = el.getAttribute('offset') || 0,
|
||||
color, colorAlpha, opacity;
|
||||
|
||||
// convert percents to absolute values
|
||||
|
|
|
|||
Loading…
Reference in a new issue