1.0.4 • Published 4 years ago

canvas-positioner v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Accepts window object, and a canvas reference. Automatically sets the position to absolute, and if on desktop, centers in the middle of the page, and on mobile, will set to full screen.

Example:

//position canvas fullscreen for mobile, and in the center of your screen for desktop positionCanvas(window, document.getElementsByTagName("canvas")0);

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago