0.6.6 • Published 3 days ago

ef-infinite-canvas v0.6.6

Weekly downloads
2
License
MIT
Repository
github
Last release
3 days ago

InfiniteCanvas

npm version

project page

Open in Gitpod

About

InfiniteCanvas wraps an HTML5 <canvas> element and allows the user to zoom, pan and rotate the contents of the canvas. Content can be drawn on the canvas using the CanvasRenderingContext2D that is returned by InfiniteCanvas's getContext method.

var canvasElement = document.getElementById("canvas");
var infiniteCanvas = new InfiniteCanvas(canvasElement);
var context = infiniteCanvas.getContext("2d");

InfiniteCanvas has no dependencies that are not devDependencies.

Installation

Include InfiniteCanvas in your web page:

<script src="https://cdn.jsdelivr.net/npm/ef-infinite-canvas@0.6.6/dist/infinite-canvas.umd.cjs"></script>

or install it using npm:

npm install ef-infinite-canvas

Build

npm run build

Test

Testing InfiniteCanvas happens on two levels. One level is the jest tests that are run using

npm run test

The other level of testing happens by (first running npm run build and then) running

npm run test-e2e

which will start a server that serves pages in which InfiniteCanvas is used, and which will then run jest tests that use Puppeteer to manipulate those pages and jest-image-snapshot to compare screenshots.

Even though not much has happened in this repository lately, I have not forgotten about it. Quite to the contrary, there are a lot more features I'm planning to add in the not-too-distant future.

0.6.6

3 days ago

0.6.5

1 month ago

0.6.4

3 months ago

0.6.3

4 months ago

0.6.2

8 months ago

0.6.1

1 year ago

0.6.0-alpha

1 year ago

0.5.7-alpha

1 year ago

0.5.6-alpha

1 year ago

0.5.5-alpha

2 years ago

0.5.3-alpha

2 years ago

0.5.4-alpha

2 years ago

0.5.2-alpha

2 years ago

0.5.1-alpha

3 years ago

0.5.0-alpha

4 years ago

0.4.3-alpha

4 years ago

0.4.2-alpha

4 years ago

0.4.1-alpha

4 years ago