Skip to content

Commit c08cdff

Browse files
committed
feat(v2.2): Sistema de Histórico (Undo/Redo), Melhorias na Interface e no Sistema de Camadas
1 parent 3b75fc6 commit c08cdff

5 files changed

Lines changed: 307 additions & 47 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Todas as mudanças notáveis no projeto InvMap serão documentadas neste arquivo.
44

5+
## [v2.2] - 06/05/2026
6+
### ✔Adicionado
7+
- **Redo/Undo (Ctrl+Z/Ctrl+Y):** Adicionado sistema de redo e undo para o mapa. Agora é possível desfazer e refazer alterações feitas nos nós e conexões.
8+
### 🖊 Alterado
9+
- **Sistema de Camadas Melhorado:** Agora ao invés de usar o DOM para ordenar os elementos, é usado z-index.
10+
511
## [v2.1] - 02/04/2026
612
### ✔Adicionado
713
- **Detecção de Ambiente:** Adicionado sistema de detecção de ambiente, agora é possível saber se o mapa está sendo usado em modo desktop ou web.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<p align="center">
1414
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License">
15-
<img src="https://img.shields.io/badge/version-2.1-orange" alt="Version">
15+
<img src="https://img.shields.io/badge/version-2.2-orange" alt="Version">
1616
<img src="https://img.shields.io/badge/status-ativo-success" alt="Status">
1717
</p>
1818

css/style.css

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* =================================================== */
1+
/* =================================================== */
22
/* || INVMAP v2.0 - DESIGN SYSTEM || */
33
/* =================================================== */
44

@@ -1755,4 +1755,72 @@ body.hide-grid-active .grid-pattern-path {
17551755
background: rgba(255, 255, 255, 0.08) !important;
17561756
color: var(--text-main) !important;
17571757
transform: translateY(-2px);
1758-
}
1758+
}
1759+
1760+
/* =================================================== */
1761+
/* Wrapper de Ações do Mapa (Zoom, Histórico, etc) */
1762+
/* =================================================== */
1763+
1764+
#map-actions-wrapper {
1765+
position: absolute;
1766+
bottom: 20px;
1767+
right: 20px;
1768+
z-index: 50;
1769+
pointer-events: auto;
1770+
background: var(--bg-panel);
1771+
backdrop-filter: blur(var(--blur-strength));
1772+
-webkit-backdrop-filter: blur(var(--blur-strength));
1773+
border: var(--glass-border);
1774+
box-shadow: var(--glass-shadow);
1775+
border-radius: 12px;
1776+
padding: 6px;
1777+
display: flex;
1778+
flex-direction: column;
1779+
gap: 4px;
1780+
transition: opacity 0.3s ease;
1781+
}
1782+
1783+
.map-action-btn {
1784+
width: 34px;
1785+
height: 34px;
1786+
border: none;
1787+
background: transparent;
1788+
color: var(--text-muted);
1789+
border-radius: 8px;
1790+
font-size: 0.95rem;
1791+
cursor: pointer;
1792+
display: flex;
1793+
align-items: center;
1794+
justify-content: center;
1795+
transition: all 0.2s ease;
1796+
}
1797+
1798+
.map-action-btn:hover {
1799+
background: rgba(255, 255, 255, 0.08);
1800+
color: var(--text-main);
1801+
transform: translateY(-2px);
1802+
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
1803+
}
1804+
1805+
.separator-vertical {
1806+
width: 100%;
1807+
height: 1px;
1808+
background: var(--border-subtle);
1809+
margin: 2px 0;
1810+
}
1811+
1812+
@media (max-width: 768px) {
1813+
#map-actions-wrapper {
1814+
bottom: 15px;
1815+
right: 15px;
1816+
padding: 5px;
1817+
gap: 3px;
1818+
border-radius: 10px;
1819+
}
1820+
.map-action-btn {
1821+
width: 30px;
1822+
height: 30px;
1823+
font-size: 0.85rem;
1824+
border-radius: 6px;
1825+
}
1826+
}

index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,25 @@ <h4 style="border: none; padding: 0; justify-content: center; display: flex;">At
730730
</div>
731731
</div>
732732

733+
<div id="map-actions-wrapper">
734+
<button id="undo-btn" class="map-action-btn" title="Desfazer (Ctrl+Z)" style="opacity: 0.3; pointer-events: none;">
735+
<i class="fas fa-undo"></i>
736+
</button>
737+
<button id="redo-btn" class="map-action-btn" title="Refazer (Ctrl+Y)" style="opacity: 0.3; pointer-events: none;">
738+
<i class="fas fa-redo"></i>
739+
</button>
740+
<span class="separator-vertical"></span>
741+
<button id="zoom-in-btn" class="map-action-btn" title="Aproximar">
742+
<i class="fas fa-plus"></i>
743+
</button>
744+
<button id="zoom-out-btn" class="map-action-btn" title="Afastar">
745+
<i class="fas fa-minus"></i>
746+
</button>
747+
<button id="center-map-btn" class="map-action-btn" title="Centralizar Mapa">
748+
<i class="fas fa-crosshairs"></i>
749+
</button>
750+
</div>
751+
733752
<svg id="mindmap-svg" width="100%" height="100%">
734753
<defs id="svg-defs">
735754
<pattern id="grid-pattern" width="25" height="25" patternUnits="userSpaceOnUse">

0 commit comments

Comments
 (0)