import imageA from '../assets/images/icon-node.png'
import imageB from '../assets/images/icon-organization.png'
nodes: [
{
id: 1,
label: "外部网络",
x: -600,
y: 0,
image: imageA,
size: 60,
// title: 'space',
},
{
id: 2,
font: { multi: true },
label: "交换机",
x: -200,
y: 200,
size: 40,
image: imageB,
title: 'earth',
},
{
id: 3,
font: { multi: true },
label: 计算机",
x: -800,
y: 200,
size: 40,
image: imageA,
// title: 'earth',
},
本文展示了如何在代码中导入并使用图像来表示网络中的外部网络、交换机和计算机节点。节点具有坐标和大小,使用不同的图标标识。
975

被折叠的 条评论
为什么被折叠?



