Skip to content

Commit

Permalink
✨ use viewport dimensions for scene size
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Dec 19, 2023
1 parent ef77b7f commit 9be6b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ Visit https://haliphax.github.io/hxavatars to either build an overlay URL for
yourself or to view a demonstration (with no chat integration and a fixed
background color).

_Note: The overlay is currently hard-coded to 1920x1080, and expects to be
viewed in full-screen._

# 🎲 Commands

The following commands are available from the overlay's chat integration, with
Expand Down
4 changes: 2 additions & 2 deletions html/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const constants = {
LABEL_SIZE: 20,
OAUTH_REDIRECT_URI: "",
OAUTH_URL: "",
SCREEN_HEIGHT: 1080,
SCREEN_WIDTH: 1920,
SCREEN_HEIGHT: window.innerHeight,
SCREEN_WIDTH: window.innerWidth,
STROKE_COLOR: "#000",
STROKE_THICKNESS: 6,
TIMEOUT_MAX: 5000,
Expand Down

0 comments on commit 9be6b3f

Please sign in to comment.