antvis/G6

Migrate ScrollCanvas Behavior #5548

Aarebecca posted onGitHub

AntV Open Source Contribution Plan(可选/Optional)

  • 我同意将这个 Issue 参与 OSCP 计划 / I agree to participate in the OSCP plan

Issue 类型 / Issue Type

中级任务 / Intermediate Task

任务介绍 / Task Description

迁移滚动画布交互 Demo


Migrate Scroll Canvas behavior Demo

参考说明 / Reference Description

您可以参考旧代码并考虑复用其中的部分逻辑。但请注意以下几点:

  • 需要调整配置项的命名,以保持与当前交互命名风格的一致性。
  • 根据您的理解,您可以对部分逻辑进行修改或优化。
  • 不要迁移 History 相关的逻辑(例如:graph.startHistoryBatch

在正式开始之前,建议您简要了解新版交互实现的逻辑和配置项命名风格,例如:Drag CanvasDrag Element

在迁移过程中,如果遇到任何问题,欢迎在Issues区留言寻求帮助。


You are encouraged to consult the old code and consider reusing some of its logic. However, please keep in mind the following points:

  • The naming of configuration items needs to be adjusted to remain consistent with the current interaction naming conventions.
  • Based on your understanding, you are welcome to modify or enhance parts of the logic as you see fit.
  • Do not migrate History related logic (e.g. graph.startHistoryBatch)

Before you begin, it is advisable to familiarize yourself briefly with the logic and naming conventions of configuration items used in the newer versions of interaction implementations, such as: Drag Canvas and Drag Element.

Should any issues arise during the migration process, you are welcome to seek assistance by posting a message in the Issues section.


认领

posted by k644606347 about 1 year ago

@Aarebecca 迁移graph.startHistoryBatch是会导致什么问题吗?

posted by k644606347 about 1 year ago

@Aarebecca 迁移graph.startHistoryBatch是会导致什么问题吗?

后续会重新开发 History 组件,不需要其他组件去感知这个组件

posted by Aarebecca about 1 year ago

Fund this Issue

$0.00
Funded

Pull requests