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

refactor(): Pattern Gradient transform #8263

Open
wants to merge 119 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
03d94c3
Update .npmignore
ShaMan123 Sep 5, 2022
3bf941b
Update transform_files.js
ShaMan123 Sep 5, 2022
e705694
migrate
ShaMan123 Sep 5, 2022
91a1996
types
ShaMan123 Sep 5, 2022
433bdcd
Update pattern.class.ts
ShaMan123 Sep 5, 2022
06c7afd
Update pattern.js
ShaMan123 Sep 5, 2022
c121239
Update pattern.class.ts
ShaMan123 Sep 5, 2022
482ded8
fix(): `toSVG` source value
ShaMan123 Sep 5, 2022
16ddc8c
Update pattern.class.ts
ShaMan123 Sep 5, 2022
97127a1
cleanup
ShaMan123 Sep 5, 2022
c9f65ce
safeguard nan
ShaMan123 Sep 5, 2022
ba43568
fix svg exporting
ShaMan123 Sep 5, 2022
cbfb8dd
Revert "fix svg exporting"
ShaMan123 Sep 5, 2022
6ca7c30
Revert "Update .npmignore"
ShaMan123 Sep 5, 2022
93a6580
Update pattern.class.ts
ShaMan123 Sep 7, 2022
348cef3
refactor(): use `CanvasPattern#setTransform`
ShaMan123 Sep 7, 2022
4f8701a
Update .browserslistrc
ShaMan123 Sep 7, 2022
79c1e2e
Update object.class.ts
ShaMan123 Sep 7, 2022
98e429a
patch pattern
ShaMan123 Sep 7, 2022
1f30286
deploy `Filler.buildPath`
ShaMan123 Sep 7, 2022
b82f35d
Update point.js
ShaMan123 Sep 7, 2022
0dc0c6c
refactor canvas pattern logic
ShaMan123 Sep 7, 2022
9fd6446
Update object.class.ts
ShaMan123 Sep 7, 2022
826c939
fix canvas pattern
ShaMan123 Sep 7, 2022
fa8cbc1
toJSON
ShaMan123 Sep 7, 2022
030d7cc
Update Filler.ts
ShaMan123 Sep 7, 2022
ae4e204
fix(): use `DOMMatrix`
ShaMan123 Sep 7, 2022
34b625f
Update text.class.ts
ShaMan123 Sep 7, 2022
80521b5
Update text.class.ts
ShaMan123 Sep 7, 2022
1928537
Update Filler.ts
ShaMan123 Sep 7, 2022
6d6616d
bump `node-canvas`
ShaMan123 Sep 7, 2022
0752007
Update text.js
ShaMan123 Sep 7, 2022
3aba3ae
goldens
ShaMan123 Sep 7, 2022
fddef63
Update text.js
ShaMan123 Sep 7, 2022
08c6e53
Update text.js
ShaMan123 Sep 7, 2022
9c26bda
Update gradient.class.ts
ShaMan123 Sep 7, 2022
bbb7c91
better golden
ShaMan123 Sep 7, 2022
68638f3
Update text.class.ts
ShaMan123 Sep 8, 2022
118c175
Update generic_rendering.js
ShaMan123 Sep 8, 2022
7fa6321
remove dead code
ShaMan123 Sep 8, 2022
84a3935
Update Filler.ts
ShaMan123 Sep 8, 2022
5d91f7a
Update gradient.class.ts
ShaMan123 Sep 8, 2022
ec1cd6d
refactor Filler
ShaMan123 Sep 8, 2022
7d4e22c
Update generic_rendering.js
ShaMan123 Sep 8, 2022
719133c
Update textGradientFill.png
ShaMan123 Sep 8, 2022
c4e43d1
Update gradient.class.ts
ShaMan123 Sep 8, 2022
0acfe32
Update textGradientFill.png
ShaMan123 Sep 8, 2022
3e55b75
Update textGradientFill.png
ShaMan123 Sep 8, 2022
78f31d4
refactor
ShaMan123 Sep 8, 2022
576e69f
Update generic_rendering.js
ShaMan123 Sep 8, 2022
3063ab6
Update gradient.class.ts
ShaMan123 Sep 8, 2022
c474099
Update text9.png
ShaMan123 Sep 8, 2022
a0f58ea
cleanup
ShaMan123 Sep 8, 2022
402fd81
Update text.class.ts
ShaMan123 Sep 8, 2022
a2c5a97
Update text.js
ShaMan123 Sep 8, 2022
93aa50d
goldens
ShaMan123 Sep 8, 2022
04745f2
Update text9b-non-scaling.png
ShaMan123 Sep 8, 2022
2988f76
hack canvas gradient
ShaMan123 Sep 8, 2022
03f068d
fix canvas hack
ShaMan123 Sep 8, 2022
54f89b7
fix vpt transform
ShaMan123 Sep 8, 2022
aedf21b
instanceof
ShaMan123 Sep 8, 2022
8b36be2
sinon
ShaMan123 Sep 8, 2022
17743c2
Update gradient.js
ShaMan123 Sep 8, 2022
81aec2f
cleanup sinon
ShaMan123 Sep 8, 2022
8f80c91
Update pattern.js
ShaMan123 Sep 8, 2022
855117f
less accuracy for chrome
ShaMan123 Sep 8, 2022
f9266d1
goldens
ShaMan123 Sep 8, 2022
fc94ff8
Revert "goldens"
ShaMan123 Sep 8, 2022
5708b80
cleanup
ShaMan123 Sep 8, 2022
632197b
rename test
ShaMan123 Sep 8, 2022
4f785f8
move `toObject` `toJSON` to super class
ShaMan123 Sep 8, 2022
57466d2
Update gradient.class.ts
ShaMan123 Sep 8, 2022
04c0913
dep(): point type
ShaMan123 Sep 8, 2022
d18c1bd
Update point.js
ShaMan123 Sep 10, 2022
274f19b
m
ShaMan123 Sep 10, 2022
2227fe3
tests
ShaMan123 Sep 10, 2022
28284e4
m
ShaMan123 Sep 10, 2022
496d87a
Update filler.js
ShaMan123 Sep 10, 2022
cd72650
f
ShaMan123 Sep 10, 2022
2e8bb94
cleanup
ShaMan123 Sep 10, 2022
9e95d3d
Update filler.js
ShaMan123 Sep 10, 2022
ad4863d
BREAKING: canvas gradient transform consistency
ShaMan123 Sep 10, 2022
2dc62b4
Update gradient.class.ts
ShaMan123 Sep 10, 2022
0866887
fix(): percentage offset
ShaMan123 Sep 10, 2022
2853871
Update generic_rendering.js
ShaMan123 Sep 10, 2022
3e1be9c
Update filler.js
ShaMan123 Sep 10, 2022
14445e1
goldens
ShaMan123 Sep 10, 2022
86372b9
extract to file
ShaMan123 Sep 11, 2022
f3b0114
add tests
ShaMan123 Sep 11, 2022
f0f8bee
Merge branch 'master' into gradient-transform
ShaMan123 Sep 11, 2022
bb597bf
Update gradient.class.ts
ShaMan123 Sep 13, 2022
8c0f188
Merge branch 'master' into gradient-transform
ShaMan123 Sep 13, 2022
c39ba47
prettier
ShaMan123 Sep 13, 2022
193b114
multiplyTransformMatrices2
ShaMan123 Sep 13, 2022
10f0f16
progress
ShaMan123 Sep 13, 2022
5b8040e
cleanup
ShaMan123 Sep 13, 2022
34bf621
Update gradient.class.ts
ShaMan123 Sep 13, 2022
be866df
golden cleanup
ShaMan123 Sep 13, 2022
35c3f70
refactor
ShaMan123 Sep 13, 2022
16d3f7c
Update visualTestLoop.js
ShaMan123 Sep 13, 2022
ef4fc8f
Merge branch 'ci-fix-golden-generation' into gradient-transform
ShaMan123 Sep 13, 2022
95d4442
Update visualTestLoop.js
ShaMan123 Sep 13, 2022
ab204e2
Merge branch 'ci-fix-golden-generation' into gradient-transform
ShaMan123 Sep 13, 2022
67052a1
goldens
ShaMan123 Sep 13, 2022
3a9cd6a
goldens
ShaMan123 Sep 13, 2022
9cf7bb0
Update gradient.js
ShaMan123 Sep 13, 2022
04c0ce3
Update gradient.class.ts
ShaMan123 Sep 13, 2022
00dd4cb
m
ShaMan123 Sep 13, 2022
4cf38bb
shear!
ShaMan123 Sep 13, 2022
bd42d70
Update gradient.js
ShaMan123 Sep 13, 2022
ccabbcf
Update matrix.ts
ShaMan123 Sep 13, 2022
2117538
Update matrix.ts
ShaMan123 Sep 13, 2022
db39925
Update gradient.class.ts
ShaMan123 Sep 13, 2022
9d7b800
Update gradient.js
ShaMan123 Sep 13, 2022
b42472d
pick to super
ShaMan123 Sep 14, 2022
02382d0
x
ShaMan123 Sep 14, 2022
fe3045e
Update gradient.class.ts
ShaMan123 Sep 14, 2022
e39eed4
g
ShaMan123 Sep 15, 2022
522d48d
Update gradient.class.ts
ShaMan123 Sep 15, 2022
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
Prev Previous commit
Next Next commit
Update matrix.ts
  • Loading branch information
ShaMan123 committed Sep 13, 2022
commit ccabbcfbcde1ae3f5c3ce4e227a152d8d3c5ab25
4 changes: 2 additions & 2 deletions src/util/misc/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export const multiplyTransformMatrices2 = (
matrices: TMat2D[],
is2x2?: boolean
) => {
let m = iMatrix.concat() as TMat2D;
for (let index = matrices.length - 1; index >= 0; index--) {
let m = matrices[matrices.length - 1];
for (let index = matrices.length - 2; index >= 0; index--) {
m = multiplyTransformMatrices(matrices[index], m, is2x2);
}
return m;
Expand Down