Skip to content

Commit

Permalink
add icons to the cutplane menu
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMoshkovich committed Oct 22, 2023
1 parent 75c3aaf commit dea302f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Components/CutPlaneMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import {addHashParams, getHashParams, getObjectParams, removeHashParams} from '.
import {floatStrTrim, isNumeric} from '../utils/strings'
import {TooltipIconButton} from './Buttons'
import CropOutlinedIcon from '@mui/icons-material/CropOutlined'
// import CropOutlinedIcon from '../assets/icons/Cutplane.svg'
import ElevationIcon from '../assets/Icons/Elevation.svg'
import PlanIcon from '../assets/Icons/Plan.svg'
import SectionIcon from '../assets/Icons/Section.svg'


const PLANE_PREFIX = 'p'
Expand Down Expand Up @@ -129,17 +131,18 @@ export default function CutPlaneMenu() {
},
}}
>

<MenuItem onClick={() => togglePlane({direction: 'x'})}
selected={cutPlanes.findIndex((cutPlane) => cutPlane.direction === 'x') > -1}
>X - Section
><SectionIcon className='icon-share'/> &nbsp; &nbsp; Section
</MenuItem>
<MenuItem onClick={() => togglePlane({direction: 'y'})}
selected={cutPlanes.findIndex((cutPlane) => cutPlane.direction === 'y') > -1}
>Y - Plan
><PlanIcon className='icon-share'/> &nbsp; &nbsp; Plan
</MenuItem>
<MenuItem onClick={() => togglePlane({direction: 'z'})}
selected={cutPlanes.findIndex((cutPlane) => cutPlane.direction === 'z') > -1}
>Z - Section
><ElevationIcon className='icon-share'/> &nbsp; &nbsp; Elevation
</MenuItem>
</Menu>
</>
Expand Down
4 changes: 4 additions & 0 deletions src/assets/icons/Elevation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icons/Plan.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icons/Section.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dea302f

Please sign in to comment.