kivycharts/build/lib/kivycharts/graph/rectangle.py
2022-01-29 22:56:41 +08:00

13 lines
646 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.

# rectangle.py
"""
名称 类型 默认值 描述
opts Object 配置项,继承得到的配置项参见 zrender.Displayable。
opts.shape Object 形状属性。
opts.shape.r number|number[] 0 用于创建圆角矩形。左上、右上、右下、左下角的半径依次为 r1、 r2、 r3、 r4。r 缩写为 1 相当于 [1, 1, 1, 1]r 缩写为 [1] 相当于 [1, 1, 1, 1]r 缩写为 [1, 2] 相当于 [1, 2, 1, 2]r 缩写为 [1, 2, 3] 相当于 [1, 2, 3, 2]。
opts.shape.x number 0 左上角的横坐标。
opts.shape.y number 0 左上角的纵坐标。
opts.shape.width number 0 宽度。
opts.shape.height number 0 高度。
"""