add new test files

This commit is contained in:
2019-07-02 20:05:01 +02:00
parent 99b4d73c24
commit 3aaabc6326
11 changed files with 968 additions and 36 deletions

View File

@@ -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):