* feat(pal): declare startup maximum DPR configuration
Add an optional maximum DPR to screen initialization and readonly access to
the original DPR and explicitly configured cap. An omitted or null cap retains
the platform's existing policy.
This is the engine type contract for the staged PAL implementation. Public
Screen configuration methods and Native render-target integration remain
separate work; this commit does not change runtime rendering.
Validated against the PAL engine/four-platform contract check and full npm test
(65 source tests, 4 build tests, release/debug module validation).
* feat(screen): expose startup maximum DPR configuration
Allow applications to set, reset and read a pending maximum DPR before Screen
initialization while preserving platform defaults when unconfigured. Lock the
configuration at initialization and reject unsupported PAL implementations or
options that PAL silently ignores.
Add startup validation and compatibility tests. Only implementation and tests
are included; local documentation and generated validation artifacts remain
outside this commit.
Companion PAL commit: 2959778b7acf83dd84e3aab5957d60d80e20c461.
Native render-target integration, device acceptance, runtime changes and editor
configuration remain separate work.
Validation recorded on 2026-09-29: tsc --noEmit; 20 Screen and 6 View tests;
public declaration generation; real WebGL demo with simulated host DPR,
first-draw, input, reset, late-call rejection and resize checks. Screen source
SHA-256 still matches that verified build.
* fix(screen): restrict startup DPR configuration to Web
* fix(screen): ignore DPR cap calls on non-Web platforms
* fix(screen): preserve optional DPR types in native builds
* refactor(screen): configure Web DPR through startup settings
* refactor(screen): delegate DPR policy and validation to PAL
* style(screen): wrap fullscreen method signatures
* perf(screen): simplify startup DPR null checks
* version update