Fixes Text shadows for v5 (#5947)
* Fixes text shadows for v5, take 2 Goes back to v4 style of separate draw calls to make sure all of the drop shadow is underneath all of the text; but this time rather than using the first drawn text as the actual drop shadows, it draws this text off screen, whilst positioning the drop shadow to appear on screen. So we get the drawing order that v4 has with the good native canvas drop shadow looks of v5 * Fixed to work with resolutions other than 1 * Change where fillStyle and strokeStyle are set to avoid ios bug https://bugs.webkit.org/show_bug.cgi?id=197689 * Ensures that the text for the drop shadow is way off-screen |
---|
|
packages/text/src/Text.js |
---|