
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
angular-canvas-base
Advanced tools
The react canvas base was created to simplify creating canvas components for angular. You can add it to your project via NPM.
The react canvas base was created to simplify creating canvas components for angular. You can add it to your project via NPM.
npm install angular-canvas-base
Here some examples how to handle the canvas base.
import { Component, Injector } from '@angular/core';
import { CanvasBaseComponent, ICanvas, Point } from 'angular-canvas-base';
@Component({
selector: 'my-canvas-component',
template: ''
})
export class MyCanvasComponent extends CanvasBaseComponent {
constructor(injector: Injector) {
super(injector);
this.resize(200, 200);
}
protected onDraw(canvas: ICanvas) {
canvas.drawRect(10, 10, 180, 180, false, true);
}
}
import { Component, Injector } from '@angular/core';
import { CanvasBaseComponent, CanvasFont, FillStyle, ICanvas, StrokeStyle } from 'angular-canvas-base';
@Component({
selector: 'my-canvas-component',
template: ''
})
export class MyCanvasComponent extends CanvasBaseComponent {
constructor(injector: Injector) {
super(injector);
this.resize(200, 200);
}
protected onDraw(canvas: ICanvas) {
canvas.setFillStyle(new FillStyle('#F00'));
canvas.setStrokeStyle(new StrokeStyle('#888', 4));
canvas.drawRect(10, 10, 180, 180, true, true);
canvas.setFont(new CanvasFont(24, 'Arial'));
canvas.setFillStyle(new FillStyle('#FFF'));
canvas.setTextBaseline('middle');
canvas.drawText('Button', 60, 96, 90, true);
}
}
import { Component, Injector } from '@angular/core';
import { CanvasBaseComponent, CanvasDrawMode, FillStyle, ICanvas, StrokeStyle } from 'angular-canvas-base';
@Component({
selector: 'my-canvas-component',
template: ''
})
export class MyCanvasComponent extends CanvasBaseComponent {
private size = 10;
private direction = 0.2;
constructor(injector: Injector) {
super(injector);
this.setDrawMode(CanvasDrawMode.Continuous);
this.resize(500, 500);
}
protected onDraw(canvas: ICanvas, frameTime: number) {
canvas.clear();
canvas.setFillStyle(new FillStyle('#BBB'));
canvas.setStrokeStyle(new StrokeStyle('#444', 2));
canvas.drawRect(200 - this.size / 2, 200 - this.size / 2, this.size, this.size, true, true);
this.size += this.direction * frameTime;
if (this.size < 10) {
this.direction = 0.2;
}
if (this.size > 200) {
this.direction = -0.2;
}
}
}
FAQs
The angular canvas base was created to simplify creating canvas components for angular. You can add it to your project via NPM.
The npm package angular-canvas-base receives a total of 0 weekly downloads. As such, angular-canvas-base popularity was classified as not popular.
We found that angular-canvas-base 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.