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

no example of json using the names property as slice index #83

Open
ntraut opened this issue Jul 24, 2024 · 1 comment
Open

no example of json using the names property as slice index #83

ntraut opened this issue Jul 24, 2024 · 1 comment

Comments

@ntraut
Copy link
Member

ntraut commented Jul 24, 2024

What is the current behaviour?

currently slices index could be array indices or strings specified in the json, but there is no json example using the second possibility

for( let i = 0; i < obj.tileSources.length; i += 1 ) {
// name is either the index of the tileSource or a named specified in the json file
const name = ((obj.names && obj.names[i]) ? String(obj.names[i]) : String(i));

What is the expected or desired behavior?

include an example of json using custom names for slices

@ntraut
Copy link
Member Author

ntraut commented Jul 24, 2024

at least we need some examples where Microdraw.ImageOrder is not just the indices of the slice array from 0 to the slices number because microdraw is probably broken in this case

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

1 participant