bx-865-apps #1
|
@ -19,7 +19,6 @@ const startToEndPath = ref()
|
||||||
const plan = useFloorplanStore()
|
const plan = useFloorplanStore()
|
||||||
const paths = ref<PathItem[]>([])
|
const paths = ref<PathItem[]>([])
|
||||||
|
|
||||||
const pathFinderProcess = ref(false)
|
|
||||||
const finder = new PF.DijkstraFinder();
|
const finder = new PF.DijkstraFinder();
|
||||||
|
|
||||||
const newDraw = () => {
|
const newDraw = () => {
|
||||||
|
|
|
@ -20,7 +20,7 @@ export const useFloorplanStore = defineStore('floorplan', {
|
||||||
this.np_array = data.np_field
|
this.np_array = data.np_field
|
||||||
this.prepared_array = [...chunks(data.np_field, this.chunkSize)].map(line => {
|
this.prepared_array = [...chunks(data.np_field, this.chunkSize)].map(line => {
|
||||||
const line_data = [] as any[][]
|
const line_data = [] as any[][]
|
||||||
line.map((item: any) => [...chunks(item, this.chunkSize)]).map((item, j) => {
|
line.map((item: any) => [...chunks(item, this.chunkSize)]).map((item) => {
|
||||||
item.map((one_line, k) => {
|
item.map((one_line, k) => {
|
||||||
if (!line_data[k]) line_data[k] = []
|
if (!line_data[k]) line_data[k] = []
|
||||||
line_data[k].push(...one_line)
|
line_data[k].push(...one_line)
|
||||||
|
|
Loading…
Reference in New Issue