From 228f524aa324d3cd43224d3e54432b715ed736d9 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Mon, 20 May 2024 09:58:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=80=D0=BE=D0=B3=D0=BE=D0=B2?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=B4=D0=B8=D1=81=D0=BA=D1=80=D0=B5=D1=82=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/components/Floorplan.vue | 2 +- front/src/stores/floorplan.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/components/Floorplan.vue b/front/src/components/Floorplan.vue index 3225c06..4dd6b0f 100644 --- a/front/src/components/Floorplan.vue +++ b/front/src/components/Floorplan.vue @@ -19,7 +19,7 @@ const startToEndPath = ref() const plan = useFloorplanStore() const paths = ref([]) -const finder = new PF.DijkstraFinder(); +const finder = new PF.AStarFinder(); const newDraw = () => { endPoint.value = undefined diff --git a/front/src/stores/floorplan.ts b/front/src/stores/floorplan.ts index b11e581..ad4913e 100644 --- a/front/src/stores/floorplan.ts +++ b/front/src/stores/floorplan.ts @@ -27,7 +27,7 @@ export const useFloorplanStore = defineStore('floorplan', { }) }) return line_data.map(el => { - return el.filter(e => e > 0).length > 0 ? 1 : 0 + return el.filter(e => e > 0).length > 10 ? 1 : 0 }) }); } catch (error) {