Skip to content

MarkPoint

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  3583652715["models.MarkPoint"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 3583652715
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

An instant at a position, e.g. a click: drawn on the tile nearest to t.

Source code in src/framesheet/models.py
class MarkPoint(BaseModel):
    """An instant at a position, e.g. a click: drawn on the tile nearest to ``t``."""

    model_config = ConfigDict(extra="forbid", strict=True)
    t: float = Field(ge=0)
    x: float
    y: float
    label: str | None = None
    kind: str | None = None
    """Free-form, e.g. ``click``."""
    duration: float = Field(default=0.0, ge=0)
    """Seconds the point stays relevant (drawn on every tile it overlaps)."""

duration class-attribute instance-attribute

duration: float = Field(default=0.0, ge=0)

Seconds the point stays relevant (drawn on every tile it overlaps).

kind class-attribute instance-attribute

kind: str | None = None

Free-form, e.g. click.

:fa-brands-github: Show source on GitHub