import { app } from "../../scripts/app.js"; import { AnglesSelector3DWidget } from './widget.js'; import { t } from './i18n.js'; const STYLES = ` .angles-selector-container { font-family: Arial, sans-serif; color: #fff; padding: 5px; height: 100%; display: flex; flex-direction: column; } .angles-selector-container canvas { border-radius: 8px; display: block; width: 100% !important; height: 100% !important; } .canvas-container { width: 100%; flex: 1; min-height: 200px; } .selection-display { margin-top: 8px; max-height: 100px; overflow-y: auto; font-size: 11px; } .selection-count { font-weight: bold; margin-bottom: 4px; color: #4ECDC4; } .selection-list { max-height: 80px; overflow-y: auto; } .selection-item { display: flex; justify-content: space-between; align-items: center; padding: 3px 6px; margin: 2px 0; background: rgba(255,255,255,0.1); border-radius: 3px; font-size: 10px; } .remove-btn { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 14px; padding: 0 4px; } .remove-btn:hover { color: #ff4444; } .no-selection { color: #888; font-style: italic; font-size: 11px; } .control-buttons { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; } .control-btn { padding: 4px 8px; border: none; border-radius: 3px; cursor: pointer; font-size: 10px; color: #fff; } .control-btn:hover { opacity: 0.8; } .control-btn.clear { background: #ff6b6b; } .control-btn.close-up { background: #FF6B6B; } .control-btn.medium { background: #FFD93D; color: #333; } .control-btn.wide { background: #6BCB77; } .bottom-controls { display: flex; gap: 8px; margin-top: 8px; align-items: center; flex-wrap: wrap; } .legend { display: flex; gap: 8px; font-size: 10px; align-items: center; } .legend-item { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 2px 6px; border-radius: 3px; } .legend-item:hover { background: rgba(255,255,255,0.1); } .legend-item.layer-hidden { opacity: 0.4; } .legend-item.layer-hidden span:last-child { text-decoration: line-through; } .legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } `; function getTemplate() { return `