@vivliostyle/core 2.22.0 → 2.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -147,8 +147,9 @@ export declare type PostLayoutBlockHook = (p1: Vtree.NodeContext, p2: Vtree.Node
|
|
|
147
147
|
* they are registered.
|
|
148
148
|
* @param name Name of the hook.
|
|
149
149
|
* @param fn Function to be registered to the hook.
|
|
150
|
+
* @param atFirst If true, the function is registered at the first of the hook array.
|
|
150
151
|
*/
|
|
151
|
-
export declare function registerHook(name: string, fn: (...p1: any[]) => any): void;
|
|
152
|
+
export declare function registerHook(name: string, fn: (...p1: any[]) => any, atFirst?: boolean): void;
|
|
152
153
|
/**
|
|
153
154
|
* Remove a function already registered to the specified name.
|
|
154
155
|
* Note that even if the same function are registered multiple times, this
|