sidebar btn
This commit is contained in:
parent
1329678fe6
commit
6cbb63b4e8
|
@ -58,7 +58,7 @@ const sidebarFunc = () => {
|
||||||
if (sidebar.is_open) {
|
if (sidebar.is_open) {
|
||||||
sidebar.close()
|
sidebar.close()
|
||||||
} else {
|
} else {
|
||||||
sidebar.open()
|
sidebar.is_open = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -295,7 +295,7 @@ onBeforeRender(() => {
|
||||||
|
|
||||||
const dis_to_cam = camera.value?.position.distanceTo(el.value[0].position);
|
const dis_to_cam = camera.value?.position.distanceTo(el.value[0].position);
|
||||||
if (dis_to_cam) {
|
if (dis_to_cam) {
|
||||||
const scaling = (0.5 * dis_to_cam) / 100
|
const scaling = (0.66 * dis_to_cam) / 100
|
||||||
el.value[0].children[0].scale.set(scaling, scaling, scaling);
|
el.value[0].children[0].scale.set(scaling, scaling, scaling);
|
||||||
el.value[0].updateMatrixWorld()
|
el.value[0].updateMatrixWorld()
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ export const usePromoSidebar = defineStore('promo_sidebar', {
|
||||||
// this.target = undefined;
|
// this.target = undefined;
|
||||||
// this.loading = true;
|
// this.loading = true;
|
||||||
this.is_open = false;
|
this.is_open = false;
|
||||||
this.accordions = [];
|
// this.accordions = [];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
closeBtn() {
|
closeBtn() {
|
||||||
|
|
Loading…
Reference in New Issue