![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
shivs-angular5-painter
Advanced tools
Readme
Angular5 component to paint on a canvas on desktop or touch devices
DATE: 2018-08-07
npm install shivs-angular5-painter --save
Add PainterLibraryModule in your app.module.ts
import {PainterLibraryModule} from 'shivs-angular5-painter';
@NgModule({
...
imports: [PainterLibraryModule]
})
<canvas-painter #painter color="#00FF00" lineWidth="5" (paintStart)="onPaintStart()" (paintEnd)="onPaintEnd()"
(undoLength)="onUndoLengthChanged($event)" (redoLength)="onRedoLengthChanged($event)"
(isEmpty)="onIsEmptyChanged($event)"></canvas-painter>
{
clipBounds: { x: 0, y: 0, width: 0, height: 0 } //Set a region that can be drawn on
canvasWidth: 600, //px
canvasHeight: 600, //px
color: '#000',
lineWidth: 10, //px
cacheSize: 10 // boolean or a number of versions to keep in memory
}
Special thanks to pwambach (https://github.com/pwambach/angular-canvas-painter) and his work with the Angular1 directive. This was written to work with Angular5 because we needed it to work in our application that is written with Angular5.
MIT
FAQs
shivs-angular5-painter ======================
The npm package shivs-angular5-painter receives a total of 1 weekly downloads. As such, shivs-angular5-painter popularity was classified as not popular.
We found that shivs-angular5-painter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.