Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Update and/or configure type declarations. (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Feb 17, 2018
1 parent db0b76d commit 89bdd27
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 125 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before_script:
- >-
npm run update-types && git diff --exit-code || (echo -e
'\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run
update-types".' &&false)
update-types".' && false)
env:
global:
- secure: >-
Expand Down
34 changes: 18 additions & 16 deletions iron-fit-behavior.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,65 +134,67 @@ declare namespace Polymer {
*/
autoFitOnAttach: boolean|null|undefined;
_fitInfo: object|null;
_fitWidth(): any;
_fitHeight(): any;
_fitLeft(): any;
_fitTop(): any;
readonly _fitWidth: any;
readonly _fitHeight: any;
readonly _fitLeft: any;
readonly _fitTop: any;

/**
* The element that should be used to position the element,
* if no position target is configured.
*
*/
_defaultPositionTarget(): any;
readonly _defaultPositionTarget: any;

/**
* The horizontal align value, accounting for the RTL/LTR text direction.
*
*/
_localeHorizontalAlign(): any;
attached(): any;
detached(): any;
readonly _localeHorizontalAlign: any;
attached(): void;
detached(): void;

/**
* Positions and fits the element into the `fitInto` element.
*/
fit(): any;
fit(): void;

/**
* Memoize information needed to position and size the target element.
*/
_discoverInfo(): any;
_discoverInfo(): void;

/**
* Resets the target element's position and size constraints, and clear
* the memoized data.
*/
resetFit(): any;
resetFit(): void;

/**
* Equivalent to calling `resetFit()` and `fit()`. Useful to call this after
* the element or the `fitInto` element has been resized, or if any of the
* positioning properties (e.g. `horizontalAlign, verticalAlign`) is updated.
* It preserves the scroll position of the sizingTarget.
*/
refit(): any;
refit(): void;

/**
* Positions the element according to `horizontalAlign, verticalAlign`.
*/
position(): any;
position(): void;

/**
* Constrains the size of the element to `fitInto` by setting `max-height`
* and/or `max-width`.
*/
constrain(): any;
_sizeDimension(rect: any, positionedBy: any, start: any, end: any, extent: any): any;
constrain(): void;
_sizeDimension(rect: any, positionedBy: any, start: any, end: any, extent: any): void;

/**
* Centers horizontally and vertically if not already positioned. This also sets
* `position:fixed`.
*/
center(): any;
center(): void;
}

const IronFitBehavior: object;
Expand Down
Loading

0 comments on commit 89bdd27

Please sign in to comment.