-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
ticks.cljs
29 lines (27 loc) · 1.27 KB
/
ticks.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
(ns mathbox.primitives.draw.ticks
(:require ["mathbox-react" :as box]
[reagent.core :as r]))
(def ^{:doc "*Draw ticks*
: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
:epsilon `0.0001` (number) - Tick epsilon
:id `null` (nullable string) - Unique ID, e.g. `\\\"sampler\\\"`
:normal `true` (bool) - Normal for reference plane
:opacity `1` (positive number) - Opacity
:points `<` (select) - Points data source
:proximity `null` (nullable number) - Proximity threshold, e.g. `10`
:size `10` (number) - Tick size
: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"}
Ticks
(r/adapt-react-class box/Ticks))