#11 - set front view
This commit is contained in:
parent
6967b1aa39
commit
f418d79e84
1 changed files with 3 additions and 2 deletions
|
|
@ -49,7 +49,8 @@ const xMax = computed(() => {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const currentX = ref(0);
|
const frontXView = (xMax.value + 1) / 2;
|
||||||
|
const currentX = ref(frontXView);
|
||||||
const currentY = ref(0);
|
const currentY = ref(0);
|
||||||
const currentFileIndex = computed(() => currentY.value + "_" + currentX.value);
|
const currentFileIndex = computed(() => currentY.value + "_" + currentX.value);
|
||||||
const currentFile = computed(() =>
|
const currentFile = computed(() =>
|
||||||
|
|
@ -121,7 +122,7 @@ function handleVerticalRotation(event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetView() {
|
function resetView() {
|
||||||
currentX.value = 0;
|
currentX.value = frontXView;
|
||||||
currentY.value = 0;
|
currentY.value = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue