1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

restore ForceLiveStream param

This commit is contained in:
Luke Pulverenti 2016-04-21 00:04:57 -04:00
parent da7c9a4899
commit d0f7abaae8
23 changed files with 149 additions and 94 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "iron-dropdown", "name": "iron-dropdown",
"version": "1.3.0", "version": "1.3.1",
"description": "An unstyled element that works similarly to a native browser select", "description": "An unstyled element that works similarly to a native browser select",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"
@ -36,11 +36,11 @@
"iron-image": "polymerelements/iron-image#^1.0.0" "iron-image": "polymerelements/iron-image#^1.0.0"
}, },
"ignore": [], "ignore": [],
"_release": "1.3.0", "_release": "1.3.1",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.3.0", "tag": "v1.3.1",
"commit": "9d6bb9e7a8150430e61559f5a0827526d2eefaa4" "commit": "f7a47d4cd6c6cb87adba08703ec1588c1b649f4d"
}, },
"_source": "git://github.com/PolymerElements/iron-dropdown.git", "_source": "git://github.com/PolymerElements/iron-dropdown.git",
"_target": "^1.0.0", "_target": "^1.0.0",

View file

@ -0,0 +1,33 @@
<!-- Instructions: https://github.com/PolymerElements/iron-dropdown/CONTRIBUTING.md#filing-issues -->
### Description
<!-- Example: The `paper-foo` element causes the page to turn pink when clicked. -->
### Expected outcome
<!-- Example: The page stays the same color. -->
### Actual outcome
<!-- Example: The page turns pink. -->
### Live Demo
<!-- Example: https://jsbin.com/cagaye/edit?html,output -->
### Steps to reproduce
<!-- Example
1. Put a `paper-foo` element in the page.
2. Open the page in a web browser.
3. Click the `paper-foo` element.
-->
### Browsers Affected
<!-- Check all that apply -->
- [ ] Chrome
- [ ] Firefox
- [ ] Safari 9
- [ ] Safari 8
- [ ] Safari 7
- [ ] Edge
- [ ] IE 11
- [ ] IE 10

View file

