question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Graphics.addHole API doesn't work with CanvasRenderer

See original GitHub issue

Found in #4177

It appears that addHole does not render correctly for CanvasRenderer.

WebGL example (works): https://jsfiddle.net/kr1ha29b/ 👍 Canvas example (broken): https://jsfiddle.net/LLk9nj00/ 👎

Correct render:

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
bigtimebuddycommented, Nov 1, 2018

Fixed by #5202

1reaction
ivanpopelyshevcommented, Nov 20, 2017

Well, there’s an idea that you have to make outer polygons counter-clockwise and inner clockwise. Let me see the code …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Graphics.addHole API doesn't work with CanvasRenderer
Found in #4177 It appears that addHole does not render correctly for CanvasRenderer. WebGL example (works): https://jsfiddle.net/kr1ha29b/ ...
Read more >
can renderTexture be rendered by any renderer - Pixi.js
Can I just new a CanvasRenderer or WebglRenderer to render renderTexture? Seems dosen't work. So renderTexture only can be rendered by it's ...
Read more >
PixiJS API Documentation
utils/bezierCurveTo';; import CanvasRenderer from '. ... This is useful if your graphics element does not change often, as it will speed up the...
Read more >
PIXI.CanvasRenderer - PixiJS API Documentation
The CanvasRenderer draws the scene and all its content onto a 2d canvas. This renderer should be used for browsers that do not...
Read more >
pixi.js (v4.2.3) — Pixi.js is a fast lightweight 2D library that works ...
addHole ; Graphics.destroy; GraphicsData; GraphicsData; this. ... generateTexture; SystemRenderer.destroy; _createClass; CanvasRenderer; CanvasRenderer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found