Commit Graph

218 Commits (83bc51ae7e366b967f0d498c7dd4efc1028fe047)

Author SHA1 Message Date
Andrew Port 83bc51ae7e make paths and path semgents hashable 2021-09-20 22:02:13 -07:00
Andrew Port be33f182fb
Create SECURITY.md 2021-09-20 20:52:01 -07:00
Andrew Port 81ff41f881 rename unit test yaml/action 2021-09-18 00:37:31 -07:00
Andrew Port 5be6b258e1 run CI only on push to master 2021-09-18 00:28:39 -07:00
Andrew Port add170c926 run CI on any push or pull-request 2021-09-18 00:27:35 -07:00
Andrew Port 7d22c76e10 remove CI workflow_dispatch trigger 2021-09-18 00:23:16 -07:00
Andrew Port f19c473c69 fix ci test command 2021-09-18 00:21:51 -07:00
Andrew Port bd55d303de rename codacy action 2021-09-18 00:21:24 -07:00
Andrew Port 43c0d2d807 replace travis-ci with github-ci 2021-09-18 00:09:44 -07:00
Andrew Port ecd39743ab disable improperly configured codacy coverage reporting 2021-09-17 23:56:05 -07:00
Andrew Port cfc97e0ce2 rename codacy yaml and job 2021-09-17 23:44:07 -07:00
Andrew Port 426ce7d56c add reference to codacy api token 2021-09-17 23:40:23 -07:00
Andrew Port 9c2e403036 style change to prevent false codacy critical alert 2021-09-17 23:38:01 -07:00
Andrew Port 767413c896 remove project api key reference 2021-09-17 23:26:51 -07:00
Andrew Port ed207f2241 create codacity action 2021-09-17 23:16:01 -07:00
Andrew Port c5f49de5fe do not ignore .github directory 2021-09-17 23:15:32 -07:00
Andrew Port dac4600e6f
Create codeql-analysis.yml 2021-09-17 22:49:15 -07:00
Andrew Port 3d22a7cf52 remove redundant is_bezier_segment and is_path_segment defs 2021-09-17 22:35:27 -07:00
Andrew Port a67de75137 remove tags files 2021-09-17 22:32:34 -07:00
Andrew Port 5ea0fb226d add donate button 2021-08-13 00:47:11 -07:00
Andrew Port 8dc12d4efc add delta tolerance to all assertAlmostEquals that don't have one 2021-06-27 22:30:56 -07:00
Vrroom baba1d18b2
arc transform fixed (#98)
* arc transform fixed

* Update svgpathtools/path.py

Co-authored-by: Matthijs Kooijman <matthijs@stdin.nl>

* Fixed rotation bug in transformation of arcs

* Made compatible with python2.7

Changed the shorthand @ for np matrix multiplication to matmul

Co-authored-by: vrroom <vrroomc@github.com>
Co-authored-by: Matthijs Kooijman <matthijs@stdin.nl>
2021-06-22 20:28:24 -07:00
Wes Bouaziz 1e5bfb4252
Correcting a few functions not handling Path having empty _segments (#143)
* Correcting poping from Path objects

Poping from a 1-lengthed Path would yield an error due to not considering that the _segments attribute would be empty after deleting the last element.

* Correcting point function

Unspecified behavior if _segments is empty

* Correcting setter and getter of start and end
2021-05-10 21:12:06 -07:00
Nathan Hurst a0fc28849c
add support for units and handle mindim=None correctly. (#149)
* add support for units and handle mindim=None correctly.

* Move baseunit positional argument to the end to avoid disruption.
2021-05-10 21:09:58 -07:00
tatarize 3a1fe8695d
Bug Corrections. Closes #113, #95, #94, and #71 (#136)
* Closes #113

Previous fix stopped working because numpy is more liberal dividing by zero and returning nan values.

* Closes #71

* Closes #95

* Closes #94
2021-01-16 20:08:58 -08:00
Andrew Port 091394b5e3 fixed problem with path joints becoming discontious after transformation 2020-12-08 22:36:16 -08:00
Andrew Port 561c89ad47 fix fail test (test assumed untrue number of intersections) 2020-12-08 18:45:35 -08:00
Andrew Port ee58270f66 fix incorrectly written assertTrue tests 2020-12-08 18:38:51 -08:00
Andrew Port 30f517e735 fix Arc.center being nan cause of switch to np.sqrt raising different error than math.sqrt 2020-12-08 18:21:24 -08:00
Andrew Port 44e88d54e5 derivative, normal, and unit_tangent now generalize to vectors for path segments (not paths) 2020-12-01 22:49:38 -08:00
Andrew Port f9febbd85e minor, 2/360 -> 180 2020-12-01 22:38:41 -08:00
Andrew Port 1c9363d426 arc.point now supports numpy arrays and math and cmath functions now imported from numpy 2020-12-01 22:09:20 -08:00
Andrew Port 69e2e27efb update travis secure token for pypi 2020-12-01 20:35:08 -08:00
Andrew Port ceffdc4a5b replaced f-strings to keep compatibility with python<3.6 2020-12-01 20:32:26 -08:00
Andrew Port 2fb96b0906 remove no longer used os.getcwd import 2020-12-01 20:03:30 -08:00
Andrew Port 07771be9bf remove unnecessary code block that appends CWD to filenames not involving directories 2020-12-01 20:02:35 -08:00
Andrew Port 5aeb6e3bf7 aesthetic cleanup 2020-12-01 20:00:59 -08:00
Andrew Port 0f4c9c598a set tempdir as default for writing svgs and changed timestamp default behavior 2020-12-01 19:44:54 -08:00
tatarize b3d9544624
Approximate Arcs With Beziers (#130)
* Approximate Arcs With Beziers

* Quadratic in documentation.

* Test Coverage, approximate arcs.
2020-12-01 18:37:15 -08:00
Andrew Port 45dc873f82 fix zero-radius arc crashes and crashes related to use of degenerate Path.closed attribute in parse_path() 2020-11-15 16:23:27 -08:00
Andrew Port cae729bd48 prepared for pypi 2020-11-14 23:44:19 -08:00
Andrew Port 110acc9e00 version -> 1.4.1 2020-11-14 23:42:36 -08:00
Andrew Port 7a183c4e3c aesthetic changes 2020-11-14 23:37:09 -08:00
Andrew Port 9fa559a070 change setup to use md readme and remove rst readme 2020-11-14 23:31:53 -08:00
Andrew Port 1b4ed34ac9 fix messed up setup 2020-11-14 23:30:19 -08:00
Andrew Port 772d6698bf add markdown readme 2020-11-14 23:29:16 -08:00
Andrew Port bdbd976e0a commit branch 2020-11-14 23:22:09 -08:00
Andy Port d354b8ffe4 auto-deploy with travis-ci on new tag 2020-08-04 18:52:45 -07:00
Andy Port 8f92e43f58 prep for PyPI update 2020-08-04 18:22:20 -07:00
Andy Port 4342501591 prep for PyPI update 2020-08-04 18:22:15 -07:00