Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/1630.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Component bounding box wrong formating
4 changes: 2 additions & 2 deletions src/pyedb/grpc/database/hierarchy/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ def location(self, value):
super(Component, self.__class__).location.__set__(self, _location)

@property
def bounding_box(self) -> list[float]:
def bounding_box(self) -> tuple[tuple[float, float], tuple[float, float]]:
"""Component's bounding box.

Returns
Expand All @@ -776,7 +776,7 @@ def bounding_box(self) -> list[float]:
bbox = self.component_instance.get_bbox().points
pt1 = bbox[0]
pt2 = bbox[2]
return [Value(pt1.x), Value(pt1.y), Value(pt2.x), Value(pt2.y)]
return (Value(pt1.x), Value(pt1.y)), (Value(pt2.x), Value(pt2.y))

@property
def rotation(self) -> float:
Expand Down
Loading