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.
@@ -235,7 +235,7 @@ const TouchScrollDetect = () => {
235
235
  },
236
236
  ]} viewStyles={{
237
237
  paddingTop: 200,
238
- }} disabled={false}/>
238
+ }} disabled={false} transformProps={{}}/>
239
239
  </div>
240
240
  </div>
241
241
  </div>);
@@ -44,7 +44,7 @@ export interface LayerViewProps<TMeta = undefined> {
44
44
  eventMatchTable?: TableMatchEvent[];
45
45
  statusKey: string;
46
46
  defaultBackground?: string;
47
- transformProps?: 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: true });
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} {...props.transformProps}
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%",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.2.16",
3
+ "version": "3.2.18",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",