MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 68 callersMethodexpandUrlAsync
* Expands the provided URL by replacing all known variables with their * resolved values. Optional `opt_bindings` can be used to add new variables
src/service/url-replacements-impl.js:921
↓ 68 callersMethodgetViewport
* Returns the viewport within which the element operates. * @return {!./service/viewport/viewport-interface.ViewportInterface}
src/base-element.js:829
↓ 68 callersMethodscrollTo
(px)
testing/helpers/service.js:346
↓ 67 callersFunctione
(n,t)
third_party/d3/d3.js:1
↓ 67 callersMethodlayoutCallback
@override
extensions/amp-story-interactive/0.1/amp-story-interactive-poll.js:72
↓ 67 callersMethodrenderStart
* @param {!JsonObject=} opt_data Fields: width, height
3p/ampcontext-integration.js:99
↓ 67 callersMethodupdatePlaying
* @param {boolean} isPlaying
src/core/dom/video/pause-helper.js:30
↓ 66 callersMethodgetBody
@override
extensions/amp-subscriptions/0.1/doc-impl.js:45
↓ 66 callersFunctionmatches
(context, target, selector, selectionMethod)
extensions/amp-analytics/0.1/test/test-analytics-root.js:434
↓ 66 callersMethodschedule
* Tries to schedule a new pass optionally with specified delay. If the new * requested pass is requested before the pending pass, the pending pass
src/pass.js:64
↓ 65 callersFunctiongetValueForExpr
(obj, expr)
src/core/types/object/index.js:225
↓ 65 callersMethodjson
* Drains the response and returns the JSON object. * @return {!Promise<!JsonObject>}
src/polyfills/fetch.js:171
↓ 65 callersFunctionscanTiming
(spec)
extensions/amp-animation/0.1/test/test-web-animations.js:91
↓ 65 callersFunctionwhenCalled
(spy, opt_callCount = 1)
testing/helpers/service.js:69
↓ 64 callersMethoddelay
* Runs the provided callback after the specified delay. This uses a micro * task for 0 or no specified time. This means that the delay will actuall
src/service/timer-impl.js:53
↓ 64 callersMethodgetState
* Returns the resource's state. See {@link ResourceState_Enum} for details. * @return {!ResourceState_Enum}
src/service/resource.js:289
↓ 64 callersMethodinstall
* Install, monitor and cleanup the document as `textarea[autoexpand]` * elements are added and removed. * @param {!../../../src/service/ampdoc-i
extensions/amp-form/0.1/amp-form-textarea.js:35
↓ 64 callersMethodloadPromise
* Returns a promise that will resolve or fail based on the element's 'load' * and 'error' events. * @param {T} element * @return {!Promise<T>
src/base-element.js:675
↓ 63 callersFunctioncallback
* @param {string} id * @param {!Object} ns
ads/vendors/adventive.js:100
↓ 63 callersMethodcreateError
* Creates an error object. * @param {...*} var_args * @return {!Error}
src/utils/log.js:294
↓ 63 callersMethodrestore
* Unstubs the window object and restores the real `window.fetch`.
extensions/amp-a4a/0.1/test/fetch-mock.js:45
↓ 63 callersFunctionuseStyles
()
build-system/babel-plugins/babel-plugin-transform-jss/test/fixtures/transform-assertions/should-transform-literal/output.mjs:8
↓ 62 callersFunctionfn
(e,t,n,r,i)
examples/amp-script/vue-todomvc.js:7
↓ 62 callersFunctiongetForm
(button1 = true, button2 = false, button3 = false)
extensions/amp-form/0.1/test/test-amp-form.js:98
↓ 62 callersMethodgetParam
* Returns the value of a ampdoc's startup parameter with the specified * name or `null` if the parameter wasn't defined at startup time. * @para
src/service/ampdoc-impl.js:342
↓ 62 callersFunctiongetWin
(node)
src/core/window/index.js:21
↓ 62 callersMethodnext
* Returns the next token and advances the position. * @param {boolean=} opt_convertValues * @return {!TokenDef}
src/service/action-impl.js:1257
↓ 62 callersFunctionpx
(value)
src/core/dom/style.js:218
↓ 61 callersMethodgetOnce
* Specifies that up to one GET request may be made to the given URL during * the current test, and defines the response to return. * * @param
extensions/amp-a4a/0.1/test/fetch-mock.js:59
↓ 61 callersFunctionparseJson
(json)
src/core/types/object/json.js:50
↓ 61 callersMethodrun
* Runs tests after configuration is complete. Variable args because describe * and it use (name, function) while describes uses (name, spec, functi
testing/test-config.js:136
↓ 60 callersMethodcontains
()
test/unit/polyfills/test-document-contains.js:16
↓ 60 callersMethodjson
* Returns json format of entitlements * @return {!JsonObject}
extensions/amp-subscriptions/0.1/entitlement.js:73
↓ 60 callersMethodmutate
* Called to apply the changes to the selected * element(s)
extensions/amp-experiment/1.0/mutation/mutation.js:21
↓ 60 callersFunctionn
(n)
third_party/d3/d3.js:1
↓ 60 callersMethodpush
* Add one element to the end. * @param {T} item
extensions/amp-viewer-integration/0.1/findtext.js:25
↓ 60 callersFunctiont
(e)
examples/amp-script/vue-todomvc.js:7
↓ 59 callersMethodfire
* @param {!Event} event
testing/fake-dom.js:393
↓ 59 callersFunctionwhenUpgradedToCustomElement
(element)
src/core/dom/amp-element-helpers.js:29
↓ 58 callersMethodbuildCallback
@override
extensions/amp-consent/0.1/amp-consent.js:123
↓ 58 callersMethodcreate
* @param {!Element} page * @param {!StoryAnimationConfigDef} config * @param {!Promise<!../../amp-animation/0.1/web-animations.Builder>} webAnim
extensions/amp-story/1.0/animation.js:191
↓ 58 callersMethodgetOptionElements
* Gets the options. * @protected * @return {!Array<!Element>}
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:219
↓ 58 callersMethodreceiveMessage
@override
src/service/viewer-impl.js:693
↓ 58 callersMethodscheduleChangeSize_
* Schedules change of the element's height. * @param {!Resource} resource * @param {number|undefined} newHeight * @param {number|undefined} n
src/service/mutator-impl.js:304
↓ 58 callersFunctionsetCookie
(win, name, value, expirationTime, options = {})
src/cookies.js:88
↓ 58 callersMethoduser
* @return {./log.Log}
src/base-element.js:1037
↓ 57 callersFunctionF
(e)
third_party/inputmask/bundle.js:11
↓ 57 callersFunctionaddParamsToUrl
(url, params)
src/url.js:239
↓ 57 callersFunctionfunc
()
test/unit/core/data-structures/test-curve.js:22
↓ 57 callersFunctiongetBuffer
(noCache)
third_party/inputmask/inputmask.js:1143
↓ 57 callersMethodgetShadowRoot
* @return {!Element}
extensions/amp-story/1.0/amp-story-system-layer.js:557
↓ 57 callersFunctionie
(e,a,t)
third_party/react-dates/bundle.js:1
↓ 57 callersFunctionlog
* Logs messages with a timestamp. The timezone suffix is dropped. * @param {...any} messages
build-system/common/logging.js:21
↓ 57 callersFunctiontest
(name, cb)
build-system/tasks/make-extension/test/test.js:20
↓ 56 callersFunctione
(e,n)
third_party/react-dates/bundle.js:1
↓ 56 callersFunctionescapeCssSelectorIdent
(ident)
src/core/dom/css-selectors.js:82
↓ 56 callersMethodnotify
(entries)
test/unit/utils/test-display-observer.js:52
↓ 56 callersMethodstart
* @param {!PaymentDataRequest} paymentRequest * @param {!PayOptionsDef=} options
third_party/subscriptions-project/swg.js:18027
↓ 56 callersFunctionverifySelectorsVisible
* Verifies that all CSS elements are as expected before taking a snapshot. * * @param {!puppeteer.Page} page a Puppeteer control browser tab/page.
build-system/tasks/visual-diff/verifiers.js:62
↓ 56 callersFunctionwaitForSendRequest
(analytics, opt_max)
extensions/amp-analytics/0.1/test/test-amp-analytics.js:150
↓ 55 callersFunctioncallback
(records)
extensions/amp-a4a/0.1/within-viewport.js:45
↓ 55 callersFunctionclosestAncestorElementBySelector
(element, selector)
src/core/dom/query.js:150
↓ 54 callersFunctioncallback
()
test/unit/polyfills/test-resize-observer.js:135
↓ 54 callersMethodgetItem
* @param {string} name * @return {?string}
testing/fake-dom.js:644
↓ 54 callersFunctiongetPlacementsFromConfigObj
(ampdoc, configObj)
extensions/amp-auto-ads/0.1/placement.js:327
↓ 54 callersMethodsend
* Exposed method to send a request on event. * Real ping may be batched and send out later. * @param {?JsonObject} configParams * @param {!Js
extensions/amp-analytics/0.1/requests.js:104
↓ 54 callersMethodshowSlide_
* Makes the slide corresponding to the given index and the slides surrounding * it available for display. * Note: Element must be laid out.
extensions/amp-carousel/0.1/slidescroll.js:808
↓ 54 callersFunctionstartupChunk
(doc, fn, opt_makesBodyVisible)
src/chunk.js:53
↓ 54 callersMethodtrigger
* Triggers a custom event for the associated root. * @param {!AnalyticsEvent} event
extensions/amp-analytics/0.1/events.js:511
↓ 53 callersFunctionSa
(a)
third_party/wgxpath/wgxpath.js:43
↓ 53 callersFunctionbuildTargetsInclude
* Returns true if a PR affects one or more of the given build targets. * * @param {...string} targets * @return {boolean}
build-system/pr-check/build-targets.js:377
↓ 53 callersMethoddeclaresExtension
* Returns whether the specified extension has been declared on this ampdoc. * @param {string} extensionId * @param {string=} opt_version * @r
src/service/ampdoc-impl.js:411
↓ 53 callersMethodpostMessage
* Posts a message to the iframe with the given data. * * @param {!Object} data
third_party/subscriptions-project/swg.js:15480
↓ 53 callersMethodupdate
* Update the local consent state list * @param {!CONSENT_ITEM_STATE} state * @param {string=} consentString * @param {{[key: string]: PURPOSE
extensions/amp-consent/0.1/consent-state-manager.js:374
↓ 52 callersMethodhandle_
* Intercept any click on the current document and prevent any * linking to an identifier from pushing into the history stack. * * This also h
src/service/navigation.js:325
↓ 52 callersFunctiononBindReadyAndSetState
* @param {!Object} env * @param {!Bind} bind * @param {!Object} state * @param {boolean=} skipAmpState * @return {!Promise}
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:102
↓ 52 callersFunctionr
(n)
third_party/d3/d3.js:1
↓ 52 callersMethodreplace
* Replaces the current state, optionally specifying updates to the state * object to be associated with the replacement. * @param {!HistoryState
src/service/history-impl.js:119
↓ 52 callersFunctionscan
(spec)
extensions/amp-animation/0.1/test/test-web-animations.js:73
↓ 51 callersFunctioncallback
(stub)
extensions/amp-subscriptions-google/0.1/test/test-amp-subscriptions-google.js:211
↓ 51 callersFunctioncb
()
ads/vendors/appvador.js:29
↓ 51 callersMethodgetSingleDoc
* Returns the document in the single-doc mode. In a multi-doc mode, an * error will be thrown. * @return {!AmpDoc}
src/service/ampdoc-impl.js:100
↓ 51 callersMethodloadPlayers
* Builds and layouts the players when appropriate. * @public
src/amp-story-player/amp-story-component-manager.js:39
↓ 50 callersFunctionaddConfigToInteractive
( interactive, options = 4, correct = undefined, attributes = ['text', 'results-category', 'image'] )
extensions/amp-story-interactive/0.1/test/helpers.js:153
↓ 50 callersFunctionbuildStoryPlayer
( numStories = 1, url = DEFAULT_CACHE_URL, cache = null )
test/unit/test-amp-story-player.js:28
↓ 50 callersFunctioncreateA4aElement
* @param {!Document} doc * @param {Rect=} opt_rect * @param {Element=} opt_body
extensions/amp-a4a/0.1/test/test-amp-a4a.js:361
↓ 50 callersFunctiondeepEquals
(a, b, depth = 5)
src/core/types/object/json.js:83
↓ 50 callersMethodgetAdUrl
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:783
↓ 50 callersFunctiongetAmpSlideScroll
* @param {boolean=} opt_hasLooping * @param {number=} opt_slideCount * @param {boolean=} opt_attachToDom * @param {boolean=} opt_hasAut
extensions/amp-carousel/0.1/test/test-slidescroll.js:48
↓ 50 callersFunctiongetServicePromiseForDoc
(elementOrAmpDoc, id)
src/service-helpers.js:234
↓ 50 callersMethodmountInternal
* Mounts the element by calling the `BaseElement.mountCallback` method. * * Can only be called on a upgraded element. May only be called fro
src/custom-element.js:638
↓ 50 callersFunctionresolve
()
test/unit/preact/component/test-renderer.js:39
↓ 50 callersMethodresolveEntitlement
* This resolves the entitlement to a platformKey * @param {string} platformKey * @param {!./entitlement.Entitlement} entitlement
extensions/amp-subscriptions/0.1/platform-store.js:226
↓ 50 callersMethodtrigger
* Triggers the specified event on the target element. * @param {!Element} target * @param {string} eventType * @param {?ActionEventDef} event
src/service/action-impl.js:414
↓ 49 callersFunctionbuildElement
(elem, attrs)
extensions/amp-live-list/0.1/test/test-amp-live-list.js:43
↓ 49 callersFunctiongetAmpForm
(form, canonical = 'https://example.com/amps.html')
extensions/amp-form/0.1/test/test-amp-form.js:84
↓ 49 callersFunctionparseAction
(s)
test/unit/test-action.js:87
↓ 49 callersMethodrun
* @return {!Promise<StrategyResult>} Resolves when the strategy is complete.
extensions/amp-auto-ads/0.1/ad-strategy.js:57
↓ 49 callersFunctionsleep
(ms, setTimeoutFunc = setTimeout)
testing/helpers/index.js:25
↓ 49 callersMethodswitchToShadowRoot
* Switch controller to shadowRoot hosted by given element. * @param {!ElementHandle<!WebElement>} handle * @return {!Promise<void>}
build-system/tasks/e2e/selenium-webdriver-controller.js:658
← previousnext →201–300 of 18,703, ranked by callers