text-shaper 0.1.8 → 0.1.10

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.
@@ -38,14 +38,7 @@ export declare function validateOutline(path: GlyphPath | null | undefined, allo
38
38
  * @param flipY Flip Y axis - font coords are Y-up, bitmap is Y-down (default: true)
39
39
  */
40
40
  export declare function decomposePath(raster: GrayRaster, path: GlyphPath, scale: number, offsetX?: number, offsetY?: number, flipY?: boolean): void;
41
- /**
42
- * Calculate bounding box of path in pixel coordinates
43
- * @param path Glyph path to measure
44
- * @param scale Scale factor (font units to pixels)
45
- * @param flipY Flip Y axis for bitmap coordinates (default: true)
46
- * @returns Bounding box in pixel coordinates, or null if path has no bounds
47
- */
48
- export declare function getPathBounds(path: GlyphPath, scale: number, flipY?: boolean): {
41
+ export declare function getPathBounds(path: GlyphPath, scale: number, flipY?: boolean, roundToGrid?: boolean): {
49
42
  minX: number;
50
43
  minY: number;
51
44
  maxX: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "text-shaper",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/wiedymi/text-shaper.git"
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "license": "MIT",
54
54
  "scripts": {
55
- "postinstall": "node scripts/patch-pkg-prebuilds.js",
55
+ "patch:prebuilds": "node scripts/patch-pkg-prebuilds.js",
56
56
  "bench": "bun test ./bench/ --timeout 120000",
57
57
  "bench:update": "bun scripts/update-benchmarks.ts",
58
58
  "build": "bun build ./src/index.ts --outdir ./dist --target browser --minify --sourcemap=linked",