seat-editor 3.3.24 → 3.3.26

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.
@@ -976,7 +976,7 @@ const Layers = ({ components, selectedTable, iconTags, eventMatchTable, onHighli
976
976
  return (<g key={id} onContextMenu={(e) => e.preventDefault()} data-id={id} transform={`translate(${x}, ${y})`}>
977
977
  <g transform={`rotate(${rotation}, 0, 0)`}>
978
978
  <rect width={width} height={height} fill="transparent" opacity={opacity}/>
979
- <text x={width / 2} y={height / 2} textAnchor="middle" dominantBaseline="middle" fill={fill} fontSize={fontSize !== null && fontSize !== void 0 ? fontSize : height * 0.6} opacity={opacity} {...omit(commonProps, ["fill", "opacity"])}>
979
+ <text x={width / 2} y={height / 2} textAnchor="middle" dominantBaseline="middle" fill={fill !== null && fill !== void 0 ? fill : fontColor} fontSize={fontSize !== null && fontSize !== void 0 ? fontSize : height * 0.6} opacity={opacity} {...omit(commonProps, ["fill", "opacity"])}>
980
980
  {text}
981
981
  </text>
982
982
  </g>
@@ -160,7 +160,7 @@ const TableEditor = (props) => {
160
160
  return (<>
161
161
  <div className="w-full h-screen flex relative">
162
162
  {viewOnly ? (<div className="w-full h-full flex relative">
163
- <LayerView statusKey="status" loadingRender={props === null || props === void 0 ? void 0 : props.loadingRender}/>
163
+ <LayerView key={`${viewOnly}`} statusKey="status" loadingRender={props === null || props === void 0 ? void 0 : props.loadingRender} viewOnly={viewOnly}/>
164
164
  </div>) : (<div key={`${viewOnly}`} className="w-full h-full flex relative">
165
165
  {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">
166
166
  {(loadingRender === null || loadingRender === void 0 ? void 0 : loadingRender.element) || <Spin />}
@@ -83,6 +83,7 @@ export interface LayerViewProps<TMeta = undefined> {
83
83
  element: React.JSX.Element;
84
84
  };
85
85
  defaultBoundingBox?: PropertiesProps;
86
+ viewOnly?: boolean;
86
87
  }
87
88
  declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => React.JSX.Element;
88
89
  export default LayerView;
@@ -91,6 +91,7 @@ const LayerView = (props) => {
91
91
  extraComponentProps,
92
92
  defaultBackground,
93
93
  loadingRender === null || loadingRender === void 0 ? void 0 : loadingRender.state,
94
+ props === null || props === void 0 ? void 0 : props.viewOnly,
94
95
  ]);
95
96
  useEffect(() => {
96
97
  setTooltip(Object.assign(Object.assign({}, tooltip), { visible: false }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.3.24",
3
+ "version": "3.3.26",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",