More SvgCanvas API docs updates

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@811 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-10-13 02:48:27 +00:00
parent 588902cecf
commit 91d450b5cb
6 changed files with 42 additions and 17 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -46,7 +46,7 @@ var indexSectionsWithContent = {
"L": false,
"M": true,
"N": false,
"O": false,
"O": true,
"P": false,
"Q": false,
"R": true,

View File

@ -11,7 +11,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_save><div class=IEntry><a href="../files/svgcanvas-js.html#save" target=_parent class=ISymbol>save</a></div></div><div class=SRResult id=SR_setCurrentLayer><div class=IEntry><a href="../files/svgcanvas-js.html#setCurrentLayer" target=_parent class=ISymbol>setCurrentLayer</a></div></div><div class=SRResult id=SR_setCurrentLayerPosition><div class=IEntry><a href="../files/svgcanvas-js.html#setCurrentLayerPosition" target=_parent class=ISymbol>setCurrentLayerPosition</a></div></div><div class=SRResult id=SR_setLayerVisibility><div class=IEntry><a href="../files/svgcanvas-js.html#setLayerVisibility" target=_parent class=ISymbol>setLayerVisibility</a></div></div><div class=SRResult id=SR_setSvgString><div class=IEntry><a href="../files/svgcanvas-js.html#setSvgString" target=_parent class=ISymbol>setSvgString</a></div></div><div class=SRResult id=SR_svgcanvas_perjs><div class=IEntry><a href="../files/svgcanvas-js.html#svgcanvas.js" target=_parent class=ISymbol>svgcanvas.js</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_save><div class=IEntry><a href="../files/svgcanvas-js.html#save" target=_parent class=ISymbol>save</a></div></div><div class=SRResult id=SR_Selection><div class=IEntry><a href="../files/svgcanvas-js.html#Selection" target=_parent class=ISymbol>Selection</a></div></div><div class=SRResult id=SR_Serialization><div class=IEntry><a href="../files/svgcanvas-js.html#Serialization" target=_parent class=ISymbol>Serialization</a></div></div><div class=SRResult id=SR_setCurrentLayer><div class=IEntry><a href="../files/svgcanvas-js.html#setCurrentLayer" target=_parent class=ISymbol>setCurrentLayer</a></div></div><div class=SRResult id=SR_setCurrentLayerPosition><div class=IEntry><a href="../files/svgcanvas-js.html#setCurrentLayerPosition" target=_parent class=ISymbol>setCurrentLayerPosition</a></div></div><div class=SRResult id=SR_setLayerVisibility><div class=IEntry><a href="../files/svgcanvas-js.html#setLayerVisibility" target=_parent class=ISymbol>setLayerVisibility</a></div></div><div class=SRResult id=SR_setSvgString><div class=IEntry><a href="../files/svgcanvas-js.html#setSvgString" target=_parent class=ISymbol>setSvgString</a></div></div><div class=SRResult id=SR_svgcanvas_perjs><div class=IEntry><a href="../files/svgcanvas-js.html#svgcanvas.js" target=_parent class=ISymbol>svgcanvas.js</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults", "HTML");

View File

@ -1320,6 +1320,8 @@ function BatchCommand(text) {
// public events
// Group: Selection
// Function: clearSelection
// Clears the selection. The 'selected' handler is then called.
this.clearSelection = function() {
@ -2910,14 +2912,20 @@ function BatchCommand(text) {
// public functions
// Group: Serialization
// Function: open
// Calls the 'opened' handler and sends the SVG XML text. Clients of the SvgCanvas bind
// their load function (typically calls to setSvgString() to the 'opened' event.
this.open = function(str) {
// Nothing by default, handled by optional widget/extention
// Nothing by default, handled by optional widget/extension
call("opened", str);
};
// Function: save
// Serializes the current drawing into SVG XML text and returns it to the 'saved' handler.
// This function also includes the XML prolog.
// This function also includes the XML prolog. Clients of the SvgCanvas bind their save
// function to the 'saved' event.
//
// Returns:
// Nothing
@ -3020,7 +3028,10 @@ function BatchCommand(text) {
};
// Layer API Functions
// Group: Layers
// TODO: make this an internal function?
this.identifyLayers = function() {
all_layers = [];
var numchildren = svgzoom.childNodes.length;