Skip to content

Commit

Permalink
break(subsurface-viewer): remove obsolete props (#1816)
Browse files Browse the repository at this point in the history
Remove obsolete "toolbar" and "colorLegend" props
  • Loading branch information
hkfb committed Dec 5, 2023
1 parent 425fd48 commit e7f020d
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions typescript/packages/subsurface-viewer/src/SubsurfaceViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ export interface SubsurfaceViewerProps {
cssStyle?: Record<string, unknown> | null;
};
coordinateUnit?: Unit;
toolbar?: {
visible?: boolean | null;
};
legend?: {
visible?: boolean | null;
cssStyle?: Record<string, unknown> | null;
horizontal?: boolean | null;
};
colorTables?: colorTablesArray;
editedData?: Record<string, unknown>;
setProps?: (data: Record<string, unknown>) => void;
Expand Down Expand Up @@ -137,14 +129,6 @@ const SubsurfaceViewer: React.FC<SubsurfaceViewerProps> = ({
coords,
scale,
coordinateUnit,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
legend,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
toolbar,
colorTables,
editedData,
setProps,
Expand Down Expand Up @@ -360,34 +344,6 @@ SubsurfaceViewer.propTypes = {
*/
coordinateUnit: PropTypes.oneOf(convert().possibilities()),

/**
* @obsolete Toolbar should be added as annotation. This prop has no function.
*/
toolbar: PropTypes.shape({
/**
* Toggle toolbar visibility
*/
visible: PropTypes.bool,
}),

/**
* @obsolete Legends should be added as annotations. This prop has no function.
*/
legend: PropTypes.shape({
/**
* Toggle component visibility.
*/
visible: PropTypes.bool,
/**
* Legend css style can be used for positioning.
*/
cssStyle: PropTypes.objectOf(PropTypes.any),
/**
* Orientation of color legend
*/
horizontal: PropTypes.bool,
}),

/**
* Prop containing color table data
*/
Expand Down

0 comments on commit e7f020d

Please sign in to comment.