Add support for an inView callbaack
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- chart.js, javascript
- 领域
- frontend
调研方向
首先检查插件在启动期间如何处理 onComplete,以及它如何检测 chart 进入 viewport。定义 inView callback 应相对于动画开始在何时触发,并确保对于初始位于屏幕外的 chart,它只触发一次。issue 中未指定文件或测试入口点。
由索引模型根据 Issue 内容生成。
描述
I have a need to be able to set a state var once the chart is in view and the animation has started. Unfortunately I cannot rely solely on the events from the chart, I am using onComplete, but in adding this plugin, onComplete is immediately fired on startup, even if the chart isn't in view, which causes problems for me. I have yet to determine why onComplete is firing. Long story short, it would be helpful to have a callback/event like inView that fires once the chart scrolls into view. This would allow me to ignore the onComplete events until after this callback event happens.
- 主要语言
- JavaScript
- 星标
- 113
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
chartjs/chartjs-plugin-deferred 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 50/100
-
难度 3/5 1-2 天 新手友好度 35/100
chartjs/chartjs-plugin-deferred#33 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
chartjs/chartjs-plugin-deferred#30 · 1 个 reaction ·
查看 chartjs/chartjs-plugin-deferred 的全部 Issue
相似的 Issue
-
component:sight
难度 2/5 1-3 小时 新手友好度 78/100
agentic-os-org/ANOLISA#6738 · 2 条评论 ·
维护者通常 1 天内回复
-
bug Durable Agents Observability (AI Telemetry) status: needs triage
难度 2/5 1-3 小时 新手友好度 82/100
mastra-ai/mastra#26470 · 1 条评论 ·
维护者通常 1 天内回复
-
feature/cohorts feature/feature-flags team/feature-flags
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 78/100
Orbit-xyz/orbit-docs#11 ·
-
area/build area/tech debt
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复