global.js 407 Bytes
function getCellStatus(graph) {
  if (graph.isLightboxView()) return 'lightbox'
  const container = graph.container
  return container.className.includes('geSidebarTooltip')
    ? 'tooltip'
    : container.className.includes('geDiagramContainer')
      ? 'edit'
      : 'sidebar'
}

function generateComponentsId(componentName, id) {
  var prefix = 'thingskit'
  return `${prefix}-${componentName}_${id}`
}