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

Add the "top" and "left" properties to the data dictionary. #11

Open
jonnymind opened this issue Sep 6, 2024 · 1 comment
Open

Add the "top" and "left" properties to the data dictionary. #11

jonnymind opened this issue Sep 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jonnymind
Copy link

Hello,
I am not sure I can set up my environment in order to create a pull request, but I would require just a small change in _get_layer_data.

All the layers seem to have a position 0,0, which makes the plugin unsuitable for importing images with many small layers.

This seems to be due to this:

layer_data["position"] = Vector2(exported_layer->left + (int32_t)exported_layer->x, exported_layer->top + (int32_t)exported_layer->y);

Would it be possible to publish "left" and "top" in layer_data autonomously as well?
Thanks!

@jonnymind jonnymind added the enhancement New feature or request label Sep 6, 2024
@2shady4u
Copy link
Owner

2shady4u commented Sep 9, 2024

Hello @jonnymind,

I am bit confused regarding your issue 😕
In the project's example file example.kra, the positions found in the layer_data are the following:
image

So they definitely aren't equal in the case of the example file.
Would there be any chance to explain the issue in more depth or to supply an example file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants