repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/animationFramePolyFill.js
player/js/utils/animationFramePolyFill.js
(function () { var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { // eslint-disable-line no-plusplus window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']; window.cancelAnimationFrame = window[vend...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/filters.js
player/js/utils/filters.js
import createNS from './helpers/svg_elements'; const filtersFactory = (function () { var ob = {}; ob.createFilter = createFilter; ob.createAlphaToLuminanceFilter = createAlphaToLuminanceFilter; function createFilter(filId, skipCoordinates) { var fil = createNS('filter'); fil.setAttribute('id', filId);...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/functionExtensions.js
player/js/utils/functionExtensions.js
function extendPrototype(sources, destination) { var i; var len = sources.length; var sourcePrototype; for (i = 0; i < len; i += 1) { sourcePrototype = sources[i].prototype; for (var attr in sourcePrototype) { if (Object.prototype.hasOwnProperty.call(sourcePrototype, attr)) destination.prototype[a...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/imagePreloaderWorkerOverride.js
player/js/utils/imagePreloaderWorkerOverride.js
const ImagePreloader = function () {}; export default ImagePreloader;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/PropertyFactory.js
player/js/utils/PropertyFactory.js
import { degToRads, } from './common'; import { createTypedArray, } from './helpers/arrays'; import BezierFactory from '../3rd_party/BezierEaser'; import { initialDefaultFrame, } from '../main'; import bez from './bez'; var initFrame = initialDefaultFrame; var mathAbs = Math.abs; function interpolateValue(frame...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/imagePreloader.js
player/js/utils/imagePreloader.js
import { isSafari } from './common'; import createNS from './helpers/svg_elements'; import dataManager from './DataManager'; import createTag from './helpers/html_elements'; const ImagePreloader = (function () { var proxyImage = (function () { var canvas = createTag('canvas'); canvas.width = 1; canvas.he...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/common.js
player/js/utils/common.js
import { createSizedArray, } from './helpers/arrays'; let subframeEnabled = true; let expressionsPlugin = null; let expressionsInterfaces = null; let idPrefix = ''; const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); let _shouldRoundValues = false; const bmPow = Math.pow; const bmSqrt = Math...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/featureSupport.js
player/js/utils/featureSupport.js
const featureSupport = (function () { var ob = { maskType: true, svgLumaHidden: true, offscreenCanvas: typeof OffscreenCanvas !== 'undefined', }; if (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userA...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/getFontProperties.js
player/js/utils/getFontProperties.js
function getFontProperties(fontData) { var styles = fontData.fStyle ? fontData.fStyle.split(' ') : []; var fWeight = 'normal'; var fStyle = 'normal'; var len = styles.length; var styleName; for (var i = 0; i < len; i += 1) { styleName = styles[i].toLowerCase(); switch (styleName) { case 'it...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/PolynomialBezier.js
player/js/utils/PolynomialBezier.js
function floatEqual(a, b) { return Math.abs(a - b) * 100000 <= Math.min(Math.abs(a), Math.abs(b)); } function floatZero(f) { return Math.abs(f) <= 0.00001; } function lerp(p0, p1, amount) { return p0 * (1 - amount) + p1 * amount; } function lerpPoint(p0, p1, amount) { return [lerp(p0[0], p1[0], amount), lerp...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/asset_loader.js
player/js/utils/asset_loader.js
const assetLoader = (function () { function formatResponse(xhr) { // using typeof doubles the time of execution of this method, // so if available, it's better to use the header to validate the type var contentTypeHeader = xhr.getResponseHeader('content-type'); if (contentTypeHeader && xhr.responseTyp...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/DataManager.js
player/js/utils/DataManager.js
import { getWebWorker } from '../main'; const dataManager = (function () { var _counterId = 1; var processes = []; var workerFn; var workerInstance; var workerProxy = { onmessage: function () { }, postMessage: function (path) { workerFn({ data: path, }); }, }; var _wo...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/FontManagerWorkerOverride.js
player/js/utils/FontManagerWorkerOverride.js
import FontManager from './FontManager'; // TODO: fix overwrite FontManager = (function () { var Font = function () { this.fonts = []; this.chars = null; this.typekitLoaded = 0; this.isLoaded = false; this.initTime = Date.now(); }; return Font; }()); export default FontManager;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/FontManager.js
player/js/utils/FontManager.js
import createNS from './helpers/svg_elements'; import createTag from './helpers/html_elements'; import getFontProperties from './getFontProperties'; const FontManager = (function () { var maxWaitingTime = 5000; var emptyChar = { w: 0, size: 0, shapes: [], data: { shapes: [], }, }; var...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/helpers/dynamicProperties.js
player/js/utils/helpers/dynamicProperties.js
function DynamicPropertyContainer() {} DynamicPropertyContainer.prototype = { addDynamicProperty: function (prop) { if (this.dynamicProperties.indexOf(prop) === -1) { this.dynamicProperties.push(prop); this.container.addDynamicProperty(this); this._isAnimated = true; } }, iterateDynamicP...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/helpers/html_elements.js
player/js/utils/helpers/html_elements.js
function createTag(type) { // return {appendChild:function(){},setAttribute:function(){},style:{}} return document.createElement(type); } export default createTag;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/helpers/svg_elements.js
player/js/utils/helpers/svg_elements.js
import { svgNS } from '../../main'; function createNS(type) { // return {appendChild:function(){},setAttribute:function(){},style:{}} return document.createElementNS(svgNS, type); } export default createNS;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/helpers/shapeEnums.js
player/js/utils/helpers/shapeEnums.js
const lineCapEnum = { 1: 'butt', 2: 'round', 3: 'square', }; const lineJoinEnum = { 1: 'miter', 2: 'round', 3: 'bevel', }; export { lineCapEnum, lineJoinEnum, };
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/helpers/effectTypes.js
player/js/utils/helpers/effectTypes.js
export default { TRANSFORM_EFFECT: 'transformEFfect', };
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/helpers/blendModes.js
player/js/utils/helpers/blendModes.js
const getBlendMode = (function () { var blendModeEnums = { 0: 'source-over', 1: 'multiply', 2: 'screen', 3: 'overlay', 4: 'darken', 5: 'lighten', 6: 'color-dodge', 7: 'color-burn', 8: 'hard-light', 9: 'soft-light', 10: 'difference', 11: 'exclusion', 12: 'hue', 1...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/helpers/arrays.js
player/js/utils/helpers/arrays.js
const createTypedArray = (function () { function createRegularArray(type, len) { var i = 0; var arr = []; var value; switch (type) { case 'int16': case 'uint8c': value = 1; break; default: value = 1.1; break; } for (i = 0; i < len; i += 1) { ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/helpers/propTypes.js
player/js/utils/helpers/propTypes.js
export default { SHAPE: 'shape', };
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/helpers/assetManager.js
player/js/utils/helpers/assetManager.js
import createTag from './html_elements'; import createNS from './svg_elements'; import featureSupport from '../featureSupport'; var lumaLoader = (function () { var id = '__lottie_element_luma_buffer'; var lumaBuffer = null; var lumaBufferCtx = null; var svg = null; // This alternate solution has a slight de...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/markers/markerParser.js
player/js/utils/markers/markerParser.js
const markerParser = ( function () { function parsePayloadLines(payload) { var lines = payload.split('\r\n'); var keys = {}; var line; var keysCount = 0; for (var i = 0; i < lines.length; i += 1) { line = lines[i].split(':'); if (line.length === 2) { keys[l...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/pooling/pooling.js
player/js/utils/pooling/pooling.js
import { createSizedArray, } from '../helpers/arrays'; const pooling = (function () { function double(arr) { return arr.concat(createSizedArray(arr.length)); } return { double: double, }; }()); export default pooling;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/pooling/shapeCollection_pool.js
player/js/utils/pooling/shapeCollection_pool.js
import { createSizedArray, } from '../helpers/arrays'; import shapePool from './shape_pool'; import pooling from './pooling'; import ShapeCollection from '../shapes/ShapeCollection'; const shapeCollectionPool = (function () { var ob = { newShapeCollection: newShapeCollection, release: release, }; var ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/pooling/pool_factory.js
player/js/utils/pooling/pool_factory.js
import { createSizedArray, } from '../helpers/arrays'; import pooling from './pooling'; const poolFactory = (function () { return function (initialLength, _create, _release) { var _length = 0; var _maxLength = initialLength; var pool = createSizedArray(_maxLength); var ob = { newElement: new...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/pooling/segments_length_pool.js
player/js/utils/pooling/segments_length_pool.js
import bezierLengthPool from './bezier_length_pool'; import poolFactory from './pool_factory'; const segmentsLengthPool = (function () { function create() { return { lengths: [], totalLength: 0, }; } function release(element) { var i; var len = element.lengths.length; for (i = 0;...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/pooling/bezier_length_pool.js
player/js/utils/pooling/bezier_length_pool.js
import { getDefaultCurveSegments, } from '../common'; import { createTypedArray, } from '../helpers/arrays'; import poolFactory from './pool_factory'; const bezierLengthPool = (function () { function create() { return { addedLength: 0, percents: createTypedArray('float32', getDefaultCurveSegments...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/pooling/point_pool.js
player/js/utils/pooling/point_pool.js
import { createTypedArray, } from '../helpers/arrays'; import poolFactory from './pool_factory'; const pointPool = (function () { function create() { return createTypedArray('float32', 2); } return poolFactory(8, create); }()); export default pointPool;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/pooling/shape_pool.js
player/js/utils/pooling/shape_pool.js
import poolFactory from './pool_factory'; import pointPool from './point_pool'; import ShapePath from '../shapes/ShapePath'; const shapePool = (function () { function create() { return new ShapePath(); } function release(shapePath) { var len = shapePath._length; var i; for (i = 0; i < len; i += ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/audio/AudioElement.js
player/js/utils/audio/AudioElement.js
// TODO: fix Overwrite function AudioElement(data) { this.audioData = data; } export default AudioElement;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/audio/AudioController.js
player/js/utils/audio/AudioController.js
// import Howl from '../../3rd_party/howler'; const audioControllerFactory = (function () { function AudioController(audioFactory) { this.audios = []; this.audioFactory = audioFactory; this._volume = 1; this._isMuted = false; } AudioController.prototype = { addAudio: function (audio) { ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/ProjectInterface.js
player/js/utils/expressions/ProjectInterface.js
const ProjectInterface = (function () { function registerComposition(comp) { this.compositions.push(comp); } return function () { function _thisProjectFunction(name) { var i = 0; var len = this.compositions.length; while (i < len) { if (this.compositions[i].data && this.composit...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/MaskInterface.js
player/js/utils/expressions/MaskInterface.js
import { createSizedArray, } from '../helpers/arrays'; const MaskManagerInterface = (function () { function MaskInterface(mask, data) { this._mask = mask; this._data = data; } Object.defineProperty(MaskInterface.prototype, 'maskPath', { get: function () { if (this._mask.prop.k) { this...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/expressionHelpers.js
player/js/utils/expressions/expressionHelpers.js
import { createTypedArray, } from '../helpers/arrays'; import ExpressionManager from './ExpressionManager'; const expressionHelpers = (function () { function searchExpressions(elem, data, prop) { if (data.x) { prop.k = true; prop.x = true; prop.initiateExpression = ExpressionManager.initiateE...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/TextSelectorPropertyDecorator.js
player/js/utils/expressions/TextSelectorPropertyDecorator.js
import ExpressionManager from './ExpressionManager'; import expressionHelpers from './expressionHelpers'; import TextSelectorProp from '../text/TextSelectorProperty'; const TextExpressionSelectorPropFactory = (function () { // eslint-disable-line no-unused-vars function getValueProxy(index, total) { this.textInd...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/Expressions.js
player/js/utils/expressions/Expressions.js
import CompExpressionInterface from './CompInterface'; import ExpressionManager from './ExpressionManager'; const Expressions = (function () { var ob = {}; ob.initExpressions = initExpressions; ob.resetFrame = ExpressionManager.resetFrame; function initExpressions(animation) { var stackCount = 0; var ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/PropertyInterface.js
player/js/utils/expressions/PropertyInterface.js
const PropertyInterface = (function () { return function (propertyName, propertyGroup) { var interfaceFunction = { _name: propertyName, }; function _propertyGroup(val) { val = val === undefined ? 1 : val; if (val <= 0) { return interfaceFunction; } return propertyGro...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/ExpressionValue.js
player/js/utils/expressions/ExpressionValue.js
import { createTypedArray, } from '../helpers/arrays'; function ExpressionValue(elementProp, mult, type) { mult = mult || 1; var expressionValue; if (elementProp.k) { elementProp.getValue(); } var i; var len; var arrValue; var val; if (type) { if (type === 'color') { len = 4; e...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/ExpressionTextPropertyDecorator.js
player/js/utils/expressions/ExpressionTextPropertyDecorator.js
import TextProperty from '../text/TextProperty'; import ExpressionManager from './ExpressionManager'; function addDecorator() { function searchExpressions() { if (this.data.d.x) { this.calculateExpression = ExpressionManager.initiateExpression.bind(this)(this.elem, this.data.d, this); this.addEffect(...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/TransformInterface.js
player/js/utils/expressions/TransformInterface.js
import ExpressionPropertyInterface from './ExpressionValueFactory'; const TransformExpressionInterface = (function () { return function (transform) { function _thisFunction(name) { switch (name) { case 'scale': case 'Scale': case 'ADBE Scale': case 6: return _thisF...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/LayerInterface.js
player/js/utils/expressions/LayerInterface.js
import { getDescriptor, } from '../functionExtensions'; import Matrix from '../../3rd_party/transformation-matrix'; import MaskManagerInterface from './MaskInterface'; import TransformExpressionInterface from './TransformInterface'; const LayerExpressionInterface = (function () { function getMatrix(time) { var...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/ExpressionValueFactory.js
player/js/utils/expressions/ExpressionValueFactory.js
import { createTypedArray, } from '../helpers/arrays'; const ExpressionPropertyInterface = (function () { var defaultUnidimensionalValue = { pv: 0, v: 0, mult: 1 }; var defaultMultidimensionalValue = { pv: [0, 0, 0], v: [0, 0, 0], mult: 1 }; function completeProperty(expressionValue, property, type) { Obj...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/InterfacesProvider.js
player/js/utils/expressions/InterfacesProvider.js
import LayerExpressionInterface from './LayerInterface'; import EffectsExpressionInterface from './EffectInterface'; import CompExpressionInterface from './CompInterface'; import ShapeExpressionInterface from './ShapeInterface'; import TextExpressionInterface from './TextInterface'; import FootageInterface from './Foot...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/PropertyGroupFactory.js
player/js/utils/expressions/PropertyGroupFactory.js
const propertyGroupFactory = (function () { return function (interfaceFunction, parentPropertyGroup) { return function (val) { val = val === undefined ? 1 : val; if (val <= 0) { return interfaceFunction; } return parentPropertyGroup(val - 1); }; }; }()); export default prope...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/FootageInterface.js
player/js/utils/expressions/FootageInterface.js
const FootageInterface = (function () { var outlineInterfaceFactory = (function (elem) { var currentPropertyName = ''; var currentProperty = elem.getFootageData(); function init() { currentPropertyName = ''; currentProperty = elem.getFootageData(); return searchProperty; } functi...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/ShapeInterface.js
player/js/utils/expressions/ShapeInterface.js
import ExpressionPropertyInterface from './ExpressionValueFactory'; import propertyGroupFactory from './PropertyGroupFactory'; import PropertyInterface from './PropertyInterface'; import ShapePathInterface from './shapes/ShapePathInterface'; const ShapeExpressionInterface = (function () { function iterateElements(sh...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/EffectInterface.js
player/js/utils/expressions/EffectInterface.js
import ExpressionPropertyInterface from './ExpressionValueFactory'; import propertyGroupFactory from './PropertyGroupFactory'; import PropertyInterface from './PropertyInterface'; const EffectsExpressionInterface = (function () { var ob = { createEffectsInterface: createEffectsInterface, }; function createE...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/CompInterface.js
player/js/utils/expressions/CompInterface.js
const CompExpressionInterface = (function () { return function (comp) { function _thisLayerFunction(name) { var i = 0; var len = comp.layers.length; while (i < len) { if (comp.layers[i].nm === name || comp.layers[i].ind === name) { return comp.elements[i].layerInterface; ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/TextInterface.js
player/js/utils/expressions/TextInterface.js
const TextExpressionInterface = (function () { return function (elem) { var _sourceText; function _thisLayerFunction(name) { switch (name) { case 'ADBE Text Document': return _thisLayerFunction.sourceText; default: return null; } } Object.defineProperty(...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/ExpressionManager.js
player/js/utils/expressions/ExpressionManager.js
/* eslint-disable camelcase */ import { degToRads, BMMath, } from '../common'; import { createTypedArray, } from '../helpers/arrays'; import BezierFactory from '../../3rd_party/BezierEaser'; import shapePool from '../pooling/shape_pool'; import seedrandom from '../../3rd_party/seedrandom'; import propTypes from ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/ExpressionPropertyDecorator.js
player/js/utils/expressions/ExpressionPropertyDecorator.js
import { extendPrototype, } from '../functionExtensions'; import { createSizedArray, createTypedArray, } from '../helpers/arrays'; import ShapePropertyFactory from '../shapes/ShapeProperty'; import PropertyFactory from '../PropertyFactory'; import shapePool from '../pooling/shape_pool'; import { initialDefaultF...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/expressions/shapes/ShapePathInterface.js
player/js/utils/expressions/shapes/ShapePathInterface.js
import propertyGroupFactory from '../PropertyGroupFactory'; import PropertyInterface from '../PropertyInterface'; const ShapePathInterface = ( function () { return function pathInterfaceFactory(shape, view, propertyGroup) { var prop = view.sh; function interfaceFunction(val) { if (val === '...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/text/TextAnimatorProperty.js
player/js/utils/text/TextAnimatorProperty.js
import { addSaturationToRGB, addBrightnessToRGB, addHueToRGB, } from '../common'; import { extendPrototype, } from '../functionExtensions'; import DynamicPropertyContainer from '../helpers/dynamicProperties'; import { createSizedArray, } from '../helpers/arrays'; import PropertyFactory from '../PropertyFactor...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/text/LetterProps.js
player/js/utils/text/LetterProps.js
function LetterProps(o, sw, sc, fc, m, p) { this.o = o; this.sw = sw; this.sc = sc; this.fc = fc; this.m = m; this.p = p; this._mdf = { o: true, sw: !!sw, sc: !!sc, fc: !!fc, m: true, p: true, }; } LetterProps.prototype.update = function (o, sw, sc, fc, m, p) { this._mdf.o = f...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/text/TextSelectorProperty.js
player/js/utils/text/TextSelectorProperty.js
import { extendPrototype, } from '../functionExtensions'; import DynamicPropertyContainer from '../helpers/dynamicProperties'; import PropertyFactory from '../PropertyFactory'; import BezierFactory from '../../3rd_party/BezierEaser'; const TextSelectorProp = (function () { var max = Math.max; var min = Math.min;...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/text/TextAnimatorDataProperty.js
player/js/utils/text/TextAnimatorDataProperty.js
import { degToRads, } from '../common'; import PropertyFactory from '../PropertyFactory'; import TextSelectorProp from './TextSelectorProperty'; function TextAnimatorDataProperty(elem, animatorProps, container) { var defaultData = { propType: false }; var getProp = PropertyFactory.getProp; var textAnimatorAnim...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/text/TextProperty.js
player/js/utils/text/TextProperty.js
import { initialDefaultFrame, } from '../../main'; import getFontProperties from '../getFontProperties'; import FontManager from '../FontManager'; function TextProperty(elem, data) { this._frameId = initialDefaultFrame; this.pv = ''; this.v = ''; this.kf = false; this._isFirstFrame = true; this._mdf = fa...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/ZigZagModifier.js
player/js/utils/shapes/ZigZagModifier.js
import { extendPrototype, } from '../functionExtensions'; import PropertyFactory from '../PropertyFactory'; import shapePool from '../pooling/shape_pool'; import { ShapeModifier, } from './ShapeModifiers'; import { PolynomialBezier } from '../PolynomialBezier'; function ZigZagModifier() {} extendPrototype([ShapeMo...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/PuckerAndBloatModifier.js
player/js/utils/shapes/PuckerAndBloatModifier.js
import { extendPrototype, } from '../functionExtensions'; import PropertyFactory from '../PropertyFactory'; import shapePool from '../pooling/shape_pool'; import { ShapeModifier, } from './ShapeModifiers'; function PuckerAndBloatModifier() {} extendPrototype([ShapeModifier], PuckerAndBloatModifier); PuckerAndBloat...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/ShapeModifiers.js
player/js/utils/shapes/ShapeModifiers.js
import { extendPrototype, } from '../functionExtensions'; import DynamicPropertyContainer from '../helpers/dynamicProperties'; import { initialDefaultFrame, } from '../../main'; import shapeCollectionPool from '../pooling/shapeCollection_pool'; const ShapeModifiers = (function () { var ob = {}; var modifiers =...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/TrimModifier.js
player/js/utils/shapes/TrimModifier.js
import { extendPrototype, } from '../functionExtensions'; import PropertyFactory from '../PropertyFactory'; import shapePool from '../pooling/shape_pool'; import bez from '../bez'; import { ShapeModifier, } from './ShapeModifiers'; import segmentsLengthPool from '../pooling/segments_length_pool'; function TrimModi...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/MouseModifier.js
player/js/utils/shapes/MouseModifier.js
import { extendPrototype, } from '../functionExtensions'; import { ShapeModifiers, ShapeModifier, } from './ShapeModifiers'; function MouseModifier() {} extendPrototype([ShapeModifier], MouseModifier); MouseModifier.prototype.processKeys = function (forceRender) { if (this.elem.globalData.frameId === this.fram...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/RoundCornersModifier.js
player/js/utils/shapes/RoundCornersModifier.js
import { roundCorner, } from '../common'; import { extendPrototype, } from '../functionExtensions'; import PropertyFactory from '../PropertyFactory'; import shapePool from '../pooling/shape_pool'; import { ShapeModifier, } from './ShapeModifiers'; function RoundCornersModifier() {} extendPrototype([ShapeModifier...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/RepeaterModifier.js
player/js/utils/shapes/RepeaterModifier.js
import { extendPrototype, } from '../functionExtensions'; import PropertyFactory from '../PropertyFactory'; import Matrix from '../../3rd_party/transformation-matrix'; import TransformPropertyFactory from '../TransformProperty'; import { ShapeModifier, } from './ShapeModifiers'; function RepeaterModifier() {} exte...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/shapePathBuilder.js
player/js/utils/shapes/shapePathBuilder.js
const buildShapeString = function (pathNodes, length, closed, mat) { if (length === 0) { return ''; } var _o = pathNodes.o; var _i = pathNodes.i; var _v = pathNodes.v; var i; var shapeString = ' M' + mat.applyToPointStringified(_v[0][0], _v[0][1]); for (i = 1; i < length; i += 1) { shapeString +...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/ShapeProperty.js
player/js/utils/shapes/ShapeProperty.js
import { degToRads, roundCorner, bmMin, } from '../common'; import { extendPrototype, } from '../functionExtensions'; import DynamicPropertyContainer from '../helpers/dynamicProperties'; import PropertyFactory from '../PropertyFactory'; import BezierFactory from '../../3rd_party/BezierEaser'; import shapePool f...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/DashProperty.js
player/js/utils/shapes/DashProperty.js
import { extendPrototype, } from '../functionExtensions'; import DynamicPropertyContainer from '../helpers/dynamicProperties'; import { createSizedArray, createTypedArray, } from '../helpers/arrays'; import PropertyFactory from '../PropertyFactory'; function DashProperty(elem, data, renderer, container) { this...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/ShapePath.js
player/js/utils/shapes/ShapePath.js
import { createSizedArray, } from '../helpers/arrays'; import pointPool from '../pooling/point_pool'; function ShapePath() { this.c = false; this._length = 0; this._maxLength = 8; this.v = createSizedArray(this._maxLength); this.o = createSizedArray(this._maxLength); this.i = createSizedArray(this._maxLe...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/GradientProperty.js
player/js/utils/shapes/GradientProperty.js
import { extendPrototype, } from '../functionExtensions'; import DynamicPropertyContainer from '../helpers/dynamicProperties'; import { createTypedArray, } from '../helpers/arrays'; import PropertyFactory from '../PropertyFactory'; function GradientProperty(elem, data, container) { this.data = data; this.c = c...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/OffsetPathModifier.js
player/js/utils/shapes/OffsetPathModifier.js
import { roundCorner, } from '../common'; import { extendPrototype, } from '../functionExtensions'; import PropertyFactory from '../PropertyFactory'; import shapePool from '../pooling/shape_pool'; import { ShapeModifier, } from './ShapeModifiers'; import { PolynomialBezier, polarOffset, lineIntersection, ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/utils/shapes/ShapeCollection.js
player/js/utils/shapes/ShapeCollection.js
import { createSizedArray, } from '../helpers/arrays'; import shapePool from '../pooling/shape_pool'; function ShapeCollection() { this._length = 0; this._maxLength = 4; this.shapes = createSizedArray(this._maxLength); } ShapeCollection.prototype.addShape = function (shapeData) { if (this._length === this._...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/FootageElement.js
player/js/elements/FootageElement.js
import { extendPrototype, } from '../utils/functionExtensions'; import { getExpressionInterfaces, } from '../utils/common'; import RenderableElement from './helpers/RenderableElement'; import BaseElement from './BaseElement'; import FrameElement from './helpers/FrameElement'; function FootageElement(data, globalDa...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/AudioElement.js
player/js/elements/AudioElement.js
import { extendPrototype, } from '../utils/functionExtensions'; import PropertyFactory from '../utils/PropertyFactory'; import RenderableElement from './helpers/RenderableElement'; import BaseElement from './BaseElement'; import FrameElement from './helpers/FrameElement'; function AudioElement(data, globalData, comp...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/SolidElement.js
player/js/elements/SolidElement.js
import { extendPrototype, } from '../utils/functionExtensions'; import createNS from '../utils/helpers/svg_elements'; import IImageElement from './ImageElement'; function ISolidElement(data, globalData, comp) { this.initElement(data, globalData, comp); } extendPrototype([IImageElement], ISolidElement); ISolidElem...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/ImageElement.js
player/js/elements/ImageElement.js
import { extendPrototype, } from '../utils/functionExtensions'; import createNS from '../utils/helpers/svg_elements'; import BaseElement from './BaseElement'; import TransformElement from './helpers/TransformElement'; import SVGBaseElement from './svgElements/SVGBaseElement'; import HierarchyElement from './helpers/...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/CompElement.js
player/js/elements/CompElement.js
import { extendPrototype, } from '../utils/functionExtensions'; import BaseElement from './BaseElement'; import TransformElement from './helpers/TransformElement'; import HierarchyElement from './helpers/HierarchyElement'; import FrameElement from './helpers/FrameElement'; import RenderableDOMElement from './helpers/...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/BaseTextElement.js
player/js/elements/BaseTextElement.js
const BaseTextElement = function () { }; export default BaseTextElement;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/BaseElement.js
player/js/elements/BaseElement.js
import { createElementID, getExpressionInterfaces, } from '../utils/common'; import getBlendMode from '../utils/helpers/blendModes'; import EffectsManager from '../EffectsManager'; function BaseElement() { } BaseElement.prototype = { checkMasks: function () { if (!this.data.hasMask) { return false; ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/NullElement.js
player/js/elements/NullElement.js
import { extendPrototype, } from '../utils/functionExtensions'; import BaseElement from './BaseElement'; import TransformElement from './helpers/TransformElement'; import HierarchyElement from './helpers/HierarchyElement'; import FrameElement from './helpers/FrameElement'; function NullElement(data, globalData, comp...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/ShapeElement.js
player/js/elements/ShapeElement.js
import ProcessedElement from './helpers/shapes/ProcessedElement'; function IShapeElement() { } IShapeElement.prototype = { addShapeToModifiers: function (data) { var i; var len = this.shapeModifiers.length; for (i = 0; i < len; i += 1) { this.shapeModifiers[i].addShape(data); } }, isShapeI...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/TextElement.js
player/js/elements/TextElement.js
import LetterProps from '../utils/text/LetterProps'; import TextProperty from '../utils/text/TextProperty'; import TextAnimatorProperty from '../utils/text/TextAnimatorProperty'; import buildShapeString from '../utils/shapes/shapePathBuilder'; function ITextElement() { } ITextElement.prototype.initElement = function ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/FrameElement.js
player/js/elements/helpers/FrameElement.js
/** * @file * Handles element's layer frame update. * Checks layer in point and out point * */ function FrameElement() {} FrameElement.prototype = { /** * @function * Initializes frame related properties. * */ initFrame: function () { // set to true when inpoint is rendered this._...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/RenderableElement.js
player/js/elements/helpers/RenderableElement.js
function RenderableElement() { } RenderableElement.prototype = { initRenderable: function () { // layer's visibility related to inpoint and outpoint. Rename isVisible to isInRange this.isInRange = false; // layer's display state this.hidden = false; // If layer's transparency equals 0, it can be...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/TransformElement.js
player/js/elements/helpers/TransformElement.js
import Matrix from '../../3rd_party/transformation-matrix'; import TransformPropertyFactory from '../../utils/TransformProperty'; import effectTypes from '../../utils/helpers/effectTypes'; function TransformElement() {} TransformElement.prototype = { initTransform: function () { var mat = new Matrix(); this...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/HierarchyElement.js
player/js/elements/helpers/HierarchyElement.js
/** * @file * Handles AE's layer parenting property. * */ function HierarchyElement() {} HierarchyElement.prototype = { /** * @function * Initializes hierarchy properties * */ initHierarchy: function () { // element's parent list this.hierarchy = []; // if element is parent of ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/RenderableDOMElement.js
player/js/elements/helpers/RenderableDOMElement.js
import { extendPrototype, createProxyFunction, } from '../../utils/functionExtensions'; import RenderableElement from './RenderableElement'; function RenderableDOMElement() {} (function () { var _prototype = { initElement: function (data, globalData, comp) { this.initFrame(); this.initBaseData(d...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/SVGStyleData.js
player/js/elements/helpers/shapes/SVGStyleData.js
import createNS from '../../../utils/helpers/svg_elements'; function SVGStyleData(data, level) { this.data = data; this.type = data.ty; this.d = ''; this.lvl = level; this._mdf = false; this.closed = data.hd === true; this.pElem = createNS('path'); this.msElem = null; } SVGStyleData.prototype.reset = ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/SVGNoStyleData.js
player/js/elements/helpers/shapes/SVGNoStyleData.js
import DynamicPropertyContainer from '../../../utils/helpers/dynamicProperties'; import { extendPrototype, } from '../../../utils/functionExtensions'; function SVGNoStyleData(elem, data, styleOb) { this.initDynamicPropertyContainer(elem); this.getValue = this.iterateDynamicProperties; this.style = styleOb; } ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/SVGShapeData.js
player/js/elements/helpers/shapes/SVGShapeData.js
function SVGShapeData(transformers, level, shape) { this.caches = []; this.styles = []; this.transformers = transformers; this.lStr = ''; this.sh = shape; this.lvl = level; // TODO find if there are some cases where _isAnimated can be false. // For now, since shapes add up with other shapes. They have t...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/ShapeGroupData.js
player/js/elements/helpers/shapes/ShapeGroupData.js
import createNS from '../../../utils/helpers/svg_elements'; function ShapeGroupData() { this.it = []; this.prevViewData = []; this.gr = createNS('g'); } export default ShapeGroupData;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/CVShapeData.js
player/js/elements/helpers/shapes/CVShapeData.js
import ShapePropertyFactory from '../../../utils/shapes/ShapeProperty'; import SVGShapeData from './SVGShapeData'; function CVShapeData(element, data, styles, transformsManager) { this.styledShapes = []; this.tr = [0, 0, 0, 0, 0, 0]; var ty = 4; if (data.ty === 'rc') { ty = 5; } else if (data.ty === 'el'...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/SVGTransformData.js
player/js/elements/helpers/shapes/SVGTransformData.js
function SVGTransformData(mProps, op, container) { this.transform = { mProps: mProps, op: op, container: container, }; this.elements = []; this._isAnimated = this.transform.mProps.dynamicProperties.length || this.transform.op.effectsSequence.length; } export default SVGTransformData;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/SVGStrokeStyleData.js
player/js/elements/helpers/shapes/SVGStrokeStyleData.js
import { extendPrototype, } from '../../../utils/functionExtensions'; import DynamicPropertyContainer from '../../../utils/helpers/dynamicProperties'; import PropertyFactory from '../../../utils/PropertyFactory'; import DashProperty from '../../../utils/shapes/DashProperty'; function SVGStrokeStyleData(elem, data, s...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/SVGFillStyleData.js
player/js/elements/helpers/shapes/SVGFillStyleData.js
import DynamicPropertyContainer from '../../../utils/helpers/dynamicProperties'; import { extendPrototype, } from '../../../utils/functionExtensions'; import PropertyFactory from '../../../utils/PropertyFactory'; function SVGFillStyleData(elem, data, styleOb) { this.initDynamicPropertyContainer(elem); this.getV...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/SVGElementsRenderer.js
player/js/elements/helpers/shapes/SVGElementsRenderer.js
import Matrix from '../../../3rd_party/transformation-matrix'; import buildShapeString from '../../../utils/shapes/shapePathBuilder'; import { bmFloor } from '../../../utils/common'; const SVGElementsRenderer = (function () { var _identityMatrix = new Matrix(); var _matrixHelper = new Matrix(); var ob = { c...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/SVGGradientFillStyleData.js
player/js/elements/helpers/shapes/SVGGradientFillStyleData.js
import { degToRads, createElementID, } from '../../../utils/common'; import { getLocationHref } from '../../../main'; import { extendPrototype, } from '../../../utils/functionExtensions'; import DynamicPropertyContainer from '../../../utils/helpers/dynamicProperties'; import PropertyFactory from '../../../utils/P...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/ShapeTransformManager.js
player/js/elements/helpers/shapes/ShapeTransformManager.js
import Matrix from '../../../3rd_party/transformation-matrix'; function ShapeTransformManager() { this.sequences = {}; this.sequenceList = []; this.transform_key_count = 0; } ShapeTransformManager.prototype = { addTransformSequence: function (transforms) { var i; var len = transforms.length; var k...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/helpers/shapes/ProcessedElement.js
player/js/elements/helpers/shapes/ProcessedElement.js
function ProcessedElement(element, position) { this.elem = element; this.pos = position; } export default ProcessedElement;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false