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

  • Optionalcamera?: {
        fitOnLoad?: boolean;
    }
    • OptionalfitOnLoad?: boolean
  • Optionalcanvas?: {
        autoSize?: boolean;
    }
    • OptionalautoSize?: boolean
  • OptionalkeyBindings?: {
        keyup?: ((event: unknown) => void);
        rightMouseClick: ((event: unknown, qid: Qid) => void);
    }
    • Optionalkeyup?: ((event: unknown) => void)
        • (event): void
        • Parameters

          • event: unknown

          Returns void

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

          • event: unknown
          • qid: Qid

          Returns void

  • OptionalrealtimeSettings?: {
        drawAdditionalLines?: boolean;
        drawLines?: boolean;
        drawTriangles?: boolean;
        drawWireframes?: boolean;
    }
    • OptionaldrawAdditionalLines?: boolean
    • OptionaldrawLines?: boolean
    • OptionaldrawTriangles?: boolean
    • OptionaldrawWireframes?: boolean
  • Optionalrendering?: {
        antialias?: boolean;
        boundingBox?: boolean;
    }

    Render related settings

    • Optionalantialias?: boolean
    • OptionalboundingBox?: boolean
  • Optionalstyling?: {
        ifcTypes?: {
            DEFAULT?: {
                fill: number;
                stroke: number;
            };
        };
        selection?: {
            fill: number;
            stroke: number;
        };
    }
    • OptionalifcTypes?: {
          DEFAULT?: {
              fill: number;
              stroke: number;
          };
      }
      • OptionalDEFAULT?: {
            fill: number;
            stroke: number;
        }
        • fill: number
        • stroke: number
    • Optionalselection?: {
          fill: number;
          stroke: number;
      }
      • fill: number
      • stroke: number
  • OptionaltextPlacement?: {
        maxWidth?: number;
        orientation?: "AUTO" | "HORIZONTAL" | "VERTICAL";
    }
    • OptionalmaxWidth?: number
    • Optionalorientation?: "AUTO" | "HORIZONTAL" | "VERTICAL"