Update extensions for new SVG-Edit API

This commit is contained in:
Jacques Distler 2010-03-12 10:48:27 -06:00
parent 9636cab11e
commit c946c331e1
5 changed files with 5 additions and 15 deletions

View file

@ -8,8 +8,7 @@
*/
$(function() {
svgCanvas.addExtension("Arrows", function(S) {
svgEditor.addExtension("Arrows", function(S) {
var svgcontent = S.svgcontent,
addElem = S.addSvgElementFromJson,
nonce = S.nonce,
@ -295,4 +294,3 @@ $(function() {
}
};
});
});

View file

@ -9,8 +9,7 @@
// This extension adds a simple button to the contextual panel for paths
// The button toggles whether the path is open or closed
$(function() {
svgCanvas.addExtension("ClosePath", function(S) {
svgEditor.addExtension("ClosePath", function(S) {
var selElems,
updateButton = function(path) {
var seglist = path.pathSegList,
@ -91,4 +90,3 @@ $(function() {
}
};
});
});

View file

@ -8,8 +8,7 @@
*
*/
$(function() {
svgCanvas.addExtension("foreignObject", function(S) {
svgEditor.addExtension("foreignObject", function(S) {
var svgcontent = S.svgcontent,
addElem = S.addSvgElementFromJson,
selElems,
@ -276,4 +275,3 @@ $(function() {
}
};
});
});

View file

@ -13,8 +13,7 @@
user the point on the canvas that was clicked on.
*/
$(function() {
svgCanvas.addExtension("Hello World", function() {
svgEditor.addExtension("Hello World", function() {
return {
name: "Hello World",
@ -76,5 +75,4 @@ $(function() {
}
};
});
});

View file

@ -8,8 +8,7 @@
*
*/
$(function() {
svgCanvas.addExtension("itex", function(S) {
svgEditor.addExtension("itex", function(S) {
var svgcontent = S.svgcontent,
addElem = S.addSvgElementFromJson,
selElems,
@ -303,4 +302,3 @@ $(function() {
}
};
});
});