|
15 | 15 |
|
16 | 16 | @Name("Shape Length/Width/Height") |
17 | 17 | @Description({ |
18 | | - "The length, width, or height of a shape. Changing this will change the size of the shape. Resetting or deleting it will set it back to the default value of 1.", |
19 | | - "Be sure to use 'shape length' instead of just 'length' to avoid conflicts with other syntax." |
| 18 | + "The length, width, or height of a shape. Changing this will change the size of the shape. Resetting or deleting it will set it back to the default value of 1." |
20 | 19 | }) |
21 | 20 | @Examples({ |
22 | | - "set {_shape}'s length to 5", |
23 | | - "set {_shape}'s width to 5", |
24 | | - "set {_shape}'s height to 5", |
25 | | - "reset {_shape}'s length", |
26 | | - "reset {_shape}'s width", |
27 | | - "add 6 to {_shape}'s height" |
| 21 | + "set {_shape}'s shape length to 5", |
| 22 | + "set {_shape}'s shape width to 5", |
| 23 | + "set {_shape}'s shape height to 5", |
| 24 | + "reset {_shape}'s shape length", |
| 25 | + "reset {_shape}'s shape width", |
| 26 | + "add 6 to {_shape}'s shape height" |
28 | 27 | }) |
29 | 28 | @Since("1.0.0") |
30 | 29 | public class ExprShapeLWH extends SimplePropertyExpression<LWHShape, Number> { |
31 | 30 |
|
32 | 31 | static { |
33 | | - register(ExprShapeLWH.class, Number.class, "[shape] (:length|:width|:height)", "lwhshapes"); |
| 32 | + register(ExprShapeLWH.class, Number.class, "shape (:length|:width|:height)", "lwhshapes"); |
34 | 33 | } |
35 | 34 |
|
36 | 35 | private int lwh; |
|
0 commit comments