git.iko.soy/rowtype-yoga/yoga-r3f
on main help sign in
45 lines 876 B history raw
1export function value(progress) {
2 return function () {
3 return progress.value;
4 };
5}
7export function setValue(value) {
8 return function (progress) {
9 return function () {
10 progress.value = value;
11 };
12 };
15// ----------------------------------------------------------------------------
17export function max(progress) {
18 return function () {
19 return progress.max;
20 };
23export function setMax(max) {
24 return function (progress) {
25 return function () {
26 progress.max = max;
27 };
28 };
31// ----------------------------------------------------------------------------
33export function position(progress) {
34 return function () {
35 return progress.position;
36 };
39// ----------------------------------------------------------------------------
41export function labels(progress) {
42 return function () {
43 return progress.labels;
44 };