@ -1,5 +1,5 @@
language: node_js language: node_js
sudo: false sudo: required
before_script: before_script:
- npm install -g bower polylint web-component-tester - npm install -g bower polylint web-component-tester
- bower install - bower install
@ -8,18 +8,16 @@ env:
global: global:
- secure: Nd7sbgkYVekuQRB4K3svNCL3veA6t6aGopNP2FUxlJvQuzRV1vKV67angPvMUAFelEA7/rTzrFPBMfNbsz9C2wInLLLPux4wEk1MQX+2KYZVeXKMHjgl8iQKMXnodaL7XXwBPg0L7053TWtYkIt8wZ/vN0JGPQFKhlQkSrduztkPCJQfkFsMPJ7SudPG3Ld0UPBVxo8TwH/d44p8VhLGiI0oEWw3GnGZZ1T7RJLDAVBwj1BiVHAOaS0SSeOR3ngpZyXbk8OItgzw4o/bbAt2yrHMfwymBy0Xv9v3G0QLFJnMi/gE2lWnN4+IttUPI8gVyr1TuiTgtFxdwteLO3R5iFe+qlQjq0VGssmAHcPwtLhvrT4wEkGMc8ZeyW11z+GdkIw4XHGACWj+9Jz9f19mJd9xU3fkJ+f5mFiB8vEkzjsUI9pswgd3RoHt2WewcVdHnCED2wRdQCw9H34dX7d2ieWKPl/pv+EKZOgEJJ8UNZMyKnj57Y25WRrTpIQBt6p9uVv5MsiZQm7Sd1pYQnJKPQ+BxvvL5fsoT1YkFSjyz9gwijtftXhfL8KLB6i04V3mra3f9d5hc20wAOt+ad+mTOkaM/aGxE/I3Ko13BceMvRSNzuz+N2WE6FEJj1NuOCW/AeSh5/6n9nnlDeu7Nu7VeM9kjk4dyBGNRDWLNcSCEk= - secure: Nd7sbgkYVekuQRB4K3svNCL3veA6t6aGopNP2FUxlJvQuzRV1vKV67angPvMUAFelEA7/rTzrFPBMfNbsz9C2wInLLLPux4wEk1MQX+2KYZVeXKMHjgl8iQKMXnodaL7XXwBPg0L7053TWtYkIt8wZ/vN0JGPQFKhlQkSrduztkPCJQfkFsMPJ7SudPG3Ld0UPBVxo8TwH/d44p8VhLGiI0oEWw3GnGZZ1T7RJLDAVBwj1BiVHAOaS0SSeOR3ngpZyXbk8OItgzw4o/bbAt2yrHMfwymBy0Xv9v3G0QLFJnMi/gE2lW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sYKL6Sw8/r57wzj3pnzEwBE1mnTajJasHAbXgQMd336S2Sq/f39DCNTXgKBA4AKZGvWKe8w9nzaocQoMa4l9bLWEBJMCMPQFawOhTkuEjsLjpU3g74b46/EhjBP5zixR32xoyF5o9FTzC6UyrDjt2XpKwIQJYxaEfoyIW1vTPdoasWdaG5rXvWFTsmXtaMDpCKFH9aQ1DHn9Sbi9NZlR4izdULsbv9GZwg53xvuH4xYEkGtB29KKy04uK1nJ+9SmRWTAnu4Q/ivYWlbwBArjiYTTi0wclvDNvT1iaFNAaeK2pJea8CnoyJJ0pg9NcuzZtStGUvP00kGUpJQ4lqkr+gBCHDPYtoZ17XCz59cg6LrhG1q//vPi7Yz0xW51GHuwmcVs+PsjmWaRuO/1UFreDCQYf+GU4I1pQZf2q1R4m8noe4i5CcFXLKTrC4udBzPmzVB4As2LsxRc3HCIXmhaMxI8MJwdkQBA22u4vCwU2xpqBawJocj0Gvbeme6wG99PW7+XSkijQDk2cTJ5/CJtY22nAECvn4tve3OVvybSTjQ1yipLxJm/dtjgEXFWtknFZr++tId88wPd3EBtrwEhliD3zD/TyLPO2RPZGuI0i6oD3O89P5d8qp66T/eByDr1IEm0+FIQjgiCEMbhmaIuUKGG2GCfwPglI3uR0kbg0=
- CXX=g++-4.8
node_js: stable node_js: stable
addons: addons:
firefox: latest firefox: latest
apt: apt:
sources: sources:
- google-chrome - google-chrome
- ubuntu-toolchain-r-test
packages: packages:
- google-chrome-stable - google-chrome-stable
- g++-4.8
sauce_connect: true sauce_connect: true
script: script:
- xvfb-run wct - xvfb-run wct
- "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi" - "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi"
dist: trusty

View file

