ItemEffect
Defined in: core/items/ieffects.ts:320
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ItemEffect():
ItemEffect
Returns
Section titled “Returns”ItemEffect
Methods
Section titled “Methods”getBorderEffectColor()
Section titled “getBorderEffectColor()”getBorderEffectColor():
Promise<Color>
Defined in: core/items/ieffects.ts:571
return: Promise
Gets the border effect color. Only relevant when mask effect is set to shape
Returns
Section titled “Returns”Promise<Color>
Implementation of
Section titled “Implementation of”IItemEffect.getBorderEffectColor
getBorderEffectOpacity()
Section titled “getBorderEffectOpacity()”getBorderEffectOpacity():
Promise<number>
Defined in: core/items/ieffects.ts:538
return: Promise
Gets the border effect opacity (0 - 100). Only relevant when mask effect is set to shape
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”IItemEffect.getBorderEffectOpacity
getBorderEffectRadius()
Section titled “getBorderEffectRadius()”getBorderEffectRadius():
Promise<number>
Defined in: core/items/ieffects.ts:472
return: Promise
Gets the border effect radius (0 - 100), relative to the size of the source. Only relevant when mask effect is set to shape
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”IItemEffect.getBorderEffectRadius
getBorderEffectThickness()
Section titled “getBorderEffectThickness()”getBorderEffectThickness():
Promise<number>
Defined in: core/items/ieffects.ts:505
return: Promise
Gets the border effect thickness (0 - 100), relative to the size of the source. Only relevant when mask effect is set to shape
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”IItemEffect.getBorderEffectThickness
getFileMask()
Section titled “getFileMask()”getFileMask():
Promise<string>
Defined in: core/items/ieffects.ts:808
return: Promise
Determines the image used to mask the source. Only relevant when mask effect is set to file
Returns
Section titled “Returns”Promise<string>
Implementation of
Section titled “Implementation of”getFilter()
Section titled “getFilter()”getFilter():
Promise<Filter>
Defined in: core/items/ieffects.ts:856
return: Promise
Gets the post processing shader used
Returns
Section titled “Returns”Promise<Filter>
Implementation of
Section titled “Implementation of”getFilterConfig()
Section titled “getFilterConfig()”getFilterConfig():
Promise<Object>
Defined in: core/items/ieffects.ts:920
return: Promise
Gets the post-processing shader configurations as an object possibly having properties such as:
intensity: percentage of filter appliedresourceFile: PNG image used as a reference for LUTs
Returns
Section titled “Returns”Promise<Object>
Implementation of
Section titled “Implementation of”getMaskEffect()
Section titled “getMaskEffect()”getMaskEffect():
Promise<MaskEffect>
Defined in: core/items/ieffects.ts:417
return: Promise
Determines the mask effect being used
Returns
Section titled “Returns”Promise<MaskEffect>
Implementation of
Section titled “Implementation of”getShadowEffectBlur()
Section titled “getShadowEffectBlur()”getShadowEffectBlur():
Promise<number>
Defined in: core/items/ieffects.ts:676
return: Promise
Gets the shadow effect blur (0 - 100). Only relevant when mask effect is set to shape
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”IItemEffect.getShadowEffectBlur
getShadowEffectColor()
Section titled “getShadowEffectColor()”getShadowEffectColor():
Promise<Color>
Defined in: core/items/ieffects.ts:609
Returns
Section titled “Returns”Promise<Color>
getShadowEffectOffsetX()
Section titled “getShadowEffectOffsetX()”getShadowEffectOffsetX():
Promise<number>
Defined in: core/items/ieffects.ts:742
return: Promise
Gets the horizontal shadow effect offset (-100 to -100), relative to the size of the source. Only relevant when mask effect is set to shape
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”IItemEffect.getShadowEffectOffsetX
getShadowEffectOffsetY()
Section titled “getShadowEffectOffsetY()”getShadowEffectOffsetY():
Promise<number>
Defined in: core/items/ieffects.ts:775
return: Promise
Gets the vertical shadow effect offset (-100 to 100), relative to the size of the source. Only relevant when mask effect is set to shape
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”IItemEffect.getShadowEffectOffsetY
getShadowEffectOpacity()
Section titled “getShadowEffectOpacity()”getShadowEffectOpacity():
Promise<number>
Defined in: core/items/ieffects.ts:709
return: Promise
Gets the shadow effect opacity (0 - 100). Only relevant when mask effect is set to shape
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”IItemEffect.getShadowEffectOpacity
getShadowEffectThickness()
Section titled “getShadowEffectThickness()”getShadowEffectThickness():
Promise<number>
Defined in: core/items/ieffects.ts:643
return: Promise
Gets the shadow effect thickness (0 - 100), relative to the size of the source. Only relevant when mask effect is set to shape
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”IItemEffect.getShadowEffectThickness
isFileMaskingGuideVisible()
Section titled “isFileMaskingGuideVisible()”isFileMaskingGuideVisible():
Promise<boolean>
Defined in: core/items/ieffects.ts:824
return: Promise
Check whether the file masking guide is visible or not. Only relevant when mask effect is set to file
Returns
Section titled “Returns”Promise<boolean>
Implementation of
Section titled “Implementation of”IItemEffect.isFileMaskingGuideVisible
removeFilter()
Section titled “removeFilter()”removeFilter():
Promise<ItemEffect>
Defined in: core/items/ieffects.ts:912
Removes the set post-processing shader used. Similar to setting to NONE
Chainable.
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”setBorderEffectColor()
Section titled “setBorderEffectColor()”setBorderEffectColor(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:593
param: (value: Color)
Sets the border effect color. Only relevant when mask effect is set to shape
Chainable.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”IItemEffect.setBorderEffectColor
setBorderEffectOpacity()
Section titled “setBorderEffectOpacity()”setBorderEffectOpacity(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:553
param: (value: number)
Sets the border effect opacity (0 - 100). Only relevant when mask effect is set to shape
Chainable.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”IItemEffect.setBorderEffectOpacity
setBorderEffectRadius()
Section titled “setBorderEffectRadius()”setBorderEffectRadius(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:487
param: (value: number)
Sets the border effect radius (0 - 100), relative to the size of the source. Only relevant when mask effect is set to shape
Chainable.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”IItemEffect.setBorderEffectRadius
setBorderEffectThickness()
Section titled “setBorderEffectThickness()”setBorderEffectThickness(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:520
param: (value: number)
Sets the border effect thickness (0 - 100), relative to the size of the source. Only relevant when mask effect is set to shape
Chainable.
Note that since a source occupies its own ‘window’ in the XBC stage, it is specifically made that the edge effects are still within the boundaries of the source, such that increasing border thickness adds the layer inwards instead of outwards.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”IItemEffect.setBorderEffectThickness
setFileMask()
Section titled “setFileMask()”setFileMask(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:816
param: (value: string)
Sets the image to be used used to mask the source. Only relevant when mask effect is set to file
Chainable.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”setFilter()
Section titled “setFilter()”setFilter(
value,config?):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:869
param: (value: Filter or transitionString)
Sets the post processing shader to be used for the Item
Chainable.
Parameters
Section titled “Parameters”any
config?
Section titled “config?”intensity?
Section titled “intensity?”number
resourceFile?
Section titled “resourceFile?”string
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”setMaskEffect()
Section titled “setMaskEffect()”setMaskEffect(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:437
param: (value: MaskEffect)
Sets the mask effect to any one of three possible choices: Shape/Edge effects, File masking (both bind to stage and bind to source), or None(mask effect disabled).
Chainable.
After setting the mask effect, you may tweak settings specific to that effect.
- None
- Shape: methods prefixed with
getBorderEffect-*,getShadowEffect-*,setBorderEffect-*, orsetShadowEffect-* - File: methods
getFileMask,setFileMask,showFileMaskingGuideandisFileMaskingGuideVisible
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”setShadowEffectBlur()
Section titled “setShadowEffectBlur()”setShadowEffectBlur(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:691
param: (value: number)
Sets the shadow effect blur (0 - 100). Only relevant when mask effect is set to shape
Chainable.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”IItemEffect.setShadowEffectBlur
setShadowEffectColor()
Section titled “setShadowEffectColor()”setShadowEffectColor(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:631
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<ItemEffect>
setShadowEffectOffsetX()
Section titled “setShadowEffectOffsetX()”setShadowEffectOffsetX(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:757
param: (value: number)
Sets the horizontal shadow effect offset (-100 to 100), relative to the size of the source. Only relevant when mask effect is set to shape
Chainable.
A positive horizontal offset shifts the shadow to the right of the horizontal center at the background, which visually seems to decrease the left portion of the shadow. A negative horizontal offset in turn shifts the shadow to the left, visually decreasing the right portion of the shadow.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”IItemEffect.setShadowEffectOffsetX
setShadowEffectOffsetY()
Section titled “setShadowEffectOffsetY()”setShadowEffectOffsetY(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:790
param: (value: number)
Sets the vertical shadow effect offset (-100 to 100), relative to the size of the source. Only relevant when mask effect is set to shape
Chainable.
A positive vertical offset shifts the shadow below the vertical center at the background, which visually seems to decrease the top portion of the shadow. A negative vertical offset in turn shifts the shadow above, visually decreasing the bottom portion of the shadow.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”IItemEffect.setShadowEffectOffsetY
setShadowEffectOpacity()
Section titled “setShadowEffectOpacity()”setShadowEffectOpacity(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:724
param: (value: number)
Sets the shadow effect opacity (0 - 100). Only relevant when mask effect is set to shape
Chainable.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”IItemEffect.setShadowEffectOpacity
setShadowEffectThickness()
Section titled “setShadowEffectThickness()”setShadowEffectThickness(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:658
param: (value: number)
Sets the shadow effect thickness (0 - 100), relative to the size of the source. Only relevant when mask effect is set to shape
Chainable.
Note that since a source occupies its own ‘window’ in the XBC stage, it is specifically made that the edge effects are still within the boundaries of the source, such that increasing thickness adds the layer inwards instead of outwards.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<ItemEffect>
Implementation of
Section titled “Implementation of”IItemEffect.setShadowEffectThickness
showFileMaskingGuide()
Section titled “showFileMaskingGuide()”showFileMaskingGuide(
value):Promise<ItemEffect>
Defined in: core/items/ieffects.ts:838
param: (value: boolean)
shows or hides the file masking guide. Only relevant when mask effect is set to file
Chainable.
The file masking guide highlights the area of the source that is currently being masked. Please note that resetting mask effect also resets this to false
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”Promise<ItemEffect>