Modurizing file exporters.
This commit is contained in:
parent
fdeecc5fde
commit
29b758c58a
@ -1,14 +1,13 @@
|
|||||||
*Socialmetrica
|
*Socialmetrica
|
||||||
exportAsFileNamed: aName into: aFolder
|
exportAsFileNamed: aName into: aFolder
|
||||||
|
| exporters |
|
||||||
self pngExporter
|
exporters := {'png' -> #pngExporter .
|
||||||
zoomToShapes;
|
'pdf' -> #pdfExporter } asDictionary.
|
||||||
noFixedShapes;
|
exporters keysAndValuesDo: [:k :v |
|
||||||
fileName: (aFolder / (aName, 'png')) fullName;
|
(self perform: v)
|
||||||
export.
|
zoomToShapes;
|
||||||
"self pdfExporter
|
noFixedShapes;
|
||||||
zoomToShapes;
|
fileName: (aFolder / (aName, '.', k)) fullName;
|
||||||
noFixedShapes;
|
export.
|
||||||
fileName: (aFolder / (aName, 'pdf')) fullName;
|
].
|
||||||
export."
|
|
||||||
^ aFolder / aName, 'png'
|
^ aFolder / aName, 'png'
|
Loading…
Reference in New Issue
Block a user