Giter Club home page Giter Club logo

refline.js's Issues

垂直和水平参考线问题

在线示例:http://49.233.166.224/data-view-web/data-view-instance/create
代码:https://github.com/ggymm/data-view-web-preview

重现步骤:

  1. 添加纵向参考线
  2. 位移组件
    点击图表组件进行位移操作会调用src/store/modules/data-view/refline.js中的setRefline方法,会获取所有横向和纵向的参考线,然后初始化refline
  3. 移动时使用updater方法获取delta,但是没有触发吸附操作

我将吸附距离调大,并且添加横向参考线,出现了吸附现象(和吸附距离应该无关,只是调大会现象比较明显)。但是吸附位置不正确

麻烦帮忙看下是什么问题,多谢了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.