@slithy/prim-lib 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -956,6 +956,7 @@ function makeNGon(opts) {
|
|
|
956
956
|
__name(this, "NGonRegular");
|
|
957
957
|
}
|
|
958
958
|
static _ngonOpts = { sides, regular: true, rotatable, noise, sizeRange, mutationScale, startAngle };
|
|
959
|
+
static _shapeSpec = { f: "ngon", o: NGonRegular._ngonOpts };
|
|
959
960
|
center;
|
|
960
961
|
r;
|
|
961
962
|
angle;
|
|
@@ -1059,6 +1060,7 @@ function makeNGon(opts) {
|
|
|
1059
1060
|
__name(this, "NGonIrregular");
|
|
1060
1061
|
}
|
|
1061
1062
|
static _ngonOpts = { sides, regular: false, convex, sizeRange, mutationScale };
|
|
1063
|
+
static _shapeSpec = { f: "ngon", o: NGonIrregular._ngonOpts };
|
|
1062
1064
|
points;
|
|
1063
1065
|
constructor(w, h) {
|
|
1064
1066
|
super(w, h);
|
|
@@ -1134,7 +1136,7 @@ function makeRect(opts) {
|
|
|
1134
1136
|
__name(this, "Rect");
|
|
1135
1137
|
}
|
|
1136
1138
|
static _rectOpts = { widthRange, heightRange, aspectRatio, rotatable, mutationScale };
|
|
1137
|
-
static _shapeSpec = { f: "rect" };
|
|
1139
|
+
static _shapeSpec = { f: "rect", o: Rect._rectOpts };
|
|
1138
1140
|
center;
|
|
1139
1141
|
hw;
|
|
1140
1142
|
hh;
|