@@ -3753,44 +3753,48 @@ <h3>The unaccumulated animation value of a path animation effect</h3>
3753
3753
value</ a > is given by the following process:
3754
3754
< ol >
3755
3755
< li >
3756
- The < a > current element</ a > and < a > element fraction</ a >
3757
- are calculated by applying the process defined in
3758
- < a href ='#calculating-the-current-element-and-element-fraction ' class ='sectionRef '>
3756
+ Determine the < a > current path element</ a > and
3757
+ < a > element fraction</ a > for the given < a > time fraction</ a > using
3758
+ the procedure defined in
3759
+ < a href ='#determining-the-current-element-and-element-fraction ' class ='sectionRef '>
3759
3760
</ a > .
3760
- </ li >
3761
3761
< li >
3762
- The < a > rotation value</ a > is calculated by applying
3763
- the process defined in
3764
- < a href ='#calculating-the-rotation-value-of-the-current-element ' class ='sectionRef '> </ a > .
3765
- </ li >
3762
+ Calculate the < a > rotation value</ a > using the process defined in
3763
+ < a href ='#calculating-the-rotation-value-of-the-current-path-element ' class ='sectionRef '> </ a > .
3766
3764
< li >
3767
- Let < a > translation value</ a > is calculated by
3768
- applying the process defined in
3769
- < a href ='#calculating-the-translation-value-of-the-current-element ' class ='sectionRef '> </ a > .
3770
- </ li >
3765
+ Calculate the < a > translation value</ a > using the process defined
3766
+ in
3767
+ < a href ='#calculating-the-translation-value-of-the-current-path-element ' class ='sectionRef '> </ a > .
3771
3768
< li >
3772
3769
Let the < var > transform value</ var > be the result of combining
3773
3770
the < a > rotation value</ a > and < a > translation value</ a >
3774
3771
by constructing a transform list consisting of the
3775
3772
translation value followed by the rotation value.
3776
- </ li >
3777
3773
< li >
3778
- If the < a title ='operation '> composition operation</ a > is
3779
- < a title ='composition operation replace '> replace</ a > , then the
3780
- < a > unaccumulated animation value</ a > of the effect is the
3781
- < var > transform value</ var > .
3782
- </ li >
3783
- < li >
3784
- Otherwise, the < a > unaccumulated animation value</ a > of the
3785
- effect is the < a > underlying value</ a > accumulated with the
3786
- < var > transform value</ var > according to the process defined in
3787
- < a href ='#the--transform-function--type ' class ='sectionRef '> </ a > .
3788
- </ li >
3774
+ The < a > unaccumulated animation value</ a > of the < a > path animation
3775
+ effect</ a > depends on the value of its < a > composition
3776
+ operation</ a > as follows,
3777
+ < dl class ="switch ">
3778
+ < dt > If the < a > composition operation</ a > of this < a > path
3779
+ animation effect</ a > is < a title ='composition operation
3780
+ replace '> replace</ a > ,</ dt >
3781
+ < dd >
3782
+ the < a > unaccumulated animation value</ a > of the effect is
3783
+ < var > transform value</ var > .
3784
+ </ dd >
3785
+ < dt > Otherwise,</ dt >
3786
+ < dd >
3787
+ the < a > unaccumulated animation value</ a > of the effect is the
3788
+ result of adding < var > transform value</ var > to the
3789
+ < a > underlying value</ a > according to the process defined in < a
3790
+ href ='#the--transform-function--type ' class ='sectionRef '> </ a > .
3791
+ </ dd >
3792
+ </ dl >
3789
3793
</ ol >
3790
3794
</ p >
3791
3795
</ section >
3792
3796
< section >
3793
- < h3 > Calculating the current element and element fraction</ h3 >
3797
+ < h3 > Determining the current element and element fraction</ h3 >
3794
3798
< div class ='informative '>
3795
3799
< p >
3796
3800
Each element in the path (excluding moveto elements) is allocated
@@ -3805,54 +3809,58 @@ <h3>Calculating the current element and element fraction</h3>
3805
3809
</ p >
3806
3810
</ div >
3807
3811
< p >
3808
- The < dfn > current element</ dfn > and < dfn > element fraction</ dfn > are
3809
- determined using the following procedure:
3812
+ The < dfn > current path element</ dfn > and < dfn > element fraction</ dfn >
3813
+ for a given < a > time fraction</ a > , < var > progress</ var > , are
3814
+ determined by following the steps corresponding to the first matching
3815
+ condition from below:
3810
3816
</ p >
3811
3817
< dl class ='switch '>
3812
3818
< dt >
3813
- If the < a > current time fraction </ a > is greater than or equal to 1
3819
+ If < var > progress </ var > is greater than or equal to 1,
3814
3820
</ dt >
3815
3821
< dd >
3816
- the < var > current element</ var > is the last element in the path,
3822
+ the < var > current path element</ var > is the last element in the
3823
+ < a > path</ a > ,
3817
3824
and the < var > element fraction</ var > is 1.
3818
3825
</ dd >
3819
3826
< dt >
3820
- If the < a > current time fraction </ a > is less than 0
3827
+ If < var > progress </ var > is less than 0,
3821
3828
</ dt >
3822
3829
< dd >
3823
- the < var > current element</ var > is the first element in the path,
3830
+ the < var > current path element</ var > is the first element in the
3831
+ path,
3824
3832
and the < var > element fraction</ var > is 0.
3825
3833
</ dd >
3826
3834
< dt >
3827
- Otherwise
3835
+ Otherwise,
3828
3836
</ dt >
3829
3837
< dd >
3830
3838
< ol >
3831
3839
< li >
3832
3840
Let < var > effective element list</ var > be a clone of the
3833
- < a > element list </ a > with all moveto elements removed.
3841
+ list of < a > path elements </ a > with all moveto elements removed.
3834
3842
</ li >
3835
3843
< li >
3836
- Let < var > time index</ var > be the < a > current time fraction </ a >
3837
- multiplied by the number of elements in the < var > effective
3844
+ Let < var > time index</ var > be < var > progress </ var >
3845
+ multiplied by the number of elements in < var > effective
3838
3846
element list</ var > .
3839
3847
</ li >
3840
3848
< li >
3841
3849
Let < var > current element</ var > be the element in the
3842
- < a > effective element list</ a > at the index given by
3843
- < code > floor(< var > time index </ var > )</ code > .
3850
+ < var > effective element list</ var > at the index given by
3851
+ < code > floor(< var > progress </ var > )</ code > .
3844
3852
</ li >
3845
3853
< li >
3846
3854
Let < var > element fraction</ var > be the value given by
3847
- < code > < var > time index </ var > - floor(< var > time index </ var > )
3855
+ < code > < var > progress </ var > - floor(< var > progress </ var > )
3848
3856
</ code > .
3849
3857
</ li >
3850
3858
</ ol >
3851
3859
</ dd >
3852
3860
</ dl >
3853
3861
</ section >
3854
3862
< section >
3855
- < h3 > Calculating the rotation value of the current element</ h3 >
3863
+ < h3 > Calculating the rotation value of the current path element</ h3 >
3856
3864
< p >
3857
3865
The < dfn > rotation value</ dfn > of the < a > current element</ a > is the
3858
3866
rotation produced by that element at the < a > element fraction</ a > .
@@ -3925,9 +3933,9 @@ <h3>Calculating the rotation value of the current element</h3>
3925
3933
</ p >
3926
3934
</ section >
3927
3935
< section >
3928
- < h3 > Calculating the translation value of the current element</ h3 >
3936
+ < h3 > Calculating the translation value of the current path element</ h3 >
3929
3937
< p >
3930
- The < dfn > translation value</ dfn > of the < a > current element</ a > is
3938
+ The < dfn > translation value</ dfn > of the < a > current path element</ a > is
3931
3939
determined using the following process:
3932
3940
</ p >
3933
3941
< ol >
0 commit comments