Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create multiple windows animation demo #25

Open
4 of 5 tasks
jcubic opened this issue Oct 2, 2021 · 3 comments
Open
4 of 5 tasks

Create multiple windows animation demo #25

jcubic opened this issue Oct 2, 2021 · 3 comments

Comments

@jcubic
Copy link
Owner

jcubic commented Oct 2, 2021

It would be cool and most likely possible to create something like a multi-desktop monitor setup but with browser windows that are displayed next to each other.

  • Create Windows connection.
  • Create UI where you drag and arrange windows.
  • Create interactive demo on multiple windows (moving circle).
  • Record video and share the link.
  • Write an article about the demo.
@jcubic
Copy link
Owner Author

jcubic commented Nov 7, 2021

You can get window location in JavaScript:

function geometry() {
    const left = window.screenX;
    const top = window.screenY;
    const width = window.innerWidth;
    const height = window.innerHeight;
    return {
        top,
        left,
        width,
        height
    };
}

@jcubic
Copy link
Owner Author

jcubic commented Nov 7, 2021

There is a resize event, but not a move event, so you need to use setInterval and check the position.

jcubic added a commit that referenced this issue Feb 13, 2022
jcubic added a commit that referenced this issue Feb 13, 2022
jcubic added a commit that referenced this issue Feb 13, 2022
@jcubic
Copy link
Owner Author

jcubic commented Jan 17, 2023

This can be a starting point Multi-Canvas demo.

Now what's left is to use this as a base and create a page that will have a full-screen canvas and draw the circle on multiple pages.

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

No branches or pull requests

1 participant