Skip to content
Snippets Groups Projects
Select Git revision
  • e18f658d80beeea199b03b989672ab132308f59e
  • master default protected
  • devel
  • hruska-feature-clients-api
  • malostik-#5066-deduplicate-idea-ids
  • warden-postgresql-port
  • hruska-feature-#6799-filter-keys
  • hruska-feature-5066-duplicateIdeaID
  • warden-client-3.0-beta3
  • warden-server-3.0-beta3
  • warden-client-2.2-final
  • warden-server-2.2-final
  • warden-client-3.0-beta2
  • warden-server-3.0-beta2
  • warden-client-2.2
  • warden-server-2.2-patch3
  • warden-client-3.0-beta1
  • warden-server-3.0-beta1
  • warden-server-2.2-patch1
  • warden-client-3.0-beta0
  • warden-server-3.0-beta0
  • warden-server-2.2
  • warden-server-2.1-patch1
  • warden-client-2.1
  • warden-server-2.1
  • warden-server-2.1-beta6
  • warden-server-2.1-beta5
  • warden-server-2.1-beta4
28 results

warden_3.0_mysql.sql

Blame
  • Forked from 713 / Warden / Warden - archive
    Source project has a limited visibility.
    easing.ts 2.04 KiB
    /**
     * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
     *
     * @author Alexander Rose <alexander.rose@weirdbyte.de>
     *
     * adapted from https://github.com/d3/d3-ease
     */
    
    const b1 = 4 / 11,
        b2 = 6 / 11,
        b3 = 8 / 11,
        b4 = 3 / 4,
        b5 = 9 / 11,
        b6 = 10 / 11,
        b7 = 15 / 16,
        b8 = 21 / 22,
        b9 = 63 / 64,
        b0 = 1 / b1 / b1;
    
    export function bounceIn(t: number) {
        return 1 - bounceOut(1 - t);
    }
    
    export function bounceOut(t: number) {
        return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;
    }
    
    export function bounceInOut(t: number) {
        return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;
    }
    
    //
    
    export function circleIn(t: number) {
        return 1 - Math.sqrt(1 - t * t);
    }
    
    export function circleOut(t: number) {
        return Math.sqrt(1 - --t * t);
    }
    
    export function circleInOut(t: number) {
        return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
    }
    
    //
    
    export function cubicIn(t: number) {
        return t * t * t;
    }
    
    export function cubicOut(t: number) {
        return --t * t * t + 1;
    }
    
    export function cubicInOut(t: number) {
        return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
    }
    
    //
    
    export function expIn(t: number) {
        return Math.pow(2, 10 * t - 10);
    }
    
    export function expOut(t: number) {
        return 1 - Math.pow(2, -10 * t);
    }
    
    export function expInOut(t: number) {