Comments (5)
Thanks hez. I've applied a fix although I'm not sure how accurate it is. Can you try it out and report back?
from raphael.export.
Sorry for the late respond, just so u know, im a huge fan of ur work..
The fix works great, thanks !!
from raphael.export.
Hi
Me too facing the same problem, with the latest version.
Trying to export the raphael paper having a text element with '\n' or '\u000a', and when I export it
to SVG it comes out in a single line,
from raphael.export.
I applied a fix for newlines, you should be able to use \n
again.
from raphael.export.
I am still getting the same issue with '\n' in my text element. When it exports it does creates two elements for '\n' but their x and y coordinates still remain same so the splitted text overlaps each other.
from raphael.export.
Related Issues (20)
- gRaphael Chart legends SVG Image( to PDF)Conversion HOT 5
- Uncaught TypeError for a Path tag with a Stroke attribute set to "none" HOT 1
- Raphael Markers for Arrow tips Not exported HOT 5
- Matrix export
- viewBox attribute of svg node not exported
- [enhancement] Add missing bower.json. HOT 1
- text-anchor inside style attribute incorrect
- stroke-dasharray
- Export doesn't work with rx and ry attributes
- Pull Request #39 removes the radius from circles
- "stroke-width" is wrong HOT 1
- Elements loose positioning within canvas
- interaction with freeTransform
- Escaping of text elements HOT 2
- Error when text created without specifying font. AKA "Uncaught TypeError: Cannot read property 'replace' of undefined" HOT 1
- Uncaught TypeError: Cannot read property 'replace' of undefined in the extractStyle function (font-family attribute). If I don't have this attribute in my image then error is thrown. The line 118 must be replaced by : family: typeof node.attrs.font === 'undefined' ? null : node.attrs.font.replace(/^.?"(\w+)".$/, '$1'), HOT 1
- gradient fill for path gets lost
- path arrow get lost
- Error setting class attribute in IE8
- Ampersands have extra space around them HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raphael.export.