bx-865-apps #1
|
@ -19,7 +19,7 @@ const startToEndPath = ref()
|
||||||
const plan = useFloorplanStore()
|
const plan = useFloorplanStore()
|
||||||
const paths = ref<PathItem[]>([])
|
const paths = ref<PathItem[]>([])
|
||||||
|
|
||||||
const finder = new PF.DijkstraFinder();
|
const finder = new PF.AStarFinder();
|
||||||
|
|
||||||
const newDraw = () => {
|
const newDraw = () => {
|
||||||
endPoint.value = undefined
|
endPoint.value = undefined
|
||||||
|
|
|
@ -27,7 +27,7 @@ export const useFloorplanStore = defineStore('floorplan', {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
return line_data.map(el => {
|
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) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue