Comments (3)
This is what it looks like without removing dummy edges
This is what ELK returned
{
"id": "e2",
"source": "$d_0",
"sourcePort": "$d_0.p",
"target": "o1",
"targetPort": "o1.A",
"sections": [
{
"id": "e2_s0",
"startPoint": {
"x": 214,
"y": 32
},
"endPoint": {
"x": 249,
"y": 162
},
"bendPoints": [
{
"x": 224,
"y": 32
},
{
"x": 224,
"y": 162
}
]
}
],
"junctionPoints": [
{
"x": 224,
"y": 32
}
]
},
{
"id": "e3",
"source": "$d_0",
"sourcePort": "$d_0.p",
"target": "o2",
"targetPort": "o2.A",
"sections": [
{
"id": "e3_s0",
"startPoint": {
"x": 214,
"y": 32
},
"endPoint": {
"x": 249,
"y": 97
},
"bendPoints": [
{
"x": 224,
"y": 32
},
{
"x": 224,
"y": 97
}
]
}
],
"junctionPoints": [
{
"x": 224,
"y": 97
}
]
},
{
"id": "e4",
"source": "$d_0",
"sourcePort": "$d_0.p",
"target": "o3",
"targetPort": "o3.A",
"sections": [
{
"id": "e4_s0",
"startPoint": {
"x": 214,
"y": 32
},
"endPoint": {
"x": 249,
"y": 32
}
}
]
},
{
"id": "e5",
"source": "i0",
"sourcePort": "i0.Y",
"target": "$d_1",
"targetPort": "$d_1.p",
"sections": [
{
"id": "e5_s0",
"startPoint": {
"x": 159,
"y": 162
},
"endPoint": {
"x": 202,
"y": 97
},
"bendPoints": [
{
"x": 177,
"y": 162
},
{
"x": 177,
"y": 97
}
]
}
]
},
{
"id": "e6",
"source": "i1",
"sourcePort": "i1.Y",
"target": "$d_1",
"targetPort": "$d_1.p",
"sections": [
{
"id": "e6_s0",
"startPoint": {
"x": 159,
"y": 97
},
"endPoint": {
"x": 202,
"y": 97
}
}
]
},
{
"id": "e7",
"source": "i4",
"sourcePort": "i4.Y",
"target": "$d_1",
"targetPort": "$d_1.p",
"sections": [
{
"id": "e7_s0",
"startPoint": {
"x": 159,
"y": 32
},
"endPoint": {
"x": 202,
"y": 97
},
"bendPoints": [
{
"x": 177,
"y": 32
},
{
"x": 177,
"y": 97
}
]
}
],
"junctionPoints": [
{
"x": 177,
"y": 97
}
]
}
{
"id": "e2",
"source": "$d_0",
"sourcePort": "$d_0.p",
"target": "o1",
"targetPort": "o1.A",
"sections": [
{
"id": "e2_s0",
"startPoint": {
"x": 224,
"y": 32
},
"endPoint": {
"x": 249,
"y": 162
},
"bendPoints": [
{
"x": 224,
"y": 162
}
]
}
],
"junctionPoints": [
{
"x": 224,
"y": 32
}
]
},
{
"id": "e3",
"source": "$d_0",
"sourcePort": "$d_0.p",
"target": "o2",
"targetPort": "o2.A",
"sections": [
{
"id": "e3_s0",
"startPoint": {
"x": 224,
"y": 32
},
"endPoint": {
"x": 249,
"y": 97
},
"bendPoints": [
{
"x": 224,
"y": 97
}
]
}
],
"junctionPoints": [
{
"x": 224,
"y": 97
}
]
},
{
"id": "e4",
"source": "$d_0",
"sourcePort": "$d_0.p",
"target": "o3",
"targetPort": "o3.A",
"sections": [
{
"id": "e4_s0",
"startPoint": {
"x": 249,
"y": 32
},
"endPoint": {
"x": 249,
"y": 32
},
"bendPoints": []
}
]
},
{
"id": "e5",
"source": "i0",
"sourcePort": "i0.Y",
"target": "$d_1",
"targetPort": "$d_1.p",
"sections": [
{
"id": "e5_s0",
"startPoint": {
"x": 202,
"y": 97
},
"endPoint": {
"x": 202,
"y": 97
},
"bendPoints": []
}
]
},
{
"id": "e6",
"source": "i1",
"sourcePort": "i1.Y",
"target": "$d_1",
"targetPort": "$d_1.p",
"sections": [
{
"id": "e6_s0",
"startPoint": {
"x": 202,
"y": 97
},
"endPoint": {
"x": 202,
"y": 97
},
"bendPoints": []
}
]
},
{
"id": "e7",
"source": "i4",
"sourcePort": "i4.Y",
"target": "$d_1",
"targetPort": "$d_1.p",
"sections": [
{
"id": "e7_s0",
"startPoint": {
"x": 159,
"y": 32
},
"endPoint": {
"x": 177,
"y": 97
},
"bendPoints": [
{
"x": 177,
"y": 32
}
]
}
],
"junctionPoints": [
{
"x": 177,
"y": 97
}
]
}
from netlistsvg.
I added a unit test so the build will fail until I fix this issue.
from netlistsvg.
I have a partial fix in that seems to pass the unit test, but it still leaves an extra junction in some cases. I'll add another unit test to fail when there's an extra junction.
from netlistsvg.
Related Issues (20)
- Wires laid out atop one another HOT 2
- Shorted outputs don't work in the presence of split nodes HOT 1
- Can not draw svg with a "hardcoded FPGA block" HOT 2
- Exported svg is using "physical wiring connections" instead of "signal name association" (netlists) HOT 4
- Request: Padding
- TypeError: Cannot read property 'startsWith' of undefined at built/Skin.js:11 HOT 5
- patch for correct OR and NOR gates shapes in default.svg HOT 1
- Node v12 doesn't resolve dependancies HOT 1
- Text is getting cropped
- New version? HOT 1
- Module name used instead of Instance name for generic cells
- Render attribute as label on wires
- How to decode this error message? HOT 1
- $_ANDNOT gate is rendered as $_NAND HOT 4
- The generated schematics are corrupted around the (AND) cell. HOT 2
- wires
- output pin doesn't connect to anything HOT 1
- Add css media queries to support dark themes HOT 1
- Forcing bits on a bus to be ordered numerically HOT 1
- could you please commit and maintain a package lock file? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netlistsvg.