k1w1
2e5bd80cdb
Add hack to prevent incorrectly scaled stroke
2024-04-18 17:02:55 -07:00
k1w1
a891b0ad58
Support addPath
properly.
...
However this is not correctly handling the transform. To do it correctly we need to store the sub-paths in the path in their original form (not a string) and apply the transforms at render time.
2024-04-18 13:26:13 -07:00
k1w1
130fe48f8e
Added roundRect support
2023-12-22 19:54:13 -08:00
k1w1
9d7c7bae3e
Fixed arcTo implementation. Previously it only worked in the orientation in the test, but not for lines curving in other directions.
2023-03-09 17:15:52 -08:00
k1w1
7fe0aeaaea
Force all images to be inline bitmaps.
...
Otherwise the SVGs we generate can't be opened by editing tools like Figma.
2022-12-29 15:30:59 -08:00
k1w1
4f7bcfec4c
Fixed clipping behavior and handling of save/restore around stroke and fill.
2022-12-24 14:49:29 -08:00
k1w1
fd024674c0
Added clipping test
2022-12-24 14:15:14 -08:00
k1w1
a61b048f3d
Test for scale/translate/rotate. Currently failing
2022-08-28 10:19:31 -07:00
k1w1
7f59355b0a
Support independent paths
2022-08-22 16:53:26 -07:00
Chris Waters
67d5dfd52e
Merge pull request #4 from aha-app/issue-scale-lineWidth
...
Apply to scale to lineWidth.
2022-07-17 20:14:35 -07:00
Chris Waters
f09378a7a9
Merge pull request #3 from aha-app/issue-ellipse-translate-problem
...
Issue ellipse translate problem
2022-07-17 20:13:57 -07:00
k1w1
87d8a34ed6
Apply to scale to lineWidth.
...
This will only work if scaling is proportional, i.e. X and Y axes are scaled the same.
2022-07-17 11:08:10 -07:00
k1w1
6e7449a639
Fixed problem when rotation is applied
2022-07-17 09:55:39 -07:00
k1w1
c64d8283d4
Fix a problem with ellipse drawing if at translation is applied.
2022-07-17 09:06:40 -07:00
Chris Waters
95702efae3
Merge pull request #2 from aha-app/issue-arc-scaling
...
Fix rendering of arcTo when a scale is applied
2022-07-15 17:58:53 -07:00
k1w1
6c209fccdf
Add support for ellipses
2022-07-15 17:47:47 -07:00
k1w1
f4b7ece357
Add ellipse function
...
Based on code in this PR https://github.com/gliffy/canvas2svg/pull/36
2022-07-14 20:36:39 -07:00
k1w1
e8f9ca5f35
Fix rendering of arcTo when a scale is applied
2022-07-14 20:09:24 -07:00
Zeno Zeng
298cb72b74
test: update text test
2022-03-09 22:58:22 +08:00
Zeno Zeng
8f27fe0974
test: set width & height
2022-03-09 22:49:40 +08:00
Zeno Zeng
c192c00864
test: diff pixels
2022-03-09 22:33:31 +08:00
Zeno Zeng
6bffaccd60
test: init
2022-03-09 21:50:14 +08:00
Xavier Delamotte
f8d0aa06c0
Fix adding CanvasPattern
...
The current code was going into an infinite loop
It's also setting `patternUnits` to `userSpaceOnUse` in order to get the same behaviour as canvas patterns
2021-11-10 16:48:00 +00:00
Zeno Zeng
e0804a60cd
update tests
2021-06-10 20:39:16 +08:00
Zeno Zeng
c0d5b7746d
Merge branch 'main' of github.com:zenozeng/canvas2svg
2021-06-05 13:25:02 +08:00
Zeno Zeng
1ac7fb84f5
unpkg.com/jquery
2021-06-05 13:24:48 +08:00
Zeno Zeng
3703af4632
ctx.prototype.__applyTransformation
2021-06-04 23:49:08 +08:00
Zeno Zeng
d4c59a9c49
feat: rotate & __matrixTransform(x, y)
2021-06-04 22:54:18 +08:00
Zeno Zeng
6b1a1573f4
gulp update_examples
2021-05-23 15:13:55 +08:00
Zeno Zeng
dada4e25b0
test: example/transform
2021-05-23 00:58:30 +08:00
Johnson Zhong
648fdbd007
Give users the option of wrapping an existing Context2D element
2016-09-02 13:24:41 +02:00
clintjd
db62162a47
Merge pull request #42 from Janpot/fix-font
...
Fix __parseFont to not crash
2016-04-21 11:59:26 -07:00
Jan Potoms
6a3e940119
Fix __parseFont to not crash
2016-04-16 22:23:38 +02:00
Jan Potoms
769f20b0e1
.clip was not working, the path never made it to the clip area
2016-04-16 22:06:25 +02:00
fuzhen
d70b13eedd
add tests for globalAlpha
2016-01-16 17:22:47 +08:00
fuzhen
c29f752612
add example of setLineDash
2015-11-27 12:58:41 +08:00
Gabriel Hernandez
967b515663
Merge pull request #30 from ConradIrwin/fix-empty-circles
...
Don't draw invisible circles
2015-09-09 12:09:12 -07:00
Conrad Irwin
c1cb3c284e
Add a test for using a custom document
2015-09-09 00:29:04 -07:00
Conrad Irwin
2a8c062588
Add a test for empty arcs
2015-09-09 00:19:54 -07:00
kerryliu
92ea35cc87
port unit tests to mocha and chai, add img diff example tests, add debug playground, setup travis
2015-06-16 19:16:12 -07:00