Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for gradients #143

Merged
merged 3 commits into from
Aug 29, 2019
Merged

Prepare for gradients #143

merged 3 commits into from
Aug 29, 2019

Conversation

simeoncran
Copy link
Contributor

Changes needed to implement gradient support.
Includes some refactoring and cleanup that I want to get out of the way now rather than including in the more complicated stuff needed to translate gradients.

Simeon Cran added 2 commits August 28, 2019 11:44
Previously the output depended on the width of the console, and sorting ignored case.
@@ -125,6 +128,12 @@ void Reference(T from, CompositionObject obj)
case CompositionObjectType.CompositionGeometricClip:
VisitCompositionGeometricClip((CompositionGeometricClip)obj, node);
break;
case CompositionObjectType.CompositionLinearGradientBrush:
Copy link
Contributor

@eliezerpMS eliezerpMS Aug 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

case CompositionObjectType.CompositionLinearGradientBrush: [](start = 15, length = 59)

Should these be placed alphabetically? #Resolved


public Animatable<double> OpacityPercent { get; }

public abstract ShapeFillKind FillKind { get; }
Copy link
Contributor

@eliezerpMS eliezerpMS Aug 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FillKind [](start = 38, length = 8)

Is this going to be used for something later? #ByDesign

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep... in the translator we will have a ShapeFill in the context for a shape layer and we need to switch on the kind of fill.


In reply to: 318817982 [](ancestors = 318817982)

return GetCompositionLinearGradientBrush((Wd.CompositionLinearGradientBrush)obj);
case Wd.CompositionObjectType.CompositionRadialGradientBrush:
// TODO - handle versioning - RadialGradientBrush was not added until 1903
// return GetCompositionRadialGradientBrush((Wd.CompositionRadialGradientBrush)obj);
Copy link
Contributor

@eliezerpMS eliezerpMS Aug 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetCompositionRadialGradientBrush [](start = 34, length = 33)

Should we just gate this behind the same thing that the mattes and masks is gates behind? #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not intend to leave a TODO in here. I will finish the implementation.
FYI, for versioning (which I expect to start next week) we will have 2 different modes: backward compatible, and requires version.

  • Backward compatible will not blow up if you're on a version that doesn't support a Comp feature - it will render something but possibly won't look awesome.
  • Requires version will not try to be backward compatible, but will have a version check during loading.

In reply to: 318818408 [](ancestors = 318818408)

eliezerpMS
eliezerpMS previously approved these changes Aug 28, 2019
Copy link
Contributor

@eliezerpMS eliezerpMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@eliezerpMS
Copy link
Contributor

#if POST_RS5_SDK

You can probably also delete this and all its uses in this file


Refers to: source/LottieToWinComp/LottieToWinCompTranslator.cs:21 in 1230b0a. [](commit_id = 1230b0a, deletion_comment = False)

Copy link
Contributor

@eliezerpMS eliezerpMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@simeoncran simeoncran merged commit aeb8728 into master Aug 29, 2019
@delete-merged-branch delete-merged-branch bot deleted the PrepareForGradients branch August 29, 2019 17:03
@michael-hawker michael-hawker added this to the 6.0 milestone Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants