From d64a28c16620081e2454acea321b692a976817b3 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 13 Sep 2017 11:56:40 -0700 Subject: [PATCH] Beautify the timings display and make it work with the SVG and 3D demos --- demo/client/css/pathfinder.css | 1 + demo/client/html/3d-demo.html.hbs | 2 +- demo/client/html/svg-demo.html.hbs | 2 +- demo/client/html/text-demo.html.hbs | 2 +- demo/client/src/3d-demo.ts | 4 ++-- demo/client/src/app-controller.ts | 31 ++++++++++++++++++++++++++++- demo/client/src/benchmark.ts | 2 +- demo/client/src/svg-demo.ts | 5 ++--- demo/client/src/text-demo.ts | 18 +++++------------ demo/client/src/view.ts | 15 +++++++++++--- 10 files changed, 56 insertions(+), 26 deletions(-) diff --git a/demo/client/css/pathfinder.css b/demo/client/css/pathfinder.css index 3f037ef6..b6829d20 100644 --- a/demo/client/css/pathfinder.css +++ b/demo/client/css/pathfinder.css @@ -70,6 +70,7 @@ button > svg path { #pf-fps-label { color: white; background: rgba(0, 0, 0, 0.75); + width: 17em; } #pf-svg { visibility: hidden; diff --git a/demo/client/html/3d-demo.html.hbs b/demo/client/html/3d-demo.html.hbs index f0cda5fd..84a43792 100644 --- a/demo/client/html/3d-demo.html.hbs +++ b/demo/client/html/3d-demo.html.hbs @@ -10,7 +10,7 @@ {{>partials/navbar.html isDemo=true}}
-
0 ms
+