Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem of importing large diagram #38

Open
nahidshahin opened this issue Nov 6, 2014 · 0 comments
Open

problem of importing large diagram #38

nahidshahin opened this issue Nov 6, 2014 · 0 comments

Comments

@nahidshahin
Copy link

Hi, I load a large SVG diagram using draw.svg method:

$.get('a.svg', function(data) {
var rawSvg = (new XMLSerializer()).serializeToString(data);
var draw = SVG('drawing');
var store = draw.svg(rawSvg);
});

I try also inlined SVG XML but in both of the cases it generates following image (arrow and lables are missing):

b

But using JQuery load it works

jQuery('#drawing').load('a.svg', null, function() {
jQuery('#theElement').click( function() {
alert('You clicked on the element!');
});
});

a

Do you have any idea what could be the wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant