This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree 4 files changed +13
-22
lines changed
API/GcodeApi/Gsimulator/Gcss
4 files changed +13
-22
lines changed Original file line number Diff line number Diff line change @@ -7,45 +7,45 @@ import Gcss from "./src/API/GcodeApi/Gsimulator/Gcss/Gcss.js";
7
7
let a = new G0 ( { } ) ;
8
8
9
9
for ( let i = 0 ; i < 3 ; i ++ ) {
10
- a . moveTo ( { left : 50 , top : 50 } )
10
+ a . moveTo ( { left : 10 , top : 30 } ) ;
11
11
}
12
12
13
13
for ( let i = 0 ; i < 3 ; i ++ ) {
14
- a . moveTo ( { left : 50 } )
14
+ a . moveTo ( { left : 100 } ) ;
15
15
}
16
16
17
17
for ( let i = 0 ; i < 3 ; i ++ ) {
18
18
a . moveTo ( {
19
- bottom : 50
19
+ bottom : 50 ,
20
20
} ) ;
21
21
}
22
22
23
23
for ( let i = 0 ; i < 3 ; i ++ ) {
24
24
a . moveTo ( {
25
- right : 50
25
+ right : 100 ,
26
26
} ) ;
27
27
}
28
28
29
29
for ( let i = 0 ; i < 3 ; i ++ ) {
30
30
a . moveTo ( {
31
- bottom : 50 ,
32
- right : 50
31
+ bottom : 50 ,
32
+ right : 50 ,
33
33
} ) ;
34
34
}
35
35
36
36
for ( let i = 0 ; i < 3 ; i ++ ) {
37
37
a . moveTo ( {
38
- top : 50 ,
39
- right : 50
38
+ top : 50 ,
39
+ right : 20 ,
40
40
} ) ;
41
41
}
42
42
43
43
for ( let i = 0 ; i < 4 ; i ++ ) {
44
- a . moveTo ( { left : 50 } )
44
+ a . moveTo ( { left : 50 } ) ;
45
45
}
46
46
47
47
for ( let i = 0 ; i < 3 ; i ++ ) {
48
- a . moveTo ( { bottom : 50 , left : 50 } )
48
+ a . moveTo ( { bottom : 30 , left : 50 } ) ;
49
49
}
50
50
51
51
let g = new Gcss ( {
Original file line number Diff line number Diff line change @@ -51,15 +51,6 @@ export default class CssLine {
51
51
return remValue * 16 ;
52
52
}
53
53
54
- // this.previusObj.x > this.currentObj.x &&
55
- // this.previusObj.y < this.currentObj.y
56
- // ? this.biggestPos.y
57
- // : this.smallestPos.y
58
-
59
- // this.previusObj.x > this.currentObj.x &&
60
- // this.previusObj.y < this.currentObj.y
61
- // ? -1 * this.lineAngle
62
- // : this.lineAngle
63
54
styleLine ( ) {
64
55
this . lineStylesObj = new StyleLine ( this ) . getResult ( ) ;
65
56
Original file line number Diff line number Diff line change @@ -78,15 +78,15 @@ export default class StyleLine {
78
78
this . obj . previusObj . x > this . obj . currentObj . x &&
79
79
this . obj . currentObj . y > this . obj . previusObj . y
80
80
) {
81
- return this . obj . lineAngle + 90 ;
81
+ return 180 - this . obj . lineAngle ;
82
82
}
83
83
84
84
// left and bottom
85
85
if (
86
86
this . obj . currentObj . x > this . obj . previusObj . x &&
87
87
this . obj . previusObj . y > this . obj . currentObj . y
88
88
) {
89
- return this . obj . lineAngle - 90 ;
89
+ return - 1 * this . obj . lineAngle ;
90
90
}
91
91
92
92
// normal all other direction
Original file line number Diff line number Diff line change 40
40
width : var (--line-width );
41
41
opacity : 1 ;
42
42
}
43
- }
43
+ }
You can’t perform that action at this time.
0 commit comments