Skip to content

anim-format (runtime format) / slotRuleEntry

Function: slotRuleEntry() ​

ts
function slotRuleEntry(
   file, 
   name, 
   rules
): 
  | {
  entry: AnimSlotEntry;
  name: string;
  profile: string;
}
  | undefined;

What an item showing the entry called name shows under rules (weakest first; a rule naming a profile the file does not have is skipped); undefined = what it shows itself.

Parameters ​

ParameterType
fileAnimFile
namestring
rulesreadonly AnimSlotRule[]

Returns ​

| { entry: AnimSlotEntry; name: string; profile: string; } | undefined

HereSplash — 2D animation for the web