From e8ba400a3bd2d7c07ff42732305f75d58e2a8403 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Sun, 20 Jun 2021 15:37:53 +0200 Subject: [PATCH] Modifications for test. --- website/o3dv/sidebar.js | 5 ++++- website/o3dv/toolbar.js | 1 + website/o3dv/website.js | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/website/o3dv/sidebar.js b/website/o3dv/sidebar.js index 2c92a8e..edfc4a5 100644 --- a/website/o3dv/sidebar.js +++ b/website/o3dv/sidebar.js @@ -52,7 +52,10 @@ OV.Sidebar = class } else if (property.type === OV.PropertyType.Integer) { valueText = property.value.toLocaleString (); } else if (property.type === OV.PropertyType.Number) { - valueText = property.value.toFixed (2); + valueText = property.value.toLocaleString (undefined, { + minimumFractionDigits: 2, + maximumFractionDigits: 2 + }); } else if (property.type === OV.PropertyType.Percent) { valueText = parseInt (property.value * 100, 10).toString () + '%'; } else if (property.type === OV.PropertyType.Color) { diff --git a/website/o3dv/toolbar.js b/website/o3dv/toolbar.js index 9344877..17d5abf 100644 --- a/website/o3dv/toolbar.js +++ b/website/o3dv/toolbar.js @@ -18,6 +18,7 @@ OV.ToolbarButton = class if (this.onClick !== null) { this.buttonDiv.click (this.onClick); } + this.buttonDiv.attr ('alt', this.imageTitle); OV.InstallTooltip (this.buttonDiv, this.imageTitle); this.Update (); } diff --git a/website/o3dv/website.js b/website/o3dv/website.js index 7f61d28..1c37558 100644 --- a/website/o3dv/website.js +++ b/website/o3dv/website.js @@ -283,7 +283,7 @@ OV.Website = class }); }); AddSeparator (this.toolbar); - AddButton (this.toolbar, 'fit', 'Fit model to Window', false, function () { + AddButton (this.toolbar, 'fit', 'Fit model to window', false, function () { obj.FitModelToWindow (false); }); AddButton (this.toolbar, 'up_y', 'Set Y axis as up vector', false, function () { @@ -330,7 +330,7 @@ OV.Website = class }); }); } - AddRightButton (this.toolbar, 'details', 'Details Panel', true, function () { + AddRightButton (this.toolbar, 'details', 'Details panel', true, function () { obj.ShowSidebar (!obj.sidebar.IsVisible ()); });