@rogieking/figui3 8.9.2 → 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-lab.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +2 -2
- package/fig-lab.css +4 -3
- package/fig.js +7 -5
- package/package.json +1 -1
package/fig-lab.css
CHANGED
|
@@ -181,20 +181,21 @@ fig-attachment {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
fig-chat-message {
|
|
184
|
-
display:
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
gap: var(--spacer-2-5);
|
|
185
187
|
box-sizing: border-box;
|
|
186
188
|
width: 100%;
|
|
187
189
|
max-width: 100%;
|
|
188
190
|
color: var(--figma-color-text);
|
|
189
191
|
font-size: var(--body-large-fontSize);
|
|
190
|
-
line-height: calc(var(--line-height) + var(--spacer-1));
|
|
191
192
|
overflow-wrap: anywhere;
|
|
192
193
|
white-space: pre-wrap;
|
|
193
194
|
|
|
194
195
|
&[from="user"] {
|
|
195
196
|
width: auto;
|
|
196
197
|
margin-inline-start: var(--spacer-4);
|
|
197
|
-
padding: var(--spacer-2
|
|
198
|
+
padding: var(--spacer-2-5);
|
|
198
199
|
border-radius: var(--radius-large);
|
|
199
200
|
background: var(--figma-color-bg-secondary);
|
|
200
201
|
}
|
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