poly-extrude 0.17.0 → 0.17.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * poly-extrude v0.17.0
2
+ * poly-extrude v0.17.1
3
3
  */
4
4
  (function (global, factory) {
5
5
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -4483,11 +4483,11 @@
4483
4483
  const ring = polygon[i];
4484
4484
  validateRing(ring);
4485
4485
  if (i === 0) {
4486
- if (isClockwise(ring)) {
4486
+ if (!isClockwise(ring)) {
4487
4487
  polygon[i] = ring.reverse();
4488
4488
  }
4489
4489
  }
4490
- else if (!isClockwise(ring)) {
4490
+ else if (isClockwise(ring)) {
4491
4491
  polygon[i] = ring.reverse();
4492
4492
  }
4493
4493
  }
@@ -4537,7 +4537,7 @@
4537
4537
  // dz: 0,
4538
4538
  distance,
4539
4539
  radius: Math.sqrt(offsetx * offsetx + offsety * offsety),
4540
- angle: getAngle(center, p)
4540
+ angle: -getAngle(center, p)
4541
4541
  };
4542
4542
  tempPoint = p;
4543
4543
  }