jaseg
04b34f73c1
Fix jigerator file output
2019-09-29 16:23:32 +02:00
jaseg
e7ec6efd7f
Fix up stl viewer
2019-09-29 16:11:16 +02:00
jaseg
40a8bc7a50
Fix render download
2019-09-29 15:38:42 +02:00
jaseg
1cdeb59d0f
Fix missing deps in renderer makefile
2019-09-29 15:14:59 +02:00
jaseg
fc21843025
Fix typo in job processor
2019-09-29 14:33:40 +02:00
jaseg
87ed5a55d4
Add raw kicad file download
2019-09-29 13:40:05 +02:00
jaseg
00380ac602
Add STL renderer
2019-09-29 13:30:38 +02:00
jaseg
1a6f2a9caa
Jigerator frontend mostly working
2019-09-29 11:39:46 +02:00
jaseg
3acdfe5c19
Fix empty template download
2019-09-28 22:56:55 +02:00
jaseg
031b6f7361
Initial webapp design
2019-09-28 13:53:02 +02:00
jaseg
6002d40914
Directory reorg: Put renderer into its own subdir
2019-09-27 10:07:38 +02:00
jaseg
3340885ade
Made the inkscape exporter headless
2019-09-27 10:04:41 +02:00
jaseg
1f13910211
Add zip generation
2019-09-26 23:58:43 +02:00
jaseg
b2eb56076d
Pogojig mostly done: KiCAD export works
2019-09-26 19:45:54 +02:00
jaseg
82b88f920a
Modify for pogojig infrastructure
2019-09-26 14:28:54 +02:00
Michael Schwarz
27c72f28d0
Workaround for incompatible changes in "LayerMoveTo" verbs
2018-05-05 14:22:24 +02:00
Michael Schwarz
69f08a3e74
Slight refactoring
2018-05-05 14:22:24 +02:00
Michael Schwarz
3566dbc943
PEP8
2017-09-20 20:33:29 +02:00
Michael Schwarz
673a546066
Clarification regarding different point definitions.
2016-01-17 13:31:08 +01:00
Michael Schwarz
0a746f9df2
Yield to caller of process_context() before wait() is called on the process.
2015-10-02 00:34:02 +02:00
Michael Schwarz
ba3bc0513e
Don’t mask exceptions when process.kill() fails.
2015-10-02 00:26:00 +02:00
Michael Schwarz
215ffeb9bb
Fixed asymptote export.
...
stdout was not being redirected into a pipe.
2015-10-02 00:25:49 +02:00
Michael Schwarz
b74aa3b7ce
Reject documents without absolute size.
...
Reject document which do not have a viewBox and a height attribute with absolute measures. In documents without these, the size of a pixel cannot be determined and the scale out the exported shape depends on the Inkscape version.
This fixes #16 .
2015-09-30 18:19:50 +02:00
Michael Schwarz
7a0be0c812
More robust document scale calculation.
...
Rewrite of the code which calculates the document scale and simplified code path which applies the necessary transformations.
2015-09-30 18:16:57 +02:00
Michael Schwarz
39be44f16d
Include input file path in error messages.
2015-09-30 18:14:50 +02:00
Michael Schwarz
9f3e7bf14d
Workaround for LayerMoveToPrev/Next not selecting correct layer.
...
Inkscape does not reliably select the previous or next layer when using LayerMoveToPrev or LayerMoveToNext.
2015-09-30 18:09:55 +02:00
Michael Schwarz
5c05570730
Only convert SVG to Asymptote/DXF if necessary.
...
Instead of always converting all SVG files to both Asymptote and DXF, only the formats which may be used as dependencies are compiled.
2015-09-29 23:08:56 +02:00
Michael Schwarz
883883e41f
Added some missing comments in the make file.
2015-09-16 01:54:54 +02:00
Michael Schwarz
24a60718eb
Implemented Asymptote dependency tracking.
2015-09-16 01:50:24 +02:00
Michael Schwarz
a1f09b7f86
Abstraction which allows a running process to be used as a context manager.
2015-09-16 01:50:24 +02:00
Michael Schwarz
2bd7e1e3d7
Separate module for make file stuff.
2015-09-16 01:50:23 +02:00
Michael Schwarz
096db19a9a
Wrap all Python main functions with decorator.
...
This decorator check if a module was called as the main module and catches exceptions.
2015-09-16 01:50:23 +02:00
Michael Schwarz
93f9696491
Check for Asymptote not writing a PDF file.
...
If no drawing commands are called in an Asymptote script, no PDF output is created and no error is generated. This confuses the build process, which expect a target to exist after its commands were called.
With this change, the Python wrapper checks whether a PDF was actually written and throws an error otherwise.
2015-09-16 01:50:23 +02:00
Michael Schwarz
0c5b944686
Fixed layer mixup when no layer was selected in Inkscape.
...
The Inkscape export would put objects into the wrong layers or miss objects completely when no layer was selected.
2015-09-16 01:50:23 +02:00
Michael Schwarz
2ca55c2d17
Fixed empty layers missing from Asymptote export.
...
Empty layers would not be included in the exported Asymptote file, making it hard to work with a set of SVG files with the same layers if some of the SVG files had empty layers.
2015-09-16 01:50:22 +02:00
Michael Schwarz
e595de1b87
Convert all SVG file to DXF and Asymptote.
...
Currently, the user has to configure which SVG files are exported to DXF and which to Asymptote, without a possibility to do both.
With this change, all SVG files are exported to both file formats, if necessary.
2015-09-16 01:50:15 +02:00
Michael Schwarz
365d639ae4
Ignore $PYTHONPATH.
...
We only use standard library features and thus can safely ignore PYTHONPATH.
2015-09-16 01:41:46 +02:00
Michael Schwarz
4a1b8166e1
Only print abstract information about commands being executed.
...
Most commands only show the python wrapper being called, which does not tell the user much anyways.
2015-09-16 01:41:46 +02:00
Michael Schwarz
a6b45d8e86
Remove targets when commands fail.
...
The make file now removes targets when commands fail. In some cases (e.g. generating files), an error would lead to a half-written file being left behind and that file would not get updated in the next invocation of `make`.
2015-09-16 01:41:45 +02:00
Michael Schwarz
57c9e9dc90
Prevent Python stack trace when an external command failed.
...
This catches the OSError thrown by the subprocess module and wraps it so that in the end only an error message is printed, explaining which command failed.
2015-09-16 01:41:45 +02:00
Michael Schwarz
ab26e5a8d5
Compile Asymptote files in separate working dir.
...
Asymptote leaves a trail of partially cleaned-up temporary files behind it when PDFLaTeX is used.
With this changes, Asymptote files are compiled in a temporary directory outside the project root.
2015-09-16 01:41:26 +02:00
Michael Schwarz
987fa08ce6
New workaround for temp dir on different device.
...
Currently, on setups where the project dir is on a different file system as the system temporary directory, a temporary directory is instead created on the project dir. This is not very nice.
With this change, we still create temporary files in the system temporary directory but copy instead of move files from and to the temporary directory, if necessary, which solves the problems.
2015-09-16 01:40:00 +02:00
Michael Schwarz
63632560b6
Revert "support: Workaround for tempdir on different mount."
...
This reverts commit 3d21efd489 .
2015-09-15 18:59:35 +02:00
Michael Schwarz
853c56a38b
Fixed automatism which clobbered file name extensions.
2015-08-27 15:30:31 +02:00
Michael Schwarz
478c3df1f1
Fixed make warning.
...
This fixes a bug producing warnings like the following:
Makefile:91: target 'src/cube.pdf' given more than once in the same rule
2015-08-27 15:30:31 +02:00
Michael Schwarz
75af06b93e
Makefile: Fixed a potential bug which would include too many files.
2015-08-27 15:30:31 +02:00
Michael Schwarz
55e6362bb6
Updated readme for new features.
2015-08-14 16:07:35 +02:00
Michael Schwarz
7dc8da588e
Asymptote export: Call variable with all paths all.
2015-08-10 21:38:10 +02:00
Michael Schwarz
a2ce9df576
Makefile: Fixed missing dependencies.
...
Asymptote and OpenSCAD targets would not include intermediate files in their dependencies.
2015-08-08 21:56:03 +02:00
Michael Schwarz
2034cdd369
Inkscape export: Removed stray semicolon in exported Asymptote files.
2015-08-07 02:03:50 +02:00