IFClite TypeScript API
    Preparing search index...

    Class DoorSymbolGenerator

    Generates door symbols for 2D floor plans

    Index
    • Generate door symbol from opening info.

      doorAxes, when given, are the door placement's local X and Y axes projected into the drawing plane. The hinge side is then derived from the door's own frame per IFC4.3 IfcDoorTypeOperationEnum (SINGLE_SWING_LEFT: "hinges on the left side as viewed in the direction of the positive y-axis", leaf opening to +Y): LEFT hinges on local -X, RIGHT on local +X, the leaf swings to local +Y. A mirrored placement (negative determinant) therefore flips the hand. Without doorAxes, wallDirection is the local X axis and its CCW perpendicular the swing direction, as before.

      Parameters

      Returns DoorSymbolResult

    • Generate a door symbol at a specific position

      Parameters

      • center: Point2D
      • width: number
      • operation:
            | "USERDEFINED"
            | "NOTDEFINED"
            | "REVOLVING"
            | "ROLLINGUP"
            | "SINGLE_SWING_LEFT"
            | "SINGLE_SWING_RIGHT"
            | "DOUBLE_DOOR_SINGLE_SWING"
            | "DOUBLE_DOOR_SINGLE_SWING_OPPOSITE_LEFT"
            | "DOUBLE_DOOR_SINGLE_SWING_OPPOSITE_RIGHT"
            | "DOUBLE_SWING_LEFT"
            | "DOUBLE_SWING_RIGHT"
            | "DOUBLE_DOOR_DOUBLE_SWING"
            | "SLIDING_TO_LEFT"
            | "SLIDING_TO_RIGHT"
            | "DOUBLE_DOOR_SLIDING"
            | "FOLDING_TO_LEFT"
            | "FOLDING_TO_RIGHT"
            | "DOUBLE_DOOR_FOLDING"
            | "SWING_FIXED_LEFT"
            | "SWING_FIXED_RIGHT"
      • wallDirection: Point2D
      • swingDirection: Point2D

      Returns DoorSymbolResult