Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getHandlePosition() {
let value
if (this.options.useCssTransforms && transform) {
const transform = getStyle(TRANSFORM, this.$handle)
value = convertMatrixToArray(transform)
if (!value) {
return 0
}
if (this.attributes.axis === 'X') {
value = value[12] || value[4]
} else {
value = value[13] || value[5]
}
} else {
value = getStyle(this.attributes.position, this.$handle)
}
return parseFloat(value.replace('px', ''))
}