Bitbybit Docs
    Preparing search index...

    Class Tag

    Text labels pinned to 3D positions: a tag is an HTML text element placed over the canvas at the screen position of a point in the scene, and it follows that point as the camera moves. Tags are for showing names, measurements or other data next to geometry. drawTag and drawTags create the elements and register them for updating; create only builds the description.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Builds a tag description from its text, position, color, size and depth behavior, without drawing it; drawTag or drawTags put it on screen.

      Parameters

      • inputs: TagDto

        The text, the position, the color, the size and the depth behavior

      Returns TagDto

      The tag description, a new object

      const tag = bitbybit.tag.create({ text: "Lid", position: [0, 10, 0], colour: "#ffffff", size: 14, adaptDepth: true });