diff --git a/src/lay/lay/doc/about/drc_ref_drc.xml b/src/lay/lay/doc/about/drc_ref_drc.xml
index dc30e7fe4..9b7471ea4 100644
--- a/src/lay/lay/doc/about/drc_ref_drc.xml
+++ b/src/lay/lay/doc/about/drc_ref_drc.xml
@@ -887,10 +887,12 @@ The plain function is equivalent to "primary.sized".
Usage:
-This operation acts on polygons and applies polygon smoothing with the tolerance d. See Layer#smoothed for more details. +This operation acts on polygons and applies polygon smoothing with the tolerance d. 'keep_hv' indicates +whether horizontal and vertical edges are maintained. Default is 'no' which means such edges may be distorted. +See Layer#smoothed for more details.
The "smoothed" method is available as a plain function or as a method on DRC expressions. The plain function is equivalent to "primary.smoothed". diff --git a/src/lay/lay/doc/about/drc_ref_global.xml b/src/lay/lay/doc/about/drc_ref_global.xml index 48877b955..52f6d583b 100644 --- a/src/lay/lay/doc/about/drc_ref_global.xml +++ b/src/lay/lay/doc/about/drc_ref_global.xml @@ -672,6 +672,17 @@ The following example computes every part of the input which is closer than out = in.drc(primary & foreign.sized(0.5.um))
+Usage:
++Applies a global transformation to the default source layout. +See Source#global_transform for a description of this feature. +
Usage:
diff --git a/src/lay/lay/doc/about/drc_ref_source.xml b/src/lay/lay/doc/about/drc_ref_source.xml index 7b29857d1..0b67aae86 100644 --- a/src/lay/lay/doc/about/drc_ref_source.xml +++ b/src/lay/lay/doc/about/drc_ref_source.xml @@ -109,6 +109,40 @@ The extent function is useful to invert a layer: inverse_1 = extent.sized(100.0) - input(1, 0) +Usage:
++This method returns a new source representing the transformed layout. It is provided in the spritit of +Source#clip and similar methods. +
+The transformation
+is either given as a
+
+Multiple transformation specs can be given. In that case the transformations are applied right to left. +Using "global_transform" will reset any global transformation present already. +Without an argument, the global transformation is reset. +
+The following example rotates the layout by 90 degree at the origin (0, 0) and then shifts it up by +100 micrometers: +
+
+source.global_transform(shift(0, 100.um), rotate(90.0)) ++
Usage: