MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 2 callersFunctionmaybePrintArgvMessages
* Prints help messages for args if tests are being run for local development.
build-system/tasks/runtime-test/helpers.js:58
↓ 2 callersFunctionmaybePrintCoverageMessage
* @param {string=} covPath * @return {!Promise}
build-system/tasks/helpers.js:632
↓ 2 callersMethodmaybeRenderLoadMoreElement_
* @param {?Element} elem * @param {!JsonObject} data * @return {!Promise} * @private
extensions/amp-list/0.1/amp-list.js:994
↓ 2 callersMethodmaybeResetAmpMedia_
* @param {?Element} componentEl * @return {!Promise} * @private
extensions/amp-story/1.0/media-pool.js:537
↓ 2 callersMethodmaybeResizeListToFitItems_
* @private * @return {?Promise<boolean>}
extensions/amp-list/0.1/amp-list.js:366
↓ 2 callersMethodmaybeShowDiscoveryAnimation_
* Only show once per story on first instance of 360 component. * @private
extensions/amp-story-360/0.1/amp-story-360.js:519
↓ 2 callersMethodmaybeShowOverlay_
* Shows the overlay (mask element, and lock scrolling) * if the overlay is enabled * @private
extensions/amp-consent/0.1/consent-ui.js:790
↓ 2 callersMethodmaybeSlideCarousel_
* @param {number} direction 1 for forward or -1 for backwards. * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1200
↓ 2 callersFunctionmaybeSwitchToMinifiedJs
(html)
testing/iframe.js:618
↓ 2 callersFunctionmaybeThrow
* Checks for security error.
3p/environment.js:221
↓ 2 callersMethodmaybeToggle_
* Expand/collapses the component unless the element already has an * associated action or will navigate. * @param {!Event} event * @param {bo
extensions/amp-truncate-text/0.1/amp-truncate-text.js:245
↓ 2 callersMethodmaybeTransitionWithFocusChange_
* Switch between selecting the start and end dates, * and when to open and close the date picker. * @param {!Element} target
extensions/amp-date-picker/0.1/amp-date-picker.js:1050
↓ 2 callersMethodmaybeTrigger_
* @param {number} normalizedPercentage * @private
src/service/video-manager-impl.js:1574
↓ 2 callersMethodmaybeUpdateAspectRatio_
* Update player aspect ratio based on the active story aspect ratio. * @private
src/amp-story-player/amp-story-player-impl.js:1179
↓ 2 callersMethodmaybeUpdateAutoAdvanceTime_
* If advancement_ is a TimeBasedConfig, this updates the 'auto-advance-after' * attribute and updates the time delay used by the page's Advancement
extensions/amp-story/1.0/amp-story-page.js:571
↓ 2 callersMethodmaybeUpdateFragmentForCct
@override
src/service/viewer-impl.js:370
↓ 2 callersMethodmaybeUpdateReadyState_
@private
src/preact/base-element.js:576
↓ 2 callersFunctionme
(n,t,e)
third_party/d3/d3.js:2
↓ 2 callersFunctionmeasure
(state)
ads/inabox/frame-overlay-helper.js:25
↓ 2 callersMethodmeasure
* Measures the resource's boundaries. An upgraded element will be * transitioned to the "ready for layout" state.
src/service/resource.js:421
↓ 2 callersMethodmeasureIframeLayoutBox_
* Measure the layout box of the iframe if we rendered it already. * @private
extensions/amp-ad/0.1/amp-ad-3p-impl.js:315
↓ 2 callersMethodmeasureMutateElementResources_
* Handles element mutation (and measurement) APIs in the Resources system. * * @param {!Element} element * @param {?function()} measurer *
src/service/mutator-impl.js:180
↓ 2 callersFunctionmeasureMutateElementStub
(measure, mutate)
testing/helpers/service.js:413
↓ 2 callersMethodmeasureMutate_
* Runs a measure/mutate cycle ensuring that the iframe change is propagated * to the resource manager. * @param {{measure: (function()|undefined
src/friendly-iframe-embed.js:580
↓ 2 callersFunctionmeasurePageLayoutBox
(element)
extensions/amp-auto-ads/0.1/measure-page-layout-box.js:10
↓ 2 callersFunctionmeetsSizingCriteria
( renderWidth, renderHeight, naturalWidth, naturalHeight, vw, vh )
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:236
↓ 2 callersMethodmeetsTreeShapeCriteria
* @param {!Element} element * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @return {boolean}
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:128
↓ 2 callersFunctionmemo
(c, comparer)
src/preact/compat/memo.js:39
↓ 2 callersMethodmergeConfigs_
* Merges various sources of configs and stores them in a member variable. * * Order of precedence for configs from highest to lowest: * - Rem
extensions/amp-analytics/0.1/config.js:338
↓ 2 callersFunctionmergeHtml
* Merges base and fonts into html document. * @param {!FriendlyIframeSpec} spec * @return {string}
src/friendly-iframe-embed.js:277
↓ 2 callersMethodmergeShadowHead_
* Processes the contents of the shadow document's head. * @param {!./service/ampdoc-impl.AmpDoc} ampdoc * @param {!ShadowRoot} shadowRoot * @
src/multidoc-manager.js:317
↓ 2 callersFunctionmessageUrlRtv
()
src/utils/log.js:67
↓ 2 callersFunctionmetaJsonCreativeGrouper
(callback)
ads/google/a4a/line-delimited-response-handler.js:61
↓ 2 callersMethodmillis_
* @return {number} * @private
extensions/amp-animation/0.1/parsers/css-expr-ast.js:552
↓ 2 callersFunctionminify
* Minify the code with Terser. Only used by the ESBuild. * * @param {string} code * @param {terser.MinifyOptions} options * @return {!Promise<{cod
build-system/tasks/helpers.js:477
↓ 2 callersFunctionmirrorNode
(from, to)
extensions/amp-fit-text/0.1/build-dom.js:70
↓ 2 callersFunctionmn
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 2 callersFunctionmockAreaHeight
(height)
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:101
↓ 2 callersFunctionmockCenteredVideo
(element)
test/unit/test-video-rotate-to-fullscreen.js:21
↓ 2 callersFunctionmockLandscape
(isLandscape)
test/integration/test-video-players-helper.js:504
↓ 2 callersFunctionmockMacrosBinding
* CLIENT_ID(_ga) -> _client_id(_ga)_ * $NOT(true) -> _not(true)_ * @param {string} macroName * @param {!Array<string>} argumentsList
extensions/amp-analytics/0.1/test/test-vendors.js:235
↓ 2 callersFunctionmockRootNodeContent
(els)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:591
↓ 2 callersFunctionmockVisible
(callback, ratio, time)
examples/mraid/mraid.js:44
↓ 2 callersFunctionmountElement
(element)
extensions/amp-list/1.0/test/test-amp-list.js:39
↓ 2 callersMethodmoveScrollOneViewport_
* Moves the scroll position by one viewport, either forwards or backwards. * This reverses the actual scroll position moved based on directionality
extensions/amp-carousel/0.2/amp-carousel.js:321
↓ 2 callersMethodmoveSlidesBeforeOrAfter__
* Moves slides before or after the current index by setting setting a * translate. * @param {number} totalLength The total length of all the sli
extensions/amp-base-carousel/0.1/carousel.js:1291
↓ 2 callersMethodmoveSlides_
* Moves slides that are not at the current index before or after by * translating them if necessary. * @param {number} totalLength The total len
extensions/amp-base-carousel/0.1/carousel.js:1322
↓ 2 callersMethodmraidReady_
* Runs when MRAID reports that it is ready.
extensions/amp-mraid/0.1/amp-mraid.js:108
↓ 2 callersFunctionmutate
(cb)
extensions/amp-live-list/0.1/test/test-amp-live-list.js:50
↓ 2 callersMethodmutateElement
@override
src/inabox/inabox-mutator.js:66
↓ 2 callersMethodmutatedAttributesCallback
@override
extensions/amp-date-picker/0.1/amp-date-picker.js:512
↓ 2 callersMethodmutatedAttributesCallback
@override
extensions/amp-timeago/0.1/amp-timeago.js:86
↓ 2 callersMethodmutatedAttributesCallback
@override
extensions/amp-iframe/0.1/amp-iframe.js:559
↓ 2 callersFunctionmuteVideo
()
ads/google/ima/ima-video.js:1174
↓ 2 callersMethodnavigateToEnvironment
* Navigate the browser to a URL that will display the given url in the * given environment. * @param {!AmpdocEnvironment} environment * @para
build-system/tasks/e2e/amp-driver.js:181
↓ 2 callersFunctionne
(t)
third_party/inputmask/bundle.js:11
↓ 2 callersFunctionnewSlide
(id)
extensions/amp-inline-gallery/1.0/test/test-amp-inline-gallery.js:88
↓ 2 callersFunctionnextMicroTask
()
test/unit/polyfills/test-resize-observer.js:114
↓ 2 callersMethodnextPos_
* @param {number} pos * @param {number} dir * @return {number} * @private
extensions/amp-carousel/0.1/scrollable-carousel.js:312
↓ 2 callersMethodnextTask_
* Returns the next task that hasn't been run yet. * If `opt_dequeue` is true, remove the returned task from the queue. * @param {boolean=} opt_d
src/chunk.js:378
↓ 2 callersFunctionnextTick
(win, fn)
3p/3p.js:105
↓ 2 callersMethodnext_
* @param {boolean} convertValues * @return {!{type: TokenType_Enum, value: *, index: number}}
src/service/action-impl.js:1276
↓ 2 callersFunctionnn
(n)
third_party/d3/d3.js:1
↓ 2 callersFunctionno
(e)
examples/amp-script/vue-todomvc.js:7
↓ 2 callersMethodnoContent_
* Cleans up listeners on the ad, and apply the default UI for ad. * @private
extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js:407
↓ 2 callersMethodnotifyFinish_
@private
extensions/amp-story/1.0/animation.js:526
↓ 2 callersFunctionnumConfigs
* Returns the number of AMP_CONFIG matches in the given config string. * * @param {string} str * @return {number}
build-system/tasks/prepend-global/index.js:39
↓ 2 callersMethodobserve
* Start to observe the target element's position change and trigger callback. * TODO: maybe take DOM mutation into consideration * @param {!Elem
ads/inabox/position-observer.js:47
↓ 2 callersFunctionobserveSize
* @param {Element} element * @param {Type_Enum} type * @param {SizeCallback<TargetSize>} callback
src/core/dom/layout/size-observer.js:115
↓ 2 callersMethodobserved_
* @param {!Array<!IntersectionObserverEntry>} entries * @private
src/service/scheduler.js:239
↓ 2 callersFunctionon
(n)
third_party/d3/d3.js:1
↓ 2 callersMethodon
* Adds event listener. * @param {string} eventType * @param {!Function} listener
extensions/amp-addthis/0.1/post-message-dispatcher.js:21
↓ 2 callersMethodonAdLoaded_
* Things that need to happen after the created ad is "loaded". * @private
extensions/amp-story-auto-ads/0.1/story-ad-page.js:413
↓ 2 callersMethodonAdvance
@override
extensions/amp-story/1.0/page-advancement.js:1191
↓ 2 callersMethodonAmpDocVisibilityChange_
* When the viewer visibility state of the document changes to inactive or hidden, * send the layout score. * @private
src/service/performance-impl.js:550
↓ 2 callersMethodonAudioIconClick_
* Handles click events on the mute and unmute buttons. * @param {boolean} mute Specifies if the audio is being muted or unmuted. * @private
extensions/amp-story/1.0/amp-story-system-layer.js:829
↓ 2 callersFunctiononBindReadyAndSetStateWithObject
* @param {!Object} env * @param {!Bind} bind * @param {!JsonObject} state * @return {!Promise}
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:139
↓ 2 callersMethodonCaptionsClick_
* Toggles the captions. * @param {boolean} captions * @private
extensions/amp-story/1.0/amp-story-system-layer.js:624
↓ 2 callersMethodonCloseIconClick_
@private
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:116
↓ 2 callersMethodonCurrentPageIndexUpdate_
* @param {number} pageIndex * @private
extensions/amp-story/1.0/pagination-buttons.js:233
↓ 2 callersMethodonDataRetrieved_
* Handles incoming interactive data response * * RESPONSE FORMAT * { * options: [ * { * index: * count: * s
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:752
↓ 2 callersMethodonDatesChange
* Respond to user interactions that change a DateRangePicker's dates. * @param {!JsonObject} param
extensions/amp-date-picker/0.1/amp-date-picker.js:1368
↓ 2 callersFunctiononDocumentState
* Calls the callback when document's state satisfies the stateFn. * @param {Document} doc * @param {function(Document):boolean} stateFn * @param {f
src/core/document/ready.js:40
↓ 2 callersMethodonFluidResize_
* Fires a delayed impression and notifies the Fluid creative that its * container has been resized. * @param {number} newHeight The height expan
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:750
↓ 2 callersMethodonFontLoadFinish_
* @param {?string} addClassName css class to be added to the * document-element. * @param {?string} removeClassName css class to be removed f
extensions/amp-font/0.1/amp-font.js:148
↓ 2 callersMethodonImgLoadingError_
* If the image fails to load, show a fallback or placeholder instead. * @private
src/builtins/amp-img/amp-img.js:425
↓ 2 callersMethodonInteraction
* @param {!Event} event
extensions/amp-form/0.1/form-validators.js:413
↓ 2 callersMethodonLayoutMeasure
* This function is expected to be called in the onLayoutMeasure function of * AmpAdExit element to do any measure work for the filter.
extensions/amp-ad-exit/0.1/filters/filter.js:30
↓ 2 callersMethodonLinkComplete_
@private
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:393
↓ 2 callersFunctiononMessage
({currentTarget, data})
src/bento/components/bento-youtube/1.0/component.js:130
↓ 2 callersMethodonMoveRelease_
* Performs actions once the motion gesture has been complete. The motion * may continue based on the final velocity. * @param {number} veloX
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:521
↓ 2 callersMethodonMove_
* Performs a one-step or an animated motion (panning). * @param {number} deltaX * @param {number} deltaY * @param {boolean} animate * @ret
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:777
↓ 2 callersMethodonNextPass
@override
src/service/resources-impl.js:571
↓ 2 callersMethodonPausedClick_
* Handles click events on the paused and play buttons. * @param {boolean} paused Specifies if the story is being paused or not. * @private
extensions/amp-story/1.0/amp-story-system-layer.js:838
↓ 2 callersMethodonPermissionDefaultOrGranted_
* @private * @return {*} TODO(#23582): Specify return type
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:233
↓ 2 callersMethodonPlayerResize_
* @param {number} height * @param {number} width * @private
src/amp-story-player/amp-story-player-impl.js:808
↓ 2 callersMethodonQueueEmpty
* Register handler to be called when UI queue becomes empty * @param {function()} handler
src/service/notification-ui-manager.js:25
↓ 2 callersMethodonQueueNotEmpty
* Register handler to be called when UI queue becomes not empty * @param {function()} handler
src/service/notification-ui-manager.js:36
↓ 2 callersMethodonReadyState_
* @param {ReadyState_Enum} state * @param {*=} opt_failure * @private
src/preact/base-element.js:590
↓ 2 callersMethodonResize
@override
src/service/viewport/viewport-impl.js:647
← previousnext →6,401–6,500 of 18,703, ranked by callers