antvis/G6

添加图片水印方法不生效 #5408

kuangxiaowang posted onGitHub

问题描述

graph.setImageWaterMarker方法不生效,在画布上没有图片水印。文字水印方法setTextWaterMarker可以。

重现链接

https://g6.antv.antgroup.com/zh/examples/net/dagreFlow/#basicDagre

重现步骤

进入https://g6.antv.antgroup.com/zh/examples/net/dagreFlow/#basicDagre页面,在代码304行添加 graph.setImageWaterMarker( 'https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg', { width: 300, height: 200, image: { rotate: Math.PI / 3 }, }, ) 没有图片水印显示,但是setTextWaterMarker添加文字水印方法生效

预期行为

期望看到图片水印

平台

  • 操作系统: [Windows
  • 网页浏览器: Google Chrome
  • G6 版本: 4.8.24

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 6 months ago

Fund this Issue

$0.00
Funded

Pull requests