-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
JavaScript API can't get tileset's image size #2733
Comments
Used Tiled version: |
No problem adding it, just needs to be considered if we want to match the Python API or whether we want to export the image explicitly in some form, like |
Good point. I think it would also be OK to just add the property Thanks for your time! Awesome, clean app, btw :) |
TL;DR
With the JS API, is there a way to get a tileset image's size in pixels?
Before
v1.3
and the JS API / extensions feature, I was using python export scripts to create custom export formats.I noticed a missing feature/property with the JS API, that was available with the python scripts:
Getting a tileset's real image size in pixels
You could do this with python scripts with ...
(see https://github.com/bjorn/tiled/blob/master/src/plugins/python/tiledbinding.py#L139)
The JS API doesn't seem to provide that information...
So I'm asking, is there a way to get this currently? If not, is this maybe a feature worth implementing?
Sadly I need this functionality to generate custom config files for the tilesets.
It would be very convenient for me to have this feature in the JS API,
otherwise I'll probably need to generate those files outside of the Tiled extension.
Thanks!
The text was updated successfully, but these errors were encountered: