javascript - SVG: Issue with multiple masks in different svg -


i came across strange problem using svg filter , masks.

let's have svg file containg these filters , masks:

<filter id="om-outline"> <femorphology result="offset" in="sourcegraphic" operator="dilate" radius="3"/> <fecomposite in="offset" in2="sourcegraphic" operator="out" result="stroke" /> <feflood flood-color="#79868d" result="color-red-2" /> <fecomposite in="color-red-2" in2="stroke" operator="in" result="bevel_41" /> </filter>  <mask id="outline-mask"> <rect cx="0" cy="0" width="341" height="375" fill="black"/> <!-- more elements here create silhouette of actual svg graphic --> </mask> 

using filter , mask, creates nice outline arround animating svg graphic enter image description here

everything working expected far now, when add graphic, using same technic create outline, happens:

enter image description here

somehow second graphic uses mask , outline of first graphic, though used different ids reference.

this happens in firefox , internet explorer, safari , chrome seem work expected.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -