antvis / antvis/F6

BUG:微信小程序中切换页面后TreeGraph损坏

Open
#178 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
147
Forks
24
PR merge metrics
No merged PRs in 30d

Description

现象:TreeGraph渲染完成后失效,点击无反应
版本号:"@antv/f6-wx": "^0.0.7"
IDE:微信开发者工具stable1.05.2204250
小程序基础库:3.4.6
对象容器:f6-canvas,小程序原生渲染方式
图类型:树图会遇到,一般图不会遇到这个问题
详细描述:在容器初始化时所用的“bind:onInit”回调中所保存的ctx对象损坏,其width字段变为了NAN。虽然对象损坏了,不过不影响在init中所进行的初次渲染,初次渲染的结果是正确的。
出现场景:
开发工具模拟器:不会出现
安卓真机(华为系统):扫码二维码重新进入小程序时会出现。
苹果真机:切后台再返回时会出现。
临时应对:目前只能重新加载小程序。
其他信息:控制台提示警告“Canvas_left will be removed, DO NOT USE IT.”,不清楚是否是缓存时使用了这个数据导致异常。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with @antv/f6-wx 0.0.7 in the f6-canvas bind:onInit callback, comparing page switching, Android re-entry, and iOS background/foreground behavior. Inspect the saved ctx and its width value alongside the Canvas_left warning; done means TreeGraph remains interactive after returning to the page without ctx becoming invalid.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.