circuit-json-to-gltf 0.0.44 → 0.0.46
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 +4 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14785,10 +14785,6 @@ var import_booleans = __toESM(require_booleans(), 1);
|
|
|
14785
14785
|
var geom3 = __toESM(require_geom3(), 1);
|
|
14786
14786
|
var import_measureBoundingBox = __toESM(require_measureBoundingBox2(), 1);
|
|
14787
14787
|
var RADIUS_EPSILON = 1e-4;
|
|
14788
|
-
var toVec2 = (point, center) => [
|
|
14789
|
-
point.x - center.x,
|
|
14790
|
-
point.y - center.y
|
|
14791
|
-
];
|
|
14792
14788
|
var getNumberProperty = (obj, key) => {
|
|
14793
14789
|
const value = obj[key];
|
|
14794
14790
|
return typeof value === "number" ? value : void 0;
|
|
@@ -14796,7 +14792,10 @@ var getNumberProperty = (obj, key) => {
|
|
|
14796
14792
|
var createBoardOutlineGeom = (board, center, thickness) => {
|
|
14797
14793
|
const outline = "outline" in board ? board.outline : void 0;
|
|
14798
14794
|
if (outline && outline.length >= 3) {
|
|
14799
|
-
let outlinePoints = outline.map((pt) =>
|
|
14795
|
+
let outlinePoints = outline.map((pt) => [
|
|
14796
|
+
pt.x - center.x,
|
|
14797
|
+
-(pt.y - center.y)
|
|
14798
|
+
]);
|
|
14800
14799
|
if (arePointsClockwise(outlinePoints)) {
|
|
14801
14800
|
outlinePoints = outlinePoints.slice().reverse();
|
|
14802
14801
|
}
|