Coder Social home page Coder Social logo

myectooltip's People

Contributors

mying666 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

myectooltip's Issues

问题:canvas边框绘制不全、内容文本y轴定位错误

本人在使用楼主代码时发现一些小问题(楼主的demo确实没问题,但当内容文本比较多时就会产生问题),如图(图片已马赛克处理):
7A11582C55647394A7A13AD5DDF97DAB

之后浏览了楼主的代码,发现以下这块有点问题:
2

第一行代码的问题是没有针对top字段进行处理,第二行是传参的第二个参数计算错误,改成下面就好了:

me.config.top ? me.textContainer.y = L2End[1] - c.text.height / 2 : me.textContainer.y = L2End[1] - c.L1.long * Math.sin(Math.PI / 4)

me.textBorder(c.text.width, c.text.height / 2 + c.L1.long * Math.sin(Math.PI / 4))

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.