MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / getDefaultDisplay

Function getDefaultDisplay

ui/media/js/parameters.js:465–480  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

463}
464
465function getDefaultDisplay(element) {
466 const tag = element.tagName.toLowerCase();
467 const defaultDisplays = {
468 div: 'block',
469 span: 'inline',
470 p: 'block',
471 tr: 'table-row',
472 table: 'table',
473 li: 'list-item',
474 ul: 'block',
475 ol: 'block',
476 button: 'inline',
477 // Add more if needed
478 };
479 return defaultDisplays[tag] || 'block'; // Default to 'block' if not listed
480}
481
482async function getAppConfig() {
483 try {

Callers 1

getAppConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected