summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpro7 <justinstarlight@gmail.com>2018-03-21 00:19:08 +0100
committermpro7 <justinstarlight@gmail.com>2018-03-21 00:19:08 +0100
commit841d592904c3c97cf6f65f76d495646087276e17 (patch)
tree515eb54a7d93aa66f46b9397d5d8bad3275b7d48
parent2ab00aad50f38eac036d26b5f65a1a7644b04151 (diff)
downloadsvg.js-841d592904c3c97cf6f65f76d495646087276e17.tar.gz
svg.js-841d592904c3c97cf6f65f76d495646087276e17.zip
WIP: type definitions fixed for selector.js + added click method for set.js
-rw-r--r--svg.js.d.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index 4a08093..75ea533 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -754,10 +754,10 @@ declare namespace svgjs {
// selector.js
interface Library {
get(id: string): Element;
- select(query: string, parent: HTMLElement): Set;
+ select(query: string): Set;
}
interface Parent {
- select(query: string): Set;
+ select(query: string, parent: HTMLElement): Set;
}
// set.js
@@ -775,6 +775,7 @@ declare namespace svgjs {
last(): Element;
valueOf(): Element[];
bbox(): BBox;
+ click(cb: Function): Set;
}
interface Container { set(members?: Element[]): Set; }
interface Library { Set: Set; }
@@ -1020,4 +1021,4 @@ declare namespace svgjs {
// TODO style, etc, bbox...
}
-}
+} \ No newline at end of file