stream-deck-api-mazeppa
Advanced tools
Comparing version 0.1.0 to 0.1.1
12
index.js
@@ -10,7 +10,7 @@ 'use strict' | ||
streamDeck.drawText('TCN', 'black', 'white',1); | ||
streamDeck.drawText('AP', 'black','white',2); | ||
streamDeck.drawText('HSEL', 'black','white',3); | ||
streamDeck.drawText(':HSEL', 'black','white',4); | ||
streamDeck.drawText('AP', 'black','green',2); | ||
streamDeck.drawText('HSEL', 'black','yellow',3); | ||
streamDeck.drawText(':HSEL', 'black','pink',4); | ||
streamDeck.drawText('12', 'black','white',5); | ||
streamDeck.drawText('12', 'black','orange',5); | ||
@@ -28,4 +28,4 @@ streamDeck.drawText('TCN', 'white', 'black',6); | ||
streamDeck.drawText('LP', 'green','black',12); | ||
streamDeck.drawText('HSEL', 'green','black',13); | ||
streamDeck.drawText(':HSEL', 'green','black',14); | ||
streamDeck.drawText('HSEL', 'red','black',13); | ||
streamDeck.drawText(':HSEL', 'blue','black',14); | ||
@@ -32,0 +32,0 @@ streamDeck.drawText('A', 'green','black',15); |
{ | ||
"name": "stream-deck-api-mazeppa", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "API to interact with the Elgato Stream Deck controller", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# Stream Deck API | ||
Stream Deck API is a library that allows you to interact with an Elgato Stream Deck controller. | ||
### NOTE: API is not stable and will not follow semver until version >=1.0.0. If you need a specific version, hard-lock it to an exact version for now (in `package.json`): | ||
Forked from: https://github.com/danieltian/stream-deck-api.git Many thanks! | ||
```json | ||
"dependencies": { | ||
"stream-deck-api": "0.0.4" | ||
} | ||
``` | ||
## Examples | ||
@@ -57,3 +50,3 @@ | ||
### Draw Image or Color to Button | ||
### Draw Image, Text or Color to a Button | ||
@@ -85,9 +78,18 @@ ```js | ||
streamDeck.drawColor(0xFFFFFF, buttonNumber); // white | ||
// ---------------------------------------------- | ||
// Draw text with color, background color | ||
// ---------------------------------------------- | ||
streamDeck.drawText('HI', 'green', 'black', buttonNumber); | ||
streamDeck.drawText('12:34', 'white', 'black', buttonNumber); | ||
streamDeck.drawText('SAFE', 'black', 'white', buttonNumber); | ||
// ---------------------------------------------- | ||
// Draw text over image //EXPERIMENTAL | ||
// ---------------------------------------------- | ||
streamDeck.drawTextOverImage('HI', 'green', './images/blank.png', buttonNumber); | ||
``` | ||
## API | ||
##### TODO: Write API docs | ||
## Caching | ||
##### TODO: Clean this up | ||
Quick and dirty explanation: Because it takes a non-trivial amount of time to process an image (reading it from disk and resizing it) and to create the data that gets sent to the Stream Deck, caching has been implemented in order to speed up this process. | ||
@@ -94,0 +96,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 5 instances in 1 package
103
4
141597
19