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

Line around Graphics object not on all sides when drawRect is used #5447

Closed
MRVDH opened this issue Feb 15, 2019 · 3 comments · Fixed by #5453
Closed

Line around Graphics object not on all sides when drawRect is used #5447

MRVDH opened this issue Feb 15, 2019 · 3 comments · Fixed by #5453
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.

Comments

@MRVDH
Copy link

MRVDH commented Feb 15, 2019

Expected Behavior

Draws line around every side of the object.

Current Behavior

Line only drawn on three sides.
capture

Possible Solution

?

Steps to Reproduce

var testGraphic = new PIXI.Graphics();
testGraphic.beginFill(red).lineStyle(4, green);
testGraphic.drawRect(150, 150, 600, 200);
tool.stage.addChild(testGraphic);

Environment

  • pixi.js version: v5.0.0-rc
  • Browser & Version: Chrome 72.0.3626.81 (Official Build) (64-bit)
  • OS & Version: Windows 10
  • Running Example: -
@ivanpopelyshev
Copy link
Collaborator

Confirmed, its differs in v4 and v5. endFill() doesn't help.

https://www.pixiplayground.com/#/edit/K45xTRXqfExRiZ6VUmx61

I suspected that something like that will appear, we rewrote Graphics class and I didn't test it enough.

@ivanpopelyshev ivanpopelyshev added 🕷 Bug Verified that it’s actually a legit bug that exists in the current release. Version: v5.x labels Feb 15, 2019
@ivanpopelyshev
Copy link
Collaborator

closePath doesnt help too: https://www.pixiplayground.com/#/edit/QhH9QAw9gStIxvM2nUgYw

@lock
Copy link

lock bot commented Feb 21, 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 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants