add new test files
This commit is contained in:
@@ -19,6 +19,17 @@ class Library(object):
|
||||
class LinkError(Exception):
|
||||
element = None
|
||||
pass
|
||||
|
||||
|
||||
"""
|
||||
normalizes given coordinate according to library units
|
||||
"""
|
||||
def normalize_coord(self, coord, to_meters=False):
|
||||
fact = self.units_per_dbunit
|
||||
if to_meters:
|
||||
fact *= self.meters_per_unit
|
||||
|
||||
return (coord[0] * fact, coord[1] * fact)
|
||||
|
||||
def link_refs(self, progress_callback=None):
|
||||
class Progress(ProgressGetter):
|
||||
|
||||
Reference in New Issue
Block a user