awtrix-ts 1.1.2 → 1.1.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # awtrix-ts [![npm version](https://badge.fury.io/js/awtrix-ts.svg)](https://badge.fury.io/js/awtrix-ts)
2
2
 
3
- TS wrapper for Awtrix API.
3
+ TS wrapper for [Awtrix API](https://blueforcer.github.io/awtrix3/#/api).
4
4
 
5
5
  ## Awtrix API
6
6
 
@@ -1,45 +1,43 @@
1
- declare module './interaction.js' {
2
- interface Interaction {
3
- text?: string;
4
- textCase?: number;
5
- topText?: boolean;
6
- textOffset?: number;
7
- center?: boolean;
8
- color?: string | number[];
9
- gradient?: (string | number)[];
10
- blinkText?: number;
11
- fadeText?: number;
12
- background?: string | number[];
13
- rainbow?: boolean;
14
- icon?: string;
15
- pushIcon?: PushIcon;
16
- repeat?: number;
17
- duration?: number;
18
- hold?: boolean;
19
- sound?: string;
20
- rtttl?: string;
21
- loopSound?: boolean;
22
- bar?: number[];
23
- line?: number[];
24
- autoscale?: boolean;
25
- barBC?: string | number[];
26
- progress?: number;
27
- progressC?: string | number[];
28
- progressBC?: string | number[];
29
- pos?: number;
30
- draw?: object[];
31
- lifetime?: number;
32
- lifetimeMode?: number;
33
- stack?: boolean;
34
- wakeup?: boolean;
35
- noScroll?: boolean;
36
- clients?: string[];
37
- scrollSpeed?: number;
38
- effect?: Effect;
39
- effectSettings?: Record<string, unknown>;
40
- save?: boolean;
41
- overlay?: string;
42
- }
1
+ export interface Interaction {
2
+ text?: string;
3
+ textCase?: number;
4
+ topText?: boolean;
5
+ textOffset?: number;
6
+ center?: boolean;
7
+ color?: string | number[];
8
+ gradient?: (string | number)[];
9
+ blinkText?: number;
10
+ fadeText?: number;
11
+ background?: string | number[];
12
+ rainbow?: boolean;
13
+ icon?: string;
14
+ pushIcon?: PushIcon;
15
+ repeat?: number;
16
+ duration?: number;
17
+ hold?: boolean;
18
+ sound?: string;
19
+ rtttl?: string;
20
+ loopSound?: boolean;
21
+ bar?: number[];
22
+ line?: number[];
23
+ autoscale?: boolean;
24
+ barBC?: string | number[];
25
+ progress?: number;
26
+ progressC?: string | number[];
27
+ progressBC?: string | number[];
28
+ pos?: number;
29
+ draw?: object[];
30
+ lifetime?: number;
31
+ lifetimeMode?: number;
32
+ stack?: boolean;
33
+ wakeup?: boolean;
34
+ noScroll?: boolean;
35
+ clients?: string[];
36
+ scrollSpeed?: number;
37
+ effect?: Effect;
38
+ effectSettings?: Record<string, unknown>;
39
+ save?: boolean;
40
+ overlay?: string;
43
41
  }
44
42
  declare const PushIcon: {
45
43
  readonly Static: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awtrix-ts",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "TypeScript API for Awtrix LED Matrix Display",
5
5
  "repository": {
6
6
  "type": "git",