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: SketchForge 1.0.9
This commit is contained in:
@@ -7,6 +7,7 @@ import { SketchRevolvePreview } from "@/components/SketchRevolvePreview";
|
||||
import { parseMeasurementInput } from "@/lib/measurementUnits";
|
||||
import { WORKPLANE_MAJOR_GRID_INTERVAL } from "@/lib/workplaneGrid";
|
||||
import { closestPointOnSketchSegment, type SketchSegmentPlacement } from "@/lib/sketchPointRefinement";
|
||||
import { isSketchPanGesture } from "@/lib/sketchPointerControls";
|
||||
import { mirrorSign, resizedImportedMeshPositions } from "@/lib/workplaneShapes";
|
||||
import { DEFAULT_SNAP_GRID, DEFAULT_WORKPLANE_WORKSPACE, normalizeSnapGrid, normalizeWorkspaceSettings } from "@/lib/workplaneSettings";
|
||||
import type { GridSize, SketchImage, SketchOperation, SketchPoint, SketchProfile, SketchSegment, WorkplaneShape, WorkplaneWorkspaceSettings } from "@/types/sketchforge";
|
||||
@@ -637,6 +638,10 @@ export function SketchWorkspace({
|
||||
setPointerAction({ kind: "pan", pointerId: event.pointerId, clientX: event.clientX, clientY: event.clientY });
|
||||
};
|
||||
|
||||
const handlePanPointerDownCapture = (event: ReactPointerEvent<SVGSVGElement>) => {
|
||||
if (isSketchPanGesture(event)) beginPan(event);
|
||||
};
|
||||
|
||||
const handlePlanePointerDown = (event: ReactPointerEvent<SVGSVGElement>) => {
|
||||
if (event.button === 1) {
|
||||
beginPan(event);
|
||||
@@ -794,6 +799,7 @@ export function SketchWorkspace({
|
||||
className={`sketch-plate tool-${tool} ${pointerAction?.kind === "pan" ? "panning" : ""}`}
|
||||
viewBox={`${pan.x - width / 2} ${pan.z - depth / 2} ${width} ${depth}`}
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
onPointerDownCapture={handlePanPointerDownCapture}
|
||||
onPointerDown={handlePlanePointerDown}
|
||||
onPointerMove={handlePointerMove}
|
||||
onPointerUp={finishPointerAction}
|
||||
@@ -803,6 +809,7 @@ export function SketchWorkspace({
|
||||
setRefinePreview(null);
|
||||
}}
|
||||
onWheel={handleWheel}
|
||||
onContextMenu={(event) => event.preventDefault()}
|
||||
onDragOver={(event) => {
|
||||
if (!event.dataTransfer.types.includes("application/x-sketchforge-sketch-primitive")) return;
|
||||
event.preventDefault();
|
||||
|
||||
@@ -5278,8 +5278,10 @@ function createThreeScene(host: HTMLDivElement): ThreeState {
|
||||
controls.maxDistance = 4200;
|
||||
controls.minZoom = 0.02;
|
||||
controls.maxZoom = 100;
|
||||
controls.minPolarAngle = 0.06;
|
||||
controls.maxPolarAngle = Math.PI - 0.06;
|
||||
// Allow the documented OrbitControls pole limits so Top and Bottom views can
|
||||
// settle on the vertical axis instead of being held roughly 3.4 degrees off it.
|
||||
controls.minPolarAngle = 0;
|
||||
controls.maxPolarAngle = Math.PI;
|
||||
controls.target.copy(CAMERA_TARGET);
|
||||
|
||||
const ambient = new THREE.HemisphereLight("#ffffff", "#d6edf5", 2.1);
|
||||
|
||||
Reference in New Issue
Block a user