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

Graphics.generateCanvasTexture() is undefined. #5461

Closed
zzybccdb opened this issue Feb 20, 2019 · 5 comments
Closed

Graphics.generateCanvasTexture() is undefined. #5461

zzybccdb opened this issue Feb 20, 2019 · 5 comments

Comments

@zzybccdb
Copy link

Expected Behavior

expected this function exsits

Current Behavior

Graphics.generateCanvasTexture() is undefined

Possible Solution

empty

Steps to Reproduce

<html>
<script src="pixi.min.js"></script>
<script>
let g = new PIXI.Graphics()
console.log(g.generateCanvasTexture)
</script>
</html>

Environment

  • pixi.js version: v5.0.0-rc.2
  • Browser & Version: e.g. Chrome Version 71.0.3578.98 (Official Build) (64-bit)
  • OS & Version: e.g. Ubuntu 18.04
  • Running Example: url
@ivanpopelyshev
Copy link
Collaborator

use pixi-legacy bundle.

@themoonrat
Copy link
Member

Ivan: There are a couple of unit tests that currently rely on this function existing (interactionManager and getLocalBounds). Do all unit tests use pixi-legacy?

@bigtimebuddy
Copy link
Member

Interaction includes canvas-graphics as a devdependency so it can be used in tests.

@bigtimebuddy
Copy link
Member

Question was answered by @ivanpopelyshev. Closing

@lock
Copy link

lock bot commented Feb 22, 2020

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.

@lock lock bot locked and limited conversation to collaborators Feb 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants