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

What is resizingType? #182

Closed
ghost opened this issue Apr 24, 2018 · 4 comments
Closed

What is resizingType? #182

ghost opened this issue Apr 24, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 24, 2018

I'm parsing the JSON for my Sketch file.

I see a property, resizingType.

Can someone please tell me what this is, how it is used, and how to interpret the value?

Much appreciated, thank you in advance.

Karl

@robintindale
Copy link
Contributor

@ghost
Copy link
Author

ghost commented Apr 25, 2018

@robintindale thank you.

Too bad Sketch does not provide docs for the properties their JSON files.

Unofficial: Text from Robin's link:
0 = Stretch
1 = Pin to corner
2 = Resize object
3 = Float in space

@ghost ghost closed this as completed Apr 25, 2018
@mathieudutour
Copy link
Contributor

you might want to have a look at https://github.com/mathieudutour/graphql-x-sketch which gives you some (very crude) docs for the JSON files through the graphiQL editor. More specifically, the list of enums is here: https://github.com/mathieudutour/graphql-x-sketch/blob/master/lib/schema/Scalars.js

@ghost
Copy link
Author

ghost commented Apr 25, 2018

@mathieudutour this is a goldmine of information. thank you. Strange that Google does not return results for these awesome pages when I search for "LayerResizingType" or "resizingType"

Again, thank you very much. I should have posted here 2 months ago.

Best,

Karl

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants