raphael icon indicating copy to clipboard operation
raphael copied to clipboard

Running renderfix breaks UAs without getScreenCTM() support

Open hallvors opened this issue 8 years ago • 1 comments

The renderfix method should do some object detection to avoid breaking pages when running in browsers where getScreenCTM() doesn't exist. This is a problem for rendering pages in Prince. A small check and an early return here seems like a good fix: https://github.com/DmitryBaranovskiy/raphael/blob/eb43ba140fa43b170cac73ecc95fa0319b371c6e/dev/raphael.svg.js#L1362

hallvors avatar Sep 12 '16 13:09 hallvors

(Browsers that do support createSVGMatrix() escape un-harmed thanks to the new try..catch in 2.2 - this wasn't added yet in 2.0 which is the version that still powers the demos on http://dmitrybaranovskiy.github.io/raphael/ .)

hallvors avatar Sep 12 '16 13:09 hallvors