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

BaseTexture updates and timing fixes #1193

Closed
wants to merge 3 commits into from

Conversation

pnstickne
Copy link
Contributor

Addresses the issue in #1165 but does not delay the src assignment and thus the immediately-ready path is still available. Also addresses a few other edge cases and adds/updates relevant documentation.


  • Fixes obscure image-load timing issues. This can be caused because
    Image.complete is not synchronouse with respect to script execution.
  • Fixed updateSourceImage so it will correctly run through the loading
    process again, as if specified as the original source.
  • DOM events are removed once they are done being useful.
  • Added isLoading so that a non-async never-going-to-load can be
    detected.
  • Updated documentation to account for accepting a Canvas and the default
    values applied, the behavior of loadSource and the 'loaded' and
    'error' events.

- Fixes obscure image-load timing issues. This can be caused because
  `Image.complete` is not synchronouse with respect to script execution.
  - http://www.w3.org/TR/html5/embedded-content-0.html#the-img-element
  - pixijs#1165

- Fixed `updateSourceImage` so it will correctly run through the loading
  process again, as if specified as the original source.

- DOM events are removed once they are done being useful.

- Added `isLoading` so that a non-async never-going-to-load can be
  detected.

- Updated documentation to account for accepting a Canvas and the default
  values applied, the behavior of `loadSource` and the 'loaded' and
  'error' events.
- Additional documentation updates/corrections

- Data URI detection now requires the URI starts-with data: and does not
  detect the case where another URL may containg data:
@englercj
Copy link
Member

englercj commented Jan 4, 2015

👍 I will merge this in to the rewrite branch shortly (see: #1296).

@englercj englercj self-assigned this Jan 4, 2015
@englercj
Copy link
Member

englercj commented Jan 4, 2015

This totally should've been merged a long time ago, thanks for all the hard work @pnstickne!

@englercj englercj closed this Jan 4, 2015
@englercj englercj modified the milestone: v3.0 Jan 8, 2015
@lock lock bot locked and limited conversation to collaborators Feb 25, 2019
@lock
Copy link

lock bot commented Feb 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants