add Shape.set_layer()
This commit is contained in:
parent
c236fdb81b
commit
a440f2e256
1 changed files with 13 additions and 0 deletions
|
|
@ -436,6 +436,19 @@ class Shape(metaclass=ABCMeta):
|
||||||
|
|
||||||
return manhattan_polygons
|
return manhattan_polygons
|
||||||
|
|
||||||
|
def set_layer(self: T, layer: layer_t) -> T:
|
||||||
|
"""
|
||||||
|
Chainable method for changing the layer.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
layer: new value for self.layer
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
self
|
||||||
|
"""
|
||||||
|
self.layer = layer
|
||||||
|
return self
|
||||||
|
|
||||||
def lock(self: T) -> T:
|
def lock(self: T) -> T:
|
||||||
"""
|
"""
|
||||||
Lock the Shape, disallowing further changes
|
Lock the Shape, disallowing further changes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue