Ian

Results 342 comments of Ian

See if something like this helps... https://stackoverflow.com/questions/12550635/how-can-i-improve-on-this-javascript-collision-detection

Also I'd look at updating to Snap.svg, or SVG.js. Raphael is quite old now, but may still suit.

Transform it with a translate ? eg ``` el.transform("t100,100") ```

Pictures aren't really clear (to me anyway), what you are trying to achieve.

I think you would need to recalculate the original points in the shape.

If this is a one off, can't you take before the "m" (eg using some regex), and do Raphael.getTotalLength(firstPart) looping until the end of that ?

I think in the case if there are multiple "m"s then you need to describe logically where you would make the cutoff. Typically if you can describe something clearly, you...

I would look into Snap.svg rather than Raphael. A lot of code is very similar by same author and it can do svg imports etc.

Hmm just thinking about this, not sure this would be correct...what if another element is using the same clippath ?

Just switch it to opacity 0 instead and get the val and it should work.