textmode.overlay.js 1.1.0 → 1.2.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.
@@ -64,14 +64,7 @@ export interface TextmodeOverlayController {
64
64
  * @throws {TypeError | Error} When the target kind or target/output geometry cannot be represented by an axis-aligned canvas.
65
65
  *
66
66
  * @example
67
- * ```ts
68
- * // Pointer input passes through the overlay by default.
69
- * const source = t.overlay.setTarget(canvas);
70
- * source.characters(' .:-=+*#%@');
71
- *
72
- * // Opt in when textmode.js mouse handlers should receive the input.
73
- * t.overlay.setTarget(canvas, { pointerEvents: 'auto' });
74
- * ```
67
+ * {@includeCode ../examples/OverlayPlugin/pointerEvents/sketch.js}
75
68
  *
76
69
  * @see {@link https://code.textmode.art/api/textmode.overlay.js/interfaces/TextmodeOverlayController#settarget | TextmodeOverlayController.setTarget API reference}
77
70
  */
@@ -80,9 +73,7 @@ export interface TextmodeOverlayController {
80
73
  * Stop sampling and restore the output canvas.
81
74
  *
82
75
  * @example
83
- * ```ts
84
- * t.overlay.clearTarget();
85
- * ```
76
+ * {@includeCode ../examples/OverlayPlugin/binding/sketch.js}
86
77
  *
87
78
  * @see {@link https://code.textmode.art/api/textmode.overlay.js/interfaces/TextmodeOverlayController#cleartarget | TextmodeOverlayController.clearTarget API reference}
88
79
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "textmode.overlay.js",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "DOM overlay target plugin for textmode.js",
5
5
  "type": "module",
6
6
  "devEngines": {
@@ -62,16 +62,16 @@
62
62
  "test:integration": "textmode-build test --project integration"
63
63
  },
64
64
  "peerDependencies": {
65
- "textmode.js": "^0.18.0"
65
+ "textmode.js": ">=0.18.0 <1.0.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@textmode/build": "^0.1.1",
69
- "@textmode/docs": "^0.4.2",
70
- "@textmode/lint": "^0.1.2",
71
- "@textmode/release": "^0.2.0",
68
+ "@textmode/build": "^0.1.2",
69
+ "@textmode/docs": "^0.4.3",
70
+ "@textmode/lint": "^0.1.3",
71
+ "@textmode/release": "^0.2.1",
72
72
  "@textmode/tsconfig": "^0.2.2",
73
73
  "@types/node": "^26.4.0",
74
- "textmode.js": "^0.18.0",
74
+ "textmode.js": "^0.19.0",
75
75
  "typescript": "^6.0.3",
76
76
  "vitest": "^5.0.0"
77
77
  },