def svg_repr(self):
        """Return svg group element representing widget.

        Overrides Object2D.svg_repr().
        """
        rect = self.rect.inflate(-2, -2)
        x_str, y_str, width_str, height_str = map(str, rect)

        ###
        group = Element("g", {"class": "default_holder"})

        group.append(
            Element(
                "rect",
                {
                    "x": x_str,
                    "y": y_str,
                    "width": width_str,
                    "height": height_str,
                },
            )
        )

        (
            text_x_str,
            text_y_str,
        ) = map(str, rect.move(0, -5).bottomleft)

        text_element = Element(
            "text",
            {
                "x": text_x_str,
                "y": text_y_str,
                "text-anchor": "start",
            },
        )

        text_element.text = fit_text(
            text=repr(self.value),
            max_width=145,
            ommit_direction="right",
            font_height=ENC_SANS_BOLD_FONT_HEIGHT,
            font_path=ENC_SANS_BOLD_FONT_PATH,
            padding=1,
        )

        group.append(text_element)

        return group
Return svg group element representing widget.

        Overrides Object2D.svg_repr().
        
nodezator/widget/defaultholder.py