arcanumcube 0.2.2 → 0.2.4

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.
@@ -1468,7 +1468,7 @@ class WebGLArcanumCube extends ArcanumCube {
1468
1468
  const qb = new THREE__namespace.Quaternion();
1469
1469
  const cubeList = Object.values(this._cubeMap);
1470
1470
  if (duration === 0) {
1471
- cubeList.forEach((cube, index) => {
1471
+ cubeList.forEach((cube) => {
1472
1472
  cube.getGroup().quaternion.copy(qb);
1473
1473
  });
1474
1474
  super.reset();
@@ -1714,7 +1714,7 @@ class WebGLArcanumCube extends ArcanumCube {
1714
1714
  const opts = {};
1715
1715
  const ontwisted = options?.onTwisted;
1716
1716
  if (ontwisted)
1717
- opts.onTwisted = (self, twist2, n1, n2) => ontwisted(this, twist2, i + 1, len);
1717
+ opts.onTwisted = (self, twist2) => ontwisted(this, twist2, i + 1, len);
1718
1718
  if (i === len - 1 && options?.onComplete) opts.onComplete = options.onComplete;
1719
1719
  const t = this._easingTwist(c, reverse, lap, cancel, opts);
1720
1720
  this._easings.add(t);