diff --git a/public/drawTemplates/153302.svg b/public/drawTemplates/153302.svg deleted file mode 100644 index 3b1c97b0..00000000 --- a/public/drawTemplates/153302.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - -Created by potrace 1.15, written by Peter Selinger 2001-2017 - - - - - - - diff --git a/public/drawTemplates/shape21.svg b/public/drawTemplates/shape21.svg deleted file mode 100644 index a2d901e7..00000000 --- a/public/drawTemplates/shape21.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/components/common/context-menu/QPolygonContextMenu.jsx b/src/components/common/context-menu/QPolygonContextMenu.jsx index b3246165..5c886816 100644 --- a/src/components/common/context-menu/QPolygonContextMenu.jsx +++ b/src/components/common/context-menu/QPolygonContextMenu.jsx @@ -7,6 +7,13 @@ export default function QPolygonContextMenu(props) { // const children = useRecoilValue(modalContent) const [contextMenu, setContextMenu] = useState({ visible: false, x: 0, y: 0 }) + const optionName = canvasProps.getActiveObject().initOptions.name + + let contextType = '' + + if (optionName.indexOf('guide') > -1) { + contextType = 'surface' + } useEffect(() => { if (!contextRef.current) return @@ -63,6 +70,16 @@ export default function QPolygonContextMenu(props) {
  • handleMenuClick(3)}> Option 3
  • + {contextType === 'surface' ? ( + <> +
  • handleMenuClick(4)}> + 모듈,회로구성 +
  • +
  • handleMenuClick(4)}> + 모듈 채우기 +
  • + + ) : null} )} diff --git a/src/components/ui/SurfaceShape.jsx b/src/components/ui/SurfaceShape.jsx index 06e2e0e3..46bac2a5 100644 --- a/src/components/ui/SurfaceShape.jsx +++ b/src/components/ui/SurfaceShape.jsx @@ -601,7 +601,7 @@ export const SurfaceShapeModal = ({ canvas }) => { fill: 'transparent', stroke: 'black', strokeWidth: 2, - selectable: false, + selectable: true, fontSize: fontSize, name: 'guideTriangle', }) @@ -610,7 +610,7 @@ export const SurfaceShapeModal = ({ canvas }) => { fill: 'transparent', stroke: 'black', strokeWidth: 2, - selectable: false, + selectable: true, fontSize: fontSize, name: 'guideTriangle', flipX: true,