@ptcwebops/ptcw-design 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/icon-asset_5.cjs.entry.js +207 -0
- package/dist/{ptcw-design/index-f7043a90.js → cjs/index-ac192914.js} +195 -1311
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/list-item.cjs.entry.js +27 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/lottie-player.cjs.entry.js +13476 -0
- package/dist/cjs/my-component.cjs.entry.js +26 -0
- package/dist/cjs/ptc-card.cjs.entry.js +75 -0
- package/dist/cjs/ptc-date.cjs.entry.js +48 -0
- package/dist/cjs/ptc-footer.cjs.entry.js +19 -0
- package/dist/cjs/ptc-image.cjs.entry.js +58 -0
- package/dist/cjs/ptc-img.cjs.entry.js +160 -0
- package/dist/cjs/ptc-link.cjs.entry.js +53 -0
- package/dist/cjs/ptc-list.cjs.entry.js +32 -0
- package/dist/cjs/ptc-lottie.cjs.entry.js +23 -0
- package/dist/cjs/ptc-nav-item.cjs.entry.js +94 -0
- package/dist/cjs/ptc-nav.cjs.entry.js +19 -0
- package/dist/cjs/ptc-overlay.cjs.entry.js +19 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +26 -0
- package/dist/cjs/ptc-spacer.cjs.entry.js +46 -0
- package/dist/cjs/ptc-span.cjs.entry.js +31 -0
- package/dist/cjs/ptc-title.cjs.entry.js +49 -0
- package/dist/cjs/ptcw-design.cjs.js +19 -0
- package/dist/collection/assets/svg-imgs/close.svg +11 -0
- package/dist/collection/collection-manifest.json +40 -0
- package/dist/collection/components/icon-asset/assets/brands.svg +1381 -0
- package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
- package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +144 -0
- package/dist/collection/components/icon-asset/assets/regular.svg +463 -0
- package/dist/collection/components/icon-asset/assets/solid.svg +3013 -0
- package/dist/collection/components/icon-asset/assets/svg-with-js.min.css +5 -0
- package/dist/collection/components/icon-asset/icon-asset.css +30 -0
- package/dist/collection/components/icon-asset/icon-asset.js +177 -0
- package/dist/collection/components/list-item/list-item.css +3 -0
- package/dist/collection/components/list-item/list-item.js +63 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +74 -0
- package/dist/collection/components/ptc-announcement/ptc-announcement.css +87 -0
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +127 -0
- package/dist/collection/components/ptc-button/ptc-button.css +155 -0
- package/dist/collection/components/ptc-button/ptc-button.js +223 -0
- package/dist/collection/components/ptc-card/ptc-card.css +239 -0
- package/dist/collection/components/ptc-card/ptc-card.js +260 -0
- package/dist/collection/components/ptc-date/ptc-date.css +3 -0
- package/dist/collection/components/ptc-date/ptc-date.js +155 -0
- package/dist/collection/components/ptc-footer/ptc-footer.css +40 -0
- package/dist/collection/components/ptc-footer/ptc-footer.js +25 -0
- package/dist/collection/components/ptc-image/ptc-image.css +4 -0
- package/dist/collection/components/ptc-image/ptc-image.js +92 -0
- package/dist/collection/components/ptc-img/ptc-img.css +65 -0
- package/dist/collection/components/ptc-img/ptc-img.js +315 -0
- package/dist/collection/components/ptc-link/ptc-link.css +168 -0
- package/dist/collection/components/ptc-link/ptc-link.js +197 -0
- package/dist/collection/components/ptc-list/ptc-list.css +24 -0
- package/dist/collection/components/ptc-list/ptc-list.js +66 -0
- package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -0
- package/dist/collection/components/ptc-lottie/ptc-lottie.js +58 -0
- package/dist/collection/components/ptc-nav/ptc-nav.css +29 -0
- package/dist/collection/components/ptc-nav/ptc-nav.js +21 -0
- package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +81 -0
- package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +252 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +3 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +14 -0
- package/dist/collection/components/ptc-para/ptc-para.css +64 -0
- package/dist/collection/components/ptc-para/ptc-para.js +111 -0
- package/dist/collection/components/ptc-picture/ptc-picture.css +3 -0
- package/dist/collection/components/ptc-picture/ptc-picture.js +44 -0
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +307 -0
- package/dist/collection/components/ptc-spacer/ptc-spacer.js +99 -0
- package/dist/collection/components/ptc-span/ptc-span.css +36 -0
- package/dist/collection/components/ptc-span/ptc-span.js +86 -0
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +77 -0
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +34 -0
- package/dist/collection/components/ptc-title/ptc-title.css +64 -0
- package/dist/collection/components/ptc-title/ptc-title.js +105 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/interfaces.js +6 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/custom-elements/index.js +14452 -0
- package/dist/{ptcw-design/ptc-announcement.entry.js → esm/icon-asset_5.entry.js} +170 -2
- package/dist/esm/index-7a3883ee.js +1687 -0
- package/dist/esm/index.js +1 -0
- package/dist/{ptcw-design → esm}/list-item.entry.js +1 -1
- package/dist/esm/loader.js +17 -0
- package/dist/{ptcw-design → esm}/lottie-player.entry.js +31 -782
- package/dist/{ptcw-design → esm}/my-component.entry.js +1 -1
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/{ptcw-design → esm}/ptc-card.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-date.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-footer.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-image.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-img.entry.js +2 -16
- package/dist/{ptcw-design → esm}/ptc-link.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-list.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-lottie.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-nav-item.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-nav.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-overlay.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-picture.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-spacer.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-span.entry.js +1 -1
- package/dist/{ptcw-design → esm}/ptc-title.entry.js +1 -1
- package/dist/esm/ptcw-design.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +187 -0
- package/dist/ptcw-design/index.esm.js +0 -1
- package/dist/ptcw-design/p-0c8df906.entry.js +1 -0
- package/dist/ptcw-design/p-186beb2c.entry.js +1 -0
- package/dist/ptcw-design/p-1df1006b.entry.js +1 -0
- package/dist/ptcw-design/p-2d5f8cff.entry.js +1 -0
- package/dist/ptcw-design/p-4586b0f5.entry.js +1 -0
- package/dist/ptcw-design/p-50923c9a.js +1 -0
- package/dist/ptcw-design/p-51a3e9e6.entry.js +1 -0
- package/dist/ptcw-design/p-56f6f900.entry.js +1 -0
- package/dist/ptcw-design/p-5f776886.entry.js +1 -0
- package/dist/ptcw-design/p-66ffa30c.entry.js +1 -0
- package/dist/ptcw-design/p-6b1a35e1.entry.js +1 -0
- package/dist/ptcw-design/p-796b8287.entry.js +1 -0
- package/dist/ptcw-design/p-90402319.entry.js +1 -0
- package/dist/ptcw-design/p-919311d2.entry.js +1 -0
- package/dist/ptcw-design/p-97a61538.entry.js +1 -0
- package/dist/ptcw-design/p-ac449734.entry.js +1 -0
- package/dist/ptcw-design/p-d6553853.entry.js +1 -0
- package/dist/ptcw-design/p-dddd4d6e.entry.js +1 -0
- package/dist/ptcw-design/p-ef250898.entry.js +1 -0
- package/dist/ptcw-design/p-f80152dc.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -1030
- package/dist/ptcw-design/ptcw-design.esm.js +1 -122
- package/package.json +2 -2
- package/dist/ptcw-design/app-globals-0f993ce5.js +0 -3
- package/dist/ptcw-design/css-shim-003e9264.js +0 -4
- package/dist/ptcw-design/dom-1b195079.js +0 -73
- package/dist/ptcw-design/icon-asset.entry.js +0 -60
- package/dist/ptcw-design/ptc-button.entry.js +0 -57
- package/dist/ptcw-design/ptc-para.entry.js +0 -36
- package/dist/ptcw-design/ptc-svg-btn.entry.js +0 -27
- package/dist/ptcw-design/shadow-css-c1ad5fdc.js +0 -383
|
@@ -1,66 +1,28 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
2
|
-
|
|
3
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
-
|
|
5
|
-
function getDefaultExportFromCjs (x) {
|
|
6
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
|
-
}
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-7a3883ee.js';
|
|
8
2
|
|
|
9
3
|
function createCommonjsModule(fn, basedir, module) {
|
|
10
4
|
return module = {
|
|
11
5
|
path: basedir,
|
|
12
6
|
exports: {},
|
|
13
7
|
require: function (path, base) {
|
|
14
|
-
return commonjsRequire(
|
|
8
|
+
return commonjsRequire();
|
|
15
9
|
}
|
|
16
10
|
}, fn(module, module.exports), module.exports;
|
|
17
11
|
}
|
|
18
12
|
|
|
19
|
-
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
20
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
24
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function getAugmentedNamespace(n) {
|
|
28
|
-
if (n.__esModule) return n;
|
|
29
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
30
|
-
Object.keys(n).forEach(function (k) {
|
|
31
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
32
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return n[k];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
return a;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
13
|
function commonjsRequire () {
|
|
43
14
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
44
15
|
}
|
|
45
16
|
|
|
46
17
|
var lottie_svg = createCommonjsModule(function (module) {
|
|
47
18
|
(typeof navigator !== "undefined") && (function(root, factory) {
|
|
48
|
-
if (
|
|
49
|
-
undefined(function() {
|
|
50
|
-
return factory(root);
|
|
51
|
-
});
|
|
52
|
-
} else if ('object' === "object" && module.exports) {
|
|
19
|
+
if (module.exports) {
|
|
53
20
|
module.exports = factory(root);
|
|
54
21
|
} else {
|
|
55
22
|
root.lottie = factory(root);
|
|
56
23
|
root.bodymovin = root.lottie;
|
|
57
24
|
}
|
|
58
25
|
}((window || {}), function(window) {
|
|
59
|
-
/* global locationHref:writable, animationManager, subframeEnabled:writable, defaultCurveSegments:writable, roundValues,
|
|
60
|
-
expressionsPlugin:writable, PropertyFactory, ShapePropertyFactory, Matrix, idPrefix:writable */
|
|
61
|
-
/* exported locationHref, subframeEnabled, expressionsPlugin, idPrefix */
|
|
62
|
-
|
|
63
|
-
'use strict';
|
|
64
26
|
|
|
65
27
|
/* exported svgNS, locationHref, initialDefaultFrame */
|
|
66
28
|
|
|
@@ -80,12 +42,9 @@ var subframeEnabled = true;
|
|
|
80
42
|
var idPrefix = '';
|
|
81
43
|
var expressionsPlugin;
|
|
82
44
|
var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
83
|
-
var cachedColors = {};
|
|
84
|
-
var bmRnd;
|
|
85
45
|
var bmPow = Math.pow;
|
|
86
46
|
var bmSqrt = Math.sqrt;
|
|
87
47
|
var bmFloor = Math.floor;
|
|
88
|
-
var bmMax = Math.max;
|
|
89
48
|
var bmMin = Math.min;
|
|
90
49
|
|
|
91
50
|
var BMMath = {};
|
|
@@ -118,31 +77,6 @@ var defaultCurveSegments = 150;
|
|
|
118
77
|
var degToRads = Math.PI / 180;
|
|
119
78
|
var roundCorner = 0.5519;
|
|
120
79
|
|
|
121
|
-
function roundValues(flag) {
|
|
122
|
-
if (flag) {
|
|
123
|
-
bmRnd = Math.round;
|
|
124
|
-
} else {
|
|
125
|
-
bmRnd = function (val) {
|
|
126
|
-
return val;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
roundValues(false);
|
|
131
|
-
|
|
132
|
-
function styleDiv(element) {
|
|
133
|
-
element.style.position = 'absolute';
|
|
134
|
-
element.style.top = 0;
|
|
135
|
-
element.style.left = 0;
|
|
136
|
-
element.style.display = 'block';
|
|
137
|
-
element.style.transformOrigin = '0 0';
|
|
138
|
-
element.style.webkitTransformOrigin = '0 0';
|
|
139
|
-
element.style.backfaceVisibility = 'visible';
|
|
140
|
-
element.style.webkitBackfaceVisibility = 'visible';
|
|
141
|
-
element.style.transformStyle = 'preserve-3d';
|
|
142
|
-
element.style.webkitTransformStyle = 'preserve-3d';
|
|
143
|
-
element.style.mozTransformStyle = 'preserve-3d';
|
|
144
|
-
}
|
|
145
|
-
|
|
146
80
|
function BMEnterFrameEvent(type, currentTime, totalTime, frameMultiplier) {
|
|
147
81
|
this.type = type;
|
|
148
82
|
this.currentTime = currentTime;
|
|
@@ -184,11 +118,6 @@ function BMConfigErrorEvent(nativeError) {
|
|
|
184
118
|
this.nativeError = nativeError;
|
|
185
119
|
}
|
|
186
120
|
|
|
187
|
-
function BMAnimationConfigErrorEvent(type, nativeError) {
|
|
188
|
-
this.type = type;
|
|
189
|
-
this.nativeError = nativeError;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
121
|
var createElementID = (function () {
|
|
193
122
|
var _count = 0;
|
|
194
123
|
return function createID() {
|
|
@@ -218,7 +147,6 @@ function HSVtoRGB(h, s, v) {
|
|
|
218
147
|
case 3: r = p; g = q; b = v; break;
|
|
219
148
|
case 4: r = t; g = p; b = v; break;
|
|
220
149
|
case 5: r = v; g = p; b = q; break;
|
|
221
|
-
default: break;
|
|
222
150
|
}
|
|
223
151
|
return [r,
|
|
224
152
|
g,
|
|
@@ -238,7 +166,6 @@ function RGBtoHSV(r, g, b) {
|
|
|
238
166
|
case r: h = (g - b) + d * (g < b ? 6 : 0); h /= 6 * d; break;
|
|
239
167
|
case g: h = (b - r) + d * 2; h /= 6 * d; break;
|
|
240
168
|
case b: h = (r - g) + d * 4; h /= 6 * d; break;
|
|
241
|
-
default: break;
|
|
242
169
|
}
|
|
243
170
|
|
|
244
171
|
return [
|
|
@@ -930,8 +857,8 @@ var Matrix = (function () {
|
|
|
930
857
|
startdenom = math.pow(width, chunks),
|
|
931
858
|
significance = math.pow(2, digits),
|
|
932
859
|
overflow = significance * 2,
|
|
933
|
-
mask = width - 1
|
|
934
|
-
|
|
860
|
+
mask = width - 1;
|
|
861
|
+
// node.js crypto module, initialized at the bottom.
|
|
935
862
|
|
|
936
863
|
//
|
|
937
864
|
// seedrandom()
|
|
@@ -1089,7 +1016,6 @@ var Matrix = (function () {
|
|
|
1089
1016
|
//
|
|
1090
1017
|
function autoseed() {
|
|
1091
1018
|
try {
|
|
1092
|
-
if (nodecrypto) { return tostring(nodecrypto.randomBytes(width)); }
|
|
1093
1019
|
var out = new Uint8Array(width);
|
|
1094
1020
|
(global.crypto || global.msCrypto).getRandomValues(out);
|
|
1095
1021
|
return tostring(out);
|
|
@@ -1615,11 +1541,11 @@ function dataFunctionManager() {
|
|
|
1615
1541
|
}
|
|
1616
1542
|
if (layerData.ty === 0) {
|
|
1617
1543
|
layerData.layers = findCompLayers(layerData.refId, comps);
|
|
1618
|
-
completeLayers(layerData.layers, comps
|
|
1544
|
+
completeLayers(layerData.layers, comps);
|
|
1619
1545
|
} else if (layerData.ty === 4) {
|
|
1620
1546
|
completeShapes(layerData.shapes);
|
|
1621
1547
|
} else if (layerData.ty === 5) {
|
|
1622
|
-
completeText(layerData
|
|
1548
|
+
completeText(layerData);
|
|
1623
1549
|
}
|
|
1624
1550
|
}
|
|
1625
1551
|
}
|
|
@@ -1919,7 +1845,7 @@ function dataFunctionManager() {
|
|
|
1919
1845
|
checkText(animationData);
|
|
1920
1846
|
checkChars(animationData);
|
|
1921
1847
|
checkShapes(animationData);
|
|
1922
|
-
completeLayers(animationData.layers, animationData.assets
|
|
1848
|
+
completeLayers(animationData.layers, animationData.assets);
|
|
1923
1849
|
animationData.__complete = true;
|
|
1924
1850
|
}
|
|
1925
1851
|
|
|
@@ -1973,8 +1899,6 @@ function getFontProperties(fontData) {
|
|
|
1973
1899
|
case 'thin':
|
|
1974
1900
|
fWeight = '200';
|
|
1975
1901
|
break;
|
|
1976
|
-
default:
|
|
1977
|
-
break;
|
|
1978
1902
|
}
|
|
1979
1903
|
}
|
|
1980
1904
|
|
|
@@ -2793,8 +2717,6 @@ var PropertyFactory = (function () {
|
|
|
2793
2717
|
case 1:
|
|
2794
2718
|
p = new KeyframedMultidimensionalProperty(elem, data, mult, container);
|
|
2795
2719
|
break;
|
|
2796
|
-
default:
|
|
2797
|
-
break;
|
|
2798
2720
|
}
|
|
2799
2721
|
}
|
|
2800
2722
|
if (p.effectsSequence.length) {
|
|
@@ -5329,8 +5251,6 @@ TextAnimatorProperty.prototype.getMeasures = function (documentData, lettersChan
|
|
|
5329
5251
|
case 2:
|
|
5330
5252
|
currentLength += (totalLength - documentData.lineWidths[letters[i].line]) / 2;
|
|
5331
5253
|
break;
|
|
5332
|
-
default:
|
|
5333
|
-
break;
|
|
5334
5254
|
}
|
|
5335
5255
|
currentLine = letters[i].line;
|
|
5336
5256
|
}
|
|
@@ -5617,8 +5537,6 @@ TextAnimatorProperty.prototype.getMeasures = function (documentData, lettersChan
|
|
|
5617
5537
|
case 2:
|
|
5618
5538
|
matrixHelper.translate(letters[i].animatorJustifyOffset + documentData.justifyOffset + (documentData.boxWidth - documentData.lineWidths[letters[i].line]) / 2, 0, 0);
|
|
5619
5539
|
break;
|
|
5620
|
-
default:
|
|
5621
|
-
break;
|
|
5622
5540
|
}
|
|
5623
5541
|
matrixHelper.translate(0, -documentData.ls);
|
|
5624
5542
|
matrixHelper.translate(offf, 0, 0);
|
|
@@ -7339,11 +7257,6 @@ TransformElement.prototype = {
|
|
|
7339
7257
|
if (this.data.ao) {
|
|
7340
7258
|
this.finalTransform.mProp.autoOriented = true;
|
|
7341
7259
|
}
|
|
7342
|
-
|
|
7343
|
-
// TODO: check TYPE 11: Guided elements
|
|
7344
|
-
if (this.data.ty !== 11) {
|
|
7345
|
-
// this.createElements();
|
|
7346
|
-
}
|
|
7347
7260
|
},
|
|
7348
7261
|
renderTransform: function () {
|
|
7349
7262
|
this.finalTransform._opMdf = this.finalTransform.mProp.o._mdf || this._isFirstFrame;
|
|
@@ -7984,68 +7897,6 @@ var SVGElementsRenderer = (function () {
|
|
|
7984
7897
|
return ob;
|
|
7985
7898
|
}());
|
|
7986
7899
|
|
|
7987
|
-
/* global Matrix */
|
|
7988
|
-
|
|
7989
|
-
function ShapeTransformManager() {
|
|
7990
|
-
this.sequences = {};
|
|
7991
|
-
this.sequenceList = [];
|
|
7992
|
-
this.transform_key_count = 0;
|
|
7993
|
-
}
|
|
7994
|
-
|
|
7995
|
-
ShapeTransformManager.prototype = {
|
|
7996
|
-
addTransformSequence: function (transforms) {
|
|
7997
|
-
var i;
|
|
7998
|
-
var len = transforms.length;
|
|
7999
|
-
var key = '_';
|
|
8000
|
-
for (i = 0; i < len; i += 1) {
|
|
8001
|
-
key += transforms[i].transform.key + '_';
|
|
8002
|
-
}
|
|
8003
|
-
var sequence = this.sequences[key];
|
|
8004
|
-
if (!sequence) {
|
|
8005
|
-
sequence = {
|
|
8006
|
-
transforms: [].concat(transforms),
|
|
8007
|
-
finalTransform: new Matrix(),
|
|
8008
|
-
_mdf: false,
|
|
8009
|
-
};
|
|
8010
|
-
this.sequences[key] = sequence;
|
|
8011
|
-
this.sequenceList.push(sequence);
|
|
8012
|
-
}
|
|
8013
|
-
return sequence;
|
|
8014
|
-
},
|
|
8015
|
-
processSequence: function (sequence, isFirstFrame) {
|
|
8016
|
-
var i = 0;
|
|
8017
|
-
var len = sequence.transforms.length;
|
|
8018
|
-
var _mdf = isFirstFrame;
|
|
8019
|
-
while (i < len && !isFirstFrame) {
|
|
8020
|
-
if (sequence.transforms[i].transform.mProps._mdf) {
|
|
8021
|
-
_mdf = true;
|
|
8022
|
-
break;
|
|
8023
|
-
}
|
|
8024
|
-
i += 1;
|
|
8025
|
-
}
|
|
8026
|
-
if (_mdf) {
|
|
8027
|
-
var props;
|
|
8028
|
-
sequence.finalTransform.reset();
|
|
8029
|
-
for (i = len - 1; i >= 0; i -= 1) {
|
|
8030
|
-
props = sequence.transforms[i].transform.mProps.v.props;
|
|
8031
|
-
sequence.finalTransform.transform(props[0], props[1], props[2], props[3], props[4], props[5], props[6], props[7], props[8], props[9], props[10], props[11], props[12], props[13], props[14], props[15]);
|
|
8032
|
-
}
|
|
8033
|
-
}
|
|
8034
|
-
sequence._mdf = _mdf;
|
|
8035
|
-
},
|
|
8036
|
-
processSequences: function (isFirstFrame) {
|
|
8037
|
-
var i;
|
|
8038
|
-
var len = this.sequenceList.length;
|
|
8039
|
-
for (i = 0; i < len; i += 1) {
|
|
8040
|
-
this.processSequence(this.sequenceList[i], isFirstFrame);
|
|
8041
|
-
}
|
|
8042
|
-
},
|
|
8043
|
-
getNewKey: function () {
|
|
8044
|
-
this.transform_key_count += 1;
|
|
8045
|
-
return '_' + this.transform_key_count;
|
|
8046
|
-
},
|
|
8047
|
-
};
|
|
8048
|
-
|
|
8049
7900
|
/* global LayerExpressionInterface, EffectsExpressionInterface, CompExpressionInterface, ShapeExpressionInterface,
|
|
8050
7901
|
TextExpressionInterface, getBlendMode,createElementID, EffectsManager */
|
|
8051
7902
|
|
|
@@ -8446,8 +8297,6 @@ ITextElement.prototype.applyTextPropertiesToMatrix = function (documentData, mat
|
|
|
8446
8297
|
case 2:
|
|
8447
8298
|
matrixHelper.translate(documentData.justifyOffset + (documentData.boxWidth - documentData.lineWidths[lineNumber]) / 2, 0, 0);
|
|
8448
8299
|
break;
|
|
8449
|
-
default:
|
|
8450
|
-
break;
|
|
8451
8300
|
}
|
|
8452
8301
|
matrixHelper.translate(xPos, yPos, 0);
|
|
8453
8302
|
};
|
|
@@ -10936,371 +10785,13 @@ expressionsPlugin = Expressions;
|
|
|
10936
10785
|
/* global BMMath, BezierFactory, createTypedArray, degToRads, shapePool */
|
|
10937
10786
|
|
|
10938
10787
|
var ExpressionManager = (function () {
|
|
10939
|
-
'use strict';
|
|
10940
10788
|
|
|
10941
10789
|
var ob = {};
|
|
10942
10790
|
var Math = BMMath;
|
|
10943
|
-
var window = null;
|
|
10944
|
-
var document = null;
|
|
10945
|
-
var XMLHttpRequest = null;
|
|
10946
|
-
var fetch = null;
|
|
10947
|
-
|
|
10948
|
-
function $bm_isInstanceOfArray(arr) {
|
|
10949
|
-
return arr.constructor === Array || arr.constructor === Float32Array;
|
|
10950
|
-
}
|
|
10951
|
-
|
|
10952
|
-
function isNumerable(tOfV, v) {
|
|
10953
|
-
return tOfV === 'number' || tOfV === 'boolean' || tOfV === 'string' || v instanceof Number;
|
|
10954
|
-
}
|
|
10955
|
-
|
|
10956
|
-
function $bm_neg(a) {
|
|
10957
|
-
var tOfA = typeof a;
|
|
10958
|
-
if (tOfA === 'number' || tOfA === 'boolean' || a instanceof Number) {
|
|
10959
|
-
return -a;
|
|
10960
|
-
}
|
|
10961
|
-
if ($bm_isInstanceOfArray(a)) {
|
|
10962
|
-
var i;
|
|
10963
|
-
var lenA = a.length;
|
|
10964
|
-
var retArr = [];
|
|
10965
|
-
for (i = 0; i < lenA; i += 1) {
|
|
10966
|
-
retArr[i] = -a[i];
|
|
10967
|
-
}
|
|
10968
|
-
return retArr;
|
|
10969
|
-
}
|
|
10970
|
-
if (a.propType) {
|
|
10971
|
-
return a.v;
|
|
10972
|
-
}
|
|
10973
|
-
return -a;
|
|
10974
|
-
}
|
|
10975
|
-
|
|
10976
|
-
var easeInBez = BezierFactory.getBezierEasing(0.333, 0, 0.833, 0.833, 'easeIn').get;
|
|
10977
|
-
var easeOutBez = BezierFactory.getBezierEasing(0.167, 0.167, 0.667, 1, 'easeOut').get;
|
|
10978
|
-
var easeInOutBez = BezierFactory.getBezierEasing(0.33, 0, 0.667, 1, 'easeInOut').get;
|
|
10979
|
-
|
|
10980
|
-
function sum(a, b) {
|
|
10981
|
-
var tOfA = typeof a;
|
|
10982
|
-
var tOfB = typeof b;
|
|
10983
|
-
if (tOfA === 'string' || tOfB === 'string') {
|
|
10984
|
-
return a + b;
|
|
10985
|
-
}
|
|
10986
|
-
if (isNumerable(tOfA, a) && isNumerable(tOfB, b)) {
|
|
10987
|
-
return a + b;
|
|
10988
|
-
}
|
|
10989
|
-
if ($bm_isInstanceOfArray(a) && isNumerable(tOfB, b)) {
|
|
10990
|
-
a = a.slice(0);
|
|
10991
|
-
a[0] += b;
|
|
10992
|
-
return a;
|
|
10993
|
-
}
|
|
10994
|
-
if (isNumerable(tOfA, a) && $bm_isInstanceOfArray(b)) {
|
|
10995
|
-
b = b.slice(0);
|
|
10996
|
-
b[0] = a + b[0];
|
|
10997
|
-
return b;
|
|
10998
|
-
}
|
|
10999
|
-
if ($bm_isInstanceOfArray(a) && $bm_isInstanceOfArray(b)) {
|
|
11000
|
-
var i = 0;
|
|
11001
|
-
var lenA = a.length;
|
|
11002
|
-
var lenB = b.length;
|
|
11003
|
-
var retArr = [];
|
|
11004
|
-
while (i < lenA || i < lenB) {
|
|
11005
|
-
if ((typeof a[i] === 'number' || a[i] instanceof Number) && (typeof b[i] === 'number' || b[i] instanceof Number)) {
|
|
11006
|
-
retArr[i] = a[i] + b[i];
|
|
11007
|
-
} else {
|
|
11008
|
-
retArr[i] = b[i] === undefined ? a[i] : a[i] || b[i];
|
|
11009
|
-
}
|
|
11010
|
-
i += 1;
|
|
11011
|
-
}
|
|
11012
|
-
return retArr;
|
|
11013
|
-
}
|
|
11014
|
-
return 0;
|
|
11015
|
-
}
|
|
11016
|
-
var add = sum;
|
|
11017
|
-
|
|
11018
|
-
function sub(a, b) {
|
|
11019
|
-
var tOfA = typeof a;
|
|
11020
|
-
var tOfB = typeof b;
|
|
11021
|
-
if (isNumerable(tOfA, a) && isNumerable(tOfB, b)) {
|
|
11022
|
-
if (tOfA === 'string') {
|
|
11023
|
-
a = parseInt(a, 10);
|
|
11024
|
-
}
|
|
11025
|
-
if (tOfB === 'string') {
|
|
11026
|
-
b = parseInt(b, 10);
|
|
11027
|
-
}
|
|
11028
|
-
return a - b;
|
|
11029
|
-
}
|
|
11030
|
-
if ($bm_isInstanceOfArray(a) && isNumerable(tOfB, b)) {
|
|
11031
|
-
a = a.slice(0);
|
|
11032
|
-
a[0] -= b;
|
|
11033
|
-
return a;
|
|
11034
|
-
}
|
|
11035
|
-
if (isNumerable(tOfA, a) && $bm_isInstanceOfArray(b)) {
|
|
11036
|
-
b = b.slice(0);
|
|
11037
|
-
b[0] = a - b[0];
|
|
11038
|
-
return b;
|
|
11039
|
-
}
|
|
11040
|
-
if ($bm_isInstanceOfArray(a) && $bm_isInstanceOfArray(b)) {
|
|
11041
|
-
var i = 0;
|
|
11042
|
-
var lenA = a.length;
|
|
11043
|
-
var lenB = b.length;
|
|
11044
|
-
var retArr = [];
|
|
11045
|
-
while (i < lenA || i < lenB) {
|
|
11046
|
-
if ((typeof a[i] === 'number' || a[i] instanceof Number) && (typeof b[i] === 'number' || b[i] instanceof Number)) {
|
|
11047
|
-
retArr[i] = a[i] - b[i];
|
|
11048
|
-
} else {
|
|
11049
|
-
retArr[i] = b[i] === undefined ? a[i] : a[i] || b[i];
|
|
11050
|
-
}
|
|
11051
|
-
i += 1;
|
|
11052
|
-
}
|
|
11053
|
-
return retArr;
|
|
11054
|
-
}
|
|
11055
|
-
return 0;
|
|
11056
|
-
}
|
|
11057
|
-
|
|
11058
|
-
function mul(a, b) {
|
|
11059
|
-
var tOfA = typeof a;
|
|
11060
|
-
var tOfB = typeof b;
|
|
11061
|
-
var arr;
|
|
11062
|
-
if (isNumerable(tOfA, a) && isNumerable(tOfB, b)) {
|
|
11063
|
-
return a * b;
|
|
11064
|
-
}
|
|
11065
|
-
|
|
11066
|
-
var i;
|
|
11067
|
-
var len;
|
|
11068
|
-
if ($bm_isInstanceOfArray(a) && isNumerable(tOfB, b)) {
|
|
11069
|
-
len = a.length;
|
|
11070
|
-
arr = createTypedArray('float32', len);
|
|
11071
|
-
for (i = 0; i < len; i += 1) {
|
|
11072
|
-
arr[i] = a[i] * b;
|
|
11073
|
-
}
|
|
11074
|
-
return arr;
|
|
11075
|
-
}
|
|
11076
|
-
if (isNumerable(tOfA, a) && $bm_isInstanceOfArray(b)) {
|
|
11077
|
-
len = b.length;
|
|
11078
|
-
arr = createTypedArray('float32', len);
|
|
11079
|
-
for (i = 0; i < len; i += 1) {
|
|
11080
|
-
arr[i] = a * b[i];
|
|
11081
|
-
}
|
|
11082
|
-
return arr;
|
|
11083
|
-
}
|
|
11084
|
-
return 0;
|
|
11085
|
-
}
|
|
11086
10791
|
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
var arr;
|
|
11091
|
-
if (isNumerable(tOfA, a) && isNumerable(tOfB, b)) {
|
|
11092
|
-
return a / b;
|
|
11093
|
-
}
|
|
11094
|
-
var i;
|
|
11095
|
-
var len;
|
|
11096
|
-
if ($bm_isInstanceOfArray(a) && isNumerable(tOfB, b)) {
|
|
11097
|
-
len = a.length;
|
|
11098
|
-
arr = createTypedArray('float32', len);
|
|
11099
|
-
for (i = 0; i < len; i += 1) {
|
|
11100
|
-
arr[i] = a[i] / b;
|
|
11101
|
-
}
|
|
11102
|
-
return arr;
|
|
11103
|
-
}
|
|
11104
|
-
if (isNumerable(tOfA, a) && $bm_isInstanceOfArray(b)) {
|
|
11105
|
-
len = b.length;
|
|
11106
|
-
arr = createTypedArray('float32', len);
|
|
11107
|
-
for (i = 0; i < len; i += 1) {
|
|
11108
|
-
arr[i] = a / b[i];
|
|
11109
|
-
}
|
|
11110
|
-
return arr;
|
|
11111
|
-
}
|
|
11112
|
-
return 0;
|
|
11113
|
-
}
|
|
11114
|
-
function mod(a, b) {
|
|
11115
|
-
if (typeof a === 'string') {
|
|
11116
|
-
a = parseInt(a, 10);
|
|
11117
|
-
}
|
|
11118
|
-
if (typeof b === 'string') {
|
|
11119
|
-
b = parseInt(b, 10);
|
|
11120
|
-
}
|
|
11121
|
-
return a % b;
|
|
11122
|
-
}
|
|
11123
|
-
var $bm_sum = sum;
|
|
11124
|
-
var $bm_sub = sub;
|
|
11125
|
-
var $bm_mul = mul;
|
|
11126
|
-
var $bm_div = div;
|
|
11127
|
-
var $bm_mod = mod;
|
|
11128
|
-
|
|
11129
|
-
function clamp(num, min, max) {
|
|
11130
|
-
if (min > max) {
|
|
11131
|
-
var mm = max;
|
|
11132
|
-
max = min;
|
|
11133
|
-
min = mm;
|
|
11134
|
-
}
|
|
11135
|
-
return Math.min(Math.max(num, min), max);
|
|
11136
|
-
}
|
|
11137
|
-
|
|
11138
|
-
function radiansToDegrees(val) {
|
|
11139
|
-
return val / degToRads;
|
|
11140
|
-
}
|
|
11141
|
-
var radians_to_degrees = radiansToDegrees;
|
|
11142
|
-
|
|
11143
|
-
function degreesToRadians(val) {
|
|
11144
|
-
return val * degToRads;
|
|
11145
|
-
}
|
|
11146
|
-
var degrees_to_radians = radiansToDegrees;
|
|
11147
|
-
|
|
11148
|
-
var helperLengthArray = [0, 0, 0, 0, 0, 0];
|
|
11149
|
-
|
|
11150
|
-
function length(arr1, arr2) {
|
|
11151
|
-
if (typeof arr1 === 'number' || arr1 instanceof Number) {
|
|
11152
|
-
arr2 = arr2 || 0;
|
|
11153
|
-
return Math.abs(arr1 - arr2);
|
|
11154
|
-
}
|
|
11155
|
-
if (!arr2) {
|
|
11156
|
-
arr2 = helperLengthArray;
|
|
11157
|
-
}
|
|
11158
|
-
var i;
|
|
11159
|
-
var len = Math.min(arr1.length, arr2.length);
|
|
11160
|
-
var addedLength = 0;
|
|
11161
|
-
for (i = 0; i < len; i += 1) {
|
|
11162
|
-
addedLength += Math.pow(arr2[i] - arr1[i], 2);
|
|
11163
|
-
}
|
|
11164
|
-
return Math.sqrt(addedLength);
|
|
11165
|
-
}
|
|
11166
|
-
|
|
11167
|
-
function normalize(vec) {
|
|
11168
|
-
return div(vec, length(vec));
|
|
11169
|
-
}
|
|
11170
|
-
|
|
11171
|
-
function rgbToHsl(val) {
|
|
11172
|
-
var r = val[0]; var g = val[1]; var b = val[2];
|
|
11173
|
-
var max = Math.max(r, g, b);
|
|
11174
|
-
var min = Math.min(r, g, b);
|
|
11175
|
-
var h;
|
|
11176
|
-
var s;
|
|
11177
|
-
var l = (max + min) / 2;
|
|
11178
|
-
|
|
11179
|
-
if (max === min) {
|
|
11180
|
-
h = 0; // achromatic
|
|
11181
|
-
s = 0; // achromatic
|
|
11182
|
-
} else {
|
|
11183
|
-
var d = max - min;
|
|
11184
|
-
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
11185
|
-
switch (max) {
|
|
11186
|
-
case r: h = (g - b) / d + (g < b ? 6 : 0); break;
|
|
11187
|
-
case g: h = (b - r) / d + 2; break;
|
|
11188
|
-
case b: h = (r - g) / d + 4; break;
|
|
11189
|
-
default: break;
|
|
11190
|
-
}
|
|
11191
|
-
h /= 6;
|
|
11192
|
-
}
|
|
11193
|
-
|
|
11194
|
-
return [h, s, l, val[3]];
|
|
11195
|
-
}
|
|
11196
|
-
|
|
11197
|
-
function hue2rgb(p, q, t) {
|
|
11198
|
-
if (t < 0) t += 1;
|
|
11199
|
-
if (t > 1) t -= 1;
|
|
11200
|
-
if (t < 1 / 6) return p + (q - p) * 6 * t;
|
|
11201
|
-
if (t < 1 / 2) return q;
|
|
11202
|
-
if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
|
|
11203
|
-
return p;
|
|
11204
|
-
}
|
|
11205
|
-
|
|
11206
|
-
function hslToRgb(val) {
|
|
11207
|
-
var h = val[0];
|
|
11208
|
-
var s = val[1];
|
|
11209
|
-
var l = val[2];
|
|
11210
|
-
|
|
11211
|
-
var r;
|
|
11212
|
-
var g;
|
|
11213
|
-
var b;
|
|
11214
|
-
|
|
11215
|
-
if (s === 0) {
|
|
11216
|
-
r = l; // achromatic
|
|
11217
|
-
b = l; // achromatic
|
|
11218
|
-
g = l; // achromatic
|
|
11219
|
-
} else {
|
|
11220
|
-
var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
11221
|
-
var p = 2 * l - q;
|
|
11222
|
-
r = hue2rgb(p, q, h + 1 / 3);
|
|
11223
|
-
g = hue2rgb(p, q, h);
|
|
11224
|
-
b = hue2rgb(p, q, h - 1 / 3);
|
|
11225
|
-
}
|
|
11226
|
-
|
|
11227
|
-
return [r, g, b, val[3]];
|
|
11228
|
-
}
|
|
11229
|
-
|
|
11230
|
-
function linear(t, tMin, tMax, value1, value2) {
|
|
11231
|
-
if (value1 === undefined || value2 === undefined) {
|
|
11232
|
-
value1 = tMin;
|
|
11233
|
-
value2 = tMax;
|
|
11234
|
-
tMin = 0;
|
|
11235
|
-
tMax = 1;
|
|
11236
|
-
}
|
|
11237
|
-
if (tMax < tMin) {
|
|
11238
|
-
var _tMin = tMax;
|
|
11239
|
-
tMax = tMin;
|
|
11240
|
-
tMin = _tMin;
|
|
11241
|
-
}
|
|
11242
|
-
if (t <= tMin) {
|
|
11243
|
-
return value1;
|
|
11244
|
-
} if (t >= tMax) {
|
|
11245
|
-
return value2;
|
|
11246
|
-
}
|
|
11247
|
-
var perc = tMax === tMin ? 0 : (t - tMin) / (tMax - tMin);
|
|
11248
|
-
if (!value1.length) {
|
|
11249
|
-
return value1 + (value2 - value1) * perc;
|
|
11250
|
-
}
|
|
11251
|
-
var i;
|
|
11252
|
-
var len = value1.length;
|
|
11253
|
-
var arr = createTypedArray('float32', len);
|
|
11254
|
-
for (i = 0; i < len; i += 1) {
|
|
11255
|
-
arr[i] = value1[i] + (value2[i] - value1[i]) * perc;
|
|
11256
|
-
}
|
|
11257
|
-
return arr;
|
|
11258
|
-
}
|
|
11259
|
-
function random(min, max) {
|
|
11260
|
-
if (max === undefined) {
|
|
11261
|
-
if (min === undefined) {
|
|
11262
|
-
min = 0;
|
|
11263
|
-
max = 1;
|
|
11264
|
-
} else {
|
|
11265
|
-
max = min;
|
|
11266
|
-
min = undefined;
|
|
11267
|
-
}
|
|
11268
|
-
}
|
|
11269
|
-
if (max.length) {
|
|
11270
|
-
var i;
|
|
11271
|
-
var len = max.length;
|
|
11272
|
-
if (!min) {
|
|
11273
|
-
min = createTypedArray('float32', len);
|
|
11274
|
-
}
|
|
11275
|
-
var arr = createTypedArray('float32', len);
|
|
11276
|
-
var rnd = BMMath.random();
|
|
11277
|
-
for (i = 0; i < len; i += 1) {
|
|
11278
|
-
arr[i] = min[i] + rnd * (max[i] - min[i]);
|
|
11279
|
-
}
|
|
11280
|
-
return arr;
|
|
11281
|
-
}
|
|
11282
|
-
if (min === undefined) {
|
|
11283
|
-
min = 0;
|
|
11284
|
-
}
|
|
11285
|
-
var rndm = BMMath.random();
|
|
11286
|
-
return min + rndm * (max - min);
|
|
11287
|
-
}
|
|
11288
|
-
|
|
11289
|
-
function createPath(points, inTangents, outTangents, closed) {
|
|
11290
|
-
var i;
|
|
11291
|
-
var len = points.length;
|
|
11292
|
-
var path = shapePool.newElement();
|
|
11293
|
-
path.setPathData(!!closed, len);
|
|
11294
|
-
var arrPlaceholder = [0, 0];
|
|
11295
|
-
var inVertexPoint;
|
|
11296
|
-
var outVertexPoint;
|
|
11297
|
-
for (i = 0; i < len; i += 1) {
|
|
11298
|
-
inVertexPoint = (inTangents && inTangents[i]) ? inTangents[i] : arrPlaceholder;
|
|
11299
|
-
outVertexPoint = (outTangents && outTangents[i]) ? outTangents[i] : arrPlaceholder;
|
|
11300
|
-
path.setTripleAt(points[i][0], points[i][1], outVertexPoint[0] + points[i][0], outVertexPoint[1] + points[i][1], inVertexPoint[0] + points[i][0], inVertexPoint[1] + points[i][1], i, true);
|
|
11301
|
-
}
|
|
11302
|
-
return path;
|
|
11303
|
-
}
|
|
10792
|
+
BezierFactory.getBezierEasing(0.333, 0, 0.833, 0.833, 'easeIn').get;
|
|
10793
|
+
BezierFactory.getBezierEasing(0.167, 0.167, 0.667, 1, 'easeOut').get;
|
|
10794
|
+
BezierFactory.getBezierEasing(0.33, 0, 0.667, 1, 'easeInOut').get;
|
|
11304
10795
|
|
|
11305
10796
|
function initiateExpression(elem, data, property) {
|
|
11306
10797
|
var val = data.x;
|
|
@@ -11308,7 +10799,6 @@ var ExpressionManager = (function () {
|
|
|
11308
10799
|
var _needsRandom = val.indexOf('random') !== -1;
|
|
11309
10800
|
var elemType = elem.data.ty;
|
|
11310
10801
|
var transform;
|
|
11311
|
-
var $bm_transform;
|
|
11312
10802
|
var content;
|
|
11313
10803
|
var effect;
|
|
11314
10804
|
var thisProperty = property;
|
|
@@ -11320,39 +10810,14 @@ var ExpressionManager = (function () {
|
|
|
11320
10810
|
});
|
|
11321
10811
|
elem.comp.frameDuration = 1 / elem.comp.globalData.frameRate;
|
|
11322
10812
|
elem.comp.displayStartTime = 0;
|
|
11323
|
-
var inPoint = elem.data.ip / elem.comp.globalData.frameRate;
|
|
11324
|
-
var outPoint = elem.data.op / elem.comp.globalData.frameRate;
|
|
11325
|
-
var width = elem.data.sw ? elem.data.sw : 0;
|
|
11326
|
-
var height = elem.data.sh ? elem.data.sh : 0;
|
|
11327
|
-
var name = elem.data.nm;
|
|
11328
|
-
var loopIn;
|
|
11329
|
-
var loop_in;
|
|
11330
|
-
var loopOut;
|
|
11331
|
-
var loop_out;
|
|
11332
|
-
var smooth;
|
|
11333
|
-
var toWorld;
|
|
11334
|
-
var fromWorld;
|
|
11335
|
-
var fromComp;
|
|
11336
|
-
var toComp;
|
|
11337
|
-
var fromCompToSurface;
|
|
11338
|
-
var position;
|
|
11339
|
-
var rotation;
|
|
11340
|
-
var anchorPoint;
|
|
11341
|
-
var scale;
|
|
11342
10813
|
var thisLayer;
|
|
11343
|
-
var thisComp;
|
|
11344
|
-
var mask;
|
|
11345
|
-
var valueAtTime;
|
|
11346
10814
|
var velocityAtTime;
|
|
11347
10815
|
|
|
11348
10816
|
var scoped_bm_rt;
|
|
11349
10817
|
// val = val.replace(/(\\?"|')((http)(s)?(:\/))?\/.*?(\\?"|')/g, "\"\""); // deter potential network calls
|
|
11350
10818
|
var expression_function = eval('[function _expression_function(){' + val + ';scoped_bm_rt=$bm_rt}]')[0]; // eslint-disable-line no-eval
|
|
11351
|
-
var numKeys = property.kf ? data.k.length : 0;
|
|
11352
|
-
|
|
11353
|
-
var active = !this.data || this.data.hd !== true;
|
|
11354
10819
|
|
|
11355
|
-
|
|
10820
|
+
(function wiggle(freq, amp) {
|
|
11356
10821
|
var iWiggle;
|
|
11357
10822
|
var j;
|
|
11358
10823
|
var lenWiggle = this.pv.length ? this.pv.length : 1;
|
|
@@ -11382,211 +10847,37 @@ var ExpressionManager = (function () {
|
|
|
11382
10847
|
return arr;
|
|
11383
10848
|
}
|
|
11384
10849
|
return this.pv + addedAmps[0] + (-amp + amp * 2 * BMMath.random()) * perc;
|
|
11385
|
-
}.bind(this);
|
|
10850
|
+
}).bind(this);
|
|
11386
10851
|
|
|
11387
10852
|
if (thisProperty.loopIn) {
|
|
11388
|
-
|
|
11389
|
-
loop_in = loopIn;
|
|
10853
|
+
thisProperty.loopIn.bind(thisProperty);
|
|
11390
10854
|
}
|
|
11391
10855
|
|
|
11392
10856
|
if (thisProperty.loopOut) {
|
|
11393
|
-
|
|
11394
|
-
loop_out = loopOut;
|
|
10857
|
+
thisProperty.loopOut.bind(thisProperty);
|
|
11395
10858
|
}
|
|
11396
10859
|
|
|
11397
10860
|
if (thisProperty.smooth) {
|
|
11398
|
-
|
|
11399
|
-
}
|
|
11400
|
-
|
|
11401
|
-
function loopInDuration(type, duration) {
|
|
11402
|
-
return loopIn(type, duration, true);
|
|
11403
|
-
}
|
|
11404
|
-
|
|
11405
|
-
function loopOutDuration(type, duration) {
|
|
11406
|
-
return loopOut(type, duration, true);
|
|
10861
|
+
thisProperty.smooth.bind(thisProperty);
|
|
11407
10862
|
}
|
|
11408
10863
|
|
|
11409
10864
|
if (this.getValueAtTime) {
|
|
11410
|
-
|
|
10865
|
+
this.getValueAtTime.bind(this);
|
|
11411
10866
|
}
|
|
11412
10867
|
|
|
11413
10868
|
if (this.getVelocityAtTime) {
|
|
11414
10869
|
velocityAtTime = this.getVelocityAtTime.bind(this);
|
|
11415
10870
|
}
|
|
11416
10871
|
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
function lookAt(elem1, elem2) {
|
|
11420
|
-
var fVec = [elem2[0] - elem1[0], elem2[1] - elem1[1], elem2[2] - elem1[2]];
|
|
11421
|
-
var pitch = Math.atan2(fVec[0], Math.sqrt(fVec[1] * fVec[1] + fVec[2] * fVec[2])) / degToRads;
|
|
11422
|
-
var yaw = -Math.atan2(fVec[1], fVec[2]) / degToRads;
|
|
11423
|
-
return [yaw, pitch, 0];
|
|
11424
|
-
}
|
|
11425
|
-
|
|
11426
|
-
function easeOut(t, tMin, tMax, val1, val2) {
|
|
11427
|
-
return applyEase(easeOutBez, t, tMin, tMax, val1, val2);
|
|
11428
|
-
}
|
|
11429
|
-
|
|
11430
|
-
function easeIn(t, tMin, tMax, val1, val2) {
|
|
11431
|
-
return applyEase(easeInBez, t, tMin, tMax, val1, val2);
|
|
11432
|
-
}
|
|
11433
|
-
|
|
11434
|
-
function ease(t, tMin, tMax, val1, val2) {
|
|
11435
|
-
return applyEase(easeInOutBez, t, tMin, tMax, val1, val2);
|
|
11436
|
-
}
|
|
11437
|
-
|
|
11438
|
-
function applyEase(fn, t, tMin, tMax, val1, val2) {
|
|
11439
|
-
if (val1 === undefined) {
|
|
11440
|
-
val1 = tMin;
|
|
11441
|
-
val2 = tMax;
|
|
11442
|
-
} else {
|
|
11443
|
-
t = (t - tMin) / (tMax - tMin);
|
|
11444
|
-
}
|
|
11445
|
-
if (t > 1) {
|
|
11446
|
-
t = 1;
|
|
11447
|
-
} else if (t < 0) {
|
|
11448
|
-
t = 0;
|
|
11449
|
-
}
|
|
11450
|
-
var mult = fn(t);
|
|
11451
|
-
if ($bm_isInstanceOfArray(val1)) {
|
|
11452
|
-
var iKey;
|
|
11453
|
-
var lenKey = val1.length;
|
|
11454
|
-
var arr = createTypedArray('float32', lenKey);
|
|
11455
|
-
for (iKey = 0; iKey < lenKey; iKey += 1) {
|
|
11456
|
-
arr[iKey] = (val2[iKey] - val1[iKey]) * mult + val1[iKey];
|
|
11457
|
-
}
|
|
11458
|
-
return arr;
|
|
11459
|
-
}
|
|
11460
|
-
return (val2 - val1) * mult + val1;
|
|
11461
|
-
}
|
|
11462
|
-
|
|
11463
|
-
function nearestKey(time) {
|
|
11464
|
-
var iKey;
|
|
11465
|
-
var lenKey = data.k.length;
|
|
11466
|
-
var index;
|
|
11467
|
-
var keyTime;
|
|
11468
|
-
if (!data.k.length || typeof (data.k[0]) === 'number') {
|
|
11469
|
-
index = 0;
|
|
11470
|
-
keyTime = 0;
|
|
11471
|
-
} else {
|
|
11472
|
-
index = -1;
|
|
11473
|
-
time *= elem.comp.globalData.frameRate;
|
|
11474
|
-
if (time < data.k[0].t) {
|
|
11475
|
-
index = 1;
|
|
11476
|
-
keyTime = data.k[0].t;
|
|
11477
|
-
} else {
|
|
11478
|
-
for (iKey = 0; iKey < lenKey - 1; iKey += 1) {
|
|
11479
|
-
if (time === data.k[iKey].t) {
|
|
11480
|
-
index = iKey + 1;
|
|
11481
|
-
keyTime = data.k[iKey].t;
|
|
11482
|
-
break;
|
|
11483
|
-
} else if (time > data.k[iKey].t && time < data.k[iKey + 1].t) {
|
|
11484
|
-
if (time - data.k[iKey].t > data.k[iKey + 1].t - time) {
|
|
11485
|
-
index = iKey + 2;
|
|
11486
|
-
keyTime = data.k[iKey + 1].t;
|
|
11487
|
-
} else {
|
|
11488
|
-
index = iKey + 1;
|
|
11489
|
-
keyTime = data.k[iKey].t;
|
|
11490
|
-
}
|
|
11491
|
-
break;
|
|
11492
|
-
}
|
|
11493
|
-
}
|
|
11494
|
-
if (index === -1) {
|
|
11495
|
-
index = iKey + 1;
|
|
11496
|
-
keyTime = data.k[iKey].t;
|
|
11497
|
-
}
|
|
11498
|
-
}
|
|
11499
|
-
}
|
|
11500
|
-
var obKey = {};
|
|
11501
|
-
obKey.index = index;
|
|
11502
|
-
obKey.time = keyTime / elem.comp.globalData.frameRate;
|
|
11503
|
-
return obKey;
|
|
11504
|
-
}
|
|
11505
|
-
|
|
11506
|
-
function key(ind) {
|
|
11507
|
-
var obKey;
|
|
11508
|
-
var iKey;
|
|
11509
|
-
var lenKey;
|
|
11510
|
-
if (!data.k.length || typeof (data.k[0]) === 'number') {
|
|
11511
|
-
throw new Error('The property has no keyframe at index ' + ind);
|
|
11512
|
-
}
|
|
11513
|
-
ind -= 1;
|
|
11514
|
-
obKey = {
|
|
11515
|
-
time: data.k[ind].t / elem.comp.globalData.frameRate,
|
|
11516
|
-
value: [],
|
|
11517
|
-
};
|
|
11518
|
-
var arr = Object.prototype.hasOwnProperty.call(data.k[ind], 's') ? data.k[ind].s : data.k[ind - 1].e;
|
|
11519
|
-
|
|
11520
|
-
lenKey = arr.length;
|
|
11521
|
-
for (iKey = 0; iKey < lenKey; iKey += 1) {
|
|
11522
|
-
obKey[iKey] = arr[iKey];
|
|
11523
|
-
obKey.value[iKey] = arr[iKey];
|
|
11524
|
-
}
|
|
11525
|
-
return obKey;
|
|
11526
|
-
}
|
|
11527
|
-
|
|
11528
|
-
function framesToTime(frames, fps) {
|
|
11529
|
-
if (!fps) {
|
|
11530
|
-
fps = elem.comp.globalData.frameRate;
|
|
11531
|
-
}
|
|
11532
|
-
return frames / fps;
|
|
11533
|
-
}
|
|
11534
|
-
|
|
11535
|
-
function timeToFrames(t, fps) {
|
|
11536
|
-
if (!t && t !== 0) {
|
|
11537
|
-
t = time;
|
|
11538
|
-
}
|
|
11539
|
-
if (!fps) {
|
|
11540
|
-
fps = elem.comp.globalData.frameRate;
|
|
11541
|
-
}
|
|
11542
|
-
return t * fps;
|
|
11543
|
-
}
|
|
10872
|
+
elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);
|
|
11544
10873
|
|
|
11545
10874
|
function seedRandom(seed) {
|
|
11546
10875
|
BMMath.seedrandom(randSeed + seed);
|
|
11547
10876
|
}
|
|
11548
10877
|
|
|
11549
|
-
function sourceRectAtTime() {
|
|
11550
|
-
return elem.sourceRectAtTime();
|
|
11551
|
-
}
|
|
11552
|
-
|
|
11553
|
-
function substring(init, end) {
|
|
11554
|
-
if (typeof value === 'string') {
|
|
11555
|
-
if (end === undefined) {
|
|
11556
|
-
return value.substring(init);
|
|
11557
|
-
}
|
|
11558
|
-
return value.substring(init, end);
|
|
11559
|
-
}
|
|
11560
|
-
return '';
|
|
11561
|
-
}
|
|
11562
|
-
|
|
11563
|
-
function substr(init, end) {
|
|
11564
|
-
if (typeof value === 'string') {
|
|
11565
|
-
if (end === undefined) {
|
|
11566
|
-
return value.substr(init);
|
|
11567
|
-
}
|
|
11568
|
-
return value.substr(init, end);
|
|
11569
|
-
}
|
|
11570
|
-
return '';
|
|
11571
|
-
}
|
|
11572
|
-
|
|
11573
|
-
function posterizeTime(framesPerSecond) {
|
|
11574
|
-
time = framesPerSecond === 0 ? 0 : Math.floor(time * framesPerSecond) / framesPerSecond;
|
|
11575
|
-
value = valueAtTime(time);
|
|
11576
|
-
}
|
|
11577
|
-
|
|
11578
10878
|
var time;
|
|
11579
|
-
var velocity;
|
|
11580
10879
|
var value;
|
|
11581
|
-
var text;
|
|
11582
|
-
var textIndex;
|
|
11583
|
-
var textTotal;
|
|
11584
|
-
var selectorValue;
|
|
11585
|
-
var index = elem.data.ind;
|
|
11586
|
-
var hasParent = !!(elem.hierarchy && elem.hierarchy.length);
|
|
11587
|
-
var parent;
|
|
11588
10880
|
var randSeed = Math.floor(Math.random() * 1000000);
|
|
11589
|
-
var globalData = elem.globalData;
|
|
11590
10881
|
function executeExpression(_value) {
|
|
11591
10882
|
// globalData.pushExpression();
|
|
11592
10883
|
value = _value;
|
|
@@ -11596,31 +10887,16 @@ var ExpressionManager = (function () {
|
|
|
11596
10887
|
if (this.frameExpressionId === elem.globalData.frameId && this.propType !== 'textSelector') {
|
|
11597
10888
|
return value;
|
|
11598
10889
|
}
|
|
11599
|
-
if (this.propType === 'textSelector') {
|
|
11600
|
-
textIndex = this.textIndex;
|
|
11601
|
-
textTotal = this.textTotal;
|
|
11602
|
-
selectorValue = this.selectorValue;
|
|
11603
|
-
}
|
|
11604
10890
|
if (!thisLayer) {
|
|
11605
|
-
text = elem.layerInterface.text;
|
|
11606
10891
|
thisLayer = elem.layerInterface;
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
mask = thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null;
|
|
11613
|
-
fromCompToSurface = fromComp;
|
|
10892
|
+
thisLayer.toWorld.bind(thisLayer);
|
|
10893
|
+
thisLayer.fromWorld.bind(thisLayer);
|
|
10894
|
+
thisLayer.fromComp.bind(thisLayer);
|
|
10895
|
+
thisLayer.toComp.bind(thisLayer);
|
|
10896
|
+
thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null;
|
|
11614
10897
|
}
|
|
11615
10898
|
if (!transform) {
|
|
11616
10899
|
transform = elem.layerInterface('ADBE Transform Group');
|
|
11617
|
-
$bm_transform = transform;
|
|
11618
|
-
if (transform) {
|
|
11619
|
-
anchorPoint = transform.anchorPoint;
|
|
11620
|
-
/* position = transform.position;
|
|
11621
|
-
rotation = transform.rotation;
|
|
11622
|
-
scale = transform.scale; */
|
|
11623
|
-
}
|
|
11624
10900
|
}
|
|
11625
10901
|
|
|
11626
10902
|
if (elemType === 4 && !content) {
|
|
@@ -11629,21 +10905,12 @@ var ExpressionManager = (function () {
|
|
|
11629
10905
|
if (!effect) {
|
|
11630
10906
|
effect = thisLayer(4);
|
|
11631
10907
|
}
|
|
11632
|
-
hasParent = !!(elem.hierarchy && elem.hierarchy.length);
|
|
11633
|
-
if (hasParent && !parent) {
|
|
11634
|
-
parent = elem.hierarchy[0].layerInterface;
|
|
11635
|
-
}
|
|
11636
10908
|
time = this.comp.renderedFrame / this.comp.globalData.frameRate;
|
|
11637
10909
|
if (needsVelocity) {
|
|
11638
|
-
|
|
10910
|
+
velocityAtTime(time);
|
|
11639
10911
|
}
|
|
11640
10912
|
expression_function();
|
|
11641
10913
|
this.frameExpressionId = elem.globalData.frameId;
|
|
11642
|
-
|
|
11643
|
-
// TODO: Check if it's possible to return on ShapeInterface the .v value
|
|
11644
|
-
if (scoped_bm_rt.propType === 'shape') {
|
|
11645
|
-
scoped_bm_rt = scoped_bm_rt.v;
|
|
11646
|
-
}
|
|
11647
10914
|
// globalData.popExpression();
|
|
11648
10915
|
return scoped_bm_rt;
|
|
11649
10916
|
}
|
|
@@ -12310,9 +11577,7 @@ var ShapeExpressionInterface = (function () {
|
|
|
12310
11577
|
arr.push(strokeInterfaceFactory(shapes[i], view[i], propertyGroup));
|
|
12311
11578
|
} else if (shapes[i].ty === 'tm') {
|
|
12312
11579
|
arr.push(trimInterfaceFactory(shapes[i], view[i], propertyGroup));
|
|
12313
|
-
} else if (shapes[i].ty === 'tr') {
|
|
12314
|
-
// arr.push(transformInterfaceFactory(shapes[i],view[i],propertyGroup));
|
|
12315
|
-
} else if (shapes[i].ty === 'el') {
|
|
11580
|
+
} else if (shapes[i].ty === 'tr') ; else if (shapes[i].ty === 'el') {
|
|
12316
11581
|
arr.push(ellipseInterfaceFactory(shapes[i], view[i], propertyGroup));
|
|
12317
11582
|
} else if (shapes[i].ty === 'sr') {
|
|
12318
11583
|
arr.push(starInterfaceFactory(shapes[i], view[i], propertyGroup));
|
|
@@ -12327,7 +11592,7 @@ var ShapeExpressionInterface = (function () {
|
|
|
12327
11592
|
} else if (shapes[i].ty === 'gf') {
|
|
12328
11593
|
arr.push(gradientFillInterfaceFactory(shapes[i], view[i], propertyGroup));
|
|
12329
11594
|
} else {
|
|
12330
|
-
arr.push(defaultInterfaceFactory(
|
|
11595
|
+
arr.push(defaultInterfaceFactory());
|
|
12331
11596
|
}
|
|
12332
11597
|
}
|
|
12333
11598
|
return arr;
|
|
@@ -13691,9 +12956,7 @@ function setLocationHref(href) {
|
|
|
13691
12956
|
}
|
|
13692
12957
|
|
|
13693
12958
|
function searchAnimations() {
|
|
13694
|
-
|
|
13695
|
-
animationManager.searchAnimations(animationData, standalone, renderer);
|
|
13696
|
-
} else {
|
|
12959
|
+
{
|
|
13697
12960
|
animationManager.searchAnimations();
|
|
13698
12961
|
}
|
|
13699
12962
|
}
|
|
@@ -13707,9 +12970,6 @@ function setIDPrefix(prefix) {
|
|
|
13707
12970
|
}
|
|
13708
12971
|
|
|
13709
12972
|
function loadAnimation(params) {
|
|
13710
|
-
if (standalone === true) {
|
|
13711
|
-
params.animationData = JSON.parse(animationData);
|
|
13712
|
-
}
|
|
13713
12973
|
return animationManager.loadAnimation(params);
|
|
13714
12974
|
}
|
|
13715
12975
|
|
|
@@ -13730,11 +12990,6 @@ function setQuality(value) {
|
|
|
13730
12990
|
} else if (!isNaN(value) && value > 1) {
|
|
13731
12991
|
defaultCurveSegments = value;
|
|
13732
12992
|
}
|
|
13733
|
-
if (defaultCurveSegments >= 50) {
|
|
13734
|
-
roundValues(false);
|
|
13735
|
-
} else {
|
|
13736
|
-
roundValues(true);
|
|
13737
|
-
}
|
|
13738
12993
|
}
|
|
13739
12994
|
|
|
13740
12995
|
function inBrowser() {
|
|
@@ -13805,18 +13060,15 @@ function getQueryVariable(variable) {
|
|
|
13805
13060
|
}
|
|
13806
13061
|
return null;
|
|
13807
13062
|
}
|
|
13808
|
-
var standalone = '__[STANDALONE]__';
|
|
13809
|
-
var animationData = '__[ANIMATIONDATA]__';
|
|
13810
|
-
var renderer = '';
|
|
13811
13063
|
var queryString;
|
|
13812
|
-
|
|
13064
|
+
{
|
|
13813
13065
|
var scripts = document.getElementsByTagName('script');
|
|
13814
13066
|
var index = scripts.length - 1;
|
|
13815
13067
|
var myScript = scripts[index] || {
|
|
13816
13068
|
src: '',
|
|
13817
13069
|
};
|
|
13818
13070
|
queryString = myScript.src.replace(/^[^\?]+\??/, ''); // eslint-disable-line no-useless-escape
|
|
13819
|
-
|
|
13071
|
+
getQueryVariable('renderer');
|
|
13820
13072
|
}
|
|
13821
13073
|
var readyStateCheckInterval = setInterval(checkReady, 100);
|
|
13822
13074
|
|
|
@@ -13850,16 +13102,14 @@ var PlayerState;
|
|
|
13850
13102
|
PlayerState["Stopped"] = "stopped";
|
|
13851
13103
|
PlayerState["Frozen"] = "frozen";
|
|
13852
13104
|
PlayerState["Error"] = "error";
|
|
13853
|
-
})(PlayerState || (PlayerState = {}));
|
|
13854
|
-
;
|
|
13105
|
+
})(PlayerState || (PlayerState = {}));
|
|
13855
13106
|
|
|
13856
13107
|
// Define play modes
|
|
13857
13108
|
var PlayMode;
|
|
13858
13109
|
(function (PlayMode) {
|
|
13859
13110
|
PlayMode["Normal"] = "normal";
|
|
13860
13111
|
PlayMode["Bounce"] = "bounce";
|
|
13861
|
-
})(PlayMode || (PlayMode = {}));
|
|
13862
|
-
;
|
|
13112
|
+
})(PlayMode || (PlayMode = {}));
|
|
13863
13113
|
|
|
13864
13114
|
const lottiePlayerCss = ":host{--lottie-player-toolbar-height:35px;--lottie-player-toolbar-background-color:transparent;--lottie-player-toolbar-icon-color:#999;--lottie-player-toolbar-icon-hover-color:#222;--lottie-player-toolbar-icon-active-color:#555;--lottie-player-seeker-track-color:#CCC;--lottie-player-seeker-thumb-color:rgba(0, 107, 120, 0.8);display:block;width:100%;height:100%}.main{box-sizing:border-box;display:inline-grid;grid-auto-columns:auto;grid-template-rows:auto;position:relative;height:inherit;width:inherit}.main.controls{grid-template-rows:1fr var(--lottie-player-toolbar-height)}.animation{overflow:hidden;height:calc(1fr - var(--lottie-player-toolbar-height))}.toolbar{display:grid;grid-template-columns:32px 32px 1fr 32px 32px;align-items:center;justify-items:center;background-color:var(--lottie-player-toolbar-background-color)}.toolbar button{cursor:pointer;fill:var(--lottie-player-toolbar-icon-color);display:flex;background:none;border:0;padding:0;outline:none;height:100%}.toolbar button:hover{fill:var(--lottie-player-toolbar-icon-hover-color)}.toolbar button.active{fill:var(--lottie-player-toolbar-icon-active-color)}.toolbar button.disabled svg{display:none}.toolbar a{filter:grayscale(100%);display:flex;transition:filter .5s, opacity 0.5s;opacity:0.4;height:100%;align-items:center}.toolbar a:hover{filter:none;display:flex;opacity:1}.seeker{-webkit-appearance:none;width:95%;outline:none}.seeker::-webkit-slider-runnable-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-webkit-slider-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer;-webkit-appearance:none;margin-top:-5px}.seeker:focus::-webkit-slider-runnable-track{background:#999}.seeker::-moz-range-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-moz-range-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker::-ms-track{width:100%;height:5px;cursor:pointer;background:transparent;border-color:transparent;color:transparent}.seeker::-ms-fill-lower{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-fill-upper{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-thumb{border:0;height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker:focus::-ms-fill-lower{background:var(--lottie-player-seeker-track-color)}.seeker:focus::-ms-fill-upper{background:var(--lottie-player-seeker-track-color)}.error{display:flex;justify-content:center;height:100%;align-items:center}";
|
|
13865
13115
|
|
|
@@ -14118,7 +13368,6 @@ const LottiePlayer = class {
|
|
|
14118
13368
|
if (!this._lottie) {
|
|
14119
13369
|
return;
|
|
14120
13370
|
}
|
|
14121
|
-
this._lottie.pause;
|
|
14122
13371
|
this.currentState = PlayerState.Frozen;
|
|
14123
13372
|
this.freezed.emit();
|
|
14124
13373
|
}
|