@ikijs/editor 0.13.0 → 0.14.0

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.mjs CHANGED
@@ -2058,6 +2058,8 @@ var ROLE_TABLE = [
2058
2058
  { role: "pupil_R", family: "eye_R" },
2059
2059
  { role: "highlight_L", family: "eye_L" },
2060
2060
  { role: "highlight_R", family: "eye_R" },
2061
+ { role: "lash_lower_L", family: "eye_L" },
2062
+ { role: "lash_lower_R", family: "eye_R" },
2061
2063
  { role: "lash_L", family: "eye_L" },
2062
2064
  { role: "lash_R", family: "eye_R" },
2063
2065
  { role: "brow_L", family: "brow_L" },
@@ -4391,12 +4393,12 @@ function motionReach(warps, mesh, box, extra = [0, 0]) {
4391
4393
  }
4392
4394
  return out;
4393
4395
  }
4394
- function blinkFold(param, mesh, eye, travel) {
4396
+ function blinkFold(param, mesh, box, travel, eye = box) {
4395
4397
  const yc = eye.y1 - travel * bh(eye);
4396
4398
  return localWarp(
4397
4399
  param,
4398
4400
  mesh,
4399
- eye,
4401
+ box,
4400
4402
  [0, 1],
4401
4403
  ([, y], v) => v === 1 ? [0, 0] : [0, yc - y]
4402
4404
  );
@@ -4745,6 +4747,10 @@ function buildPart(spec, b, order, frame, byRole, style, frontGrid) {
4745
4747
  case "eye_R":
4746
4748
  warps.push(blinkFold(eyeOpen, mesh, b, style.blink));
4747
4749
  break;
4750
+ case "lash_lower_L":
4751
+ case "lash_lower_R":
4752
+ warps.push(blinkFold(eyeOpen, mesh, b, style.blink, box(`eye_${side}`)));
4753
+ break;
4748
4754
  case "lash_L":
4749
4755
  case "lash_R":
4750
4756
  warps.push(lashFold(eyeOpen, mesh, b, box(`eye_${side}`), style.blink));