775 Révisions

Auteur SHA1 Message Date
ee4147ef99 [Path / PolyCollection / Polygon] fix order of rotation/offset 2025-10-26 21:36:29 -07:00
fe231e558a [Polygon / Path / PolyCollection] Force polygon/path offset to (0, 0)
And disallow setting it.

This offset was basically just a footgun.
2025-10-26 19:13:10 -07:00
ffc8dccbef [Polygon.rect] use floats more explicitly 2025-10-26 18:45:58 -07:00
debb27cdc8 Various type-checking improvements 2025-10-26 18:45:09 -07:00
5a4be88672 [file.gdsii] enable wider annotation key range (to 126 inclusive) 2025-10-26 18:43:45 -07:00
a2fa7648df [BasicTool] enable straight to handle trees (not just flat patterns) 2025-10-26 18:43:14 -07:00
aa175fbb75 [builder.tools] Handle in_ptype=None 2025-10-26 18:28:21 -07:00
00021c00e6 [gdsii_arrow] fix rep_valid 2025-09-14 12:37:49 -07:00
4e69273b5e [gdsii_arrow] fill some more nulls 2025-09-14 12:37:49 -07:00
923c00d72f [gdsii_arrow] fixup 2025-09-14 12:37:49 -07:00
7bd15ede88 [traits.annotatable] Don't break when setting annotations to None 2025-09-14 12:37:49 -07:00
4960c95637 [PolyCollection] many fixes 2025-09-14 12:37:49 -07:00
adbc86100b [gdsii_arrow] fixup annotation types 2025-09-14 12:37:49 -07:00
cb178bb694 [gdsii_arrow] make polycollections if able 2025-09-14 12:37:49 -07:00
18e5a4ac5a [gdsii_arrow] clean unused var in loop 2025-09-14 12:37:49 -07:00
215926269e [gdsii_arrow] fix var name typo 2025-09-14 12:37:48 -07:00
4487c3825b [shapes] Don't create empty dicts for annotations 2025-09-14 12:37:48 -07:00
5608a6717e [PolyCollection] rework PolyCollection into ndarrays of vertices and offsets 2025-09-14 12:37:48 -07:00
b0ec2a51f5 fix some polycollection syntax 2025-09-14 12:37:48 -07:00
jan
ded473c290 [wip] add poly_collection shape 2025-09-14 12:37:48 -07:00
d2f85c70ee fixup indexing 2025-09-14 12:37:48 -07:00
050f1b597c [gdsii_arrow] add some TODO notes 2025-09-14 12:37:48 -07:00
b4116a738d [gdsii_arrow] use direct access for all element types 2025-09-14 12:37:48 -07:00
aae467021b [utils.curves] ignore re-import of trapeziod 2025-09-14 12:37:48 -07:00
5ae990a83b allow annotations to be None
breaking change, but properties are seldom used by anyone afaik
2025-09-14 12:37:48 -07:00
3046e33742 gdsii_arrow wip 2025-09-14 12:37:48 -07:00
6d8efe82f2 split out _read_to_arrow
for ease of debugging
2025-09-14 12:37:48 -07:00
534002d4b5 actually make use of raw mode 2025-09-14 12:37:48 -07:00
jan
4364c809f3 add gdsii_arrow 2025-09-14 12:37:47 -07:00
325a8b9590 [circle] fix mirror ignoring axis 2025-09-14 12:36:17 -07:00
jan
c071b33732 Bump version to v3.4 release v3.4 2025-08-17 21:05:15 +02:00
jan
42a7df3055 add pytest config 2025-08-17 21:03:23 +02:00
5e0eef7c59 [dxf] match ezdxf syntax changes 2025-05-28 00:40:24 -07:00
ad00ade097 [Tool] correctly set input ptype 2025-05-28 00:39:44 -07:00
385a37e0a2 [Pather] fix path_into for some 2-bend cases 2025-05-28 00:39:25 -07:00
35e28acb89 [polygon] Only call rotate if necessary 2025-04-21 19:07:21 -07:00
jan
c1bfee1ddd [library] minor stylistic cleanup 2025-04-15 17:34:05 -07:00
jan
560c165f2e remove deprecated rule from ignore list 2025-04-15 17:26:33 -07:00
jan
284c7e4fd0 Use quoted first arg for cast()
ruff rule TC006
2025-04-15 17:25:56 -07:00
jan
1eac3baf6a [pattern] add arg to , useful for whole-library scaling 2025-04-15 17:21:49 -07:00
5a4b9609bd close code block 2025-03-12 23:14:45 -07:00
30cfa0da31 Bump version to v3.3 v3.3 2025-03-12 23:11:35 -07:00
d11c910dfd [utils.curves] improve type annotations 2025-03-12 23:10:49 -07:00
9b2f8599e6 [utils.curves] use numpy.trapezoid for 2.0 compatibility
fall back to trapz if import fails
2025-03-12 23:09:45 -07:00
6c76e1f5cf Add R90 and R180 constants for rotation shorthand 2025-03-12 23:04:51 -07:00
6567394fbf [utils.curves.bezier] Fix and clarify bezier() code
- Accuracy fix (incorrect +1 term)
- Explicitly index last dim of `nodes`
- Suppress warnings about div by zero
- simplify `umul` and `udiv` calculation
2025-03-04 23:00:52 -08:00
858ef4a114 [utils.curves.euler_bend] add num_point arg and improve naming 2025-03-03 00:53:34 -08:00
b27b1d93d8 [utils.curves.bezier] improve handling of non-ndarray inputs 2025-03-03 00:52:51 -08:00
c74573e7dd [Arc] improve some variable names 2025-03-03 00:52:24 -08:00
0e34242ba5 misc type hint fixes 2025-03-03 00:52:04 -08:00