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

@thi.ng/pixel

Package Overview
Dependencies
Maintainers
1
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/pixel - npm Package Compare versions

Comparing version 3.4.3 to 3.4.4

4

canvas.d.ts

@@ -12,3 +12,3 @@ import type { Canvas2DOpts, CanvasContext, RawPixelBuffer } from "./api.js";

*/
export declare const canvas2d: (width: number, height?: number, parent?: HTMLElement | undefined, opts?: Partial<Canvas2DOpts>) => CanvasContext;
export declare const canvas2d: (width: number, height?: number, parent?: HTMLElement, opts?: Partial<Canvas2DOpts>) => CanvasContext;
/**

@@ -32,3 +32,3 @@ * Accepts either an existing canvas or creates a new one of given size.

*/
export declare const imageCanvas: (img: HTMLImageElement, width?: number | undefined, height?: number | undefined, parent?: HTMLElement | undefined) => CanvasContext;
export declare const imageCanvas: (img: HTMLImageElement, width?: number, height?: number | undefined, parent?: HTMLElement) => CanvasContext;
/**

@@ -35,0 +35,0 @@ * Async function. Loads image from given `src` URL. By default, the image will

# Change Log
- **Last updated**: 2022-05-07T11:33:36Z
- **Last updated**: 2022-06-09T16:14:01Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -5,0 +5,0 @@

@@ -24,5 +24,5 @@ import type { Fn2, ICopy, IEmpty, NumericArray } from "@thi.ng/api";

*/
export declare const floatBufferFromInt: (src: IntBuffer, fmt?: FloatFormatSpec | FloatFormat | undefined) => FloatBuffer;
export declare const floatBufferFromImage: (img: HTMLImageElement, fmt?: FloatFormatSpec | FloatFormat | undefined, width?: number | undefined, height?: number | undefined) => FloatBuffer;
export declare const floatBufferFromCanvas: (canvas: HTMLCanvasElement, fmt?: FloatFormat | undefined) => FloatBuffer;
export declare const floatBufferFromInt: (src: IntBuffer, fmt?: FloatFormat | FloatFormatSpec) => FloatBuffer;
export declare const floatBufferFromImage: (img: HTMLImageElement, fmt?: FloatFormat | FloatFormatSpec, width?: number, height?: number | undefined) => FloatBuffer;
export declare const floatBufferFromCanvas: (canvas: HTMLCanvasElement, fmt?: FloatFormat) => FloatBuffer;
export declare class FloatBuffer implements IPixelBuffer<Float32Array, NumericArray>, IToImageData, IResizable<FloatBuffer, FloatSampler>, IBlend<FloatBuffer, BlendFnFloat>, IBlit<FloatBuffer>, IInvert<FloatBuffer>, ICopy<FloatBuffer>, IEmpty<FloatBuffer> {

@@ -29,0 +29,0 @@ readonly size: [number, number];

@@ -23,3 +23,3 @@ import type { Fn2, ICopy, IEmpty } from "@thi.ng/api";

*/
export declare const intBufferFromImage: (img: HTMLImageElement, fmt?: IntFormat | undefined, width?: number | undefined, height?: number | undefined) => IntBuffer;
export declare const intBufferFromImage: (img: HTMLImageElement, fmt?: IntFormat, width?: number, height?: number | undefined) => IntBuffer;
/**

@@ -26,0 +26,0 @@ * Creates a new pixel buffer from given HTML canvas element with optional

@@ -21,3 +21,3 @@ import type { NormalMapOpts } from "./api.js";

*/
export declare const normalMap: (src: FloatBuffer, opts?: Partial<NormalMapOpts> | undefined) => FloatBuffer;
export declare const normalMap: (src: FloatBuffer, opts?: Partial<NormalMapOpts>) => FloatBuffer;
//# sourceMappingURL=normal-map.d.ts.map
{
"name": "@thi.ng/pixel",
"version": "3.4.3",
"version": "3.4.4",
"description": "Typedarray integer & float pixel buffers w/ customizable formats, blitting, drawing, convolution",

@@ -37,19 +37,19 @@ "type": "module",

"dependencies": {
"@thi.ng/api": "^8.3.6",
"@thi.ng/binary": "^3.2.2",
"@thi.ng/checks": "^3.1.6",
"@thi.ng/distance": "^2.1.12",
"@thi.ng/errors": "^2.1.6",
"@thi.ng/k-means": "^0.5.12",
"@thi.ng/math": "^5.3.2",
"@thi.ng/porter-duff": "^2.1.6"
"@thi.ng/api": "^8.3.7",
"@thi.ng/binary": "^3.2.3",
"@thi.ng/checks": "^3.2.0",
"@thi.ng/distance": "^2.1.13",
"@thi.ng/errors": "^2.1.7",
"@thi.ng/k-means": "^0.5.13",
"@thi.ng/math": "^5.3.3",
"@thi.ng/porter-duff": "^2.1.7"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.23.1",
"@thi.ng/testament": "^0.2.7",
"@microsoft/api-extractor": "^7.25.0",
"@thi.ng/testament": "^0.2.8",
"rimraf": "^3.0.2",
"tools": "^0.0.1",
"tslib": "^2.4.0",
"typedoc": "^0.22.15",
"typescript": "^4.6.4"
"typedoc": "^0.22.17",
"typescript": "^4.7.3"
},

@@ -216,3 +216,3 @@ "keywords": [

},
"gitHead": "e23901b8582af71d8a29e0ce4929f15ac509f9e5\n"
"gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n"
}
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