1
0
Fork 0

Add ‘del’ method to SVGCanvas

From Henning Stahlke
This commit is contained in:
James Turner 2020-08-02 11:06:12 +01:00
parent 33ac2eff46
commit 398d9cb486

View file

@ -20,7 +20,6 @@
#-------------------------------------------------------------------------------
var SVGCanvas = {
colors: canvas.colors,
# constructor
@ -52,6 +51,11 @@ var SVGCanvas = {
return obj;
},
del: func() {
if (me.window != nil) me.window.del();
me._canvas.del();
return nil;
},
# loadSVG - loads SVG file and create canvas.element objects for given IDs
# file: filename to load
# svg_keys: vector of id strings