PictureSource
このコンテンツはまだ日本語訳がありません。
Defined in: api/PictureSource.ts:20
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Properties
Section titled “Properties”artDirectives
Section titled “artDirectives”artDirectives:
null
|ArtDirectiveSource
[] =null
Defined in: api/ImageSource.ts:29
Art directives
Inherited from
Section titled “Inherited from”asBackground?
Section titled “asBackground?”
optional
asBackground:boolean
Defined in: api/ImageSource.ts:33
Container mode
Inherited from
Section titled “Inherited from”blurredDataUrl?
Section titled “blurredDataUrl?”
optional
blurredDataUrl:string
Defined in: api/BaseSource.ts:88
Data URL for blurred image
Inherited from
Section titled “Inherited from”buffer?
Section titled “buffer?”
optional
buffer:Buffer
<ArrayBufferLike
>
Defined in: api/BaseSource.ts:82
Image file buffer
Inherited from
Section titled “Inherited from”componentHash
Section titled “componentHash”componentHash:
string
Defined in: api/ImageSource.ts:31
Component hash
Inherited from
Section titled “Inherited from”componentType
Section titled “componentType”componentType:
"img"
|"picture"
|"background"
Defined in: api/BaseSource.ts:49
Inherited from
Section titled “Inherited from”ctx:
ImgProcContext
Defined in: api/PictureSource.ts:22
For art directives
data:
Partial
<ImgProcFile
>
Defined in: api/BaseSource.ts:84
Database record for the image
Inherited from
Section titled “Inherited from”Defined in: api/BaseSource.ts:55
Cache database
Inherited from
Section titled “Inherited from”Defined in: api/BaseSource.ts:57
Available directories
Inherited from
Section titled “Inherited from”downloadPath?
Section titled “downloadPath?”
optional
downloadPath:string
Defined in: api/BaseSource.ts:79
Download path for remote file
Inherited from
Section titled “Inherited from”formatOptions
Section titled “formatOptions”formatOptions:
ImgProcFormatOptions
Defined in: api/BaseSource.ts:59
Sharp output options
Inherited from
Section titled “Inherited from”isArtDirective
Section titled “isArtDirective”isArtDirective:
boolean
=false
Defined in: api/BaseSource.ts:53
Art directive flag
Inherited from
Section titled “Inherited from”localSourcePath
Section titled “localSourcePath”localSourcePath:
string
Defined in: api/BaseSource.ts:77
Resolved src
to handle local file
Inherited from
Section titled “Inherited from”logger?
Section titled “logger?”
optional
logger:AstroIntegrationLogger
Defined in: api/BaseSource.ts:63
Global logger
Inherited from
Section titled “Inherited from”options
Section titled “options”options:
Omit
<ImgProcProcessorOptions
,"width"
|"height"
|"formatOptions"
> &object
Defined in: api/BaseSource.ts:66
Resolved component props
Type declaration
Section titled “Type declaration”height?
Section titled “height?”
optional
height:number
src:
string
width?
Section titled “width?”
optional
width:number
Inherited from
Section titled “Inherited from”resolved
Section titled “resolved”resolved:
object
={}
Defined in: api/BaseSource.ts:93
densities?
Section titled “densities?”
optional
densities: [number
,...number[]
]
height?
Section titled “height?”
optional
height:number
sizes?
Section titled “sizes?”
optional
sizes:string
width?
Section titled “width?”
optional
width:number
widths?
Section titled “widths?”
optional
widths: [number
,...number[]
]
Inherited from
Section titled “Inherited from”settings
Section titled “settings”settings:
Omit
<ImgProcSettings
,"dataAdapter"
>
Defined in: api/BaseSource.ts:61
Integration settings (incl. default options)
Inherited from
Section titled “Inherited from”spinner
Section titled “spinner”spinner:
Ora
Defined in: api/BaseSource.ts:101
Inherited from
Section titled “Inherited from”timeStart
Section titled “timeStart”timeStart:
number
Defined in: api/BaseSource.ts:102
Inherited from
Section titled “Inherited from”type:
"data"
|"local"
|"remote"
Defined in: api/BaseSource.ts:74
Inherited from
Section titled “Inherited from”variants?
Section titled “variants?”
optional
variants:ImgProcVariants
Defined in: api/BaseSource.ts:90
Variants
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”containerAttributes
Section titled “containerAttributes”Get Signature
Section titled “Get Signature”get containerAttributes():
Record
<string
,unknown
>
Defined in: api/ImageSource.ts:323
Returns
Section titled “Returns”Record
<string
, unknown
>
Inherited from
Section titled “Inherited from”ImageSource
.containerAttributes
containerClassList
Section titled “containerClassList”Get Signature
Section titled “Get Signature”get containerClassList():
string
[]
Defined in: api/ImageSource.ts:298
Returns
Section titled “Returns”string
[]
Inherited from
Section titled “Inherited from”ImageSource
.containerClassList
Get Signature
Section titled “Get Signature”get css():
string
Defined in: api/ImageSource.ts:270
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”cssObj
Section titled “cssObj”Get Signature
Section titled “Get Signature”get cssObj():
undefined
|ImgProcCssObj
Defined in: api/ImageSource.ts:146
Returns
Section titled “Returns”undefined
| ImgProcCssObj
Inherited from
Section titled “Inherited from”imageAttributes
Section titled “imageAttributes”Get Signature
Section titled “Get Signature”get imageAttributes():
HTMLAttributes
<"img"
>
Defined in: api/ImageSource.ts:91
Returns
Section titled “Returns”HTMLAttributes
<"img"
>
Inherited from
Section titled “Inherited from”imageClassList
Section titled “imageClassList”Get Signature
Section titled “Get Signature”get imageClassList():
string
[]
Defined in: api/ImageSource.ts:66
Returns
Section titled “Returns”string
[]
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get link():
null
|HTMLAttributes
<"link"
>
Defined in: api/BaseSource.ts:382
Returns
Section titled “Returns”null
| HTMLAttributes
<"link"
>
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get links():
null
|HTMLAttributes
<"link"
>[]
Defined in: api/PictureSource.ts:164
Returns
Section titled “Returns”null
| HTMLAttributes
<"link"
>[]
pictureAttributes
Section titled “pictureAttributes”Get Signature
Section titled “Get Signature”get pictureAttributes():
HTMLAttributes
<"picture"
>
Defined in: api/PictureSource.ts:101
Returns
Section titled “Returns”HTMLAttributes
<"picture"
>
pictureClassList
Section titled “pictureClassList”Get Signature
Section titled “Get Signature”get pictureClassList():
string
[]
Defined in: api/PictureSource.ts:75
Returns
Section titled “Returns”string
[]
profile
Section titled “profile”Get Signature
Section titled “Get Signature”get profile():
undefined
|string
|Record
<string
,unknown
> |Record
<string
,unknown
>[]
Defined in: api/BaseSource.ts:335
Profile from profile string or processor
Returns
Section titled “Returns”undefined
| string
| Record
<string
, unknown
> | Record
<string
, unknown
>[]
Inherited from
Section titled “Inherited from”sources
Section titled “sources”Get Signature
Section titled “Get Signature”get sources():
HTMLAttributes
<"source"
>[]
Defined in: api/PictureSource.ts:113
Returns
Section titled “Returns”HTMLAttributes
<"source"
>[]
Methods
Section titled “Methods”getBuffer()
Section titled “getBuffer()”getBuffer():
Promise
<Buffer
<ArrayBufferLike
>>
Defined in: api/BaseSource.ts:287
Return buffer of the source image
Returns
Section titled “Returns”Promise
<Buffer
<ArrayBufferLike
>>
Inherited from
Section titled “Inherited from”main()
Section titled “main()”main():
Promise
<void
>
Defined in: api/BaseSource.ts:178
Returns
Section titled “Returns”Promise
<void
>
Inherited from
Section titled “Inherited from”factory()
Section titled “factory()”
static
factory(args
):Promise
<PictureSource
>
Defined in: api/PictureSource.ts:43
Async constructor
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise
<PictureSource
>