Repository navigation
Expand file tree
/
Copy pathmodel.json
More file actions
163 lines (163 loc) · 6.38 KB
/
Copy pathmodel.json
File metadata and controls
163 lines (163 loc) · 6.38 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Crossly Pattern",
"type": "object",
"properties": {
"version": {
"description": "The version of the embroidery pattern.",
"type": "string"
},
"name": {
"description": "The name of the embroidery pattern.",
"type": "string"
},
"fabric": {
"description": "Describes the fabric canvas and visual characteristics.",
"type": "object",
"properties": {
"name": {
"description": "The display name of the fabric type (e.g. 'Aida 14 count').",
"type": "string",
"minLength": 1
},
"columns": {
"description": "Number of columns (width) in the canvas of the fabric.",
"type": "integer",
"minimum": 1
},
"rows": {
"description": "Number of rows (height) in the canvas of the fabric.",
"type": "integer",
"minimum": 1
},
"color": {
"description": "Background color of the fabric (usually a light color).",
"type": "string",
"minLength": 1
},
"dots": {
"description": "Settings for canvas dots, which help users align stitches.",
"type": "object",
"properties": {
"color": {
"description": "Color of the fabric canvas dots.",
"type": "string",
"minLength": 1
}
},
"required": [
"color"
]
},
"threads": {
"description": "Default thread appearance for overlay canvas lines (not stitch threads).",
"type": "object",
"properties": {
"color": {
"description": "Color of the default threads in the canvas (for UI overlay).",
"type": "string",
"minLength": 1
}
},
"required": [
"color"
]
}
},
"required": [
"name",
"color",
"columns",
"rows",
"dots",
"threads"
]
},
"threads": {
"description": "All thread definitions used across stitches (shared).",
"type": "array",
"items": {
"type": "object",
"description": "Single thread definition (e.g. DMC 321, red, width 1).",
"properties": {
"name": {
"description": "The name or code of the thread (e.g. 'DMC 321').",
"type": "string",
"minLength": 1
},
"color": {
"description": "Hex code or named color of the thread.",
"type": "string",
"minLength": 1
},
"width": {
"description": "Thickness of the thread in logical drawing units.",
"type": "integer",
"minimum": 1
}
},
"required": [
"name",
"color",
"width"
]
},
"minItems": 1
},
"pattern": {
"description": "List of stitched paths in the design. Each uses a thread from the top-level 'threads' array.",
"type": "array",
"items": {
"description": "A thread reference and a user-defined path through fabric dots, representing one part of the overall design.",
"type": "object",
"properties": {
"threadIndex": {
"description": "Index (zero-based) of the thread in the top-level 'threads' array.",
"type": "integer",
"minimum": 0
},
"needlePath": {
"description": "A sequence of dot positions through which the needle passes. The order represents the stitching direction.",
"type": "object",
"properties": {
"indexesX": {
"description": "Column indexes of grid dots visited by the needle in order. Each index refers to a vertical position on the logical fabric grid.",
"type": "array",
"items": {
"description": "Zero-based column index of a fabric grid dot.",
"type": "number",
"minimum": 0
}
},
"indexesY": {
"description": "Row indexes of grid dots visited by the needle in order. Each index refers to a horizontal position on the logical fabric grid.",
"type": "array",
"items": {
"description": "Zero-based row index of a fabric grid dot.",
"type": "number",
"minimum": 0
}
}
},
"required": [
"indexesX",
"indexesY"
]
}
},
"required": [
"threadIndex",
"needlePath"
]
},
"minItems": 0
}
},
"required": [
"version",
"name",
"fabric",
"threads",
"pattern"
]
}