From 8cf5ba950eb48e2395c23be512c24f3b26e457f2 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Thu, 22 Aug 2024 22:12:59 +0300 Subject: [PATCH] Remove any fom SVGExporter --- Sources/geometrize/SVGExporter.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/geometrize/SVGExporter.swift b/Sources/geometrize/SVGExporter.swift index 1c16ba3..50f00dc 100644 --- a/Sources/geometrize/SVGExporter.swift +++ b/Sources/geometrize/SVGExporter.swift @@ -13,7 +13,7 @@ public struct SVGExporter { /// - color: The color of the shape /// - shape: The shape to convert to SVG data /// - Returns: The SVG shape data for the given shape - func singleShapeData(color: Rgba, shape: any Shape) -> String { + func singleShapeData(color: Rgba, shape: Shape) -> String { var shapeData: String = shapeData(shape: shape) var styles: String = "" @@ -45,7 +45,7 @@ public struct SVGExporter { /// - Returns: A string representing the SVG image. func exportSingleShape( // swiftlint:disable:this function_parameter_count color: Rgba, - shape: any Shape, + shape: Shape, width: Int, height: Int, originWidth: Int, @@ -142,7 +142,7 @@ public struct SVGExporter { "" } - private func shapeData(shape: any Shape) -> String { + private func shapeData(shape: Shape) -> String { switch shape { case let rectangle as Rectangle: return shapeData(rectangle: rectangle)