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 1
1
{
2
2
"name" : " vueplotlib" ,
3
- "version" : " 1.5.0 " ,
3
+ "version" : " 1.5.1 " ,
4
4
"private" : false ,
5
5
"scripts" : {
6
6
"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 {
365
365
.tickSizeOuter (tickSizeOuter)
366
366
.tickFormat (tickFormatFunction2)
367
367
);
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
+ }
369
378
370
379
const tickTransformFunction = (d , i , v ) => {
371
380
let tickBbox = v[i].getBBox ();
You can’t perform that action at this time.
0 commit comments