From d40f97ad6f3e9754284a4f5abd1aff2d9f645e4d Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Fri, 17 Feb 2023 16:24:45 +0100 Subject: [PATCH] Add @types/react-svg-pan-zoom to patched dependencies --- package.json | 5 +++++ patches/@types__react-svg-pan-zoom@3.3.5.patch | 17 +++++++++++++++++ pnpm-lock.yaml | 10 ++++++++-- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 patches/@types__react-svg-pan-zoom@3.3.5.patch diff --git a/package.json b/package.json index cbfaf5d..8804ff9 100644 --- a/package.json +++ b/package.json @@ -62,5 +62,10 @@ "typescript": "^4.9.5", "vite": "^4.1.1", "vitest": "^0.28.4" + }, + "pnpm": { + "patchedDependencies": { + "@types/react-svg-pan-zoom@3.3.5": "patches/@types__react-svg-pan-zoom@3.3.5.patch" + } } } diff --git a/patches/@types__react-svg-pan-zoom@3.3.5.patch b/patches/@types__react-svg-pan-zoom@3.3.5.patch new file mode 100644 index 0000000..506b048 --- /dev/null +++ b/patches/@types__react-svg-pan-zoom@3.3.5.patch @@ -0,0 +1,17 @@ +diff --git a/index.d.ts b/index.d.ts +index a57d545d33b2798024b9762d3d3513e58a38e19d..83ace9fc85b7354e128948402a50e00083eacd8c 100644 +--- a/index.d.ts ++++ b/index.d.ts +@@ -256,7 +256,11 @@ export function zoom(value: Value, SVGPointX: number, SVGPointY: number, scaleFa + export function fitSelection( + value: Value, selectionSVGPointX: number, selectionSVGPointY: number, selectionWidth: number, selectionHeight: number): Value; + +-export function fitToViewer(value: Value): Value; ++export function fitToViewer( ++ value: Value, ++ SVGAlignX?: typeof ALIGN_CENTER | typeof ALIGN_LEFT | typeof ALIGN_RIGHT | undefined, ++ SVGAlignY?: typeof ALIGN_CENTER | typeof ALIGN_TOP | typeof ALIGN_BOTTOM | undefined ++): Value; + + export function zoomOnViewerCenter(value: Value, scaleFactor: number): Value; + \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e3b088c..8607471 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,10 @@ lockfileVersion: 5.4 +patchedDependencies: + '@types/react-svg-pan-zoom@3.3.5': + hash: kv3ctd73j5hnzcxdc2ceiq5wuy + path: patches/@types__react-svg-pan-zoom@3.3.5.patch + specifiers: '@heroicons/react': ^2.0.14 '@react-hook/size': ^2.1.2 @@ -63,7 +68,7 @@ devDependencies: '@testing-library/user-event': 14.4.3_yxlyej73nftwmh2fiao7paxmlm '@types/react': 18.0.27 '@types/react-dom': 18.0.10 - '@types/react-svg-pan-zoom': 3.3.5 + '@types/react-svg-pan-zoom': 3.3.5_kv3ctd73j5hnzcxdc2ceiq5wuy '@types/react-window': 1.8.5 '@typescript-eslint/eslint-plugin': 5.51.0_b635kmla6dsb4frxfihkw4m47e '@typescript-eslint/parser': 5.51.0_4vsywjlpuriuw3tl5oq6zy5a64 @@ -929,11 +934,12 @@ packages: '@types/react': 18.0.27 dev: true - /@types/react-svg-pan-zoom/3.3.5: + /@types/react-svg-pan-zoom/3.3.5_kv3ctd73j5hnzcxdc2ceiq5wuy: resolution: {integrity: sha512-W8GRFCDy7raSDr5OXGjSyvX5KmdWlIQfv0NLa1jfAYVUO4ClVbgorWeAAom7nY3Pl+4h9blXE1Bnu2CW1iMEvQ==} dependencies: '@types/react': 18.0.27 dev: true + patched: true /@types/react-window/1.8.5: resolution: {integrity: sha512-V9q3CvhC9Jk9bWBOysPGaWy/Z0lxYcTXLtLipkt2cnRj1JOSFNF7wqGpkScSXMgBwC+fnVRg/7shwgddBG5ICw==}