thechiselgroup / biomixer

BioMixer
http://bio-mixer.appspot.com/
16 stars 13 forks source link

No Markers in IE Still #437

Closed everbeek closed 9 years ago

everbeek commented 9 years ago

In IE, we can work around the no-marker problem by removing and re-adding the link from its parent node, from: http://stackoverflow.com/questions/17654578/svg-marker-does-not-work-in-ie9-10 http://jsfiddle.net/kaljak/5zTv9/3/

It could be such bad performance though, that I would rather have no markers in IE.

Having trouble getting it to work, so aborting. It is messign up the force layout something fierce.

Code I used just subsequent to calculating "point" on polylines: boundLinks.each((link: ConceptGraph.Link)=>{ var linkSvg = $("#linkline"+link.id).first(); // var parent = linkSvg.parent(); // console.log(linkSvg); // console.log(parent); // linkSvg.remove(); // parent.append(linkSvg);

                var p1 = document.getElementById("#link_line_"+link.id);
                var parent = p1.parentNode;
                parent.removeChild(p1);
                parent.appendChild(p1);
                console.log("Terrible");
everbeek commented 9 years ago

436 was a Firefox problem with markers, replaced with more complex arc path, and IE now has markers.