Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何实现节点文本,只修改部分字体的颜色和大小 #3614

Closed
TalentJY opened this issue May 23, 2023 · 4 comments
Closed

如何实现节点文本,只修改部分字体的颜色和大小 #3614

TalentJY opened this issue May 23, 2023 · 4 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@TalentJY
Copy link

问题描述

如题,之前看到draw.io,用的mxgraph是可以实现的。

重现链接

暂无

重现步骤

暂无

预期行为

暂无

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@NewByVector
Copy link
Contributor

看了下,drawio 是这样实现的:
image
如果要实现这个功能,可以考虑自定义节点。

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label May 24, 2023
@TalentJY
Copy link
Author

TalentJY commented Jun 6, 2023

看了下,drawio 是这样实现的: image 如果要实现这个功能,可以考虑自定义节点。
自定义节点 只能定死吧,能做到事实修改吗,在node-editor中 选中部分文字 然后修改大小颜色

@NewByVector
Copy link
Contributor

@TalentJY 自定义节点的话,所有功能都可以自定义,包括文本编辑效果。

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 5, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

2 participants