Remove some legacy js
This commit is contained in:
parent
b2bee87c02
commit
ea95438786
11
src/index.ts
11
src/index.ts
@ -47,10 +47,7 @@ export class ImageGenerator implements ZipExtractor, LayerGenerator {
|
|||||||
return zip.getEntries().length;
|
return zip.getEntries().length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
//Test archive
|
||||||
* Temporary test method zip file
|
|
||||||
|
|
||||||
*/
|
|
||||||
public testArchive(fileName: string, tmpDir: string): number {
|
public testArchive(fileName: string, tmpDir: string): number {
|
||||||
// Check archive exists
|
// Check archive exists
|
||||||
try {
|
try {
|
||||||
@ -167,10 +164,8 @@ export class ImageGenerator implements ZipExtractor, LayerGenerator {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Take an archive containing gerber files and return a stream containing
|
* Take an archive containing gerber files and return a stream containing
|
||||||
* a PNG image from the gerber
|
* a PNG image from the gerber */
|
||||||
* @param {string} gerber Path to an archive file containing gerber
|
|
||||||
* @returns {Promise.<stream.Readable>} Promise that resolves to a PNG stream
|
|
||||||
*/
|
|
||||||
gerberToStream(gerber: string) {
|
gerberToStream(gerber: string) {
|
||||||
// Check temp and output dirs exist
|
// Check temp and output dirs exist
|
||||||
if (!existsSync(gerber)) {
|
if (!existsSync(gerber)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user