@@ -40,7 +40,7 @@ isempty(wordblacklist) ? nothing : wordblacklist
40
40
end
41
41
42
42
# ╔═╡ f4844a5f-260b-4713-84bf-69cd8123c7fc
43
- md """ **mask shape:** $(@bind mask_ Select([:auto, box, ellipse, squircle, ngon, star, bezingon, bezistar])) $(@bind configshape CheckBox(default=false))additional config"""
43
+ md """ **mask shape:** $(@bind mask_ Select([:auto, box, ellipse, squircle, ngon, star, bezingon, bezistar])) $(@bind configshape CheckBox(default=false))additional config **mask size:** $(@bind masksize_ TextField(default="auto")) *e.g. 400,300* """
44
44
45
45
# ╔═╡ 1aa632dc-b3e8-4a9d-9b9e-c13cd05cf97e
46
46
begin
@@ -364,21 +364,30 @@ else
364
364
end
365
365
end
366
366
367
- # ╔═╡ 27fb4920-d120-43f6-8a03-0b09877c99c4
367
+ # ╔═╡ 9a61bb59-5708-4fc0-81f3-3ca555b3bf5d
368
368
begin
369
369
function gen_cloud (words_weights)
370
370
if outlinewidth isa Number && outlinewidth >= 0
371
371
olw = outlinewidth
372
372
else
373
373
olw = rand ((0 , 0 , 0 , rand (2 : 10 )))
374
374
end
375
+ masksize = :auto
376
+ try
377
+ masksize = Tuple (parse (Int, i ) for i in split (masksize_, " ," ))
378
+ if length (masksize) == 1
379
+ masksize = masksize[1 ]
380
+ end
381
+ catch
382
+ end
375
383
try
376
384
return wordcloud (
377
385
words_weights;
378
386
colors= colors,
379
387
angles= angles,
380
388
fonts= fonts,
381
389
mask= mask,
390
+ masksize= masksize,
382
391
outline= olw,
383
392
density= density,
384
393
spacing= spacing,
427
436
# ╟─74bd4779-c13c-4d16-a90d-597db21eaa39
428
437
# ╟─9396cf96-d553-43db-a839-273fc9febd5a
429
438
# ╟─1a4d1e62-6a41-4a75-a759-839445dacf4f
430
- # ╟─27fb4920-d120-43f6-8a03-0b09877c99c4
431
439
# ╟─986cf1a6-8075-48ae-84d9-55ae11a27da1
432
440
# ╟─e7ec8cd7-f60b-4eb0-88fc-76d694976f9d
433
441
# ╟─b09620ef-4495-4c83-ad1c-2d8b0ed70710
434
442
# ╟─3dc10049-d257-4bcd-9119-2a1af5a0e233
443
+ # ╟─9a61bb59-5708-4fc0-81f3-3ca555b3bf5d
435
444
# ╟─daf38998-c448-498a-82e2-b48a6a2b9c27
0 commit comments