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
Improve editor history, CAD tools, and ruler workflows
This commit is contained in:
@@ -29,8 +29,14 @@ export function shapeDepth(shape: WorkplaneShape) {
|
||||
return shape.depth ?? shape.size;
|
||||
}
|
||||
|
||||
function edgeTreatmentPreserveZone(shape: WorkplaneShape): number {
|
||||
const own = Math.max(...(shape.edgeTreatments ?? []).map((feature) => feature.amount), 0);
|
||||
const child = Math.max(...(shape.groupedShapes ?? []).map(edgeTreatmentPreserveZone), 0);
|
||||
return Math.max(own, child);
|
||||
}
|
||||
|
||||
export function preservesEdgeTreatmentSize(shape: WorkplaneShape) {
|
||||
return shape.edgeResizeMode === "preserve" && Boolean(shape.importedMesh && shape.edgeTreatments?.length);
|
||||
return shape.edgeResizeMode === "preserve" && Boolean(shape.importedMesh && edgeTreatmentPreserveZone(shape) > 0);
|
||||
}
|
||||
|
||||
function edgePreservedCoordinate(value: number, baseSize: number, targetSize: number, centered: boolean, requestedZone: number) {
|
||||
@@ -57,7 +63,7 @@ export function resizedImportedCoordinates(shape: WorkplaneShape, sourcePosition
|
||||
const depth = shapeDepth(shape);
|
||||
const height = shape.height;
|
||||
const preserve = preservesEdgeTreatmentSize(shape);
|
||||
const zone = preserve ? Math.max(...(shape.edgeTreatments ?? []).map((feature) => feature.amount), 0) : 0;
|
||||
const zone = preserve ? edgeTreatmentPreserveZone(shape) : 0;
|
||||
const positions = new Array<number>(sourcePositions.length);
|
||||
for (let index = 0; index + 2 < sourcePositions.length; index += 3) {
|
||||
if (preserve) {
|
||||
|
||||
Reference in New Issue
Block a user