#include "CALayer.hpp" namespace lottie { std::shared_ptr CAShapeLayer::renderableItem() { if (!_path) { return nullptr; } std::optional fill; if (_fillColor) { fill = ShapeRenderableItem::Fill( _fillColor.value(), _fillRule ); } std::optional stroke; if (_strokeColor) { stroke = ShapeRenderableItem::Stroke( _strokeColor.value(), _lineWidth, _lineJoin, _lineCap, _lineDashPhase, _dashPattern ); } return std::make_shared( _path, fill, stroke ); } }