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
Alexandre Detiste
323e78c085
remove more Python2 hybridation
2025-02-02 20:29:49 -05: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
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
9f2cc54b48
Update copyright years
2020-03-10 11:41:39 -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
552c6874c9
Docstring updates
2019-09-04 14:31:01 -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
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
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
Robin Dunn
13796f88c1
Add method to transform and fetch the start and stop points for linear gradients
2019-09-04 14:28:09 -07:00
Robin Dunn
efd8d48b42
Add color_rgba helper for gradient stops
2019-09-04 14:28:09 -07:00
Robin Dunn
f0a0f8a65c
Add rasterization methods
2019-09-04 14:28:09 -07:00
Robin Dunn
ce2046549d
Add color_rgba, points, some __repr__s and other tweaks
2019-09-04 14:28:09 -07:00
Robin Dunn
fc590e69f5
fiddle with buffer options
2019-09-04 14:28:09 -07:00
Robin Dunn
e7ebf2024e
rearrange things and a few minor tweaks
2019-09-04 14:28:08 -07:00
Robin Dunn
1df2811e9e
Update docstring
2019-09-04 14:28:08 -07:00
Robin Dunn
b6e414b275
Add WIP wrappers for nanosvg into the wx.svg package
2019-09-04 14:28:08 -07:00