# Source code for tabletree.src.api.view_util.point

    from collections.abc import Sequence
    from typing import Self

    Vector3 = Sequence[float]

    class Point:
        _position: list[float]
        _text: str | None

        def __init__(self, position: Vector3):
            """Create a point.

            Args:
                position:
                    The position of the point.
            """
            self._position = list(position)
            self._text = None

        def set_text(self, text: str) -> Self:
            """Set a text to the point.

            Args:
                text:
                    The text to be displayed on the point.
            """
            self._text = text
            return self

        @property
        def pos(self) -> list[float]:
            """Obtain the position."""
            return self._position