IFClite TypeScript API
    Preparing search index...

    Interface ViewerServerOptions

    interface ViewerServerOptions {
        createHandler?: CreateHandler;
        fileName: string;
        filePath: string | null;
        onError?: (err: ErrnoException) => void;
        onReady?: (port: number, url: string) => void;
        port: number;
    }
    Index
    createHandler?: CreateHandler

    Optional handler for /api/create endpoint

    fileName: string

    Display name for the model

    filePath: string | null

    Path to IFC file to serve (null for empty mode)

    onError?: (err: ErrnoException) => void

    Callback on server error

    onReady?: (port: number, url: string) => void

    Callback when server is ready

    port: number

    Port to listen on (0 = auto)