Skip to content

docs(ui): fix floating default shown for UIBaseElement/UISpriteElement#1252

Merged
obiot merged 1 commit intomelonjs:masterfrom
SergioChan:fix-docs-ui-floating-default
Mar 10, 2026
Merged

docs(ui): fix floating default shown for UIBaseElement/UISpriteElement#1252
obiot merged 1 commit intomelonjs:masterfrom
SergioChan:fix-docs-ui-floating-default

Conversation

@SergioChan
Copy link
Copy Markdown
Contributor

Summary

Fixes docs mismatch where UIBaseElement.floating and UISpriteElement.floating were shown as inheriting Renderable's default (false) even though both UI classes set it to true at runtime.

This change declares floating = true as class fields (with JSDoc), so TypeDoc renders class-specific defaults instead of inherited defaults.

Closes #1237

Validation

  • Ran pnpm -F melonjs doc
  • Verified generated docs now show floating = true on both pages:
    • docs/classes/UIBaseElement.html
    • docs/classes/UISpriteElement.html

@obiot obiot merged commit 377fa42 into melonjs:master Mar 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Documentation of UISpriteElement.floating (and likely other inherited properties) incorrect

2 participants