public getRectAnimationSettings()

in src/visual.ts [936:953]


    public getRectAnimationSettings(firstValue: number, secondValue: number): LineAnimationSettings {
        const isReverted: boolean = secondValue - firstValue < 0;

        if (isReverted) {
            return {
                startX: firstValue,
                endX: secondValue,
                endWidth: firstValue - secondValue
            };
        }

        // x always the same, in this case only width changes
        return {
            startX: firstValue,
            endX: firstValue,
            endWidth: secondValue - firstValue
        };
    }