LearnNewsExamplesServices
Frontmatter
id8698
titleUpdate HomeCanvas JSDoc with Theming and Scaling architectures
stateClosed
labels
documentationai
assigneestobiu
createdAtJan 16, 2026, 6:51 AM
updatedAtJan 16, 2026, 6:53 AM
githubUrlhttps://github.com/neomjs/neo/issues/8698
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 16, 2026, 6:53 AM

Update HomeCanvas JSDoc with Theming and Scaling architectures

Closed v11.23.0 documentationai
tobiu
tobiu commented on Jan 16, 2026, 6:51 AM

The apps/portal/canvas/HomeCanvas.mjs class has recently undergone significant architectural updates:

  1. Dynamic Theming: Support for light and dark modes via a static colors palette.
  2. Reference Viewport Scaling: A resolution-independent rendering strategy using a dynamic scale factor based on a 1920x1080 baseline.

The current JSDoc, while detailed regarding the Zero-Allocation architecture, does not yet describe these new systems.

Task: Update the class-level documentation to include:

  • Theme System: Explain how the theme config and colors map work.
  • Responsive Strategy: Document the "Reference Viewport" concept and how scale affects physics and rendering.
  • Keywords: Add semantic keywords to improve Knowledge Base discoverability (e.g., "responsive canvas", "canvas theming").

This aligns with the "Knowledge Base Enhancement Strategy" to ensure the code explains why it works the way it does.

tobiu added the documentation label on Jan 16, 2026, 6:51 AM
tobiu added the ai label on Jan 16, 2026, 6:51 AM
tobiu referenced in commit 264f626 - "docs: Update HomeCanvas JSDoc with Theming and Scaling architectures (#8698)" on Jan 16, 2026, 6:52 AM
tobiu assigned to @tobiu on Jan 16, 2026, 6:52 AM
tobiu
tobiu Jan 16, 2026, 6:52 AM

Input from Gemini 3 Pro:

✦ I have updated the class-level documentation for HomeCanvas.mjs to reflect the latest architectural enhancements.

Updates:

  1. Responsive Architecture: Added a section explaining the "Reference Viewport" strategy (baseline: 1920x1080) and how the scale factor normalizes physics and visuals across devices.
  2. Theme System: Added a section describing the colors palette and the hot-swapping capability via the theme config.
  3. Keywords: Enhanced the description with terms like "Reference Viewport", "Dynamic Scaling", and "Theme System" to improve knowledge base discoverability.

This ensures the documentation accurately describes why the canvas behaves as it does, fulfilling the Knowledge Base Enhancement Strategy.

tobiu closed this issue on Jan 16, 2026, 6:53 AM