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

core: add context to parse methods #414

Merged
merged 10 commits into from
Sep 19, 2019
Merged

core: add context to parse methods #414

merged 10 commits into from
Sep 19, 2019

Conversation

ibgreen
Copy link
Collaborator

@ibgreen ibgreen commented Sep 19, 2019

  • Now passes a context object to loaders in place of the url param.
  • In addition to url, the context object contains parse and fetch so that "recursive" loaders no longer need to depend on @loaders.gl/core.

Slightly big change to introduce into 1.3, but this will really clean up the plumbing for the 3d-tiles loaders.

@ibgreen ibgreen changed the title Ib/parse context core: add context to parse methods Sep 19, 2019
@coveralls
Copy link

coveralls commented Sep 19, 2019

Coverage Status

Coverage increased (+0.08%) to 58.828% when pulling 9c4785d on ib/parse-context into c29c929 on master.

assert(fetch);
async function fetchAndParseLinkedImage(gltf, image, i, options, context) {
// const fetch = options.fetch || window.fetch;
// assert(fetch);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why comment out these lines?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be done with context. Not used right now

@ibgreen ibgreen merged commit e912c7a into master Sep 19, 2019
@ibgreen ibgreen deleted the ib/parse-context branch September 19, 2019 21:14
ibgreen added a commit that referenced this pull request Sep 19, 2019
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

Successfully merging this pull request may close these issues.

None yet

3 participants