From 42f3949786bc931f4096126d2e3d7e240ff75112 Mon Sep 17 00:00:00 2001
From: Sunil Shetye
Date: Mon, 30 Sep 2024 23:10:42 +0530
Subject: cleanup xsl code
---
blocks/Xcos/blocks/ANDBLK.py | 2 +-
blocks/eda-frontend/public/splitblock.xsl | 106 ++++++++++-----------
.../SchematicEditor/Helper/ToolbarTools.js | 2 +-
blocks/xcos2xml/head.xsl | 2 +-
blocks/xcos2xml/ports/port.xsl | 2 +-
5 files changed, 56 insertions(+), 58 deletions(-)
diff --git a/blocks/Xcos/blocks/ANDBLK.py b/blocks/Xcos/blocks/ANDBLK.py
index b5136f17..c80ef06b 100644
--- a/blocks/Xcos/blocks/ANDBLK.py
+++ b/blocks/Xcos/blocks/ANDBLK.py
@@ -96,7 +96,7 @@ def ANDBLK(outroot, attribid, ordering, geometry, parameters):
dataLines="-1", initialState="0.0",
style="CommandPort", value="")
- CLKOUT_f(root, block_id[4], ordering, geometry, ['2'])
+ CLKOUT_f(root, block_id[4], ordering, geometry, ['1'])
addPort(root, TYPE_CNTRL, id=port_id[4],
parent=block_id[4], ordering="1",
diff --git a/blocks/eda-frontend/public/splitblock.xsl b/blocks/eda-frontend/public/splitblock.xsl
index 79e00460..405ccd63 100644
--- a/blocks/eda-frontend/public/splitblock.xsl
+++ b/blocks/eda-frontend/public/splitblock.xsl
@@ -30,22 +30,25 @@
-
-
+
+
+
+
-
- ExplicitLink
+
+
+
@@ -63,14 +66,18 @@
-
+
+
+
- ExplicitLink
+
+
+
@@ -90,32 +97,28 @@
-
+
-
-
-
+
-
+
-
-
+
-
+
-
@@ -133,18 +136,10 @@
-
-
-
-
-
-
-
-
-
+ ExplicitLink
@@ -154,7 +149,6 @@
- ExplicitLink
@@ -167,24 +161,29 @@
-
-
+ ImplicitLink
+
+
+
-
+
+
+
+
@@ -192,18 +191,25 @@
+ CommandControlLink
+
+
+
-
+
+
+
+
@@ -212,7 +218,18 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -227,37 +244,18 @@
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ToolbarTools.js b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ToolbarTools.js
index fc42b313..ee8f5dbc 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ToolbarTools.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ToolbarTools.js
@@ -412,7 +412,7 @@ function parseXmlToGraph (xmlDoc, graph) {
v1.implicitOutputPorts = 0
v1.controlPorts = 0
v1.commandPorts = 0
- v1.simulationFunction = cellAttrs.simulationFunction.value
+ v1.simulationFunction = cellAttrs.simulationFunction?.value
} else if (cellAttrs.CellType?.value === 'Pin') {
const style = cellAttrs.style.value.replace(/;.*/, '')
const vertexId = cellAttrs.id.value
diff --git a/blocks/xcos2xml/head.xsl b/blocks/xcos2xml/head.xsl
index 24fa4566..b06416da 100644
--- a/blocks/xcos2xml/head.xsl
+++ b/blocks/xcos2xml/head.xsl
@@ -405,7 +405,7 @@
-
+
diff --git a/blocks/xcos2xml/ports/port.xsl b/blocks/xcos2xml/ports/port.xsl
index 31016a5e..08bfa0ad 100644
--- a/blocks/xcos2xml/ports/port.xsl
+++ b/blocks/xcos2xml/ports/port.xsl
@@ -37,7 +37,7 @@
-
+
--
cgit