ooodev.format.draw.direct.position_size.position_size.size module

class ooodev.format.draw.direct.position_size.position_size.size.Size(width, height, base_point=ShapeBasePointKind.TOP_LEFT)[source]

Bases: Size

Shape Size

New in version 0.17.3.

__init__(width, height, base_point=ShapeBasePointKind.TOP_LEFT)[source]

Constructor

Parameters:
  • width (float | UnitT) – Specifies the width of the shape (in mm units) or Class UnitT.

  • height (float | UnitT) – Specifies the height of the shape (in mm units) or Class UnitT.

  • base_point (ShapeBasePointKind) – Specifies the base point of the shape used to calculate the X and Y coordinates. Default is TOP_LEFT.

Return type:

None