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

Content Baseline Anchors #684

Merged
merged 6 commits into from
Sep 6, 2024
Merged

Conversation

johannes-wolf
Copy link
Member

Fixes #683

Lets add this to 0.3.

@johannes-wolf johannes-wolf linked an issue Aug 14, 2024 that may be closed by this pull request
@johannes-wolf johannes-wolf added this to the 0.3.0 milestone Aug 14, 2024
@johannes-wolf johannes-wolf changed the base branch from master to release-0.3.0 August 14, 2024 23:46
Comment on lines 858 to 875
center: bounds-center,
mid: mid,
mid-east: mid-east,
mid-west: mid-west,
base: base,
base-east: base-east,
base-west: base-west,
north: north,
north-east: north-east,
north-west: north-west,
south: south,
south-east: south-east,
south-west: south-west,
east: east,
west: west,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool to see this added already! As far as can see, this PR currently only adds base-* and mid-* anchors. All that remains to achieve parity with Tikz in this regard is the text anchor, which lies where the contents baseline and western edge meet.

@johannes-wolf johannes-wolf force-pushed the cetz-683-content-text-bounds branch from 8c52968 to 1c0ab22 Compare August 15, 2024 08:16
Copy link
Member

@fenjalien fenjalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we merge this onto master instead of the release branch so the commit doesn't get squashed?

src/draw/shapes.typ Show resolved Hide resolved
@johannes-wolf johannes-wolf changed the base branch from release-0.3.0 to master August 15, 2024 10:27
@johannes-wolf johannes-wolf added the feature 🎁 Feature Request label Aug 17, 2024
Copy link
Member

@fenjalien fenjalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you missed some changes when changing branches, the gallery and docs folders shouldn't have any changes...

@johannes-wolf johannes-wolf force-pushed the cetz-683-content-text-bounds branch 2 times, most recently from ea491e1 to f93b479 Compare August 24, 2024 00:25
@johannes-wolf
Copy link
Member Author

Was containing the changes for the 0.3 release. I've removed them.

@johannes-wolf johannes-wolf force-pushed the cetz-683-content-text-bounds branch from 723529e to 13bd796 Compare August 28, 2024 18:38
@johannes-wolf johannes-wolf force-pushed the cetz-683-content-text-bounds branch from 13bd796 to 656d465 Compare September 6, 2024 12:42
@johannes-wolf johannes-wolf merged commit 0bc5f61 into master Sep 6, 2024
1 check passed
@johannes-wolf johannes-wolf deleted the cetz-683-content-text-bounds branch September 6, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎁 Feature Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Content-Relative Anchors
3 participants