@@ -314,35 +314,39 @@ export function populateGraph(g: Graph, chartData: ChartPoint[], bySponsor: bool
314 g.setNodeAttribute(sPatp, 'color', colors.YOUR_STAR);
314 g.setNodeAttribute(sPatp, 'color', colors.YOUR_STAR);
315 g.setNodeAttribute(gPatp, 'color', colors.YOUR_GAL);
315 g.setNodeAttribute(gPatp, 'color', colors.YOUR_GAL);
317− g.addNode(pPatp, {
318+ g.addNode(pPatp, {
318− label: pPatp,
319+ label: pPatp,
319− size: planetSize,
320+ size: planetSize,
320− color: itsYou ? colors.YOU : (planet.dominion == 'l2' ? colors.GREEN : colors.BLUE),
321+ color: itsYou ? colors.YOU : (planet.dominion == 'l2' ? colors.GREEN : colors.BLUE),
321− x: planetX,
322+ x: planetX,
322− y: planetY,
323+ y: planetY,
323− zIndex: 6,
324+ zIndex: 6,
325− if (lastPlanetArm == arm) {
326− g.addEdge(pPatp, lastPlanetPatp, {
327− color: colors.DGREY,
328− size: planetEdgeSize,
332− if (numPlanetArms == 1) {
333− g.addEdge(pPatp, sPatp, {
334− color: colors.DGREY,
335− size: planetEdgeSize,
326+ if (lastPlanetArm == arm) {
327+ g.addEdge(pPatp, lastPlanetPatp, {
328+ color: colors.DGREY,
329+ size: planetEdgeSize,
333+ if (numPlanetArms == 1) {
334+ g.addEdge(pPatp, sPatp, {
335+ color: colors.DGREY,
336+ size: planetEdgeSize,
340− if (planet.sponsor) {
341+ if (planet.sponsor) {
341− sponsorEdges.push([pPatp, planet.sponsor, {
342+ sponsorEdges.push([pPatp, planet.sponsor, {
342− color: colors.GREEN,
343+ color: colors.GREEN,
343− size: planetEdgeSize,
344+ size: planetEdgeSize,
344− zIndex: 11,
345+ zIndex: 11,
349+ console.error(`Couldn't add ${pPatp} to the graph`, e);
347 lastPlanetArm = arm;
351 lastPlanetArm = arm;
348 lastPlanetPatp = pPatp;
352 lastPlanetPatp = pPatp;