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
release: publish v0.6.0
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
serializeShapesForSync,
|
||||
shapeDepth,
|
||||
shapeWidth,
|
||||
withHoleMode,
|
||||
workplaneShapesEqual,
|
||||
} from "@/lib/workplaneShapes";
|
||||
|
||||
@@ -114,6 +115,29 @@ describe("workplane shape helpers", () => {
|
||||
expect(fallbackSolidColor(shape({ kind: "box" }))).toBe("#d41721");
|
||||
});
|
||||
|
||||
it("applies an explicitly selected group color to every nested child", () => {
|
||||
const grouped = shape({
|
||||
kind: "mesh",
|
||||
color: "#111111",
|
||||
groupedShapes: [
|
||||
shape({ id: "child-box", color: "#222222" }),
|
||||
shape({
|
||||
id: "child-group",
|
||||
kind: "mesh",
|
||||
color: "#333333",
|
||||
groupedShapes: [shape({ id: "grandchild", kind: "sphere", color: "#444444" })],
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
const recolored = withHoleMode(grouped, false, "#12abef");
|
||||
|
||||
expect(recolored.color).toBe("#12abef");
|
||||
expect(recolored.groupedShapes?.map((child) => child.color)).toEqual(["#12abef", "#12abef"]);
|
||||
expect(recolored.groupedShapes?.[1].groupedShapes?.[0].color).toBe("#12abef");
|
||||
expect(grouped.groupedShapes?.[0].color).toBe("#222222");
|
||||
});
|
||||
|
||||
it("can resize the body while preserving fillet and chamfer boundary distances", () => {
|
||||
const modified = shape({
|
||||
kind: "mesh",
|
||||
|
||||
Reference in New Issue
Block a user