From 841d592904c3c97cf6f65f76d495646087276e17 Mon Sep 17 00:00:00 2001 From: mpro7 Date: Wed, 21 Mar 2018 00:19:08 +0100 Subject: WIP: type definitions fixed for selector.js + added click method for set.js --- svg.js.d.ts | 7 ++++--- 1 file 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 -- cgit v1.2.3