From 99bb98127f7efed40b4a42628375a69e470f2556 Mon Sep 17 00:00:00 2001
From: Matthias Koefferlein
Date: Wed, 21 Jul 2021 18:51:34 +0200
Subject: [PATCH] Updated doc.
---
src/lay/lay/doc/about/drc_ref_global.xml | 5 ++++-
src/lay/lay/doc/about/drc_ref_source.xml | 15 ++++++++++++++-
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/src/lay/lay/doc/about/drc_ref_global.xml b/src/lay/lay/doc/about/drc_ref_global.xml
index 917ada706..96c622861 100644
--- a/src/lay/lay/doc/about/drc_ref_global.xml
+++ b/src/lay/lay/doc/about/drc_ref_global.xml
@@ -306,6 +306,8 @@ clip(0.mm, 0.mm, 0.5.mm, 0.6.mm)
# shapes now will be taken from the given rectangle and clipped to it
l1 = input(1, 0)
+
+To remove the clip condition, call "clip" without any arguments.
"connect" - Specifies a connection between two layers
@@ -619,11 +621,12 @@ actual edges from the first input (see separation for
Similar to log, but the message is printed formatted as an error
-"extent" - Creates a new layer with the bounding box of the default source
+"extent" - Creates a new layer with the bounding box of the default source or cell bounding boxes
Usage:
- extent
+- extent(cell_filter)
See Source#extent for a description of that function.
diff --git a/src/lay/lay/doc/about/drc_ref_source.xml b/src/lay/lay/doc/about/drc_ref_source.xml
index 05525f41e..20a46bee9 100644
--- a/src/lay/lay/doc/about/drc_ref_source.xml
+++ b/src/lay/lay/doc/about/drc_ref_source.xml
@@ -96,18 +96,31 @@ Use the global version of "edges" without a source object to address the default
This method has been introduced in version 0.27.
-"extent" - Returns a layer with the bounding box of the selected layout
+"extent" - Returns a layer with the bounding box of the selected layout or cells
Usage:
- source.extent
+- source.extent(cell_filter)
+Without an argument, the extent method returns a layer with the bounding box
+of the top cell. With a cell filter argument, the method returns a layer
+with the bounding boxes of the selected cells. The cell filter is a glob
+pattern.
+
The extent function is useful to invert a layer:
inverse_1 = extent.sized(100.0) - input(1, 0)
+
+The following example returns the bounding boxes of all cells whose
+names start with "A":
+
+
+a_cells = extent("A*")
+
"global_transform" - Gets or sets a global transformation