Viewer2dSettings: {
    camera?: {
        fitOnLoad?: boolean;
    };
    canvas?: {
        autoSize?: boolean;
    };
    keyBindings?: {
        keyup?: ((event: unknown) => void);
        rightMouseClick: ((event: unknown, qid: Qid) => void);
    };
    realtimeSettings?: {
        drawAdditionalLines?: boolean;
        drawLines?: boolean;
        drawTriangles?: boolean;
        drawWireframes?: boolean;
    };
    rendering?: {
        antialias?: boolean;
        boundingBox?: boolean;
    };
    styling?: {
        ifcTypes?: {
            DEFAULT?: {
                fill: number;
                stroke: number;
            };
        };
        selection?: {
            fill: number;
            stroke: number;
        };
    };
    textPlacement?: {
        maxWidth?: number;
        orientation?: "AUTO" | "HORIZONTAL" | "VERTICAL";
    };
}

2D Viewer Settings

Type declaration

  • Optional camera?: {
        fitOnLoad?: boolean;
    }
    • Optional fitOnLoad?: boolean
  • Optional canvas?: {
        autoSize?: boolean;
    }
    • Optional autoSize?: boolean
  • Optional keyBindings?: {
        keyup?: ((event: unknown) => void);
        rightMouseClick: ((event: unknown, qid: Qid) => void);
    }
    • Optional keyup?: ((event: unknown) => void)
        • (event: unknown): void
        • Parameters

          • event: unknown

          Returns void

    • rightMouseClick: ((event: unknown, qid: Qid) => void)
        • (event: unknown, qid: Qid): void
        • Parameters

          • event: unknown
          • qid: Qid

          Returns void

  • Optional realtimeSettings?: {
        drawAdditionalLines?: boolean;
        drawLines?: boolean;
        drawTriangles?: boolean;
        drawWireframes?: boolean;
    }
    • Optional drawAdditionalLines?: boolean
    • Optional drawLines?: boolean
    • Optional drawTriangles?: boolean
    • Optional drawWireframes?: boolean
  • Optional rendering?: {
        antialias?: boolean;
        boundingBox?: boolean;
    }

    Render related settings

    • Optional antialias?: boolean
    • Optional boundingBox?: boolean
  • Optional styling?: {
        ifcTypes?: {
            DEFAULT?: {
                fill: number;
                stroke: number;
            };
        };
        selection?: {
            fill: number;
            stroke: number;
        };
    }
    • Optional ifcTypes?: {
          DEFAULT?: {
              fill: number;
              stroke: number;
          };
      }
      • Optional DEFAULT?: {
            fill: number;
            stroke: number;
        }
        • fill: number
        • stroke: number
    • Optional selection?: {
          fill: number;
          stroke: number;
      }
      • fill: number
      • stroke: number
  • Optional textPlacement?: {
        maxWidth?: number;
        orientation?: "AUTO" | "HORIZONTAL" | "VERTICAL";
    }
    • Optional maxWidth?: number
    • Optional orientation?: "AUTO" | "HORIZONTAL" | "VERTICAL"

Generated using TypeDoc