Skip to content

Commit

Permalink
fixed documentation and types
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Apr 22, 2021
1 parent 855c1f3 commit d4d0a07
Show file tree
Hide file tree
Showing 14 changed files with 671 additions and 314 deletions.
59 changes: 50 additions & 9 deletions dist/cjs/viewport.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/viewport.js.map

Large diffs are not rendered by default.

59 changes: 50 additions & 9 deletions dist/esm/viewport.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/viewport.es.js.map

Large diffs are not rendered by default.

59 changes: 50 additions & 9 deletions dist/viewport.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/viewport.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/viewport.min.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/viewport.min.min.js.map

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions index.d.ts
Expand Up @@ -186,8 +186,8 @@ export declare interface IClampZoomOptions {
minHeight?: number | null;
maxWidth?: number | null;
maxHeight?: number | null;
minScale?: number | null;
maxScale?: number | null;
minScale?: number | null | IScale;
maxScale?: number | null | IScale;
}

export declare interface ICompleteViewportOptions extends IViewportOptions {
Expand Down Expand Up @@ -281,6 +281,11 @@ export declare interface IPinchOptions {
axis?: 'all' | 'x' | 'y';
}

export declare interface IScale {
x: null | number;
y: null | number;
}

export declare interface ISnapOptions {
topLeft?: boolean;
friction?: number;
Expand Down

0 comments on commit d4d0a07

Please sign in to comment.