Skip to main content

methods

methods(self)(source)

Extract all method functions from self and bind self as their first named argument.

Returns a dictionary of ready-to-call functions where the self argument has already been applied. Use destructuring to get individual methods.

Example: #let (uncover, only) = utils.methods(self) to get uncover and only methods.

This function is primarily intended for callback-style usage inside context blocks or style rules, where the top-level #uncover/#only etc. functions cannot be used. Animation methods resolve waypoint labels via self.waypoints (populated before rendering) and check self.subslide directly.

Note: these methods do not register fn-wrappers in the touying parser, so they do not contribute to the subslide count.

Parameters

self : dictionary​

The presentation context (must have a methods key containing a dictionary of functions).

Returns: dictionary