🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP →
Sign In

@armniko/canvas

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@armniko/canvas - npm Package Compare versions

Comparing version
1.1.0
to
1.1.1
+1
dist/types.d.ts
export type ImageSource = HTMLCanvasElement | HTMLImageElement;
export {};
+2
-0

@@ -29,2 +29,4 @@ import { ElementArtist } from './element-artist';

this.ctx.lineJoin = 'round';
this.ctx.fillStyle = '#ffffff';
this.ctx.fill();
if (width > 0) {

@@ -31,0 +33,0 @@ this.ctx.strokeStyle = color;

+1
-1

@@ -5,3 +5,3 @@ import { ElementType } from '../../enums/element-type';

import { GeometricElement } from './geometric-element';
import { ImageSource } from '../../types/image-source';
import { ImageSource } from '../../types';
export declare class ImageElement extends GeometricElement {

@@ -8,0 +8,0 @@ private _image?;

{
"name": "@armniko/canvas",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simplified and object-based drawing on HTML canvas!",
"author": "Armīns Nikolajevs <armins.nikolajevs@gmail.com>",
"license": "MIT",
"bugs": {
"email": "armins.nikolajevs@gmail.com"
},
"keywords": [

@@ -19,6 +22,6 @@ "canvas",

"scripts": {
"build": "babel src -d dist --extensions .ts --delete-dir-on-start && tsc",
"build": "babel src -d dist --extensions .ts --delete-dir-on-start && tsc --project tsconfig.build.json",
"dev": "node test/server/main.js & babel src -d dist --extensions .ts --watch",
"lint": "eslint src --max-warnings=0",
"lint:fix": "eslint src --max-warnings=0 --fix",
"lint:fix": "npm run lint -- --fix",
"test": "jest --runInBand",

@@ -25,0 +28,0 @@ "test:coverage": "JEST_COVERAGE=true npm run test -- --collect-coverage"

@@ -54,1 +54,28 @@ <h1 align="center">Canvas</h1>

```
## Changelog
<table>
<tr>
<td>v1.0.0</td>
<td>
- Initial version
</td>
</tr>
<tr>
<td>v1.1.0</td>
<td>
Features:<br>
- added line element<br>
- added gradient colors for usage as fill and border color for all elements<br>
</td>
</tr>
<tr>
<td>v1.1.1</td>
<td>
Bugfixes:<br>
- missing ImageSource type<br>
- no shadow for image element with border radius<br>
</td>
</tr>
</table>