antvis/G6

graph.setTextWaterMarker 设置文字水印后 如何调整水印文字的颜色大小之类的 #5042

yeyusama posted onGitHub

问题描述

graph.setTextWaterMarker(['xxxxxxxxx', 'xxxxxxxxxxxxxxxx']);

graph.setTextWaterMarker 设置文字水印后 如何调整水印文字的颜色或者大小呢

看似乎有第三个参数 但是具体是如何配置的呢

重现链接

https://github.com/antvis/G6/issues/new?assignees=&labels=&projects=&template=bug_report_chinese.yml

重现步骤

https://github.com/antvis/G6/issues/new?assignees=&labels=&projects=&template=bug_report_chinese.yml

预期行为

调整水印文字的颜色或者大小

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Hi @yeyusama, Please star this repo if you find it useful! Thanks :star:! 你好 @yeyusama。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year ago

https://g6.antv.antgroup.com/api/graph-func/watermarker#graphsettextwatermarkertexts-config

第二个参数的 text 可以设置文本样式,在表格中有例子

posted by Yanyan-Wang over 1 year ago

感谢 已解决

posted by yeyusama over 1 year ago

Hi @yeyusama, Please star this repo if you find it useful! Thanks :star:! 你好 @yeyusama。如果该仓库对你有用,可以在仓库右上角 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests