seat-editor 3.3.41 → 3.3.43

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.
@@ -46,7 +46,7 @@ const UploadTool = ({ name, type, action, defaultValue, transform }) => {
46
46
  const widthWorkspace = ((_b = document === null || document === void 0 ? void 0 : document.getElementById("workspace")) === null || _b === void 0 ? void 0 : _b.clientWidth) || 0;
47
47
  const heightWorkspace = ((_c = document === null || document === void 0 ? void 0 : document.getElementById("workspace")) === null || _c === void 0 ? void 0 : _c.clientHeight) || 0;
48
48
  const defaultFormatValue = (width, height, src, id, x, y) => ({
49
- id: String(id) || `${Date.now()}`,
49
+ id: id ? String(id) : `${Date.now()}`,
50
50
  x: x || Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionX),
51
51
  y: y || Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionY),
52
52
  width: width < 1 ? 200 : width,
@@ -551,8 +551,6 @@ const LayerView = (props) => {
551
551
  return (<div className="relative w-full h-full flex-1" ref={containerRef} style={{
552
552
  overflow: "auto",
553
553
  WebkitOverflowScrolling: "touch",
554
- filter: disabled ? "grayscale(100%)" : "none",
555
- pointerEvents: disabled ? "none" : "auto",
556
554
  }} {...props.containerProps}>
557
555
  {loading && (<div className="absolute z-10 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-opacity-50 bg-white w-full h-full flex items-center justify-center">
558
556
  {(loadingRender === null || loadingRender === void 0 ? void 0 : loadingRender.element) || <Spin />}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.3.41",
3
+ "version": "3.3.43",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",