decktile 0.3.5__tar.gz → 0.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {decktile-0.3.5 → decktile-0.3.7}/PKG-INFO +5 -3
- {decktile-0.3.5 → decktile-0.3.7}/README.md +4 -2
- {decktile-0.3.5 → decktile-0.3.7}/pyproject.toml +1 -1
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/templates/decktile.js +24 -2
- {decktile-0.3.5 → decktile-0.3.7}/LICENSE +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/NOTICE +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/__init__.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/__main__.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/assets/lucide/VENDORED.md +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/assets/lucide/lucide.css +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/assets/lucide/lucide.ttf +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/chart_themes/kubecon_na.toml +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/chart_themes/ossummit_europe.toml +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/cli.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/parser/__init__.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/parser/ast.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/parser/markdown.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/plugins/cards.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/plugins/directives.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/plugins/fenced.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/plugins/layouts.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/plugins/lucide.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/plugins/lucide_font.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/__init__.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/html.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/ir.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/odf/__init__.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/odf/geometry.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/odf/shapes.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/odf/styles.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/odp.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/pdf.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/pdg.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/seaborn.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/templates/base.css +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/render/templates/shell.html +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/theme/__init__.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/theme/loader.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/theme/parser.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/themes/default.css +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/themes/kcd_vietnam.css +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/themes/kubecon_china.css +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/themes/kubecon_japan.css +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/themes/kubecon_na.css +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/themes/ossummit_europe.css +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/src/decktile/themes/ossummit_korea.css +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/__init__.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_cli.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_geometry.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_html.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_ir.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_odf_shapes.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_odp.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_parser.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_pdg.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_seaborn_styles.py +0 -0
- {decktile-0.3.5 → decktile-0.3.7}/tests/test_video.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: decktile
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.7
|
|
4
4
|
Summary: Markdown to designed slides: HTML, PDF and editable ODP
|
|
5
5
|
Author-Email: Reza Jelveh <git@jelveh.me>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -150,8 +150,8 @@ places that should be one. PRs that consolidate repeated logic are welcome.
|
|
|
150
150
|
|
|
151
151
|
| Action | Key / Mouse |
|
|
152
152
|
|--------|-------------|
|
|
153
|
-
| Next slide |
|
|
154
|
-
| Previous slide | Right click, Left arrow, Up arrow, PgUp, Backspace |
|
|
153
|
+
| Next slide | Click or tap the right two thirds of the slide, Right arrow, Down arrow, PgDn, Space |
|
|
154
|
+
| Previous slide | Click or tap the left third of the slide, Right click, Left arrow, Up arrow, PgUp, Backspace |
|
|
155
155
|
| First slide | Home |
|
|
156
156
|
| Last slide | End |
|
|
157
157
|
| Toggle fullscreen | `f` |
|
|
@@ -563,6 +563,8 @@ transition: fade
|
|
|
563
563
|
| `zoom` | Scale .85 + fade |
|
|
564
564
|
| `wipe` | Clip-path reveal |
|
|
565
565
|
|
|
566
|
+
Clicks and taps change slides after 0.3s, so a pinch zoom (second finger) cancels them; while zoomed in, taps do not navigate.
|
|
567
|
+
|
|
566
568
|
All transitions run 0.4s, forwards-only (incoming slide animates).
|
|
567
569
|
|
|
568
570
|
## Dark mode
|
|
@@ -118,8 +118,8 @@ places that should be one. PRs that consolidate repeated logic are welcome.
|
|
|
118
118
|
|
|
119
119
|
| Action | Key / Mouse |
|
|
120
120
|
|--------|-------------|
|
|
121
|
-
| Next slide |
|
|
122
|
-
| Previous slide | Right click, Left arrow, Up arrow, PgUp, Backspace |
|
|
121
|
+
| Next slide | Click or tap the right two thirds of the slide, Right arrow, Down arrow, PgDn, Space |
|
|
122
|
+
| Previous slide | Click or tap the left third of the slide, Right click, Left arrow, Up arrow, PgUp, Backspace |
|
|
123
123
|
| First slide | Home |
|
|
124
124
|
| Last slide | End |
|
|
125
125
|
| Toggle fullscreen | `f` |
|
|
@@ -531,6 +531,8 @@ transition: fade
|
|
|
531
531
|
| `zoom` | Scale .85 + fade |
|
|
532
532
|
| `wipe` | Clip-path reveal |
|
|
533
533
|
|
|
534
|
+
Clicks and taps change slides after 0.3s, so a pinch zoom (second finger) cancels them; while zoomed in, taps do not navigate.
|
|
535
|
+
|
|
534
536
|
All transitions run 0.4s, forwards-only (incoming slide animates).
|
|
535
537
|
|
|
536
538
|
## Dark mode
|
|
@@ -8,6 +8,26 @@ var KEYS_BACK = ['ArrowLeft', 'ArrowUp', 'PageUp', 'Backspace'];
|
|
|
8
8
|
var autoplaySpeed = {{ autoplay }};
|
|
9
9
|
var _autoAdvancing = false;
|
|
10
10
|
|
|
11
|
+
// A click or tap in the left third of `el` goes back, anywhere else forward.
|
|
12
|
+
function tapDirection(e, el) {
|
|
13
|
+
var r = el.getBoundingClientRect();
|
|
14
|
+
return e.clientX < r.left + r.width / 3 ? -1 : 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Clicks navigate after a short delay so a pinch zoom can cancel them: a second
|
|
18
|
+
// finger, a zoom change or a zoomed-in page means the user wants to look closer.
|
|
19
|
+
var TAP_DELAY = 300;
|
|
20
|
+
var _tapTimer = null;
|
|
21
|
+
function _zoomed() { return window.visualViewport && window.visualViewport.scale > 1.01; }
|
|
22
|
+
function _cancelTap() { clearTimeout(_tapTimer); _tapTimer = null; }
|
|
23
|
+
function delayedTap(fn) {
|
|
24
|
+
_cancelTap();
|
|
25
|
+
if (_zoomed()) return;
|
|
26
|
+
_tapTimer = setTimeout(function() { _tapTimer = null; if (!_zoomed()) fn(); }, TAP_DELAY);
|
|
27
|
+
}
|
|
28
|
+
document.addEventListener('touchstart', function(e) { if (e.touches.length > 1) _cancelTap(); }, { passive: true });
|
|
29
|
+
if (window.visualViewport) window.visualViewport.addEventListener('resize', _cancelTap);
|
|
30
|
+
|
|
11
31
|
// ===== VIDEO SYNC (shared) =====
|
|
12
32
|
// Presenter and main windows are separate documents (window.open), each
|
|
13
33
|
// with its own independent <video> element for the same slide -- playing
|
|
@@ -143,7 +163,8 @@ if (isPresenter) {
|
|
|
143
163
|
_wireVideoSync('#pres-main', bc);
|
|
144
164
|
show(0);
|
|
145
165
|
|
|
146
|
-
document.getElementById('pres-main')
|
|
166
|
+
var presMain = document.getElementById('pres-main');
|
|
167
|
+
presMain.addEventListener('click', function(e) { var d = tapDirection(e, presMain); delayedTap(function() { advance(d); }); });
|
|
147
168
|
document.getElementById('pres-main').addEventListener('contextmenu', function(e) {
|
|
148
169
|
e.preventDefault(); advance(-1);
|
|
149
170
|
});
|
|
@@ -327,7 +348,8 @@ if (isPresenter) {
|
|
|
327
348
|
var t = e.target;
|
|
328
349
|
if (t.closest('button, a, input, textarea, select, #decktile-nav, #presenter-panel')) return;
|
|
329
350
|
if (window.getSelection().toString()) return;
|
|
330
|
-
|
|
351
|
+
var d = tapDirection(e, document.documentElement);
|
|
352
|
+
delayedTap(function() { show(current + d); });
|
|
331
353
|
});
|
|
332
354
|
|
|
333
355
|
document.addEventListener('contextmenu', function(e) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|