aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/utils.js')
-rw-r--r--src/utils/utils.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/utils.js b/src/utils/utils.js
index c2046a9..5d8706e 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -75,7 +75,7 @@ export function proportionalSize (element, width, height, box) {
export function getOrigin (o, element) {
// Allow origin or around as the names
- let origin = o.origin // o.around == null ? o.origin : o.around
+ const origin = o.origin // o.around == null ? o.origin : o.around
let ox, oy
// Allow the user to pass a string to rotate around a given point
@@ -85,10 +85,10 @@ export function getOrigin (o, element) {
const { height, width, x, y } = element.bbox()
// Calculate the transformed x and y coordinates
- let bx = string.includes('left') ? x
+ const bx = string.includes('left') ? x
: string.includes('right') ? x + width
: x + width / 2
- let by = string.includes('top') ? y
+ const by = string.includes('top') ? y
: string.includes('bottom') ? y + height
: y + height / 2