diff --git a/package.json b/package.json
index f49dfef..cbfaf5d 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,8 @@
"react-svg-pan-zoom": "^3.12.1",
"react-window": "^1.8.8",
"sweetalert2": "^11.7.1",
- "sweetalert2-react-content": "^5.0.7"
+ "sweetalert2-react-content": "^5.0.7",
+ "transformation-matrix": "^2.14.0"
},
"devDependencies": {
"@testing-library/dom": "^8.20.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 922995b..e3b088c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -39,6 +39,7 @@ specifiers:
sweetalert2: ^11.7.1
sweetalert2-react-content: ^5.0.7
tailwindcss: ^3.2.4
+ transformation-matrix: ^2.14.0
typescript: ^4.9.5
vite: ^4.1.1
vitest: ^0.28.4
@@ -53,6 +54,7 @@ dependencies:
react-window: 1.8.8_biqbaboplfbrettd7655fr4n2y
sweetalert2: 11.7.1
sweetalert2-react-content: 5.0.7_5cbezu6w3tvev2ldv5vdmnpfca
+ transformation-matrix: 2.14.0
devDependencies:
'@testing-library/dom': 8.20.0
diff --git a/src/Components/SVG/SVG.tsx b/src/Components/SVG/SVG.tsx
index 69cd0d0..90bbcc8 100644
--- a/src/Components/SVG/SVG.tsx
+++ b/src/Components/SVG/SVG.tsx
@@ -1,5 +1,5 @@
import * as React from 'react';
-import { ReactSVGPanZoom, type Tool, TOOL_PAN, type Value } from 'react-svg-pan-zoom';
+import { ReactSVGPanZoom, type Tool, TOOL_PAN, type Value, ALIGN_CENTER } from 'react-svg-pan-zoom';
import { Container } from './Elements/Container';
import { IContainerModel } from '../../Interfaces/IContainerModel';
import { SelectorContainer } from './Elements/SelectorContainer/SelectorContainer';
@@ -8,7 +8,7 @@ import { SymbolLayer } from './Elements/SymbolLayer';
import { type ISymbolModel } from '../../Interfaces/ISymbolModel';
import { DimensionLayer } from './Elements/DimensionLayer';
import { SelectorSymbol } from './Elements/SelectorSymbol/SelectorSymbol';
-import { Toolbar } from './SVGReactPanZoom/ui-toolbar/toolbar';
+import { IToolbarProps, Toolbar } from './SVGReactPanZoom/ui-toolbar/toolbar';
interface ISVGProps {
className?: string
@@ -121,7 +121,14 @@ export function SVG(props: ISVGProps): JSX.Element {
width: 120,
height: 120
}}
- customToolbar={Toolbar}
+ customToolbar={(props: IToolbarProps) => (
+
+ )}
>