data
认知关系数据,格式如gaozhongshuxue.ts
svg
显示认知关系的svg元素,需要设置宽高treesvg
显示分面树的svg元素,不要设置宽高,但需要使其浮于认知关系图之上learningPath: number[]
知识主题id列表,用来显示推荐认知路径clickTopic(topicId: number, topicName: string)
点击知识主题的响应函数clickFacet(facetId: number)
点击分面的响应函数
data
svg
clickCom(d)
- Circular layout between clusters
id
data
svg
clickTopic(topicId: number, topicName: string)
- Circular layout between topics in clusters
npm run build
打包结果在 /module/topicDependenceVisualization.js
- download 'topicDependenceVisualization.js' from 'release' tab
- import 'drawMap'/'drawCommunity'/'drawTopic'(refer to 'index.ts')
drawMap(data, svg, treesvg, domainName, learningPath, clickTopic, clickFacet)