X6 icon indicating copy to clipboard operation
X6 copied to clipboard

链接桩除了text作为描述外,如何在连接桩内部定义文本

Open LiuYxixi opened this issue 1 year ago • 3 comments

问题描述

想同时有连接桩的文本描述,同时在桩内部定义一个表明桩分类的大写字母。 image

例如上图,图中的"C","P","R"应该如何实现展示效果呢

重现链接

重现步骤

预期行为

想要在连接桩内部展示文本

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

image

补充说明(可选)

No response

LiuYxixi avatar Aug 26 '24 07:08 LiuYxixi

👋 @LiuYxixi

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

x6-bot[bot] avatar Aug 26 '24 07:08 x6-bot[bot]

使用svg

duchao-duchao avatar Sep 25 '24 08:09 duchao-duchao

    node.setPortProp(port.id as string, 'attrs/path', {
      stroke: '#007FE3',
      d: 字母svg路径
    })

duchao-duchao avatar Sep 25 '24 08:09 duchao-duchao

参考下官网文档

lxfu1 avatar Aug 07 '25 12:08 lxfu1