Fix cirlce diagram start rotation
This commit is contained in:
parent
62db10ee00
commit
e524ffdb3a
|
|
@ -59,10 +59,14 @@ const pieData = computed(() => {
|
|||
let result = angles.map((angle) => {
|
||||
const thisLearningSequence = circle.learningSequences[angle.index];
|
||||
|
||||
// Rotate the cirlce by PI (180 degrees) normally 0 = 12'o clock, now start at 6 o clock
|
||||
angle.startAngle += Math.PI;
|
||||
angle.endAngle += Math.PI;
|
||||
|
||||
return Object.assign(
|
||||
{
|
||||
startAngle: angle.startAngle + Math.PI,
|
||||
endAngle: angle.endAngle + Math.PI,
|
||||
startAngle: angle.startAngle,
|
||||
endAngle: angle.endAngle,
|
||||
..._.pick(thisLearningSequence, ["title", "icon", "translation_key", "slug"]),
|
||||
arrowStartAngle: angle.endAngle + (angle.startAngle - angle.endAngle) / 2,
|
||||
arrowEndAngle: angle.startAngle + (angle.startAngle - angle.endAngle) / 2,
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue