@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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slithy/prim-lib",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Core engine for primitive-based image reconstruction.",
5
5
  "type": "module",
6
6
  "exports": {