Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
fix: reduce autosave work and batch keyboard movement history
This commit is contained in:
@@ -8,7 +8,7 @@ SketchForge uses a packaged container (format option B). A `.skf` file is a ZIP
|
||||
|
||||
This was selected over pure JSON because imported STL/STEP data and exact B-Rep can be large, Base64 would add size and parsing overhead, and an archive lets SketchForge validate and hash each asset independently. The editable model is still JSON and can be inspected by opening `project.json` from the package.
|
||||
|
||||
## Version 1 layout
|
||||
## Version 2 layout
|
||||
|
||||
```text
|
||||
project.skf
|
||||
@@ -17,7 +17,8 @@ project.skf
|
||||
├── source/ Original imported STL, SVG, or STEP files
|
||||
├── derived-mesh/ Exact caches for baked operations or legacy imports
|
||||
├── brep/ Exact STEP/B-Rep payloads
|
||||
└── image/ Deduplicated sketch/reference images
|
||||
├── image/ Deduplicated sketch/reference images
|
||||
└── display-edges/ Shared CAD display-edge arrays (JSON)
|
||||
```
|
||||
|
||||
`project.json` contains these top-level sections:
|
||||
@@ -36,6 +37,8 @@ project.skf
|
||||
|
||||
Object nodes keep stable SketchForge object IDs. Groups refer to child node IDs instead of array positions. Fillet/chamfer history refers to explicit “before” nodes. Feature dependencies are explicit and checked for cycles.
|
||||
|
||||
Nodes reference display edges through `cadDisplayEdgesAssetId`; the edge version remains in the shape definition. Each distinct edge array is stored once, including references from groups and reversible edge-treatment history. Mesh coordinate arrays, B-Rep strings, and image data URLs are encoded and hashed once per immutable resource. Weak caches and a bounded text cache reuse this work on subsequent saves. Import restores shared mesh and edge objects across undo states. Long node traversals yield to the event loop between batches.
|
||||
|
||||
## What is preserved
|
||||
|
||||
- All current native shape kinds and their editable parameters
|
||||
@@ -59,7 +62,7 @@ Current safety limits are 512 MB compressed, 1 GB expanded, 256 MB per asset, 64
|
||||
|
||||
## Compatibility and migrations
|
||||
|
||||
The current format is version 1. Readers refuse a higher `formatVersion` or `minimumReaderVersion` instead of partially loading it. The importer also contains an explicit migration for the documented version 0 pure-JSON prototype and preserves its object IDs and valid history.
|
||||
New saves use format version 2 and minimum reader version 2. Older applications reject these files rather than dropping shared display edges. The current reader accepts version 1 packages with inline display edges, interns those resources on import, and writes version 2 on the next save. The importer also contains an explicit migration for the documented version 0 pure-JSON prototype and preserves its object IDs and valid history.
|
||||
|
||||
Future schema changes should add a version-to-version migration, run validation after every migration, and never mutate the user's original file.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user