forked from JoyfulProgramming/workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix.patch
More file actions
85 lines (81 loc) · 2.35 KB
/
Copy pathfix.patch
File metadata and controls
85 lines (81 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
From e8d138ec16991d26b683c11a0ecdaa175ab3871c Mon Sep 17 00:00:00 2001
From: John Gallagher <john@synapticmishap.co.uk>
Date: Sun, 16 Feb 2025 13:49:25 +0000
Subject: [PATCH] fix: no more crash
---
app/models/pattern.rb | 48 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/app/models/pattern.rb b/app/models/pattern.rb
index 65f6d49..9c07cc2 100644
--- a/app/models/pattern.rb
+++ b/app/models/pattern.rb
@@ -28,6 +28,13 @@ class Pattern < ApplicationRecord
chest_of_drawers: :medium_tall,
close_up: :large_tall,
green_wall_with_stool: :medium
+ },
+ landscape: {
+ in_hand: :small,
+ nightstand: :small,
+ chest_of_drawers: :medium_tall,
+ close_up: :large_tall,
+ green_wall_with_stool: :medium
}
}
@@ -80,6 +87,38 @@ class Pattern < ApplicationRecord
[ 2000, 2666 ]
]
},
+ landscape: {
+ in_hand: [
+ [ 521, 835 ],
+ [ 1505, 995 ],
+ [ 366, 1800 ],
+ [ 1351, 1958 ]
+ ],
+ green_wall_with_stool: [
+ [ 920, 1157 ],
+ [ 1280, 1157 ],
+ [ 920, 1518 ],
+ [ 1280, 1518 ]
+ ],
+ nightstand: [
+ [ 1140, 1870 ],
+ [ 1465, 1880 ],
+ [ 1115, 2321 ],
+ [ 1445, 2338 ]
+ ],
+ chest_of_drawers: [
+ [ 315, 464 ],
+ [ 653, 466 ],
+ [ 310, 955 ],
+ [ 651, 957 ]
+ ],
+ close_up: [
+ [ 0, 0 ],
+ [ 2000, 0 ],
+ [ 0, 2666 ],
+ [ 2000, 2666 ]
+ ]
+ },
square: {
in_hand: [
[ 521, 835 ],
@@ -124,6 +163,15 @@ class Pattern < ApplicationRecord
large: [ 75 * STITCH_WIDTH, 100 * STITCH_WIDTH ],
large_tall: [ 65 * STITCH_WIDTH, 85 * STITCH_WIDTH ]
},
+ landscape: {
+ small: [ 55 * STITCH_WIDTH, 40 * STITCH_WIDTH ],
+ small_wide: [ 57 * STITCH_WIDTH, 40 * STITCH_WIDTH ],
+ medium: [ 75 * STITCH_WIDTH, 55 * STITCH_WIDTH ],
+ medium_large: [ 87 * STITCH_WIDTH, 65 * STITCH_WIDTH ],
+ medium_tall: [ 75 * STITCH_WIDTH, 55 * STITCH_WIDTH ],
+ large: [ 100 * STITCH_WIDTH, 75 * STITCH_WIDTH ],
+ large_tall: [ 85 * STITCH_WIDTH, 65 * STITCH_WIDTH ]
+ },
square: {
small: [ 43 * STITCH_WIDTH, 43 * STITCH_WIDTH ],
small_wide: [ 55 * STITCH_WIDTH, 43 * STITCH_WIDTH ],
--
2.39.3 (Apple Git-146)