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/elements/helpers/shapes/ShapeElement.js
player/js/elements/helpers/shapes/ShapeElement.js
function ShapeElementData() { } export default ShapeElementData;
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/SVGGradientStrokeStyleData.js
player/js/elements/helpers/shapes/SVGGradientStrokeStyleData.js
import { extendPrototype, } from '../../../utils/functionExtensions'; import DynamicPropertyContainer from '../../../utils/helpers/dynamicProperties'; import PropertyFactory from '../../../utils/PropertyFactory'; import DashProperty from '../../../utils/shapes/DashProperty'; import SVGGradientFillStyleData from './SV...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/SVGTextElement.js
player/js/elements/svgElements/SVGTextElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import { createSizedArray, } from '../../utils/helpers/arrays'; import createNS from '../../utils/helpers/svg_elements'; import BaseElement from '../BaseElement'; import TransformElement from '../helpers/TransformElement'; import SVGBaseElement from...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/SVGBaseElement.js
player/js/elements/svgElements/SVGBaseElement.js
import { getLocationHref } from '../../main'; import { createElementID, } from '../../utils/common'; import createNS from '../../utils/helpers/svg_elements'; import MaskElement from '../../mask'; import filtersFactory from '../../utils/filters'; import featureSupport from '../../utils/featureSupport'; import SVGEffec...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/SVGCompElement.js
player/js/elements/svgElements/SVGCompElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import { createSizedArray, } from '../../utils/helpers/arrays'; import PropertyFactory from '../../utils/PropertyFactory'; import SVGRendererBase from '../../renderers/SVGRendererBase'; // eslint-disable-line import SVGBaseElement from './SVGBaseEle...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/SVGEffects.js
player/js/elements/svgElements/SVGEffects.js
import { getLocationHref } from '../../main'; import { createElementID, } from '../../utils/common'; import filtersFactory from '../../utils/filters'; var registeredEffects = {}; var idPrefix = 'filter_result_'; function SVGEffects(elem) { var i; var source = 'SourceGraphic'; var len = elem.data.ef ? elem.dat...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/SVGShapeElement.js
player/js/elements/svgElements/SVGShapeElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import { getLocationHref } from '../../main'; import ShapePropertyFactory from '../../utils/shapes/ShapeProperty'; import BaseElement from '../BaseElement'; import TransformElement from '../helpers/TransformElement'; import SVGBaseElement from './SVGB...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/SVGEffectsPlaceholder.js
player/js/elements/svgElements/SVGEffectsPlaceholder.js
function SVGEffects() {} export default SVGEffects;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/effects/SVGGaussianBlurEffect.js
player/js/elements/svgElements/effects/SVGGaussianBlurEffect.js
import createNS from '../../../utils/helpers/svg_elements'; function SVGGaussianBlurEffect(filter, filterManager, elem, id) { // Outset the filter region by 100% on all sides to accommodate blur expansion. filter.setAttribute('x', '-100%'); filter.setAttribute('y', '-100%'); filter.setAttribute('width', '300%'...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/effects/SVGTritoneFilter.js
player/js/elements/svgElements/effects/SVGTritoneFilter.js
import createNS from '../../../utils/helpers/svg_elements'; function SVGTritoneFilter(filter, filterManager, elem, id) { this.filterManager = filterManager; var feColorMatrix = createNS('feColorMatrix'); feColorMatrix.setAttribute('type', 'matrix'); feColorMatrix.setAttribute('color-interpolation-filters', 'li...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/effects/SVGComposableEffect.js
player/js/elements/svgElements/effects/SVGComposableEffect.js
import createNS from '../../../utils/helpers/svg_elements'; function SVGComposableEffect() { } SVGComposableEffect.prototype = { createMergeNode: (resultId, ins) => { var feMerge = createNS('feMerge'); feMerge.setAttribute('result', resultId); var feMergeNode; var i; for (i = 0; i < ins.length; ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/effects/SVGFillFilter.js
player/js/elements/svgElements/effects/SVGFillFilter.js
import createNS from '../../../utils/helpers/svg_elements'; function SVGFillFilter(filter, filterManager, elem, id) { this.filterManager = filterManager; var feColorMatrix = createNS('feColorMatrix'); feColorMatrix.setAttribute('type', 'matrix'); feColorMatrix.setAttribute('color-interpolation-filters', 'sRGB'...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/effects/SVGDropShadowEffect.js
player/js/elements/svgElements/effects/SVGDropShadowEffect.js
import { degToRads, rgbToHex, } from '../../../utils/common'; import createNS from '../../../utils/helpers/svg_elements'; import SVGComposableEffect from './SVGComposableEffect'; import { extendPrototype, } from '../../../utils/functionExtensions'; function SVGDropShadowEffect(filter, filterManager, elem, id, so...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/effects/SVGMatte3Effect.js
player/js/elements/svgElements/effects/SVGMatte3Effect.js
import { createElementID, } from '../../../utils/common'; import createNS from '../../../utils/helpers/svg_elements'; var _svgMatteSymbols = []; function SVGMatte3Effect(filterElem, filterManager, elem) { this.initialized = false; this.filterManager = filterManager; this.filterElem = filterElem; this.elem =...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/effects/SVGProLevelsFilter.js
player/js/elements/svgElements/effects/SVGProLevelsFilter.js
import createNS from '../../../utils/helpers/svg_elements'; function SVGProLevelsFilter(filter, filterManager, elem, id) { this.filterManager = filterManager; var effectElements = this.filterManager.effectElements; var feComponentTransfer = createNS('feComponentTransfer'); // Red if (effectElements[10].p.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/svgElements/effects/SVGTintEffect.js
player/js/elements/svgElements/effects/SVGTintEffect.js
import createNS from '../../../utils/helpers/svg_elements'; import SVGComposableEffect from './SVGComposableEffect'; import { extendPrototype, } from '../../../utils/functionExtensions'; var linearFilterValue = '0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0'; function SVGTintFilte...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/effects/SVGTransformEffect.js
player/js/elements/svgElements/effects/SVGTransformEffect.js
import TransformEffect from '../../../effects/TransformEffect'; import { extendPrototype } from '../../../utils/functionExtensions'; function SVGTransformEffect(_, filterManager) { this.init(filterManager); } extendPrototype([TransformEffect], SVGTransformEffect); export default SVGTransformEffect;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/svgElements/effects/SVGStrokeEffect.js
player/js/elements/svgElements/effects/SVGStrokeEffect.js
import { getLocationHref } from '../../../main'; import { createElementID, bmFloor, } from '../../../utils/common'; import createNS from '../../../utils/helpers/svg_elements'; function SVGStrokeEffect(fil, filterManager, elem) { this.initialized = false; this.filterManager = filterManager; this.elem = elem; ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/htmlElements/HSolidElement.js
player/js/elements/htmlElements/HSolidElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import createNS from '../../utils/helpers/svg_elements'; import createTag from '../../utils/helpers/html_elements'; import BaseElement from '../BaseElement'; import TransformElement from '../helpers/TransformElement'; import HierarchyElement from '../...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/htmlElements/HShapeElement.js
player/js/elements/htmlElements/HShapeElement.js
import { bmPow, bmMax, bmMin, bmSqrt, } from '../../utils/common'; import { extendPrototype, } from '../../utils/functionExtensions'; import createNS from '../../utils/helpers/svg_elements'; import RenderableElement from '../helpers/RenderableElement'; import BaseElement from '../BaseElement'; import Transfor...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/htmlElements/HEffects.js
player/js/elements/htmlElements/HEffects.js
function HEffects() { } HEffects.prototype.renderFrame = 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/htmlElements/HBaseElement.js
player/js/elements/htmlElements/HBaseElement.js
import { styleDiv, } from '../../utils/common'; import createNS from '../../utils/helpers/svg_elements'; import createTag from '../../utils/helpers/html_elements'; import BaseRenderer from '../../renderers/BaseRenderer'; import SVGBaseElement from '../svgElements/SVGBaseElement'; import CVEffects from '../canvasEleme...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/htmlElements/HImageElement.js
player/js/elements/htmlElements/HImageElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import createNS from '../../utils/helpers/svg_elements'; import RenderableElement from '../helpers/RenderableElement'; import BaseElement from '../BaseElement'; import TransformElement from '../helpers/TransformElement'; import HierarchyElement from '...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/htmlElements/HTextElement.js
player/js/elements/htmlElements/HTextElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import { createSizedArray, } from '../../utils/helpers/arrays'; import createNS from '../../utils/helpers/svg_elements'; import createTag from '../../utils/helpers/html_elements'; import BaseElement from '../BaseElement'; import TransformElement fro...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/htmlElements/HCameraElement.js
player/js/elements/htmlElements/HCameraElement.js
import { degToRads, } from '../../utils/common'; import { extendPrototype, } from '../../utils/functionExtensions'; import PropertyFactory from '../../utils/PropertyFactory'; import BaseElement from '../BaseElement'; import HierarchyElement from '../helpers/HierarchyElement'; import FrameElement from '../helpers/Fr...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/htmlElements/HCompElement.js
player/js/elements/htmlElements/HCompElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import { createSizedArray, } from '../../utils/helpers/arrays'; import PropertyFactory from '../../utils/PropertyFactory'; import HybridRendererBase from '../../renderers/HybridRendererBase'; import HBaseElement from './HBaseElement'; import ICompEl...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVCompElement.js
player/js/elements/canvasElements/CVCompElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import { createSizedArray, } from '../../utils/helpers/arrays'; import PropertyFactory from '../../utils/PropertyFactory'; import CanvasRendererBase from '../../renderers/CanvasRendererBase'; import CVBaseElement from './CVBaseElement'; import IComp...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVImageElement.js
player/js/elements/canvasElements/CVImageElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import createTag from '../../utils/helpers/html_elements'; import RenderableElement from '../helpers/RenderableElement'; import BaseElement from '../BaseElement'; import TransformElement from '../helpers/TransformElement'; import HierarchyElement from...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVMaskElement.js
player/js/elements/canvasElements/CVMaskElement.js
import { createSizedArray, } from '../../utils/helpers/arrays'; import ShapePropertyFactory from '../../utils/shapes/ShapeProperty'; import MaskElement from '../../mask'; function CVMaskElement(data, element) { this.data = data; this.element = element; this.masksProperties = this.data.masksProperties || []; ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVBaseElement.js
player/js/elements/canvasElements/CVBaseElement.js
import assetManager from '../../utils/helpers/assetManager'; import getBlendMode from '../../utils/helpers/blendModes'; import Matrix from '../../3rd_party/transformation-matrix'; import CVEffects from './CVEffects'; import CVMaskElement from './CVMaskElement'; import effectTypes from '../../utils/helpers/effectTypes';...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVContextData.js
player/js/elements/canvasElements/CVContextData.js
import { createTypedArray, } from '../../utils/helpers/arrays'; import Matrix from '../../3rd_party/transformation-matrix'; function CanvasContext() { this.opacity = -1; this.transform = createTypedArray('float32', 16); this.fillStyle = ''; this.strokeStyle = ''; this.lineWidth = ''; this.lineCap = ''; ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVEffects.js
player/js/elements/canvasElements/CVEffects.js
var registeredEffects = {}; function CVEffects(elem) { var i; var len = elem.data.ef ? elem.data.ef.length : 0; this.filters = []; var filterManager; for (i = 0; i < len; i += 1) { filterManager = null; var type = elem.data.ef[i].ty; if (registeredEffects[type]) { var Effect = registeredEff...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVShapeElement.js
player/js/elements/canvasElements/CVShapeElement.js
import { degToRads, bmFloor, } from '../../utils/common'; import { extendPrototype, } from '../../utils/functionExtensions'; import PropertyFactory from '../../utils/PropertyFactory'; import RenderableElement from '../helpers/RenderableElement'; import BaseElement from '../BaseElement'; import TransformElement f...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVCompBaseElement.js
player/js/elements/canvasElements/CVCompBaseElement.js
import BaseRenderer from '../../renderers/BaseRenderer'; import { extendPrototype, } from '../../utils/functionExtensions'; function CVCompBaseElement() { } extendPrototype([BaseRenderer], CVCompBaseElement); export default CVCompBaseElement;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVSolidElement.js
player/js/elements/canvasElements/CVSolidElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import RenderableElement from '../helpers/RenderableElement'; import BaseElement from '../BaseElement'; import TransformElement from '../helpers/TransformElement'; import HierarchyElement from '../helpers/HierarchyElement'; import FrameElement from '....
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/CVTextElement.js
player/js/elements/canvasElements/CVTextElement.js
import { extendPrototype, } from '../../utils/functionExtensions'; import { createSizedArray, } from '../../utils/helpers/arrays'; import createTag from '../../utils/helpers/html_elements'; import RenderableElement from '../helpers/RenderableElement'; import BaseElement from '../BaseElement'; import TransformElemen...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/elements/canvasElements/effects/CVTransformEffect.js
player/js/elements/canvasElements/effects/CVTransformEffect.js
import TransformEffect from '../../../effects/TransformEffect'; import { extendPrototype } from '../../../utils/functionExtensions'; function CVTransformEffect(effectsManager) { this.init(effectsManager); } extendPrototype([TransformEffect], CVTransformEffect); export default CVTransformEffect;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/effects/EffectsManagerPlaceholder.js
player/js/effects/EffectsManagerPlaceholder.js
function EffectsManager() { this.effectElements = []; } export default EffectsManager;
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/effects/TransformEffect.js
player/js/effects/TransformEffect.js
import effectTypes from '../utils/helpers/effectTypes'; import Matrix from '../3rd_party/transformation-matrix'; import { degToRads } from '../utils/common'; function TransformEffect() { } TransformEffect.prototype.init = function (effectsManager) { this.effectsManager = effectsManager; this.type = effectTypes.TR...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/effects/SliderEffect.js
player/js/effects/SliderEffect.js
import PropertyFactory from '../utils/PropertyFactory'; function SliderEffect(data, elem, container) { this.p = PropertyFactory.getProp(elem, data.v, 0, 0, container); } function AngleEffect(data, elem, container) { this.p = PropertyFactory.getProp(elem, data.v, 0, 0, container); } function ColorEffect(data, elem,...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/modules/html_light.js
player/js/modules/html_light.js
import lottie from './main'; import { ShapeModifiers } from '../utils/shapes/ShapeModifiers'; import TrimModifier from '../utils/shapes/TrimModifier'; import PuckerAndBloatModifier from '../utils/shapes/PuckerAndBloatModifier'; import RepeaterModifier from '../utils/shapes/RepeaterModifier'; import RoundCornersModifier...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/modules/svg_light.js
player/js/modules/svg_light.js
import lottie from './main'; import { ShapeModifiers } from '../utils/shapes/ShapeModifiers'; import TrimModifier from '../utils/shapes/TrimModifier'; import PuckerAndBloatModifier from '../utils/shapes/PuckerAndBloatModifier'; import RepeaterModifier from '../utils/shapes/RepeaterModifier'; import RoundCornersModifier...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/modules/main.js
player/js/modules/main.js
import { setLocationHref, setWebWorker } from '../main'; import animationManager from '../animation/AnimationManager'; import { setDefaultCurveSegments, getDefaultCurveSegments, roundValues, setIdPrefix, setSubframeEnabled, setExpressionsPlugin, } from '../utils/common'; import PropertyFactory from '../util...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/modules/full_worker.js
player/js/modules/full_worker.js
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/modules/canvas_light.js
player/js/modules/canvas_light.js
import lottie from './main'; import { ShapeModifiers } from '../utils/shapes/ShapeModifiers'; import TrimModifier from '../utils/shapes/TrimModifier'; import PuckerAndBloatModifier from '../utils/shapes/PuckerAndBloatModifier'; import RepeaterModifier from '../utils/shapes/RepeaterModifier'; import RoundCornersModifier...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/modules/full.js
player/js/modules/full.js
import lottie from './main'; import { setExpressionsPlugin, setExpressionInterfaces, } from '../utils/common'; import { ShapeModifiers } from '../utils/shapes/ShapeModifiers'; import TrimModifier from '../utils/shapes/TrimModifier'; import PuckerAndBloatModifier from '../utils/shapes/PuckerAndBloatModifier'; import...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/modules/svg.js
player/js/modules/svg.js
import lottie from './svg_light'; import { setExpressionsPlugin, setExpressionInterfaces, } from '../utils/common'; import Expressions from '../utils/expressions/Expressions'; import interfacesProvider from '../utils/expressions/InterfacesProvider'; import expressionPropertyDecorator from '../utils/expressions/Expr...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/modules/html.js
player/js/modules/html.js
import lottie from './html_light'; import { setExpressionsPlugin, setExpressionInterfaces, } from '../utils/common'; import Expressions from '../utils/expressions/Expressions'; import interfacesProvider from '../utils/expressions/InterfacesProvider'; import expressionPropertyDecorator from '../utils/expressions/Exp...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/modules/canvas.js
player/js/modules/canvas.js
import lottie from './canvas_light'; import { setExpressionsPlugin, setExpressionInterfaces, } from '../utils/common'; import Expressions from '../utils/expressions/Expressions'; import interfacesProvider from '../utils/expressions/InterfacesProvider'; import expressionPropertyDecorator from '../utils/expressions/E...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/3rd_party/seedrandom.js
player/js/3rd_party/seedrandom.js
/* eslint-disable */ /* Copyright 2014 David Bau. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/3rd_party/howler.js
player/js/3rd_party/howler.js
/* eslint-disable */ /*! howler.js v2.2.0 | (c) 2013-2020, James Simpson of GoldFire Studios | MIT License | howlerjs.com */ !function () { 'use strict'; var e = function () { this.init(); }; e.prototype = { init: function () { var e = this || n; return e._counter = 1e3, e._html5AudioPool = [], e.html5PoolSize = 10, e....
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
true
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/3rd_party/BezierEaser.js
player/js/3rd_party/BezierEaser.js
/* eslint-disable */ const BezierFactory = (function () { /** * BezierEasing - use bezier curve for transition easing function * by Gaëtan Renaudeau 2014 - 2015 – MIT License * * Credits: is based on Firefox's nsSMILKeySpline.cpp * Usage: * var spline = BezierEasing([ 0.25, 0.1, 0.25, 1....
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/3rd_party/transformation-matrix.js
player/js/3rd_party/transformation-matrix.js
import { createTypedArray, } from '../utils/helpers/arrays'; /*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. */ /** * 2D transformation matrix object initialized with identity matrix. * * The matrix can s...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/animation/AnimationItemWorkerOverride.js
player/js/animation/AnimationItemWorkerOverride.js
import AnimationItem from './AnimationItem'; import CanvasRenderer from '../renderers/CanvasRenderer'; import dataManager from '../utils/DataManager'; import { getExpressionsPlugin, } from '../utils/common'; AnimationItem.prototype.setParams = function (params) { if (params.context) { this.context = params.con...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/animation/AnimationManager.js
player/js/animation/AnimationManager.js
import createTag from '../utils/helpers/html_elements'; import AnimationItem from './AnimationItem'; const animationManager = (function () { var moduleOb = {}; var registeredAnimations = []; var initTime = 0; var len = 0; var playingAnimationsNum = 0; var _stopped = true; var _isFrozen = false; functi...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/animation/AnimationItem.js
player/js/animation/AnimationItem.js
import { extendPrototype, } from '../utils/functionExtensions'; import audioControllerFactory from '../utils/audio/AudioController'; import { getSubframeEnabled, BMEnterFrameEvent, BMCompleteEvent, BMCompleteLoopEvent, BMSegmentStartEvent, BMDestroyEvent, BMRenderFrameErrorEvent, BMConfigErrorEvent, ...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/player/js/animation/AnimationManagerWorkerOverride.js
player/js/animation/AnimationManagerWorkerOverride.js
import AnimationItem from './AnimationItem'; const animationManager = (function () { var moduleOb = {}; var registeredAnimations = []; var initTime = 0; var len = 0; var playingAnimationsNum = 0; var _stopped = true; var _isFrozen = false; function removeElement(ev) { var i = 0; var animItem =...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
false
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/demo/grunt/data.js
demo/grunt/data.js
var animData = {"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":0,"ty":4,"ks":{"o":{"k":100},"r":{"k":0},"p":{"k":[113.5,404,0]},"a":{"k":[0,0,0]},"s":{"k":[99.832,96.543,100]}},"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","closed":true,"ks":{"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"n":"0p667_1_0p333_0","t...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
true
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/demo/banner/data.js
demo/banner/data.js
(function(window){function Matrix(){}function matrixManagerFunction(){var t=new Matrix,e=function(e,s,i,a,r){return t.reset().translate(a,r).rotate(e).scale(s,i).toCSS()},s=function(t){return e(t.tr.r[2],t.tr.s[0],t.tr.s[1],t.tr.p[0],t.tr.p[1])};return{getMatrix:s}}function roundValues(t){bm_rnd=t?Math.round:function(t...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
true
airbnb/lottie-web
https://github.com/airbnb/lottie-web/blob/bede03d25d232826e0c9dca1733d542d8a7754fb/demo/catrim/data.js
demo/catrim/data.js
(function(window){function Matrix(){}function matrixManagerFunction(){var t=new Matrix,e=function(e,s,i,a,r){return t.reset().translate(a,r).rotate(e).scale(s,i).toCSS()},s=function(t){return e(t.tr.r[2],t.tr.s[0],t.tr.s[1],t.tr.p[0],t.tr.p[1])};return{getMatrix:s}}function roundValues(t){bm_rnd=t?Math.round:function(t...
javascript
MIT
bede03d25d232826e0c9dca1733d542d8a7754fb
2026-01-04T15:01:04.893078Z
true
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/.eslintrc.js
.eslintrc.js
module.exports = { env: { browser: true, es6: true, node: true }, extends: [ "eslint:recommended", "standard" ], parserOptions: { ecmaVersion: 2015, sourceType: "module" }, plugins: [ "@typescript-eslint" ], rules: { "no-var": "warn", "init-declarations": ["erro...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/.eslintrc.lang.js
.eslintrc.lang.js
module.exports = { env: { browser: true, es6: true, node: true }, parserOptions: { ecmaVersion: 2015, sourceType: "module" }, // no rules, this file exists only to lint the grammars and check // that no ES2018 or newer syntax has crept in by accident rules: {} };
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/build_node.js
tools/build_node.js
const fs = require("fs").promises; const fss = require("fs"); const config = require("./build_config.js"); const glob = require("glob-promise"); const { getLanguages } = require("./lib/language.js"); const { install, mkdir, installCleanCSS } = require("./lib/makestuff.js"); const { filter } = require("./lib/dependencie...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/buildSizeReport.js
tools/buildSizeReport.js
#!/usr/bin/env node /* * Input: path to 2 build directories to compare. * Output: markdown report of size changes. */ const fs = require("fs"); const path = require("path"); const zlib = require("zlib"); const glob = require("glob"); // https://stackoverflow.com/questions/15900485/correct-way-to-convert-size-in-b...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/build_cdn.js
tools/build_cdn.js
const fs = require("fs").promises; const fss = require("fs"); const glob = require("glob"); const zlib = require('zlib'); const { getLanguages } = require("./lib/language.js"); const { filter } = require("./lib/dependencies.js"); const config = require("./build_config.js"); const { install, installCleanCSS, mkdir } = r...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/perf.js
tools/perf.js
#!/usr/bin/env node const execSync = require('child_process').execSync; const fs = require('fs'); const { performance } = require('perf_hooks'); const build = () => { console.log(`Starting perf tests, building hljs ... `); // build node.js version of library with CJS and ESM libraries execSync('npm run build', {...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/build_browser.js
tools/build_browser.js
const _ = require('lodash'); const fs = require("fs").promises; const fss = require("fs"); const glob = require("glob-promise"); const path = require("path"); const zlib = require('zlib'); const Terser = require("terser"); const child_process = require('child_process'); const { getLanguages } = require("./lib/language....
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/build.js
tools/build.js
#!/usr/bin/env node // For the basic introductions on using this build script, see: // // <https://highlightjs.readthedocs.org/en/latest/building-testing.html> // // Otherwise, lets explain what each build target does in more detail, for // those that wish to know before running this script. // // Build Targets // ----...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/build_config.js
tools/build_config.js
const cjsPlugin = require('@rollup/plugin-commonjs'); const jsonPlugin = require('@rollup/plugin-json'); const { nodeResolve } = require('@rollup/plugin-node-resolve'); module.exports = { build_dir: "build", copyrightYears: `2006-${new Date().getFullYear()}`, clean_css: { level: 2 }, clean_css_beautify: ...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/checkTheme.js
tools/checkTheme.js
#!/usr/bin/env node const fs = require("fs"); const css = require("css"); const wcagContrast = require("wcag-contrast"); const Table = require('cli-table'); const csscolors = require('css-color-names'); require("@colors/colors"); const CODE = { name: "program code", scopes: [ "comment", "keyword", "bu...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/checkAutoDetect.js
tools/checkAutoDetect.js
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const hljs = require('../build/lib/index.js'); const path = require('path'); const utility = require('../test/utility.js'); const Table = require('cli-table'); const colors = require('@colors/colors/safe.js'); const resultTable = new Table({ head: ['expect...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/vendor/jquery-2.1.1.min.js
tools/vendor/jquery-2.1.1.min.js
/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof windo...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
true
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/lib/external_language.js
tools/lib/external_language.js
const fs = require("fs"); const fsProm = require("fs").promises; const glob = require("glob-promise"); const path = require("path"); const MODULE_DEFINER = /module\.exports\.definer\s*=/; class LanguagePackage { constructor(packageDir) { this.dir = packageDir; } // check for language modules in /src/langua...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/lib/language.js
tools/lib/language.js
const fs = require("fs"); const Terser = require("terser"); const glob = require("glob"); const path = require("path"); const build_config = require("../build_config.js"); const packageJSON = require("../../package.json"); const REQUIRES_REGEX = /\/\*.*?Requires: (.*?)\r?\n/s; const CATEGORY_REGEX = /\/\*.*?Category: ...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/lib/makestuff.js
tools/lib/makestuff.js
const fs = require("fs"); const CleanCSS = require('clean-css'); const path = require('path'); const _ = require('lodash'); const config = require("../build_config.js"); async function clean(directory) { const del = await import('del'); del.deleteSync([directory]); fs.mkdirSync(directory, { recursive: true }); }...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/lib/dependencies.js
tools/lib/dependencies.js
const DependencyResolver = require('dependency-resolver'); /** * Reorders languages, moving dependencies above the languages * that depend on them. * * @param {array<Language>} languages list of languages to be reordered * @returns {array<Language>} ordered list of languages */ const reorderDependencies = (langu...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/tools/lib/bundling.js
tools/lib/bundling.js
const rollup = require('rollup'); const crypto = require("crypto"); async function rollupCode(inputOptions, outputOptions) { const output = await generate(inputOptions, outputOptions); return output[0].code; } async function generate(inputOptions, outputOptions) { const bundle = await rollup.rollup(inputOptions...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/stub.js
src/stub.js
import HighlightJS from "./highlight.js"; // @ts-ignore import * as builtIns from "builtInLanguages"; const hljs = HighlightJS; for (const key of Object.keys(builtIns)) { // our builtInLanguages Rollup plugin has to use `_` to allow identifiers to be // compatible with `export` naming conventions, so we need to c...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/highlight.js
src/highlight.js
/* Syntax highlighting with language autodetection. https://highlightjs.org/ */ // @ts-ignore import deepFreeze from 'deep-freeze-es6'; import Response from './lib/response.js'; import TokenTreeEmitter from './lib/token_tree.js'; import * as regex from './lib/regex.js'; import * as utils from './lib/utils.js'; import ...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
true
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/lisp.js
src/languages/lisp.js
/* Language: Lisp Description: Generic lisp syntax Author: Vasily Polovnyov <vast@whiteants.net> Category: lisp */ export default function(hljs) { const LISP_IDENT_RE = '[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*'; const MEC_RE = '\\|[^]*?\\|'; const LISP_SIMPLE_NUMBER_RE = '(-|\\+)?\\d+(\\.\\d+|\\/\\d+...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/oxygene.js
src/languages/oxygene.js
/* Language: Oxygene Author: Carlo Kok <ck@remobjects.com> Description: Oxygene is built on the foundation of Object Pascal, revamped and extended to be a modern language for the twenty-first century. Website: https://www.elementscompiler.com/elements/default.aspx Category: build-system */ export default function(hljs...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/rsl.js
src/languages/rsl.js
/* Language: RenderMan RSL Author: Konstantin Evdokimenko <qewerty@gmail.com> Contributors: Shuen-Huei Guan <drake.guan@gmail.com> Website: https://renderman.pixar.com/resources/RenderMan_20/shadingLanguage.html Category: graphics */ export default function(hljs) { const BUILT_INS = [ "abs", "acos", "amb...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/scala.js
src/languages/scala.js
/* Language: Scala Category: functional Author: Jan Berkel <jan.berkel@gmail.com> Contributors: Erik Osheim <d_m@plastic-idolatry.com> Website: https://www.scala-lang.org */ export default function(hljs) { const regex = hljs.regex; const ANNOTATION = { className: 'meta', begin: '@[A-Za-z]+' }; // used...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/css.js
src/languages/css.js
/* Language: CSS Category: common, css, web Website: https://developer.mozilla.org/en-US/docs/Web/CSS */ // @ts-ignore import * as css from "./lib/css-shared.js"; /** @type LanguageFn */ export default function(hljs) { const regex = hljs.regex; const modes = css.MODES(hljs); const VENDOR_PREFIX = { begin: /-(we...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/mipsasm.js
src/languages/mipsasm.js
/* Language: MIPS Assembly Author: Nebuleon Fumika <nebuleon.fumika@gmail.com> Description: MIPS Assembly (up to MIPS32R2) Website: https://en.wikipedia.org/wiki/MIPS_architecture Category: assembler */ export default function(hljs) { // local labels: %?[FB]?[AT]?\d{1,2}\w+ return { name: 'MIPS Assembly', ...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/typescript.js
src/languages/typescript.js
/* Language: TypeScript Author: Panu Horsmalahti <panu.horsmalahti@iki.fi> Contributors: Ike Ku <dempfi@yahoo.com> Description: TypeScript is a strict superset of JavaScript Website: https://www.typescriptlang.org Category: common, scripting */ import * as ECMAScript from "./lib/ecmascript.js"; import javascript from ...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/sas.js
src/languages/sas.js
/* Language: SAS Author: Mauricio Caceres <mauricio.caceres.bravo@gmail.com> Description: Syntax Highlighting for SAS Category: scientific */ /** @type LanguageFn */ export default function(hljs) { const regex = hljs.regex; // Data step and PROC SQL statements const SAS_KEYWORDS = [ "do", "if", "then...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/mizar.js
src/languages/mizar.js
/* Language: Mizar Description: The Mizar Language is a formal language derived from the mathematical vernacular. Author: Kelley van Evert <kelleyvanevert@gmail.com> Website: http://mizar.org/language/ Category: scientific */ export default function(hljs) { return { name: 'Mizar', keywords: 'environ vo...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/isbl.js
src/languages/isbl.js
/* Language: ISBL Author: Dmitriy Tarasov <dimatar@gmail.com> Description: built-in language DIRECTUM Category: enterprise */ export default function(hljs) { // Определение идентификаторов const UNDERSCORE_IDENT_RE = "[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*"; // Определение имен функций const FUNCTION_NAME_ID...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
true
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/taggerscript.js
src/languages/taggerscript.js
/* Language: Tagger Script Author: Philipp Wolfer <ph.wolfer@gmail.com> Description: Syntax Highlighting for the Tagger Script as used by MusicBrainz Picard. Website: https://picard.musicbrainz.org Category: scripting */ export default function(hljs) { const NOOP = { className: 'comment', begin: /\$noop\(/, ...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/scss.js
src/languages/scss.js
/* Language: SCSS Description: Scss is an extension of the syntax of CSS. Author: Kurt Emch <kurt@kurtemch.com> Website: https://sass-lang.com Category: common, css, web */ import * as css from "./lib/css-shared.js"; /** @type LanguageFn */ export default function(hljs) { const modes = css.MODES(hljs); const PSEU...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/smali.js
src/languages/smali.js
/* Language: Smali Author: Dennis Titze <dennis.titze@gmail.com> Description: Basic Smali highlighting Website: https://github.com/JesusFreke/smali Category: assembler */ export default function(hljs) { const smali_instr_low_prio = [ 'add', 'and', 'cmp', 'cmpg', 'cmpl', 'const', 'div', ...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/nim.js
src/languages/nim.js
/* Language: Nim Description: Nim is a statically typed compiled systems programming language. Website: https://nim-lang.org Category: system */ export default function(hljs) { const TYPES = [ "int", "int8", "int16", "int32", "int64", "uint", "uint8", "uint16", "uint32", "uint...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/rust.js
src/languages/rust.js
/* Language: Rust Author: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com> Contributors: Roman Shmatov <romanshmatov@gmail.com>, Kasper Andersen <kma_untrusted@protonmail.com> Website: https://www.rust-lang.org Category: common, system */ /** @type LanguageFn */ export default function(hljs) { const regex = hljs.r...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/python-repl.js
src/languages/python-repl.js
/* Language: Python REPL Requires: python.js Author: Josh Goebel <hello@joshgoebel.com> Category: common */ export default function(hljs) { return { aliases: [ 'pycon' ], contains: [ { className: 'meta.prompt', starts: { // a space separates the REPL prefix from the actual cod...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/yaml.js
src/languages/yaml.js
/* Language: YAML Description: Yet Another Markdown Language Author: Stefan Wienert <stwienert@gmail.com> Contributors: Carl Baxter <carl@cbax.tech> Requires: ruby.js Website: https://yaml.org Category: common, config */ export default function(hljs) { const LITERALS = 'true false yes no null'; // YAML spec allows...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/sql.js
src/languages/sql.js
/* Language: SQL Website: https://en.wikipedia.org/wiki/SQL Category: common, database */ /* Goals: SQL is intended to highlight basic/common SQL keywords and expressions - If pretty much every single SQL server includes supports, then it's a canidate. - It is NOT intended to include tons of vendor specific key...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/pgsql.js
src/languages/pgsql.js
/* Language: PostgreSQL and PL/pgSQL Author: Egor Rogov (e.rogov@postgrespro.ru) Website: https://www.postgresql.org/docs/11/sql.html Description: This language incorporates both PostgreSQL SQL dialect and PL/pgSQL language. It is based on PostgreSQL version 11. Some notes: - Text in double-dollar-strings i...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/makefile.js
src/languages/makefile.js
/* Language: Makefile Author: Ivan Sagalaev <maniac@softwaremaniacs.org> Contributors: Joël Porquet <joel@porquet.org> Website: https://www.gnu.org/software/make/manual/html_node/Introduction.html Category: common, build-system */ export default function(hljs) { /* Variables: simple (eg $(var)) and special (eg $@) *...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false
highlightjs/highlight.js
https://github.com/highlightjs/highlight.js/blob/5697ae5187746c24732e62cd625f3f83004a44ce/src/languages/nsis.js
src/languages/nsis.js
/* Language: NSIS Description: Nullsoft Scriptable Install System Author: Jan T. Sott <jan.sott@gmail.com> Website: https://nsis.sourceforge.io/Main_Page Category: scripting */ import * as regex from '../lib/regex.js'; export default function(hljs) { const regex = hljs.regex; const LANGUAGE_CONSTANTS = [ "ADM...
javascript
BSD-3-Clause
5697ae5187746c24732e62cd625f3f83004a44ce
2026-01-04T15:04:59.993644Z
false