spreadsheet_intelligence.formatters.drawing package#

Submodules#

spreadsheet_intelligence.formatters.drawing.format module#

class spreadsheet_intelligence.formatters.drawing.format.BaseFormatter(drawing: TBaseDrawingConverted)[source]#

Bases: Generic[TBaseDrawingConverted]

Base class for formatting drawing objects.

Parameters:

drawing (TBaseDrawingConverted) – The drawing object to be formatted.

format() dict[source]#

Formats the drawing object.

Returns:

The formatted dictionary representation of the drawing.

Return type:

dict

class spreadsheet_intelligence.formatters.drawing.format.BentConnectorFormatter(drawing: TBaseDrawingConverted)[source]#

Bases: BaseFormatter[BentConnector3]

Formatter for BentConnector3 objects.

format() dict[source]#

Formats a BentConnector3 object into a dictionary.

Returns:

A dictionary representation of the BentConnector3 object.

Return type:

dict

class spreadsheet_intelligence.formatters.drawing.format.StraightConnectorFormatter(drawing: TBaseDrawingConverted)[source]#

Bases: BaseFormatter[StraightConnector1]

Formatter for StraightConnector1 objects.

format() dict[source]#

Formats a StraightConnector1 object into a dictionary.

Returns:

A dictionary representation of the StraightConnector1 object.

Return type:

dict

class spreadsheet_intelligence.formatters.drawing.format.ShapeFormatter(drawing: TBaseDrawingConverted)[source]#

Bases: BaseFormatter[Shape]

Formatter for Shape objects.

format() dict[source]#

Formats a Shape object into a dictionary.

Returns:

A dictionary representation of the Shape object.

Return type:

dict

class spreadsheet_intelligence.formatters.drawing.format.AllDrawingsFormatter(connector_list: list[BentConnector3 | StraightConnector1], shape_list: list[Shape])[source]#

Bases: object

Formatter for a list of drawing objects including connectors and shapes.

Parameters:
format2json() str[source]#

Formats all drawing objects into a JSON string.

Returns:

A JSON string representation of all drawing objects.

Return type:

str

Module contents#

class spreadsheet_intelligence.formatters.drawing.AllDrawingsFormatter(connector_list: list[BentConnector3 | StraightConnector1], shape_list: list[Shape])[source]#

Bases: object

Formatter for a list of drawing objects including connectors and shapes.

Parameters:
format2json() str[source]#

Formats all drawing objects into a JSON string.

Returns:

A JSON string representation of all drawing objects.

Return type:

str

class spreadsheet_intelligence.formatters.drawing.ShapeFormatter(drawing: TBaseDrawingConverted)[source]#

Bases: BaseFormatter[Shape]

Formatter for Shape objects.

format() dict[source]#

Formats a Shape object into a dictionary.

Returns:

A dictionary representation of the Shape object.

Return type:

dict

class spreadsheet_intelligence.formatters.drawing.BentConnectorFormatter(drawing: TBaseDrawingConverted)[source]#

Bases: BaseFormatter[BentConnector3]

Formatter for BentConnector3 objects.

format() dict[source]#

Formats a BentConnector3 object into a dictionary.

Returns:

A dictionary representation of the BentConnector3 object.

Return type:

dict

class spreadsheet_intelligence.formatters.drawing.StraightConnectorFormatter(drawing: TBaseDrawingConverted)[source]#

Bases: BaseFormatter[StraightConnector1]

Formatter for StraightConnector1 objects.

format() dict[source]#

Formats a StraightConnector1 object into a dictionary.

Returns:

A dictionary representation of the StraightConnector1 object.

Return type:

dict