decktile 0.3.6__tar.gz → 0.3.8__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.6 → decktile-0.3.8}/PKG-INFO +3 -1
- {decktile-0.3.6 → decktile-0.3.8}/README.md +2 -0
- {decktile-0.3.6 → decktile-0.3.8}/pyproject.toml +1 -1
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/templates/decktile.js +17 -2
- {decktile-0.3.6 → decktile-0.3.8}/LICENSE +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/NOTICE +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/__init__.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/__main__.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/assets/lucide/VENDORED.md +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/assets/lucide/lucide.css +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/assets/lucide/lucide.ttf +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/chart_themes/kubecon_na.toml +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/chart_themes/ossummit_europe.toml +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/cli.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/parser/__init__.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/parser/ast.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/parser/markdown.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/plugins/cards.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/plugins/directives.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/plugins/fenced.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/plugins/layouts.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/plugins/lucide.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/plugins/lucide_font.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/__init__.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/html.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/ir.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/odf/__init__.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/odf/geometry.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/odf/shapes.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/odf/styles.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/odp.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/pdf.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/pdg.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/seaborn.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/templates/base.css +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/render/templates/shell.html +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/theme/__init__.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/theme/loader.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/theme/parser.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/themes/default.css +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/themes/kcd_vietnam.css +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/themes/kubecon_china.css +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/themes/kubecon_japan.css +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/themes/kubecon_na.css +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/themes/ossummit_europe.css +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/src/decktile/themes/ossummit_korea.css +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/__init__.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/test_cli.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/test_geometry.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/test_html.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/test_ir.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/test_odf_shapes.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/test_odp.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/test_parser.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/test_pdg.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/tests/test_seaborn_styles.py +0 -0
- {decktile-0.3.6 → decktile-0.3.8}/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.8
|
|
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
|
|
@@ -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.15s, 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
|
|
@@ -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.15s, 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
|
|
@@ -14,6 +14,20 @@ function tapDirection(e, el) {
|
|
|
14
14
|
return e.clientX < r.left + r.width / 3 ? -1 : 1;
|
|
15
15
|
}
|
|
16
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 = 150;
|
|
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
|
+
|
|
17
31
|
// ===== VIDEO SYNC (shared) =====
|
|
18
32
|
// Presenter and main windows are separate documents (window.open), each
|
|
19
33
|
// with its own independent <video> element for the same slide -- playing
|
|
@@ -150,7 +164,7 @@ if (isPresenter) {
|
|
|
150
164
|
show(0);
|
|
151
165
|
|
|
152
166
|
var presMain = document.getElementById('pres-main');
|
|
153
|
-
presMain.addEventListener('click', function(e) {
|
|
167
|
+
presMain.addEventListener('click', function(e) { var d = tapDirection(e, presMain); delayedTap(function() { advance(d); }); });
|
|
154
168
|
document.getElementById('pres-main').addEventListener('contextmenu', function(e) {
|
|
155
169
|
e.preventDefault(); advance(-1);
|
|
156
170
|
});
|
|
@@ -334,7 +348,8 @@ if (isPresenter) {
|
|
|
334
348
|
var t = e.target;
|
|
335
349
|
if (t.closest('button, a, input, textarea, select, #decktile-nav, #presenter-panel')) return;
|
|
336
350
|
if (window.getSelection().toString()) return;
|
|
337
|
-
|
|
351
|
+
var d = tapDirection(e, document.documentElement);
|
|
352
|
+
delayedTap(function() { show(current + d); });
|
|
338
353
|
});
|
|
339
354
|
|
|
340
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
|