Comments (6)
There is a frustrating compromise here: I am not sure how to calculate the right start location of the bent line, but people sometimes use dots with no fill, and then it doesn't look correct. Maybe there could be a setting to choose which way, since going to the center is faster and better as long as the shape is filled, but with no fill it's better to use the setback.
I implemented a real solution to the problem of calculating Bezier setbacks at one point in Rust, but it is pretty tricky -- I do a first order approximation of Bezier arclength and then set back the start point by that much, then calculate the error and estimate again. This generally produces a point right on the boundary of the shape. I think on a diagram with lots of bent lines, this would take an unacceptably long time in latex.
As you pointed out, all of the math is much easier if you use circular paths rather than Bezier curves.
from latex.
You can use:
\begin{sseqpage}
\class(0, 0)
\class(1, 1)
\structline[bend left = 50, source anchor=center, target anchor=center]
\end{sseqpage}
for this.
But it doesn't seem like source anchor
and target anchor
work as a style option: edges={source anchor=center, target anchor=center}
doesn't seem to work.
from latex.
Okay, but the following also works fine:
\begin{sseqpage}[structlines={source anchor=center, target anchor=center}]
\class(0, 0)
\class(1, 1)
\structline[bend left = 50]
\end{sseqpage}
from latex.
from latex.
Fair enough, I will look into it and see what I can do.
from latex.
I guess this was simpler than I expected.
from latex.
Related Issues (18)
- Compatibility issue with tikz v3.1.5b? HOT 1
- Incompatible with sideways environment HOT 9
- use of internal xparse commands will break HOT 6
- xmirror/ymirror produce mirrored coordinate labels HOT 1
- Cannot style extensions HOT 1
- Issue with spectralsequences and expl3 HOT 10
- Axis labelling HOT 6
- Latest CTAN version incompatible with ShareLatex HOT 3
- Problems with uploading the package in overleaf HOT 1
- Beamer compatibility
- `totalxmargin` and `totalymargin` errors HOT 4
- Not able to pass label options to differential via \doptions HOT 3
- Draft Mode + DrawIfValidDifferential fails to compile HOT 1
- pushstack when there is no class in coordinate HOT 1
- Counter in \DoUntilOutOfBounds HOT 1
- bend + scale is broken HOT 2
- grid = go incompatible with no axes HOT 2
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 latex.