@vaadin-component-factory/vcf-slider
Advanced tools
Comparing version 23.3.1 to 23.3.2
@@ -170,3 +170,3 @@ var Slider_1; | ||
static get version() { | ||
return '23.3.1'; | ||
return '23.3.2'; | ||
} | ||
@@ -404,2 +404,6 @@ get xy() { | ||
#ticks text { | ||
text-anchor: middle; | ||
} | ||
/* VERTICAL TICKS */ | ||
@@ -422,2 +426,6 @@ | ||
} | ||
:host([vertical]) #ticks text { | ||
text-anchor: end; | ||
} | ||
`; | ||
@@ -467,3 +475,3 @@ } | ||
} | ||
if (props.has('ticks') || props.has('rtl')) { | ||
if (props.has('ticks') || props.has('vertical') || props.has('rtl')) { | ||
this.setTicks(); | ||
@@ -487,9 +495,12 @@ } | ||
if (this.ticks) { | ||
this.createTicks(); | ||
// Set ticks padding | ||
const maxTickBounds = this.maxTickElement.getBoundingClientRect(); | ||
const ticksPadding = maxTickBounds.width / 2; | ||
this.style.setProperty('--vcf-slider-ticks-padding', `${ticksPadding}px`); | ||
// Reset ticks with new padding | ||
this.createTicks(); | ||
this.$ticks.innerHTML = ''; | ||
requestAnimationFrame(() => { | ||
this.createTicks(); | ||
// Set ticks padding | ||
const maxTickBounds = this.maxTickElement.getBoundingClientRect(); | ||
const ticksPadding = maxTickBounds.width / 2; | ||
this.style.setProperty('--vcf-slider-ticks-padding', `${ticksPadding}px`); | ||
// Reset ticks with new padding | ||
this.createTicks(); | ||
}); | ||
} | ||
@@ -496,0 +507,0 @@ } |
{ | ||
"name": "@vaadin-component-factory/vcf-slider", | ||
"version": "23.3.1", | ||
"version": "23.3.2", | ||
"description": "Range slider web component for the Vaadin platform.", | ||
@@ -5,0 +5,0 @@ "main": "out-tsc/vcf-slider.js", |
@@ -78,3 +78,3 @@ import { html, svg, css, PropertyValues, LitElement, render, TemplateResult, nothing } from 'lit'; | ||
protected static get version() { | ||
return '23.3.1'; | ||
return '23.3.2'; | ||
} | ||
@@ -324,2 +324,6 @@ | ||
#ticks text { | ||
text-anchor: middle; | ||
} | ||
/* VERTICAL TICKS */ | ||
@@ -342,2 +346,6 @@ | ||
} | ||
:host([vertical]) #ticks text { | ||
text-anchor: end; | ||
} | ||
`; | ||
@@ -392,3 +400,3 @@ } | ||
if (props.has('ticks') || props.has('rtl')) { | ||
if (props.has('ticks') || props.has('vertical') || props.has('rtl')) { | ||
this.setTicks(); | ||
@@ -418,9 +426,12 @@ } | ||
if (this.ticks) { | ||
this.createTicks(); | ||
// Set ticks padding | ||
const maxTickBounds = this.maxTickElement.getBoundingClientRect(); | ||
const ticksPadding = maxTickBounds.width / 2; | ||
this.style.setProperty('--vcf-slider-ticks-padding', `${ticksPadding}px`); | ||
// Reset ticks with new padding | ||
this.createTicks(); | ||
this.$ticks.innerHTML = ''; | ||
requestAnimationFrame(() => { | ||
this.createTicks(); | ||
// Set ticks padding | ||
const maxTickBounds = this.maxTickElement.getBoundingClientRect(); | ||
const ticksPadding = maxTickBounds.width / 2; | ||
this.style.setProperty('--vcf-slider-ticks-padding', `${ticksPadding}px`); | ||
// Reset ticks with new padding | ||
this.createTicks(); | ||
}); | ||
} | ||
@@ -427,0 +438,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
234620
2692