@@ -14,7 +14,7 @@ const version_id = 'dev',
1414
1515/** @summary version date
1616 * @desc Release date in format day/month/year like '14/04/2022' */
17- version_date = '8 /04/2026',
17+ version_date = '16 /04/2026',
1818
1919/** @summary version id and date
2020 * @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -88857,7 +88857,7 @@ class BatchDisplay extends MDIDisplay {
8885788857 if (!mainsvg.attr('width') && !mainsvg.attr('height'))
8885888858 mainsvg.attr('width', this.width).attr('height', this.height);
8885988859
88860- if (style_filter)
88860+ if (style_filter && (style_filter !== 'none') )
8886188861 mainsvg.style('filter', style_filter);
8886288862
8886388863 function clear_element() {
@@ -92573,7 +92573,7 @@ class TCanvasPainter extends TPadPainter {
9257392573
9257492574 /** @summary Function called when canvas menu item Save is called */
9257592575 saveCanvasAsFile(fname) {
92576- const pnt = fname.indexOf ('.');
92576+ const pnt = fname.lastIndexOf ('.');
9257792577 this.createImage(fname.slice(pnt + 1))
9257892578 .then(res => this.sendWebsocket(`SAVE:${fname}:${res}`));
9257992579 }
@@ -166110,7 +166110,7 @@ async function makeImage(args) {
166110166110 if (!mainsvg.attr('width') && !mainsvg.attr('height'))
166111166111 mainsvg.attr('width', args.width).attr('height', args.height);
166112166112
166113- if (style_filter)
166113+ if (style_filter && (style_filter !== 'none') )
166114166114 mainsvg.style('filter', style_filter);
166115166115
166116166116 function clear_element() {
@@ -169245,12 +169245,15 @@ class HierarchyPainter extends BasePainter {
169245169245 }
169246169246
169247169247 return this.refreshHtml();
169248- }).catch(() => {
169248+ }).catch(err => {
169249169249 // make CORS warning
169250- if (isBatchMode())
169251- console.error(`Fail to open ${msg} - check CORS headers`);
169252- else if (!select('#gui_fileCORS').style('background', 'red').empty())
169253- setTimeout(() => select('#gui_fileCORS').style('background', ''), 5000);
169250+ const elem = isBatchMode() ? null : select('#gui_fileCORS');
169251+ if (!elem || elem.empty())
169252+ console.error(`Fail to open ${msg} - ${err?.message ?? 'check CORS headers'}`);
169253+ else {
169254+ elem.style('background', 'red');
169255+ setTimeout(() => elem.style('background', ''), 5000);
169256+ }
169254169257 return false;
169255169258 }).finally(() => showProgress());
169256169259 }
@@ -186218,7 +186221,7 @@ class RCanvasPainter extends RPadPainter {
186218186221
186219186222 /** @summary Function called when canvas menu item Save is called */
186220186223 saveCanvasAsFile(fname) {
186221- const pnt = fname.indexOf ('.');
186224+ const pnt = fname.lastIndexOf ('.');
186222186225 this.createImage(fname.slice(pnt + 1))
186223186226 .then(res => this.sendWebsocket(`SAVE:${fname}:${res}`));
186224186227 }
0 commit comments