@rogieking/figui3 10.0.8 → 10.0.10
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/CHANGELOG.md +21 -0
- package/base.css +12 -11
- package/components.css +204 -8
- package/dist/base.css +1 -1
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +1 -1
- package/fig.js +1 -20
- package/package.json +1 -1
package/fig.js
CHANGED
|
@@ -20049,30 +20049,11 @@ class FigChooser extends HTMLElement {
|
|
|
20049
20049
|
}
|
|
20050
20050
|
|
|
20051
20051
|
#scheduleInitialScrollSettle() {
|
|
20052
|
-
|
|
20052
|
+
requestAnimationFrame(() => {
|
|
20053
20053
|
if (!this.isConnected || !this.autoScroll) return;
|
|
20054
20054
|
if (this.#selectedChoice) {
|
|
20055
20055
|
this.#scrollToChoice(this.#selectedChoice);
|
|
20056
20056
|
}
|
|
20057
|
-
};
|
|
20058
|
-
const wireImages = () => {
|
|
20059
|
-
const imgs = this.querySelectorAll("img, video");
|
|
20060
|
-
for (const m of imgs) {
|
|
20061
|
-
if (m.tagName === "IMG" ? m.complete : m.readyState >= 1) continue;
|
|
20062
|
-
const done = () => {
|
|
20063
|
-
m.removeEventListener("load", done);
|
|
20064
|
-
m.removeEventListener("loadedmetadata", done);
|
|
20065
|
-
m.removeEventListener("error", done);
|
|
20066
|
-
resettle();
|
|
20067
|
-
};
|
|
20068
|
-
m.addEventListener("load", done);
|
|
20069
|
-
m.addEventListener("loadedmetadata", done);
|
|
20070
|
-
m.addEventListener("error", done);
|
|
20071
|
-
}
|
|
20072
|
-
};
|
|
20073
|
-
requestAnimationFrame(() => {
|
|
20074
|
-
wireImages();
|
|
20075
|
-
resettle();
|
|
20076
20057
|
});
|
|
20077
20058
|
}
|
|
20078
20059
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rogieking/figui3",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.10",
|
|
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": "SEE LICENSE IN LICENSE",
|