mirror of
https://github.com/He4eT/cheap-glkote.git
synced 2026-05-05 08:57:25 +00:00
Compare commits
4 commits
emglken-0-
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9979e40d76 | |||
| 860498b8da | |||
| 1c0e29e4b7 | |||
|
ad163ef466 |
4 changed files with 6 additions and 8 deletions
|
|
@ -19,8 +19,8 @@ const { Dialog, GlkOte, send } =
|
||||||
```js
|
```js
|
||||||
send('open door', inputType, targetWindow)
|
send('open door', inputType, targetWindow)
|
||||||
```
|
```
|
||||||
You can receive `inputType` and `id` of `targetWindow` in `onUpdateInputs` handler.<br>
|
You can obtain `inputType` and `id` of `targetWindow` inside the `onUpdateInputs` handler.<br>
|
||||||
You can receive `targetWindow` by its `is` in `onUpdateWindows` handler.<br>
|
You can specify `targetWindow` by its `id` inside the `onUpdateWindows` handler.<br>
|
||||||
As I know, `inputType` can be `line` or `char`.
|
As I know, `inputType` can be `line` or `char`.
|
||||||
|
|
||||||
### Output and lifecycle
|
### Output and lifecycle
|
||||||
|
|
|
||||||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "cheap-glkote",
|
"name": "cheap-glkote",
|
||||||
"version": "0.5.0",
|
"version": "0.5.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cheap-glkote",
|
"name": "cheap-glkote",
|
||||||
"version": "0.5.0",
|
"version": "0.5.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ansi-escapes": "^4.0.0",
|
"ansi-escapes": "^4.0.0",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cheap-glkote",
|
"name": "cheap-glkote",
|
||||||
"version": "0.5.0",
|
"version": "0.5.1",
|
||||||
"description": "Abstract JavaScript implementation of GlkOte",
|
"description": "Abstract JavaScript implementation of GlkOte",
|
||||||
"author": "He4eT <He4eTHb1u@gmail.com>",
|
"author": "He4eT <He4eTHb1u@gmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
* @see: https://github.com/curiousdannii/glkote-term/blob/master/src/glkote-term.js
|
* @see: https://github.com/curiousdannii/glkote-term/blob/master/src/glkote-term.js
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import packageJSON from '../../package.json' assert { type: 'json' }
|
|
||||||
|
|
||||||
class GlkOte {
|
class GlkOte {
|
||||||
constructor({width, height}) {
|
constructor({width, height}) {
|
||||||
this.width = width
|
this.width = width
|
||||||
|
|
@ -13,7 +11,7 @@ class GlkOte {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
this.generation = 0
|
this.generation = 0
|
||||||
this.interface = null
|
this.interface = null
|
||||||
this.version = packageJSON.version
|
this.version = '0.5.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
measure_window() {
|
measure_window() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue