Update namespace and ZoomSpeed
This commit is contained in:
parent
3dc67f88c9
commit
7e74be6d3b
1 changed files with 5 additions and 2 deletions
|
@ -2,7 +2,7 @@ import * as React from 'react';
|
|||
import { AvailableContainer } from '../Interfaces/AvailableContainer';
|
||||
import { Container } from './Elements/Container';
|
||||
import { MainContainer } from './Elements/MainContainer';
|
||||
import * as svgPanZoom from 'svg-pan-zoom';
|
||||
import * as SvgPanZoom from 'svg-pan-zoom';
|
||||
|
||||
interface ISVGProps {
|
||||
MainContainer: AvailableContainer
|
||||
|
@ -46,8 +46,11 @@ export class SVG extends React.Component<ISVGProps> {
|
|||
this.svg.current === null) {
|
||||
return;
|
||||
}
|
||||
const settings: SvgPanZoom.Options = {
|
||||
zoomScaleSensitivity: 1
|
||||
};
|
||||
|
||||
svgPanZoom(this.svg.current);
|
||||
SvgPanZoom(this.svg.current, settings);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue