release: SketchForge 1.0.5

This commit is contained in:
Formsmith746
2026-08-23 13:28:52 +03:00
parent 95b029e274
commit 1100e4f718
16 changed files with 156 additions and 49 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import type { GridSize, ProjectAsset, ProjectAssetSourceFormat, SketchOperation,
export const SKF_SCHEMA_ID = "com.sketchforge.project";
export const SKF_FORMAT_VERSION = 1;
export const SKF_MINIMUM_READER_VERSION = 1;
export const SKF_CREATED_WITH_VERSION = "1.0.4";
export const SKF_CREATED_WITH_VERSION = "1.0.5";
export const SKF_MEDIA_TYPE = "application/vnd.sketchforge.project+zip";
export const SKF_LIMITS = {
+6
View File
@@ -15,6 +15,7 @@ export const DEFAULT_WORKPLANE_WORKSPACE: WorkplaneWorkspaceSettings = {
showShadows: true,
showGrid: true,
cruiseShapes: true,
selectBeforeMove: false,
zoomSpeed: 5,
units: "Metric (Default)",
scale: "1:1 (millimeters)",
@@ -68,6 +69,7 @@ export function normalizeWorkspaceSettings(value: unknown, fallback: WorkplaneWo
showShadows: booleanOrDefault(candidate.showShadows, fallback.showShadows),
showGrid: booleanOrDefault(candidate.showGrid, fallback.showGrid),
cruiseShapes: booleanOrDefault(candidate.cruiseShapes, fallback.cruiseShapes),
selectBeforeMove: booleanOrDefault(candidate.selectBeforeMove, fallback.selectBeforeMove),
zoomSpeed: numberOrDefault(candidate.zoomSpeed, fallback.zoomSpeed),
units,
scale: normalizeScaleForUnits(units, stringOrDefault(candidate.scale, fallback.scale)),
@@ -76,6 +78,10 @@ export function normalizeWorkspaceSettings(value: unknown, fallback: WorkplaneWo
};
}
export function canBeginShapeDrag(selectBeforeMove: boolean, alreadySelected: boolean) {
return !selectBeforeMove || alreadySelected;
}
export function workplaneSettingsFingerprint(workspace: WorkplaneWorkspaceSettings, snapGrid: GridSize) {
return JSON.stringify({ workspace, snapGrid });
}