Beispiel #1
0
        internal ShapeLayer(Lottie lottie, Layer layerModel) : base(lottie, layerModel)
        {
            // Naming this __container allows it to be ignored in KeyPath matching.
            var shapeGroup = new ShapeGroup("__container", layerModel.Shapes);

            _contentGroup = new ContentGroup(lottie, this, shapeGroup);
            _contentGroup.SetContents(new List <IContent>(), new List <IContent>());
        }
 internal StrokeContent(Lottie lottie, BaseLayer layer, ShapeStroke stroke)
     : base(lottie, layer, ShapeStroke.LineCapTypeToPaintCap(stroke.CapType),
            ShapeStroke.LineJoinTypeToPaintLineJoin(stroke.JoinType), stroke.MiterLimit, stroke.Opacity,
            stroke.Width, stroke.LineDashPattern, stroke.DashOffset)
 {
     _layer          = layer;
     Name            = stroke.Name;
     _colorAnimation = stroke.Color.CreateAnimation();
     _colorAnimation.ValueChanged += OnValueChanged;
     layer.AddAnimation(_colorAnimation);
 }
Beispiel #3
0
 public IContent ToContent(Lottie drawable, BaseLayer layer)
 {
     return(new FillContent(drawable, layer, this));
 }
 public IContent ToContent(Lottie drawable, BaseLayer layer)
 {
     return(new MergePathsContent(this));
 }
 public IContent ToContent(Lottie drawable, BaseLayer layer)
 {
     return(new GradientStrokeContent(drawable, layer, this));
 }
 internal NullLayer(Lottie lottie, Layer layerModel) : base(lottie, layerModel)
 {
 }
 public IContent ToContent(Lottie drawable, BaseLayer layer)
 {
     return(new TrimPathContent(layer, this));
 }
Beispiel #8
0
 public IContent ToContent(Lottie drawable, BaseLayer layer)
 {
     return(null);
 }