Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark Improvements List #331

Open
23 of 54 tasks
fenjalien opened this issue Nov 12, 2023 · 3 comments · Fixed by #416
Open
23 of 54 tasks

Mark Improvements List #331

fenjalien opened this issue Nov 12, 2023 · 3 comments · Fixed by #416
Labels
Milestone

Comments

@fenjalien
Copy link
Member

fenjalien commented Nov 12, 2023

Here are my suggestions of features/improvements to make for parity with tikz (from #314). Some of them we already have (not sure exactly which), some are implemented natively by typst.

Styling:

Configuration options

tip specifications

Arrow tips (https://tikz.dev/tikz-arrows#sec-16.5)

  • Barbed
    • Arc Barb
    • Bar
    • Bracket
    • Hooks
    • Parenthesis
    • Straight Barb
    • Tee Barb
  • Mathematical
    • Classical Tikz Rightarrow
    • Computer Modern Rightarrow
    • Implies
  • Geometric (includes "open" variants)
    • Circle
    • Diamond
    • Ellipse
    • Kite
    • Latex
    • Rectangle
    • Square
    • Stealth
    • Triangle
    • Turned Square
  • Cap
    • Butt Cap
    • Fast Round
    • Fast Triangle
    • Round Cap
    • Triangle Cap
  • Special
    • Rays

implemenation

  • Add general function that can add marks to path drawables
@fenjalien fenjalien added this to the 0.2 milestone Nov 12, 2023
@johannes-wolf
Copy link
Member

I would also like to allow passing functions (of a specified format) instead of arrow-names that then get used for drawing.

@johannes-wolf
Copy link
Member

johannes-wolf commented Nov 12, 2023

I suggest moving parts of this post 0.2.0. We already got lots of improvements on marks and I would rather try to get out a release soon, so we get a little testing and feedback for 0.2.0.

I also think TikZ does a little too much here…, e.g. allowing to specify an angle when you already can specify width/length for marks is just a shortcut for the width/length calculation + all the different mark styles.

@johannes-wolf johannes-wolf linked a pull request Dec 21, 2023 that will close this issue
10 tasks
@johannes-wolf
Copy link
Member

johannes-wolf commented Jan 14, 2024

I guess we can mark some more of these features as implemented.
Rays got implemented, but one can not specify the number of lines. Instead, three preconfigured styles "+", "*" and "x" are available for 4 and 5 corner rays.

@johannes-wolf johannes-wolf linked a pull request May 26, 2024 that will close this issue
@johannes-wolf johannes-wolf removed a link to a pull request May 26, 2024
@fenjalien fenjalien modified the milestones: 0.2, 0.4.0 Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants