Skip to content

Commit

Permalink
added typings, fixed browser key in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzyma committed Feb 19, 2019
1 parent 01d4826 commit 4d03fdf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@svgdotjs/svg.panzoom.js",
"version": "2.0.1",
"version": "2.0.2",
"description": "A plugin for svg.js that enables panzoom for viewport elements",
"main": "dist/svg.panzoom.js",
"unpkg": "dist/svg.panzoom.min.js",
"jsdelivr": "dist/svg.panzoom.min.js",
"browser": "dist/svg.panzoom.min.js",
"browser": "src/svg.panzoom.js",
"module": "src/svg.panzoom.js",
"scripts": {
"build": "npm run fix && npm run rollup",
Expand All @@ -26,6 +26,7 @@
],
"author": "Ulrich-Matthias Schäfer",
"license": "MIT",
"typings": "./svg.panzoom.js.d.ts",
"bugs": {
"url": "https://github.com/svgdotjs/svg.panzoom.js/issues"
},
Expand Down
11 changes: 11 additions & 0 deletions svg.panzoom.js.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
interface options {
zoomFactor?: number,
zoomMin?: number,
zoomMax?: number
}

declare module "@svgdotjs/svg.js" {
interface Svg {
panzoom(options?: options): this
}
}

0 comments on commit 4d03fdf

Please sign in to comment.