INNER CODE UNIT · JavaScript

isEnabled

sheerun/graphqlviz · index.js:263

function isEnabled (obj) {
  var enabled = false
  if (obj.isEnumType) {
    enabled = !this.theme.enums.hide
  } else if (obj.isInputType) {
    enabled = !this.theme.inputs.hide
  } else if (obj.isInterfaceType) {
    enabled = !this.theme.interfaces.hide
  } else if (obj.isUnionType) {
    enabled = !this.theme.unions.hide
  } else {
    enabled = true
  }
  return enabled
}

// get the color for the given field
function getColor (obj) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…