annotate inkscape/firefox/content/main.js @ 1395:a768d74e5f49

Fix the svg:use. For a svg:use, it is a group which include the content it reference. It means that we can not tween it to its origin object directly. Instead, we need to ungroup it and then use the result matrix to generate the tweened transformation matrix. Therefore, we need to concate its matrix to the referenced object. Ad center object when the bbox-x is not available.
author wycc
date Sat, 02 Apr 2011 05:36:36 +0800
parents 45e04408fc19
children
rev   line source
389
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
1 var last_select;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
2 var wizard;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
3 jQuery(document).ready(function() {
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
4 if (loadOldProject()) {
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
5 filedialog = jQuery('#filedialog');
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
6 filedialog.dialog({width:500,
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
7 modal: true,
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
8 autoOpen:false,
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
9 title:'Please select a file'});
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
10 filedialog.show();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
11 filedialog.html('Please select the project file<br>');
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
12 filedialog.append('<input type=file value="Select the project file" id="mbsvg" accept="image/png">');
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
13 filedialog.append('<input type=button value="Load" onclick="project_loadFile()">');
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
14 filedialog.dialog("open");
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
15 last_select = null;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
16 wizard = new Wizard();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
17 wizard.cb = onLoadProject;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
18 $('#filedialog').dialog({ width:500});
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
19 $('#frame').draggable();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
20 $('#btns').draggable({cursor:'crosshair'});
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
21 $('#list').tabs();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
22 $('#display').tabs();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
23 }
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
24 });
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
25