add new test files

This commit is contained in:
julixau committed 2019-07-02 20:05:44 +02:00
1 parent 99b4d73c24
commit 3aaabc6326
11 files changed
+968 -36

No files matched your search

+11
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):