INNER CODE UNIT · JavaScript

createEdge

sheerun/graphqlviz · index.js:305

function createEdge (input) {
  var headerPort = this.theme.anchor.header ? '__title' : null
  var context = {
    leftNode: {
      name: input.from.typeName,
      port: input.from.fieldName ? input.from.fieldName + 'port' : headerPort
    },
    rightNode: {
      name: input.to.typeName,
      port: input.to.fieldName ? input.to.fieldName + 'port:w' : headerPort
    },
    attributes: {
      color: input.color,
      fontcolor: input.color,
      label: input.label,
      weight: input.weight
    }
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…