-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
strip.cljs
31 lines (29 loc) · 1.37 KB
/
strip.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
(ns mathbox.primitives.draw.strip
(:require ["mathbox-react" :as box]
[reagent.core :as r]))
(def ^{:doc "*Draw triangle strips*
:blending `\\\"normal\\\"` (blending) - Blending mode ('no, normal, add, subtract, multiply)
:classes `[]` (string array) - Custom classes, e.g. `[\\\"big\\\"]`
:closed `false` (bool) - Close line
:color `\\\"rgb(128, 128, 128)\\\"` (color) - Color
:colors `null` (nullable select) - Colors data source, e.g. `\\\"#colors\\\"`
:depth `1` (number) - Depth scaling
:fill `true` (bool) - Fill mesh
:id `null` (nullable string) - Unique ID, e.g. `\\\"sampler\\\"`
:line `false` (bool) - Draw line
:lineBias `5` (number) - Z-Bias for lines on fill
:map `null` (nullable select) - Texture map source, e.g. `\\\"#map\\\"`
:opacity `1` (positive number) - Opacity
:points `<` (select) - Points data source
:proximity `null` (nullable number) - Proximity threshold, e.g. `10`
:shaded `false` (bool) - Shade mesh
:stroke `\\\"solid\\\"` (stroke) - Line stroke (solid, dotted, dashed)
:visible `true` (bool) - Visibility for rendering
:width `2` (positive number) - Line width
: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 `true` (bool) - Test Z buffer
:zWrite `true` (bool) - Write Z buffer"}
Strip
(r/adapt-react-class box/Strip))