mediawiki-extensions-Multim.../resources/mmv/ui
thiemowmde 4a37c70c95 Use much more precise original size for ratio calculations
Nowadays our HTML contains data-file-width="…" and data-file-height="…"
attributes. Previously this code was using <img width="…" height="…">
from the tiny thumbnail to calculate the aspect ratio. But this is
only a rough estimate and can be off by a significant amount of
pixels. Example:

Original image size: 4000 x 2100
Thumbnail in the article: 220 x 116
Available canvas height: 630
When using the thumbnail's size: 1195 x 630
When using the original size: 1200 x 630

I still use the old thumbnail size as a fallback just to be sure.
It's possible this is unreachable code by now. But it doesn't hurt
to keep it.

Change-Id: Iabd89762b09523249375bcbc7e4a573ef974e02e
2024-07-15 12:00:53 +02:00
..
img Extract mmv.ui.restriction module 2024-05-17 20:51:05 +00:00
checker.png Import Checker-16x16.png into repository, instead of loading from upload.wikimedia.org 2016-01-23 02:58:45 +00:00
mmv.ui.canvas.js Use much more precise original size for ratio calculations 2024-07-15 12:00:53 +02:00
mmv.ui.canvas.less Rename whitelist to allowlist 2024-06-27 20:50:08 +00:00
mmv.ui.canvasButtons.js Fix icons in RTL by using an element instead of ::after 2024-07-11 20:07:46 +03:30
mmv.ui.canvasButtons.less Fix icons in RTL by using an element instead of ::after 2024-07-11 20:07:46 +03:30
mmv.ui.description.js Remove IIFE 2024-05-21 22:31:15 +02:00
mmv.ui.dialog.js Remove FileRepoInfo API and Repo model 2024-05-31 08:13:08 +02:00
mmv.ui.dialog.less MMV square buttons 2024-06-26 20:28:38 +02:00
mmv.ui.js Remove IIFE 2024-05-21 22:31:15 +02:00
mmv.ui.metadataPanel.js ThumbnailInfo: support multi lingual SVG 2024-07-01 22:49:10 +02:00
mmv.ui.metadataPanel.less Metadatapanel: Improve spacing between license links 2024-06-27 21:09:20 +02:00
mmv.ui.metadataPanelScroller.js Remove IIFE 2024-05-21 22:31:15 +02:00
mmv.ui.metadataPanelScroller.less styles: Replace old variables calls with skin variables 2023-04-16 03:32:27 -07:00
mmv.ui.permission.js Use mw.msg shortcut 2024-05-29 05:14:01 +00:00
mmv.ui.permission.less Fix dark mode issues with an extended 'Permission details' box 2024-07-08 16:16:15 +00:00
mmv.ui.progressBar.js Use CSS transitions for the progressbar. 2024-05-30 20:00:07 +00:00
mmv.ui.progressBar.less Use CSS transitions for the progressbar. 2024-05-30 20:00:07 +00:00
mmv.ui.stripeButtons.js ThumbnailInfo: support multi lingual SVG 2024-07-01 22:49:10 +02:00
mmv.ui.stripeButtons.less Fixes button sizes on file page and overlay 2023-12-13 18:34:16 +00:00
mmv.ui.truncatableTextField.js Remove IIFE 2024-05-21 22:31:15 +02:00
mmv.ui.truncatableTextField.less Use Codex colors to fix dark mode 2024-05-04 12:04:25 +03:00
mmv.ui.viewingOptions.js Use mw.msg shortcut 2024-05-29 05:14:01 +00:00
mmv.ui.viewingOptions.less MMV square buttons 2024-06-26 20:28:38 +02:00