PictureSource
このコンテンツはまだ日本語訳がありません。
Extends
Extended by
Properties
artDirectives
artDirectives:
null
|ArtDirectiveSource
[] =null
Art directives
Inherited from
Defined in
asBackground?
optional
asBackground:boolean
Container mode
Inherited from
Defined in
blurredDataUrl?
optional
blurredDataUrl:string
Data URL for blurred image
Inherited from
Defined in
buffer?
optional
buffer:Buffer
Image file buffer
Inherited from
Defined in
componentHash
componentHash:
string
Component hash
Inherited from
Defined in
componentType
componentType:
"img"
|"picture"
|"background"
Inherited from
Defined in
ctx
ctx:
ImgProcContext
For art directives
Defined in
data
data:
Partial
<ImgProcFile
>
Database record for the image
Inherited from
Defined in
db
Cache database
Inherited from
Defined in
dirs
Available directories
Inherited from
Defined in
downloadPath?
optional
downloadPath:string
Download path for remote file
Inherited from
Defined in
formatOptions
formatOptions:
ImgProcFormatOptions
Sharp output options
Inherited from
Defined in
isArtDirective
isArtDirective:
boolean
=false
Art directive flag
Inherited from
Defined in
localSourcePath
localSourcePath:
string
Resolved src
to handle local file
Inherited from
Defined in
logger?
optional
logger:AstroIntegrationLogger
Global logger
Inherited from
Defined in
options
options:
Omit
<ImgProcProcessorOptions
,"width"
|"height"
|"formatOptions"
> &object
Resolved component props
Type declaration
height?
optional
height:number
src
src:
string
width?
optional
width:number
Inherited from
Defined in
resolved
resolved:
object
={}
densities?
optional
densities: [number
,...number[]
]
height?
optional
height:number
sizes?
optional
sizes:string
width?
optional
width:number
widths?
optional
widths: [number
,...number[]
]
Inherited from
Defined in
settings
settings:
Omit
<ImgProcSettings
,"dataAdapter"
>
Integration settings (incl. default options)
Inherited from
Defined in
spinner
spinner:
Ora
Inherited from
Defined in
timeStart
timeStart:
number
Inherited from
Defined in
type
type:
"data"
|"local"
|"remote"
Inherited from
Defined in
variants?
optional
variants:ImgProcVariants
Variants
Inherited from
Defined in
Accessors
containerAttributes
get
containerAttributes():Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Inherited from
ImageSource
.containerAttributes
Defined in
containerClassList
get
containerClassList():string
[]
Returns
string
[]
Inherited from
ImageSource
.containerClassList
Defined in
css
get
css():string
Returns
string
Inherited from
Defined in
cssObj
get
cssObj():undefined
|ImgProcCssObj
Returns
undefined
| ImgProcCssObj
Inherited from
Defined in
imageAttributes
get
imageAttributes():HTMLAttributes
<"img"
>
Returns
HTMLAttributes
<"img"
>
Inherited from
Defined in
imageClassList
get
imageClassList():string
[]
Returns
string
[]
Inherited from
Defined in
link
get
link():null
|HTMLAttributes
<"link"
>
Returns
null
| HTMLAttributes
<"link"
>
Inherited from
Defined in
links
get
links():null
|HTMLAttributes
<"link"
>[]
Returns
null
| HTMLAttributes
<"link"
>[]
Defined in
pictureAttributes
get
pictureAttributes():HTMLAttributes
<"picture"
>
Returns
HTMLAttributes
<"picture"
>
Defined in
pictureClassList
get
pictureClassList():string
[]
Returns
string
[]
Defined in
profile
get
profile():undefined
|string
|Record
<string
,unknown
> |Record
<string
,unknown
>[]
Profile from profile string or processor
Returns
undefined
| string
| Record
<string
, unknown
> | Record
<string
, unknown
>[]
Inherited from
Defined in
sources
get
sources():HTMLAttributes
<"source"
>[]
Returns
HTMLAttributes
<"source"
>[]
Defined in
Methods
getBuffer()
getBuffer():
Promise
<Buffer
>
Return buffer of the source image
Returns
Promise
<Buffer
>
Inherited from
Defined in
main()
main():
Promise
<void
>
Returns
Promise
<void
>
Inherited from
Defined in
factory()
static
factory(args
):Promise
<PictureSource
>
Async constructor
Parameters
• args: PictureSourceArgs
Returns
Promise
<PictureSource
>