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

Compose different spaces – data, relative, pixel, ... #4407

Open
aplavin opened this issue Sep 25, 2024 · 1 comment
Open

Compose different spaces – data, relative, pixel, ... #4407

aplavin opened this issue Sep 25, 2024 · 1 comment
Labels
coordinate spaces i.e. space attribute, transformations between coordinate spaces enhancement Feature requests and enhancements Makie Backend independent issues (Makie core)

Comments

@aplavin
Copy link
Contributor

aplavin commented Sep 25, 2024

Would be convenient and generally useful to enable defining coordinate with a mix of different "spaces". Is it feasible to add a type for that or something?
Potential examples include:

(data(123), relative(0.5))
(data(123) + pixel(3), data(456))
(data(123) + relative(0.01), data(456))
(data(123), data(456)) .+ (pixel(2), pixel(2))
@aplavin aplavin added the enhancement Feature requests and enhancements label Sep 25, 2024
@ffreyer
Copy link
Collaborator

ffreyer commented Sep 27, 2024

I tried adding this in #1730. Iirc I wasn't happy with how specific the conditions get - you can't mix coordinates until they are in the same space, i.e. no rotations, practically no 3D, and transform functions probably need to be per-element.

@ffreyer ffreyer added Makie Backend independent issues (Makie core) coordinate spaces i.e. space attribute, transformations between coordinate spaces labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coordinate spaces i.e. space attribute, transformations between coordinate spaces enhancement Feature requests and enhancements Makie Backend independent issues (Makie core)
Projects
None yet
Development

No branches or pull requests

2 participants