@hyperbook/markdown 0.25.2 → 0.25.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/dist/assets/client.js
CHANGED
|
@@ -15,7 +15,6 @@ var hyperbook = (function () {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
collapsible.addEventListener("click", () => {
|
|
18
|
-
window.dispatchEvent(new Event("resize")); // geogebra new this in order resize the applet
|
|
19
18
|
collapsible.classList.toggle("expanded");
|
|
20
19
|
if (id) {
|
|
21
20
|
store.collapsibles.get(id).then((result) => {
|
|
@@ -30,6 +29,10 @@ var hyperbook = (function () {
|
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
31
|
}
|
|
32
|
+
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
window.dispatchEvent(new Event("resize")); // geogebra new this in order resize the applet
|
|
35
|
+
}, 100);
|
|
33
36
|
});
|
|
34
37
|
}
|
|
35
38
|
updateCollapsibles(root);
|
|
@@ -745,9 +745,12 @@ class GeogebraElement extends HTMLElement {
|
|
|
745
745
|
app.registerClientListener((detail) => {
|
|
746
746
|
this.dispatchEvent(new CustomEvent(detail.type, { detail: detail }));
|
|
747
747
|
});
|
|
748
|
-
app.registerClearListener(() =>
|
|
749
|
-
this.
|
|
750
|
-
|
|
748
|
+
app.registerClearListener(() => {
|
|
749
|
+
if (this.init_commands) {
|
|
750
|
+
app.evalCommand(this.init_commands);
|
|
751
|
+
}
|
|
752
|
+
this.dispatchEvent(new CustomEvent("clear"));
|
|
753
|
+
});
|
|
751
754
|
const other_events = ["Add", "Click", "Remove", "Rename", "Update"];
|
|
752
755
|
other_events.forEach((event_name) => {
|
|
753
756
|
app[`register${event_name}Listener`]((name) => {
|