Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const top = (1 - color.value.v) * this.maxLengthY - this.size
const hue = color.value.h
this.hue = color.value.h
setStyle(
{
top: `${top}px`,
left: `${left}px`
},
this.$pointer
)
setStyle(
{
backgroundColor: Converter.HSLtoHEX({
h: hue,
s: 1,
l: 0.5
})
},
this.element
)
}
const top = (1 - color.value.v) * this.maxLengthY - this.size
const hue = color.value.h
this.hue = color.value.h
setStyle(
{
top: `${top}px`,
left: `${left}px`
},
this.$pointer
)
setStyle(
{
backgroundColor: Converter.HSLtoHEX({
h: hue,
s: 1,
l: 0.5
})
},
this.element
)
}