Get the graph rendering as expected
This commit is contained in:
parent
3796687a72
commit
5e9b91b199
5 changed files with 98 additions and 24 deletions
|
|
@ -52,13 +52,17 @@ export class MemoryDatabase {
|
|||
if (!subtable) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const size = Number.parseInt(subtable.slice(1));
|
||||
const rows = [];
|
||||
|
||||
for (let i = 1; i <= size; i++) {
|
||||
const count = getNormalDistributionHeight(i, size / 2, size);
|
||||
console.table({ count, i });
|
||||
const temp = new Array(count).fill(null).map(() => generateRow(i));
|
||||
const temp = new Array(count)
|
||||
.fill(null)
|
||||
.map(() => generateRow(
|
||||
game.user.id == user ? i : Math.ceil(Math.random() * size),
|
||||
));
|
||||
rows.push(...temp);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue