MCPcopy Create free account
hub / github.com/microsoft/TypeChat / Box

Class Box

python/examples/drawing/schema.py:27–37  ·  view source on GitHub ↗

A rectangular box defined by a coordinate system with the origin at the top left.

Source from the content-addressed store, hash-verified

25
26@dataclass
27class Box:
28 """A rectangular box defined by a coordinate system with the origin at the top left."""
29
30 type: Literal["Box"]
31
32 x: Annotated[int, Doc("X-coordinate of the top left corner.")]
33 y: Annotated[int, Doc("Y-coordinate of the top left corner.")]
34 width: Annotated[int, Doc("Width of the box.")]
35 height: Annotated[int, Doc("Height of the box.")]
36 text: Annotated[Optional[str], Doc("Optional text centered in the box.")] = None
37 style: Annotated[Optional[Style], Doc("Optional style settings for the box.")] = None
38
39
40@dataclass

Callers 1

render.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected