v 2.3.2
Remove `COLUMNS_COUNT`, `ROWS_COUNT` for `GridAnnotationNode` output
This commit is contained in:
@@ -7,8 +7,7 @@ from ..utils import Annotation
|
||||
|
||||
|
||||
class GridAnnotationNode(BaseNode):
|
||||
RETURN_TYPES: tuple[str, ...] = ("GRID_ANNOTATION", "INT", "INT")
|
||||
RETURN_NAMES: tuple[str, ...] = ("GRID_ANNOTATION", "COLUMNS_COUNT", "ROWS_COUNT")
|
||||
RETURN_TYPES: tuple[str, ...] = ("GRID_ANNOTATION",)
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls) -> dict[str, t.Any]:
|
||||
@@ -25,7 +24,7 @@ class GridAnnotationNode(BaseNode):
|
||||
column_texts: str,
|
||||
row_texts: str,
|
||||
font_size: int,
|
||||
) -> tuple[Annotation, int, int]:
|
||||
) -> tuple[Annotation]:
|
||||
font = ImageFont.truetype(str(STATIC_PATH / "Roboto-Regular.ttf"), size=font_size)
|
||||
column_texts_list = self._set_value_to_texts_list(
|
||||
self._get_texts_from_string(column_texts),
|
||||
@@ -35,7 +34,7 @@ class GridAnnotationNode(BaseNode):
|
||||
)
|
||||
|
||||
result = Annotation(column_texts=column_texts_list, row_texts=row_texts_list, font=font)
|
||||
return (result, len(column_texts_list), len(row_texts_list))
|
||||
return (result,)
|
||||
|
||||
def _get_texts_from_string(self, string: str) -> list[str]:
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user