Add custom toolbar
This commit is contained in:
parent
4053763e44
commit
b3338b0167
11 changed files with 319 additions and 0 deletions
17
patches/@types+react-svg-pan-zoom+3.3.5.patch
Normal file
17
patches/@types+react-svg-pan-zoom+3.3.5.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
diff --git a/node_modules/@types/react-svg-pan-zoom/index.d.ts b/node_modules/@types/react-svg-pan-zoom/index.d.ts
|
||||
index a57d545..83ace9f 100644
|
||||
--- a/node_modules/@types/react-svg-pan-zoom/index.d.ts
|
||||
+++ b/node_modules/@types/react-svg-pan-zoom/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;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue