calculateConfig = (_rawConfig, maxRound, firstMatchesSize) => {
const cfg = _rawConfig;
const matchWidthAll = cfg.matchWidth + cfg.matchGapX;
const matchHeightAll = cfg.matchHeight + cfg.matchGapY;
const worldWidth = matchWidthAll * maxRound;
const worldHeight = matchHeightAll * firstMatchesSize;
const teamWidth = cfg.matchWidth;
const teamHeight = cfg.matchHeight / 2;
return {
...cfg,
matchWidthAll,
matchHeightAll,
worldWidth,
worldHeight,
teamWidth,
teamHeight
};
}