constructor(trigger, content, positionMode, offsets, didAnimateScale) {
        this.trigger = trigger;
        this.content = content;
        this.positionMode = positionMode;
        this.didAnimateScale = didAnimateScale;
        this.offsets = offsets;
        this.position = {};
        this.verticalTransformOrigin = "top"
        this.horizontalTransformOrigin = "";

        this.calcTopPositionMode();
        this.calcLeftPositionMode();
        this.addOffsets();
        this.clampPosition();
    }
Creates an instance of menu position calculator.
@param trigger HTMLElement of menu's trigger
@param content  HTMLElement of the menu's content
@param positionMode Mode to use when calculating position {top: string, left: string}
@param offsets Top and left offsets {top: number, left: number}
@param didAnimateScale True when the menu has already animated.