Installations
npm install ef-infinite-canvas
Developer Guide
Typescript
Yes
Module System
ESM
Node Version
18.12.1
NPM Version
9.2.0
Score
77.5
Supply Chain
87.6
Quality
79.8
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Languages
TypeScript (95.26%)
JavaScript (3.98%)
Vue (0.56%)
HTML (0.14%)
CSS (0.05%)
Dockerfile (0.02%)
Developer
Download Statistics
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
GitHub Statistics
117 Stars
308 Commits
11 Forks
6 Watching
3 Branches
1 Contributors
Package Meta Information
Latest Version
0.6.7
Package Id
ef-infinite-canvas@0.6.7
Unpacked Size
373.54 kB
Size
71.43 kB
File Count
18
NPM Version
9.2.0
Node Version
18.12.1
Publised On
05 Oct 2024
Total Downloads
Cumulative downloads
Total Downloads
0
Last day
0%
0
Compared to previous day
Last week
0%
0
Compared to previous week
Last month
0%
0
Compared to previous month
Last year
0%
0
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
InfiniteCanvas
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.
1var canvasElement = document.getElementById("canvas"); 2var infiniteCanvas = new InfiniteCanvas(canvasElement); 3var context = infiniteCanvas.getContext("2d");
InfiniteCanvas
has no dependencies that are not devDependencies
.
Installation
Include InfiniteCanvas
in your web page:
1<script src="https://cdn.jsdelivr.net/npm/ef-infinite-canvas@0.6.7/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.
Local development
First run npm run dev-app:build
once. Then npm run dev
will run an app that displays all manner of use cases for InfiniteCanvas, served by Vite.
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.
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
4 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/node.js.yml:1
- Warn: no topLevel permission defined: .github/workflows/publish-docs.yml:1
- Warn: no topLevel permission defined: .github/workflows/update-ci-snapshots.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/emilefokkema/infinite-canvas/node.js.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/emilefokkema/infinite-canvas/node.js.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-docs.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/emilefokkema/infinite-canvas/publish-docs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-docs.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/emilefokkema/infinite-canvas/publish-docs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-docs.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/emilefokkema/infinite-canvas/publish-docs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-docs.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/emilefokkema/infinite-canvas/publish-docs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-ci-snapshots.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/emilefokkema/infinite-canvas/update-ci-snapshots.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-ci-snapshots.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/emilefokkema/infinite-canvas/update-ci-snapshots.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-ci-snapshots.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/emilefokkema/infinite-canvas/update-ci-snapshots.yml/master?enable=pin
- Warn: containerImage not pinned by hash: .gitpod.dockerfile:1: pin your Docker image by updating gitpod/workspace-full to gitpod/workspace-full@sha256:bec45ebdcc9b9c5ec28d5c61c16bf599200aa0d2dc1e69e2ed8ab0a424bae6db
- Info: 0 out of 9 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 containerImage dependencies pinned
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 3 are checked with a SAST tool
Score
4.4
/10
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More