mirror of https://github.com/KLayout/klayout.git
Backward compatibility mode (with fix): size now also accepts sizing mode as string (for supporting GF180 DRC decks properly)
This commit is contained in:
parent
809f8a8256
commit
4a2d1be8bf
|
|
@ -4805,6 +4805,10 @@ TP_SCRIPT
|
|||
|
||||
n = 1
|
||||
args.each do |a|
|
||||
# accept DRCSizingMode as string as well, i.e. "size(l1, 'square_limit')"
|
||||
if a.is_a?(String) && @engine.respond_to?(a.to_sym)
|
||||
a = @engine.send(a.to_sym)
|
||||
end
|
||||
if a.is_a?(1.class) || a.is_a?(Float)
|
||||
v = @engine._make_value(a)
|
||||
v.abs > dist && dist = v.abs
|
||||
|
|
|
|||
|
|
@ -58,4 +58,5 @@ l3.sized(1.0, diamond_limit).output(202, 0)
|
|||
l3.sized(1.0, 0.5, diamond_limit).output(203, 0)
|
||||
l3.sized(diamond_limit, 1.0, 0.5).output(204, 0)
|
||||
l3.sized(1.0, diamond_limit, size_outside(l2), steps(2)).output(205, 0)
|
||||
l3.sized(1.0, 'diamond_limit').output(206, 0)
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue