Bring extension up-to-date with new API.

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1458 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jacques Distler
2010-03-12 16:42:15 +00:00
parent b3e6b1a538
commit 3a9f38f699
4 changed files with 5 additions and 13 deletions

View File

@@ -8,14 +8,13 @@
*/
$(function() {
svgCanvas.addExtension("Arrows", function(S) {
svgEditor.addExtension("Arrows", function(S) {
var svgcontent = S.svgcontent,
addElem = S.addSvgElementFromJson,
nonce = S.nonce,
randomize_ids = S.randomize_ids,
selElems;
svgCanvas.bind('setarrownonce', setArrowNonce);
svgCanvas.bind('unsetsetarrownonce', unsetArrowNonce);
@@ -294,5 +293,4 @@ $(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,
@@ -90,5 +89,4 @@ $(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,
@@ -275,5 +274,4 @@ $(function() {
var elem = opts.elems[0];
}
};
});
});

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",
@@ -75,6 +74,5 @@ $(function() {
}
}
};
});
});