@pixagram/renderart 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_crtconfig_free: (a: number, b: number) => void;
5
+ export const __wbg_get_crtconfig_warp_x: (a: number) => number;
6
+ export const __wbg_set_crtconfig_warp_x: (a: number, b: number) => void;
7
+ export const __wbg_get_crtconfig_warp_y: (a: number) => number;
8
+ export const __wbg_set_crtconfig_warp_y: (a: number, b: number) => void;
9
+ export const __wbg_get_crtconfig_scan_hardness: (a: number) => number;
10
+ export const __wbg_set_crtconfig_scan_hardness: (a: number, b: number) => void;
11
+ export const __wbg_get_crtconfig_scan_opacity: (a: number) => number;
12
+ export const __wbg_set_crtconfig_scan_opacity: (a: number, b: number) => void;
13
+ export const __wbg_get_crtconfig_mask_opacity: (a: number) => number;
14
+ export const __wbg_set_crtconfig_mask_opacity: (a: number, b: number) => void;
15
+ export const __wbg_get_crtconfig_enable_warp: (a: number) => number;
16
+ export const __wbg_set_crtconfig_enable_warp: (a: number, b: number) => void;
17
+ export const __wbg_get_crtconfig_enable_scanlines: (a: number) => number;
18
+ export const __wbg_set_crtconfig_enable_scanlines: (a: number, b: number) => void;
19
+ export const __wbg_get_crtconfig_enable_mask: (a: number) => number;
20
+ export const __wbg_set_crtconfig_enable_mask: (a: number, b: number) => void;
21
+ export const crtconfig_new: () => number;
22
+ export const crtconfig_preset_authentic: () => number;
23
+ export const crtconfig_preset_subtle: () => number;
24
+ export const crtconfig_preset_flat: () => number;
25
+ export const crt_upscale: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
26
+ export const crt_upscale_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
27
+ export const __wbg_hexconfig_free: (a: number, b: number) => void;
28
+ export const __wbg_get_hexconfig_orientation: (a: number) => number;
29
+ export const __wbg_set_hexconfig_orientation: (a: number, b: number) => void;
30
+ export const __wbg_get_hexconfig_draw_borders: (a: number) => number;
31
+ export const __wbg_set_hexconfig_draw_borders: (a: number, b: number) => void;
32
+ export const __wbg_get_hexconfig_border_color: (a: number) => number;
33
+ export const __wbg_set_hexconfig_border_color: (a: number, b: number) => void;
34
+ export const __wbg_get_hexconfig_border_thickness: (a: number) => number;
35
+ export const __wbg_set_hexconfig_border_thickness: (a: number, b: number) => void;
36
+ export const __wbg_get_hexconfig_background_color: (a: number) => number;
37
+ export const __wbg_set_hexconfig_background_color: (a: number, b: number) => void;
38
+ export const hexconfig_new: () => number;
39
+ export const hexconfig_preset_bordered: () => number;
40
+ export const hexconfig_preset_pointy: () => number;
41
+ export const hex_upscale: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
42
+ export const hex_upscale_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
43
+ export const hex_get_dimensions: (a: number, b: number, c: number, d: number) => [number, number];
44
+ export const xbrzconfig_new: () => number;
45
+ export const xbrzconfig_preset_sharp: () => number;
46
+ export const xbrzconfig_preset_smooth: () => number;
47
+ export const xbrz_upscale: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
48
+ export const xbrz_upscale_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
49
+ export const get_memory: () => any;
50
+ export const upscaleresult_ptr: (a: number) => number;
51
+ export const upscaleresult_len: (a: number) => number;
52
+ export const upscaleresult_width: (a: number) => number;
53
+ export const upscaleresult_height: (a: number) => number;
54
+ export const __wbg_get_xbrzconfig_luminance_weight: (a: number) => number;
55
+ export const __wbg_get_xbrzconfig_equal_color_tolerance: (a: number) => number;
56
+ export const __wbg_get_xbrzconfig_dominant_direction_threshold: (a: number) => number;
57
+ export const __wbg_get_xbrzconfig_steep_direction_threshold: (a: number) => number;
58
+ export const __wbg_set_xbrzconfig_luminance_weight: (a: number, b: number) => void;
59
+ export const __wbg_set_xbrzconfig_equal_color_tolerance: (a: number, b: number) => void;
60
+ export const __wbg_set_xbrzconfig_dominant_direction_threshold: (a: number, b: number) => void;
61
+ export const __wbg_set_xbrzconfig_steep_direction_threshold: (a: number, b: number) => void;
62
+ export const init: () => void;
63
+ export const __wbg_upscaleresult_free: (a: number, b: number) => void;
64
+ export const __wbg_xbrzconfig_free: (a: number, b: number) => void;
65
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
66
+ export const __wbindgen_malloc: (a: number, b: number) => number;
67
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
68
+ export const __wbindgen_externrefs: WebAssembly.Table;
69
+ export const __externref_table_dealloc: (a: number) => void;
70
+ export const __wbindgen_start: () => void;
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@pixagram/renderart",
3
+ "version": "0.1.0",
4
+ "description": "High-performance pixel art rendering engines (CRT, HEX, XBRZ) with GPU and CPU support",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./wasm": {
15
+ "import": "./dist/wasm/renderart_wasm.js",
16
+ "types": "./dist/wasm/renderart_wasm.d.ts"
17
+ }
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "README.md",
22
+ "LICENSE"
23
+ ],
24
+ "scripts": {
25
+ "build:wasm": "wasm-pack build --target web --out-dir pkg",
26
+ "build:ts": "tsup",
27
+ "build:types": "tsc --emitDeclarationOnly --declaration --outDir dist",
28
+ "build": "npm run build:wasm && npm run build:ts && npm run postbuild",
29
+ "postbuild": "node scripts/postbuild.js",
30
+ "test": "cargo test",
31
+ "prepublishOnly": "npm run build"
32
+ },
33
+ "keywords": [
34
+ "pixel-art",
35
+ "upscale",
36
+ "crt",
37
+ "hexagon",
38
+ "xbrz",
39
+ "webgl",
40
+ "wasm",
41
+ "shader",
42
+ "rendering",
43
+ "image-processing"
44
+ ],
45
+ "author": "Pixagram SA",
46
+ "license": "MIT",
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "https://github.com/pixagram/renderart.git"
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/pixagram/renderart/issues"
53
+ },
54
+ "homepage": "https://github.com/pixagram/renderart#readme",
55
+ "devDependencies": {
56
+ "@types/node": "^20.10.0",
57
+ "tsup": "^8.5.1",
58
+ "typescript": "^5.3.0"
59
+ },
60
+ "engines": {
61
+ "node": ">=16.0.0"
62
+ },
63
+ "sideEffects": false
64
+ }