Skip to content

[Bug]: create-edge.ts mode.translateNodeTo该方法参数应该转化为canvas坐标。 #7599

@lf1991

Description

@lf1991

Describe the bug / 问题描述

这里应该将浏览器坐标转换为canvas坐标

   model.translateNodeTo(ASSIST_NODE_ID,[event.client.x,event.client.y]);
   
  //fixed
   const [cx,cy] =graph.getCanvasByClient(,[event.client.x,event.client.y]);
   model.translateNodeTo(ASSIST_NODE_ID,[cx,cy]);

Reproduction link / 复现链接

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

Version / 版本

Please select / 请选择

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for maintainerTriage or intervention needed from a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions