refactor: update js - separate files, modules

This commit is contained in:
2026-06-24 08:11:22 +05:00
parent 99ebaceda3
commit 1f9ac90ce2
14 changed files with 270 additions and 316 deletions
+15
View File
@@ -0,0 +1,15 @@
export const COLORS = {
fieldBg: '#0a0e14',
accent: '#58a6ff',
widgetFill: 'rgba(88,166,255,0.12)',
widgetStroke: 'rgba(88,166,255,0.4)',
polygonFill: 'rgba(88,166,255,0.1)',
gridLine: 'rgba(255,255,255,0.06)'
};
export const LABELS = ['TL', 'TR', 'BR', 'BL'];
export const FIELD_PADDING = 140;
export const ROUND_DIGITS = 6;
export const round = v => parseFloat(v.toFixed(ROUND_DIGITS));