1.0.4 • Published 5 years ago

canvas-positioner v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 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

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago