From: Vincent Vanwaelscappel Date: Fri, 24 Jun 2022 16:58:43 +0000 (+0200) Subject: wait #5332 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e39c3bbf291ba41a47e0fe36f727e3dd063410c3;p=fluidbook-html5.git wait #5332 @1 --- diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 0612c7fd..b9012fb7 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -799,7 +799,13 @@ FluidbookLinks.prototype = { from.clip = rect; } } else if (animation.type === 'pie') { - defaultParams = {startangle: '0', direction: 'clockwise', size: 'outside', innerradius: '0'}; + defaultParams = { + startangle: '0', + direction: 'clockwise', + size: 'outside', + innerradius: '0', + hideonstart: '0' + }; animation = $.extend({}, globalDefault, defaultParams, animation); animation.startangle = parseFloat(animation.startangle); animation.innerradius = parseFloat(animation.innerradius); @@ -840,9 +846,11 @@ FluidbookLinks.prototype = { var paper = new Raphael(link.attr('id'), w, h); var bgc = link.attr('data-color'); to.angle = animation.startangle + 360; - 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) { @@ -855,7 +863,7 @@ FluidbookLinks.prototype = { sector(paper, cx, cy, radius, animation.innerradius, linkElement.angle, to.angle, { fill: bgc, stroke: 'none' }); - + link.css('background-color', "transparent"); }; } else if (animation.type === 'number') { usegsap = false;