seat-editor 3.2.16 → 3.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,7 @@ export interface LayerViewProps<TMeta = undefined> {
|
|
|
44
44
|
eventMatchTable?: TableMatchEvent[];
|
|
45
45
|
statusKey: string;
|
|
46
46
|
defaultBackground?: string;
|
|
47
|
-
transformProps?:
|
|
47
|
+
transformProps?: ReactZoomPanPinchProps;
|
|
48
48
|
containerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
49
49
|
svgProps?: SVGAttributes<SVGSVGElement>;
|
|
50
50
|
ghostAttributes?: SVGAttributes<SVGGElement>;
|
|
@@ -61,7 +61,7 @@ const LayerView = (props) => {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
setTimeout(() => {
|
|
64
|
-
dispatch({ type: "panel/setLoading", payload:
|
|
64
|
+
dispatch({ type: "panel/setLoading", payload: false });
|
|
65
65
|
}, 1000);
|
|
66
66
|
}, [componentProps, extraComponentProps, defaultBackground]);
|
|
67
67
|
useEffect(() => {
|
|
@@ -535,14 +535,14 @@ const LayerView = (props) => {
|
|
|
535
535
|
</div>
|
|
536
536
|
)} */}
|
|
537
537
|
|
|
538
|
-
<TransformWrapper ref={transformRef}
|
|
538
|
+
<TransformWrapper ref={transformRef}
|
|
539
539
|
// disabled={fingerCount === 1 && scale === 1}
|
|
540
540
|
disablePadding={true} centerZoomedOut={true} panning={{
|
|
541
541
|
disabled: panningGroup,
|
|
542
542
|
wheelPanning: true,
|
|
543
543
|
}} wheel={{
|
|
544
544
|
disabled: false,
|
|
545
|
-
}} onTransformed={({ state: { scale } }) => setScale(scale)} minScale={1} maxScale={1000} initialScale={1} smooth={true}>
|
|
545
|
+
}} onTransformed={({ state: { scale } }) => setScale(scale)} minScale={1} maxScale={1000} initialScale={1} smooth={true} {...props.transformProps}>
|
|
546
546
|
<TransformComponent wrapperStyle={{
|
|
547
547
|
width: "100%",
|
|
548
548
|
height: "100%",
|