@duet3d/gcodeviewer 3.7.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GCodeCommands/blank.d.ts +3 -0
- package/dist/GCodeCommands/g0g1.d.ts +3 -0
- package/dist/GCodeCommands/g10.d.ts +3 -0
- package/dist/GCodeCommands/g11.d.ts +3 -0
- package/dist/GCodeCommands/g20.d.ts +3 -0
- package/dist/GCodeCommands/g21.d.ts +3 -0
- package/dist/GCodeCommands/g28.d.ts +3 -0
- package/dist/GCodeCommands/g29.d.ts +3 -0
- package/dist/GCodeCommands/g2g3.d.ts +3 -0
- package/dist/GCodeCommands/g90.d.ts +3 -0
- package/dist/GCodeCommands/g91.d.ts +3 -0
- package/dist/GCodeCommands/index.d.ts +19 -0
- package/dist/GCodeCommands/m3m4.d.ts +3 -0
- package/dist/GCodeCommands/m5.d.ts +3 -0
- package/dist/GCodeCommands/m567.d.ts +3 -0
- package/dist/GCodeCommands/m600.d.ts +3 -0
- package/dist/GCodeCommands/processline.d.ts +3 -0
- package/dist/GCodeCommands/stepper.d.ts +7 -0
- package/dist/GCodeCommands/t.d.ts +3 -0
- package/dist/GCodeCommands/temperature.d.ts +6 -0
- package/dist/GCodeCommands/workplace.d.ts +3 -0
- package/dist/GCodeLines/arcmove.d.ts +17 -0
- package/dist/GCodeLines/base.d.ts +8 -0
- package/dist/GCodeLines/command.d.ts +6 -0
- package/dist/GCodeLines/comment.d.ts +7 -0
- package/dist/GCodeLines/index.d.ts +7 -0
- package/dist/GCodeLines/mcode.d.ts +6 -0
- package/dist/GCodeLines/move.d.ts +33 -0
- package/dist/GCodeLines/move_thin.d.ts +14 -0
- package/dist/GCodeParsers/cura.d.ts +52 -0
- package/dist/GCodeParsers/genericbase.d.ts +3 -0
- package/dist/GCodeParsers/ideamaker.d.ts +97 -0
- package/dist/GCodeParsers/kirimoto.d.ts +52 -0
- package/dist/GCodeParsers/orcaslicer.d.ts +72 -0
- package/dist/GCodeParsers/prusaslicer.d.ts +97 -0
- package/dist/GCodeParsers/slicerbase.d.ts +15 -0
- package/dist/GCodeParsers/slicerfactory.d.ts +1 -0
- package/dist/GCodeParsers/superslicer.d.ts +97 -0
- package/dist/Renderables/axes.d.ts +16 -0
- package/dist/Renderables/bed.d.ts +53 -0
- package/dist/Renderables/buildobjects.d.ts +35 -0
- package/dist/Renderables/nozzle.d.ts +81 -0
- package/dist/Renderables/textplane.d.ts +3 -0
- package/dist/Renderables/viewbox.d.ts +27 -0
- package/dist/gpupicker.d.ts +22 -0
- package/dist/index.cjs.js +432 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +431 -0
- package/dist/lineshader.d.ts +30 -0
- package/dist/modelmaterial.d.ts +24 -0
- package/dist/processor.d.ts +96 -0
- package/dist/processorproperties.d.ts +64 -0
- package/dist/rendershaders.d.ts +2 -0
- package/dist/tools.d.ts +9 -0
- package/dist/util.d.ts +17 -0
- package/dist/viewer-direct.d.ts +21 -0
- package/dist/viewer-proxy.d.ts +73 -0
- package/dist/viewer.d.ts +87 -0
- package/dist/viewer.worker.d.ts +1 -0
- package/dist/wasmprocessor.d.ts +37 -0
- package/package.json +38 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { default as blank } from './blank';
|
|
2
|
+
export { default as g0g1 } from './g0g1';
|
|
3
|
+
export { default as g10 } from './g10';
|
|
4
|
+
export { default as g11 } from './g11';
|
|
5
|
+
export { default as g20 } from './g20';
|
|
6
|
+
export { default as g21 } from './g21';
|
|
7
|
+
export { default as g28 } from './g28';
|
|
8
|
+
export { default as g29 } from './g29';
|
|
9
|
+
export { default as g2g3 } from './g2g3';
|
|
10
|
+
export { default as g90 } from './g90';
|
|
11
|
+
export { default as g91 } from './g91';
|
|
12
|
+
export { default as m3m4 } from './m3m4';
|
|
13
|
+
export { default as m5 } from './m5';
|
|
14
|
+
export { default as m567 } from './m567';
|
|
15
|
+
export { default as m600 } from './m600';
|
|
16
|
+
export { default as t } from './t';
|
|
17
|
+
export { default as workplace } from './workplace';
|
|
18
|
+
export { m104, m109, m140, m190 } from './temperature';
|
|
19
|
+
export { m17, m82, m83, m84, m92 } from './stepper';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
2
|
+
import { Comment } from '../GCodeLines';
|
|
3
|
+
export declare function m17(props: ProcessorProperties, line: string): Comment;
|
|
4
|
+
export declare function m82(props: ProcessorProperties, line: string): Comment;
|
|
5
|
+
export declare function m83(props: ProcessorProperties, line: string): Comment;
|
|
6
|
+
export declare function m84(props: ProcessorProperties, line: string): Comment;
|
|
7
|
+
export declare function m92(props: ProcessorProperties, line: string): Comment;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
2
|
+
import { Comment } from '../GCodeLines';
|
|
3
|
+
export declare function m104(props: ProcessorProperties, line: string): Comment;
|
|
4
|
+
export declare function m109(props: ProcessorProperties, line: string): Comment;
|
|
5
|
+
export declare function m140(props: ProcessorProperties, line: string): Comment;
|
|
6
|
+
export declare function m190(props: ProcessorProperties, line: string): Comment;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Base, Move } from './';
|
|
2
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
3
|
+
export default class ArcMove extends Base {
|
|
4
|
+
lineType: string;
|
|
5
|
+
tool: number;
|
|
6
|
+
start: number[];
|
|
7
|
+
end: number[];
|
|
8
|
+
extruding: boolean;
|
|
9
|
+
color: number[];
|
|
10
|
+
feedRate: number;
|
|
11
|
+
layerHeight: number;
|
|
12
|
+
isPerimeter: boolean;
|
|
13
|
+
isSupport: boolean;
|
|
14
|
+
colorId: number[];
|
|
15
|
+
segments: Move[];
|
|
16
|
+
constructor(props: ProcessorProperties, line: string);
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Base } from './base';
|
|
2
|
+
export { default as Command } from './command';
|
|
3
|
+
export { default as Comment } from './comment';
|
|
4
|
+
export { default as MCode } from './mcode';
|
|
5
|
+
export { default as Move } from './move';
|
|
6
|
+
export { default as ArcMove } from './arcmove';
|
|
7
|
+
export { default as Move_Thin } from './move_thin';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Color4 } from '@babylonjs/core/Maths/math.color';
|
|
2
|
+
import { Matrix } from '@babylonjs/core/Maths/math.vector';
|
|
3
|
+
import { default as Base } from './base';
|
|
4
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
5
|
+
export declare class PointData {
|
|
6
|
+
Matrix: Matrix;
|
|
7
|
+
Color: Color4;
|
|
8
|
+
Props: any;
|
|
9
|
+
}
|
|
10
|
+
export declare class MoveData {
|
|
11
|
+
Matrix: Matrix;
|
|
12
|
+
Color: number[];
|
|
13
|
+
Props: any;
|
|
14
|
+
}
|
|
15
|
+
export default class Move extends Base {
|
|
16
|
+
lineType: string;
|
|
17
|
+
tool: number;
|
|
18
|
+
start: number[];
|
|
19
|
+
end: number[];
|
|
20
|
+
extruding: boolean;
|
|
21
|
+
color: number[];
|
|
22
|
+
feedRate: number;
|
|
23
|
+
layerHeight: number;
|
|
24
|
+
isPerimeter: boolean;
|
|
25
|
+
isSupport: boolean;
|
|
26
|
+
colorId: number[];
|
|
27
|
+
constructor(props: ProcessorProperties, line: string);
|
|
28
|
+
get length(): number;
|
|
29
|
+
static add(a: number[], b: number[]): number[];
|
|
30
|
+
static subtract(a: number[], b: number[]): number[];
|
|
31
|
+
static divide(a: number[], b: number[]): number[];
|
|
32
|
+
renderLine(nozzleSize?: number, padding?: number): MoveData;
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Mesh } from '@babylonjs/core/Meshes/mesh';
|
|
2
|
+
import { Base, Move, ArcMove } from '.';
|
|
3
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
4
|
+
export default class extends Base {
|
|
5
|
+
color: number[];
|
|
6
|
+
mesh: Mesh;
|
|
7
|
+
index: number;
|
|
8
|
+
constructor(props: ProcessorProperties, move: Move | ArcMove, mesh: any, index: number);
|
|
9
|
+
get transportData(): {
|
|
10
|
+
line: string;
|
|
11
|
+
lineNumber: number;
|
|
12
|
+
filePosition: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
2
|
+
import { default as SlicerBase } from './slicerbase';
|
|
3
|
+
export default class Cura extends SlicerBase {
|
|
4
|
+
featureList: {
|
|
5
|
+
SKIN: {
|
|
6
|
+
color: number[];
|
|
7
|
+
perimeter: boolean;
|
|
8
|
+
support: boolean;
|
|
9
|
+
};
|
|
10
|
+
'WALL-OUTER': {
|
|
11
|
+
color: number[];
|
|
12
|
+
perimeter: boolean;
|
|
13
|
+
support: boolean;
|
|
14
|
+
};
|
|
15
|
+
'WALL-INNER': {
|
|
16
|
+
color: number[];
|
|
17
|
+
perimeter: boolean;
|
|
18
|
+
support: boolean;
|
|
19
|
+
};
|
|
20
|
+
FILL: {
|
|
21
|
+
color: number[];
|
|
22
|
+
perimeter: boolean;
|
|
23
|
+
support: boolean;
|
|
24
|
+
};
|
|
25
|
+
SKIRT: {
|
|
26
|
+
color: number[];
|
|
27
|
+
perimeter: boolean;
|
|
28
|
+
support: boolean;
|
|
29
|
+
};
|
|
30
|
+
SUPPORT: {
|
|
31
|
+
color: number[];
|
|
32
|
+
perimeter: boolean;
|
|
33
|
+
support: boolean;
|
|
34
|
+
};
|
|
35
|
+
CUSTOM: {
|
|
36
|
+
color: number[];
|
|
37
|
+
perimeter: boolean;
|
|
38
|
+
support: boolean;
|
|
39
|
+
};
|
|
40
|
+
UNKNOWN: {
|
|
41
|
+
color: number[];
|
|
42
|
+
perimeter: boolean;
|
|
43
|
+
support: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
constructor();
|
|
47
|
+
processComment(comment: string): void;
|
|
48
|
+
getFeatureColor(): number[];
|
|
49
|
+
isPerimeter(): boolean;
|
|
50
|
+
isSupport(): boolean;
|
|
51
|
+
processHeader(file: string[], props: ProcessorProperties): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
2
|
+
import { default as SlicerBase } from './slicerbase';
|
|
3
|
+
export default class PrusaSlicer extends SlicerBase {
|
|
4
|
+
featureList: {
|
|
5
|
+
PERIMETER: {
|
|
6
|
+
color: number[];
|
|
7
|
+
perimeter: boolean;
|
|
8
|
+
support: boolean;
|
|
9
|
+
};
|
|
10
|
+
'EXTERNAL PERIMETER': {
|
|
11
|
+
color: number[];
|
|
12
|
+
perimeter: boolean;
|
|
13
|
+
support: boolean;
|
|
14
|
+
};
|
|
15
|
+
'INTERNAL INFILL': {
|
|
16
|
+
color: number[];
|
|
17
|
+
perimeter: boolean;
|
|
18
|
+
support: boolean;
|
|
19
|
+
};
|
|
20
|
+
'SOLID INFILL': {
|
|
21
|
+
color: number[];
|
|
22
|
+
perimeter: boolean;
|
|
23
|
+
support: boolean;
|
|
24
|
+
};
|
|
25
|
+
'TOP SOLID INFILL': {
|
|
26
|
+
color: number[];
|
|
27
|
+
perimeter: boolean;
|
|
28
|
+
support: boolean;
|
|
29
|
+
};
|
|
30
|
+
'BRIDGE INFILL': {
|
|
31
|
+
color: number[];
|
|
32
|
+
perimeter: boolean;
|
|
33
|
+
support: boolean;
|
|
34
|
+
};
|
|
35
|
+
'GAP FILL': {
|
|
36
|
+
color: number[];
|
|
37
|
+
perimeter: boolean;
|
|
38
|
+
support: boolean;
|
|
39
|
+
};
|
|
40
|
+
SKIRT: {
|
|
41
|
+
color: number[];
|
|
42
|
+
perimeter: boolean;
|
|
43
|
+
support: boolean;
|
|
44
|
+
};
|
|
45
|
+
'SKIRT/BRIM': {
|
|
46
|
+
color: number[];
|
|
47
|
+
perimeter: boolean;
|
|
48
|
+
support: boolean;
|
|
49
|
+
};
|
|
50
|
+
'SUPPORTED MATERIAL': {
|
|
51
|
+
color: number[];
|
|
52
|
+
perimeter: boolean;
|
|
53
|
+
support: boolean;
|
|
54
|
+
};
|
|
55
|
+
'SUPPORTED MATERIAL INTERFACE': {
|
|
56
|
+
color: number[];
|
|
57
|
+
perimeter: boolean;
|
|
58
|
+
support: boolean;
|
|
59
|
+
};
|
|
60
|
+
CUSTOM: {
|
|
61
|
+
color: number[];
|
|
62
|
+
perimeter: boolean;
|
|
63
|
+
support: boolean;
|
|
64
|
+
};
|
|
65
|
+
UNKNOWN: {
|
|
66
|
+
color: number[];
|
|
67
|
+
perimeter: boolean;
|
|
68
|
+
support: boolean;
|
|
69
|
+
};
|
|
70
|
+
'SUPPORT MATERIAL': {
|
|
71
|
+
color: number[];
|
|
72
|
+
perimeter: boolean;
|
|
73
|
+
support: boolean;
|
|
74
|
+
};
|
|
75
|
+
'SUPPORT MATERIAL INTERFACE': {
|
|
76
|
+
color: number[];
|
|
77
|
+
perimeter: boolean;
|
|
78
|
+
support: boolean;
|
|
79
|
+
};
|
|
80
|
+
'OVERHANG PERIMETER': {
|
|
81
|
+
color: number[];
|
|
82
|
+
perimeter: boolean;
|
|
83
|
+
support: boolean;
|
|
84
|
+
};
|
|
85
|
+
'WIPE TOWER': {
|
|
86
|
+
color: number[];
|
|
87
|
+
perimeter: boolean;
|
|
88
|
+
support: boolean;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
constructor();
|
|
92
|
+
processComment(comment: string): void;
|
|
93
|
+
getFeatureColor(): number[];
|
|
94
|
+
isPerimeter(): boolean;
|
|
95
|
+
isSupport(): boolean;
|
|
96
|
+
processHeader(file: string[], props: ProcessorProperties): void;
|
|
97
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
2
|
+
import { default as SlicerBase } from './slicerbase';
|
|
3
|
+
export default class KiriMoto extends SlicerBase {
|
|
4
|
+
featureList: {
|
|
5
|
+
SHELLS: {
|
|
6
|
+
color: number[];
|
|
7
|
+
perimeter: boolean;
|
|
8
|
+
support: boolean;
|
|
9
|
+
};
|
|
10
|
+
'SPARSE INFILL': {
|
|
11
|
+
color: number[];
|
|
12
|
+
perimeter: boolean;
|
|
13
|
+
support: boolean;
|
|
14
|
+
};
|
|
15
|
+
'SOLID FILL': {
|
|
16
|
+
color: number[];
|
|
17
|
+
perimeter: boolean;
|
|
18
|
+
support: boolean;
|
|
19
|
+
};
|
|
20
|
+
UNKNOWN: {
|
|
21
|
+
color: number[];
|
|
22
|
+
perimeter: boolean;
|
|
23
|
+
support: boolean;
|
|
24
|
+
};
|
|
25
|
+
'SUPPORT MATERIAL': {
|
|
26
|
+
color: number[];
|
|
27
|
+
perimeter: boolean;
|
|
28
|
+
support: boolean;
|
|
29
|
+
};
|
|
30
|
+
'SUPPORT MATERIAL INTERFACE': {
|
|
31
|
+
color: number[];
|
|
32
|
+
perimeter: boolean;
|
|
33
|
+
support: boolean;
|
|
34
|
+
};
|
|
35
|
+
'OVERHANG PERIMETER': {
|
|
36
|
+
color: number[];
|
|
37
|
+
perimeter: boolean;
|
|
38
|
+
support: boolean;
|
|
39
|
+
};
|
|
40
|
+
'WIPE TOWER': {
|
|
41
|
+
color: number[];
|
|
42
|
+
perimeter: boolean;
|
|
43
|
+
support: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
constructor();
|
|
47
|
+
processComment(comment: string): void;
|
|
48
|
+
getFeatureColor(): number[];
|
|
49
|
+
isPerimeter(): boolean;
|
|
50
|
+
isSupport(): boolean;
|
|
51
|
+
processHeader(file: string[], props: ProcessorProperties): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
2
|
+
import { default as SlicerBase } from './slicerbase';
|
|
3
|
+
export default class OrcaSlicer extends SlicerBase {
|
|
4
|
+
featureList: {
|
|
5
|
+
'OUTER WALL': {
|
|
6
|
+
color: number[];
|
|
7
|
+
perimeter: boolean;
|
|
8
|
+
support: boolean;
|
|
9
|
+
};
|
|
10
|
+
'INNER WALL': {
|
|
11
|
+
color: number[];
|
|
12
|
+
perimeter: boolean;
|
|
13
|
+
support: boolean;
|
|
14
|
+
};
|
|
15
|
+
'OVERHANG WALL': {
|
|
16
|
+
color: number[];
|
|
17
|
+
perimeter: boolean;
|
|
18
|
+
support: boolean;
|
|
19
|
+
};
|
|
20
|
+
'SPARSE INFILL': {
|
|
21
|
+
color: number[];
|
|
22
|
+
perimeter: boolean;
|
|
23
|
+
support: boolean;
|
|
24
|
+
};
|
|
25
|
+
'INTERNAL SOLID INFILL': {
|
|
26
|
+
color: number[];
|
|
27
|
+
perimeter: boolean;
|
|
28
|
+
support: boolean;
|
|
29
|
+
};
|
|
30
|
+
'TOP SURFACE': {
|
|
31
|
+
color: number[];
|
|
32
|
+
perimeter: boolean;
|
|
33
|
+
support: boolean;
|
|
34
|
+
};
|
|
35
|
+
'BOTTOM SURFACE': {
|
|
36
|
+
color: number[];
|
|
37
|
+
perimeter: boolean;
|
|
38
|
+
support: boolean;
|
|
39
|
+
};
|
|
40
|
+
BRIDGE: {
|
|
41
|
+
color: number[];
|
|
42
|
+
perimeter: boolean;
|
|
43
|
+
support: boolean;
|
|
44
|
+
};
|
|
45
|
+
CUSTOM: {
|
|
46
|
+
color: number[];
|
|
47
|
+
perimeter: boolean;
|
|
48
|
+
support: boolean;
|
|
49
|
+
};
|
|
50
|
+
SUPPORT: {
|
|
51
|
+
color: number[];
|
|
52
|
+
perimeter: boolean;
|
|
53
|
+
support: boolean;
|
|
54
|
+
};
|
|
55
|
+
'SUPPORT INTERFACE': {
|
|
56
|
+
color: number[];
|
|
57
|
+
perimeter: boolean;
|
|
58
|
+
support: boolean;
|
|
59
|
+
};
|
|
60
|
+
'PRIME TOWER': {
|
|
61
|
+
color: number[];
|
|
62
|
+
perimeter: boolean;
|
|
63
|
+
support: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
constructor();
|
|
67
|
+
processComment(comment: string): void;
|
|
68
|
+
getFeatureColor(): number[];
|
|
69
|
+
isPerimeter(): boolean;
|
|
70
|
+
isSupport(): boolean;
|
|
71
|
+
processHeader(file: string[], props: ProcessorProperties): void;
|
|
72
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
2
|
+
import { default as SlicerBase } from './slicerbase';
|
|
3
|
+
export default class PrusaSlicer extends SlicerBase {
|
|
4
|
+
featureList: {
|
|
5
|
+
PERIMETER: {
|
|
6
|
+
color: number[];
|
|
7
|
+
perimeter: boolean;
|
|
8
|
+
support: boolean;
|
|
9
|
+
};
|
|
10
|
+
'EXTERNAL PERIMETER': {
|
|
11
|
+
color: number[];
|
|
12
|
+
perimeter: boolean;
|
|
13
|
+
support: boolean;
|
|
14
|
+
};
|
|
15
|
+
'INTERNAL INFILL': {
|
|
16
|
+
color: number[];
|
|
17
|
+
perimeter: boolean;
|
|
18
|
+
support: boolean;
|
|
19
|
+
};
|
|
20
|
+
'SOLID INFILL': {
|
|
21
|
+
color: number[];
|
|
22
|
+
perimeter: boolean;
|
|
23
|
+
support: boolean;
|
|
24
|
+
};
|
|
25
|
+
'TOP SOLID INFILL': {
|
|
26
|
+
color: number[];
|
|
27
|
+
perimeter: boolean;
|
|
28
|
+
support: boolean;
|
|
29
|
+
};
|
|
30
|
+
'BRIDGE INFILL': {
|
|
31
|
+
color: number[];
|
|
32
|
+
perimeter: boolean;
|
|
33
|
+
support: boolean;
|
|
34
|
+
};
|
|
35
|
+
'GAP FILL': {
|
|
36
|
+
color: number[];
|
|
37
|
+
perimeter: boolean;
|
|
38
|
+
support: boolean;
|
|
39
|
+
};
|
|
40
|
+
SKIRT: {
|
|
41
|
+
color: number[];
|
|
42
|
+
perimeter: boolean;
|
|
43
|
+
support: boolean;
|
|
44
|
+
};
|
|
45
|
+
'SKIRT/BRIM': {
|
|
46
|
+
color: number[];
|
|
47
|
+
perimeter: boolean;
|
|
48
|
+
support: boolean;
|
|
49
|
+
};
|
|
50
|
+
'SUPPORTED MATERIAL': {
|
|
51
|
+
color: number[];
|
|
52
|
+
perimeter: boolean;
|
|
53
|
+
support: boolean;
|
|
54
|
+
};
|
|
55
|
+
'SUPPORTED MATERIAL INTERFACE': {
|
|
56
|
+
color: number[];
|
|
57
|
+
perimeter: boolean;
|
|
58
|
+
support: boolean;
|
|
59
|
+
};
|
|
60
|
+
CUSTOM: {
|
|
61
|
+
color: number[];
|
|
62
|
+
perimeter: boolean;
|
|
63
|
+
support: boolean;
|
|
64
|
+
};
|
|
65
|
+
UNKNOWN: {
|
|
66
|
+
color: number[];
|
|
67
|
+
perimeter: boolean;
|
|
68
|
+
support: boolean;
|
|
69
|
+
};
|
|
70
|
+
'SUPPORT MATERIAL': {
|
|
71
|
+
color: number[];
|
|
72
|
+
perimeter: boolean;
|
|
73
|
+
support: boolean;
|
|
74
|
+
};
|
|
75
|
+
'SUPPORT MATERIAL INTERFACE': {
|
|
76
|
+
color: number[];
|
|
77
|
+
perimeter: boolean;
|
|
78
|
+
support: boolean;
|
|
79
|
+
};
|
|
80
|
+
'OVERHANG PERIMETER': {
|
|
81
|
+
color: number[];
|
|
82
|
+
perimeter: boolean;
|
|
83
|
+
support: boolean;
|
|
84
|
+
};
|
|
85
|
+
'WIPE TOWER': {
|
|
86
|
+
color: number[];
|
|
87
|
+
perimeter: boolean;
|
|
88
|
+
support: boolean;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
constructor();
|
|
92
|
+
processComment(comment: string): void;
|
|
93
|
+
getFeatureColor(): number[];
|
|
94
|
+
isPerimeter(): boolean;
|
|
95
|
+
isSupport(): boolean;
|
|
96
|
+
processHeader(file: string[], props: ProcessorProperties): void;
|
|
97
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as ProcessorProperties } from '../processorproperties';
|
|
2
|
+
export default abstract class SlicerBase {
|
|
3
|
+
feature: string;
|
|
4
|
+
currentFeatureColor: number[];
|
|
5
|
+
currentIsPerimeter: boolean;
|
|
6
|
+
currentIsSupport: boolean;
|
|
7
|
+
missingFeatures: any[];
|
|
8
|
+
constructor();
|
|
9
|
+
processComment(comment: string): void;
|
|
10
|
+
isPerimeter(): boolean;
|
|
11
|
+
isSupport(): boolean;
|
|
12
|
+
getFeatureColor(): number[];
|
|
13
|
+
reportMissingFeature(featureName: any): void;
|
|
14
|
+
processComments(file: string[], props: ProcessorProperties): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function slicerFactory(gcode: any): any;
|