polymer-paper-rails 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -18
- data/app/assets/components/core-a11y-keys/core-a11y-keys.html +4 -4
- data/app/assets/components/core-animation/web-animations.html +1 -1
- data/app/assets/components/core-collapse/core-collapse.html +1 -1
- data/app/assets/components/core-drawer-panel/core-drawer-panel.css +14 -6
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +32 -8
- data/app/assets/components/core-dropdown/core-dropdown.html +8 -2
- data/app/assets/components/core-icon/core-icon.html +0 -2
- data/app/assets/components/core-icons/av-icons.html +2 -9
- data/app/assets/components/core-icons/communication-icons.html +39 -42
- data/app/assets/components/core-icons/core-icons.html +231 -235
- data/app/assets/components/core-icons/device-icons.html +75 -90
- data/app/assets/components/core-icons/editor-icons.html +52 -52
- data/app/assets/components/core-icons/hardware-icons.html +40 -41
- data/app/assets/components/core-icons/image-icons.html +133 -137
- data/app/assets/components/core-icons/maps-icons.html +55 -57
- data/app/assets/components/core-icons/notification-icons.html +34 -34
- data/app/assets/components/core-icons/social-icons.html +23 -37
- data/app/assets/components/core-menu/core-menu.html +8 -3
- data/app/assets/components/core-menu/core-submenu.html +2 -2
- data/app/assets/components/core-overlay/core-key-helper.html +3 -0
- data/app/assets/components/core-overlay/core-overlay-layer.html +3 -0
- data/app/assets/components/core-overlay/core-overlay.html +20 -4
- data/app/assets/components/core-resizable/core-resizable.html +248 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +14 -3
- data/app/assets/components/core-selection/core-selection.html +1 -1
- data/app/assets/components/core-selector/core-selector.html +26 -26
- data/app/assets/components/core-style/core-style.html +1 -1
- data/app/assets/components/core-toolbar/core-toolbar.html +1 -1
- data/app/assets/components/paper-button/paper-button-base.html +56 -12
- data/app/assets/components/paper-button/paper-button.html +22 -5
- data/app/assets/components/paper-checkbox/paper-checkbox.css +65 -184
- data/app/assets/components/paper-checkbox/paper-checkbox.html +47 -55
- data/app/assets/components/paper-dialog/paper-action-dialog.html +3 -3
- data/app/assets/components/paper-dialog/paper-dialog.html +2 -2
- data/app/assets/components/paper-dropdown-menu/paper-dropdown-menu.html +4 -1
- data/app/assets/components/{core-elements → paper-elements}/metadata.html +0 -0
- data/app/assets/components/{core-elements → paper-elements}/paper-elements.html +1 -0
- data/app/assets/components/paper-fab/paper-fab.html +2 -2
- data/app/assets/components/paper-input/paper-autogrow-textarea.html +8 -3
- data/app/assets/components/paper-input/paper-char-counter.html +121 -0
- data/app/assets/components/paper-input/paper-input-decorator.css +1 -21
- data/app/assets/components/paper-input/paper-input-decorator.html +130 -51
- data/app/assets/components/paper-input/paper-input.html +31 -5
- data/app/assets/components/paper-item/paper-item.html +1 -2
- data/app/assets/components/paper-progress/paper-progress.html +1 -1
- data/app/assets/components/paper-radio-button/paper-radio-button.css +16 -12
- data/app/assets/components/paper-radio-button/paper-radio-button.html +9 -3
- data/app/assets/components/paper-ripple/paper-ripple.html +2 -1
- data/app/assets/components/paper-shadow/paper-shadow.css +10 -10
- data/app/assets/components/paper-shadow/paper-shadow.html +8 -1
- data/app/assets/components/paper-slider/paper-slider.html +28 -4
- data/app/assets/components/paper-spinner/paper-spinner.css +35 -23
- data/app/assets/components/paper-spinner/paper-spinner.html +46 -5
- data/app/assets/components/paper-tabs/paper-tabs.css +5 -0
- data/app/assets/components/paper-tabs/paper-tabs.html +32 -7
- data/app/assets/components/paper-toggle-button/paper-toggle-button.css +58 -30
- data/app/assets/components/paper-toggle-button/paper-toggle-button.html +69 -44
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +1 -1
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +17 -0
- data/app/assets/components/web-animations-js/web-animations-next.min.js +17 -0
- data/app/assets/components/web-animations-js/web-animations.min.js +17 -0
- data/app/assets/components/webcomponentsjs/CustomElements.js +634 -0
- data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.js +764 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.js +4277 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +13 -0
- data/app/assets/components/webcomponentsjs/package.json +31 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.js +1728 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +11 -0
- data/app/assets/components/webcomponentsjs/webcomponents.js +6114 -0
- data/app/assets/components/webcomponentsjs/webcomponents.min.js +14 -0
- data/lib/polymer-paper-rails/version.rb +1 -1
- metadata +20 -71
- data/app/assets/components/core-dropdown/metadata.html +0 -62
- data/app/assets/components/core-icons/png-icons.html +0 -19
- data/app/assets/components/core-label/core-label.html +0 -124
- data/app/assets/components/core-overlay/tests/html/core-overlay-basic.html +0 -127
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning-margin.html +0 -153
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning.html +0 -167
- data/app/assets/components/core-overlay/tests/html/core-overlay-scroll.html +0 -130
- data/app/assets/components/core-overlay/tests/js/htmltests.js +0 -6
- data/app/assets/components/core-overlay/tests/runner.html +0 -14
- data/app/assets/components/core-overlay/tests/tests.json +0 -6
- data/app/assets/components/core-popup-menu/core-popup-menu.css +0 -28
- data/app/assets/components/core-popup-menu/core-popup-menu.html +0 -198
- data/app/assets/components/core-popup-menu/core-popup-overlay.html +0 -111
- data/app/assets/components/core-popup-menu/metadata.html +0 -62
- data/app/assets/components/paper-focusable/paper-focusable.html +0 -146
- data/app/assets/components/platform/platform.js +0 -16
- data/app/assets/components/web-animations-js/web-animations.js +0 -5529
- data/app/assets/components/web-animations-next/Gruntfile.js +0 -279
- data/app/assets/components/web-animations-next/History.md +0 -76
- data/app/assets/components/web-animations-next/package.json +0 -33
- data/app/assets/components/web-animations-next/src/animation-constructor.js +0 -139
- data/app/assets/components/web-animations-next/src/animation-node.js +0 -31
- data/app/assets/components/web-animations-next/src/animation.js +0 -65
- data/app/assets/components/web-animations-next/src/apply-preserving-inline-style.js +0 -192
- data/app/assets/components/web-animations-next/src/apply.js +0 -25
- data/app/assets/components/web-animations-next/src/box-handler.js +0 -57
- data/app/assets/components/web-animations-next/src/color-handler.js +0 -62
- data/app/assets/components/web-animations-next/src/deprecation.js +0 -42
- data/app/assets/components/web-animations-next/src/dev.js +0 -16
- data/app/assets/components/web-animations-next/src/dimension-handler.js +0 -167
- data/app/assets/components/web-animations-next/src/effect-callback.js +0 -86
- data/app/assets/components/web-animations-next/src/effect.js +0 -110
- data/app/assets/components/web-animations-next/src/element-animatable.js +0 -19
- data/app/assets/components/web-animations-next/src/font-weight-handler.js +0 -42
- data/app/assets/components/web-animations-next/src/group-constructors.js +0 -81
- data/app/assets/components/web-animations-next/src/handler-utils.js +0 -177
- data/app/assets/components/web-animations-next/src/interpolation.js +0 -49
- data/app/assets/components/web-animations-next/src/matrix-decomposition.js +0 -452
- data/app/assets/components/web-animations-next/src/matrix-interpolation.js +0 -130
- data/app/assets/components/web-animations-next/src/maxifill-player.js +0 -162
- data/app/assets/components/web-animations-next/src/normalize-keyframes.js +0 -259
- data/app/assets/components/web-animations-next/src/number-handler.js +0 -72
- data/app/assets/components/web-animations-next/src/player.js +0 -193
- data/app/assets/components/web-animations-next/src/position-handler.js +0 -117
- data/app/assets/components/web-animations-next/src/property-interpolation.js +0 -62
- data/app/assets/components/web-animations-next/src/property-names.js +0 -35
- data/app/assets/components/web-animations-next/src/scope.js +0 -20
- data/app/assets/components/web-animations-next/src/shadow-handler.js +0 -108
- data/app/assets/components/web-animations-next/src/shape-handler.js +0 -85
- data/app/assets/components/web-animations-next/src/tick.js +0 -148
- data/app/assets/components/web-animations-next/src/timeline.js +0 -77
- data/app/assets/components/web-animations-next/src/timing-utilities.js +0 -242
- data/app/assets/components/web-animations-next/src/transform-handler.js +0 -262
- data/app/assets/components/web-animations-next/src/visibility-handler.js +0 -29
- data/app/assets/components/web-animations-next/target-config.js +0 -124
- data/app/assets/components/web-animations-next/target-loader.js +0 -13
- data/app/assets/components/web-animations-next/templates/boilerplate +0 -13
- data/app/assets/components/web-animations-next/templates/runner.html +0 -26
- data/app/assets/components/web-animations-next/templates/web-animations.html +0 -18
- data/app/assets/components/web-animations-next/templates/web-animations.js +0 -21
- data/app/assets/components/web-animations-next/web-animations-next-lite.dev.html +0 -44
- data/app/assets/components/web-animations-next/web-animations-next-lite.dev.js +0 -21
- data/app/assets/components/web-animations-next/web-animations-next.dev.html +0 -49
- data/app/assets/components/web-animations-next/web-animations-next.dev.js +0 -21
- data/app/assets/components/web-animations-next/web-animations.dev.html +0 -44
- data/app/assets/components/web-animations-next/web-animations.dev.js +0 -21
- data/app/assets/components/web-animations-next/web-animations.html +0 -50
@@ -1,262 +0,0 @@
|
|
1
|
-
// Copyright 2014 Google Inc. All rights reserved.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
(function(scope, testing) {
|
16
|
-
|
17
|
-
// This returns a function for converting transform functions to equivalent
|
18
|
-
// primitive functions, which will take an array of values from the
|
19
|
-
// derivative type and fill in the blanks (underscores) with them.
|
20
|
-
var _ = null;
|
21
|
-
function cast(pattern) {
|
22
|
-
return function(contents) {
|
23
|
-
var i = 0;
|
24
|
-
return pattern.map(function(x) { return x === _ ? contents[i++] : x; });
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
function id(x) { return x; }
|
29
|
-
|
30
|
-
var Opx = {px: 0};
|
31
|
-
var Odeg = {deg: 0};
|
32
|
-
|
33
|
-
// type: [argTypes, convertTo3D, convertTo2D]
|
34
|
-
// In the argument types string, lowercase characters represent optional arguments
|
35
|
-
var transformFunctions = {
|
36
|
-
matrix: ['NNNNNN', [_, _, 0, 0, _, _, 0, 0, 0, 0, 1, 0, _, _, 0, 1], id],
|
37
|
-
matrix3d: ['NNNNNNNNNNNNNNNN', id],
|
38
|
-
rotate: ['A'],
|
39
|
-
rotatex: ['A'],
|
40
|
-
rotatey: ['A'],
|
41
|
-
rotatez: ['A'],
|
42
|
-
rotate3d: ['NNNA'],
|
43
|
-
perspective: ['L'],
|
44
|
-
scale: ['Nn', cast([_, _, 1]), id],
|
45
|
-
scalex: ['N', cast([_, 1, 1]), cast([_, 1])],
|
46
|
-
scaley: ['N', cast([1, _, 1]), cast([1, _])],
|
47
|
-
scalez: ['N', cast([1, 1, _])],
|
48
|
-
scale3d: ['NNN', id],
|
49
|
-
skew: ['Aa', null, id],
|
50
|
-
skewx: ['A', null, cast([_, Odeg])],
|
51
|
-
skewy: ['A', null, cast([Odeg, _])],
|
52
|
-
translate: ['Tt', cast([_, _, Opx]), id],
|
53
|
-
translatex: ['T', cast([_, Opx, Opx]), cast([_, Opx])],
|
54
|
-
translatey: ['T', cast([Opx, _, Opx]), cast([Opx, _])],
|
55
|
-
translatez: ['L', cast([Opx, Opx, _])],
|
56
|
-
translate3d: ['TTL', id],
|
57
|
-
};
|
58
|
-
|
59
|
-
function parseTransform(string) {
|
60
|
-
string = string.toLowerCase().trim();
|
61
|
-
if (string == 'none')
|
62
|
-
return [];
|
63
|
-
// FIXME: Using a RegExp means calcs won't work here
|
64
|
-
var transformRegExp = /\s*(\w+)\(([^)]*)\)/g;
|
65
|
-
var result = [];
|
66
|
-
var match;
|
67
|
-
var prevLastIndex = 0;
|
68
|
-
while (match = transformRegExp.exec(string)) {
|
69
|
-
if (match.index != prevLastIndex)
|
70
|
-
return;
|
71
|
-
prevLastIndex = match.index + match[0].length;
|
72
|
-
var functionName = match[1];
|
73
|
-
var functionData = transformFunctions[functionName];
|
74
|
-
if (!functionData)
|
75
|
-
return;
|
76
|
-
var args = match[2].split(',');
|
77
|
-
var argTypes = functionData[0];
|
78
|
-
if (argTypes.length < args.length)
|
79
|
-
return;
|
80
|
-
|
81
|
-
var parsedArgs = [];
|
82
|
-
for (var i = 0; i < argTypes.length; i++) {
|
83
|
-
var arg = args[i];
|
84
|
-
var type = argTypes[i];
|
85
|
-
var parsedArg;
|
86
|
-
if (!arg)
|
87
|
-
parsedArg = ({a: Odeg,
|
88
|
-
n: parsedArgs[0],
|
89
|
-
t: Opx})[type];
|
90
|
-
else
|
91
|
-
parsedArg = ({A: function(s) { return s.trim() == '0' ? Odeg : scope.parseAngle(s); },
|
92
|
-
N: scope.parseNumber,
|
93
|
-
T: scope.parseLengthOrPercent,
|
94
|
-
L: scope.parseLength})[type.toUpperCase()](arg);
|
95
|
-
if (parsedArg === undefined)
|
96
|
-
return;
|
97
|
-
parsedArgs.push(parsedArg);
|
98
|
-
}
|
99
|
-
result.push({t: functionName, d: parsedArgs});
|
100
|
-
|
101
|
-
if (transformRegExp.lastIndex == string.length)
|
102
|
-
return result;
|
103
|
-
}
|
104
|
-
};
|
105
|
-
|
106
|
-
function numberToLongString(x) {
|
107
|
-
return x.toFixed(6).replace('.000000', '');
|
108
|
-
}
|
109
|
-
|
110
|
-
function mergeMatrices(left, right) {
|
111
|
-
if (left.decompositionPair !== right) {
|
112
|
-
left.decompositionPair = right;
|
113
|
-
var leftArgs = scope.makeMatrixDecomposition(left);
|
114
|
-
}
|
115
|
-
if (right.decompositionPair !== left) {
|
116
|
-
right.decompositionPair = left;
|
117
|
-
var rightArgs = scope.makeMatrixDecomposition(right);
|
118
|
-
}
|
119
|
-
if (leftArgs[0] == null || rightArgs[0] == null)
|
120
|
-
return [[false], [true], function(x) { return x ? right[0].d : left[0].d; }];
|
121
|
-
leftArgs[0].push(0);
|
122
|
-
rightArgs[0].push(1);
|
123
|
-
return [
|
124
|
-
leftArgs,
|
125
|
-
rightArgs,
|
126
|
-
function(list) {
|
127
|
-
var quat = scope.quat(leftArgs[0][3], rightArgs[0][3], list[5]);
|
128
|
-
var mat = scope.composeMatrix(list[0], list[1], list[2], quat, list[4]);
|
129
|
-
var stringifiedArgs = mat.map(numberToLongString).join(',');
|
130
|
-
return stringifiedArgs;
|
131
|
-
}
|
132
|
-
];
|
133
|
-
}
|
134
|
-
|
135
|
-
function typeTo2D(type) {
|
136
|
-
return type.replace(/[xy]/, '');
|
137
|
-
}
|
138
|
-
|
139
|
-
function typeTo3D(type) {
|
140
|
-
return type.replace(/(x|y|z|3d)?$/, '3d');
|
141
|
-
}
|
142
|
-
|
143
|
-
function mergeTransforms(left, right) {
|
144
|
-
var matrixModulesLoaded = scope.makeMatrixDecomposition && true;
|
145
|
-
|
146
|
-
var flipResults = false;
|
147
|
-
if (!left.length || !right.length) {
|
148
|
-
if (!left.length) {
|
149
|
-
flipResults = true;
|
150
|
-
left = right;
|
151
|
-
right = [];
|
152
|
-
}
|
153
|
-
for (var i = 0; i < left.length; i++) {
|
154
|
-
var type = left[i].t;
|
155
|
-
var args = left[i].d;
|
156
|
-
var defaultValue = type.substr(0, 5) == 'scale' ? 1 : 0;
|
157
|
-
right.push({t: type, d: args.map(function(arg) {
|
158
|
-
if (typeof arg == 'number')
|
159
|
-
return defaultValue;
|
160
|
-
var result = {};
|
161
|
-
for (var unit in arg)
|
162
|
-
result[unit] = defaultValue;
|
163
|
-
return result;
|
164
|
-
})});
|
165
|
-
}
|
166
|
-
}
|
167
|
-
|
168
|
-
var isMatrixOrPerspective = function(lt, rt) {
|
169
|
-
return ((lt == 'perspective') && (rt == 'perspective')) ||
|
170
|
-
((lt == 'matrix' || lt == 'matrix3d') && (rt == 'matrix' || rt == 'matrix3d'));
|
171
|
-
};
|
172
|
-
var leftResult = [];
|
173
|
-
var rightResult = [];
|
174
|
-
var types = [];
|
175
|
-
|
176
|
-
if (left.length != right.length) {
|
177
|
-
if (!matrixModulesLoaded)
|
178
|
-
return;
|
179
|
-
var merged = mergeMatrices(left, right);
|
180
|
-
leftResult = [merged[0]];
|
181
|
-
rightResult = [merged[1]];
|
182
|
-
types = [['matrix', [merged[2]]]];
|
183
|
-
} else {
|
184
|
-
for (var i = 0; i < left.length; i++) {
|
185
|
-
var leftType = left[i].t;
|
186
|
-
var rightType = right[i].t;
|
187
|
-
var leftArgs = left[i].d;
|
188
|
-
var rightArgs = right[i].d;
|
189
|
-
|
190
|
-
var leftFunctionData = transformFunctions[leftType];
|
191
|
-
var rightFunctionData = transformFunctions[rightType];
|
192
|
-
|
193
|
-
var type;
|
194
|
-
if (isMatrixOrPerspective(leftType, rightType)) {
|
195
|
-
if (!matrixModulesLoaded)
|
196
|
-
return;
|
197
|
-
var merged = mergeMatrices([left[i]], [right[i]]);
|
198
|
-
leftResult.push(merged[0]);
|
199
|
-
rightResult.push(merged[1]);
|
200
|
-
types.push(['matrix', [merged[2]]]);
|
201
|
-
continue;
|
202
|
-
} else if (leftType == rightType) {
|
203
|
-
type = leftType;
|
204
|
-
} else if (leftFunctionData[2] && rightFunctionData[2] && typeTo2D(leftType) == typeTo2D(rightType)) {
|
205
|
-
type = typeTo2D(leftType);
|
206
|
-
leftArgs = leftFunctionData[2](leftArgs);
|
207
|
-
rightArgs = rightFunctionData[2](rightArgs);
|
208
|
-
} else if (leftFunctionData[1] && rightFunctionData[1] && typeTo3D(leftType) == typeTo3D(rightType)) {
|
209
|
-
type = typeTo3D(leftType);
|
210
|
-
leftArgs = leftFunctionData[1](leftArgs);
|
211
|
-
rightArgs = rightFunctionData[1](rightArgs);
|
212
|
-
} else {
|
213
|
-
if (!matrixModulesLoaded)
|
214
|
-
return;
|
215
|
-
var merged = mergeMatrices(left, right);
|
216
|
-
leftResult = [merged[0]];
|
217
|
-
rightResult = [merged[1]];
|
218
|
-
types = [['matrix', [merged[2]]]];
|
219
|
-
break;
|
220
|
-
}
|
221
|
-
|
222
|
-
var leftArgsCopy = [];
|
223
|
-
var rightArgsCopy = [];
|
224
|
-
var stringConversions = [];
|
225
|
-
for (var j = 0; j < leftArgs.length; j++) {
|
226
|
-
var merge = typeof leftArgs[j] == 'number' ? scope.mergeNumbers : scope.mergeDimensions;
|
227
|
-
var merged = merge(leftArgs[j], rightArgs[j]);
|
228
|
-
leftArgsCopy[j] = merged[0];
|
229
|
-
rightArgsCopy[j] = merged[1];
|
230
|
-
stringConversions.push(merged[2]);
|
231
|
-
}
|
232
|
-
leftResult.push(leftArgsCopy);
|
233
|
-
rightResult.push(rightArgsCopy);
|
234
|
-
types.push([type, stringConversions]);
|
235
|
-
}
|
236
|
-
}
|
237
|
-
|
238
|
-
if (flipResults) {
|
239
|
-
var tmp = leftResult;
|
240
|
-
leftResult = rightResult;
|
241
|
-
rightResult = tmp;
|
242
|
-
}
|
243
|
-
|
244
|
-
return [leftResult, rightResult, function(list) {
|
245
|
-
return list.map(function(args, i) {
|
246
|
-
var stringifiedArgs = args.map(function(arg, j) {
|
247
|
-
return types[i][1][j](arg);
|
248
|
-
}).join(',');
|
249
|
-
if (types[i][0] == 'matrix' && stringifiedArgs.split(',').length == 16)
|
250
|
-
types[i][0] = 'matrix3d';
|
251
|
-
return types[i][0] + '(' + stringifiedArgs + ')';
|
252
|
-
|
253
|
-
}).join(' ');
|
254
|
-
}];
|
255
|
-
}
|
256
|
-
|
257
|
-
scope.addPropertiesHandler(parseTransform, mergeTransforms, ['transform']);
|
258
|
-
|
259
|
-
if (WEB_ANIMATIONS_TESTING)
|
260
|
-
testing.parseTransform = parseTransform;
|
261
|
-
|
262
|
-
})(webAnimationsMinifill, webAnimationsTesting);
|
@@ -1,29 +0,0 @@
|
|
1
|
-
// Copyright 2014 Google Inc. All rights reserved.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
(function(scope, testing) {
|
16
|
-
|
17
|
-
function merge(left, right) {
|
18
|
-
if (left != 'visible' && right != 'visible') return;
|
19
|
-
return [0, 1, function(x) {
|
20
|
-
if (x <= 0) return left;
|
21
|
-
if (x >= 1) return right;
|
22
|
-
return 'visible';
|
23
|
-
}];
|
24
|
-
}
|
25
|
-
|
26
|
-
scope.addPropertiesHandler(String, merge, ['visibility']);
|
27
|
-
|
28
|
-
})(webAnimationsMinifill);
|
29
|
-
|
@@ -1,124 +0,0 @@
|
|
1
|
-
(function() {
|
2
|
-
|
3
|
-
var scopeSrc = [
|
4
|
-
'src/scope.js'];
|
5
|
-
|
6
|
-
var minifillSrc = [
|
7
|
-
'src/animation-node.js',
|
8
|
-
'src/effect.js',
|
9
|
-
'src/property-interpolation.js',
|
10
|
-
'src/animation.js',
|
11
|
-
'src/apply-preserving-inline-style.js',
|
12
|
-
'src/element-animatable.js',
|
13
|
-
'src/interpolation.js',
|
14
|
-
'src/matrix-interpolation.js',
|
15
|
-
'src/player.js',
|
16
|
-
'src/tick.js',
|
17
|
-
'src/matrix-decomposition.js',
|
18
|
-
'src/handler-utils.js',
|
19
|
-
'src/shadow-handler.js',
|
20
|
-
'src/number-handler.js',
|
21
|
-
'src/visibility-handler.js',
|
22
|
-
'src/color-handler.js',
|
23
|
-
'src/dimension-handler.js',
|
24
|
-
'src/box-handler.js',
|
25
|
-
'src/transform-handler.js',
|
26
|
-
'src/font-weight-handler.js',
|
27
|
-
'src/position-handler.js',
|
28
|
-
'src/shape-handler.js',
|
29
|
-
'src/property-names.js',
|
30
|
-
];
|
31
|
-
|
32
|
-
var liteMinifillSrc = [
|
33
|
-
'src/animation-node.js',
|
34
|
-
'src/effect.js',
|
35
|
-
'src/property-interpolation.js',
|
36
|
-
'src/animation.js',
|
37
|
-
'src/apply.js',
|
38
|
-
'src/element-animatable.js',
|
39
|
-
'src/interpolation.js',
|
40
|
-
'src/player.js',
|
41
|
-
'src/tick.js',
|
42
|
-
'src/handler-utils.js',
|
43
|
-
'src/shadow-handler.js',
|
44
|
-
'src/number-handler.js',
|
45
|
-
'src/visibility-handler.js',
|
46
|
-
'src/color-handler.js',
|
47
|
-
'src/dimension-handler.js',
|
48
|
-
'src/box-handler.js',
|
49
|
-
'src/transform-handler.js',
|
50
|
-
'src/property-names.js',
|
51
|
-
];
|
52
|
-
|
53
|
-
|
54
|
-
var sharedSrc = [
|
55
|
-
'src/timing-utilities.js',
|
56
|
-
'src/normalize-keyframes.js',
|
57
|
-
'src/deprecation.js',
|
58
|
-
];
|
59
|
-
|
60
|
-
var maxifillSrc = [
|
61
|
-
'src/timeline.js',
|
62
|
-
'src/maxifill-player.js',
|
63
|
-
'src/animation-constructor.js',
|
64
|
-
'src/effect-callback.js',
|
65
|
-
'src/group-constructors.js'];
|
66
|
-
|
67
|
-
var minifillTest = [
|
68
|
-
'test/js/animation-node.js',
|
69
|
-
'test/js/apply-preserving-inline-style.js',
|
70
|
-
'test/js/box-handler.js',
|
71
|
-
'test/js/color-handler.js',
|
72
|
-
'test/js/dimension-handler.js',
|
73
|
-
'test/js/effect.js',
|
74
|
-
'test/js/interpolation.js',
|
75
|
-
'test/js/matrix-interpolation.js',
|
76
|
-
'test/js/number-handler.js',
|
77
|
-
'test/js/player.js',
|
78
|
-
'test/js/player-finish-event.js',
|
79
|
-
'test/js/property-interpolation.js',
|
80
|
-
'test/js/tick.js',
|
81
|
-
'test/js/timing.js',
|
82
|
-
'test/js/transform-handler.js'];
|
83
|
-
|
84
|
-
var maxifillTest = minifillTest.concat(
|
85
|
-
'test/js/animation-constructor.js',
|
86
|
-
'test/js/effect-callback.js',
|
87
|
-
'test/js/group-constructors.js',
|
88
|
-
'test/js/group-player.js',
|
89
|
-
'test/js/group-player-finish-event.js',
|
90
|
-
'test/js/timeline.js');
|
91
|
-
|
92
|
-
// This object specifies the source and test files for different Web Animation build targets.
|
93
|
-
var targetConfig = {
|
94
|
-
'web-animations': {
|
95
|
-
scopeSrc: scopeSrc,
|
96
|
-
sharedSrc: sharedSrc,
|
97
|
-
minifillSrc: minifillSrc,
|
98
|
-
maxifillSrc: [],
|
99
|
-
src: scopeSrc.concat(sharedSrc).concat(minifillSrc),
|
100
|
-
test: minifillTest,
|
101
|
-
},
|
102
|
-
'web-animations-next': {
|
103
|
-
scopeSrc: scopeSrc,
|
104
|
-
sharedSrc: sharedSrc,
|
105
|
-
minifillSrc: minifillSrc,
|
106
|
-
maxifillSrc: maxifillSrc,
|
107
|
-
src: scopeSrc.concat(sharedSrc).concat(minifillSrc).concat(maxifillSrc),
|
108
|
-
test: maxifillTest,
|
109
|
-
},
|
110
|
-
'web-animations-next-lite': {
|
111
|
-
scopeSrc: scopeSrc,
|
112
|
-
sharedSrc: sharedSrc,
|
113
|
-
minifillSrc: liteMinifillSrc,
|
114
|
-
maxifillSrc: maxifillSrc,
|
115
|
-
src: scopeSrc.concat(sharedSrc).concat(liteMinifillSrc).concat(maxifillSrc),
|
116
|
-
test: [],
|
117
|
-
},
|
118
|
-
};
|
119
|
-
|
120
|
-
if (typeof module != 'undefined')
|
121
|
-
module.exports = targetConfig;
|
122
|
-
else
|
123
|
-
window.webAnimationsTargetConfig = targetConfig;
|
124
|
-
})();
|
@@ -1,13 +0,0 @@
|
|
1
|
-
(function() {
|
2
|
-
var target = webAnimationsTargetConfig.defaultTarget;
|
3
|
-
if (typeof webAnimationsSourceTarget != 'undefined')
|
4
|
-
target = webAnimationsSourceTarget;
|
5
|
-
|
6
|
-
// Native implementation detection.
|
7
|
-
|
8
|
-
var scripts = document.getElementsByTagName('script');
|
9
|
-
var location = scripts[scripts.length - 1].src.replace(/[^\/]+$/, '');
|
10
|
-
webAnimationsTargetConfig[target].src.forEach(function(sourceFile) {
|
11
|
-
document.write('<script src="' + location + sourceFile + '"></script>');
|
12
|
-
});
|
13
|
-
})();
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// Copyright 2014 Google Inc. All rights reserved.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
Copyright 2014 Google Inc. All rights reserved.
|
3
|
-
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
7
|
-
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
|
-
-->
|
16
|
-
<!DOCTYPE html>
|
17
|
-
<meta charset="UTF-8">
|
18
|
-
<link rel="stylesheet" href="../node_modules/mocha/mocha.css">
|
19
|
-
<script src="../node_modules/mocha/mocha.js"></script>
|
20
|
-
<script src="../node_modules/chai/chai.js"></script>
|
21
|
-
<script src="../target-config.js"></script>
|
22
|
-
<script src="runner.js"></script>
|
23
|
-
<script>
|
24
|
-
loadWebAnimationsBuildTarget('<%= target %>');
|
25
|
-
</script>
|
26
|
-
<div id="mocha"></div>
|