You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,8 @@ A number of useful constants are exported as enums. They are as follows:
61
61
|`ADD_ARGUMENT`| Allows the user add an argument to a function definition |`{type: EXTRA_TYPES.ADD_ARGUMENT, argumentType: 'hatType'}`|
62
62
|`ADD_ARGUMENT_GROUP`| A macro for specifying arguments that can be added to a function definition |`{type: EXTRA_TYPES.ADD_ARGUMENT_GROUP, allowed: ['hatType','bootType']}`|
63
63
|`DEBUG_TOGGLE`| Shows the data for a given block, useful in debugging |`EXTRA_TYPES.DEBUG_TOGGLE`|
64
+
|`DIVIDER`| Shows a simple divider to separate groups |`EXTRA_TYPES.DIVIDER`|
65
+
|`LABEL`| Shows a simple, non-interactive label |`{type: EXTRA_TYPES.LABEL}, label: 'Sizes'`|
64
66
65
67
### Store Data
66
68
@@ -171,14 +173,24 @@ const properties = {
171
173
}
172
174
/* A field called 'Speed' that stores a numerical
173
175
value in each instance's `properties.speed` field.
174
-
It must be between 0 and 2, and is by default 1.
176
+
It must be between 0 and 20, and is by default 1.
177
+
It is visually scaled by 0.1, so appears to the user
178
+
to range between 0 and 2, incrementing by steps of 0.1.
179
+
Units are in 'm/s'. Visual Precision indicates the
180
+
number of decimal places to use when displaying
181
+
the number to the users, so this would show values
182
+
to one decimal place.
175
183
*/
176
184
speed: {
177
185
name:"Speed",
178
186
type:SIMPLE_PROPERTY_TYPES.NUMBER,
179
187
default:1,
180
188
min:0,
181
-
max:2
189
+
max:20,
190
+
step:1,
191
+
units:'m/s',
192
+
visualScaling:0.1,
193
+
visualPrecision:1
182
194
},
183
195
/* A field called 'Do Funky' that stores a boolean
184
196
value in each instance's `properties.doFunky` field.
0 commit comments