-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
array.cljs
27 lines (25 loc) · 1.25 KB
/
array.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
(ns mathbox.primitives.data.array
(:require ["mathbox-react" :as box]
[reagent.core :as r]))
(def ^{:doc "*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"}
Array
(r/adapt-react-class box/Array))