diff --git a/inkscape_driver/eggbot.inx b/inkscape_driver/eggbot.inx
index 8448b36..2b4d84c 100755
--- a/inkscape_driver/eggbot.inx
+++ b/inkscape_driver/eggbot.inx
@@ -4,7 +4,6 @@
command.evilmadscientist.eggbot.rev280b1
org.inkscape.output.svg.inkscape
eggbot.py
- inkex.py
@@ -172,9 +171,9 @@ selected number, which can be up to 100.
<_param name="instructions_general" type="description"
xml:space="preserve">
EggBot Control Inkscape extension
-Release 2.8.1, dated 2019-06-19
+Release 2.8.5, dated 2021-08-09
-* EBB Firmware 2.5.1 or newer is recommended.
+* EBB Firmware 2.6.3 or newer is recommended.
Known issues:
* "Cancel" function does not work while plotting.
diff --git a/inkscape_driver/eggbot_presethatch.inx b/inkscape_driver/eggbot_presethatch.inx
index dc2c528..16e0fc2 100755
--- a/inkscape_driver/eggbot_presethatch.inx
+++ b/inkscape_driver/eggbot_presethatch.inx
@@ -3,7 +3,6 @@
<_name>Preset hatch for fills
command.evilmadscience.hatch.eggbot
eggbot_presethatch.py
- inkex.py
<_param name="title" type="description" xml:space="preserve">
This extension applies a set of eggbot-friendly
default presets to the live path effect called
diff --git a/inkscape_driver/eggbot_presethatch.py b/inkscape_driver/eggbot_presethatch.py
index 1eefb19..a4f6332 100755
--- a/inkscape_driver/eggbot_presethatch.py
+++ b/inkscape_driver/eggbot_presethatch.py
@@ -17,8 +17,11 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
-import inkex
+from lxml import etree
+
+from plot_utils_import import from_dependency_import # plotink
+inkex = from_dependency_import('ink_extensions.inkex')
class PresetHatch(inkex.Effect):
def __init__(self):
diff --git a/inkscape_driver/eggbot_reorder.inx b/inkscape_driver/eggbot_reorder.inx
index 4d9ef33..f454a09 100755
--- a/inkscape_driver/eggbot_reorder.inx
+++ b/inkscape_driver/eggbot_reorder.inx
@@ -3,8 +3,6 @@
<_name>Reorder Paths for Speed
command.evilmadscientist.eggbot.reorder
axidraw_svg_reorder.py
- inkex.py
-
<_param indent="5" name="splashpage" type="description"
appearance="header">EggBot Plot Optimization Tool
diff --git a/inkscape_driver/eggbot_stretch.inx b/inkscape_driver/eggbot_stretch.inx
index 7594af2..8d0bff4 100755
--- a/inkscape_driver/eggbot_stretch.inx
+++ b/inkscape_driver/eggbot_stretch.inx
@@ -2,13 +2,7 @@
<_name>Stretch
command.eggbot.contributed.stretch
- org.inkscape.output.svg.inkscape
eggbot_stretch.py
- inkex.py
- simpletransform.py
- cubicsuperpath.py
- cspsubdiv.py
- bezmisc.py
<_param name="Header" type="description" xml:space="preserve">
This extension will horizontally stretch your drawing. The
diff --git a/inkscape_driver/eggbot_stretch.py b/inkscape_driver/eggbot_stretch.py
index e9c3154..aae237a 100755
--- a/inkscape_driver/eggbot_stretch.py
+++ b/inkscape_driver/eggbot_stretch.py
@@ -19,13 +19,17 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import math
+from lxml import etree
+from plot_utils_import import from_dependency_import # plotink
+simplepath = from_dependency_import('ink_extensions.simplepath')
+bezmisc = from_dependency_import('ink_extensions.bezmisc')
+cspsubdiv = from_dependency_import('ink_extensions.cspsubdiv')
+cubicsuperpath = from_dependency_import('ink_extensions.cubicsuperpath')
+simpletransform = from_dependency_import('ink_extensions.simpletransform')
+inkex = from_dependency_import('ink_extensions.inkex')
+
+
-import bezmisc
-import cspsubdiv
-import cubicsuperpath
-import inkex
-import simplepath
-from simpletransform import applyTransformToPath, applyTransformToPoint, composeTransform, parseTransform
N_PAGE_WIDTH = 3200
N_PAGE_HEIGHT = 800
@@ -218,7 +222,7 @@ class Map(inkex.Effect):
if (vinfo[2] != 0) and (vinfo[3] != 0):
sx = self.docWidth / float(vinfo[2])
sy = self.docHeight / float(vinfo[3])
- self.docTransform = parseTransform('scale({0:f},{1:f})'.format(sx, sy))
+ self.docTransform = simpletransform.parseTransform('scale({0:f},{1:f})'.format(sx, sy))
def getPathVertices(self, path, node=None, transform=None, find_bbox=False):
@@ -246,7 +250,7 @@ class Map(inkex.Effect):
return None
if transform:
- applyTransformToPath(transform, p)
+ simpletransform.applyTransformToPath(transform, p)
# Now traverse the cubic super path
subpath_list = []
@@ -298,13 +302,13 @@ class Map(inkex.Effect):
last_point = subpath[0]
last_point[0] = self.cx + (last_point[0] - self.cx) / math.cos((last_point[1] - self.cy) * steps2rads)
if inv_transform is not None:
- applyTransformToPoint(inv_transform, last_point)
+ simpletransform.applyTransformToPoint(inv_transform, last_point)
new_path += ' M {0:f},{1:f}'.format(last_point[0], last_point[1])
for point in subpath[1:]:
x = self.cx + (point[0] - self.cx) / math.cos((point[1] - self.cy) * steps2rads)
pt = [x, point[1]]
if inv_transform is not None:
- applyTransformToPoint(inv_transform, pt)
+ simpletransform.applyTransformToPoint(inv_transform, pt)
new_path += ' l {0:f},{1:f}'.format(pt[0] - last_point[0], pt[1] - last_point[1])
last_point = pt
@@ -344,7 +348,7 @@ class Map(inkex.Effect):
pass
# First apply the current matrix transform to this node's transform
- mat_new = composeTransform(mat_current, parseTransform(node.get("transform")))
+ mat_new = simpletransform.composeTransform(mat_current, simpletransform.parseTransform(node.get("transform")))
if node.tag in [inkex.addNS('g', 'svg'), 'g']:
self.recursivelyTraverseSvg(node, mat_new, v, find_bbox)
@@ -375,7 +379,7 @@ class Map(inkex.Effect):
y = float(node.get('y', '0'))
# Note: the transform has already been applied
if (x != 0) or (y != 0):
- mat_new2 = composeTransform(mat_new, parseTransform('translate({0:f},{1:f})'.format(x, y)))
+ mat_new2 = simpletransform.composeTransform(mat_new, simpletransform.parseTransform('translate({0:f},{1:f})'.format(x, y)))
else:
mat_new2 = mat_new
v = node.get('visibility', v)
@@ -604,11 +608,11 @@ class Map(inkex.Effect):
if node_transform is None:
return parent_transform
else:
- tr = parseTransform(node_transform)
+ tr = simpletransform.parseTransform(node_transform)
if parent_transform is None:
return tr
else:
- return composeTransform(parent_transform, tr)
+ return simpletransform.composeTransform(parent_transform, tr)
else:
return self.docTransform
diff --git a/inkscape_driver/empty_eggbot.inx b/inkscape_driver/empty_eggbot.inx
index 4bc20bf..a6aabae 100644
--- a/inkscape_driver/empty_eggbot.inx
+++ b/inkscape_driver/empty_eggbot.inx
@@ -3,7 +3,6 @@
<_name>EggBot Template
org.inkscape.render.empty_eggbot
empty_eggbot.py
- inkex.py
- <_item value="EMSAllure">EMS Allure
+
- <_item value="EMSElfin">EMS Elfin
- <_item value="EMSFelix">EMS Felix
+
+
- <_item value="EMSNixish">EMS Nixish
- <_item value="EMSNixishItalic">EMS Nixish Italic
+
+
- <_item value="EMSOsmotron">EMS Osmotron
- <_item value="EMSReadability">EMS Readability
- <_item value="EMSReadabilityItalic">EMS Readability Italic
- <_item value="EMSTech">EMS Tech
+
+
+
+
- <_item value="other">Other (given below)
+
-<_param name="otherFontDesc" type="description" xml:space="preserve">
+
+HersheySans1
-false
+false
-
- <_param name="utilspage" type="description" appearance="header" xml:space="preserve">
+
+
-
- <_item value="sample" >Generate font table
- <_item value="table" >Generate glyph table in selected font
+
+
+
- <_param name="utilspage" type="description" xml:space="preserve">
+
+
The Quick Brown Fox Jumps Over a Lazy Dog
-
- <_param name="aboutpage" type="description" xml:space="preserve">
+
+
-
-<_param name="aboutpage3" type="description" xml:space="preserve">
+
+
@@ -125,7 +125,7 @@ distribution.
all
-
+