Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wordcloud2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ if (!window.clearImmediate) {
: [ngx / 2, ngy / 2]

// Maxium radius to look for space
maxRadius = Math.floor(Math.sqrt(ngx * ngx + ngy * ngy))
maxRadius = Math.floor(Math.max(ngx, ngy) / 2)

/* Clear the canvas only if the clearCanvas is set,
if not, update the grid to the current canvas state */
Expand Down