@xamukavila/pxpipe 0.8.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.
- package/LICENSE +21 -0
- package/README.md +312 -0
- package/bin/cli.js +7 -0
- package/dist/core/applicability.d.ts +31 -0
- package/dist/core/applicability.js +96 -0
- package/dist/core/atlas-gray.d.ts +26 -0
- package/dist/core/atlas-gray.js +64 -0
- package/dist/core/atlas.d.ts +34 -0
- package/dist/core/atlas.js +71 -0
- package/dist/core/baseline.d.ts +80 -0
- package/dist/core/baseline.js +101 -0
- package/dist/core/caveman.d.ts +38 -0
- package/dist/core/caveman.js +183 -0
- package/dist/core/export.d.ts +128 -0
- package/dist/core/export.js +390 -0
- package/dist/core/factsheet.d.ts +78 -0
- package/dist/core/factsheet.js +216 -0
- package/dist/core/gpt-model-profiles.d.ts +60 -0
- package/dist/core/gpt-model-profiles.js +161 -0
- package/dist/core/history.d.ts +141 -0
- package/dist/core/history.js +553 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.js +8 -0
- package/dist/core/library.d.ts +74 -0
- package/dist/core/library.js +133 -0
- package/dist/core/measurement.d.ts +22 -0
- package/dist/core/measurement.js +213 -0
- package/dist/core/openai-history.d.ts +124 -0
- package/dist/core/openai-history.js +494 -0
- package/dist/core/openai-savings.d.ts +44 -0
- package/dist/core/openai-savings.js +75 -0
- package/dist/core/openai.d.ts +24 -0
- package/dist/core/openai.js +839 -0
- package/dist/core/png.d.ts +11 -0
- package/dist/core/png.js +132 -0
- package/dist/core/proxy.d.ts +81 -0
- package/dist/core/proxy.js +730 -0
- package/dist/core/render.d.ts +188 -0
- package/dist/core/render.js +785 -0
- package/dist/core/schema-strip.d.ts +29 -0
- package/dist/core/schema-strip.js +160 -0
- package/dist/core/tracker.d.ts +154 -0
- package/dist/core/tracker.js +216 -0
- package/dist/core/transform.d.ts +362 -0
- package/dist/core/transform.js +1828 -0
- package/dist/core/types.d.ts +77 -0
- package/dist/core/types.js +8 -0
- package/dist/dashboard/fragments.d.ts +36 -0
- package/dist/dashboard/fragments.js +938 -0
- package/dist/dashboard/types.d.ts +154 -0
- package/dist/dashboard/types.js +3 -0
- package/dist/dashboard/vendor.d.ts +3 -0
- package/dist/dashboard/vendor.js +6 -0
- package/dist/dashboard.d.ts +245 -0
- package/dist/dashboard.js +1140 -0
- package/dist/export-collect.d.ts +36 -0
- package/dist/export-collect.js +59 -0
- package/dist/node.d.ts +9 -0
- package/dist/node.js +9038 -0
- package/dist/sessions.d.ts +172 -0
- package/dist/sessions.js +510 -0
- package/dist/stats.d.ts +74 -0
- package/dist/stats.js +248 -0
- package/dist/worker.d.ts +53 -0
- package/dist/worker.js +102 -0
- package/package.json +96 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Latin advance width in pixels. CJK glyphs advance 10px (= 2 × this). */
|
|
2
|
+
export declare const ATLAS_CELL_W = 5;
|
|
3
|
+
/** Cell height in pixels. */
|
|
4
|
+
export declare const ATLAS_CELL_H = 8;
|
|
5
|
+
/** Distance from cell top to baseline. */
|
|
6
|
+
export declare const ATLAS_ASCENT = 7;
|
|
7
|
+
/** Distance from baseline to cell bottom. */
|
|
8
|
+
export declare const ATLAS_DESCENT = 1;
|
|
9
|
+
/** Primary font size used when rasterizing ASCII/code glyphs. */
|
|
10
|
+
export declare const ATLAS_FONT_PX = 8;
|
|
11
|
+
/** Font family label used at build time. Renderer never re-loads the font. */
|
|
12
|
+
export declare const ATLAS_FONT_FAMILY = "Spleen 5x8 ASCII + Unifont 8px fallback";
|
|
13
|
+
/** Profile used to build this atlas. */
|
|
14
|
+
export declare const ATLAS_PROFILE = "full-bmp";
|
|
15
|
+
/** Sorted codepoint table. `ATLAS_CODEPOINTS[rank]` is the codepoint stored
|
|
16
|
+
* at `rank` in OFFSETS / WIDE_FLAGS / PIXELS. */
|
|
17
|
+
export declare const ATLAS_CODEPOINTS: Uint32Array;
|
|
18
|
+
/** BIT offset into ATLAS_PIXELS for the glyph at each rank. */
|
|
19
|
+
export declare const ATLAS_OFFSETS: Uint32Array;
|
|
20
|
+
/** 1 if the glyph at this rank is double-wide (East Asian Wide), 0 otherwise. */
|
|
21
|
+
export declare const ATLAS_WIDE_FLAGS: Uint8Array;
|
|
22
|
+
/** Bit-packed 1-bit pixel data, MSB-first. Runtime extraction:
|
|
23
|
+
* bitIdx = OFFSETS[rank] + row * srcW + col
|
|
24
|
+
* byteIdx = bitIdx >>> 3
|
|
25
|
+
* bitOff = 7 - (bitIdx & 7)
|
|
26
|
+
* pixel = (ATLAS_PIXELS[byteIdx] >>> bitOff) & 1
|
|
27
|
+
* where srcW is CELL_W (narrow) or 2*CELL_W (wide, per WIDE_FLAGS[rank]). */
|
|
28
|
+
export declare const ATLAS_PIXELS: Uint8Array;
|
|
29
|
+
/** Number of glyphs in the atlas. */
|
|
30
|
+
export declare const ATLAS_NUM_GLYPHS: number;
|
|
31
|
+
/** Binary-search the sparse codepoint table. Returns rank (≥0) or -1 if the
|
|
32
|
+
* codepoint is not in the atlas. Hot path; called once per rendered char. */
|
|
33
|
+
export declare function atlasRank(codepoint: number): number;
|
|
34
|
+
//# sourceMappingURL=atlas.d.ts.map
|