docs: add readme and license, translate to english

This commit is contained in:
2026-06-23 22:53:53 +05:00
parent 35fec72f9f
commit 56f01d412e
5 changed files with 93 additions and 16 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export function computeHomography(state) {
}
export function toMatrix3dCSS(H) {
if (!H) return '/* вырожденная конфигурация */';
if (!H) return '/* degenerate configuration */';
const n = v => parseFloat(v.toFixed(8));
return [
'transform-origin: 0 0;',
+3 -3
View File
@@ -50,8 +50,8 @@ function setMode(mode) {
$('btnEdit').classList.toggle('active', mode === 'edit');
$('btnPreview').classList.toggle('active', mode === 'preview');
$('modeHint').textContent = mode === 'edit'
? 'Перетаскивайте углы на поле'
: 'Результат matrix3d() трансформации';
? 'Drag corners on the field'
: 'matrix3d() transform result';
}
export function updateCSSOutput(state) {
@@ -139,7 +139,7 @@ export function initUI(state, updateAll) {
navigator.clipboard.writeText(text).then(() => {
const btn = $('copyBtn');
const orig = btn.textContent;
btn.textContent = 'Скопировано!';
btn.textContent = 'Copied!';
setTimeout(() => btn.textContent = orig, 1500);
});
});