Max 2. pivot points
This commit is contained in:
parent
d843b954ab
commit
94eab073e6
@ -163,6 +163,8 @@ onMounted(() => {
|
||||
|
||||
function addPivotPoint(event: MouseEvent) {
|
||||
if (!imageRef.value) return
|
||||
// Max 2
|
||||
if (mapObjectPivotPoints.value.length >= 2) return
|
||||
const rect = imageRef.value.getBoundingClientRect()
|
||||
const x = event.clientX - rect.left
|
||||
const y = event.clientY - rect.top
|
||||
|
Loading…
x
Reference in New Issue
Block a user