MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 1 callersMethodgetRoot
@override
src/service/fixed-layer.js:1020
↓ 1 callersMethodgetRootClientRectAsync
* Returns the client rect of the current window. * @return {Promise<null>|Promise<!../../layout-rect.LayoutRectDef>}
src/service/viewport/viewport-binding-def.js:174
↓ 1 callersMethodgetRootElement
@override
extensions/amp-subscriptions/0.1/doc-impl.js:34
↓ 1 callersFunctiongetRootElement_
* @param {!Window} win * @return {!Element} * @private
src/error-reporting.js:708
↓ 1 callersMethodgetRootElement_
* @return {!Element} * @private
extensions/amp-access/0.1/amp-access-source.js:255
↓ 1 callersFunctiongetRootNode
* A shim for the `Node.getRootNode()` API. * * See https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode for * more info.
third_party/resize-observer-polyfill/ResizeObserver.js:463
↓ 1 callersFunctiongetRootNode
* A shim for the `Node.getRootNode()` API. * * See https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode for * more info.
third_party/resize-observer-polyfill/ResizeObserver.install.js:462
↓ 1 callersMethodgetRootNode_
* @return {!Document|!ShadowRoot} * @private
extensions/amp-animation/0.1/amp-animation.js:489
↓ 1 callersMethodgetRootSignal
@override
extensions/amp-analytics/0.1/events.js:953
↓ 1 callersFunctiongetRotation
* @param {Array<RotationItemDef>} timeRotationUtc * @param {Date} nextDay * @param {Date} start * @return {RotationItemDef}
build-system/common/update-session-issues/index.js:290
↓ 1 callersFunctiongetSVGContentRect
* Calculates content rectangle of provided SVG element. * * @param {SVGGraphicsElement} target - Element content rectangle of which needs
third_party/resize-observer-polyfill/ResizeObserver.js:220
↓ 1 callersFunctiongetSVGContentRect
* Calculates content rectangle of provided SVG element. * * @param {SVGGraphicsElement} target - Element content rectangle of which needs
third_party/resize-observer-polyfill/ResizeObserver.install.js:219
↓ 1 callersFunctiongetSameSiteString
* Gets the cookie string to use for SameSite. This only sets the SameSite * value if specified, falling back to the browser default. The default valu
src/cookies.js:226
↓ 1 callersMethodgetSameSiteType_
* Converts SameSite string to SameSite_Enum type. * @param {string=} sameSite * @return {SameSite_Enum|undefined}
extensions/amp-analytics/0.1/cookie-writer.js:243
↓ 1 callersMethodgetSandboxAttribute_
* Determines the sandbox attribute for the prompt iframe * @param {string} src * @return {string}
extensions/amp-consent/0.1/consent-ui.js:489
↓ 1 callersMethodgetScoreFactorPromiseFor_
* Return a score factor for a platform once it's resolved * @param {string} platformKey * @param {string} scoreFactor * @return {!Promise<num
extensions/amp-subscriptions/0.1/platform-store.js:323
↓ 1 callersMethodgetScrollHeight
@override
src/inabox/inabox-viewport.js:809
↓ 1 callersMethodgetScrollLeft
@override
src/service/viewport/viewport-binding-natural.js:177
↓ 1 callersMethodgetScrollLeft
@override
src/service/viewport/viewport-binding-ios-embed-wrapper.js:219
↓ 1 callersFunctiongetScrollPaddingBottom
* @param {!Window} win * @param {!Element} element * @return {number}
src/service/viewport/viewport-impl.js:84
↓ 1 callersFunctiongetScrollPosition
(axis, el)
extensions/amp-base-carousel/0.1/dimensions.js:186
↓ 1 callersFunctiongetScrollToggleFloatInOffset
(element, isShown, position)
extensions/amp-fx-collection/0.1/scroll-toggle.js:136
↓ 1 callersFunctiongetScrollTogglePosition
(element, type, computedStyle)
extensions/amp-fx-collection/0.1/scroll-toggle.js:165
↓ 1 callersMethodgetScrollTop
@override
src/service/viewport/viewport-binding-ios-embed-wrapper.js:214
↓ 1 callersMethodgetScrollWidth
@override
src/service/viewport/viewport-impl.js:353
↓ 1 callersFunctiongetScrollingElement
* @param {!Window} win * @return {!Element}
ads/inabox/position-observer.js:148
↓ 1 callersMethodgetScrollingElement
@override
src/inabox/inabox-viewport.js:278
↓ 1 callersFunctiongetSearchString
(url)
extensions/amp-addthis/0.1/addthis-utils/classify.js:121
↓ 1 callersFunctiongetSelectedObjectValue
( element: HTMLElement | null )
src/bento/components/bento-autocomplete/1.0/component/helpers.ts:24
↓ 1 callersMethodgetSelectedObjectValue_
* Returns the object representation of the selected element. * @param {!Element} element * @return {?JsonObject} * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1102
↓ 1 callersMethodgetSelectedTextValue_
* Gets the textual representation of the selected element. * @param {!Element} element * @return {string} * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1092
↓ 1 callersMethodgetSeparatorElement_
* Reads the developer-provided separator element or defaults * to the internal implementation of it * @param {!Element} element the container of
extensions/amp-next-page/1.0/service.js:959
↓ 1 callersMethodgetSerializer_
* @return {!TransportSerializerDef}
extensions/amp-analytics/0.1/transport.js:240
↓ 1 callersMethodgetServeNpaSignal
* Checks if the `always-serve-npa` attribute is present and valid * based on the geolocation. To be implemented by network. * @return {!Promise
extensions/amp-a4a/0.1/amp-a4a.js:1573
↓ 1 callersFunctiongetServiceFromUrlFragment
(url)
extensions/amp-addthis/0.1/addthis-utils/fragment.js:74
↓ 1 callersMethodgetSessionState_
* Get previous state from sessionStorage. * @return {!JsonObject} * @private
extensions/amp-accordion/0.1/amp-accordion.js:223
↓ 1 callersFunctiongetShadowDomVersion
* Returns shadow dom version. * * @param {typeof Element} element * @return {ShadowDomVersion_Enum}
src/core/dom/web-components.js:102
↓ 1 callersMethodgetShareConfigAsJsonObject_
* @private * @return {!JsonObject}
extensions/amp-addthis/0.1/amp-addthis.js:340
↓ 1 callersFunctiongetShrinkHeight
* If shrink behavior is enabled, get the amount to shrink or expand. This * uses a more expensive method to calculate the new height creating a tempo
extensions/amp-form/0.1/amp-form-textarea.js:312
↓ 1 callersMethodgetSignatureVerifier_
* @param {!Window} win * @return {!SignatureVerifier}
extensions/amp-a4a/0.1/cryptographic-validator.js:21
↓ 1 callersMethodgetSigningServiceNames
* To be overridden by network specific implementation indicating which * signing service(s) is to be used. * @return {!Array<string>} A list of
extensions/amp-a4a/0.1/amp-a4a.js:1773
↓ 1 callersMethodgetSigningServiceNames
@override
extensions/amp-ad-network-adzerk-impl/0.1/amp-ad-network-adzerk-impl.js:64
↓ 1 callersMethodgetSingleInputOrTextarea_
* amp-autocomplete expects exactly one nested input or textarea. * @return {!HTMLInputElement}
extensions/amp-autocomplete/0.1/amp-autocomplete.js:362
↓ 1 callersMethodgetSize_
* Returns the size of the lightbox. * @return {!{width: number, height: number}}
extensions/amp-lightbox/0.1/amp-lightbox.js:830
↓ 1 callersMethodgetSizing
* Network specific sizing information. * @return {!SizeInfoDef}
extensions/amp-auto-ads/0.1/ad-network-config.js:64
↓ 1 callersMethodgetSlides
* @return {!Array<!Element>} The slides in the carousel.
extensions/amp-base-carousel/0.1/amp-base-carousel.js:222
↓ 1 callersMethodgetSlidesFromCarousel_
* @param {!Element} element * @return {!Promise<!Array<!Element>>} * @private
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:288
↓ 1 callersFunctiongetSourceOriginForElement
(element, url)
extensions/amp-story/1.0/utils.js:207
↓ 1 callersFunctiongetSourceRoot
* Computes the base url for sourcemaps. Custom sourcemap URLs have placeholder * {version} that should be replaced with the actual version. Also, ens
build-system/tasks/sourcemaps.js:52
↓ 1 callersMethodgetSourceUrl
* Returns the source URL of an AMP document for documents served * on a proxy origin or directly. * @param {string|!Location} url URL of an AMP
src/service/url-impl.js:91
↓ 1 callersFunctiongetSourcemapJson
* Verifies that the sourcemap file exists, and returns its contents. * @param {string} map The map filepath to check * @return {!Object}
build-system/tasks/check-sourcemaps.js:37
↓ 1 callersFunctiongetSrMacros
* @param {!JsonObject} interactionModel * @param {?string} campaignId * @param {!AmpElement} apesterElement * @param {!JsonObject} consentObj * @r
extensions/amp-apester-media/0.1/monetization/companion/video.js:195
↓ 1 callersMethodgetStartWaitPromise_
* @return {!Promise} * @private
extensions/amp-story/1.0/animation.js:350
↓ 1 callersFunctiongetStorageKey
* @param {string} id * @return {string}
extensions/amp-app-banner/1.0/component.js:141
↓ 1 callersMethodgetStoryState
* Sends a message asking for the current story's state and dispatches the appropriate event. * @param {string} storyStateType * @public
src/amp-story-player/amp-story-player-impl.js:908
↓ 1 callersFunctiongetStyleAdenza
* @param {string} style * @param {string} prop * @return {string}
ads/vendors/adenza.js:52
↓ 1 callersMethodgetSubscribe
* @return {?boolean}
third_party/subscriptions-project/swg.js:2033
↓ 1 callersMethodgetSubscriptionFlow
* @return {?string}
third_party/subscriptions-project/swg.js:1479
↓ 1 callersMethodgetSubscriptionStateReplyVersion_
* @private * @param {*} subscriptionStateReply * @return {(number|undefined)}
extensions/amp-web-push/0.1/web-push-service.js:506
↓ 1 callersMethodgetSubscriptionTimestamp
* @return {?Timestamp}
third_party/subscriptions-project/swg.js:1493
↓ 1 callersMethodgetSuitableLinkRewritersForLink_
* Get the list of all the link rewriter "watching" a specific anchor. * See LinkRewriter.isWatchingLink for more details. * @param {!HTMLElement
extensions/amp-skimlinks/0.1/link-rewriter/link-rewriter-manager.js:268
↓ 1 callersMethodgetSupportedFactorWeight_
* Calculates weight to add/remove based on getSupportedScoreFactor() * @param {string} factorName * @param {!./subscription-platform.Subscriptio
extensions/amp-subscriptions/0.1/platform-store.js:507
↓ 1 callersFunctiongetSwgTransactionId
()
third_party/subscriptions-project/swg.js:3313
↓ 1 callersMethodgetTapDirection_
* Decides what direction to navigate depending on which * section of the page was there a click. The navigation direction of each * individual s
extensions/amp-story/1.0/page-advancement.js:771
↓ 1 callersMethodgetTargetLength
* Returns the number of selected targets. * @return {number}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:54
↓ 1 callersFunctiongetTaskDescription
* Uses esprima to extract the description from a task file without require-ing * it, by tokenizing the JS file and finding the sequence that matches
build-system/task-runner/amp-task-runner.js:173
↓ 1 callersFunctiongetTaskFunc
* Returns a task function after making sure it is valid. * @param {string} taskSourceFileName * @param {string} taskFuncName * @return {TaskFuncDef
build-system/task-runner/amp-task-runner.js:155
↓ 1 callersMethodgetTaskId
* Returns the task ID for this resource. * @param {string} localId * @return {string}
src/service/resource.js:1015
↓ 1 callersFunctiongetTemplateDir
(template)
build-system/tasks/make-extension/index.js:85
↓ 1 callersFunctiongetTemplateNonEmptyNodeCount
* Returns the non-empty node count in a template (defined as a `template` * or `script` element). This is required to establish if the template conte
extensions/amp-render/1.0/amp-render.js:55
↓ 1 callersMethodgetTemplateRenderer
* Resolves to a reusable template renderer. * * @param {!Element} templateElement * @return {Promise<{ * renderAsString: function(*=): s
src/service/template-impl.js:102
↓ 1 callersFunctiongetTemplates
@return {Promise<{[key: string]: TemplateDef}>}
build-system/common/update-session-issues/index.js:24
↓ 1 callersFunctiongetTestDimensions
()
extensions/amp-pan-zoom/1.0/test/test-component.js:514
↓ 1 callersFunctiongetTestElement
()
extensions/amp-a4a/0.1/test/test-refresh.js:19
↓ 1 callersFunctiongetTestName
* Computes the name of a test from its input file. * * @param {string} inputFile * @return {string}
build-system/tasks/server-tests.js:36
↓ 1 callersFunctiongetTestPath
* Computes the relative dirname of the input from the test directory. * For example, if the input is "test/foo/bar/input.html", we get "foo/bar". *
build-system/tasks/server-tests.js:65
↓ 1 callersFunctiongetTestsFor
* Retrieves the set of unit tests that should be run * for a set of source files. * * @param {string[]} srcFiles * @return {string[]}
build-system/tasks/runtime-test/helpers-unit.js:227
↓ 1 callersMethodgetThumbnailContent_
* Creates a thumbnail element for a given slide. If the slide is an image * directly contains an image, then the image is used. Otherwise, a * p
extensions/amp-inline-gallery/0.1/amp-inline-gallery-thumbnails.js:159
↓ 1 callersMethodgetThumbnailSrcsetForVideo_
* Given an amp video, returns the thumbnail srcset. * @param {!Element} ampVideo * @return {?../../../../src/srcset.Srcset}
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:425
↓ 1 callersMethodgetThumbnailSrcset_
* Get thumbnail srcset for single element. * @param {!Element} element * @return {?../../../../src/srcset.Srcset} * @private
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:388
↓ 1 callersFunctiongetTimeFromSlot
()
extensions/amp-timeago/1.0/test/test-amp-timeago.js:27
↓ 1 callersMethodgetTimeout_
* Get the required interval value to be used for timeout. * @return {number} * @private
extensions/amp-live-list/0.1/poller.js:50
↓ 1 callersMethodgetTimeout_
* Computes and returns the time (in ms) to wait for font download. * @return {number} time (in ms) to wait for font download. * @private
extensions/amp-font/0.1/amp-font.js:173
↓ 1 callersMethodgetTimerVars
@return {!JsonObject}
extensions/amp-analytics/0.1/events.js:1152
↓ 1 callersMethodgetTimer_
* @return {!../../../src/service/timer-impl.Timer} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1088
↓ 1 callersFunctiongetToolbars
(options, ampSidebar)
extensions/amp-sidebar/0.2/test/test-amp-sidebar.js:108
↓ 1 callersFunctiongetToolbars
(options, ampSidebar)
extensions/amp-sidebar/0.1/test/test-amp-sidebar.js:109
↓ 1 callersMethodgetTopBoundary_
* @return {number} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:443
↓ 1 callersMethodgetTrackerClass_
* @param {string} trackerName * @private
extensions/amp-analytics/0.1/instrumentation.js:66
↓ 1 callersMethodgetTrackingInfo
* Getter to access the tracking data from outside the class. * @return {!Object} * @public
extensions/amp-skimlinks/0.1/tracking.js:56
↓ 1 callersFunctiongetTrackingStatus_
* * @param {!Element} element * @return {boolean}
extensions/amp-skimlinks/0.1/skim-options.js:81
↓ 1 callersFunctiongetTransform
* Extracts the JS transform for a test from its transform file. * @param {string} inputFile * @param {!Object} extraOptions * @return {Promise<stri
build-system/tasks/server-tests.js:90
↓ 1 callersFunctiongetTransformableCalleeMeta
* @param {!Node} node * @return {../log-module-metadata.LogMethodMetadataDef}
build-system/babel-plugins/babel-plugin-transform-log-methods/index.js:115
↓ 1 callersMethodgetTransitionDurationFromElements_
* Gets the duration for how long to animate the transition, based on the * distance and size of the viewport. * @param {!Element} srcImg The img
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:866
↓ 1 callersMethodgetTransitionDuration_
* Calculates transition duration from vertical distance traveled * @param {number} dy * @param {number=} maxY * @param {number=} minDur *
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1056
↓ 1 callersFunctiongetTwttr
* Produces the Twitter API object for the passed in callback. If the current * frame is the master frame it makes a new one by injecting the respecti
3p/twitter.js:15
↓ 1 callersMethodgetType
@return {!AccessType}
extensions/amp-access/0.1/amp-access-source.js:136
↓ 1 callersMethodgetUach_
* Returns cached uach signal if available, calculate it if not. * @param {string} variable * @param {!Window} win * @return {!Promise<string>
src/service/url-replacements-impl.js:802
↓ 1 callersFunctiongetUgcGalleryContainer
* Create DOM element for the Yotpo UGC Gallery plugin: * @param {!Window} global * @param {!Object} data The element data * @return {!Element} div
3p/yotpo.js:95
↓ 1 callersMethodgetUiState_
* Gets UI state from active story. * @private * @return {Promise}
src/amp-story-player/amp-story-player-impl.js:958
← previousnext →9,201–9,300 of 18,703, ranked by callers