(params)
| 93 | |
| 94 | const pathDividers: Record<UniversalTransitionOption['divideShape'], DividePath> = { |
| 95 | clone(params) { |
| 96 | const ret: Path[] = []; |
| 97 | // Fitting the alpha |
| 98 | const approxOpacity = 1 - Math.pow(1 - params.path.style.opacity, 1 / params.count); |
| 99 | for (let i = 0; i < params.count; i++) { |
| 100 | const cloned = clonePath(params.path); |
| 101 | cloned.setStyle('opacity', approxOpacity); |
| 102 | ret.push(cloned); |
| 103 | } |
| 104 | return ret; |
| 105 | }, |
| 106 | // Use the default divider |
| 107 | split: null |
| 108 | }; |
no test coverage detected
searching dependent graphs…