diff --git a/src/app/component/edit-panel/edit-panel.component.html b/src/app/component/edit-panel/edit-panel.component.html
index ec527ac..c2b0e14 100644
--- a/src/app/component/edit-panel/edit-panel.component.html
+++ b/src/app/component/edit-panel/edit-panel.component.html
@@ -121,7 +121,7 @@
(closed)="sectionExpanded['JDistToJ'] = false">
-
Help
Tutorial Videos
-
+ Restart Tutorial (Refresh Required)
PMKS+ is open source! Do you want to help us develop it?
Github Repo
diff --git a/src/app/component/right-panel/right-panel.component.ts b/src/app/component/right-panel/right-panel.component.ts
index 06afbbd..8695c43 100644
--- a/src/app/component/right-panel/right-panel.component.ts
+++ b/src/app/component/right-panel/right-panel.component.ts
@@ -109,6 +109,11 @@ export class RightPanelComponent {
// console.warn(this.isOpen);
}
+ static closeOpenTab() {
+ if(this.isOpen)
+ this.isOpen = false;
+ }
+
getOpenTab() {
return RightPanelComponent.openTab;
}
@@ -277,10 +282,8 @@ export class RightPanelComponent {
logEvent(this.analytics, 'goto_github');
}
- sendNotReady() {
- introJs().start();
- // NewGridComponent.sendNotification('Sorry, the tutorial is not ready yet.');
- // logEvent(this.analytics, 'tutorial_not_ready');
+ resetTutorial() {
+ introJs().setDontShowAgain(false);
}
getBrowserName() {
diff --git a/src/app/component/toolbar/toolbar.component.ts b/src/app/component/toolbar/toolbar.component.ts
index 1925bdd..e07652c 100644
--- a/src/app/component/toolbar/toolbar.component.ts
+++ b/src/app/component/toolbar/toolbar.component.ts
@@ -83,6 +83,10 @@ export class ToolbarComponent implements OnInit, AfterViewInit {
RightPanelComponent.tabClicked(4);
}
+ closeRightPanelTab() {
+ RightPanelComponent.closeOpenTab();
+ }
+
animate: boolean = false;
// static inputAngularVelocity: number = 10;
diff --git a/src/app/services/number-unit-parser.service.ts b/src/app/services/number-unit-parser.service.ts
index fd91c66..06cfd8a 100644
--- a/src/app/services/number-unit-parser.service.ts
+++ b/src/app/services/number-unit-parser.service.ts
@@ -10,19 +10,19 @@ export class NumberUnitParserService {
public formatValueAndUnit(value: number, units: LengthUnit | AngleUnit | ForceUnit): string {
switch (units) {
case LengthUnit.CM:
- return value.toFixed(2) + ' cm';
+ return value.toFixed(4) + ' cm';
case LengthUnit.METER:
- return value.toFixed(2) + ' m';
+ return value.toFixed(4) + ' m';
case LengthUnit.INCH:
- return value.toFixed(2) + ' in';
+ return value.toFixed(4) + ' in';
case AngleUnit.DEGREE:
return value.toFixed(0) + ' deg';
case AngleUnit.RADIAN:
- return value.toFixed(2) + ' rad';
+ return value.toFixed(4) + ' rad';
case ForceUnit.LBF:
- return value.toFixed(2) + ' lbf';
+ return value.toFixed(4) + ' lbf';
case ForceUnit.NEWTON:
- return value.toFixed(2) + ' N';
+ return value.toFixed(4) + ' N';
}
return 'Error in formatValueAndUnit()';
}
diff --git a/src/assets/icons/add_slider.svg b/src/assets/icons/add_slider.svg
index 893b346..dd214da 100644
--- a/src/assets/icons/add_slider.svg
+++ b/src/assets/icons/add_slider.svg
@@ -1,11 +1,12 @@