npm run pack
打包结果在 /module/facetTree.js
- download
facetTree.js
fromrelease
tab - import
drawTree
(refer toindex.ts
) - define your own click func ( like
clickFacet
inindex.ts
) - transfer
dom, treeData, clickFunc
todrawTree
facetId = -1
means the facet is an aggregation of facets
- 变量
palettes
调色板(二维数组)ColorNo
minFacetFontSize
maxFacetFontSize
weightSecondFacet
weightFirstLayerVideo
weightFirstLayerRichText
weightSecondLayerVideo
weightSecondLayerRichText
branchRate
branchIntervalRate
branchWidthRate
firstLayerThreshold
secondLayerThreshold
- 函数
camelSort
calcWeight
计算分面权重calcFacetChart
buildTree