chore: linting
parent
df699406b2
commit
4ae8b27089
16
i18n/en.json
16
i18n/en.json
|
|
@ -17,14 +17,6 @@
|
|||
"add_a_title": "Add a title",
|
||||
"add_birthday": "Add a birthday",
|
||||
"add_endpoint": "Add endpoint",
|
||||
"editor_crop_tool_h2_mirror": "Mirror",
|
||||
"mirror_horizontal": "Horizontal",
|
||||
"mirror_vertical": "Vertical",
|
||||
"rotate_ccw": "CCW 90°",
|
||||
"rotate_cw": "CW 90°",
|
||||
"crop_aspect_ratio_free": "Free",
|
||||
"crop_aspect_ratio_fixed": "Fixed",
|
||||
"crop_aspect_ratio_original": "Original",
|
||||
"add_exclusion_pattern": "Add exclusion pattern",
|
||||
"add_location": "Add location",
|
||||
"add_more_users": "Add more users",
|
||||
|
|
@ -813,6 +805,9 @@
|
|||
"created_at": "Created",
|
||||
"creating_linked_albums": "Creating linked albums...",
|
||||
"crop": "Crop",
|
||||
"crop_aspect_ratio_fixed": "Fixed",
|
||||
"crop_aspect_ratio_free": "Free",
|
||||
"crop_aspect_ratio_original": "Original",
|
||||
"curated_object_page_title": "Things",
|
||||
"current_device": "Current device",
|
||||
"current_pin_code": "Current PIN code",
|
||||
|
|
@ -941,6 +936,7 @@
|
|||
"editor_close_without_save_prompt": "The changes will not be saved",
|
||||
"editor_close_without_save_title": "Close editor?",
|
||||
"editor_crop_tool_h2_aspect_ratios": "Aspect ratios",
|
||||
"editor_crop_tool_h2_mirror": "Mirror",
|
||||
"editor_crop_tool_h2_rotation": "Rotation",
|
||||
"editor_reset_all_changes": "Reset all changes",
|
||||
"email": "Email",
|
||||
|
|
@ -1417,6 +1413,8 @@
|
|||
"minimize": "Minimize",
|
||||
"minute": "Minute",
|
||||
"minutes": "Minutes",
|
||||
"mirror_horizontal": "Horizontal",
|
||||
"mirror_vertical": "Vertical",
|
||||
"missing": "Missing",
|
||||
"mobile_app": "Mobile App",
|
||||
"mobile_app_download_onboarding_note": "Download the companion mobile app using the following options",
|
||||
|
|
@ -1770,6 +1768,8 @@
|
|||
"role": "Role",
|
||||
"role_editor": "Editor",
|
||||
"role_viewer": "Viewer",
|
||||
"rotate_ccw": "CCW 90°",
|
||||
"rotate_cw": "CW 90°",
|
||||
"running": "Running",
|
||||
"save": "Save",
|
||||
"save_to_gallery": "Save to gallery",
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@
|
|||
})),
|
||||
]);
|
||||
|
||||
function resetCrop() {
|
||||
transformManager.resetCrop();
|
||||
selectedRatio = undefined;
|
||||
}
|
||||
// function resetCrop() {
|
||||
// transformManager.resetCrop();
|
||||
// selectedRatio = undefined;
|
||||
// }
|
||||
|
||||
function selectAspectRatio(ratio: 'original' | 'free' | (typeof aspectRatios)[number]['value']) {
|
||||
if (ratio === 'original') {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class TransformManager implements EditToolManager {
|
|||
cropFrame = $state<HTMLElement | null>(null);
|
||||
cropImageSize = $state([1000, 1000]);
|
||||
cropImageScale = $state(1);
|
||||
cropAspectRatio = $state("free");
|
||||
cropAspectRatio = $state('free');
|
||||
region = $state({ x: 0, y: 0, width: 100, height: 100 });
|
||||
|
||||
imageRotation = $state(0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue