From c7d8bddf24109fbfbf3c13eeee7eda59530cb914 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 23 Oct 2020 22:11:39 +0200 Subject: [PATCH] conversion of note list renderer to class --- src/public/app/services/note_list_renderer.js | 319 ++++++++---------- src/public/app/widgets/type_widgets/book.js | 6 +- 2 files changed, 153 insertions(+), 172 deletions(-) diff --git a/src/public/app/services/note_list_renderer.js b/src/public/app/services/note_list_renderer.js index 8b361ec26..d683e67fe 100644 --- a/src/public/app/services/note_list_renderer.js +++ b/src/public/app/services/note_list_renderer.js @@ -3,35 +3,6 @@ import noteContentRenderer from "./note_content_renderer.js"; import treeCache from "./tree_cache.js"; import attributeService from "./attributes.js"; -const ZOOMS = { - 1: { - width: "100%", - height: "100%" - }, - 2: { - width: "49%", - height: "350px" - }, - 3: { - width: "32%", - height: "250px" - }, - 4: { - width: "24%", - height: "200px" - }, - 5: { - width: "19%", - height: "175px" - }, - 6: { - width: "16%", - height: "150px" - } -}; - -const zoomLevel = 2; - const TPL = `