tourEmbedUrl
The embeddable player URL for a pasted 3D-tour link, or `null` when the value is empty, names no provider, names one that is not a tour provider, or is a tour URL the provider's embed form cannot be built from.
The embeddable player URL for a pasted 3D-tour link, or null when the value
is empty, names no provider, names one that is not a tour provider, or is a
tour URL the provider’s embed form cannot be built from.
Import from @homepages/template-kit.
Signature
Section titled “Signature”function tourEmbedUrl(raw: string): string | nullParameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
raw |
string |
required |
Returns
Section titled “Returns”string | null
Constraints
Section titled “Constraints”- Covers every
kind: "tour"member ofLINK_PROVIDERS. A tour provider added to that catalog without a branch here returnsnull— an unembeddable slot rather than a wrong iframe — andslot-catalog.test.tsfails on the gap.
See also
Section titled “See also”acceptsLinkcollectionForSlotisLinkAcceptsmatchLinkProvidervideoEmbedUrlCOLLECTIONSCONTENT_SLOT_TYPESDECISION_TYPESLINK_KINDSLINK_PROVIDERSLINK_STRATEGIESREF_SLOT_TYPESREFERRAL_FIELDSREFERRAL_IMAGE_FIELDSSLOT_TYPESSOURCE_FIELDSVIDEO_SOURCESLinkProviderCollectionFieldCollectionIdKeyCollectionOwnershipContentSlotTypeDecisionTypeLinkKindLinkProviderIdLinkStrategyReferralFieldReferralImageFieldRefSlotTypeSlotTypeSourceFieldContainerSourceFieldDescriptorSourceFieldNameSourceFieldValueTypeVideoSourceWritebackTarget