Comparing version 0.1.89 to 0.1.90
{ | ||
"name": "webdetta", | ||
"version": "0.1.89", | ||
"version": "0.1.90", | ||
"author": "Fedot Kriutchenko <fodyadev@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -43,3 +43,2 @@ import { toFn } from './utils.js'; | ||
}); | ||
export const measureText = (text, style={}) => { | ||
@@ -58,5 +57,5 @@ document.documentElement.append(dummyDiv); | ||
const dummyAnchor = document.createElement("a"); | ||
document.head.append(dummyAnchor); | ||
dummyAnchor.style = "display: none"; | ||
export const saveBlob = (filename, blob) => { | ||
document.documentElement.append(dummyAnchor); | ||
const url = window.URL.createObjectURL(blob); | ||
@@ -63,0 +62,0 @@ dummyAnchor.href = url; |
@@ -105,2 +105,3 @@ import { Context } from '../common/context.js'; | ||
let aborted; | ||
effectsAbortSignal()?.addEventListener('abort', () => aborted = true); | ||
const handler = throttle.sync(() => { | ||
@@ -115,3 +116,2 @@ if (aborted) return; | ||
const wrappedFunc = withHandler(func, handler); | ||
effectsAbortSignal()?.addEventListener('abort', () => aborted = true); | ||
return handler(); | ||
@@ -118,0 +118,0 @@ } |
149129