@twinfinity/experimental
    Preparing search index...

    Class BimDrawingPdf

    Represents a drawing that has been loaded using the DrawingApi class.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    BimApi

    _drawing: BimDrawing

    BimSvg or BimPdf instance

    _onDisposed: (o: BimDrawingObject) => void

    Callback which is invoked when this.dispose is called-

    drawingChange: BimChangeBlob | BimChangeDwg

    BimChangeDwg or BimChangeBlob that the drawing source is loaded from

    Accessors

    • get boundingInfo(): BoundingInfo

      Bounding info for the drawing plane

      Returns BoundingInfo

    • get parentTransformNode(): Nullable<TransformNode>

      Returns Nullable<TransformNode>

    • get visible(): boolean

      true if the drawing is visible, otherwise false.

      Returns boolean

    • set visible(v: boolean): void

      Parameters

      • v: boolean

      Returns void

    Methods

    • Dispose the drawing (it is unloaded and will not longer be visualized.)

      Returns void

    • Force the drawing to zoom based on the camera position and render.

      Returns Promise<void>

    • Gets the background color for the current PDF

      Returns Color3

      The background color as a Color3

    • Sets which page of PDF should be rendered or gets the current page.

      Parameters

      • Optionalp: number

        Number of the page you wish to render, 1 - pageCount.

      Returns Promise<number>

    • Returns number

      The number of pages in the PDF.

    • Sets the background color of the PDF.

      Parameters

      • color: Color3

        new background color for the PDF.

      Returns void