-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathllms.txt
More file actions
409 lines (312 loc) · 10.1 KB
/
llms.txt
File metadata and controls
409 lines (312 loc) · 10.1 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
# Free Format Specification
Free format is NULL-free, NaN-free and Infinity-free - if any of these values are in JSON - it's broken.
* **GUID** — 22 chars base64 string for ID's. Examples: `R1o2w3_4D5i6n7g8_000AA`, `N1a2m3-4C5o6n7t8_910AA`, `reY4TrsLHUeFk-E0CtyS5A`
* **Color** — ARGB hex string without `#`, supports minified values. Examples: `F` = `FFFFFF`, `34` = `343434`, `F33` = `FF3333`, `FFAA41`, `9900FF47`.
* **Point** — array of 2 floats [x,y]. Example: `[3,7]`.
* **Size** — array of 2 floats [width,height]. Example: `[3,7]`.
* **Rect** — array of 4 floats [left,top,width,height]. Example: `[0,0,100,100]`.
* **Thickness** — array of 1-4 floats [left,top,right,bottom]. Examples: `[8,4,8,5]`,`[8,4]`,`[4]`.
* **Matrix** — affine 2x3 matrix. Array of 6 floats [scaleX,skewX,transX,skewY,scaleY,transY]. Identity matrix is `[1,0,0,0,1,0]`. A rotation matrix will typically look like: [cos(angle), -sin(angle), 0, sin(angle), cos(angle), 0]. Example for 90° is `[0,-1,0,1,0,0]`.
* **Vertex** — Path vertex point. Array of 2, 3, 4, 6 or 8 floats. If array length is 2 - it's just a point [x, y]. Example: `[4,2]`. Third value, if present, is a byte enum of `CurveMode`. Fourth value, if present, is a corner radius. The next possible 2 values is: fromX, fromY - first control point position. And the last 2 floats is: toX, toY - second control point position. Full spec is: `[x, y, mode, radius, fromX, fromY, toX, toY]`.
* Layers requiring first field to be `_t` to specify type (e.g., `"RECT"`, `"TEXT"`, `"GROUP"`).
* All non-enum fields below are in format: `(type) (name) = (default value)`. If property value is default - it can be skipped.
## Icon — external data object. Set a searchable english name and icon will be downloaded from Icons8 server. Use this to save tokens. Examples: `Home`, `Back`, `Close`.
Has all properties of `Layer`, plus:
* string _t = "ICON"
* Color fill - required
## Photo — external data object. Set a searchable english name and photo will be downloaded from Icons8 server. Use this to save tokens.
Has all properties of `Layer`, plus:
* string _t = "PHOTO"
## Avatar — external data object. Random human avatar will be downloaded from Icons8 server. Use this to save tokens.
Has all properties of `Layer`, plus:
* string _t = "AVATAR"
## Layer — Base class for any layer on a canvas.
* string _t — object type. Required to be first.
* GUID id
* string name
* BoolOp boolOp = 0
* bool locked = false
* bool hidden = false
* ExportOption[] export
* string constraints = "LTWH"
* Matrix transform = [1,0,0,0,1,0] - position, rotation, skew and flips of an object, stored in a single 3x2 matrix, as 6 floats array.
* Point pos = [0,0] - defines position. Overrides Transform field.
* Size size = [100,100]
* Rect frame = [0,0,100,100] - defines position and size with one field. Overrides Transform, Pos and Size fields.
* bool lockAspect = false
* bool mask = false
* bool breakMask = false
* MaskType maskType = 0
* float minWidth = 0
* float minHeight = 0
* float maxWidth = 0
* float maxHeight = 0
* bool stretchWidth = false - determines if the layer should stretch width (auto layout).
* bool stretchHeight = false - determines whether a layer should stretch height (auto layout).
* bool absolutePos = false - enables absolute position for the layer (auto layout).
* float opacity = 1
* PathFillType winding = 1
* Color fill - if there is a single color fill - use this, otherwise use Fills field.
* Color border - if there is a single color border - use this, otherwise use Borders field.
* Fill[] fills
* Fill[] borders
* float thickness = 0
* Thickness customThickness = [0,0,0,0]
* LinePosition linePos = 0
* LineCap lineCap = 0
* LineJoin lineJoin = 0
* float[] dash - defines the size of dashes.
* ShadowEffect[] shadows
* ShadowEffect[] innerShadows
* BlurEffect blur
* float[] cornerRadius = float[4]
* bool smoothCorners = false
## Frame — A frame is a special type of layers that serves as a container for other layers or layer groups. Frames are a must for auto-layout and prototypes.
Has all properties of `Layer`, plus:
* string _t = "FRAME"
* bool clipContent = true
* bool flowHome = false
* PrototypeViewport viewport
* bool resizesContent = false
* AutoLayout autoLayout
* Layer[] layers
## Path — A vector path determines the outline and form of a vector object. A path is made up of points and segments.
Has all properties of `Layer`, plus:
* string _t = "PATH"
* Arrowhead startMarker = 0
* Arrowhead endMarker = 0
* bool edited = false
* bool open = false
* Vertex[] points - list of path's points.
* string pathData - optional Field. SVG path data. Overrides Points. Only for LLM and Plugins.
## Component — A component is a reusable frame of layers.
Has all properties of `Frame`, plus:
* string _t = "COMPONENT"
* GUID componentId
## Oval
Has all properties of `Path`, plus:
* string _t = "OVAL"
## Rectangle
Has all properties of `Path`, plus:
* string _t = "RECT"
* bool smoothCorners = false
## Star
Has all properties of `Path`, plus:
* string _t = "STAR"
* float rays = 0 - defines the number of rays in a star.
* float ratio = 0 - defines the star ratio value.
## States — Set of a states of the component.
Has all properties of `Frame`, plus:
* string _t = "STATES"
## Group
Has all properties of `Layer`, plus:
* string _t = "GROUP"
* Layer[] layers
## Instance — An instance is a linked copy of the component. With instances, you can reuse the same design element in multiple places in your project while retaining a connection to the component.
Has all properties of `Layer`, plus:
* string _t = "INSTANCE"
* GUID componentId
* AutoLayout autoLayout
## Section — Root group of layers. Can be a child of a page or another section. Does not support rotation, flips, effects.
Has all properties of `Layer`, plus:
* string _t = "SECTION"
* Layer[] layers
## Shape — Group of path's
Has all properties of `Layer`, plus:
* string _t = "SHAPE"
* Arrowhead startMarker = 0
* Arrowhead endMarker = 0
* Layer[] layers
## Text
Has all properties of `Layer`, plus:
* string _t = "TEXT"
* string text
* string font = "Inter-Regular"
* float fontSize = 12
* float paragraphSpacing = 0
* float baselineOffset = 0
* float? lineHeight
* CharacterCasing casing = 0
* TextHorizontalAlignment align = 0
* TextVerticalAlignment valign = 0
* ListMarkerType list = 0
* bool rtl = false
* bool underline = false
* bool strikethrough = false
* InlineStyle[] inlines
* TextBehavior behavior = 0
* bool clipContent = true
* bool truncate = false
* byte maxLines = 0
* bool drawOnPath = false
* bool warp = false
## SlotComponentProperty — Defines slot component property of components and states.
Has all properties of `ComponentPropertyBase`, plus:
* string _t = "SLOT"
* GUID value
* GUID[] values
## AutoLayout
* bool vertical = false
* float spacing = 0
* float wrapSpacing = 0
* Thickness padding = [0,0,0,0]
* HorizontalAlignment align = 0
* VerticalAlignment valign = 0
* bool fixWidth = false
* bool fixHeight = false
* bool textBaseline = false
* bool wrap = false
## BlurEffect
* float saturation = 1
* float radius = 10
* BlurType type = 0
## ExportOption
* string format = "PNG"
* ScaleType type = 0
* float size = 0
* string name
* NamingScheme naming = 0
## Fill
* Color color = "00000000"
* GUID? colorId
* FillType type = 0
* float opacity = 0
* Pattern pattern
* Gradient gradient
## Gradient
* GradientType type = 0
* Point from = [0.5,0]
* Point to = [0.5,1]
* Point side = [0,0]
* GradientStop[] stops
## GradientStop — A position-color pair representing a gradient stop.
* float pos = 0 - value between 0 and 1 representing a position along gradient axis.
* Color color = "00000000"
* GUID? colorId
## InlineStyle — Style (bold, italic, etc.) applied to a part of text or single word within a text block.
* int start = 0
* int length = 0
* Color fill - if there is a single color fill - use this, otherwise use Fills field.
* Fill[] fills
* string font = "Inter-Regular"
* float fontSize = 12
* float paragraphSpacing = 0
* float baselineOffset = 0
* float? lineHeight
* CharacterCasing casing = 0
* TextHorizontalAlignment align = 0
* TextVerticalAlignment valign = 0
* ListMarkerType list = 0
* bool rtl = false
* bool underline = false
* bool strikethrough = false
## Pattern — Defines the image fill options.
* PatternFillType type = 1
* string image
* Matrix? transform - defines how the image is cropped. Applicable to the crop type only.
## PrototypeViewport — This is a frame preset. Also used to determine viewport size for a large frame to scroll it properly.
* GUID id
* string name
* Size size = [0,0]
* GUID libraryId
## ShadowEffect
* float radius = 0
* Color color = "00000000"
* GUID? colorId
* float spread = 0
* Point offset = [0,0]
## Enum Arrowhead
0. none
1. arrow
2. arrowFilled
3. line
4. circle
5. circleFilled
6. square
7. squareFilled
## Enum BlurType
0. gaussian
3. background
## Enum BoolOp — Types of boolean operations used to combine shapes.
-1. none
0. union
1. subtract
2. intersect
3. difference
## Enum CharacterCasing — Defines letter case.
0. normal
1. upperCase
2. lowerCase
3. titleCase
## Enum CurveMode — Defines the types of points on Bézier curves.
0. none
1. straight
2. mirrored
3. asymmetric
4. disconnected
4. onlyFrom
5. onlyTo
## Enum FillType
0. color
1. gradient
4. pattern
## Enum GradientType
0. linear
1. radial
2. angular
## Enum HorizontalAlignment
0. left
1. center
2. right
3. distribute
## Enum LineCap
0. butt
1. round
2. square
## Enum LineJoin
0. miter
1. round
2. bevel
## Enum LinePosition — Defines the border position.
0. center
1. inside
2. outside
## Enum ListMarkerType
0. none
1. bullet
2. numbered
## Enum MaskType
0. vector
1. alpha
2. luminance
## Enum PathFillType — Defines the filling options for overlapping paths.
0. winding
1. evenOdd
## Enum PatternFillType — Defines the image fill type.
0. tile
1. fill
2. stretch
3. fit
4. crop
## Enum ScaleType
0. scale
1. width
2. height
## Enum TextBehavior — Defines textbox behavior options.
0. flexible
1. autoHeight
2. fixed
## Enum TextHorizontalAlignment
0. left
1. right
2. center
3. justify
## Enum TextVerticalAlignment
0. top
1. middle
2. bottom
## Enum VerticalAlignment
0. top
1. center
2. bottom
3. distribute