File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vueplotlib" ,
3- "version" : " 1.5.0 " ,
3+ "version" : " 1.5.1 " ,
44 "private" : false ,
55 "scripts" : {
66 "serve" : " vue-cli-service serve --open ./examples-src/index.js" ,
Original file line number Diff line number Diff line change @@ -365,7 +365,16 @@ export default {
365365 .tickSizeOuter (tickSizeOuter)
366366 .tickFormat (tickFormatFunction2)
367367 );
368- const textBboxZoomedIn = ticksZoomedIn .select (" text" ).node ().getBBox ();
368+
369+
370+ let textBboxZoomedIn;
371+ try {
372+ textBboxZoomedIn = ticksZoomedIn .select (" text" ).node ().getBBox ();
373+ } catch (e) {
374+ // Replace with dummy object on failure
375+ // TODO: find better solution
376+ textBboxZoomedIn = { height: 0 };
377+ }
369378
370379 const tickTransformFunction = (d , i , v ) => {
371380 let tickBbox = v[i].getBBox ();
You can’t perform that action at this time.
0 commit comments