Spaces:
Running
Running
Download 731ai/node_modules/pdf-lib/src/utils/objects.ts from u11310019/interactive-multi-web: direct link, hf CLI and curl.
- Browser
- Download file 528 Bytes
-
https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/pdf-lib/src/utils/objects.ts
- Command line
-
hf download hf://spaces/u11310019/interactive-multi-web/731ai/node_modules/pdf-lib/src/utils/objects.ts
-
curl -L -o objects.ts https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/pdf-lib/src/utils/objects.ts
528 Bytes
| import { FontNames } from '@pdf-lib/standard-fonts'; | |
| export const values = (obj: any) => Object.keys(obj).map((k) => obj[k]); | |
| export const StandardFontValues = values(FontNames); | |
| export const isStandardFont = (input: any): input is FontNames => | |
| StandardFontValues.includes(input); | |
| export const rectanglesAreEqual = ( | |
| a: { x: number; y: number; width: number; height: number }, | |
| b: { x: number; y: number; width: number; height: number }, | |
| ) => a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height; | |