@rogieking/figui3 8.9.3 → 8.9.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.
package/fig.js CHANGED
@@ -13956,6 +13956,7 @@ class FigEasingCurve extends HTMLElement {
13956
13956
  },
13957
13957
  figCreateElement("fig-handle", {
13958
13958
  size: "small",
13959
+ type: "minimal",
13959
13960
  "aria-label": label,
13960
13961
  }),
13961
13962
  );
@@ -14148,10 +14149,7 @@ class FigEasingCurve extends HTMLElement {
14148
14149
  const minVal = Math.min(0, this.#cp1.y, this.#cp2.y);
14149
14150
  const maxVal = Math.max(1, this.#cp1.y, this.#cp2.y);
14150
14151
  const range = maxVal - minVal || 1;
14151
- const pad = Math.min(
14152
- this.#bezierHandleRadius,
14153
- Math.max(0, (this.#drawHeight - 1) / 2),
14154
- );
14152
+ const pad = 0;
14155
14153
  return {
14156
14154
  minVal,
14157
14155
  maxVal,
@@ -14705,7 +14703,11 @@ class FigEasingCurve extends HTMLElement {
14705
14703
  x:
14706
14704
  startPoint.x +
14707
14705
  (e.clientX - startClientX) / Math.max(1, svgRect.width),
14708
- y: startPoint.y - (e.clientY - startClientY) * unitsPerClientY,
14706
+ y: e.shiftKey
14707
+ ? handle === 1
14708
+ ? 0
14709
+ : 1
14710
+ : startPoint.y - (e.clientY - startClientY) * unitsPerClientY,
14709
14711
  };
14710
14712
 
14711
14713
  norm.x = Math.round(norm.x * 100) / 100;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "8.9.3",
3
+ "version": "8.9.4",
4
4
  "description": "A lightweight web components library for building Figma plugin and widget UIs with native look and feel",
5
5
  "author": "Rogie King",
6
6
  "license": "MIT",