@rogieking/figui3 1.6.0 → 1.6.1
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 +8 -1
- package/package.json +1 -1
package/fig.js
CHANGED
|
@@ -1940,7 +1940,7 @@ class FigImage extends HTMLElement {
|
|
|
1940
1940
|
});
|
|
1941
1941
|
//emit event for loaded
|
|
1942
1942
|
this.dispatchEvent(
|
|
1943
|
-
new CustomEvent("
|
|
1943
|
+
new CustomEvent("loaded", {
|
|
1944
1944
|
bubbles: true,
|
|
1945
1945
|
cancelable: true,
|
|
1946
1946
|
detail: {
|
|
@@ -1949,6 +1949,13 @@ class FigImage extends HTMLElement {
|
|
|
1949
1949
|
},
|
|
1950
1950
|
})
|
|
1951
1951
|
);
|
|
1952
|
+
//emit for change too
|
|
1953
|
+
this.dispatchEvent(
|
|
1954
|
+
new CustomEvent("change", {
|
|
1955
|
+
bubbles: true,
|
|
1956
|
+
cancelable: true,
|
|
1957
|
+
})
|
|
1958
|
+
);
|
|
1952
1959
|
this.src = this.blob;
|
|
1953
1960
|
this.setAttribute("src", this.src);
|
|
1954
1961
|
this.chit.setAttribute("src", this.src);
|