@vibrant/quantizer
Advanced tools
Comparing version 4.0.0-alpha.3 to 4.0.0-alpha.4
103
package.json
{ | ||
"name": "@vibrant/quantizer", | ||
"version": "4.0.0-alpha.3", | ||
"description": "Helper and typings for writing a vibrant quantizer", | ||
"scripts": { | ||
"build": "vite build" | ||
}, | ||
"type": "module", | ||
"types": "dist/esm/index.d.ts", | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/esm/index.js", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/index.d.cts", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"author": { | ||
"name": "akfish", | ||
"email": "akfish@gmail.com" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/akfish/node-vibrant/issues" | ||
}, | ||
"homepage": "https://github.com/akfish/node-vibrant", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@vibrant/color": "^4.0.0-alpha.3", | ||
"@vibrant/image": "^4.0.0-alpha.3", | ||
"@vibrant/types": "^4.0.0-alpha.3" | ||
}, | ||
"devDependencies": { | ||
"@tanstack/config": "^0.14.2", | ||
"typescript": "^4.5.2", | ||
"vite": "^6.0.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "2cdb48edcf5398024bd18a6ed07f2ec50a20030b" | ||
"name": "@vibrant/quantizer", | ||
"version": "4.0.0-alpha.4", | ||
"description": "Helper and typings for writing a vibrant quantizer", | ||
"scripts": { | ||
"build": "vite build", | ||
"test:eslint": "eslint ./src" | ||
}, | ||
"type": "module", | ||
"types": "dist/esm/index.d.ts", | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/esm/index.js", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/index.d.cts", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"author": { | ||
"name": "akfish", | ||
"email": "akfish@gmail.com" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/akfish/node-vibrant/issues" | ||
}, | ||
"homepage": "https://github.com/akfish/node-vibrant", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@vibrant/color": "^4.0.0-alpha.4", | ||
"@vibrant/image": "^4.0.0-alpha.4", | ||
"@vibrant/types": "^4.0.0-alpha.4" | ||
}, | ||
"devDependencies": { | ||
"@tanstack/config": "^0.14.2", | ||
"typescript": "^4.5.2", | ||
"vite": "^6.0.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "87c300667e339a8bc4f463d058c0e960f8d18ba9" | ||
} |
# @vibrant/quantizer | ||
Helper and typings for writing a vibrant quantizer | ||
@@ -1,10 +0,10 @@ | ||
import { Pixels } from "@vibrant/image"; | ||
import { Resolvable } from "@vibrant/types"; | ||
import { Swatch } from "@vibrant/color"; | ||
import type { Pixels } from "@vibrant/image"; | ||
import type { Resolvable } from "@vibrant/types"; | ||
import type { Swatch } from "@vibrant/color"; | ||
export interface QuantizerOptions { | ||
colorCount: number; | ||
colorCount: number; | ||
} | ||
export interface Quantizer { | ||
(pixels: Pixels, opts: QuantizerOptions): Resolvable<Array<Swatch>>; | ||
(pixels: Pixels, opts: QuantizerOptions): Resolvable<Array<Swatch>>; | ||
} |
2438
4