aboutsummaryrefslogtreecommitdiffstats
path: root/svg.js.d.ts
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-06-03 07:17:30 +1000
committerGitHub <noreply@github.com>2020-06-03 07:17:30 +1000
commiteb3bd6c456fa1bd4ff5d38569b2851356042191d (patch)
tree68750b2ecdda9835bbea9a069335b8b33aa26025 /svg.js.d.ts
parentbc938f05b708041921cf9d75b2cd84c92574c463 (diff)
parentb7e1bdd1f9b9395b62079c3f4eafdf4b0e7cf997 (diff)
downloadsvg.js-eb3bd6c456fa1bd4ff5d38569b2851356042191d.tar.gz
svg.js-eb3bd6c456fa1bd4ff5d38569b2851356042191d.zip
Merge pull request #1126 from pjbatista/1124-window-exports
Added exports from window.js
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r--svg.js.d.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index 2264c66..5edfdfb 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -35,7 +35,11 @@ declare module "@svgdotjs/svg.js" {
function find(query: QuerySelector): List<Element>
function findOne(query: QuerySelector): Element
+ function getWindow(): Window;
function registerWindow(win: Window, doc: Document): void;
+ function restoreWindow(): void;
+ function saveWindow(): void;
+ function withWindow(win: Window, fn: (win: Window, doc: Document) => void): void;
let utils: {
map(array: any[], block: Function): any;