ntk 5.2.0 → 5.4.0

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.
package/lib/app.js CHANGED
@@ -13,8 +13,10 @@ import Window from './window.js';
13
13
  export default class App {
14
14
  /**
15
15
  * @param {object} display node-x11 display
16
- * @param {object} [options] environment hooks: { fontSource (see
17
- * text/fontsource.js), rasterizer and rasterPolicy (see rasterize.js),
16
+ * @param {object} [options] environment hooks: { fontSource — a FontSource
17
+ * or a font spec (see text/fontsource.js); `createClient` resolves a spec
18
+ * before it gets here, so a hand-built App may pass either —
19
+ * rasterizer and rasterPolicy (see rasterize.js),
18
20
  * glxVisual (visual id for getContext('opengl') instead of querying the
19
21
  * server for one) }
20
22
  */