kivycharts/kivycharts/graph/image.py
2021-12-28 10:48:22 +08:00

13 lines
516 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# image.py
"""
名称 类型 默认值 描述
opts Object 配置项,继承得到的配置项参见 zrender.Displayable。
opts.style Object 样式。
opts.style.image string|HTMLImageElement|HTMLCanvasElement 图片的内容,可以是图片的 URL也可以是 dataURI。
opts.style.x number 图片左上角相对于父节点的横坐标。
opts.style.y number 图片左上角相对于父节点的纵坐标。
opts.style.width number 图片宽度。
opts.style.height number 图片高度。
"""