textmode.overlay.js 1.1.0-beta.1 → 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.
- package/README.md +2 -2
- package/dist/types/types.d.ts +2 -11
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<img alt="textmode.overlay.js — overlay textmode above any target" src=".github/assets/readme-og.png" />
|
|
6
6
|
|
|
7
|
-
| [](https://www.typescriptlang.org/) [](https://vitejs.dev/) | [](https://code.textmode.art/api/textmode.overlay.js/) [](https://code.textmode.art/) | [](https://ko-fi.com/V7V8JG2FY) [](https://github.com/sponsors/humanbydefinition) |
|
|
7
|
+
| [](https://www.typescriptlang.org/) [](https://vitejs.dev/) | [](https://code.textmode.art/api/textmode.overlay.js/) [](https://code.textmode.art/) [](https://discord.gg/sjrw8QXNks) | [](https://ko-fi.com/V7V8JG2FY) [](https://github.com/sponsors/humanbydefinition) |
|
|
8
8
|
|:---|:---|:---|
|
|
9
9
|
|
|
10
10
|
</div>
|
|
@@ -21,7 +21,7 @@ Bind a target once with `t.overlay.setTarget()`, then sample it with the same ch
|
|
|
21
21
|
- **DOM lifecycle ownership** - Clearing or uninstalling the plugin restores the output canvas to its original DOM location and modified inline styles
|
|
22
22
|
- **Disconnected-target watching** - Targets are watched until they are mounted into the document
|
|
23
23
|
- **Output visibility controls** - Show, hide, and toggle only the output canvas while sampling and sketch execution continue
|
|
24
|
-
- **Axis-aligned positioning** -
|
|
24
|
+
- **Axis-aligned positioning** - Positive scale, translation, CSS `zoom`, and scrolling are projected accurately; unsupported transforms are rejected rather than approximated
|
|
25
25
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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.
|
|
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": "
|
|
65
|
+
"textmode.js": ">=0.18.0 <1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@textmode/build": "^0.1.
|
|
69
|
-
"@textmode/docs": "^0.3
|
|
70
|
-
"@textmode/lint": "^0.1.
|
|
71
|
-
"@textmode/release": "^0.2.
|
|
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.
|
|
74
|
+
"textmode.js": "^0.19.0",
|
|
75
75
|
"typescript": "^6.0.3",
|
|
76
76
|
"vitest": "^5.0.0"
|
|
77
77
|
},
|