designertool 0.12.0 → 0.14.0
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/designertool.js
CHANGED
|
@@ -56830,7 +56830,9 @@ const _hoisted_1$2 = { class: "wbg-dt-z-[1001] wbg-dt-flex wbg-dt-h-max wbg-dt-i
|
|
|
56830
56830
|
emits: ["html-button-click"],
|
|
56831
56831
|
setup(rr, { emit: nr }) {
|
|
56832
56832
|
var fi, wi, Si, Ei, xi, Ai, $i, Ti, Ri, Li, zi, Vi, Ni;
|
|
56833
|
-
const ei = rr, ti = nr
|
|
56833
|
+
const ei = rr, ti = nr;
|
|
56834
|
+
console.log("config is ", ei.config);
|
|
56835
|
+
const { width: ri, height: ni } = useWindowSize(), { orientation: ii } = useScreenOrientation(), ai = useConfig(), oi = useCanvas(), si = computed(
|
|
56834
56836
|
() => ri.value < 1024 && ni.value < 600 || ri.value < 600 && ni.value < 1024
|
|
56835
56837
|
), li = computed(
|
|
56836
56838
|
() => ii.value === "portrait-primary" || ii.value === "portrait-secondary"
|
|
@@ -56856,9 +56858,10 @@ const _hoisted_1$2 = { class: "wbg-dt-z-[1001] wbg-dt-flex wbg-dt-h-max wbg-dt-i
|
|
|
56856
56858
|
vi.value = Mi;
|
|
56857
56859
|
}
|
|
56858
56860
|
return onMounted(() => {
|
|
56859
|
-
|
|
56860
|
-
|
|
56861
|
-
|
|
56861
|
+
const Mi = typeof ei.config == "string" ? JSON.parse(ei.config) : ei.config;
|
|
56862
|
+
ai.init({ ...Mi, onHtmlButtonClick: (na) => ti("html-button-click", na) }), oi.checkIfIsWrappedInModal(), !si.value && !li.value && useConfig().addFont(useConfig().config.fonts);
|
|
56863
|
+
const Gi = document.createElement("link");
|
|
56864
|
+
Gi.rel = "stylesheet", Gi.href = "https://designertool-development.s3.us-east-1.amazonaws.com/icomoon/fonts/style.css", document.head.appendChild(Gi);
|
|
56862
56865
|
}), (Mi, Gi) => (openBlock(), createElementBlock(Fragment, null, [
|
|
56863
56866
|
si.value || li.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
56864
56867
|
createVNode(_sfc_main$1, { device: ci.value }, null, 8, ["device"])
|