@ -1,6 +1,6 @@
{ {
"name": "iron-dropdown", "name": "iron-dropdown",
"version": "1.3.0", "version": "1.3.1",
"description": "An unstyled element that works similarly to a native browser select", "description": "An unstyled element that works similarly to a native browser select",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"

View file

@ -200,9 +200,9 @@ method is called on the element.
], ],
attached: function() { attached: function() {
this.positionTarget = this.positionTarget || this._defaultPositionTarget;
// Memoize this to avoid expensive calculations & relayouts. // Memoize this to avoid expensive calculations & relayouts.
this._isRTL = window.getComputedStyle(this).direction == 'rtl'; this._isRTL = window.getComputedStyle(this).direction == 'rtl';
this.positionTarget = this.positionTarget || this._defaultPositionTarget;
}, },
/** /**
@ -250,7 +250,7 @@ method is called on the element.
* The horizontal offset value used to position the dropdown. * The horizontal offset value used to position the dropdown.
* @param {ClientRect} dropdownRect * @param {ClientRect} dropdownRect
* @param {ClientRect} positionRect * @param {ClientRect} positionRect
* @param {boolean=false} fromRight * @param {boolean=} fromRight
* @return {number} pixels * @return {number} pixels
* @private * @private
*/ */
@ -270,7 +270,7 @@ method is called on the element.
* The vertical offset value used to position the dropdown. * The vertical offset value used to position the dropdown.
* @param {ClientRect} dropdownRect * @param {ClientRect} dropdownRect
* @param {ClientRect} positionRect * @param {ClientRect} positionRect
* @param {boolean=false} fromBottom * @param {boolean=} fromBottom
* @return {number} pixels * @return {number} pixels
* @private * @private
*/ */
@ -288,16 +288,20 @@ method is called on the element.
/** /**
* Called when the value of `opened` changes. * Called when the value of `opened` changes.
* * Overridden from `IronOverlayBehavior`
* @param {boolean} opened True if the dropdown is opened.
*/ */
_openedChanged: function(opened) { _openedChanged: function() {
if (opened && this.disabled) { if (this.opened && this.disabled) {
this.cancel(); this.cancel();
} else { } else {
this.cancelAnimation(); this.cancelAnimation();
this.sizingTarget = this.containedElement || this.sizingTarget; this.sizingTarget = this.containedElement || this.sizingTarget;
this._updateAnimationConfig(); this._updateAnimationConfig();
if (this.opened && !this.allowOutsideScroll) {
Polymer.IronDropdownScrollManager.pushScrollLock(this);
} else {
Polymer.IronDropdownScrollManager.removeScrollLock(this);
}
Polymer.IronOverlayBehaviorImpl._openedChanged.apply(this, arguments); Polymer.IronOverlayBehaviorImpl._openedChanged.apply(this, arguments);
} }
}, },
@ -306,10 +310,6 @@ method is called on the element.
* Overridden from `IronOverlayBehavior`. * Overridden from `IronOverlayBehavior`.
*/ */
_renderOpened: function() { _renderOpened: function() {
if (!this.allowOutsideScroll) {
Polymer.IronDropdownScrollManager.pushScrollLock(this);
}
if (!this.noAnimations && this.animationConfig && this.animationConfig.open) { if (!this.noAnimations && this.animationConfig && this.animationConfig.open) {
if (this.withBackdrop) { if (this.withBackdrop) {
this.backdropElement.open(); this.backdropElement.open();
@ -325,7 +325,6 @@ method is called on the element.
* Overridden from `IronOverlayBehavior`. * Overridden from `IronOverlayBehavior`.
*/ */
_renderClosed: function() { _renderClosed: function() {
Polymer.IronDropdownScrollManager.removeScrollLock(this);
if (!this.noAnimations && this.animationConfig && this.animationConfig.close) { if (!this.noAnimations && this.animationConfig && this.animationConfig.close) {
if (this.withBackdrop) { if (this.withBackdrop) {
this.backdropElement.close(); this.backdropElement.close();

View file

@ -48,10 +48,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
height: 50px; height: 50px;
background-color: orange; background-color: orange;
} }
.full-screen { .big {
width: 100vw; width: 3000px;
height: 100vh; height: 3000px;
} }
</style> </style>
<body> <body>
@ -76,7 +76,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<template> <template>
<div class="container"> <div class="container">
<iron-dropdown horizontal-align="right" vertical-align="top"> <iron-dropdown horizontal-align="right" vertical-align="top">
<div class="dropdown-content full-screen"></div> <div class="dropdown-content big"></div>
</iron-dropdown> </iron-dropdown>
</div> </div>
</template> </template>
@ -143,10 +143,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
contentRect.height > 0; contentRect.height > 0;
} }
function runAfterOpen(overlay, cb) { function runAfterOpen(overlay, callback) {
overlay.addEventListener('iron-overlay-opened', function () { overlay.addEventListener('iron-overlay-opened', callback);
Polymer.Base.async(cb, 1);
});
overlay.open(); overlay.open();
} }
@ -174,11 +172,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
test('hides dropdown content when outside is clicked', function(done) { test('hides dropdown content when outside is clicked', function(done) {
runAfterOpen(dropdown, function () { runAfterOpen(dropdown, function () {
expect(elementIsVisible(content)).to.be.equal(true); expect(elementIsVisible(content)).to.be.equal(true);
MockInteractions.tap(dropdown.parentNode); dropdown.addEventListener('iron-overlay-closed', function() {
Polymer.Base.async(function() {
expect(elementIsVisible(content)).to.be.equal(false); expect(elementIsVisible(content)).to.be.equal(false);
done(); done();
}, 10); });
MockInteractions.tap(dropdown.parentNode);
}); });
}); });
@ -208,7 +206,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}); });
suite('locking scroll', function() { suite('locking scroll', function() {
var dropdown;
setup(function() { setup(function() {
dropdown = fixture('TrivialDropdown'); dropdown = fixture('TrivialDropdown');
@ -236,14 +233,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}); });
suite('non locking scroll', function() { suite('non locking scroll', function() {
var dropdown;
setup(function() { setup(function() {
dropdown = fixture('NonLockingDropdown'); dropdown = fixture('NonLockingDropdown');
}); });
test('can be disabled with `allowOutsideScroll`', function(done) { test('can be disabled with `allowOutsideScroll`', function(done) {
runAfterOpen(dropdown, function () { runAfterOpen(dropdown, function() {
expect(Polymer.IronDropdownScrollManager.elementIsScrollLocked(document.body)) expect(Polymer.IronDropdownScrollManager.elementIsScrollLocked(document.body))
.to.be.equal(false); .to.be.equal(false);
done(); done();
@ -253,15 +249,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
suite('aligned dropdown', function() { suite('aligned dropdown', function() {
var parent; var parent;
var parentRect;
var dropdownRect;
setup(function() { setup(function() {
parent = fixture('AlignedDropdown'); parent = fixture('AlignedDropdown');
dropdown = parent.querySelector('iron-dropdown'); dropdown = parent.querySelector('iron-dropdown');
}); });
test('can be re-aligned to the right and the top', function(done) { test('can be re-aligned to the right and the top', function(done) {
var parentRect;
var dropdownRect;
runAfterOpen(dropdown, function () { runAfterOpen(dropdown, function () {
dropdownRect = dropdown.getBoundingClientRect(); dropdownRect = dropdown.getBoundingClientRect();
parentRect = parent.getBoundingClientRect(); parentRect = parent.getBoundingClientRect();
@ -274,9 +270,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}); });
test('can be re-aligned to the bottom', function(done) { test('can be re-aligned to the bottom', function(done) {
var parentRect;
var dropdownRect;
dropdown.verticalAlign = 'bottom'; dropdown.verticalAlign = 'bottom';
runAfterOpen(dropdown, function () { runAfterOpen(dropdown, function () {
parentRect = parent.getBoundingClientRect(); parentRect = parent.getBoundingClientRect();
@ -290,8 +283,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}); });
test('handles parent\'s stacking context', function(done) { test('handles parent\'s stacking context', function(done) {
var parentRect;
var dropdownRect;
// This will create a new stacking context. // This will create a new stacking context.
parent.style.transform = 'translateZ(0)'; parent.style.transform = 'translateZ(0)';
runAfterOpen(dropdown, function () { runAfterOpen(dropdown, function () {
@ -309,7 +300,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
suite('when align is left/top, with an offset', function() { suite('when align is left/top, with an offset', function() {
var dropdownRect; var dropdownRect;
var offsetDropdownRect; var offsetDropdownRect;
var dropdown;
setup(function() { setup(function() {
var parent = fixture('OffsetDropdownTopLeft'); var parent = fixture('OffsetDropdownTopLeft');
dropdown = parent.querySelector('iron-dropdown'); dropdown = parent.querySelector('iron-dropdown');
@ -318,11 +308,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
test('can be offset towards the bottom right', function(done) { test('can be offset towards the bottom right', function(done) {
runAfterOpen(dropdown, function () { runAfterOpen(dropdown, function () {
dropdownRect = dropdown.getBoundingClientRect(); dropdownRect = dropdown.getBoundingClientRect();
dropdown.verticalOffset = 10; dropdown.verticalOffset = 10;
dropdown.horizontalOffset = 10; dropdown.horizontalOffset = 10;
// Force refit instead of waiting for requestAnimationFrame.
dropdown.refit();
offsetDropdownRect = dropdown.getBoundingClientRect(); offsetDropdownRect = dropdown.getBoundingClientRect();
// verticalAlign is top, so a positive offset moves down. // verticalAlign is top, so a positive offset moves down.
assert.equal(dropdownRect.top + 10, offsetDropdownRect.top, 'top ok'); assert.equal(dropdownRect.top + 10, offsetDropdownRect.top, 'top ok');
// horizontalAlign is left, so a positive offset moves to the right. // horizontalAlign is left, so a positive offset moves to the right.
@ -334,11 +324,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
test('can be offset towards the top left', function(done) { test('can be offset towards the top left', function(done) {
runAfterOpen(dropdown, function () { runAfterOpen(dropdown, function () {
dropdownRect = dropdown.getBoundingClientRect(); dropdownRect = dropdown.getBoundingClientRect();
dropdown.verticalOffset = -10; dropdown.verticalOffset = -10;
dropdown.horizontalOffset = -10; dropdown.horizontalOffset = -10;
// Force refit instead of waiting for requestAnimationFrame.
dropdown.refit();
offsetDropdownRect = dropdown.getBoundingClientRect(); offsetDropdownRect = dropdown.getBoundingClientRect();
// verticalAlign is top, so a negative offset moves up. // verticalAlign is top, so a negative offset moves up.
assert.equal(dropdownRect.top - 10, offsetDropdownRect.top, 'top ok'); assert.equal(dropdownRect.top - 10, offsetDropdownRect.top, 'top ok');
// horizontalAlign is left, so a negative offset moves to the left. // horizontalAlign is left, so a negative offset moves to the left.
@ -351,7 +341,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
suite('when align is right/bottom, with an offset', function() { suite('when align is right/bottom, with an offset', function() {
var dropdownRect; var dropdownRect;
var offsetDropdownRect; var offsetDropdownRect;
var dropdown;
setup(function() { setup(function() {
var parent = fixture('OffsetDropdownBottomRight'); var parent = fixture('OffsetDropdownBottomRight');
dropdown = parent.querySelector('iron-dropdown'); dropdown = parent.querySelector('iron-dropdown');
@ -360,11 +349,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
test('can be offset towards the top left', function(done) { test('can be offset towards the top left', function(done) {
runAfterOpen(dropdown, function () { runAfterOpen(dropdown, function () {
dropdownRect = dropdown.getBoundingClientRect(); dropdownRect = dropdown.getBoundingClientRect();
dropdown.verticalOffset = 10; dropdown.verticalOffset = 10;
dropdown.horizontalOffset = 10; dropdown.horizontalOffset = 10;
// Force refit instead of waiting for requestAnimationFrame.
dropdown.refit();
offsetDropdownRect = dropdown.getBoundingClientRect(); offsetDropdownRect = dropdown.getBoundingClientRect();
// verticalAlign is bottom, so a positive offset moves up. // verticalAlign is bottom, so a positive offset moves up.
assert.equal(dropdownRect.bottom - 10, offsetDropdownRect.bottom, 'bottom ok'); assert.equal(dropdownRect.bottom - 10, offsetDropdownRect.bottom, 'bottom ok');
// horizontalAlign is right, so a positive offset moves to the left. // horizontalAlign is right, so a positive offset moves to the left.
@ -376,11 +365,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
test('can be offset towards the bottom right', function(done) { test('can be offset towards the bottom right', function(done) {
runAfterOpen(dropdown, function () { runAfterOpen(dropdown, function () {
dropdownRect = dropdown.getBoundingClientRect(); dropdownRect = dropdown.getBoundingClientRect();
dropdown.verticalOffset = -10; dropdown.verticalOffset = -10;
dropdown.horizontalOffset = -10; dropdown.horizontalOffset = -10;
// Force refit instead of waiting for requestAnimationFrame.
dropdown.refit();
offsetDropdownRect = dropdown.getBoundingClientRect(); offsetDropdownRect = dropdown.getBoundingClientRect();
// verticalAlign is bottom, so a negative offset moves down. // verticalAlign is bottom, so a negative offset moves down.
assert.equal(dropdownRect.bottom + 10, offsetDropdownRect.bottom, 'bottom ok'); assert.equal(dropdownRect.bottom + 10, offsetDropdownRect.bottom, 'bottom ok');
// horizontalAlign is right, so a positive offset moves to the right. // horizontalAlign is right, so a positive offset moves to the right.
@ -391,7 +380,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}); });
suite('RTL', function() { suite('RTL', function() {
var dropdown;
var dropdownRect; var dropdownRect;
test('with horizontalAlign=left', function(done) { test('with horizontalAlign=left', function(done) {

View file

@ -34,14 +34,14 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}, },
"ignore": [], "ignore": [],
"homepage": "https://github.com/polymerelements/iron-overlay-behavior", "homepage": "https://github.com/PolymerElements/iron-overlay-behavior",
"_release": "1.6.3", "_release": "1.6.3",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.6.3", "tag": "v1.6.3",
"commit": "5b331ebaefe3214937b94ba19769154efee46244" "commit": "5b331ebaefe3214937b94ba19769154efee46244"
}, },
"_source": "git://github.com/polymerelements/iron-overlay-behavior.git", "_source": "git://github.com/PolymerElements/iron-overlay-behavior.git",
"_target": "^1.0.0", "_target": "^1.0.0",
"_originalSource": "polymerelements/iron-overlay-behavior" "_originalSource": "PolymerElements/iron-overlay-behavior"
} }

View file

@ -1,7 +1,7 @@
{ {
"name": "neon-animation", "name": "neon-animation",
"description": "A system for animating Polymer-based web components", "description": "A system for animating Polymer-based web components",
"version": "1.2.0", "version": "1.2.1",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"
], ],
@ -34,7 +34,7 @@
"iron-meta": "PolymerElements/iron-meta#^1.0.0", "iron-meta": "PolymerElements/iron-meta#^1.0.0",
"iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0", "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0",
"iron-selector": "PolymerElements/iron-selector#^1.0.0", "iron-selector": "PolymerElements/iron-selector#^1.0.0",
"web-animations-js": "web-animations/web-animations-js#2.1.4" "web-animations-js": "web-animations/web-animations-js#^2.2.0"
}, },
"devDependencies": { "devDependencies": {
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
@ -49,13 +49,13 @@
"iron-icons": "PolymerElements/iron-icons#^1.0.0", "iron-icons": "PolymerElements/iron-icons#^1.0.0",
"paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0" "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0"
}, },
"_release": "1.2.0", "_release": "1.2.1",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.2.0", "tag": "v1.2.1",
"commit": "2d3416a01f865a25fe581ad0cfcda6ae4f9cf142" "commit": "de3198eb64f1afbc05973fc8a7841a3b0566977e"
}, },
"_source": "git://github.com/polymerelements/neon-animation.git", "_source": "git://github.com/PolymerElements/neon-animation.git",
"_target": "^1.0.0", "_target": "^1.0.0",
"_originalSource": "polymerelements/neon-animation" "_originalSource": "PolymerElements/neon-animation"
} }

View file

@ -1,15 +1,13 @@
language: node_js language: node_js
sudo: false sudo: required
node_js: stable node_js: stable
addons: addons:
firefox: latest firefox: latest
apt: apt:
sources: sources:
- google-chrome - google-chrome
- ubuntu-toolchain-r-test
packages: packages:
- google-chrome-stable - google-chrome-stable
- g++-4.8
sauce_connect: true sauce_connect: true
before_script: before_script:
- npm install -g bower polylint web-component-tester - npm install -g bower polylint web-component-tester
@ -22,4 +20,4 @@ env:
global: global:
- secure: AnPpB3uzTWU0hmrDmPyOb/3mJZRv4BgPFJrpaT/mQ/9979IBeFfFHJX6MqQlgo894lJWvKSvAjEutgK5Z3LQh6cLB3JuhPBInwKgFPUx/V14VIju+Z7jwx6RycE3flb2f9Y6y5My13ovswsTNnhJEkpDGlbRnJlh5c+HeP+6D0oFPFaGWvULZsAHQnEykir1TMPL2TD8SfuYWifmBj7QYQ2vsYnqZoAkPNedv/OtdoA3rziFXSG3GqXX2NJVnYqlaLj/HiHK7xLlZu/ODfo6En12DMtqJajBP7NfJkEUAF72ScOsYxlwiI1aYcVSUy6upkxxPwkBj5x7wDZ0tRFmlautyq2skDAh/fgIfRw9AMe8kj/YLef+T8bmZNT9IIelNaNcpfTQHpYWcOpPk2uBT3iIOcmp+Ys8RZKqzYmekBtHTwCGmQcfQrjBXjrjz5xlUaoMH7vauh7Ct7SkD7Fu87XSUvks4v2yypxxmHXO8jUilKuUdtAzb3dtOboO0ptsoLuBm/qSeURco4be6KPyVnDxdWdbYOxIZtE8JeY2DbonS45OgFtL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cz0cJh19DL+Ozde24/tuY+vOnhFb+ddo1OKD6FtM=
- CXX=g++-4.8 dist: trusty

View file

@ -68,7 +68,7 @@ Configuration:
this._animations.push(animation); this._animations.push(animation);
effects.push(effect); effects.push(effect);
} else { } else {
console.warn(this.is + ':', config.animation, 'not found!'); Polymer.Base._warn(this.is + ':', config.animation, 'not found!');
abortedConfigure = true; abortedConfigure = true;
break; break;
} }

View file

@ -1,7 +1,7 @@
{ {
"name": "neon-animation", "name": "neon-animation",
"description": "A system for animating Polymer-based web components", "description": "A system for animating Polymer-based web components",
"version": "1.2.0", "version": "1.2.1",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"
], ],
@ -34,7 +34,7 @@
"iron-meta": "PolymerElements/iron-meta#^1.0.0", "iron-meta": "PolymerElements/iron-meta#^1.0.0",
"iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0", "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0",
"iron-selector": "PolymerElements/iron-selector#^1.0.0", "iron-selector": "PolymerElements/iron-selector#^1.0.0",
"web-animations-js": "web-animations/web-animations-js#2.1.4" "web-animations-js": "web-animations/web-animations-js#^2.2.0"
}, },
"devDependencies": { "devDependencies": {
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",

View file

@ -40,7 +40,6 @@ animations to be run when switching to or switching out of the page.
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
height: 100%;
} }
:host > ::content > :not(.iron-selected):not(.neon-animating) { :host > ::content > :not(.iron-selected):not(.neon-animating) {

View file

@ -45,7 +45,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}); });
} }
} else { } else {
console.warn(this.is + ':', config.name, 'not found!'); Polymer.Base._warn(this.is + ':', config.name, 'not found!');
} }
} }
} }

View file

@ -37,12 +37,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var fromPage = config.fromPage; var fromPage = config.fromPage;
var toPage = config.toPage; var toPage = config.toPage;
if (!fromPage || !toPage) { if (!fromPage || !toPage) {
console.warn(this.is + ':', !fromPage ? 'fromPage' : 'toPage', 'is undefined!'); Polymer.Base._warn(this.is + ':', !fromPage ? 'fromPage' : 'toPage', 'is undefined!');
return null; return null;
}; };
if (!fromPage.sharedElements || !toPage.sharedElements) { if (!fromPage.sharedElements || !toPage.sharedElements) {
console.warn(this.is + ':', 'sharedElements are undefined for', !fromPage.sharedElements ? fromPage : toPage); Polymer.Base._warn(this.is + ':', 'sharedElements are undefined for', !fromPage.sharedElements ? fromPage : toPage);
return null; return null;
}; };
@ -50,7 +50,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var to = toPage.sharedElements[config.id]; var to = toPage.sharedElements[config.id];
if (!from || !to) { if (!from || !to) {
console.warn(this.is + ':', 'sharedElement with id', config.id, 'not found in', !from ? fromPage : toPage); Polymer.Base._warn(this.is + ':', 'sharedElement with id', config.id, 'not found in', !from ? fromPage : toPage);
return null; return null;
} }

View file

@ -1,5 +1,6 @@
<!doctype html> <!doctype html>
<!-- <!--
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved. Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt

View file

@ -28,14 +28,14 @@
"web-animations-next-lite.dev.html", "web-animations-next-lite.dev.html",
"web-animations-next-lite.dev.js" "web-animations-next-lite.dev.js"
], ],
"version": "2.1.4", "version": "2.2.0",
"_release": "2.1.4", "_release": "2.2.0",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "2.1.4", "tag": "2.2.0",
"commit": "37184a99ab51d7fd8b3c9a60c3faa5c440ade147" "commit": "b5d91413acee82aadd01a18880cb84a5d883047d"
}, },
"_source": "git://github.com/web-animations/web-animations-js.git", "_source": "git://github.com/web-animations/web-animations-js.git",
"_target": "2.1.4", "_target": "^2.2.0",
"_originalSource": "web-animations/web-animations-js" "_originalSource": "web-animations/web-animations-js"
} }

View file

@ -1,3 +1,36 @@
### 2.2.0 - *April 6 2016*
* Deprecated the use of hyphens in property names.
For example, this is deprecated:
element.animate([{'font-size': '0px'}, {'font-size': '10px'}]);
and this should be used instead:
element.animate([{fontSize: '0px'}, {fontSize: '10px'}]);
* Added arbitrary easing capitalisation.
* Added "id" effect option. (http://w3c.github.io/web-animations/#dom-keyframeanimationoptions-id)
* Added "oncancel" event handler.
* Added value list keyframe syntax.
As as alternative to:
element.animate([{color: 'red'}, {color: 'green'}, {color: 'blue'}]);
you can now use:
element.animate({color: ['red', 'green', 'blue']});
* Fixed easing TypeError in FireFox Nightly when using groups.
* Fixed delayed animation updates on Safari and Firefox
* Fixed infinite recursion when setting onfinish to null.
### 2.1.4 - *December 1 2015* ### 2.1.4 - *December 1 2015*
* Use `Date.now()` instead of `performace.now()` for mobile Safari. * Use `Date.now()` instead of `performace.now()` for mobile Safari.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -51,7 +51,7 @@
options.Limit = screenWidth >= 1920 ? 10 : (screenWidth >= 1440 ? 8 : 6); options.Limit = screenWidth >= 1920 ? 10 : (screenWidth >= 1440 ? 8 : 6);
if (enableScrollX()) { if (enableScrollX()) {
options.Limit = 16; options.Limit = 20;
} }
} }

View file

@ -975,13 +975,12 @@
self.createStreamInfo('Video', item, mediaSource, startPosition).then(function (streamInfo) { self.createStreamInfo('Video', item, mediaSource, startPosition).then(function (streamInfo) {
var urlLower = streamInfo.url.toLowerCase(); var isHls = streamInfo.url.toLowerCase().indexOf('.m3u8') != -1;
var isHls = urlLower.indexOf('.m3u8') != -1;
// Huge hack alert. Safari doesn't seem to like if the segments aren't available right away when playback starts // Huge hack alert. Safari doesn't seem to like if the segments aren't available right away when playback starts
// This will start the transcoding process before actually feeding the video url into the player // This will start the transcoding process before actually feeding the video url into the player
// Edit: Also seeing stalls from hls.js // Edit: Also seeing stalls from hls.js
if ((!mediaSource.RunTimeTicks) && isHls) { if (!mediaSource.RunTimeTicks && isHls) {
Dashboard.showLoadingMsg(); Dashboard.showLoadingMsg();
var hlsPlaylistUrl = streamInfo.url.replace('master.m3u8', 'live.m3u8'); var hlsPlaylistUrl = streamInfo.url.replace('master.m3u8', 'live.m3u8');
@ -991,11 +990,11 @@
url: hlsPlaylistUrl url: hlsPlaylistUrl
}).then(function () { }).then(function () {
Dashboard.hideLoadingMsg();
streamInfo.url = hlsPlaylistUrl; streamInfo.url = hlsPlaylistUrl;
// add a delay to continue building up the buffer. without this we see failures in safari mobile // add a delay to continue building up the buffer. without this we see failures in safari mobile
setTimeout(function () { setTimeout(function () {
Dashboard.hideLoadingMsg();
self.playVideoInternal(item, mediaSource, startPosition, streamInfo, callback); self.playVideoInternal(item, mediaSource, startPosition, streamInfo, callback);
}, 2000); }, 2000);

View file

@ -275,7 +275,9 @@ define(['appSettings', 'userSettings', 'appStorage'], function (appSettings, use
var currentSrc = (self.getCurrentSrc(mediaRenderer) || '').toLowerCase(); var currentSrc = (self.getCurrentSrc(mediaRenderer) || '').toLowerCase();
if (currentSrc.indexOf('.m3u8') != -1) { if (currentSrc.indexOf('.m3u8') != -1) {
return true; if (currentSrc.indexOf('forcelivestream=true') == -1) {
return true;
}
} else { } else {
var duration = mediaRenderer.duration(); var duration = mediaRenderer.duration();
return duration && !isNaN(duration) && duration != Number.POSITIVE_INFINITY && duration != Number.NEGATIVE_INFINITY; return duration && !isNaN(duration) && duration != Number.POSITIVE_INFINITY && duration != Number.NEGATIVE_INFINITY;
@ -745,6 +747,11 @@ define(['appSettings', 'userSettings', 'appStorage'], function (appSettings, use
if (mediaSource.TranscodingSubProtocol == 'hls') { if (mediaSource.TranscodingSubProtocol == 'hls') {
if (mediaUrl.toLowerCase().indexOf('forcelivestream=true') != -1) {
startPositionInSeekParam = 0;
startTimeTicksOffset = startPosition || 0;
}
contentType = 'application/x-mpegURL'; contentType = 'application/x-mpegURL';
} else { } else {