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) {