aspen-decorations
Options
All
  • Public
  • Public/Protected
  • All
Menu

NOTES FOR CONTRIBUTORS:

  • A Target is a directory or a file entry
  • A Target is a DirectTarget when it is explicitly listed in a Decoration's application or negation list
  • As opposed to DirectTarget, general targets are implicit targets when they simply inherit from their parent's inhertiable DecorationComposite
  • All general targets "point to" their first parent's inheritable composite see docs for IDecorationMeta.inheritable

Hierarchy

  • DecorationsManager

Implements

  • IDisposable

Index

Constructors

constructor

Methods

addDecoration

  • Adds the given Decoration to the tree

    Decorations have no effect unless they are targetted at item(s). Use Decoration#addTarget to have them render in the filetree

    Parameters

    Returns void

dispose

  • dispose(): void

getDecorationData

  • getDecorationData(item: FileEntry | Directory): IDecorationMeta

getDecorations

  • Returns resolved decorations for given item

    Resolution includes taking inheritances into consideration, along with any negations that may void some or all of inheritances

    Parameters

    • item: FileEntry | Directory

    Returns ClasslistComposite

removeDecoration

  • Removes a Decoration from the tree

    Note that this "removes" entire Decoration from tree but the said Decoration's targets are still left intact.

    Calling DecorationManager#addDecoration with the same Decoration will undo the removal if the targets are left unchanged.

    Parameters

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc