Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/FigmaAPI/Endpoint/ImageEndpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class SVGParams: FormatParams {
public var svgIncludeId = false

/// Whether to simplify inside/outside strokes and use stroke attribute if possible instead of <mask>. Default: true.
public var svgSimplifyStroke = false
public var svgSimplifyStroke = true

public init() {
super.init(format: "svg")
Expand Down
12 changes: 6 additions & 6 deletions Sources/FigmaExport/FigmaExportCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import Foundation
import Logging

enum FigmaExportError: LocalizedError {

case invalidFileName(String)
case stylesNotFound
case componentsNotFound
case accessTokenNotFound
case colorsAssetsFolderNotSpecified
case custom(errorString: String)

var errorDescription: String? {
switch self {
case .invalidFileName(let name):
Expand All @@ -31,14 +31,14 @@ enum FigmaExportError: LocalizedError {

@main
struct FigmaExportCommand: ParsableCommand {
static let version = "0.38.4"

static let version = "0.39.0"

static let svgFileConverter = VectorDrawableConverter()
static let fileWriter = FileWriter()
static let fileDownloader = FileDownloader()
static let logger = Logger(label: "com.redmadrobot.figma-export")

static var configuration = CommandConfiguration(
commandName: "figma-export",
abstract: "Exports resources from Figma",
Expand Down