summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2025-06-14 21:31:50 +0530
committerSunil Shetye2025-06-14 21:31:50 +0530
commit421ac77c098cb27ba4052a6f22730eba76609e84 (patch)
tree4ee196ea454b4396607045b2ecd63e3b9610b1ec
parent88f9b9ae4da13422f0485bc86f3804b9961a03e6 (diff)
downloadCommon-Interface-Project-421ac77c098cb27ba4052a6f22730eba76609e84.tar.gz
Common-Interface-Project-421ac77c098cb27ba4052a6f22730eba76609e84.tar.bz2
Common-Interface-Project-421ac77c098cb27ba4052a6f22730eba76609e84.zip
flip and mirror
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js
index 8d264463..d222e7e3 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js
@@ -335,18 +335,8 @@ export default function LoadGrid (container, sidebar, outline, setMainDiagramBac
}
const styleObject = styleToObject(attribute)
- let flip
- let mirror
- if (styleObject.flip == null) {
- flip = false
- } else {
- flip = (styleObject.flip === 'true')
- }
- if (styleObject.mirror == null) {
- mirror = false
- } else {
- mirror = (styleObject.mirror === 'true')
- }
+ const flip = styleObject.flip === 'true'
+ const mirror = styleObject.mirror === 'true'
if (cell.CellType === 'Component') {
const inputPorts = cell.explicitInputPorts + cell.implicitInputPorts