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 +4 -2
- package/lib/clipboard.js +652 -83
- package/lib/fontconfig.js +99 -12
- package/lib/image.js +13 -19
- package/lib/imagedata.js +388 -0
- package/lib/index.js +32 -2
- package/lib/renderingcontext_2d.js +416 -42
- package/lib/surface.js +118 -0
- package/lib/text/fontmanager.js +27 -4
- package/lib/text/fontsource.js +255 -3
- package/lib/widgets/svgview.js +118 -2
- package/lib/window.js +137 -1
- package/package.json +1 -1
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
|
|
17
|
-
* text/fontsource.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
|
*/
|