-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
data.cljs
197 lines (183 loc) · 9.95 KB
/
data.cljs
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
(ns mathbox.primitives.data
(:require ["mathbox-react" :as box]
[reagent.core :as r]))
(def Area
"*2D sampled matrix*
- `:aligned`: `false` (bool) - Use (fast) integer lookups
- `:axes`: `[1, 2]` (swizzle(2) axis) - Axis pair
- `:bufferHeight`: `1` (number) - Matrix buffer height
- `:bufferWidth`: `1` (number) - Matrix buffer width
- `:centeredX`: `false` (bool) - Centered instead of corner sampling
- `:centeredY`: `false` (bool) - Centered instead of corner sampling
- `:channels`: `4` (number) - Number of channels
- `:classes`: `[]` (string array) - Custom classes, e.g. `[\"big\"]`
- `:data`: `null` (nullable object) - Data array
- `:expr`: `null` (nullable emitter) - Data emitter expression, e.g. `function (emit, x, y, i, j, time, delta) { ... }`
- `:fps`: `null` (nullable number) - Frames-per-second update rate, e.g. `60`
- `:height`: `1` (nullable number) - Matrix height
- `:history`: `1` (number) - Matrix history
- `:hurry`: `5` (number) - Maximum frames to hurry per frame
- `:id`: `null` (nullable string) - Unique ID, e.g. `\"sampler\"`
- `:items`: `4` (number) - Number of items
- `:limit`: `60` (number) - Maximum frames to track
- `:live`: `true` (bool) - Update continuously
- `:magFilter`: `\"nearest\"` (filter) - Texture magnification filtering
- `:minFilter`: `\"nearest\"` (filter) - Texture minification filtering
- `:observe`: `false` (bool) - Pass clock time to data
- `:paddingX`: `0` (number) - Number of samples padding
- `:paddingY`: `0` (number) - Number of samples padding
- `:rangeX`: `[-1, 1]` (vec2) - Range on axis
- `:rangeY`: `[-1, 1]` (vec2) - Range on axis
- `:realtime`: `false` (bool) - Run on real time, not clock time
- `:type`: `\"float\"` (type) - Texture data type
- `:width`: `1` (nullable number) - Matrix width"
(r/adapt-react-class box/Area))
(def Array
"*1D array*
- `:aligned`: `false` (bool) - Use (fast) integer lookups
- `:bufferWidth`: `1` (number) - Array buffer width
- `:channels`: `4` (number) - Number of channels
- `:classes`: `[]` (string array) - Custom classes, e.g. `[\"big\"]`
- `:data`: `null` (nullable object) - Data array
- `:expr`: `null` (nullable emitter) - Data emitter expression, e.g. `function (emit, i, time, delta) { ... }`
- `:fps`: `null` (nullable number) - Frames-per-second update rate, e.g. `60`
- `:history`: `1` (number) - Array history
- `:hurry`: `5` (number) - Maximum frames to hurry per frame
- `:id`: `null` (nullable string) - Unique ID, e.g. `\"sampler\"`
- `:items`: `4` (number) - Number of items
- `:limit`: `60` (number) - Maximum frames to track
- `:live`: `true` (bool) - Update continuously
- `:magFilter`: `\"nearest\"` (filter) - Texture magnification filtering
- `:minFilter`: `\"nearest\"` (filter) - Texture minification filtering
- `:observe`: `false` (bool) - Pass clock time to data
- `:realtime`: `false` (bool) - Run on real time, not clock time
- `:type`: `\"float\"` (type) - Texture data type
- `:width`: `1` (nullable number) - Array width"
(r/adapt-react-class box/Array))
(def Interval
"*1D sampled array*
- `:aligned`: `false` (bool) - Use (fast) integer lookups
- `:axis`: `1` (axis) - Axis
- `:bufferWidth`: `1` (number) - Array buffer width
- `:centered`: `false` (bool) - Centered instead of corner sampling
- `:channels`: `4` (number) - Number of channels
- `:classes`: `[]` (string array) - Custom classes, e.g. `[\"big\"]`
- `:data`: `null` (nullable object) - Data array
- `:expr`: `null` (nullable emitter) - Data emitter expression, e.g. `function (emit, x, i, time, delta) { ... }`
- `:fps`: `null` (nullable number) - Frames-per-second update rate, e.g. `60`
- `:history`: `1` (number) - Array history
- `:hurry`: `5` (number) - Maximum frames to hurry per frame
- `:id`: `null` (nullable string) - Unique ID, e.g. `\"sampler\"`
- `:items`: `4` (number) - Number of items
- `:limit`: `60` (number) - Maximum frames to track
- `:live`: `true` (bool) - Update continuously
- `:magFilter`: `\"nearest\"` (filter) - Texture magnification filtering
- `:minFilter`: `\"nearest\"` (filter) - Texture minification filtering
- `:observe`: `false` (bool) - Pass clock time to data
- `:padding`: `0` (number) - Number of samples padding
- `:range`: `[-1, 1]` (vec2) - Range on axis
- `:realtime`: `false` (bool) - Run on real time, not clock time
- `:type`: `\"float\"` (type) - Texture data type
- `:width`: `1` (nullable number) - Array width"
(r/adapt-react-class box/Interval))
(def Matrix
"*2D matrix*
- `:aligned`: `false` (bool) - Use (fast) integer lookups
- `:bufferHeight`: `1` (number) - Matrix buffer height
- `:bufferWidth`: `1` (number) - Matrix buffer width
- `:channels`: `4` (number) - Number of channels
- `:classes`: `[]` (string array) - Custom classes, e.g. `[\"big\"]`
- `:data`: `null` (nullable object) - Data array
- `:expr`: `null` (nullable emitter) - Data emitter expression, e.g. `function (emit, i, j, time, delta) { ... }`
- `:fps`: `null` (nullable number) - Frames-per-second update rate, e.g. `60`
- `:height`: `1` (nullable number) - Matrix height
- `:history`: `1` (number) - Matrix history
- `:hurry`: `5` (number) - Maximum frames to hurry per frame
- `:id`: `null` (nullable string) - Unique ID, e.g. `\"sampler\"`
- `:items`: `4` (number) - Number of items
- `:limit`: `60` (number) - Maximum frames to track
- `:live`: `true` (bool) - Update continuously
- `:magFilter`: `\"nearest\"` (filter) - Texture magnification filtering
- `:minFilter`: `\"nearest\"` (filter) - Texture minification filtering
- `:observe`: `false` (bool) - Pass clock time to data
- `:realtime`: `false` (bool) - Run on real time, not clock time
- `:type`: `\"float\"` (type) - Texture data type
- `:width`: `1` (nullable number) - Matrix width"
(r/adapt-react-class box/Matrix))
(def Scale
"*Human-friendly divisions on an axis, subdivided as needed*
- `:axis`: `1` (axis) - Axis
- `:base`: `10` (number) - Power base for sub/super units
- `:classes`: `[]` (string array) - Custom classes, e.g. `[\"big\"]`
- `:divide`: `10` (number) - Number of divisions
- `:end`: `true` (bool) - Include end
- `:factor`: `1` (positive number) - Scale factor
- `:id`: `null` (nullable string) - Unique ID, e.g. `\"sampler\"`
- `:mode`: `\"linear\"` (scale) - Scale type
- `:nice`: `true` (bool) - Snap to nice numbers
- `:origin`: `[0, 0, 0, 0]` (vec4) - 4D Origin
- `:range`: `[-1, 1]` (vec2) - Range on axis
- `:start`: `true` (bool) - Include start
- `:unit`: `1` (number) - Reference unit
- `:zero`: `true` (bool) - Include zero"
(r/adapt-react-class box/Scale))
(def Volume
"*3D sampled voxels*
- `:aligned`: `false` (bool) - Use (fast) integer lookups
- `:axes`: `[1, 2, 3]` (swizzle(3) axis) - Axis triplet
- `:bufferDepth`: `1` (number) - Voxel buffer depth
- `:bufferHeight`: `1` (number) - Voxel buffer height
- `:bufferWidth`: `1` (number) - Voxel buffer width
- `:centeredX`: `false` (bool) - Centered instead of corner sampling
- `:centeredY`: `false` (bool) - Centered instead of corner sampling
- `:centeredZ`: `false` (bool) - Centered instead of corner sampling
- `:channels`: `4` (number) - Number of channels
- `:classes`: `[]` (string array) - Custom classes, e.g. `[\"big\"]`
- `:data`: `null` (nullable object) - Data array
- `:depth`: `1` (nullable number) - Voxel depth
- `:expr`: `null` (nullable emitter) - Data emitter expression, e.g. `function (emit, x, y, z, i, j, k, time, delta) { ... }`
- `:fps`: `null` (nullable number) - Frames-per-second update rate, e.g. `60`
- `:height`: `1` (nullable number) - Voxel height
- `:hurry`: `5` (number) - Maximum frames to hurry per frame
- `:id`: `null` (nullable string) - Unique ID, e.g. `\"sampler\"`
- `:items`: `4` (number) - Number of items
- `:limit`: `60` (number) - Maximum frames to track
- `:live`: `true` (bool) - Update continuously
- `:magFilter`: `\"nearest\"` (filter) - Texture magnification filtering
- `:minFilter`: `\"nearest\"` (filter) - Texture minification filtering
- `:observe`: `false` (bool) - Pass clock time to data
- `:paddingX`: `0` (number) - Number of samples padding
- `:paddingY`: `0` (number) - Number of samples padding
- `:paddingZ`: `0` (number) - Number of samples padding
- `:rangeX`: `[-1, 1]` (vec2) - Range on axis
- `:rangeY`: `[-1, 1]` (vec2) - Range on axis
- `:rangeZ`: `[-1, 1]` (vec2) - Range on axis
- `:realtime`: `false` (bool) - Run on real time, not clock time
- `:type`: `\"float\"` (type) - Texture data type
- `:width`: `1` (nullable number) - Voxel width"
(r/adapt-react-class box/Volume))
(def Voxel
"*3D voxels*
- `:aligned`: `false` (bool) - Use (fast) integer lookups
- `:bufferDepth`: `1` (number) - Voxel buffer depth
- `:bufferHeight`: `1` (number) - Voxel buffer height
- `:bufferWidth`: `1` (number) - Voxel buffer width
- `:channels`: `4` (number) - Number of channels
- `:classes`: `[]` (string array) - Custom classes, e.g. `[\"big\"]`
- `:data`: `null` (nullable object) - Data array
- `:depth`: `1` (nullable number) - Voxel depth
- `:expr`: `null` (nullable emitter) - Data emitter expression, e.g. `function (emit, i, j, k, time, delta) { ... }`
- `:fps`: `null` (nullable number) - Frames-per-second update rate, e.g. `60`
- `:height`: `1` (nullable number) - Voxel height
- `:hurry`: `5` (number) - Maximum frames to hurry per frame
- `:id`: `null` (nullable string) - Unique ID, e.g. `\"sampler\"`
- `:items`: `4` (number) - Number of items
- `:limit`: `60` (number) - Maximum frames to track
- `:live`: `true` (bool) - Update continuously
- `:magFilter`: `\"nearest\"` (filter) - Texture magnification filtering
- `:minFilter`: `\"nearest\"` (filter) - Texture minification filtering
- `:observe`: `false` (bool) - Pass clock time to data
- `:realtime`: `false` (bool) - Run on real time, not clock time
- `:type`: `\"float\"` (type) - Texture data type
- `:width`: `1` (nullable number) - Voxel width"
(r/adapt-react-class box/Voxel))