o} tx = ${typeof(foo)}`);
			//const bar = c.dataset.offsetX;
			//console.log(`x = ${bar} tx = ${typeof(bar)}`);
		}

		//img.onload = function() {
		//	viewport_reset();
		//};

		function viewport_reset(c) {
			c.dataset.offsetX = 0;
			c.dataset.offsetY = 0;
			c.dataset.scale = 1;
			c.dataset.brightness = 1;
			c.dataset.contrast = 100;
		}

		function viewport_offset(c, dx, dy) {
			//console.log(`dxy ${dx} ${dy}`);
			c.dataset.offsetX = Number(c.dataset.offsetX) + Number(dx);
			c.dataset.offsetY =