1686 lines
73 KiB
JavaScript
1686 lines
73 KiB
JavaScript
goog.provide('shadow.animate');
|
|
|
|
/**
|
|
* @interface
|
|
*/
|
|
shadow.animate.Animation = function(){};
|
|
|
|
var shadow$animate$Animation$_animate_from$dyn_20408 = (function (this$){
|
|
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
var m__5351__auto__ = (shadow.animate._animate_from[goog.typeOf(x__5350__auto__)]);
|
|
if((!((m__5351__auto__ == null)))){
|
|
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5351__auto__.call(null,this$));
|
|
} else {
|
|
var m__5349__auto__ = (shadow.animate._animate_from["_"]);
|
|
if((!((m__5349__auto__ == null)))){
|
|
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5349__auto__.call(null,this$));
|
|
} else {
|
|
throw cljs.core.missing_protocol("Animation.-animate-from",this$);
|
|
}
|
|
}
|
|
});
|
|
/**
|
|
* return a map of {attr initial-value}
|
|
*/
|
|
shadow.animate._animate_from = (function shadow$animate$_animate_from(this$){
|
|
if((((!((this$ == null)))) && ((!((this$.shadow$animate$Animation$_animate_from$arity$1 == null)))))){
|
|
return this$.shadow$animate$Animation$_animate_from$arity$1(this$);
|
|
} else {
|
|
return shadow$animate$Animation$_animate_from$dyn_20408(this$);
|
|
}
|
|
});
|
|
|
|
var shadow$animate$Animation$_animate_to$dyn_20409 = (function (this$){
|
|
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
var m__5351__auto__ = (shadow.animate._animate_to[goog.typeOf(x__5350__auto__)]);
|
|
if((!((m__5351__auto__ == null)))){
|
|
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5351__auto__.call(null,this$));
|
|
} else {
|
|
var m__5349__auto__ = (shadow.animate._animate_to["_"]);
|
|
if((!((m__5349__auto__ == null)))){
|
|
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5349__auto__.call(null,this$));
|
|
} else {
|
|
throw cljs.core.missing_protocol("Animation.-animate-to",this$);
|
|
}
|
|
}
|
|
});
|
|
/**
|
|
* return a map of {attr target-value}
|
|
*/
|
|
shadow.animate._animate_to = (function shadow$animate$_animate_to(this$){
|
|
if((((!((this$ == null)))) && ((!((this$.shadow$animate$Animation$_animate_to$arity$1 == null)))))){
|
|
return this$.shadow$animate$Animation$_animate_to$arity$1(this$);
|
|
} else {
|
|
return shadow$animate$Animation$_animate_to$dyn_20409(this$);
|
|
}
|
|
});
|
|
|
|
var shadow$animate$Animation$_animate_toggles$dyn_20410 = (function (this$){
|
|
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
var m__5351__auto__ = (shadow.animate._animate_toggles[goog.typeOf(x__5350__auto__)]);
|
|
if((!((m__5351__auto__ == null)))){
|
|
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5351__auto__.call(null,this$));
|
|
} else {
|
|
var m__5349__auto__ = (shadow.animate._animate_toggles["_"]);
|
|
if((!((m__5349__auto__ == null)))){
|
|
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5349__auto__.call(null,this$));
|
|
} else {
|
|
throw cljs.core.missing_protocol("Animation.-animate-toggles",this$);
|
|
}
|
|
}
|
|
});
|
|
/**
|
|
* return a map of {attr target-value}
|
|
*/
|
|
shadow.animate._animate_toggles = (function shadow$animate$_animate_toggles(this$){
|
|
if((((!((this$ == null)))) && ((!((this$.shadow$animate$Animation$_animate_toggles$arity$1 == null)))))){
|
|
return this$.shadow$animate$Animation$_animate_toggles$arity$1(this$);
|
|
} else {
|
|
return shadow$animate$Animation$_animate_toggles$dyn_20410(this$);
|
|
}
|
|
});
|
|
|
|
var shadow$animate$Animation$_animate_timings$dyn_20411 = (function (this$){
|
|
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
var m__5351__auto__ = (shadow.animate._animate_timings[goog.typeOf(x__5350__auto__)]);
|
|
if((!((m__5351__auto__ == null)))){
|
|
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5351__auto__.call(null,this$));
|
|
} else {
|
|
var m__5349__auto__ = (shadow.animate._animate_timings["_"]);
|
|
if((!((m__5349__auto__ == null)))){
|
|
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5349__auto__.call(null,this$));
|
|
} else {
|
|
throw cljs.core.missing_protocol("Animation.-animate-timings",this$);
|
|
}
|
|
}
|
|
});
|
|
/**
|
|
* return a map of {attr timing-function}
|
|
*/
|
|
shadow.animate._animate_timings = (function shadow$animate$_animate_timings(this$){
|
|
if((((!((this$ == null)))) && ((!((this$.shadow$animate$Animation$_animate_timings$arity$1 == null)))))){
|
|
return this$.shadow$animate$Animation$_animate_timings$arity$1(this$);
|
|
} else {
|
|
return shadow$animate$Animation$_animate_timings$dyn_20411(this$);
|
|
}
|
|
});
|
|
|
|
var shadow$animate$Animation$_animate_delays$dyn_20413 = (function (this$){
|
|
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
var m__5351__auto__ = (shadow.animate._animate_delays[goog.typeOf(x__5350__auto__)]);
|
|
if((!((m__5351__auto__ == null)))){
|
|
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5351__auto__.call(null,this$));
|
|
} else {
|
|
var m__5349__auto__ = (shadow.animate._animate_delays["_"]);
|
|
if((!((m__5349__auto__ == null)))){
|
|
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__5349__auto__.call(null,this$));
|
|
} else {
|
|
throw cljs.core.missing_protocol("Animation.-animate-delays",this$);
|
|
}
|
|
}
|
|
});
|
|
/**
|
|
* return a map of {attr transition-delay}
|
|
*/
|
|
shadow.animate._animate_delays = (function shadow$animate$_animate_delays(this$){
|
|
if((((!((this$ == null)))) && ((!((this$.shadow$animate$Animation$_animate_delays$arity$1 == null)))))){
|
|
return this$.shadow$animate$Animation$_animate_delays$arity$1(this$);
|
|
} else {
|
|
return shadow$animate$Animation$_animate_delays$dyn_20413(this$);
|
|
}
|
|
});
|
|
|
|
shadow.animate.transition_string = (function shadow$animate$transition_string(duration,adef){
|
|
var timings = shadow.animate._animate_timings(adef);
|
|
var delays = shadow.animate._animate_delays(adef);
|
|
return clojure.string.join.cljs$core$IFn$_invoke$arity$2(", ",cljs.core.map.cljs$core$IFn$_invoke$arity$2((function (p__19883){
|
|
var vec__19884 = p__19883;
|
|
var attr = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__19884,(0),null);
|
|
var timing = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__19884,(1),null);
|
|
return [cljs.core.name(attr)," ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(duration),"ms"," ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(timing),(function (){var delay = cljs.core.get.cljs$core$IFn$_invoke$arity$2(delays,attr);
|
|
if(cljs.core.truth_((function (){var and__5000__auto__ = delay;
|
|
if(cljs.core.truth_(and__5000__auto__)){
|
|
return (delay > (0));
|
|
} else {
|
|
return and__5000__auto__;
|
|
}
|
|
})())){
|
|
return [" ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(delay),"ms"].join('');
|
|
} else {
|
|
return null;
|
|
}
|
|
})()].join('');
|
|
}),timings));
|
|
});
|
|
|
|
/**
|
|
* @interface
|
|
*/
|
|
shadow.animate.IAnimator = function(){};
|
|
|
|
var shadow$animate$IAnimator$get_duration$dyn_20416 = (function (animator){
|
|
var x__5350__auto__ = (((animator == null))?null:animator);
|
|
var m__5351__auto__ = (shadow.animate.get_duration[goog.typeOf(x__5350__auto__)]);
|
|
if((!((m__5351__auto__ == null)))){
|
|
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(animator) : m__5351__auto__.call(null,animator));
|
|
} else {
|
|
var m__5349__auto__ = (shadow.animate.get_duration["_"]);
|
|
if((!((m__5349__auto__ == null)))){
|
|
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(animator) : m__5349__auto__.call(null,animator));
|
|
} else {
|
|
throw cljs.core.missing_protocol("IAnimator.get-duration",animator);
|
|
}
|
|
}
|
|
});
|
|
shadow.animate.get_duration = (function shadow$animate$get_duration(animator){
|
|
if((((!((animator == null)))) && ((!((animator.shadow$animate$IAnimator$get_duration$arity$1 == null)))))){
|
|
return animator.shadow$animate$IAnimator$get_duration$arity$1(animator);
|
|
} else {
|
|
return shadow$animate$IAnimator$get_duration$dyn_20416(animator);
|
|
}
|
|
});
|
|
|
|
var shadow$animate$IAnimator$init_BANG_$dyn_20417 = (function (animator){
|
|
var x__5350__auto__ = (((animator == null))?null:animator);
|
|
var m__5351__auto__ = (shadow.animate.init_BANG_[goog.typeOf(x__5350__auto__)]);
|
|
if((!((m__5351__auto__ == null)))){
|
|
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(animator) : m__5351__auto__.call(null,animator));
|
|
} else {
|
|
var m__5349__auto__ = (shadow.animate.init_BANG_["_"]);
|
|
if((!((m__5349__auto__ == null)))){
|
|
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(animator) : m__5349__auto__.call(null,animator));
|
|
} else {
|
|
throw cljs.core.missing_protocol("IAnimator.init!",animator);
|
|
}
|
|
}
|
|
});
|
|
/**
|
|
* apply the initial values
|
|
*/
|
|
shadow.animate.init_BANG_ = (function shadow$animate$init_BANG_(animator){
|
|
if((((!((animator == null)))) && ((!((animator.shadow$animate$IAnimator$init_BANG_$arity$1 == null)))))){
|
|
return animator.shadow$animate$IAnimator$init_BANG_$arity$1(animator);
|
|
} else {
|
|
return shadow$animate$IAnimator$init_BANG_$dyn_20417(animator);
|
|
}
|
|
});
|
|
|
|
var shadow$animate$IAnimator$start_BANG_$dyn_20426 = (function (animator){
|
|
var x__5350__auto__ = (((animator == null))?null:animator);
|
|
var m__5351__auto__ = (shadow.animate.start_BANG_[goog.typeOf(x__5350__auto__)]);
|
|
if((!((m__5351__auto__ == null)))){
|
|
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(animator) : m__5351__auto__.call(null,animator));
|
|
} else {
|
|
var m__5349__auto__ = (shadow.animate.start_BANG_["_"]);
|
|
if((!((m__5349__auto__ == null)))){
|
|
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(animator) : m__5349__auto__.call(null,animator));
|
|
} else {
|
|
throw cljs.core.missing_protocol("IAnimator.start!",animator);
|
|
}
|
|
}
|
|
});
|
|
/**
|
|
* start the animation, must return a channel that closes once the animation is done
|
|
*/
|
|
shadow.animate.start_BANG_ = (function shadow$animate$start_BANG_(animator){
|
|
if((((!((animator == null)))) && ((!((animator.shadow$animate$IAnimator$start_BANG_$arity$1 == null)))))){
|
|
return animator.shadow$animate$IAnimator$start_BANG_$arity$1(animator);
|
|
} else {
|
|
return shadow$animate$IAnimator$start_BANG_$dyn_20426(animator);
|
|
}
|
|
});
|
|
|
|
var shadow$animate$IAnimator$finish_BANG_$dyn_20427 = (function (animator){
|
|
var x__5350__auto__ = (((animator == null))?null:animator);
|
|
var m__5351__auto__ = (shadow.animate.finish_BANG_[goog.typeOf(x__5350__auto__)]);
|
|
if((!((m__5351__auto__ == null)))){
|
|
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(animator) : m__5351__auto__.call(null,animator));
|
|
} else {
|
|
var m__5349__auto__ = (shadow.animate.finish_BANG_["_"]);
|
|
if((!((m__5349__auto__ == null)))){
|
|
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(animator) : m__5349__auto__.call(null,animator));
|
|
} else {
|
|
throw cljs.core.missing_protocol("IAnimator.finish!",animator);
|
|
}
|
|
}
|
|
});
|
|
/**
|
|
* cleanup
|
|
*/
|
|
shadow.animate.finish_BANG_ = (function shadow$animate$finish_BANG_(animator){
|
|
if((((!((animator == null)))) && ((!((animator.shadow$animate$IAnimator$finish_BANG_$arity$1 == null)))))){
|
|
return animator.shadow$animate$IAnimator$finish_BANG_$arity$1(animator);
|
|
} else {
|
|
return shadow$animate$IAnimator$finish_BANG_$dyn_20427(animator);
|
|
}
|
|
});
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {shadow.animate.IAnimator}
|
|
*/
|
|
shadow.animate.Animator = (function (duration,items){
|
|
this.duration = duration;
|
|
this.items = items;
|
|
});
|
|
(shadow.animate.Animator.prototype.shadow$animate$IAnimator$ = cljs.core.PROTOCOL_SENTINEL);
|
|
|
|
(shadow.animate.Animator.prototype.shadow$animate$IAnimator$get_duration$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.duration;
|
|
}));
|
|
|
|
(shadow.animate.Animator.prototype.shadow$animate$IAnimator$init_BANG_$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
var n__5593__auto__ = self__.items.length;
|
|
var i__11641__auto__ = (0);
|
|
while(true){
|
|
if((i__11641__auto__ < n__5593__auto__)){
|
|
var map__20076_20429 = (self__.items[i__11641__auto__]);
|
|
var map__20076_20430__$1 = cljs.core.__destructure_map(map__20076_20429);
|
|
var el_20431 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20076_20430__$1,new cljs.core.Keyword(null,"el","el",-1618201118));
|
|
var from_20432 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20076_20430__$1,new cljs.core.Keyword(null,"from","from",1815293044));
|
|
goog.style.setStyle(el_20431,from_20432);
|
|
|
|
var G__20433 = (i__11641__auto__ + (1));
|
|
i__11641__auto__ = G__20433;
|
|
continue;
|
|
} else {
|
|
return null;
|
|
}
|
|
break;
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.Animator.prototype.shadow$animate$IAnimator$start_BANG_$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
var n__5593__auto__ = self__.items.length;
|
|
var i__11641__auto__ = (0);
|
|
while(true){
|
|
if((i__11641__auto__ < n__5593__auto__)){
|
|
var map__20079_20434 = (self__.items[i__11641__auto__]);
|
|
var map__20079_20435__$1 = cljs.core.__destructure_map(map__20079_20434);
|
|
var el_20436 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20079_20435__$1,new cljs.core.Keyword(null,"el","el",-1618201118));
|
|
var to_20437 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20079_20435__$1,new cljs.core.Keyword(null,"to","to",192099007));
|
|
var transition_20438 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20079_20435__$1,new cljs.core.Keyword(null,"transition","transition",765692007));
|
|
(to_20437["transition"] = transition_20438);
|
|
|
|
goog.style.setStyle(el_20436,to_20437);
|
|
|
|
var G__20441 = (i__11641__auto__ + (1));
|
|
i__11641__auto__ = G__20441;
|
|
continue;
|
|
} else {
|
|
return null;
|
|
}
|
|
break;
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.Animator.prototype.shadow$animate$IAnimator$finish_BANG_$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
var n__5593__auto__ = self__.items.length;
|
|
var i__11641__auto__ = (0);
|
|
while(true){
|
|
if((i__11641__auto__ < n__5593__auto__)){
|
|
var map__20080_20444 = (self__.items[i__11641__auto__]);
|
|
var map__20080_20445__$1 = cljs.core.__destructure_map(map__20080_20444);
|
|
var el_20446 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20080_20445__$1,new cljs.core.Keyword(null,"el","el",-1618201118));
|
|
var toggles_20447 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20080_20445__$1,new cljs.core.Keyword(null,"toggles","toggles",1077909479));
|
|
(toggles_20447["transition"] = null);
|
|
|
|
goog.style.setStyle(el_20446,toggles_20447);
|
|
|
|
var G__20448 = (i__11641__auto__ + (1));
|
|
i__11641__auto__ = G__20448;
|
|
continue;
|
|
} else {
|
|
return null;
|
|
}
|
|
break;
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.Animator.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"duration","duration",-1210334701,null),new cljs.core.Symbol(null,"items","items",-1622480831,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.Animator.cljs$lang$type = true);
|
|
|
|
(shadow.animate.Animator.cljs$lang$ctorStr = "shadow.animate/Animator");
|
|
|
|
(shadow.animate.Animator.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
|
|
return cljs.core._write(writer__5288__auto__,"shadow.animate/Animator");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/Animator.
|
|
*/
|
|
shadow.animate.__GT_Animator = (function shadow$animate$__GT_Animator(duration,items){
|
|
return (new shadow.animate.Animator(duration,items));
|
|
});
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {cljs.core.IRecord}
|
|
* @implements {cljs.core.IKVReduce}
|
|
* @implements {cljs.core.IEquiv}
|
|
* @implements {cljs.core.IHash}
|
|
* @implements {cljs.core.ICollection}
|
|
* @implements {cljs.core.ICounted}
|
|
* @implements {cljs.core.ISeqable}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.ICloneable}
|
|
* @implements {cljs.core.IPrintWithWriter}
|
|
* @implements {cljs.core.IIterable}
|
|
* @implements {cljs.core.IWithMeta}
|
|
* @implements {cljs.core.IAssociative}
|
|
* @implements {cljs.core.IMap}
|
|
* @implements {cljs.core.ILookup}
|
|
*/
|
|
shadow.animate.AnimationStep = (function (el,from,to,toggles,transition,__meta,__extmap,__hash){
|
|
this.el = el;
|
|
this.from = from;
|
|
this.to = to;
|
|
this.toggles = toggles;
|
|
this.transition = transition;
|
|
this.__meta = __meta;
|
|
this.__extmap = __extmap;
|
|
this.__hash = __hash;
|
|
this.cljs$lang$protocol_mask$partition0$ = 2230716170;
|
|
this.cljs$lang$protocol_mask$partition1$ = 139264;
|
|
});
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$ILookup$_lookup$arity$2 = (function (this__5300__auto__,k__5301__auto__){
|
|
var self__ = this;
|
|
var this__5300__auto____$1 = this;
|
|
return this__5300__auto____$1.cljs$core$ILookup$_lookup$arity$3(null,k__5301__auto__,null);
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$ILookup$_lookup$arity$3 = (function (this__5302__auto__,k20083,else__5303__auto__){
|
|
var self__ = this;
|
|
var this__5302__auto____$1 = this;
|
|
var G__20091 = k20083;
|
|
var G__20091__$1 = (((G__20091 instanceof cljs.core.Keyword))?G__20091.fqn:null);
|
|
switch (G__20091__$1) {
|
|
case "el":
|
|
return self__.el;
|
|
|
|
break;
|
|
case "from":
|
|
return self__.from;
|
|
|
|
break;
|
|
case "to":
|
|
return self__.to;
|
|
|
|
break;
|
|
case "toggles":
|
|
return self__.toggles;
|
|
|
|
break;
|
|
case "transition":
|
|
return self__.transition;
|
|
|
|
break;
|
|
default:
|
|
return cljs.core.get.cljs$core$IFn$_invoke$arity$3(self__.__extmap,k20083,else__5303__auto__);
|
|
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IKVReduce$_kv_reduce$arity$3 = (function (this__5320__auto__,f__5321__auto__,init__5322__auto__){
|
|
var self__ = this;
|
|
var this__5320__auto____$1 = this;
|
|
return cljs.core.reduce.cljs$core$IFn$_invoke$arity$3((function (ret__5323__auto__,p__20093){
|
|
var vec__20094 = p__20093;
|
|
var k__5324__auto__ = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__20094,(0),null);
|
|
var v__5325__auto__ = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__20094,(1),null);
|
|
return (f__5321__auto__.cljs$core$IFn$_invoke$arity$3 ? f__5321__auto__.cljs$core$IFn$_invoke$arity$3(ret__5323__auto__,k__5324__auto__,v__5325__auto__) : f__5321__auto__.call(null,ret__5323__auto__,k__5324__auto__,v__5325__auto__));
|
|
}),init__5322__auto__,this__5320__auto____$1);
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IPrintWithWriter$_pr_writer$arity$3 = (function (this__5315__auto__,writer__5316__auto__,opts__5317__auto__){
|
|
var self__ = this;
|
|
var this__5315__auto____$1 = this;
|
|
var pr_pair__5318__auto__ = (function (keyval__5319__auto__){
|
|
return cljs.core.pr_sequential_writer(writer__5316__auto__,cljs.core.pr_writer,""," ","",opts__5317__auto__,keyval__5319__auto__);
|
|
});
|
|
return cljs.core.pr_sequential_writer(writer__5316__auto__,pr_pair__5318__auto__,"#shadow.animate.AnimationStep{",", ","}",opts__5317__auto__,cljs.core.concat.cljs$core$IFn$_invoke$arity$2(new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"el","el",-1618201118),self__.el],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"from","from",1815293044),self__.from],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"to","to",192099007),self__.to],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"toggles","toggles",1077909479),self__.toggles],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"transition","transition",765692007),self__.transition],null))], null),self__.__extmap));
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IIterable$_iterator$arity$1 = (function (G__20082){
|
|
var self__ = this;
|
|
var G__20082__$1 = this;
|
|
return (new cljs.core.RecordIter((0),G__20082__$1,5,new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"el","el",-1618201118),new cljs.core.Keyword(null,"from","from",1815293044),new cljs.core.Keyword(null,"to","to",192099007),new cljs.core.Keyword(null,"toggles","toggles",1077909479),new cljs.core.Keyword(null,"transition","transition",765692007)], null),(cljs.core.truth_(self__.__extmap)?cljs.core._iterator(self__.__extmap):cljs.core.nil_iter())));
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IMeta$_meta$arity$1 = (function (this__5298__auto__){
|
|
var self__ = this;
|
|
var this__5298__auto____$1 = this;
|
|
return self__.__meta;
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$ICloneable$_clone$arity$1 = (function (this__5295__auto__){
|
|
var self__ = this;
|
|
var this__5295__auto____$1 = this;
|
|
return (new shadow.animate.AnimationStep(self__.el,self__.from,self__.to,self__.toggles,self__.transition,self__.__meta,self__.__extmap,self__.__hash));
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$ICounted$_count$arity$1 = (function (this__5304__auto__){
|
|
var self__ = this;
|
|
var this__5304__auto____$1 = this;
|
|
return (5 + cljs.core.count(self__.__extmap));
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IHash$_hash$arity$1 = (function (this__5296__auto__){
|
|
var self__ = this;
|
|
var this__5296__auto____$1 = this;
|
|
var h__5111__auto__ = self__.__hash;
|
|
if((!((h__5111__auto__ == null)))){
|
|
return h__5111__auto__;
|
|
} else {
|
|
var h__5111__auto____$1 = (function (coll__5297__auto__){
|
|
return (630436239 ^ cljs.core.hash_unordered_coll(coll__5297__auto__));
|
|
})(this__5296__auto____$1);
|
|
(self__.__hash = h__5111__auto____$1);
|
|
|
|
return h__5111__auto____$1;
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IEquiv$_equiv$arity$2 = (function (this20084,other20085){
|
|
var self__ = this;
|
|
var this20084__$1 = this;
|
|
return (((!((other20085 == null)))) && ((((this20084__$1.constructor === other20085.constructor)) && (((cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this20084__$1.el,other20085.el)) && (((cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this20084__$1.from,other20085.from)) && (((cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this20084__$1.to,other20085.to)) && (((cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this20084__$1.toggles,other20085.toggles)) && (((cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this20084__$1.transition,other20085.transition)) && (cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this20084__$1.__extmap,other20085.__extmap)))))))))))))));
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IMap$_dissoc$arity$2 = (function (this__5310__auto__,k__5311__auto__){
|
|
var self__ = this;
|
|
var this__5310__auto____$1 = this;
|
|
if(cljs.core.contains_QMARK_(new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"el","el",-1618201118),null,new cljs.core.Keyword(null,"transition","transition",765692007),null,new cljs.core.Keyword(null,"toggles","toggles",1077909479),null,new cljs.core.Keyword(null,"from","from",1815293044),null,new cljs.core.Keyword(null,"to","to",192099007),null], null), null),k__5311__auto__)){
|
|
return cljs.core.dissoc.cljs$core$IFn$_invoke$arity$2(cljs.core._with_meta(cljs.core.into.cljs$core$IFn$_invoke$arity$2(cljs.core.PersistentArrayMap.EMPTY,this__5310__auto____$1),self__.__meta),k__5311__auto__);
|
|
} else {
|
|
return (new shadow.animate.AnimationStep(self__.el,self__.from,self__.to,self__.toggles,self__.transition,self__.__meta,cljs.core.not_empty(cljs.core.dissoc.cljs$core$IFn$_invoke$arity$2(self__.__extmap,k__5311__auto__)),null));
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IAssociative$_contains_key_QMARK_$arity$2 = (function (this__5307__auto__,k20083){
|
|
var self__ = this;
|
|
var this__5307__auto____$1 = this;
|
|
var G__20111 = k20083;
|
|
var G__20111__$1 = (((G__20111 instanceof cljs.core.Keyword))?G__20111.fqn:null);
|
|
switch (G__20111__$1) {
|
|
case "el":
|
|
case "from":
|
|
case "to":
|
|
case "toggles":
|
|
case "transition":
|
|
return true;
|
|
|
|
break;
|
|
default:
|
|
return cljs.core.contains_QMARK_(self__.__extmap,k20083);
|
|
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IAssociative$_assoc$arity$3 = (function (this__5308__auto__,k__5309__auto__,G__20082){
|
|
var self__ = this;
|
|
var this__5308__auto____$1 = this;
|
|
var pred__20112 = cljs.core.keyword_identical_QMARK_;
|
|
var expr__20113 = k__5309__auto__;
|
|
if(cljs.core.truth_((pred__20112.cljs$core$IFn$_invoke$arity$2 ? pred__20112.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null,"el","el",-1618201118),expr__20113) : pred__20112.call(null,new cljs.core.Keyword(null,"el","el",-1618201118),expr__20113)))){
|
|
return (new shadow.animate.AnimationStep(G__20082,self__.from,self__.to,self__.toggles,self__.transition,self__.__meta,self__.__extmap,null));
|
|
} else {
|
|
if(cljs.core.truth_((pred__20112.cljs$core$IFn$_invoke$arity$2 ? pred__20112.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null,"from","from",1815293044),expr__20113) : pred__20112.call(null,new cljs.core.Keyword(null,"from","from",1815293044),expr__20113)))){
|
|
return (new shadow.animate.AnimationStep(self__.el,G__20082,self__.to,self__.toggles,self__.transition,self__.__meta,self__.__extmap,null));
|
|
} else {
|
|
if(cljs.core.truth_((pred__20112.cljs$core$IFn$_invoke$arity$2 ? pred__20112.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null,"to","to",192099007),expr__20113) : pred__20112.call(null,new cljs.core.Keyword(null,"to","to",192099007),expr__20113)))){
|
|
return (new shadow.animate.AnimationStep(self__.el,self__.from,G__20082,self__.toggles,self__.transition,self__.__meta,self__.__extmap,null));
|
|
} else {
|
|
if(cljs.core.truth_((pred__20112.cljs$core$IFn$_invoke$arity$2 ? pred__20112.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null,"toggles","toggles",1077909479),expr__20113) : pred__20112.call(null,new cljs.core.Keyword(null,"toggles","toggles",1077909479),expr__20113)))){
|
|
return (new shadow.animate.AnimationStep(self__.el,self__.from,self__.to,G__20082,self__.transition,self__.__meta,self__.__extmap,null));
|
|
} else {
|
|
if(cljs.core.truth_((pred__20112.cljs$core$IFn$_invoke$arity$2 ? pred__20112.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null,"transition","transition",765692007),expr__20113) : pred__20112.call(null,new cljs.core.Keyword(null,"transition","transition",765692007),expr__20113)))){
|
|
return (new shadow.animate.AnimationStep(self__.el,self__.from,self__.to,self__.toggles,G__20082,self__.__meta,self__.__extmap,null));
|
|
} else {
|
|
return (new shadow.animate.AnimationStep(self__.el,self__.from,self__.to,self__.toggles,self__.transition,self__.__meta,cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(self__.__extmap,k__5309__auto__,G__20082),null));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$ISeqable$_seq$arity$1 = (function (this__5313__auto__){
|
|
var self__ = this;
|
|
var this__5313__auto____$1 = this;
|
|
return cljs.core.seq(cljs.core.concat.cljs$core$IFn$_invoke$arity$2(new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.MapEntry(new cljs.core.Keyword(null,"el","el",-1618201118),self__.el,null)),(new cljs.core.MapEntry(new cljs.core.Keyword(null,"from","from",1815293044),self__.from,null)),(new cljs.core.MapEntry(new cljs.core.Keyword(null,"to","to",192099007),self__.to,null)),(new cljs.core.MapEntry(new cljs.core.Keyword(null,"toggles","toggles",1077909479),self__.toggles,null)),(new cljs.core.MapEntry(new cljs.core.Keyword(null,"transition","transition",765692007),self__.transition,null))], null),self__.__extmap));
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (this__5299__auto__,G__20082){
|
|
var self__ = this;
|
|
var this__5299__auto____$1 = this;
|
|
return (new shadow.animate.AnimationStep(self__.el,self__.from,self__.to,self__.toggles,self__.transition,G__20082,self__.__extmap,self__.__hash));
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.prototype.cljs$core$ICollection$_conj$arity$2 = (function (this__5305__auto__,entry__5306__auto__){
|
|
var self__ = this;
|
|
var this__5305__auto____$1 = this;
|
|
if(cljs.core.vector_QMARK_(entry__5306__auto__)){
|
|
return this__5305__auto____$1.cljs$core$IAssociative$_assoc$arity$3(null,cljs.core._nth(entry__5306__auto__,(0)),cljs.core._nth(entry__5306__auto__,(1)));
|
|
} else {
|
|
return cljs.core.reduce.cljs$core$IFn$_invoke$arity$3(cljs.core._conj,this__5305__auto____$1,entry__5306__auto__);
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"el","el",22330409,null),new cljs.core.Symbol(null,"from","from",-839142725,null),new cljs.core.Symbol(null,"to","to",1832630534,null),new cljs.core.Symbol(null,"toggles","toggles",-1576526290,null),new cljs.core.Symbol(null,"transition","transition",-1888743762,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.cljs$lang$type = true);
|
|
|
|
(shadow.animate.AnimationStep.cljs$lang$ctorPrSeq = (function (this__5346__auto__){
|
|
return (new cljs.core.List(null,"shadow.animate/AnimationStep",null,(1),null));
|
|
}));
|
|
|
|
(shadow.animate.AnimationStep.cljs$lang$ctorPrWriter = (function (this__5346__auto__,writer__5347__auto__){
|
|
return cljs.core._write(writer__5347__auto__,"shadow.animate/AnimationStep");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/AnimationStep.
|
|
*/
|
|
shadow.animate.__GT_AnimationStep = (function shadow$animate$__GT_AnimationStep(el,from,to,toggles,transition){
|
|
return (new shadow.animate.AnimationStep(el,from,to,toggles,transition,null,null,null));
|
|
});
|
|
|
|
/**
|
|
* Factory function for shadow.animate/AnimationStep, taking a map of keywords to field values.
|
|
*/
|
|
shadow.animate.map__GT_AnimationStep = (function shadow$animate$map__GT_AnimationStep(G__20090){
|
|
var extmap__5342__auto__ = (function (){var G__20121 = cljs.core.dissoc.cljs$core$IFn$_invoke$arity$variadic(G__20090,new cljs.core.Keyword(null,"el","el",-1618201118),cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([new cljs.core.Keyword(null,"from","from",1815293044),new cljs.core.Keyword(null,"to","to",192099007),new cljs.core.Keyword(null,"toggles","toggles",1077909479),new cljs.core.Keyword(null,"transition","transition",765692007)], 0));
|
|
if(cljs.core.record_QMARK_(G__20090)){
|
|
return cljs.core.into.cljs$core$IFn$_invoke$arity$2(cljs.core.PersistentArrayMap.EMPTY,G__20121);
|
|
} else {
|
|
return G__20121;
|
|
}
|
|
})();
|
|
return (new shadow.animate.AnimationStep(new cljs.core.Keyword(null,"el","el",-1618201118).cljs$core$IFn$_invoke$arity$1(G__20090),new cljs.core.Keyword(null,"from","from",1815293044).cljs$core$IFn$_invoke$arity$1(G__20090),new cljs.core.Keyword(null,"to","to",192099007).cljs$core$IFn$_invoke$arity$1(G__20090),new cljs.core.Keyword(null,"toggles","toggles",1077909479).cljs$core$IFn$_invoke$arity$1(G__20090),new cljs.core.Keyword(null,"transition","transition",765692007).cljs$core$IFn$_invoke$arity$1(G__20090),null,cljs.core.not_empty(extmap__5342__auto__),null));
|
|
});
|
|
|
|
shadow.animate.setup = (function shadow$animate$setup(duration,elements){
|
|
var items = cljs.core.into_array.cljs$core$IFn$_invoke$arity$1((function (){var iter__5480__auto__ = (function shadow$animate$setup_$_iter__20124(s__20125){
|
|
return (new cljs.core.LazySeq(null,(function (){
|
|
var s__20125__$1 = s__20125;
|
|
while(true){
|
|
var temp__5804__auto__ = cljs.core.seq(s__20125__$1);
|
|
if(temp__5804__auto__){
|
|
var s__20125__$2 = temp__5804__auto__;
|
|
if(cljs.core.chunked_seq_QMARK_(s__20125__$2)){
|
|
var c__5478__auto__ = cljs.core.chunk_first(s__20125__$2);
|
|
var size__5479__auto__ = cljs.core.count(c__5478__auto__);
|
|
var b__20127 = cljs.core.chunk_buffer(size__5479__auto__);
|
|
if((function (){var i__20126 = (0);
|
|
while(true){
|
|
if((i__20126 < size__5479__auto__)){
|
|
var vec__20136 = cljs.core._nth(c__5478__auto__,i__20126);
|
|
var el = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__20136,(0),null);
|
|
var adef = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__20136,(1),null);
|
|
cljs.core.chunk_append(b__20127,(function (){
|
|
if((((!((adef == null))))?((((false) || ((cljs.core.PROTOCOL_SENTINEL === adef.shadow$animate$Animation$))))?true:(((!adef.cljs$lang$protocol_mask$partition$))?cljs.core.native_satisfies_QMARK_(shadow.animate.Animation,adef):false)):cljs.core.native_satisfies_QMARK_(shadow.animate.Animation,adef))){
|
|
} else {
|
|
throw cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2("invalid animation",new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"el","el",-1618201118),el,new cljs.core.Keyword(null,"animation","animation",-1248293244),adef], null));
|
|
}
|
|
|
|
var from = shadow.animate._animate_from(adef);
|
|
var to = shadow.animate._animate_to(adef);
|
|
var toggles = shadow.animate._animate_toggles(adef);
|
|
return (new shadow.animate.AnimationStep(shadow.dom.dom_node(el),cljs.core.clj__GT_js(from),cljs.core.clj__GT_js(to),cljs.core.clj__GT_js(toggles),shadow.animate.transition_string(duration,adef),null,null,null));
|
|
})()
|
|
);
|
|
|
|
var G__20462 = (i__20126 + (1));
|
|
i__20126 = G__20462;
|
|
continue;
|
|
} else {
|
|
return true;
|
|
}
|
|
break;
|
|
}
|
|
})()){
|
|
return cljs.core.chunk_cons(cljs.core.chunk(b__20127),shadow$animate$setup_$_iter__20124(cljs.core.chunk_rest(s__20125__$2)));
|
|
} else {
|
|
return cljs.core.chunk_cons(cljs.core.chunk(b__20127),null);
|
|
}
|
|
} else {
|
|
var vec__20144 = cljs.core.first(s__20125__$2);
|
|
var el = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__20144,(0),null);
|
|
var adef = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__20144,(1),null);
|
|
return cljs.core.cons((function (){
|
|
if((((!((adef == null))))?((((false) || ((cljs.core.PROTOCOL_SENTINEL === adef.shadow$animate$Animation$))))?true:(((!adef.cljs$lang$protocol_mask$partition$))?cljs.core.native_satisfies_QMARK_(shadow.animate.Animation,adef):false)):cljs.core.native_satisfies_QMARK_(shadow.animate.Animation,adef))){
|
|
} else {
|
|
throw cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2("invalid animation",new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"el","el",-1618201118),el,new cljs.core.Keyword(null,"animation","animation",-1248293244),adef], null));
|
|
}
|
|
|
|
var from = shadow.animate._animate_from(adef);
|
|
var to = shadow.animate._animate_to(adef);
|
|
var toggles = shadow.animate._animate_toggles(adef);
|
|
return (new shadow.animate.AnimationStep(shadow.dom.dom_node(el),cljs.core.clj__GT_js(from),cljs.core.clj__GT_js(to),cljs.core.clj__GT_js(toggles),shadow.animate.transition_string(duration,adef),null,null,null));
|
|
})()
|
|
,shadow$animate$setup_$_iter__20124(cljs.core.rest(s__20125__$2)));
|
|
}
|
|
} else {
|
|
return null;
|
|
}
|
|
break;
|
|
}
|
|
}),null,null));
|
|
});
|
|
return iter__5480__auto__(elements);
|
|
})());
|
|
return (new shadow.animate.Animator(duration,items));
|
|
});
|
|
shadow.animate.continue_BANG_ = (function shadow$animate$continue_BANG_(animator){
|
|
shadow.animate.start_BANG_(animator);
|
|
|
|
var c__15554__auto__ = cljs.core.async.chan.cljs$core$IFn$_invoke$arity$1((1));
|
|
cljs.core.async.impl.dispatch.run((function (){
|
|
var f__15556__auto__ = (function (){var switch__14455__auto__ = (function (state_20163){
|
|
var state_val_20164 = (state_20163[(1)]);
|
|
if((state_val_20164 === (1))){
|
|
var inst_20154 = shadow.animate.get_duration(animator);
|
|
var inst_20155 = cljs.core.async.timeout(inst_20154);
|
|
var state_20163__$1 = state_20163;
|
|
return cljs.core.async.impl.ioc_helpers.take_BANG_(state_20163__$1,(2),inst_20155);
|
|
} else {
|
|
if((state_val_20164 === (2))){
|
|
var inst_20157 = (state_20163[(2)]);
|
|
var inst_20160 = shadow.animate.finish_BANG_(animator);
|
|
var state_20163__$1 = (function (){var statearr_20165 = state_20163;
|
|
(statearr_20165[(7)] = inst_20157);
|
|
|
|
(statearr_20165[(8)] = inst_20160);
|
|
|
|
return statearr_20165;
|
|
})();
|
|
return cljs.core.async.impl.ioc_helpers.return_chan(state_20163__$1,new cljs.core.Keyword(null,"done","done",-889844188));
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
});
|
|
return (function() {
|
|
var shadow$animate$continue_BANG__$_state_machine__14456__auto__ = null;
|
|
var shadow$animate$continue_BANG__$_state_machine__14456__auto____0 = (function (){
|
|
var statearr_20166 = [null,null,null,null,null,null,null,null,null];
|
|
(statearr_20166[(0)] = shadow$animate$continue_BANG__$_state_machine__14456__auto__);
|
|
|
|
(statearr_20166[(1)] = (1));
|
|
|
|
return statearr_20166;
|
|
});
|
|
var shadow$animate$continue_BANG__$_state_machine__14456__auto____1 = (function (state_20163){
|
|
while(true){
|
|
var ret_value__14457__auto__ = (function (){try{while(true){
|
|
var result__14458__auto__ = switch__14455__auto__(state_20163);
|
|
if(cljs.core.keyword_identical_QMARK_(result__14458__auto__,new cljs.core.Keyword(null,"recur","recur",-437573268))){
|
|
continue;
|
|
} else {
|
|
return result__14458__auto__;
|
|
}
|
|
break;
|
|
}
|
|
}catch (e20167){var ex__14459__auto__ = e20167;
|
|
var statearr_20168_20466 = state_20163;
|
|
(statearr_20168_20466[(2)] = ex__14459__auto__);
|
|
|
|
|
|
if(cljs.core.seq((state_20163[(4)]))){
|
|
var statearr_20169_20467 = state_20163;
|
|
(statearr_20169_20467[(1)] = cljs.core.first((state_20163[(4)])));
|
|
|
|
} else {
|
|
throw ex__14459__auto__;
|
|
}
|
|
|
|
return new cljs.core.Keyword(null,"recur","recur",-437573268);
|
|
}})();
|
|
if(cljs.core.keyword_identical_QMARK_(ret_value__14457__auto__,new cljs.core.Keyword(null,"recur","recur",-437573268))){
|
|
var G__20468 = state_20163;
|
|
state_20163 = G__20468;
|
|
continue;
|
|
} else {
|
|
return ret_value__14457__auto__;
|
|
}
|
|
break;
|
|
}
|
|
});
|
|
shadow$animate$continue_BANG__$_state_machine__14456__auto__ = function(state_20163){
|
|
switch(arguments.length){
|
|
case 0:
|
|
return shadow$animate$continue_BANG__$_state_machine__14456__auto____0.call(this);
|
|
case 1:
|
|
return shadow$animate$continue_BANG__$_state_machine__14456__auto____1.call(this,state_20163);
|
|
}
|
|
throw(new Error('Invalid arity: ' + arguments.length));
|
|
};
|
|
shadow$animate$continue_BANG__$_state_machine__14456__auto__.cljs$core$IFn$_invoke$arity$0 = shadow$animate$continue_BANG__$_state_machine__14456__auto____0;
|
|
shadow$animate$continue_BANG__$_state_machine__14456__auto__.cljs$core$IFn$_invoke$arity$1 = shadow$animate$continue_BANG__$_state_machine__14456__auto____1;
|
|
return shadow$animate$continue_BANG__$_state_machine__14456__auto__;
|
|
})()
|
|
})();
|
|
var state__15557__auto__ = (function (){var statearr_20170 = f__15556__auto__();
|
|
(statearr_20170[(6)] = c__15554__auto__);
|
|
|
|
return statearr_20170;
|
|
})();
|
|
return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped(state__15557__auto__);
|
|
}));
|
|
|
|
return c__15554__auto__;
|
|
});
|
|
shadow.animate.start = (function shadow$animate$start(duration,elements){
|
|
var animator = shadow.animate.setup(duration,elements);
|
|
animator.shadow$animate$IAnimator$init_BANG_$arity$1(null);
|
|
|
|
return shadow.animate.continue_BANG_(animator);
|
|
});
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {shadow.animate.Animation}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.IWithMeta}
|
|
*/
|
|
shadow.animate.t_shadow$animate20184 = (function (attr,from,to,timing,delay,meta20185){
|
|
this.attr = attr;
|
|
this.from = from;
|
|
this.to = to;
|
|
this.timing = timing;
|
|
this.delay = delay;
|
|
this.meta20185 = meta20185;
|
|
this.cljs$lang$protocol_mask$partition0$ = 393216;
|
|
this.cljs$lang$protocol_mask$partition1$ = 0;
|
|
});
|
|
(shadow.animate.t_shadow$animate20184.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_20186,meta20185__$1){
|
|
var self__ = this;
|
|
var _20186__$1 = this;
|
|
return (new shadow.animate.t_shadow$animate20184(self__.attr,self__.from,self__.to,self__.timing,self__.delay,meta20185__$1));
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20184.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_20186){
|
|
var self__ = this;
|
|
var _20186__$1 = this;
|
|
return self__.meta20185;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20184.prototype.shadow$animate$Animation$ = cljs.core.PROTOCOL_SENTINEL);
|
|
|
|
(shadow.animate.t_shadow$animate20184.prototype.shadow$animate$Animation$_animate_from$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([self__.attr,self__.from]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20184.prototype.shadow$animate$Animation$_animate_to$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([self__.attr,self__.to]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20184.prototype.shadow$animate$Animation$_animate_toggles$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20184.prototype.shadow$animate$Animation$_animate_timings$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([self__.attr,self__.timing]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20184.prototype.shadow$animate$Animation$_animate_delays$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([self__.attr,self__.delay]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20184.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"attr","attr",1036399174,null),new cljs.core.Symbol(null,"from","from",-839142725,null),new cljs.core.Symbol(null,"to","to",1832630534,null),new cljs.core.Symbol(null,"timing","timing",-208693668,null),new cljs.core.Symbol(null,"delay","delay",1066306308,null),new cljs.core.Symbol(null,"meta20185","meta20185",-1293399609,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20184.cljs$lang$type = true);
|
|
|
|
(shadow.animate.t_shadow$animate20184.cljs$lang$ctorStr = "shadow.animate/t_shadow$animate20184");
|
|
|
|
(shadow.animate.t_shadow$animate20184.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
|
|
return cljs.core._write(writer__5288__auto__,"shadow.animate/t_shadow$animate20184");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/t_shadow$animate20184.
|
|
*/
|
|
shadow.animate.__GT_t_shadow$animate20184 = (function shadow$animate$__GT_t_shadow$animate20184(attr,from,to,timing,delay,meta20185){
|
|
return (new shadow.animate.t_shadow$animate20184(attr,from,to,timing,delay,meta20185));
|
|
});
|
|
|
|
|
|
/**
|
|
* transition the given attr from -> to using timing function and delay
|
|
* timing defaults to ease, delay to 0
|
|
*/
|
|
shadow.animate.transition = (function shadow$animate$transition(var_args){
|
|
var G__20177 = arguments.length;
|
|
switch (G__20177) {
|
|
case 3:
|
|
return shadow.animate.transition.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)]));
|
|
|
|
break;
|
|
case 4:
|
|
return shadow.animate.transition.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]));
|
|
|
|
break;
|
|
case 5:
|
|
return shadow.animate.transition.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]));
|
|
|
|
break;
|
|
default:
|
|
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
|
|
}
|
|
});
|
|
|
|
(shadow.animate.transition.cljs$core$IFn$_invoke$arity$3 = (function (attr,from,to){
|
|
return shadow.animate.transition.cljs$core$IFn$_invoke$arity$5(attr,from,to,"ease",(0));
|
|
}));
|
|
|
|
(shadow.animate.transition.cljs$core$IFn$_invoke$arity$4 = (function (attr,from,to,timing){
|
|
return shadow.animate.transition.cljs$core$IFn$_invoke$arity$5(attr,from,to,timing,(0));
|
|
}));
|
|
|
|
(shadow.animate.transition.cljs$core$IFn$_invoke$arity$5 = (function (attr,from,to,timing,delay){
|
|
return (new shadow.animate.t_shadow$animate20184(attr,from,to,timing,delay,cljs.core.PersistentArrayMap.EMPTY));
|
|
}));
|
|
|
|
(shadow.animate.transition.cljs$lang$maxFixedArity = 5);
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {shadow.animate.Animation}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.IWithMeta}
|
|
*/
|
|
shadow.animate.t_shadow$animate20201 = (function (attr,from,to,meta20202){
|
|
this.attr = attr;
|
|
this.from = from;
|
|
this.to = to;
|
|
this.meta20202 = meta20202;
|
|
this.cljs$lang$protocol_mask$partition0$ = 393216;
|
|
this.cljs$lang$protocol_mask$partition1$ = 0;
|
|
});
|
|
(shadow.animate.t_shadow$animate20201.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_20203,meta20202__$1){
|
|
var self__ = this;
|
|
var _20203__$1 = this;
|
|
return (new shadow.animate.t_shadow$animate20201(self__.attr,self__.from,self__.to,meta20202__$1));
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20201.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_20203){
|
|
var self__ = this;
|
|
var _20203__$1 = this;
|
|
return self__.meta20202;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20201.prototype.shadow$animate$Animation$ = cljs.core.PROTOCOL_SENTINEL);
|
|
|
|
(shadow.animate.t_shadow$animate20201.prototype.shadow$animate$Animation$_animate_to$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20201.prototype.shadow$animate$Animation$_animate_from$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([self__.attr,self__.from]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20201.prototype.shadow$animate$Animation$_animate_toggles$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([self__.attr,self__.to]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20201.prototype.shadow$animate$Animation$_animate_timings$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20201.prototype.shadow$animate$Animation$_animate_delays$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20201.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"attr","attr",1036399174,null),new cljs.core.Symbol(null,"from","from",-839142725,null),new cljs.core.Symbol(null,"to","to",1832630534,null),new cljs.core.Symbol(null,"meta20202","meta20202",1948739475,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20201.cljs$lang$type = true);
|
|
|
|
(shadow.animate.t_shadow$animate20201.cljs$lang$ctorStr = "shadow.animate/t_shadow$animate20201");
|
|
|
|
(shadow.animate.t_shadow$animate20201.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
|
|
return cljs.core._write(writer__5288__auto__,"shadow.animate/t_shadow$animate20201");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/t_shadow$animate20201.
|
|
*/
|
|
shadow.animate.__GT_t_shadow$animate20201 = (function shadow$animate$__GT_t_shadow$animate20201(attr,from,to,meta20202){
|
|
return (new shadow.animate.t_shadow$animate20201(attr,from,to,meta20202));
|
|
});
|
|
|
|
|
|
shadow.animate.toggle = (function shadow$animate$toggle(attr,from,to){
|
|
return (new shadow.animate.t_shadow$animate20201(attr,from,to,cljs.core.PersistentArrayMap.EMPTY));
|
|
});
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {shadow.animate.Animation}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.IWithMeta}
|
|
*/
|
|
shadow.animate.t_shadow$animate20233 = (function (attrs,meta20234){
|
|
this.attrs = attrs;
|
|
this.meta20234 = meta20234;
|
|
this.cljs$lang$protocol_mask$partition0$ = 393216;
|
|
this.cljs$lang$protocol_mask$partition1$ = 0;
|
|
});
|
|
(shadow.animate.t_shadow$animate20233.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_20235,meta20234__$1){
|
|
var self__ = this;
|
|
var _20235__$1 = this;
|
|
return (new shadow.animate.t_shadow$animate20233(self__.attrs,meta20234__$1));
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20233.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_20235){
|
|
var self__ = this;
|
|
var _20235__$1 = this;
|
|
return self__.meta20234;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20233.prototype.shadow$animate$Animation$ = cljs.core.PROTOCOL_SENTINEL);
|
|
|
|
(shadow.animate.t_shadow$animate20233.prototype.shadow$animate$Animation$_animate_to$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20233.prototype.shadow$animate$Animation$_animate_from$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.attrs;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20233.prototype.shadow$animate$Animation$_animate_toggles$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20233.prototype.shadow$animate$Animation$_animate_timings$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20233.prototype.shadow$animate$Animation$_animate_delays$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20233.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"attrs","attrs",-450137186,null),new cljs.core.Symbol(null,"meta20234","meta20234",-1513520796,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20233.cljs$lang$type = true);
|
|
|
|
(shadow.animate.t_shadow$animate20233.cljs$lang$ctorStr = "shadow.animate/t_shadow$animate20233");
|
|
|
|
(shadow.animate.t_shadow$animate20233.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
|
|
return cljs.core._write(writer__5288__auto__,"shadow.animate/t_shadow$animate20233");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/t_shadow$animate20233.
|
|
*/
|
|
shadow.animate.__GT_t_shadow$animate20233 = (function shadow$animate$__GT_t_shadow$animate20233(attrs,meta20234){
|
|
return (new shadow.animate.t_shadow$animate20233(attrs,meta20234));
|
|
});
|
|
|
|
|
|
/**
|
|
* set attr to value when the animation starts
|
|
*/
|
|
shadow.animate.set_attr = (function shadow$animate$set_attr(var_args){
|
|
var G__20230 = arguments.length;
|
|
switch (G__20230) {
|
|
case 1:
|
|
return shadow.animate.set_attr.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
|
|
break;
|
|
case 2:
|
|
return shadow.animate.set_attr.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
|
|
break;
|
|
default:
|
|
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
|
|
}
|
|
});
|
|
|
|
(shadow.animate.set_attr.cljs$core$IFn$_invoke$arity$1 = (function (attrs){
|
|
return (new shadow.animate.t_shadow$animate20233(attrs,cljs.core.PersistentArrayMap.EMPTY));
|
|
}));
|
|
|
|
(shadow.animate.set_attr.cljs$core$IFn$_invoke$arity$2 = (function (attr,value){
|
|
return shadow.animate.set_attr.cljs$core$IFn$_invoke$arity$1(cljs.core.PersistentArrayMap.createAsIfByAssoc([attr,value]));
|
|
}));
|
|
|
|
(shadow.animate.set_attr.cljs$lang$maxFixedArity = 2);
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {shadow.animate.Animation}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.IWithMeta}
|
|
*/
|
|
shadow.animate.t_shadow$animate20245 = (function (attr,meta20246){
|
|
this.attr = attr;
|
|
this.meta20246 = meta20246;
|
|
this.cljs$lang$protocol_mask$partition0$ = 393216;
|
|
this.cljs$lang$protocol_mask$partition1$ = 0;
|
|
});
|
|
(shadow.animate.t_shadow$animate20245.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_20247,meta20246__$1){
|
|
var self__ = this;
|
|
var _20247__$1 = this;
|
|
return (new shadow.animate.t_shadow$animate20245(self__.attr,meta20246__$1));
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20245.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_20247){
|
|
var self__ = this;
|
|
var _20247__$1 = this;
|
|
return self__.meta20246;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20245.prototype.shadow$animate$Animation$ = cljs.core.PROTOCOL_SENTINEL);
|
|
|
|
(shadow.animate.t_shadow$animate20245.prototype.shadow$animate$Animation$_animate_to$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20245.prototype.shadow$animate$Animation$_animate_from$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20245.prototype.shadow$animate$Animation$_animate_toggles$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([self__.attr,null]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20245.prototype.shadow$animate$Animation$_animate_timings$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20245.prototype.shadow$animate$Animation$_animate_delays$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20245.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"attr","attr",1036399174,null),new cljs.core.Symbol(null,"meta20246","meta20246",-21463683,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20245.cljs$lang$type = true);
|
|
|
|
(shadow.animate.t_shadow$animate20245.cljs$lang$ctorStr = "shadow.animate/t_shadow$animate20245");
|
|
|
|
(shadow.animate.t_shadow$animate20245.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
|
|
return cljs.core._write(writer__5288__auto__,"shadow.animate/t_shadow$animate20245");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/t_shadow$animate20245.
|
|
*/
|
|
shadow.animate.__GT_t_shadow$animate20245 = (function shadow$animate$__GT_t_shadow$animate20245(attr,meta20246){
|
|
return (new shadow.animate.t_shadow$animate20245(attr,meta20246));
|
|
});
|
|
|
|
|
|
/**
|
|
* use to remove a given attribute style when the animation is finished
|
|
* usually only needed to remove attributes we no longer need since they are probably
|
|
* inherited and we only used for previous transitions
|
|
*/
|
|
shadow.animate.delete_attr = (function shadow$animate$delete_attr(attr){
|
|
return (new shadow.animate.t_shadow$animate20245(attr,cljs.core.PersistentArrayMap.EMPTY));
|
|
});
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {shadow.animate.Animation}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.IWithMeta}
|
|
*/
|
|
shadow.animate.t_shadow$animate20266 = (function (transitions,to,from,toggles,timings,delays,temp__5802__auto__,meta20267){
|
|
this.transitions = transitions;
|
|
this.to = to;
|
|
this.from = from;
|
|
this.toggles = toggles;
|
|
this.timings = timings;
|
|
this.delays = delays;
|
|
this.temp__5802__auto__ = temp__5802__auto__;
|
|
this.meta20267 = meta20267;
|
|
this.cljs$lang$protocol_mask$partition0$ = 393216;
|
|
this.cljs$lang$protocol_mask$partition1$ = 0;
|
|
});
|
|
(shadow.animate.t_shadow$animate20266.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_20268,meta20267__$1){
|
|
var self__ = this;
|
|
var _20268__$1 = this;
|
|
return (new shadow.animate.t_shadow$animate20266(self__.transitions,self__.to,self__.from,self__.toggles,self__.timings,self__.delays,self__.temp__5802__auto__,meta20267__$1));
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20266.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_20268){
|
|
var self__ = this;
|
|
var _20268__$1 = this;
|
|
return self__.meta20267;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20266.prototype.shadow$animate$Animation$ = cljs.core.PROTOCOL_SENTINEL);
|
|
|
|
(shadow.animate.t_shadow$animate20266.prototype.shadow$animate$Animation$_animate_from$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.from;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20266.prototype.shadow$animate$Animation$_animate_to$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.to;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20266.prototype.shadow$animate$Animation$_animate_toggles$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.toggles;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20266.prototype.shadow$animate$Animation$_animate_timings$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.timings;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20266.prototype.shadow$animate$Animation$_animate_delays$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.delays;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20266.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 8, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"transitions","transitions",-405684594,null),new cljs.core.Symbol(null,"to","to",1832630534,null),new cljs.core.Symbol(null,"from","from",-839142725,null),new cljs.core.Symbol(null,"toggles","toggles",-1576526290,null),new cljs.core.Symbol(null,"timings","timings",-569636600,null),new cljs.core.Symbol(null,"delays","delays",-873843187,null),new cljs.core.Symbol(null,"temp__5802__auto__","temp__5802__auto__",-1659442335,null),new cljs.core.Symbol(null,"meta20267","meta20267",-1827536156,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20266.cljs$lang$type = true);
|
|
|
|
(shadow.animate.t_shadow$animate20266.cljs$lang$ctorStr = "shadow.animate/t_shadow$animate20266");
|
|
|
|
(shadow.animate.t_shadow$animate20266.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
|
|
return cljs.core._write(writer__5288__auto__,"shadow.animate/t_shadow$animate20266");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/t_shadow$animate20266.
|
|
*/
|
|
shadow.animate.__GT_t_shadow$animate20266 = (function shadow$animate$__GT_t_shadow$animate20266(transitions,to,from,toggles,timings,delays,temp__5802__auto__,meta20267){
|
|
return (new shadow.animate.t_shadow$animate20266(transitions,to,from,toggles,timings,delays,temp__5802__auto__,meta20267));
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {shadow.animate.Animation}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.IWithMeta}
|
|
*/
|
|
shadow.animate.t_shadow$animate20300 = (function (transitions,to,from,toggles,timings,delays,temp__5802__auto__,meta20301){
|
|
this.transitions = transitions;
|
|
this.to = to;
|
|
this.from = from;
|
|
this.toggles = toggles;
|
|
this.timings = timings;
|
|
this.delays = delays;
|
|
this.temp__5802__auto__ = temp__5802__auto__;
|
|
this.meta20301 = meta20301;
|
|
this.cljs$lang$protocol_mask$partition0$ = 393216;
|
|
this.cljs$lang$protocol_mask$partition1$ = 0;
|
|
});
|
|
(shadow.animate.t_shadow$animate20300.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_20302,meta20301__$1){
|
|
var self__ = this;
|
|
var _20302__$1 = this;
|
|
return (new shadow.animate.t_shadow$animate20300(self__.transitions,self__.to,self__.from,self__.toggles,self__.timings,self__.delays,self__.temp__5802__auto__,meta20301__$1));
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20300.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_20302){
|
|
var self__ = this;
|
|
var _20302__$1 = this;
|
|
return self__.meta20301;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20300.prototype.shadow$animate$Animation$ = cljs.core.PROTOCOL_SENTINEL);
|
|
|
|
(shadow.animate.t_shadow$animate20300.prototype.shadow$animate$Animation$_animate_from$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.from;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20300.prototype.shadow$animate$Animation$_animate_to$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.to;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20300.prototype.shadow$animate$Animation$_animate_toggles$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.toggles;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20300.prototype.shadow$animate$Animation$_animate_timings$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.timings;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20300.prototype.shadow$animate$Animation$_animate_delays$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return self__.delays;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20300.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 8, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"transitions","transitions",-405684594,null),cljs.core.with_meta(new cljs.core.Symbol(null,"to","to",1832630534,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Symbol(null,"any","any",-948528346,null)], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"from","from",-839142725,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Symbol(null,"any","any",-948528346,null)], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"toggles","toggles",-1576526290,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Symbol(null,"any","any",-948528346,null)], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"timings","timings",-569636600,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Symbol(null,"any","any",-948528346,null)], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"delays","delays",-873843187,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Symbol(null,"any","any",-948528346,null)], null)),new cljs.core.Symbol(null,"temp__5802__auto__","temp__5802__auto__",-1659442335,null),new cljs.core.Symbol(null,"meta20301","meta20301",1091246286,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20300.cljs$lang$type = true);
|
|
|
|
(shadow.animate.t_shadow$animate20300.cljs$lang$ctorStr = "shadow.animate/t_shadow$animate20300");
|
|
|
|
(shadow.animate.t_shadow$animate20300.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
|
|
return cljs.core._write(writer__5288__auto__,"shadow.animate/t_shadow$animate20300");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/t_shadow$animate20300.
|
|
*/
|
|
shadow.animate.__GT_t_shadow$animate20300 = (function shadow$animate$__GT_t_shadow$animate20300(transitions,to,from,toggles,timings,delays,temp__5802__auto__,meta20301){
|
|
return (new shadow.animate.t_shadow$animate20300(transitions,to,from,toggles,timings,delays,temp__5802__auto__,meta20301));
|
|
});
|
|
|
|
|
|
shadow.animate.combine = (function shadow$animate$combine(var_args){
|
|
var args__5732__auto__ = [];
|
|
var len__5726__auto___20510 = arguments.length;
|
|
var i__5727__auto___20511 = (0);
|
|
while(true){
|
|
if((i__5727__auto___20511 < len__5726__auto___20510)){
|
|
args__5732__auto__.push((arguments[i__5727__auto___20511]));
|
|
|
|
var G__20512 = (i__5727__auto___20511 + (1));
|
|
i__5727__auto___20511 = G__20512;
|
|
continue;
|
|
} else {
|
|
}
|
|
break;
|
|
}
|
|
|
|
var argseq__5733__auto__ = ((((0) < args__5732__auto__.length))?(new cljs.core.IndexedSeq(args__5732__auto__.slice((0)),(0),null)):null);
|
|
return shadow.animate.combine.cljs$core$IFn$_invoke$arity$variadic(argseq__5733__auto__);
|
|
});
|
|
|
|
(shadow.animate.combine.cljs$core$IFn$_invoke$arity$variadic = (function (transitions){
|
|
var to = cljs.core.PersistentArrayMap.EMPTY;
|
|
var from = cljs.core.PersistentArrayMap.EMPTY;
|
|
var toggles = cljs.core.PersistentArrayMap.EMPTY;
|
|
var timings = cljs.core.PersistentArrayMap.EMPTY;
|
|
var delays = cljs.core.PersistentArrayMap.EMPTY;
|
|
var transitions__$1 = transitions;
|
|
while(true){
|
|
var temp__5802__auto__ = cljs.core.first(transitions__$1);
|
|
if(cljs.core.truth_(temp__5802__auto__)){
|
|
var adef = temp__5802__auto__;
|
|
var G__20513 = cljs.core.merge.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([to,shadow.animate._animate_to(adef)], 0));
|
|
var G__20514 = cljs.core.merge.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([from,shadow.animate._animate_from(adef)], 0));
|
|
var G__20515 = cljs.core.merge.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([toggles,shadow.animate._animate_toggles(adef)], 0));
|
|
var G__20516 = cljs.core.merge.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([timings,shadow.animate._animate_timings(adef)], 0));
|
|
var G__20517 = cljs.core.merge.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([delays,shadow.animate._animate_delays(adef)], 0));
|
|
var G__20518 = cljs.core.rest(transitions__$1);
|
|
to = G__20513;
|
|
from = G__20514;
|
|
toggles = G__20515;
|
|
timings = G__20516;
|
|
delays = G__20517;
|
|
transitions__$1 = G__20518;
|
|
continue;
|
|
} else {
|
|
return (new shadow.animate.t_shadow$animate20300(transitions__$1,to,from,toggles,timings,delays,temp__5802__auto__,cljs.core.PersistentArrayMap.EMPTY));
|
|
}
|
|
break;
|
|
}
|
|
}));
|
|
|
|
(shadow.animate.combine.cljs$lang$maxFixedArity = (0));
|
|
|
|
/** @this {Function} */
|
|
(shadow.animate.combine.cljs$lang$applyTo = (function (seq20262){
|
|
var self__5712__auto__ = this;
|
|
return self__5712__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq(seq20262));
|
|
}));
|
|
|
|
shadow.animate.fade_in = (function shadow$animate$fade_in(var_args){
|
|
var G__20327 = arguments.length;
|
|
switch (G__20327) {
|
|
case 0:
|
|
return shadow.animate.fade_in.cljs$core$IFn$_invoke$arity$0();
|
|
|
|
break;
|
|
case 1:
|
|
return shadow.animate.fade_in.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
|
|
break;
|
|
default:
|
|
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
|
|
}
|
|
});
|
|
|
|
(shadow.animate.fade_in.cljs$core$IFn$_invoke$arity$0 = (function (){
|
|
return shadow.animate.fade_in.cljs$core$IFn$_invoke$arity$1("ease-in");
|
|
}));
|
|
|
|
(shadow.animate.fade_in.cljs$core$IFn$_invoke$arity$1 = (function (timing_function){
|
|
return shadow.animate.transition.cljs$core$IFn$_invoke$arity$4(new cljs.core.Keyword(null,"opacity","opacity",397153780),"0","1",timing_function);
|
|
}));
|
|
|
|
(shadow.animate.fade_in.cljs$lang$maxFixedArity = 1);
|
|
|
|
shadow.animate.fade_out = (function shadow$animate$fade_out(var_args){
|
|
var G__20332 = arguments.length;
|
|
switch (G__20332) {
|
|
case 0:
|
|
return shadow.animate.fade_out.cljs$core$IFn$_invoke$arity$0();
|
|
|
|
break;
|
|
case 1:
|
|
return shadow.animate.fade_out.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
|
|
break;
|
|
default:
|
|
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
|
|
}
|
|
});
|
|
|
|
(shadow.animate.fade_out.cljs$core$IFn$_invoke$arity$0 = (function (){
|
|
return shadow.animate.fade_in.cljs$core$IFn$_invoke$arity$1("ease-out");
|
|
}));
|
|
|
|
(shadow.animate.fade_out.cljs$core$IFn$_invoke$arity$1 = (function (timing_function){
|
|
return shadow.animate.transition.cljs$core$IFn$_invoke$arity$4(new cljs.core.Keyword(null,"opacity","opacity",397153780),"1","0",timing_function);
|
|
}));
|
|
|
|
(shadow.animate.fade_out.cljs$lang$maxFixedArity = 1);
|
|
|
|
shadow.animate.vendor_prefix = goog.dom.vendor.getVendorPrefix();
|
|
shadow.animate.vendor_transform = cljs.core.keyword.cljs$core$IFn$_invoke$arity$1([cljs.core.str.cljs$core$IFn$_invoke$arity$1(shadow.animate.vendor_prefix),"-transform"].join(''));
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {shadow.animate.Animation}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.IWithMeta}
|
|
*/
|
|
shadow.animate.t_shadow$animate20347 = (function (from,to,timing,delay,meta20348){
|
|
this.from = from;
|
|
this.to = to;
|
|
this.timing = timing;
|
|
this.delay = delay;
|
|
this.meta20348 = meta20348;
|
|
this.cljs$lang$protocol_mask$partition0$ = 393216;
|
|
this.cljs$lang$protocol_mask$partition1$ = 0;
|
|
});
|
|
(shadow.animate.t_shadow$animate20347.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_20349,meta20348__$1){
|
|
var self__ = this;
|
|
var _20349__$1 = this;
|
|
return (new shadow.animate.t_shadow$animate20347(self__.from,self__.to,self__.timing,self__.delay,meta20348__$1));
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20347.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_20349){
|
|
var self__ = this;
|
|
var _20349__$1 = this;
|
|
return self__.meta20348;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20347.prototype.shadow$animate$Animation$ = cljs.core.PROTOCOL_SENTINEL);
|
|
|
|
(shadow.animate.t_shadow$animate20347.prototype.shadow$animate$Animation$_animate_from$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"transform","transform",1381301764),["translateY(",cljs.core.str.cljs$core$IFn$_invoke$arity$1(self__.from),")"].join('')], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20347.prototype.shadow$animate$Animation$_animate_to$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"transform","transform",1381301764),["translateY(",cljs.core.str.cljs$core$IFn$_invoke$arity$1(self__.to),")"].join('')], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20347.prototype.shadow$animate$Animation$_animate_timings$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([shadow.animate.vendor_transform,self__.timing]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20347.prototype.shadow$animate$Animation$_animate_toggles$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20347.prototype.shadow$animate$Animation$_animate_delays$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([shadow.animate.vendor_transform,self__.delay]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20347.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"from","from",-839142725,null),new cljs.core.Symbol(null,"to","to",1832630534,null),new cljs.core.Symbol(null,"timing","timing",-208693668,null),new cljs.core.Symbol(null,"delay","delay",1066306308,null),new cljs.core.Symbol(null,"meta20348","meta20348",1356437750,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20347.cljs$lang$type = true);
|
|
|
|
(shadow.animate.t_shadow$animate20347.cljs$lang$ctorStr = "shadow.animate/t_shadow$animate20347");
|
|
|
|
(shadow.animate.t_shadow$animate20347.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
|
|
return cljs.core._write(writer__5288__auto__,"shadow.animate/t_shadow$animate20347");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/t_shadow$animate20347.
|
|
*/
|
|
shadow.animate.__GT_t_shadow$animate20347 = (function shadow$animate$__GT_t_shadow$animate20347(from,to,timing,delay,meta20348){
|
|
return (new shadow.animate.t_shadow$animate20347(from,to,timing,delay,meta20348));
|
|
});
|
|
|
|
|
|
shadow.animate.translate_y = (function shadow$animate$translate_y(var_args){
|
|
var G__20340 = arguments.length;
|
|
switch (G__20340) {
|
|
case 3:
|
|
return shadow.animate.translate_y.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)]));
|
|
|
|
break;
|
|
case 4:
|
|
return shadow.animate.translate_y.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]));
|
|
|
|
break;
|
|
default:
|
|
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
|
|
}
|
|
});
|
|
|
|
(shadow.animate.translate_y.cljs$core$IFn$_invoke$arity$3 = (function (from,to,timing){
|
|
return shadow.animate.translate_y.cljs$core$IFn$_invoke$arity$4(from,to,timing,(0));
|
|
}));
|
|
|
|
(shadow.animate.translate_y.cljs$core$IFn$_invoke$arity$4 = (function (from,to,timing,delay){
|
|
return (new shadow.animate.t_shadow$animate20347(from,to,timing,delay,cljs.core.PersistentArrayMap.EMPTY));
|
|
}));
|
|
|
|
(shadow.animate.translate_y.cljs$lang$maxFixedArity = 4);
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {shadow.animate.Animation}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.IWithMeta}
|
|
*/
|
|
shadow.animate.t_shadow$animate20387 = (function (from,to,timing,delay,meta20388){
|
|
this.from = from;
|
|
this.to = to;
|
|
this.timing = timing;
|
|
this.delay = delay;
|
|
this.meta20388 = meta20388;
|
|
this.cljs$lang$protocol_mask$partition0$ = 393216;
|
|
this.cljs$lang$protocol_mask$partition1$ = 0;
|
|
});
|
|
(shadow.animate.t_shadow$animate20387.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_20389,meta20388__$1){
|
|
var self__ = this;
|
|
var _20389__$1 = this;
|
|
return (new shadow.animate.t_shadow$animate20387(self__.from,self__.to,self__.timing,self__.delay,meta20388__$1));
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20387.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_20389){
|
|
var self__ = this;
|
|
var _20389__$1 = this;
|
|
return self__.meta20388;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20387.prototype.shadow$animate$Animation$ = cljs.core.PROTOCOL_SENTINEL);
|
|
|
|
(shadow.animate.t_shadow$animate20387.prototype.shadow$animate$Animation$_animate_from$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"transform","transform",1381301764),["translateX(",cljs.core.str.cljs$core$IFn$_invoke$arity$1(self__.from),")"].join('')], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20387.prototype.shadow$animate$Animation$_animate_to$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"transform","transform",1381301764),["translateX(",cljs.core.str.cljs$core$IFn$_invoke$arity$1(self__.to),")"].join('')], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20387.prototype.shadow$animate$Animation$_animate_timings$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([shadow.animate.vendor_transform,self__.timing]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20387.prototype.shadow$animate$Animation$_animate_toggles$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.EMPTY;
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20387.prototype.shadow$animate$Animation$_animate_delays$arity$1 = (function (_){
|
|
var self__ = this;
|
|
var ___$1 = this;
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([shadow.animate.vendor_transform,self__.delay]);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20387.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"from","from",-839142725,null),new cljs.core.Symbol(null,"to","to",1832630534,null),new cljs.core.Symbol(null,"timing","timing",-208693668,null),new cljs.core.Symbol(null,"delay","delay",1066306308,null),new cljs.core.Symbol(null,"meta20388","meta20388",837522373,null)], null);
|
|
}));
|
|
|
|
(shadow.animate.t_shadow$animate20387.cljs$lang$type = true);
|
|
|
|
(shadow.animate.t_shadow$animate20387.cljs$lang$ctorStr = "shadow.animate/t_shadow$animate20387");
|
|
|
|
(shadow.animate.t_shadow$animate20387.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
|
|
return cljs.core._write(writer__5288__auto__,"shadow.animate/t_shadow$animate20387");
|
|
}));
|
|
|
|
/**
|
|
* Positional factory function for shadow.animate/t_shadow$animate20387.
|
|
*/
|
|
shadow.animate.__GT_t_shadow$animate20387 = (function shadow$animate$__GT_t_shadow$animate20387(from,to,timing,delay,meta20388){
|
|
return (new shadow.animate.t_shadow$animate20387(from,to,timing,delay,meta20388));
|
|
});
|
|
|
|
|
|
shadow.animate.translate_x = (function shadow$animate$translate_x(var_args){
|
|
var G__20386 = arguments.length;
|
|
switch (G__20386) {
|
|
case 3:
|
|
return shadow.animate.translate_x.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)]));
|
|
|
|
break;
|
|
case 4:
|
|
return shadow.animate.translate_x.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]));
|
|
|
|
break;
|
|
default:
|
|
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
|
|
}
|
|
});
|
|
|
|
(shadow.animate.translate_x.cljs$core$IFn$_invoke$arity$3 = (function (from,to,timing){
|
|
return shadow.animate.translate_x.cljs$core$IFn$_invoke$arity$4(from,to,timing,(0));
|
|
}));
|
|
|
|
(shadow.animate.translate_x.cljs$core$IFn$_invoke$arity$4 = (function (from,to,timing,delay){
|
|
return (new shadow.animate.t_shadow$animate20387(from,to,timing,delay,cljs.core.PersistentArrayMap.EMPTY));
|
|
}));
|
|
|
|
(shadow.animate.translate_x.cljs$lang$maxFixedArity = 4);
|
|
|
|
|
|
//# sourceMappingURL=shadow.animate.js.map
|