FluidbookLinksAnimations.prototype = {
- executeAnimations(element, animations, properties, autostart, delay) {
+ executeAnimations(element, animations, autostart, delay) {
let $this = this;
var defaults = ['ease', 'duration', 'delay'];
var firstDefaults = {};
}
if (autostart && !animations[0]['autostart']) {
+ if(animations[0]['type']==='pie'){
+ $(element).css('border-radius', '50%');
+ }
return;
}
var paper = new Raphael(link.attr('id'), w, h);
var bgc = link.attr('data-color');
to.angle = animation.startangle + 360;
- if (animation.hideonstart == '1') {
- to.onStart = function () {
- link.css('background-color', "transparent");
- };
- }
+ // if (animation.hideonstart == '1') {
+ // to.onStart = function () {
+ // link.css('background-color', "transparent");
+ // };
+ // }
to.onUpdate = function () {
paper.clear();
if (Math.abs(linkElement.angle - from.angle) < 2) {
}
function scormSecondsToTimeInterval(diff) {
- var diff = Math.round(diff);
+ diff = Math.round(diff);
var h = Math.floor(diff / 3600);
diff = diff % 3600;
var m = Math.floor(diff / 60);