-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove symbols for blend mode * remove symbol for gradients * optimize symbols for path contents * optimize code * remove symbols
- Loading branch information
1 parent
8697902
commit 738ebfe
Showing
21 changed files
with
123 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,6 @@ type SquareParams = { | |
}; | ||
|
||
type GridColor = { | ||
color: string; // hex color | ||
color: string; | ||
opacity: number; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import { PenpotFile } from '@ui/lib/types/penpotFile'; | ||
import { CircleShape } from '@ui/lib/types/shapes/circleShape'; | ||
import { parseFigmaId } from '@ui/parser'; | ||
import { symbolBlendMode, symbolFills, symbolStrokes } from '@ui/parser/creators/symbols'; | ||
import { symbolFills, symbolStrokes } from '@ui/parser/creators/symbols'; | ||
|
||
export const createCircle = ( | ||
file: PenpotFile, | ||
{ type, fills, strokes, blendMode, figmaId, figmaRelatedId, ...rest }: CircleShape | ||
{ type, figmaId, figmaRelatedId, ...shape }: CircleShape | ||
) => { | ||
file.createCircle({ | ||
id: parseFigmaId(file, figmaId), | ||
shapeRef: parseFigmaId(file, figmaRelatedId, true), | ||
fills: symbolFills(fills), | ||
strokes: symbolStrokes(strokes), | ||
blendMode: symbolBlendMode(blendMode), | ||
...rest | ||
}); | ||
shape.id = parseFigmaId(file, figmaId); | ||
shape.shapeRef = parseFigmaId(file, figmaRelatedId, true); | ||
shape.fills = symbolFills(shape.fills); | ||
shape.strokes = symbolStrokes(shape.strokes); | ||
|
||
file.createCircle(shape); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.