plotly / plotly/angular-plotly.js

how updatemenus buttons bind my own event function

未关闭
#223 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
242
派生
81
平均合并
8 小时 48 分钟
30 天内合并 PR
18

描述

updatemenus: [{
                      x: 0.5,
                      y: 0,
                      yanchor: "top",
                      xanchor: "center",
                      showactive: false,
                      direction: "left",
                      type: "buttons",
                      pad: {"t": 150, "r": 10},
                      buttons: [{
                        method: "animate",
                        args: [null, {
                          fromcurrent: true,
                          transition: {
                            duration: 0,
                          },
                          frame: {
                            duration: 100,
                            redraw: false
                          }
                        }],
                        label: "Play"
                      }, {
                        method: "animate",
                        args: [
                          [null],
                          {
                            mode: "immediate",
                            transition: {
                              duration: 0
                            },
                            frame: {
                              duration: 0,
                              redraw: false
                            }
                          }
                        ],
                        label: "Pause"
                      }]
                    }]

like this when i start i want to play music and pause to pause play,it seems not support this, is there some way to reach that?

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从提供的 updatemenus 配置开始,追踪仓库中如何处理按钮方法和动画控制。查找涵盖自定义回调的现有测试或示例;完成后应形成一条范围明确的实现或文档路径,用于调用用户定义的 play 和 pause 处理器。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。