- in Gerber isolation added the option to selectively isolate only certain polygons - made it to work for Legacy(2D) graphic mode

This commit is contained in:
Marius Stanciu
2019-11-25 21:03:12 +02:00
committed by Marius
parent cf3f7687c9
commit 07fb663e7b
5 changed files with 35 additions and 22 deletions

View File

@@ -909,6 +909,14 @@ class ShapeCollectionLegacy:
return self.shape_id
def remove(self, shape_id, update=None):
for k in list(self._shapes.keys()):
if shape_id == k:
self._shapes.pop(k, None)
if update is True:
self.redraw()
def clear(self, update=None):
"""
Clear the canvas of the shapes.