seat-editor 3.3.24 → 3.3.25

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>
@@ -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.25",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",