bx-865-apps #1
|
@ -19,7 +19,7 @@ const startToEndPath = ref()
|
|||
const plan = useFloorplanStore()
|
||||
const paths = ref<PathItem[]>([])
|
||||
|
||||
const finder = new PF.DijkstraFinder();
|
||||
const finder = new PF.AStarFinder();
|
||||
|
||||
const newDraw = () => {
|
||||
endPoint.value = undefined
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue