The W3C Geometry Interfaces implemented in JavaScript and polyfilled.
Installations
npm install geometry-interfaces
Releases
Unable to fetch releases
Developer
Developer Guide
Module System
CommonJS, UMD
Min. Node Version
Typescript Support
No
Node Version
8.1.4
NPM Version
5.3.0
Statistics
20 Stars
72 Commits
4 Forks
5 Watching
2 Branches
4 Contributors
Updated on 04 Mar 2023
Bundle Size
12.22 kB
Minified
3.04 kB
Minified + Gzipped
Languages
JavaScript (89.43%)
Shell (10.57%)
Total Downloads
Cumulative downloads
Total Downloads
23,866,146
Last day
-0.7%
22,725
Compared to previous day
Last week
4.4%
120,448
Compared to previous week
Last month
8.2%
506,996
Compared to previous month
Last year
-3.6%
5,651,855
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Geometry Interfaces
The W3C Geometry Interfaces implemented in JavaScript and polyfilled.
In the box so far
Interfaces
Work in progress
Up next
Under consideration
Usage
If you're using a module system, just import the library after installing it from NPM:
1import 'geometry-interfaces' // ES2015 Modules 2// or 3require('geometry-interfaces') // CommonJS 4// or 5define(['geometry-interfaces'], () => {}) // AMD
You can also clone this repo, then you'll see a global.js
file in the root of
the project that you can copy over to your project and load with a <script>
tag, for example:
1<script src='global.js'></script>
(You can rename the file of course.)
The global.js
file is usually the one shipped with the last tagged version.
Execute npm run build-global
to update the file using the latest content in
the repo.
If you don't want to polyfill everything and you're using a module system (f.e. Rollup, Webpack, Browserify, etc), import whatever you need directly:
1import DOMMatrix from 'geometry-interfaces/DOMMatrix'
Contributing
Disclaimer: I'm implementing these interfaces/APIs on an as-needed basis, so this project may not currently include all of the interfaces or APIs.
Consider bringing the web forward by making a pull request to add missing interfaces, APIs, or performance improvements (especially on the matrix calculations). :]
Miscellaneous
The word "dommetry" is a play on the words "geometry" and "DOMMatrix" put together. :D
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 3/25 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: npmCommand not pinned by hash: scripts/build.sh:1
- Info: 0 out of 1 npmCommand dependencies pinned
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
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 8 are checked with a SAST tool
Score
2.5
/10
Last Scanned on 2024-11-18
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