59 Commits

Author SHA1 Message Date
udifuchs
7c7a7eea62 Populate wx.svg with _nanosvg enum values.
This is for compatibility with wxpython 4.2.2 and any version compiled
with cython 3.1.

Added test cases for these enum values.
2025-11-13 15:40:58 -06:00
udifuchs
afddb14f78 Fix wx.svg to work with cython 3.1 generated code. 2025-11-12 20:05:10 -06:00
Scott Talbert
3484292e88 Remove generated nanosvg Cython code and unpin exact Cython versions 2025-07-14 20:32:53 -04:00
Alexandre Detiste
66a9320917 finish removing six 2025-02-02 20:30:33 -05:00
Alexandre Detiste
323e78c085 remove more Python2 hybridation 2025-02-02 20:29:49 -05:00
Scott Talbert
fe5b6ec799 Update Cython to 3.0.10 and regenerate nanosvg wrapper 2024-07-08 20:40:57 -04:00
Scott Talbert
aeb557d01e Fix compatibility with Cython 3.0.0
Remove unused import which seems to be removed in Cython 3.
2023-07-25 12:42:32 -04:00
Scott Talbert
7f35fb72ff Update Cython to 0.29.34 for Python 3.12 support
(cherry picked from commit 757de9d23a)
2023-05-31 16:34:56 -07:00
Robin Dunn
fb2e6a8ba9 Update cython to latest version (for Python3.11) 2022-08-07 12:51:39 -07:00
Robin Dunn
40e612923d More Py3.10 integer fixes 2021-12-28 22:25:21 -08:00
Robin Dunn
454ef9b2cd Clean it up 2021-12-17 15:00:24 -08:00
Robin Dunn
272990b131 Merge pull request #1997 from cclauss/codespell
Fix typos discovered by codespell
2021-12-13 20:16:39 -08:00
Scott Talbert
b40ab0f806 Update Cython version to fix NanoSVG issues with Python 3.10 2021-11-18 15:23:00 -05:00
Christian Clauss
25ba122168 Fix typos discovered by codespell 2021-08-07 18:55:49 +02:00
Robin Dunn
8a04577f95 Pin cython version to aid in consistency across platforms 2020-10-09 10:04:13 -07:00
Mesalu
7a9b0161c2 update generated c file 2020-06-15 15:24:23 -07:00
Mesalu
a614427893 Use correct cython boolean type 2020-06-15 15:00:25 -07:00
Mesalu
ecb78f75b1 Preserve bytes immutability.
`nanosvg` modifies its input strings in place (see: 9dd92bbfc6/src/nanosvg.h (L348)),
which will lead to issues attempting to use the same python `bytes` object multiple times. Since bytes objects promise immutability its undesirable to permit them to be modified like this.
To correct for this, we'll copy the bytes object into a new location in memory and pass that new memory location to nanosvg.
2020-06-15 13:34:05 -07:00
Robin Dunn
7aac38dbcb Updates needed for animation updates in wxWidgets 2020-04-01 15:30:27 -07:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
e3ef0db163 Fix typos and trim whitespace 2019-12-31 14:13:20 -08:00
Robin Dunn
840ba95f30 switch wx.svg to use wxPython's version number, instead of its own 2019-11-01 15:24:29 -07:00
Robin Dunn
db9781dcdf fix typos 2019-10-31 12:28:48 -07:00
Robin Dunn
9658a8c426 Some fixes for Py2 2019-09-12 11:58:38 -07:00
Robin Dunn
1b03456463 Mention parameter name changes in the radial gradient methods in the MigrationGuide 2019-09-05 18:53:03 -07:00
Robin Dunn
4580d2114f docstring tweak 2019-09-04 14:31:01 -07:00
Robin Dunn
a2a2b25d33 a bit more cleanup 2019-09-04 14:31:01 -07:00
Robin Dunn
c4f30a1eba Docstring tweaks 2019-09-04 14:31:01 -07:00
Robin Dunn
2cc38c2fe3 fix typo 2019-09-04 14:31:01 -07:00
Robin Dunn
552c6874c9 Docstring updates 2019-09-04 14:31:01 -07:00
Robin Dunn
d6bda86a0e Some docstring updates, and add wx.svg to the docs to be built 2019-09-04 14:30:51 -07:00
Robin Dunn
43c2b5c96c Add RasterizeToBuffer 2019-09-04 14:30:51 -07:00
Robin Dunn
68d8224a86 Add/update some docstrings 2019-09-04 14:30:51 -07:00
Robin Dunn
7d7c66920d A little cleanup 2019-09-04 14:30:35 -07:00
Robin Dunn
1fc8ba5aaf Remove linearPoints and radialPointRadius. They are not needed anymore,
and easy enough to do from Python if they are ever needed again.
2019-09-04 14:30:35 -07:00
Robin Dunn
8d6729ae52 GDI+ backend now mostly works okay with the gradient matrix 2019-09-04 14:30:35 -07:00
Robin Dunn
65f5485f16 Use a list for renderers without gradient transform support (so far) 2019-09-04 14:30:22 -07:00
Robin Dunn
57b0ff0408 Transforms on the GDI+ gradients don't work (yet?) so translate the points ourselves. It won't look right for anything but simple transforms, but it will at least look a little like what was intended. Maybe. 2019-09-04 14:30:00 -07:00
Robin Dunn
cb8263bcb4 fix typo in comment 2019-09-04 14:30:00 -07:00
Robin Dunn
424b919b2e Use the gradient transforms and normalized coordinants 2019-09-04 14:29:31 -07:00
Robin Dunn
9e78437974 begin support for gradient pens 2019-09-04 14:28:51 -07:00
Robin Dunn
98410a0742 We need to set the start and stop colors on the gradients. That's what
causes it to fill the areas before the start and after the end of the gradient.
2019-09-04 14:28:09 -07:00
Robin Dunn
8d37c9119f Add RasteriseToBitmap 2019-09-04 14:28:09 -07:00
Robin Dunn
cd6715a254 Move RenderToGC to SVGimage 2019-09-04 14:28:09 -07:00
Robin Dunn
1120ca212b A few docstring tweaks 2019-09-04 14:28:09 -07:00
Robin Dunn
b9e804bdd4 More radial gradient experimenting 2019-09-04 14:28:09 -07:00
Robin Dunn
94b98f968e Rename SVGimage to SVGimageBase, so SVGimage can be pure python and in the __init__.py file 2019-09-04 14:28:09 -07:00
Robin Dunn
ce4a4d96d8 more tweaking around with radial gradients 2019-09-04 14:28:09 -07:00
Robin Dunn
68357daec7 more radial gradient tweaks 2019-09-04 14:28:09 -07:00
Robin Dunn
b4e40843d5 working on radial gradients 2019-09-04 14:28:09 -07:00