mying666 / myectooltip Goto Github PK
View Code? Open in Web Editor NEW自制带引导线的ecTooltip
自制带引导线的ecTooltip
我添加多个ID和JS 只显示最后一个 如何解决呢
本人在使用楼主代码时发现一些小问题(楼主的demo确实没问题,但当内容文本比较多时就会产生问题),如图(图片已马赛克处理):
第一行代码的问题是没有针对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))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.