setLayerEffect(layerName:string,eg:EffectGroup)
hasLayerEffect(layerName:string):boolean
removeLayerEffect(layerName:string)
type EffectGroup = {
visible:boolean,
filters:Filter[],
alpha:number,
colorMatrix?:ColorMatrix,
blendMode:BLEND_MODES
}
constructor(model:MCSymbolModel, _startLabel:string = "")
playTo(_target:string | number,_doneCall?:Function)
fromTo(_from:string | number,_target:string | number,_doneCall?:Function)
cancel()
pause()
resume()
get currentMC():MCEX | undefined
replacer:MCReplacer
addModel(symbolModel:MCSymbolModel,option?:{
replaceSame?:boolean,
matrix?:Matrix,
includeActions?:string[],
excludeActions?:string[],
prefix?:string
}):MCEX//so hard to explain
showAction(actionName:string,phaseName?:string,progress:number=0)
getActions():Record<string,string[]>
getActionList():string[]
getActionPhase(actionName:string):string[]
constructor(actor:MCActor)
play(playSteps:ActorStep[],loop:boolean=false)
stop()
pause()
continue()
type ActorStep
{
action:string,
phase?:string,
from?:number,
to?:number,
time:number,
}
constructor(mc: IreplacerDisplayObject);
static globalRules: ReplaceRule[];
static instanceOfIreplacerDisplayObject(object: Container): object is IreplacerDisplayObject;
static checkMatch(_source: string, rule: ReplaceRule): boolean;
static starMatch(_source: string, _target: string): boolean;
static starReplace(_source: string, matchKey: string, replaceKey: string): string | undefined;
static addRule(_rule: ReplaceRule): void;
static removeRule(_rule: ReplaceRule): void;
get rules(): ReplaceRule[];
addRule(_rule: ReplaceRule): void;
addRules(_rules: ReplaceRule[]): void;
removeRule(_rule: ReplaceRule): void;
removeRules(_rules: ReplaceRule[]): void;;
renewRule(): ReplaceRule[];
getReplace(originalSN: string, layerName: string): ReplacerResult;
checkReplace(originalSN: string, layerName: string): ReplacerResult;
type ReplaceRule={
type:'layer'| 'symbol' ,//name or regex
target:'self' | 'child' | 'both' | 'next',
//match
matchType:'name' | 'regex' | 'instanceName',
matchKey:string,//name or regex
matchModelKey?:string,
//replace
replaceSymbol?:MCSymbolModel
replaceMatrix?:Matrix,
replaceModel?:MCModel,
replaceKey?:string,
//effect
effect?:EffectGroup
}
type ReplacerResult={
symbolModel:MCSymbolModel,
matrix:Matrix,
effect?:EffectGroup,
replaced:boolean
}