Browser components.

Classes

BrowserAssetElement

Extends BrowserAssetElement_base.

new BrowserAssetElement(): BrowserAssetElement

Returns BrowserAssetElement. Inherited from BrowserAssetElement_base.constructor.

PropertyModifierType
assetpublicundefined | ClientAsset
assetIdpublicstring
assetTypepublicstring
borderpublic readonlynumber
connectedpublicboolean
contentForHeadpublicOptionalContent
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
defaultContentpublic readonlyOptionalContent
handleDragStartpublic(event: Event) => void
handlePointerDownpublic(event: Event) => void
headpublicOptionalContent
iconIdspublic readonlystring[]
labelpublicundefined | string
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
preview?publicElement
previewSizepublicSize<number>
previewTargetpublicstring
promisepublicundefined | Promise<void>
refreshablepublic readonlyboolean
selectedpublicboolean
signalspublic readonlySignalsRecord
sizepublicSize<number>
sizeHeightpublicnumber
sizeWidthpublicnumber
stylesstaticCSSResult
visibilitypublicboolean

Methods

handleAssetUpdated(signal): void

ParameterTypeDescription
signalSignal

Returns void.

handleTargetIdSignal(signal): void

ParameterType
signalSignal

Returns void. Inherited from BrowserAssetElement_base.handleTargetIdSignal.

refreshAsset(): void

Returns void.

refreshPreview(): void

Returns void. Inherited from BrowserAssetElement_base.refreshPreview.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from BrowserAssetElement_base.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from BrowserAssetElement_base.unsubscribe.

willUpdate(values): void

ParameterTypeDescription
valuesPropertyValueMap<BrowserAssetElement>

Returns void. Overrides BrowserAssetElement_base.willUpdate.

static instance(element, detail): BrowserAssetElement

ParameterTypeDescription
elementundefined | BrowserAssetElement
detailBrowserElementArgs

Returns BrowserAssetElement.

BrowserContentCenterElement

Extends BrowserContentCenterElement_base.

new BrowserContentCenterElement(): BrowserContentCenterElement

Returns BrowserContentCenterElement. Inherited from BrowserContentCenterElement_base.constructor.

PropertyModifierType
acceptsClippublicboolean
connectedpublicboolean
cssBorderBoxSizingstaticCSSResult
cssDivRootstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
defaultContentpublic readonlyOptionalContent
elementsByIdpublicRecord<string, Element>
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
signalspublic readonlySignalsRecord
sizeByIdpublicRecord<string, Size<number>>
sizeObserver?publicResizeObserver
sortpublicSearchSort
stylesstaticCSSResult
visibilityByIdpublicRecord<string, boolean>
visibilityObserver?publicIntersectionObserver
visibilityRoot?publicElement

Methods

dropValid(dataTransfer?): boolean

ParameterType
dataTransfer?Not | DataTransfer

Returns boolean. Inherited from BrowserContentCenterElement_base.dropValid.

handleDragged(): void

Returns void. Inherited from BrowserContentCenterElement_base.handleDragged.

handleDropped(dataTransfer?, clientX?): void

ParameterType
dataTransfer?Not | DataTransfer
clientX?number

Returns void. Inherited from BrowserContentCenterElement_base.handleDropped.

mashIndex(dataTransfer?, clientX?): undefined | ClipLocation

ParameterType
dataTransfer?Not | DataTransfer
clientX?number

Returns undefined | ClipLocation. Inherited from BrowserContentCenterElement_base.mashIndex.

sizeObserve(wasObserved, nowObserved): void

ParameterType
wasObservedRecord<string, Element>
nowObservedRecord<string, Element>

Returns void. Inherited from BrowserContentCenterElement_base.sizeObserve.

sizeObserved(entries, observer): void

ParameterType
entriesResizeObserverEntry[]
observerResizeObserver

Returns void. Inherited from BrowserContentCenterElement_base.sizeObserved.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from BrowserContentCenterElement_base.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from BrowserContentCenterElement_base.unsubscribe.

visibilityObserve(wasObserved, nowObserved): boolean

ParameterType
wasObservedRecord<string, Element>
nowObservedRecord<string, Element>

Returns boolean. Inherited from BrowserContentCenterElement_base.visibilityObserve.

willUpdate(values): void

ParameterTypeDescription
valuesPropertyValueMap<BrowserContentCenterElement>

Returns void. Overrides BrowserContentCenterElement_base.willUpdate.

BrowserContentElement

Extends ContentElementBase.

new BrowserContentElement(): BrowserContentElement

Returns BrowserContentElement. Inherited from ContentElementBase.constructor.

