Skip to content

Add names to load parsers#13

Closed
UlyssesZh wants to merge 1 commit intopixijs-userland:mainfrom
UlyssesZh:loadparsers-name
Closed

Add names to load parsers#13
UlyssesZh wants to merge 1 commit intopixijs-userland:mainfrom
UlyssesZh:loadparsers-name

Conversation

@UlyssesZh
Copy link
Copy Markdown
Contributor

I think this is a fair enough change? It is simple enough, so I did not open an issue but opened a pull request directly.

Sometimes I need to specify the load parser explicitly when using Assets.load, but it is difficult in Node.js because those extension load parsers in @pixi/node do not have names. This pull request fixes this problem.

@unic8s
Copy link
Copy Markdown

unic8s commented Oct 10, 2024

@UlyssesZh your PR just pointed me in the right direction. I stumbled over the load naming issue today and I was very suprised that not all parsers were available as in "normal" PIXI.

My suggestion would be to stick to the original names so JS code will be compatible with both version:
e.g. loadNodeTexture should still be loadTextures

Really appreciate your inspection and work on that - thanks!

@UlyssesZh
Copy link
Copy Markdown
Contributor Author

My suggestion would be to stick to the original names so JS code will be compatible with both version.

Good suggestion, but there are possible counterarguments to this. Let's wait for opinions from other contributors or project owners.

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.

2 participants