| OLD | NEW |
| 1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP
P | 1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP
P |
| 2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P:::::::::::::::
:P | 2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P:::::::::::::::
:P |
| 3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::
::P | 3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::
::P |
| 4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P::
:::P | 4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P::
:::P |
| 5 // S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P::
:::P | 5 // S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P::
:::P |
| 6 // S:::::S T:::::T O:::::O O:::::O P::::P P::
:::P | 6 // S:::::S T:::::T O:::::O O:::::O P::::P P::
:::P |
| 7 // S::::SSSS P::::PPPPPP:::
::P | 7 // S::::SSSS P::::PPPPPP:::
::P |
| 8 // SS::::::SSSSS This file is generated. To update it, P:::::::::::::
PP | 8 // SS::::::SSSSS This file is generated. To update it, P:::::::::::::
PP |
| 9 // SSS::::::::SS run roll_closure_compiler. P::::PPPPPPPPP | 9 // SSS::::::::SS run roll_closure_compiler. P::::PPPPPPPPP |
| 10 // SSSSSS::::S P::::P | 10 // SSSSSS::::S P::::P |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 * Gets the original target of the given event. | 543 * Gets the original target of the given event. |
| 544 * | 544 * |
| 545 * Cheaper than Polymer.dom(ev).path[0]; | 545 * Cheaper than Polymer.dom(ev).path[0]; |
| 546 * See https://github.com/Polymer/polymer/blob/master/src/standard/gestures.html
#L191 | 546 * See https://github.com/Polymer/polymer/blob/master/src/standard/gestures.html
#L191 |
| 547 * | 547 * |
| 548 * @param {Event} ev . | 548 * @param {Event} ev . |
| 549 * @return {Element} The original target of the event. | 549 * @return {Element} The original target of the event. |
| 550 */ | 550 */ |
| 551 Polymer.Gestures.findOriginalTarget = function(ev) {}; | 551 Polymer.Gestures.findOriginalTarget = function(ev) {}; |
| 552 | 552 |
| 553 /** @type {!Object} */ |
| 554 Polymer.Gestures.gestures = {}; |
| 555 |
| 556 /** @type {!Object} */ |
| 557 Polymer.Gestures.gestures.tap = {}; |
| 558 |
| 559 /** @return {void} */ |
| 560 Polymer.Gestures.gestures.tap.reset = function() {}; |
| 553 | 561 |
| 554 /** | 562 /** |
| 555 * @param {number} handle | 563 * @param {number} handle |
| 556 */ | 564 */ |
| 557 PolymerElement.prototype.cancelAsync = function(handle) {}; | 565 PolymerElement.prototype.cancelAsync = function(handle) {}; |
| 558 | 566 |
| 559 /** | 567 /** |
| 560 * Call debounce to collapse multiple requests for a named task into one | 568 * Call debounce to collapse multiple requests for a named task into one |
| 561 * invocation, which is made after the wait time has elapsed with no new | 569 * invocation, which is made after the wait time has elapsed with no new |
| 562 * request. If no wait time is given, the callback is called at microtask timing | 570 * request. If no wait time is given, the callback is called at microtask timing |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 * shortcut for setting `customStyle` and then calling `updateStyles`. | 663 * shortcut for setting `customStyle` and then calling `updateStyles`. |
| 656 */ | 664 */ |
| 657 PolymerElement.prototype.updateStyles = function(properties) {}; | 665 PolymerElement.prototype.updateStyles = function(properties) {}; |
| 658 | 666 |
| 659 /** | 667 /** |
| 660 * @type {!Object<string, string|undefined>} | 668 * @type {!Object<string, string|undefined>} |
| 661 */ | 669 */ |
| 662 PolymerElement.prototype.customStyle; | 670 PolymerElement.prototype.customStyle; |
| 663 | 671 |
| 664 /** | 672 /** |
| 673 * Convenience method for creating an element and configuring it. |
| 674 * @param {string} tagName HTML tag name |
| 675 * @param {IObject<string, *>=} properties Object of properties to configure on
the instance |
| 676 * @return {!Element} |
| 677 */ |
| 678 PolymerElement.prototype.create = function(tagName, properties) {}; |
| 679 |
| 680 /** |
| 665 * Returns the computed style value for the given property. | 681 * Returns the computed style value for the given property. |
| 666 * @param {string} property | 682 * @param {string} property |
| 667 * @return {string} the computed value | 683 * @return {string} the computed value |
| 668 */ | 684 */ |
| 669 PolymerElement.prototype.getComputedStyleValue = function(property) {}; | 685 PolymerElement.prototype.getComputedStyleValue = function(property) {}; |
| 670 | 686 |
| 671 /** | 687 /** |
| 672 * Logs a message to the console. | 688 * Logs a message to the console. |
| 673 * | 689 * |
| 674 * @param {...*} var_args | 690 * @param {...*} var_args |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 | 1104 |
| 1089 | 1105 |
| 1090 /** | 1106 /** |
| 1091 * @see https://github.com/Polymer/polymer/blob/master/src/lib/template/templati
zer.html | 1107 * @see https://github.com/Polymer/polymer/blob/master/src/lib/template/templati
zer.html |
| 1092 * @polymerBehavior | 1108 * @polymerBehavior |
| 1093 */ | 1109 */ |
| 1094 Polymer.Templatizer = { | 1110 Polymer.Templatizer = { |
| 1095 ctor: function() {}, | 1111 ctor: function() {}, |
| 1096 | 1112 |
| 1097 /** | 1113 /** |
| 1098 * @param {?Object} model | 1114 * @param {?Object=} model |
| 1099 * @return {?Element} | 1115 * @return {?Element} |
| 1100 */ | 1116 */ |
| 1101 stamp: function(model) {}, | 1117 stamp: function(model) {}, |
| 1102 | 1118 |
| 1103 /** | 1119 /** |
| 1104 * @param {?Element} template | 1120 * @param {?Element} template |
| 1105 */ | 1121 */ |
| 1106 templatize: function(template) {}, | 1122 templatize: function(template) {}, |
| 1107 | 1123 |
| 1108 /** | 1124 /** |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1474 isContentBelow: function(){}, | 1490 isContentBelow: function(){}, |
| 1475 /** Updates the elements scroll state */ | 1491 /** Updates the elements scroll state */ |
| 1476 _updateScrollState: function(){}, | 1492 _updateScrollState: function(){}, |
| 1477 /** @return {boolean} true if the element is on screen */ | 1493 /** @return {boolean} true if the element is on screen */ |
| 1478 isOnScreen: function(){}, | 1494 isOnScreen: function(){}, |
| 1479 /** @type {number} Internal bookkeeping to track screen position */ | 1495 /** @type {number} Internal bookkeeping to track screen position */ |
| 1480 _deltaHeight: 0, | 1496 _deltaHeight: 0, |
| 1481 /** @return {?Element} Element in local dom by id. */ | 1497 /** @return {?Element} Element in local dom by id. */ |
| 1482 _getDOMRef: function(title){} | 1498 _getDOMRef: function(title){} |
| 1483 } | 1499 } |
| 1500 |
| 1501 /** @const */ |
| 1502 Polymer.ArraySplice = {}; |
| 1503 |
| 1504 /** |
| 1505 * Returns an array of splice records indicating the minimum edits required |
| 1506 * to transform the `previous` array into the `current` array. |
| 1507 * |
| 1508 * Splice records are ordered by index and contain the following fields: |
| 1509 * - `index`: index where edit started |
| 1510 * - `removed`: array of removed items from this index |
| 1511 * - `addedCount`: number of items added at this index |
| 1512 * |
| 1513 * This function is based on the Levenshtein "minimum edit distance" |
| 1514 * algorithm. Note that updates are treated as removal followed by addition. |
| 1515 * |
| 1516 * The worst-case time complexity of this algorithm is `O(l * p)` |
| 1517 * l: The length of the current array |
| 1518 * p: The length of the previous array |
| 1519 * |
| 1520 * However, the worst-case complexity is reduced by an `O(n)` optimization |
| 1521 * to detect any shared prefix & suffix between the two arrays and only |
| 1522 * perform the more expensive minimum edit distance calculation over the |
| 1523 * non-shared portions of the arrays. |
| 1524 * |
| 1525 * @param {!Array} current The "changed" array for which splices will be |
| 1526 * calculated. |
| 1527 * @param {!Array} previous The "unchanged" original array to compare |
| 1528 * `current` against to determine the splices. |
| 1529 * @return {!Array} Returns an array of splice record objects. Each of these |
| 1530 * contains: `index` the location where the splice occurred; `removed` |
| 1531 * the array of removed items from this location; `addedCount` the number |
| 1532 * of items added at this location. |
| 1533 */ |
| 1534 Polymer.ArraySplice.calculateSplices = function(current, previous) {}; |
| OLD | NEW |