Commit b0f4aeaa authored by Romain Loth's avatar Romain Loth

optional tagcloud size normalization

added an optional reserved attribute 'normfactor' for this...
parent 66183b2b
......@@ -459,6 +459,11 @@ function htmlProportionalLabels(elems , limit, selectableFlag) {
fontSize = 1
}
// normalize sizes by special attribute "normfactor" if present
if (TW.Nodes[id].attributes.normfactor) {
fontSize = fontSize * TW.Nodes[id].attributes.normfactor
}
// debug
// console.log('htmlfied_tagcloud (',id, TW.Nodes[id].label,') freq',frec,' fontSize', fontSize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment