393
edits
(on my evil arc) |
No edit summary |
||
Line 113: | Line 113: | ||
['width'] = '1000px', -- Adjust based on max width | ['width'] = '1000px', -- Adjust based on max width | ||
['height'] = (maxLevel + 1) * verticalSpacing .. 'px', -- Adjust height dynamically | ['height'] = (maxLevel + 1) * verticalSpacing .. 'px', -- Adjust height dynamically | ||
['margin'] = 'auto' | ['margin'] = 'auto', | ||
['border'] = '1px solid red' -- Debug border for the entire tree | |||
}) | }) | ||
Line 146: | Line 147: | ||
['background-color'] = '#f5f5f5', | ['background-color'] = '#f5f5f5', | ||
['border'] = '2px solid black', | ['border'] = '2px solid black', | ||
['text-align'] = 'center' | ['text-align'] = 'center', | ||
['debug'] = true -- Debug to check if nodes are placed correctly | |||
}) | }) | ||
Line 155: | Line 157: | ||
}):done() | }):done() | ||
-- | -- Debug the positions of the nodes | ||
nodeDiv:tag('p'):wikitext('X: ' .. xPos .. ' Y: ' .. yPos):done() | |||
-- Append nodeDiv to HTML | -- Append nodeDiv to HTML | ||
Line 210: | Line 190: | ||
return tostring(html) | return tostring(html) | ||
end | end | ||
return p | return p |
edits