antvis / antvis/G

[BUG] When the Image src is a URL address, repeated rendering may fail

Open
#1,952 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
1.2k
Forks
230
PR merge metrics
No merged PRs in 30d

Description

- OS: [e.g. win10, iOS8.1]
- Browser [e.g. chrome, safari]
- Version [e.g. @antv/g-lite@6.1.10]

`@antv/g-lite@6.x`

## Steps To Reproduce

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Link to code example:

## The current behavior

When the image `src` is a URL address, the first rendering is normal, but subsequent repeated rendering may fail when the element tree structure is changed or remounted.

But when the `src` value is changed to the `Image` instance of the Web API, the rendering is normal.

## The expected behavior

Image's `src` attribute can be successfully rendered in any case when it is any form of value.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue described for @antv/g-lite@6.x with an image URL, changing or remounting the element tree and comparing it with an Image instance as src. Done means URL-valued Image sources render successfully on the first and repeated renders in those cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.