-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
compose.cljs
21 lines (19 loc) · 904 Bytes
/
compose.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(ns mathbox.primitives.rtt.compose
(:require ["mathbox-react" :as box]
[reagent.core :as r]))
(def ^{:doc "*Full-screen render pass*
:alpha `false` (bool) - Compose with alpha transparency
:blending `\\\"normal\\\"` (blending) - Blending mode ('no, normal, add, subtract, multiply)
:classes `[]` (string array) - Custom classes, e.g. `[\\\"big\\\"]`
:color `\\\"white\\\"` (color) - Color
:id `null` (nullable string) - Unique ID, e.g. `\\\"sampler\\\"`
:opacity `1` (positive number) - Opacity
:source `\\\"<\\\"` (select) - Input source
:visible `true` (bool) - Visibility for rendering
:zBias `0` (positive number) - Z-Bias (3D stacking)
:zIndex `0` (positive int) - Z-Index (2D stacking)
:zOrder `null` (nullable number) - Z-Order (drawing order), e.g. `2`
:zTest `false` (bool) - Test Z buffer
:zWrite `false` (bool) - Write Z buffer"}
Compose
(r/adapt-react-class box/Compose))