File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vueplotlib" ,
3
- "version" : " 1.11.1 " ,
3
+ "version" : " 1.11.2 " ,
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 @@ -106,6 +106,10 @@ export default {
106
106
type: Boolean ,
107
107
default: true
108
108
},
109
+ ' autoRemoveTicks' : {
110
+ type: Boolean ,
111
+ default: true
112
+ },
109
113
' log' : {
110
114
type: Boolean ,
111
115
default: false
@@ -430,13 +434,13 @@ export default {
430
434
if (varScale instanceof CategoricalScale) {
431
435
if (vm ._orientation === ORIENTATIONS .HORIZONTAL ) {
432
436
const barWidth = vm .pWidth / varScaleDomainFiltered .length ;
433
- if (barWidth < textBboxZoomedIn .height ) {
437
+ if (vm . autoRemoveTicks && barWidth < textBboxZoomedIn .height ) {
434
438
ticksZoomedIn .selectAll (" text" )
435
439
.remove ();
436
440
}
437
441
} else if (vm ._orientation === ORIENTATIONS .VERTICAL ) {
438
442
const barHeight = vm .pHeight / varScaleDomainFiltered .length ;
439
- if (barHeight < textBboxZoomedIn .height ) {
443
+ if (vm . autoRemoveTicks && barHeight < textBboxZoomedIn .height ) {
440
444
ticksZoomedIn .selectAll (" text" )
441
445
.remove ();
442
446
}
@@ -500,7 +504,7 @@ export default {
500
504
501
505
if (varScale instanceof CategoricalScale) {
502
506
const barWidth = vm .pWidth / varScaleDomain .length ;
503
- if (barWidth < textBboxZoomedOut .height ) {
507
+ if (vm . autoRemoveTicks && barWidth < textBboxZoomedOut .height ) {
504
508
ticksZoomedOut .selectAll (" text" )
505
509
.remove ();
506
510
}
You can’t perform that action at this time.
0 commit comments