- Documentation
- Server functions
- svgSetUpdateCallback
Function
svgSetUpdateCallback
Stores a function tied to SVG document changes (compatibility with existing scripts); nil removes it.
Syntax
bool svgSetUpdateCallback(element svgElement, function callback)Arguments
svgElementelement- The SVG document.
callbackfunction- A function, or
nil.
Returns
true on success.
Example
local svg = svgCreate(32, 32, "<svg/>")
svgSetUpdateCallback(svg, function(doc) outputDebugString("Zmieniono SVG") end)
Notes
Limitation. The function is not called yet; after a change use the callback argument of svgSetDocumentXML.