-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhypar.json
54 lines (54 loc) · 1.42 KB
/
hypar.json
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
{
"$schema": "https://hypar.io/Schemas/Function.json",
"id": "20ee48c0-b138-496e-b247-5b27776650fc",
"name": "UnitPacking",
"display_name": "Unit Packing",
"description": "Function for demonstrating how to fit unit widths into a building length",
"language": "C#",
"input_schema": {
"type": "object",
"properties": {
"Unit Definitions": {
"$hyparCanPopOut": true,
"type": "array",
"$hyparOrder": 1,
"items": {
"$ref": "https://schemas.hypar.io/DummyUnit.json"
}
},
"Building Segment": {
"required": [
"Building Segment"
],
"$ref": "https://hypar.io/Schemas/Geometry/Line.json"
},
"Length Tolerance": {
"type": "number",
"description": "How short the packed units can be from the building length",
"$hyparOrder": 2,
"default": 1,
"minimum": 0.125,
"multipleOf": 0.125,
"maximum": 6
},
"Selected Solution": {
"type": "integer",
"default": 1,
"minimum": 1
}
}
},
"outputs": [
{
"name": "Number of Solutions",
"description": "The number of solutions.",
"type": "number"
}
],
"element_types": [
"https://schemas.hypar.io/DummyUnit.json"
],
"repository_url": "https://github.com/hypar-io/function",
"last_updated": "0001-01-01T00:00:00",
"cli_version": "1.11.0-alpha.13"
}