accountColour: getAccountColour()

in source/frontend/src/API/NodeFactory/NodeFactory.js [104:139]


        accountColour: getAccountColour(
          properties.accountId ? properties.accountId : 'global'
        ),
        regionColour: getRegionColour(
          properties.awsRegion ? properties.awsRegion : 'Multi-Region'
        ),
        color: parsedNode.styling.colour,
        borderStyle: parsedNode.styling.borderStyle,
        borderColour: parsedNode.styling.borderColour,
        //   borderColour: state ? state.color : '#545B64',
        borderOpacity: parsedNode.styling.borderOpacity,
        //   borderOpacity: state ? '0.25' : '0',
        //   borderSize: state ? state.borderSize : 1,
        borderSize: parsedNode.styling.borderSize,
        opacity: '0',
        clickedId: node.id,
        state: parsedNode.state,
        image: parsedNode.icon,
        softDelete: properties.softDelete,
        cost: Number(getCostData(node)),
        private: properties.private ? true : false,
        detailsComponent: parsedNode.detailsComponent,
        hoverComponent: parsedNode.hoverComponent,
        resource: {
          id: properties.resourceId,
          name: properties.resourceName,
          value: properties.resourceValue,
          type: properties.resourceType,
          tags: properties.tags,
          arn: !R.isNil(properties.arn) ? properties.arn : findARN(properties),
          region: properties.awsRegion ? properties.awsRegion : 'Multi-Region',
          state: properties.state,
          loggedInURL: properties.loggedInURL,
          loginURL: properties.loginURL,
          accountId: properties.accountId ? properties.accountId : 'global',
        },