Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(TS): migrate gradient #8154

Merged
merged 50 commits into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
58d50a5
init
ShaMan123 Aug 18, 2022
91f4a89
major
ShaMan123 Aug 18, 2022
1be0a07
rename
ShaMan123 Aug 18, 2022
295fad8
types
ShaMan123 Aug 18, 2022
29a7ddf
Update index.js
ShaMan123 Aug 18, 2022
a5f906a
opts
ShaMan123 Aug 18, 2022
0ed975b
Update typedefs.ts
ShaMan123 Aug 18, 2022
d7c157a
Update gradient.class.ts
ShaMan123 Aug 18, 2022
b9c62e8
Update gradient.class.ts
ShaMan123 Aug 18, 2022
dcfda21
**BREAKING** change `fromElement` signature
ShaMan123 Aug 18, 2022
4a2cffb
cleanup
ShaMan123 Aug 18, 2022
f5596a2
move
ShaMan123 Aug 18, 2022
cd6f610
Create index.ts
ShaMan123 Aug 18, 2022
44dfca8
Update index.js
ShaMan123 Aug 18, 2022
df8d16b
Update gradient.class.ts
ShaMan123 Aug 18, 2022
e4b257d
Update gradient.class.ts
ShaMan123 Aug 18, 2022
3ae0d3a
fix types
ShaMan123 Aug 18, 2022
60fbc6e
Update gradient.class.ts
ShaMan123 Aug 18, 2022
3ce2adb
Update parseCoords.ts
ShaMan123 Aug 18, 2022
e219b40
ifNaN
ShaMan123 Aug 18, 2022
c7a40ee
rename
ShaMan123 Aug 18, 2022
2bc3dd7
safeguard from `null`
ShaMan123 Aug 18, 2022
582d1cc
clamp `valueIfNaN`
ShaMan123 Aug 18, 2022
d81ef06
Update percent.ts
ShaMan123 Aug 18, 2022
cf6e340
Update percent.ts
ShaMan123 Aug 18, 2022
8a11582
Update ifNaN.ts
ShaMan123 Aug 18, 2022
b07fa0d
Merge branch 'ts-gradient-pre' into ts-gradient2
ShaMan123 Aug 18, 2022
881e490
Merge branch 'master' into ts-gradient2
ShaMan123 Aug 19, 2022
0ad53a3
Update percent.ts
ShaMan123 Aug 19, 2022
564f725
Update typedefs.ts
ShaMan123 Aug 19, 2022
ef1c658
Merge branch 'master' into ts-gradient2
asturur Aug 23, 2022
bd820e2
Update gradient.class.ts
ShaMan123 Aug 24, 2022
fdff0e5
Update typedefs.ts
ShaMan123 Aug 24, 2022
0c4cb92
consts
ShaMan123 Aug 24, 2022
15541cb
cleanup
ShaMan123 Aug 24, 2022
a5c48f5
Update index.ts
ShaMan123 Aug 24, 2022
378ab72
Update gradient.class.ts
ShaMan123 Aug 24, 2022
684e2c9
remove `ifNaN`
ShaMan123 Aug 24, 2022
04634e1
checkout
ShaMan123 Aug 24, 2022
fa38d1d
revert remove `ifNaN`
ShaMan123 Aug 24, 2022
7f68645
fix visual test percision
ShaMan123 Aug 24, 2022
6625eb1
Merge branch 'master' into ts-gradient2
ShaMan123 Aug 25, 2022
ee14fda
Merge branch 'master' into ts-gradient2
ShaMan123 Aug 25, 2022
0cbef4a
Merge branch 'master' into ts-gradient2
ShaMan123 Aug 26, 2022
2078c9c
fix(): naming error
ShaMan123 Aug 26, 2022
1ee19ec
Merge branch 'master' into ts-gradient2
ShaMan123 Aug 26, 2022
329e23c
Merge branch 'master' into ts-gradient2
asturur Aug 26, 2022
1c38116
test more strict
asturur Aug 26, 2022
63c4f91
restore text9.png
asturur Aug 26, 2022
df2acd4
remove kerning to lessen differences between oses
asturur Aug 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,
}