Skip to content

Commit 4deba77

Browse files
committed
Fix build errors
1 parent 95c094f commit 4deba77

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

src/layout.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class URDFLayout extends PanelLayout {
131131
const joint = this._robotModel.urdfObject.joints[jointName];
132132

133133
// Skip joints which should not be moved
134-
if (joint._jointType == 'fixed') {
134+
if (joint._jointType === 'fixed') {
135135
return;
136136
}
137137

@@ -140,7 +140,7 @@ export class URDFLayout extends PanelLayout {
140140
let limitMax = joint.limit.upper;
141141

142142
// If the limits are not defined, set defaults to +/- 180 degrees
143-
if (limitMin == 0 && limitMax == 0) {
143+
if (limitMin === 0 && limitMax === 0) {
144144
limitMin = -Math.PI;
145145
limitMax = +Math.PI;
146146
}
@@ -152,7 +152,7 @@ export class URDFLayout extends PanelLayout {
152152
const initValue = joint.jointValue;
153153

154154
// Object to be manipulated
155-
let jointObject = { [jointName]: initValue };
155+
const jointObject = { [jointName]: initValue };
156156

157157
// Add slider to GUI
158158
this._gui.__folders['Robot Joints']
@@ -165,7 +165,7 @@ export class URDFLayout extends PanelLayout {
165165
*
166166
* @param bgColor - The new background color as RGB array
167167
*/
168-
setBGColor(bgColor: any): void {
168+
setBGColor(bgColor: any[]): void {
169169
this._viewer.scene.background.r = bgColor[0] / 255;
170170
this._viewer.scene.background.g = bgColor[1] / 255;
171171
this._viewer.scene.background.b = bgColor[2] / 255;
@@ -178,7 +178,7 @@ export class URDFLayout extends PanelLayout {
178178
const defaultColor = [240, 240, 240];
179179

180180
// Object to be manipulated
181-
let colorObject = { Background: defaultColor };
181+
const colorObject = { Background: defaultColor };
182182

183183
// Add controller to GUI
184184
this._gui.__folders['Scene']

src/widget.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,4 @@ export class UrdfPanel extends Panel {
7979
protected onBeforeDetach(msg: Message): void {
8080
super.onBeforeDetach(msg);
8181
}
82-
83-
/**
84-
* Handle event messages sent to widget
85-
*
86-
* @param event - Event on the widget
87-
*/
88-
public handleEvent(event: MouseEvent): void {}
8982
}

0 commit comments

Comments
 (0)