Comments (7)
I ended up implementing the idea 2. Idea 1 is implemented only until this year but hover/click handler was not bind on DOM elements yet -- pull request welcome.
Ah ok, I get it, the $ is just your shorthand for "this is a jquery element"?
Yes. The code in index.html
is independent of the library.
from wordcloud2.js.
Ideas:
- Expose info on
wordclouddrawn
so people could reconstruct the cloud with DOM or SVG. Maybe have an option to "draw" the cloud in DOM or SVG in this library. - allow specifying
hover
orclick
callbacks on the library options.
from wordcloud2.js.
WIP patch done.
from wordcloud2.js.
Click does not work on http://timdream.org/wordcloud2.js/#web-tech when it's set to Elements rather than Canvas. In my own project, I can't seem to get click or hover to work in Elements or in Canvas. More examples and / or docs would be very helpful. I don't get what's going on in the window.drawBox function... what is $box?
from wordcloud2.js.
Some more useful info. I'm getting hundreds of these on mouseover:
ReferenceError: canvas is not defined
var rect = canvas.getBoundingClientRect();
wordcloud2.js (line 351)
Am using Firefox 25.0 . By the way, thanks for all the amazing work! What a fantastic library.
from wordcloud2.js.
Ah ok, I get it, the $ is just your shorthand for "this is a jquery element"?
from wordcloud2.js.
Ah ok, thanks... looks like something I might be able to do! If I can find the time I will.
from wordcloud2.js.
Related Issues (20)
- Text is truncated HOT 1
- Uncaught TypeError: ..... Value is not of type 'long'. HOT 1
- No type for version 1.2.2
- First words aligned
- How to randomize the filling order? HOT 3
- How do I change Device pixel density (dppx)? HOT 1
- Canvas not filled on Chromium
- can you please add example for how to add mouse events
- How can we rotate the text to specific angle?
- How we can add background color to the masked image HOT 1
- Keep getting many null is not an object errors
- Semver Dependency Issue
- Demo pages fails to 'run' on Chrome
- Where can we find the code of the demo page? HOT 1
- Next 14
- treat words as a single rectangle to avoid overlapping?
- How to render correct sizes based on order instead of count?
- Fix low font quality rendering
- Fill the whole canvas
- Add data to DOM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordcloud2.js.