New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@weeb_services/gfn

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@weeb_services/gfn - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

2

build/functions/colorize.d.ts

@@ -18,5 +18,5 @@ import { Canvas } from 'canvas';

HSL_SATURATION = "hsl-saturation",
HSL_LUMINOSITY = "hsl-luminosity",
HSL_LUMINOSITY = "hsl-luminosity"
}
export declare const ColorizeModes: any[];
export declare function colorize(options: ColorizeOptions): Promise<Canvas>;

@@ -28,5 +28,5 @@ import { Canvas } from 'canvas';

FIT = "fit",
FILL = "fill",
FILL = "fill"
}
export declare const ImageRenderModes: any[];
export declare function drawImage(options: DrawImageOptions): Promise<Canvas>;

@@ -27,5 +27,2 @@ 'use strict';

font: options.font,
offset: {
y: options.font.size,
},
rotate: options.rotate,

@@ -32,0 +29,0 @@ stroke: options.stroke,

@@ -108,5 +108,5 @@ 'use strict';

line.words.forEach((word, windex) => {
ctx.fillText(word, options.box.x + ((options.box.w - line.width) / 2) + xoffset + options.offset.x, options.box.y + ((options.box.h - (lines.length * options.font.vs)) / 2) + (lindex * options.font.vs) + options.offset.y);
ctx.fillText(word, options.box.x + ((options.box.w - line.width) / 2) + xoffset + options.offset.x, options.box.y + ((options.box.h - (lines.length * options.font.vs)) / 2) + ((lindex + 1) * options.font.vs) + options.offset.y);
if (options.stroke) {
ctx.strokeText(word, options.box.x + ((options.box.w - line.width) / 2) + xoffset + options.offset.x, options.box.y + ((options.box.h - (lines.length * options.font.vs)) / 2) + (lindex * options.font.vs) + options.offset.y);
ctx.strokeText(word, options.box.x + ((options.box.w - line.width) / 2) + xoffset + options.offset.x, options.box.y + ((options.box.h - (lines.length * options.font.vs)) / 2) + ((lindex + 1) * options.font.vs) + options.offset.y);
}

@@ -113,0 +113,0 @@ // Add the current word's width and horizontal spacing

@@ -0,1 +1,2 @@

import { ColorInput } from 'tinycolor2';
export declare type GfnColorInput = ColorInput;

@@ -2,0 +3,0 @@ export interface GfnColor {

{
"name": "@weeb_services/gfn",
"version": "1.0.1",
"version": "1.1.0",
"description": "Graphics functions for node canvas",

@@ -12,8 +12,12 @@ "main": "build/index.js",

"Wolke <wolke@weeb.sh>",
"Akio <akio@weeb.sh>"
"Akio <akio@weeb.sh>",
"LazyShpee <comemureravaud@gmail.com>"
],
"license": "MIT",
"license": "MIT",
"scripts": {
"prepare": "rm -rf build/ && tsc"
},
"dependencies": {
"axios": "^0.18.0",
"canvas": "^2.0.0-alpha.12",
"canvas": "^2.0.0-alpha.17",
"tinycolor2": "^1.4.1"

@@ -23,8 +27,8 @@ },

"@types/node": "^8.10.21",
"@types/tinycolor2": "^1.4.0",
"tslint": "^5.10.0",
"@types/tinycolor2": "^1.4.1",
"tslint": "^5.11.0",
"tslint-config-xo": "^1.4.0",
"typescript": "^2.9.2"
"typescript": "^3.1.1"
},
"private": false
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc