Skip to content

refactor: complete Canvas interface ownership - #337

Open
jderochervlk wants to merge 1 commit into
codex/option5-navigator-folderfrom
codex/option5-canvas-values
Open

refactor: complete Canvas interface ownership#337
jderochervlk wants to merge 1 commit into
codex/option5-navigator-folderfrom
codex/option5-canvas-values

Conversation

@jderochervlk

@jderochervlk jderochervlk commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Tracking issue: #342

Stack context

Part 27 of the Option 5 folder-feature stack.

Review this PR as the incremental diff against #336.

Summary

  • move ImageData and VideoColorSpace from the legacy DOM folder into src/canvas
  • expose both existing flat interface modules through WebAPI.Canvas
  • leave the Canvas feature dependency closure unchanged

Why this follows the Canvas PR

The initial Canvas layer focused on the existing Canvas source folder. These two value interfaces were still published from the broad DOM folder even though their types and consumers belong to Canvas. Keeping this as a two-file follow-up makes that ownership correction explicit.

Temporary state

  • ScreenOrientation remains the last clear non-Window interface in the legacy DOM folder and moves in the next Device follow-up
  • the remaining legacy DOM source entry is removed by the subsequent Window layer
  • final feature-graph guardrails and helper cleanup remain deferred until the stack is complete

Review focus

  • ownership of the two value interfaces
  • unchanged flat public module paths and Canvas closure

Verification

  • node_modules/.bin/rescript clean
  • node_modules/.bin/rescript build --prod --features DOM,Event,DOMPlatform,Animation,CSSOM,Geometry,DOMNodes,File,HTML,Media,SVG,Canvas
  • npm run build
  • npm test
  • npm run format:check
  • git diff --check

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: ab8b5e46df

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jderochervlk
jderochervlk force-pushed the codex/option5-canvas-values branch from ab8b5e4 to 114f3d4 Compare August 4, 2026 17:31
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.

1 participant