Skip to content

Commit

Permalink
chore(TS): migrate gradient (fabricjs#8154)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Bogazzi <andreabogazzi79@gmail.com>
  • Loading branch information
2 people authored and frankrousseau committed Jan 6, 2023
1 parent 39e5dfa commit 4506b03
Show file tree
Hide file tree
Showing 16 changed files with 620 additions and 484 deletions.
13 changes: 13 additions & 0 deletions src/gradient/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

export const linearDefaultCoords = {
x1: 0,
y1: 0,
x2: 0,
y2: 0,
}

export const radialDefaultCoords = {
...linearDefaultCoords,
r1: 0,
r2: 0,
}
Loading

0 comments on commit 4506b03

Please sign in to comment.