☁️ Simple React + D3 wordcloud component with powerful features.
MIT License
Bot releases are hidden (Show)
Decoupled the tippy
CSS from the package. This will improve future versioning of the project, and is also the recommendation set by the tippy
project. Tooltips with this new versions might look off without CSS styles, but not considering this a breaking change because you can easily add the following imports to address the issue:
import 'tippy.js/dist/tippy.css';
import 'tippy.js/animations/scale.css'
Some rarely used typings are no longer exported (e.g. Enter
, Spiral
, WordToStringCallback
, WordEventCallback
, MinMaxPair
, AttributeValue
). While this is a breaking change, taking the liberty to assume this as non-breaking in an effort to constrain the exposed typings for improved future versioning of the project.
Published by chrisrzhou about 4 years ago
v1.2.5
..node-version
.Published by chrisrzhou about 4 years ago
[deprecated]: This release is missing Typescript definitions. Avoid it if you depend on it.
v1.2.4
is a working build, but it accidentally shipped .docz
cache to the NPM registry... Fix this by explicitly setting files
in package.json
.
Published by chrisrzhou about 4 years ago
[deprecated]: This release includes unnecessary
.doc
cache files in the build and is necessarily large.
...rest
props (@davidjb)tooltipOptions
to options
(@davidjb) to configure tippy
tooltips.svgAttributes
and textAttributes
to options
to configure attributes on svg
and text
nodes.~
, spaces over tabs, microbundle
over rollup
, npm
over yarn
.Published by chrisrzhou over 4 years ago
This release is largely internal refactoring and updating dependencies, as well as 'de-typescripting' the codebase
options.enableOptimizations
flag.Spiral
and Scale
enums are removed in favor of whitelisted string values. As part of moving to ambient declarations, these enums will not materialize in the compiled code.yarn upgrade --latest
. Remove a ton of unneeded dependencies and correctly move @types/*
deps to devDependencies
.eslint
, prettier
config and use xo
for a simpler linting setup.husky
pre-push hook.[email protected]
. Improved various doc pages (Common Issues
) and added the Optimizations
and Home
page*.d.ts
files for typing in development. Continue to expose Typescript types to consumers.Published by chrisrzhou about 5 years ago
yarn audit
.Options
and Callbacks
props.render.ts
.hooks.ts
.MouseEvent
object in onWordClick
, onWordMouseOut
and onWordMouseOver
callbacksPublished by chrisrzhou over 5 years ago
Emit typescript types for the module, so that various types can be used correctly in consumers.
Published by chrisrzhou over 5 years ago
options.deterministic
field. This makes testing and creating fixed wordcloud views convenient.d3-*
packages instead of importing d3
entirely.docz
and docs. Add Codesandbox examples..eslintrc.js
to .prettierrc.js
. This supports better formatting in MDX files with VSCode.Published by chrisrzhou over 5 years ago
FAQ
page explaining common 'bugs', and updated Options
page with more examplesminSize
and options.fontSizes
value to make things less buggy.rotationAngles
was mutated.Published by chrisrzhou over 5 years ago
Improve and simplify React hooks code after detailed understanding of: https://overreacted.io/a-complete-guide-to-useeffect/
Also updated the PropsTable
docs with prop descriptions.
Published by chrisrzhou over 5 years ago
Fixing the following bugs:
Tooltip bug is fixed by programmatically creating and destroying the tippy
instance. Word implosion and missing words are related to https://github.com/jasondavies/d3-cloud/issues/36, and is fixed with a recursive solution.
Published by chrisrzhou over 5 years ago
Thanks to @warlock for transferring the react-wordcloud
package ownership to me!
Published by chrisrzhou over 5 years ago
Update word.count
to word.value
Published by chrisrzhou over 5 years ago
As part of learning and ramping up with better JS tools and frameworks, v1.0.0 is a modern rewrite that focuses on:
docz
.rollup
and bundlesize
.Compared to v0, there are a number of breaking changes.
react^16.8.3
installed to access hook functionality.options
and callbacks
with potentially different names. Please refer to the documentation or index.tsx
to see how to apply props correctly.flow
and a lot of dev dependencies have changed. The scripts in package.json
should help handle most of these changes.Published by chrisrzhou over 5 years ago
This React wordcloud component is based on the d3-cloud
wordcloud layout written by Jason Davies.
It includes the following features that can be easily controlled with props.