Category
SVG
All Lua functions and events in the SVG category, on the server and the client.
Server functions 6
svgCreates an SVG document (vector graphics) on the server with the given size in pixels and XML content. The document holds content that can be changed and read (e.g. generate a chart or badge and send its text to clients with an event). The optional function receives the finished document.Create svgReturns the XML content of an SVG document.Get Document XML svgReturns the SVG document size in pixels.Get Size svgReplaces the content of an SVG document. The optional function receives the document after the change.Set Document XML svgChanges the stored SVG document size in pixels.Set Size svgStores a function tied to SVG document changes (compatibility with existing scripts);Set Update Callback nilremoves it.