bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class Navigation

    Index

    Constructors

    camera

    • Zoom camera to fit specified meshes in the scene with smooth animation. Works only with ArcRotateCamera. Animation can be interrupted if called multiple times.

      Parameters

      • inputs: ZoomOnDto

        Configuration for zoom operation including meshes, children inclusion, and animation speed

      Returns Promise<void>

      void

      zoom on

      false

    • Zoom camera to fit specified meshes in the scene with smooth animation, considering exact screen aspect ratio. Unlike zoomOn, this method precisely calculates camera distance based on viewport dimensions and mesh bounding box to ensure better fit at padding=0. Works only with ArcRotateCamera. Animation can be interrupted if called multiple times.

      Parameters

      • inputs: ZoomOnDto

        Configuration for zoom operation including meshes, children inclusion, and animation speed

      Returns Promise<void>

      void

      zoom on aspect

      false

    • Focus camera on specified meshes from a specific angle with smooth animation. Computes the center of the bounding box of all meshes and positions the camera at the specified orientation vector to look at the center. Works only with ArcRotateCamera. Animation can be interrupted if called multiple times.

      Parameters

      • inputs: FocusFromAngleDto

        Configuration for focus operation including meshes, orientation, distance, and animation speed

      Returns Promise<void>

      void

      focus from angle

      false

    point of interest

    • Creates point of interest - clickable indicator in 3D space that can be used to fly the camera to a specific location with predefined camera position and target. Point of interest can be styled with PointOfInterestStyleDto and animated with pulse effect. Point of interest can also have a text label.

      Parameters

      Returns PointOfInterestEntity

      Create point of interest

      Navigation.pointOfInterest({ name: "Entrance", position: [0, 1, 0], cameraPosition: [10, 10, 10], cameraTarget: [0, 0, 0] });
      

      point of interest

      true