@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/components.css +18 -11
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +2 -2
- package/fig.js +7 -5
- package/package.json +1 -1
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 =
|
|
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:
|
|
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