webcmp-topo-chart-horizontal
拓扑图组件封装
Install
yarn add webcmp-topo-chart-horizontal
npm install webcmp-topo-chart-horizontal
Usage
import Fruchterman from 'webcmp-topo-chart-horizontal'
const fruchterman = new Fruchterman(dom)
fruchterman.render({
hideExport: true,
data: {
nodes: [
{
id: '0e359bf67a182f5f58efa5075b113483',
label: '节点',
targetTypeName: 'deeeedeeeedeeeedeeeedeeeedeeee',
icon: 'asset_node',
showLink: false,
targetType: 'node',
link: false,
},
],
edges: [
{
source: '0e359bf67a182f5f58efa5075b113483',
target: '0e359bf67a182f5f58efa5075b113483',
},
],
},
})
publish
prerelease
npm login --registry http://nexus.ketaops.cc/repository/npm-hosted
npm set registry http://nexus.ketaops.cc/repository/npm-hosted
账号密码联系 @郭龙
npm publish
正式包
npm set registry https://registry.npmjs.org
npm publish
cnpm synk webcmp-topo-chart-horizontal
open https://npmmirror.com/sync/webcmp-topo-chart-horizontal