PropertyModifierType
chromeCssstaticCSSResult
connectedpublicboolean
contentCssstaticCSSResult
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
cssSharedstaticCSSResult
defaultContentpublic readonlyOptionalContent
exportPartspublicundefined | string
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
partspublicstring
partSeparatorstaticstring
signalspublic readonlySignalsRecord
stylesstaticCSSResult

Methods

partContent(part, slots): OptionalContent

ParameterTypeDescription
partstring
slotsElement[]

Returns OptionalContent. Inherited from ContentElementBase.partContent.

refreshParts(): string

Returns string. Inherited from ContentElementBase.refreshParts.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from ContentElementBase.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from ContentElementBase.unsubscribe.

BrowserElement

Extends PanelElementBase.

new BrowserElement(): BrowserElement

Returns BrowserElement. Inherited from PanelElementBase.constructor.

PropertyModifierType
connectedpublicboolean
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
defaultContentpublic readonlyOptionalContent
exportPartspublicundefined | string
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
partspublicstring
partSeparatorstaticstring
signalspublic readonlySignalsRecord
stylesstaticCSSResult

Methods

contentContent(slots): OptionalContent

ParameterTypeDescription
slotsElement[]

Returns OptionalContent. Inherited from PanelElementBase.contentContent.

footerContent(slots): OptionalContent

ParameterTypeDescription
slotsElement[]

Returns OptionalContent. Inherited from PanelElementBase.footerContent.

headerContent(slots): OptionalContent

ParameterTypeDescription
slotsElement[]

Returns OptionalContent. Inherited from PanelElementBase.headerContent.

partContent(part, slots): OptionalContent

ParameterTypeDescription
partstring
slotsElement[]

Returns OptionalContent. Inherited from PanelElementBase.partContent.

refreshParts(): string

Returns string. Inherited from PanelElementBase.refreshParts.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from PanelElementBase.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from PanelElementBase.unsubscribe.

static instance(element): BrowserElement

ParameterTypeDescription
elementundefined | BrowserElement

Returns BrowserElement.

BrowserFooterElement

Extends FooterElementBase.

new BrowserFooterElement(): BrowserFooterElement

Returns BrowserFooterElement. Inherited from FooterElementBase.constructor.

PropertyModifierType
chromeCssstaticCSSResult
connectedpublicboolean
contentCssstaticCSSResult
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
cssSharedstaticCSSResult
defaultContentpublic readonlyOptionalContent
exportPartspublicundefined | string
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
partspublicstring
partSeparatorstaticstring
signalspublic readonlySignalsRecord
stylesstaticCSSResult

Methods

partContent(part, slots): OptionalContent

ParameterTypeDescription
partstring
slotsElement[]

Returns OptionalContent. Inherited from FooterElementBase.partContent.

refreshParts(): string

Returns string. Inherited from FooterElementBase.refreshParts.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from FooterElementBase.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from FooterElementBase.unsubscribe.

BrowserHeaderElement

Extends HeaderElementBase.

new BrowserHeaderElement(): BrowserHeaderElement

Returns BrowserHeaderElement. Inherited from HeaderElementBase.constructor.

PropertyModifierType
chromeCssstaticCSSResult
connectedpublicboolean
contentCssstaticCSSResult
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
cssSharedstaticCSSResult
defaultContentpublic readonlyOptionalContent
exportPartspublicundefined | string
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
partspublicstring
partSeparatorstaticstring
signalspublic readonlySignalsRecord
stylesstaticCSSResult

Methods

partContent(part, slots): OptionalContent

ParameterTypeDescription
partstring
slotsElement[]

Returns OptionalContent. Inherited from HeaderElementBase.partContent.

refreshParts(): string

Returns string. Inherited from HeaderElementBase.refreshParts.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from HeaderElementBase.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from HeaderElementBase.unsubscribe.

Interfaces

BrowserElementArgs

Extends VisibilityObserved.

PropertyType
assetIdstring
sizeHeightnumber
sizeWidthnumber
visibilityboolean

Variables

BrowserAssetTag

const BrowserAssetTag: "media-masher-browser-asset"

BrowserContentCenterTag

const BrowserContentCenterTag: "media-masher-browser-content-center"

BrowserContentTag

const BrowserContentTag: "media-masher-browser-content"

BrowserFooterTag

const BrowserFooterTag: "media-masher-browser-footer"

BrowserHeaderTag

const BrowserHeaderTag: "media-masher-browser-header"

BrowserTag

const BrowserTag: "media-masher-browser"

Functions

masherBrowserElementPlug

masherBrowserElementPlug(element): Promise<DataOrError<Element>>

ParameterType
elementundefined | BrowserElement

Returns Promise<DataOrError<Element>>.