diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-03 07:34:53 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-03 07:34:53 +0200 |
commit | 93f2298510c46d4453e182bd244d07e46f818bd6 (patch) | |
tree | 58457d0785cd11b1e1e4d570af3aa38064a44c9c /svg.js.d.ts | |
parent | 049b4de6717898cf50ad59547fba59a4260dc15a (diff) | |
download | svg.js-93f2298510c46d4453e182bd244d07e46f818bd6.tar.gz svg.js-93f2298510c46d4453e182bd244d07e46f818bd6.zip |
add isHTML flag to types (fixes #1266)
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r-- | svg.js.d.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts index e63c859..8a9133a 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -12,7 +12,11 @@ declare type CSSStyleName = Exclude< declare module '@svgdotjs/svg.js' { function SVG(): Svg - function SVG(selector: QuerySelector): Element + /** + * @param selectorOrHtml pass in a css selector or an html/svg string + * @param isHTML only used if first argument is an html string. Will treat the svg/html as html and not svg + */ + function SVG(selectorOrHtml: QuerySelector, isHTML?: boolean): Element function SVG<T>(el: T): SVGTypeMapping<T> function SVG(domElement: HTMLElement): Element |