Skip to content

Commit

Permalink
ISSUE #5309 - ticket viewpoints include highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Daniel committed Mar 4, 2025
1 parent be81d22 commit d7f76df
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ import { MenuList, Tooltip } from '@mui/material';
import { FormattedMessage } from 'react-intl';
import { ActionIcon } from '../commentBox.styles';
import { ViewpointIcon } from './viewpointActionMenu.styles';
import { getViewerState } from '@/v5/helpers/viewpoint.helpers';

export const ViewpointActionMenu = ({ viewpoint, setViewpoint }) => {
const updateViewpoint = async () => setViewpoint(await ViewerService.getViewpoint());
const updateViewpoint = async () => {
const state = await getViewerState();
const cameraAndClipping = await ViewerService.getViewpoint();
setViewpoint({ ...cameraAndClipping, state });
};
const deleteViewpoint = () => setViewpoint(null);

if (!viewpoint) return (
Expand Down

0 comments on commit d7f76df

Please sign in to comment.