Gathering detailed insights and metrics for tarpaulin
Gathering detailed insights and metrics for tarpaulin
Gathering detailed insights and metrics for tarpaulin
Gathering detailed insights and metrics for tarpaulin
A minimal toolset aimed at mathematical drawing on canvas or svg
npm install tarpaulin
Typescript
Module System
Node Version
NPM Version
74.1
Supply Chain
85.1
Quality
75.6
Maintenance
100
Vulnerability
100
License
TypeScript (99.76%)
JavaScript (0.24%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
92 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Aug 13, 2024
Latest Version
1.2.2
Package Id
tarpaulin@1.2.2
Unpacked Size
55.05 kB
Size
12.47 kB
File Count
73
NPM Version
6.9.0
Node Version
12.1.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
A minimal toolset aimed at mathematical drawing on canvas or svg
Install with npm:
1$ npm install --save tarpaulin
Install with yarn:
1$ yarn add tarpaulin
1import Tarpaulin, { Color } from "tarpaulin" 2 3// Set appearance 4const size = 600 5const xMin = -50 6const xMax = 50 7const yMin = -50 8const yMax = 50 9 10// Create a canvas tarp 11Tarpaulin.createCanvas({ size, xMin, xMax, yMin, yMax }) 12 13// Or create an SVG tarp 14//Tarpaulin.createSvg({ size, xMin, xMax, yMin, yMax }) 15 16// START DRAWING 17 18Tarpaulin.drawGrid() 19Tarpaulin.drawAxes() 20 21// Draw filled & stroked shapes 22Tarpaulin.drawCircle([-25, 25], 15, { fill: Color.Red, stroke: Color.Black }) 23Tarpaulin.drawRect([10, 40], 30, 30, { fill: Color.Blue, stroke: Color.Black }) 24Tarpaulin.drawPath([[-25, -10], [-42.32, -40], [-7.68, -40]], { fill: Color.Yellow, stroke: Color.Black }) 25 26// Draw filled-only/stroked-only shapes 27Tarpaulin.drawCircle([15, -15], 5, { fill: Color.Green }) 28Tarpaulin.drawRect([30, -10], 10, 10) 29Tarpaulin.drawPath([[15, -30], [9.226, -40], [20.773, -40]], { stroke: Color.Black, closed: true }) 30Tarpaulin.drawPath([[30, -30], [40, -30], [35, -30], [35, -40]], { stroke: Color.Black, strokeWidth: 5 })
See more usage examples in examples
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
7 existing vulnerabilities detected
Details
Reason
Found 0/25 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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