Comments (1)
I found a way to view it in 90º connectors, but i steel searching the way for dashed lines do the same. Which is the event onmouse over for this lines?
Connection.prototype.paintLine = function (context, dashed) {
if (this.from !== null) {
var start = this.from.owner.getConnectorPosition(this.from);
var end = (this.to !== null) ? this.to.owner.getConnectorPosition(this.to) : this.toPoint;
if ((start.x != end.x) || (start.y != end.y)) {
context.beginPath();
if (dashed) {
context.dashedLine(start.x, start.y, end.x, end.y);
}
else {
if ((start.x === end.x) || (start.y === end.y)) {
context.moveTo(start.x - 0.5, start.y - 0.5);
context.lineTo(end.x - 0.5, end.y - 0.5);
}
else {
context.moveTo(start.x - 0.5, start.y - 0.5);
//90º Conector
if (Math.abs(start.x - end.x) < Math.abs(start.y - end.y)) {
context.lineTo(start.x - 0.5, end.y - 0.5);
}
else {
context.lineTo(end.x - 0.5, start.y - 0.5);
}
context.lineTo(end.x - 0.5, end.y - 0.5);
context.lineJoin = "round"; // "miter", "bevel"
}
}
//context.closePath(); //If uncomment this line you obtain a triangle.
context.stroke();
}
}
};
from netron.
Related Issues (20)
- Extension to add tensor/operator metadata/annotation from external text file HOT 14
- Isolated blocks in network visualisation HOT 2
- Hosting A Web Version HOT 3
- Reduce the complexity of drawing HOT 1
- Output Shape for JSON model HOT 4
- Metrics metadata support
- Graph annotation based on attribute values HOT 1
- OpenVINO: model will appear blank in 7.5.4 HOT 5
- OpenVINO: not able to open model HOT 1
- TensorFlow Lite: Conv1D displayed as Conv2D HOT 2
- TensorFlow Lite: Array buffer allocation failed
- API Support HOT 1
- TorchScript: Unsupported 'torch.polar' expression type HOT 3
- do not upload file in chrom to netron HOT 2
- ONNX: Tensor shape is not displayed HOT 2
- TensorFlow Lite: no longer shows FlexBuffer operator attributes
- Unable to open SDXL Turbo ONNX model from Hugging Face HOT 3
- Reduce connection crossings HOT 3
- Graph scrolling by dragging scrollbars doesn't work well on Firefox HOT 1
- Python server sample exits before browser finished loading HOT 4
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 netron.