Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
BrushJS is a tiny library for drawing on a HTML5 canvas, originally created to back the Pencil editor. Its main features are performace, support for nested transformations on contexts and high-quality text rendering.
DrawingContext2D
fully backwards-compatible with
CanvasRenderingContext2D
and supporting transformation nesting. You can even pass a nested drawing context to other
drawing libraries as if it was an ordinary rendering context!DrawingContext2D
makes it very trivial to implement it yourself.const g = new BRUSH.HQDrawingContext2D()
g.scale(4, 4) // make everything bigger
g.fillText("Hello, there.", 100, 100) // draws in high-quality
const g2 = g.nest()
g2.translate(100, 100)
g2.fillRect(0,0,100,50) // hey look, it's still scaled!
g.fillRect(0,0,100,50) // no translation on this one
document.body.appendChild(g.canvas)
Recommended way is through NPM using something like webpack.
npm i --save brush.js
Alternatively, include one of the releases in your <script/>
-tag.
In Chrome, you need to enable the experimental canvas APIs. This can be done on
the command line using --enable-experimental-canvas-features
or in the
about:flags
-page.
FAQs
A tiny but efficient library for drawing graphics
The npm package brush.js receives a total of 1 weekly downloads. As such, brush.js popularity was classified as not popular.
We found that brush.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.