forked from diegomura/react-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into feat/form-annotation
# By Diego Muracciole (31) and others # Via GitHub * upstream/master: (60 commits) feat: allow units for page size (diegomura#2773) chore: bump jay-peg chore: release packages (diegomura#2981) fix(textkit): make indentation only affect first line. (diegomura#2975) fix: conditional rendering (diegomura#2983) fix(reconciler): missing dependencies (diegomura#2980) chore: release packages (diegomura#2959) feat: rem border widths (diegomura#2960) fix: add scheduler dependency (diegomura#2958) chore: update README chore: release packages (diegomura#2953) feat: support rem units (diegomura#2955) feat: add image stress test example (diegomura#2954) feat: support multiple line-height units (diegomura#2952) chore: release packages (diegomura#2946) fix: note rendering (diegomura#2951) feat: accept commas between transformations (diegomura#2950) fix: document metadata setters (diegomura#2949) fix: stroke dash array computation (diegomura#2948) feat: remove cross-fetch (diegomura#2947) ... # Conflicts: # packages/renderer/index.d.ts
- Loading branch information
Showing
241 changed files
with
3,940 additions
and
1,477 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@react-pdf/stylesheet": minor | ||
"@react-pdf/layout": minor | ||
--- | ||
|
||
Changed unit behavior according to PDF spec. Please note that all unitless values are considered as user unit which is a 72dpi equality of the value. This is according to PDF spec and ensures a consistent layout independent of the dpi setting. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "independent", | ||
"packages": ["packages/*", "e2e/*"], | ||
"packages": ["packages/*", "packages/examples/*", "e2e/*"], | ||
"npmClient": "yarn" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,17 @@ | |
"repository": "[email protected]:diegomura/react-pdf.git", | ||
"workspaces": [ | ||
"packages/*", | ||
"packages/examples/*", | ||
"e2e/*" | ||
], | ||
"scripts": { | ||
"prepare": "husky", | ||
"build": "lerna run build", | ||
"watch": "lerna run watch --parallel", | ||
"bootstrap": "lerna bootstrap", | ||
"prepublish": "lerna run build", | ||
"lint": "eslint packages", | ||
"test": "vitest", | ||
"dev": "lerna run dev --scope @react-pdf/examples", | ||
"dev": "lerna run dev --scope @react-pdf/examples --", | ||
"changeset": "changeset", | ||
"version-packages": "changeset version", | ||
"release": "changeset publish" | ||
|
@@ -65,9 +65,11 @@ | |
"react": "^18.2.0", | ||
"react-16": "npm:react@^16.8.0", | ||
"react-17": "npm:react@^17.0.0", | ||
"react-19": "npm:[email protected]", | ||
"react-dom": "^18.2.0", | ||
"react-dom-16": "npm:react-dom@^16.8.0", | ||
"react-dom-17": "npm:react-dom@^17.0.0", | ||
"react-dom-19": "npm:[email protected]", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^4.9.0", | ||
"rollup-plugin-copy": "^3.5.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
# Get the directory of the script | ||
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
# Get the list of directories adjacent to the script | ||
dirs=() | ||
for dir in "$scriptDir"/*/ ; do | ||
[ -d "$dir" ] && dirs+=("$(basename "$dir")") | ||
done | ||
|
||
# Check if any directories were found | ||
if [ ${#dirs[@]} -eq 0 ]; then | ||
echo "No example directories found." | ||
exit 1 | ||
fi | ||
|
||
if [ -n "$1" ]; then | ||
# First argument provided | ||
selectedDir="$1" | ||
if [[ " ${dirs[@]} " =~ " $selectedDir " ]]; then | ||
echo "Selected example: $selectedDir" | ||
else | ||
echo "Example '$selectedDir' does not exist adjacent to the script." | ||
exit 1 | ||
fi | ||
else | ||
# No argument provided, prompt the user to select one | ||
echo "Please select an example:" | ||
select selectedDir in "${dirs[@]}"; do | ||
if [ -n "$selectedDir" ]; then | ||
echo "You selected: $selectedDir" | ||
break | ||
else | ||
echo "Invalid selection." | ||
fi | ||
done | ||
fi | ||
|
||
# Run 'yarn dev' inside the selected directory | ||
cd "$scriptDir/$selectedDir" || { echo "Failed to change directory to $scriptDir/$selectedDir"; exit 1; } | ||
|
||
echo "Running 'yarn dev' in $scriptDir/$selectedDir" | ||
yarn dev |
Oops, something went wrong.